Skip to content

Commit 9e3b5be

Browse files
Sravan SHoonBaekchrisallo
authored
v1.1.0(Aug 23, 2023) (#8)
- Convert all sourcecode to TS - Upgrade ChatSDK to v4 - No more IE support - No error first callbacks - Use jest for testing - Use rollup for bundling Add new methods: - Add new optional parameter platform to Desk.init DeviceOsPlatform comes from ChatSDK. We recommend you set it as `MOBILE_WEB`, in case you are using ReactNative Link -> https://sendbird.com/docs/chat/sdk/v4/javascript/ref/enums/_sendbird_chat.DeviceOsPlatform.html `init(sendbird: SendbirdGroupChat, platform?: DeviceOsPlatform)` - instanceConfirmEndOfChat to Ticket instances ``` // confirmEndOfChat Ticket.confirmEndOfChat(msg, 'yes', (ticket, error) => { console.log(ticket, error); }); // instanceConfirmEndOfChat const t = new Ticket(); t.instanceConfirmEndOfChat(msg, 'yes', (ticket, error) => { console.log(ticket, error); }); ``` - instanceSubmitFeedback to Ticket instances instanceSubmitFeedback has same functionality and signature as submitFeedback Only difference is, instanceSubmitFeedback is a method on ticket instance ``` // submitFeedback Ticket.submitFeedback(message, score, comment, () => { /* callback */ }); // instanceSubmitFeedback const t = new Ticket(); t.instanceSubmitFeedback(msg, 'yes', (ticket, error) => { console.log(ticket, error); }); ``` ----- Fixes: https://sendbird.atlassian.net/browse/SDKRLSD-961 Co-authored-by: HoonBaek <[email protected]> Co-authored-by: Chris Heo <[email protected]>
1 parent fdee409 commit 9e3b5be

File tree

10 files changed

+5350
-813
lines changed

10 files changed

+5350
-813
lines changed

CHANGELOG.md

Lines changed: 39 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,47 @@
11
## Change Log
22

3-
### v1.0.23(Mar 10, 2023)
3+
### v1.1.0(Aug 23, 2023)
44

5-
feat: add Ticket.getList()
6-
Add new API to get by groups, otherwise, we have to modify other methods to
7-
handle callback to the end& JS doesnt really have first class support for polymorphism
8-
```
9-
* @param {integer} filters.offset - list offset.
10-
* @param {object} filters.customFieldFilter - customField filter.
11-
* @param {string} filters.group - group key(to filter tickets by a team).
12-
* @param {string} filters.status - status to get tickets. ('all', 'CLOSED', 'OPEN').
13-
* @param {function} callback - Function(list:Array<Ticket>, err:Error)
14-
Ticket.getList(params, callback)
15-
```
16-
17-
### v1.0.21(Mar 29, 2022)
18-
19-
- Add `getAllTickets` interface in `Ticket`.
20-
21-
### v1.0.20(JAN 11, 2022)
22-
23-
- Bug-fix in sendbird version comparison logic.
24-
25-
### v1.0.19(JUN 2, 2021)
26-
27-
- Minor internal update.
28-
29-
### v1.0.18(MAY 21, 2021)
30-
31-
- Added `botKey` in `Ticket.create()`.
32-
- Added `cancel()` in `Ticket`.
33-
- Added `selectQuestion()` in `Ticket`.
34-
35-
### v1.0.17(JAN 29, 2021)
36-
37-
- (TypeScript) Fixed the type of `status` in `Ticket`.
38-
39-
### v1.0.16(DEC 1, 2020)
40-
41-
- Added `close()` in `Ticket`.
42-
43-
### v1.0.15(Jul 3, 2020)
44-
45-
- `SendBird.Desk.d.ts` to export `SendBirdDesk` as default.
46-
47-
### v1.0.14(Apr 27, 2020)
48-
49-
- Added `setRelatedCHannelUrls(channelUrls, callback)` in `Ticket`.
50-
- Minor bug-fixes in response payload.
51-
52-
### v1.0.13(Feb 21, 2020)
53-
54-
- TypeScript d.ts interface refactoring.
55-
56-
### v1.0.12(Feb 14, 2020)
57-
58-
- TypeScript d.ts interface fix.
59-
60-
### v1.0.11(Feb 6, 2020)
5+
- Convert all sourcecode to TS
6+
- Upgrade ChatSDK to v4
7+
- No more IE support
8+
- No error first callbacks
9+
- Use jest for testing
10+
- Use rollup for bundling
6111

62-
- TypeScript d.ts interface fix.
12+
Add new methods:
6313

64-
### v1.0.10(Jan 3, 2020)
14+
- Add new optional parameter platform to Desk.init
15+
DeviceOsPlatform comes from ChatSDK.
16+
We recommend you set it as `MOBILE_WEB`, in case you are using ReactNative
17+
Link -> https://sendbird.com/docs/chat/sdk/v4/javascript/ref/enums/_sendbird_chat.DeviceOsPlatform.html
6518

66-
- Added `setCustomFields(customFields, callback)` in `Ticket`.
67-
- Added `setPriority(priority, callback)` in `Ticket`.
19+
`init(sendbird: SendbirdGroupChat, platform?: DeviceOsPlatform)`
6820

69-
### v1.0.9(Dec 11, 2019)
70-
71-
- Bug-fix in `Ticket.getOpenedList()` and `Ticket.getClosedList()`.
72-
73-
### v1.0.8(Aug 23, 2019)
74-
75-
- Added `setCustomerCustomFields()` in `SendBirdDesk`.
76-
- Added `submitFeedback()` in `Ticket`.
77-
78-
### v1.0.7(Jul 12, 2019)
79-
80-
- Added `customFields` property to `Ticket`.
81-
82-
### v1.0.6(May 13, 2019)
83-
84-
- Added `reopen()` in `Ticket`
85-
- Added `groupKey` and `customFields` parameters to `Ticket.create()`.
86-
- Added `customFieldFilter` parameter to `getOpenedList()` and `getClosedList()` in `Ticket`.
87-
88-
### v1.0.5(Nov 23, 2018)
89-
90-
- Added SendBird parameter to SendBirdDesk.init().
91-
- Bug-fix in 'SendBird missing' error at init().
92-
93-
### v1.0.4(July 18, 2018)
94-
95-
- Added setApiHost to customize host.
96-
97-
### v1.0.3(July 4, 2018)
98-
99-
- Corrected package.json to fix library path.
100-
101-
### v1.0.2(May 21, 2018)
102-
103-
- Applied ticket assignment update.
104-
105-
### v1.0.1(Mar 30, 2018)
106-
107-
- Added SendBirdDesk.init().
108-
- Added SendBirdDesk.isDeskChannel(channel).
109-
- Added TypeScript interface - SendBird.Desk.d.ts.
110-
- Added console logger in debug mode.
111-
112-
### v1.0.0-zendesk(Mar 16, 2018)
21+
- instanceConfirmEndOfChat to Ticket instances
22+
```
23+
// confirmEndOfChat
24+
Ticket.confirmEndOfChat(msg, 'yes', (ticket, error) => {
25+
console.log(ticket, error);
26+
});
27+
28+
// instanceConfirmEndOfChat
29+
const t = new Ticket();
30+
t.instanceConfirmEndOfChat(msg, 'yes', (ticket, error) => {
31+
console.log(ticket, error);
32+
});
33+
```
34+
- instanceSubmitFeedback to Ticket instances
35+
instanceSubmitFeedback has same functionality and signature as submitFeedback
36+
Only difference is, instanceSubmitFeedback is a method on ticket instance
11337

114-
- Zendesk-integrated version release.
38+
```
39+
// submitFeedback
40+
Ticket.submitFeedback(message, score, comment, () => { /* callback */ });
41+
42+
// instanceSubmitFeedback
43+
const t = new Ticket();
44+
t.instanceSubmitFeedback(msg, 'yes', (ticket, error) => {
45+
console.log(ticket, error);
46+
});
47+
```

CHANGELOG_old.md

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
## Change Log
2+
3+
### v1.0.23(Mar 10, 2023)
4+
5+
feat: add Ticket.getList()
6+
Add new API to get by groups, otherwise, we have to modify other methods to
7+
handle callback to the end& JS doesnt really have first class support for polymorphism
8+
```
9+
* @param {integer} filters.offset - list offset.
10+
* @param {object} filters.customFieldFilter - customField filter.
11+
* @param {string} filters.group - group key(to filter tickets by a team).
12+
* @param {string} filters.status - status to get tickets. ('all', 'CLOSED', 'OPEN').
13+
* @param {function} callback - Function(list:Array<Ticket>, err:Error)
14+
Ticket.getList(params, callback)
15+
```
16+
17+
### v1.0.21(Mar 29, 2022)
18+
19+
- Add `getAllTickets` interface in `Ticket`.
20+
21+
### v1.0.20(JAN 11, 2022)
22+
23+
- Bug-fix in sendbird version comparison logic.
24+
25+
### v1.0.19(JUN 2, 2021)
26+
27+
- Minor internal update.
28+
29+
### v1.0.18(MAY 21, 2021)
30+
31+
- Added `botKey` in `Ticket.create()`.
32+
- Added `cancel()` in `Ticket`.
33+
- Added `selectQuestion()` in `Ticket`.
34+
35+
### v1.0.17(JAN 29, 2021)
36+
37+
- (TypeScript) Fixed the type of `status` in `Ticket`.
38+
39+
### v1.0.16(DEC 1, 2020)
40+
41+
- Added `close()` in `Ticket`.
42+
43+
### v1.0.15(Jul 3, 2020)
44+
45+
- `SendBird.Desk.d.ts` to export `SendBirdDesk` as default.
46+
47+
### v1.0.14(Apr 27, 2020)
48+
49+
- Added `setRelatedCHannelUrls(channelUrls, callback)` in `Ticket`.
50+
- Minor bug-fixes in response payload.
51+
52+
### v1.0.13(Feb 21, 2020)
53+
54+
- TypeScript d.ts interface refactoring.
55+
56+
### v1.0.12(Feb 14, 2020)
57+
58+
- TypeScript d.ts interface fix.
59+
60+
### v1.0.11(Feb 6, 2020)
61+
62+
- TypeScript d.ts interface fix.
63+
64+
### v1.0.10(Jan 3, 2020)
65+
66+
- Added `setCustomFields(customFields, callback)` in `Ticket`.
67+
- Added `setPriority(priority, callback)` in `Ticket`.
68+
69+
### v1.0.9(Dec 11, 2019)
70+
71+
- Bug-fix in `Ticket.getOpenedList()` and `Ticket.getClosedList()`.
72+
73+
### v1.0.8(Aug 23, 2019)
74+
75+
- Added `setCustomerCustomFields()` in `SendBirdDesk`.
76+
- Added `submitFeedback()` in `Ticket`.
77+
78+
### v1.0.7(Jul 12, 2019)
79+
80+
- Added `customFields` property to `Ticket`.
81+
82+
### v1.0.6(May 13, 2019)
83+
84+
- Added `reopen()` in `Ticket`
85+
- Added `groupKey` and `customFields` parameters to `Ticket.create()`.
86+
- Added `customFieldFilter` parameter to `getOpenedList()` and `getClosedList()` in `Ticket`.
87+
88+
### v1.0.5(Nov 23, 2018)
89+
90+
- Added SendBird parameter to SendBirdDesk.init().
91+
- Bug-fix in 'SendBird missing' error at init().
92+
93+
### v1.0.4(July 18, 2018)
94+
95+
- Added setApiHost to customize host.
96+
97+
### v1.0.3(July 4, 2018)
98+
99+
- Corrected package.json to fix library path.
100+
101+
### v1.0.2(May 21, 2018)
102+
103+
- Applied ticket assignment update.
104+
105+
### v1.0.1(Mar 30, 2018)
106+
107+
- Added SendBirdDesk.init().
108+
- Added SendBirdDesk.isDeskChannel(channel).
109+
- Added TypeScript interface - SendBird.Desk.d.ts.
110+
- Added console logger in debug mode.
111+
112+
### v1.0.0-zendesk(Mar 16, 2018)
113+
114+
- Zendesk-integrated version release.
115+

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# SendBird SDK LICENSE
1+
#SendBird SDK LICENSE
22

3-
This is an agreement between You ("You") and SendBird, Inc., the developer of SendBird, located at 400 1st Ave, San Mateo, CA 94401, ("SendBird") regarding Your use of the SendBird SDK and any associated documentation or other materials made available by SendBird (collectively the "SDK"). This agreement applies to any updates or supplements for the SDK, unless other terms accompany those items. If so, those other terms apply.
3+
This is an agreement between You ("You") and SendBird DBA (Smile Family, Inc.), the developer of SendBird, located at 541 Jefferson Ave. Suite 100 Redwood City, CA 94063, ("SendBird") regarding Your use of the SendBirdCS SDK and any associated documentation or other materials made available by SendBird (collectively the "SDK"). This agreement applies to any updates or supplements for the SDK, unless other terms accompany those items. If so, those other terms apply.
44

55
By installing, accessing or otherwise using the SDK, You accept the terms of this agreement. If You do not agree to the terms of this agreement, do not install, access or use the SDK.
66

0 commit comments

Comments
 (0)