Skip to content

v1.1.0(Aug 23, 2023) #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 39 additions & 106 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,114 +1,47 @@
## Change Log

### v1.0.23(Mar 10, 2023)
### v1.1.0(Aug 23, 2023)

feat: add Ticket.getList()
Add new API to get by groups, otherwise, we have to modify other methods to
handle callback to the end& JS doesnt really have first class support for polymorphism
```
* @param {integer} filters.offset - list offset.
* @param {object} filters.customFieldFilter - customField filter.
* @param {string} filters.group - group key(to filter tickets by a team).
* @param {string} filters.status - status to get tickets. ('all', 'CLOSED', 'OPEN').
* @param {function} callback - Function(list:Array<Ticket>, err:Error)
Ticket.getList(params, callback)
```

### v1.0.21(Mar 29, 2022)

- Add `getAllTickets` interface in `Ticket`.

### v1.0.20(JAN 11, 2022)

- Bug-fix in sendbird version comparison logic.

### v1.0.19(JUN 2, 2021)

- Minor internal update.

### v1.0.18(MAY 21, 2021)

- Added `botKey` in `Ticket.create()`.
- Added `cancel()` in `Ticket`.
- Added `selectQuestion()` in `Ticket`.

### v1.0.17(JAN 29, 2021)

- (TypeScript) Fixed the type of `status` in `Ticket`.

### v1.0.16(DEC 1, 2020)

- Added `close()` in `Ticket`.

### v1.0.15(Jul 3, 2020)

- `SendBird.Desk.d.ts` to export `SendBirdDesk` as default.

### v1.0.14(Apr 27, 2020)

- Added `setRelatedCHannelUrls(channelUrls, callback)` in `Ticket`.
- Minor bug-fixes in response payload.

### v1.0.13(Feb 21, 2020)

- TypeScript d.ts interface refactoring.

### v1.0.12(Feb 14, 2020)

- TypeScript d.ts interface fix.

### v1.0.11(Feb 6, 2020)
- 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

- TypeScript d.ts interface fix.
Add new methods:

### v1.0.10(Jan 3, 2020)
- 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

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

### v1.0.9(Dec 11, 2019)

- Bug-fix in `Ticket.getOpenedList()` and `Ticket.getClosedList()`.

### v1.0.8(Aug 23, 2019)

- Added `setCustomerCustomFields()` in `SendBirdDesk`.
- Added `submitFeedback()` in `Ticket`.

### v1.0.7(Jul 12, 2019)

- Added `customFields` property to `Ticket`.

### v1.0.6(May 13, 2019)

- Added `reopen()` in `Ticket`
- Added `groupKey` and `customFields` parameters to `Ticket.create()`.
- Added `customFieldFilter` parameter to `getOpenedList()` and `getClosedList()` in `Ticket`.

### v1.0.5(Nov 23, 2018)

- Added SendBird parameter to SendBirdDesk.init().
- Bug-fix in 'SendBird missing' error at init().

### v1.0.4(July 18, 2018)

- Added setApiHost to customize host.

### v1.0.3(July 4, 2018)

- Corrected package.json to fix library path.

### v1.0.2(May 21, 2018)

- Applied ticket assignment update.

### v1.0.1(Mar 30, 2018)

- Added SendBirdDesk.init().
- Added SendBirdDesk.isDeskChannel(channel).
- Added TypeScript interface - SendBird.Desk.d.ts.
- Added console logger in debug mode.

### v1.0.0-zendesk(Mar 16, 2018)
- 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

- Zendesk-integrated version release.
```
// submitFeedback
Ticket.submitFeedback(message, score, comment, () => { /* callback */ });

// instanceSubmitFeedback
const t = new Ticket();
t.instanceSubmitFeedback(msg, 'yes', (ticket, error) => {
console.log(ticket, error);
});
```
115 changes: 115 additions & 0 deletions CHANGELOG_old.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
## Change Log

### v1.0.23(Mar 10, 2023)

feat: add Ticket.getList()
Add new API to get by groups, otherwise, we have to modify other methods to
handle callback to the end& JS doesnt really have first class support for polymorphism
```
* @param {integer} filters.offset - list offset.
* @param {object} filters.customFieldFilter - customField filter.
* @param {string} filters.group - group key(to filter tickets by a team).
* @param {string} filters.status - status to get tickets. ('all', 'CLOSED', 'OPEN').
* @param {function} callback - Function(list:Array<Ticket>, err:Error)
Ticket.getList(params, callback)
```

### v1.0.21(Mar 29, 2022)

- Add `getAllTickets` interface in `Ticket`.

### v1.0.20(JAN 11, 2022)

- Bug-fix in sendbird version comparison logic.

### v1.0.19(JUN 2, 2021)

- Minor internal update.

### v1.0.18(MAY 21, 2021)

- Added `botKey` in `Ticket.create()`.
- Added `cancel()` in `Ticket`.
- Added `selectQuestion()` in `Ticket`.

### v1.0.17(JAN 29, 2021)

- (TypeScript) Fixed the type of `status` in `Ticket`.

### v1.0.16(DEC 1, 2020)

- Added `close()` in `Ticket`.

### v1.0.15(Jul 3, 2020)

- `SendBird.Desk.d.ts` to export `SendBirdDesk` as default.

### v1.0.14(Apr 27, 2020)

- Added `setRelatedCHannelUrls(channelUrls, callback)` in `Ticket`.
- Minor bug-fixes in response payload.

### v1.0.13(Feb 21, 2020)

- TypeScript d.ts interface refactoring.

### v1.0.12(Feb 14, 2020)

- TypeScript d.ts interface fix.

### v1.0.11(Feb 6, 2020)

- TypeScript d.ts interface fix.

### v1.0.10(Jan 3, 2020)

- Added `setCustomFields(customFields, callback)` in `Ticket`.
- Added `setPriority(priority, callback)` in `Ticket`.

### v1.0.9(Dec 11, 2019)

- Bug-fix in `Ticket.getOpenedList()` and `Ticket.getClosedList()`.

### v1.0.8(Aug 23, 2019)

- Added `setCustomerCustomFields()` in `SendBirdDesk`.
- Added `submitFeedback()` in `Ticket`.

### v1.0.7(Jul 12, 2019)

- Added `customFields` property to `Ticket`.

### v1.0.6(May 13, 2019)

- Added `reopen()` in `Ticket`
- Added `groupKey` and `customFields` parameters to `Ticket.create()`.
- Added `customFieldFilter` parameter to `getOpenedList()` and `getClosedList()` in `Ticket`.

### v1.0.5(Nov 23, 2018)

- Added SendBird parameter to SendBirdDesk.init().
- Bug-fix in 'SendBird missing' error at init().

### v1.0.4(July 18, 2018)

- Added setApiHost to customize host.

### v1.0.3(July 4, 2018)

- Corrected package.json to fix library path.

### v1.0.2(May 21, 2018)

- Applied ticket assignment update.

### v1.0.1(Mar 30, 2018)

- Added SendBirdDesk.init().
- Added SendBirdDesk.isDeskChannel(channel).
- Added TypeScript interface - SendBird.Desk.d.ts.
- Added console logger in debug mode.

### v1.0.0-zendesk(Mar 16, 2018)

- Zendesk-integrated version release.

4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SendBird SDK LICENSE
#SendBird SDK LICENSE

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.
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.

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.

Expand Down
Loading