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

v1.1.0(Aug 23, 2023) #8

merged 1 commit into from
Aug 24, 2023

Conversation

sravan-s
Copy link
Contributor

  • 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:

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 hoon@sendbird.com
Co-authored-by: Chris Heo chrisallo.h@gmail.com

- 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);
});
```
@sravan-s sravan-s merged commit 9e3b5be into master Aug 24, 2023
@sravan-s sravan-s deleted the release/1.1.0 branch August 24, 2023 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants