Skip to content

Commit 7d14c97

Browse files
committed
v3.0.93
1 parent c341f1a commit 7d14c97

File tree

6 files changed

+54
-18
lines changed

6 files changed

+54
-18
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
22
=========
33

4+
## v3.0.93(JAN 17, 2019)
5+
* Add push trigger option to enable/disable remote push notification.
6+
* Added `setPushTriggerOption(option, callback)` to `SendBird`. It determines whether the current user receives remote push notification in all group channels.
7+
* Added `getPushTriggerOption(callback)` to `SendBird`. It returns the current push trigger option setting for all group channels.
8+
* Added `setMyPushTriggerOption(option, callback)` to `GroupChannel`. It determines whether the current user receives remote push notification in the group channel.
9+
* Added `getMyPushTriggerOption(callback)` to `GroupChannel`. It returns the current push trigger option setting for the group channel.
10+
* Snooze or stop snooze remote push notification in specific duration.
11+
* Added `setSnoozePeriod(snoozeOn, startTs, endTs, callback)` into `SendBird`. It enables or disables snooze in the period.
12+
* Added `getSnoozePeriod(callback)` into `SendBird`. It returns the current snooze setting for the current user.
13+
414
## v3.0.92(DEC 13, 2018)
515
* Minor bug fixed.
616

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,17 @@ For more information about `SyncManager`, please refer to [SyncManager README](h
4949

5050
# [Documentation](https://docs.sendbird.com/javascript)
5151

52-
## v3.0.92(DEC 13, 2018)
52+
## v3.0.93(JAN 17, 2019)
5353
If you want to check the record of other version, go to [Change Log](https://github.com/smilefam/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md).
54-
* Minor bug fixed.
55-
56-
54+
* Add push trigger option to enable/disable remote push notification.
55+
* Added `setPushTriggerOption(option, callback)` to `SendBird`. It determines whether the current user receives remote push notification in all group channels.
56+
* Added `getPushTriggerOption(callback)` to `SendBird`. It returns the current push trigger option setting for all group channels.
57+
* Added `setMyPushTriggerOption(option, callback)` to `GroupChannel`. It determines whether the current user receives remote push notification in the group channel.
58+
* Added `getMyPushTriggerOption(callback)` to `GroupChannel`. It returns the current push trigger option setting for the group channel.
59+
* Snooze or stop snooze remote push notification in specific duration.
60+
* Added `setSnoozePeriod(snoozeOn, startTs, endTs, callback)` into `SendBird`. It enables or disables snooze in the period.
61+
* Added `getSnoozePeriod(callback)` into `SendBird`. It returns the current snooze setting for the current user.
62+
5763
## [Change Log](https://github.com/smilefam/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md)
5864

5965

SendBird.d.ts

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Type Definitions for SendBird SDK v3.0.92
2+
* Type Definitions for SendBird SDK v3.0.93
33
* homepage: https://sendbird.com/
44
* git: https://github.com/smilefam/SendBird-SDK-JavaScript
55
*/
@@ -126,6 +126,9 @@ declare namespace SendBird {
126126
setPushTemplate(templateName: string, callback?: pushSettingCallback): void;
127127
getPushTemplate(callback?: pushSettingCallback): void;
128128

129+
setPushTriggerOption(pushTriggerOption: 'all' | 'mention_only' | 'off', callback: commonCallback): void;
130+
getPushTriggerOption(callback: getPushTriggerOptionCallback): void;
131+
129132
setDoNotDisturb(
130133
doNotDisturbOn: boolean,
131134
startHour: number,
@@ -137,6 +140,14 @@ declare namespace SendBird {
137140
): void;
138141
getDoNotDisturb(callback: commonCallback): void;
139142

143+
setSnoozePeriod(
144+
snoozeOn: boolean,
145+
startTs: number,
146+
endTs: number,
147+
callback?: commonCallback
148+
): void;
149+
getSnoozePeriod(callback: commonCallback): void;
150+
140151
// Background/Foreground Appstate for push notifications in React Native / Ionic
141152
setBackgroundState(): void;
142153
setForegroundState(): void;
@@ -275,11 +286,13 @@ declare namespace SendBird {
275286
}
276287

277288
interface GroupChannelTotalUnreadMessageCountParams {
289+
new(): GroupChannelTotalUnreadMessageCountParams;
278290
channelCustomTypesFilter: Array<string>;
279291
superChannelFilter: 'all' | 'super' | 'nonsuper';
280292
}
281293

282294
interface UserMessageParams {
295+
new(): UserMessageParams;
283296
message: string;
284297
data: string;
285298
customType: string;
@@ -302,6 +315,7 @@ declare namespace SendBird {
302315
}
303316

304317
interface FileMessageParams {
318+
new(): FileMessageParams;
305319
file: File;
306320
fileUrl: string;
307321
fileName: string;
@@ -1077,6 +1091,7 @@ declare namespace SendBird {
10771091
* GroupChannel
10781092
*/
10791093
interface GroupChannelParams {
1094+
new(): GroupChannelParams;
10801095
isDistinct: boolean;
10811096
isSuper: boolean;
10821097
isPublic: boolean;
@@ -1098,6 +1113,7 @@ declare namespace SendBird {
10981113
}
10991114

11001115
interface ScheduledUserMessageParams {
1116+
new(): ScheduledUserMessageParams;
11011117
message: string;
11021118
data: string;
11031119
customType: string;
@@ -1126,12 +1142,14 @@ declare namespace SendBird {
11261142
type groupChannelCallback = (groupChannel: GroupChannel, error: SendBirdError) => void;
11271143
type distinctGroupChannelCallback = (response: DistinctGroupChannelResponse, error: SendBirdError) => void;
11281144
type getPushPreferenceCallback = (isPushOn: boolean, error: SendBirdError) => void;
1145+
type getPushTriggerOptionCallback = (pushTriggerOption: 'all' | 'mention_only' | 'off' | 'default', error: SendBirdError) => void;
11291146
interface GroupChannel extends BaseChannel {
11301147
isHidden: boolean;
11311148
isDistinct: boolean;
11321149
isSuper: boolean;
11331150
isPublic: boolean;
1134-
isPushEnabled: boolean;
1151+
isPushEnabled: boolean; // DEPRECASED
1152+
myPushTriggerOption: 'default' | 'all' | 'mention_only' | 'off';
11351153
myCountPreference: string;
11361154
lastMessage: UserMessage | FileMessage | AdminMessage;
11371155
unreadMessageCount: number;
@@ -1197,8 +1215,10 @@ declare namespace SendBird {
11971215
isTyping(): boolean;
11981216
getTypingMembers(): Array<Member>;
11991217

1200-
setPushPreference(pushOn: boolean, callback: commonCallback): void;
1201-
getPushPreference(callback: getPushPreferenceCallback): void;
1218+
setPushPreference(pushOn: boolean, callback: commonCallback): void; // DEPRECATED
1219+
getPushPreference(callback: getPushPreferenceCallback): void; // DEPRECATED
1220+
setMyPushTriggerOption(pushTriggerOption: 'all' | 'mention_only' | 'off' | 'default', callback: getPushTriggerOptionCallback): void;
1221+
getMyPushTriggerOption(callback: getPushTriggerOptionCallback): void;
12021222
setMyCountPreference(preference: 'all' | 'unread_message_count_only' | 'unread_mention_count_only' | 'off', callback: commonCallback): void;
12031223

12041224
createMemberListQuery(): GroupChannelMemberListQuery;

SendBird.min.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.92",
3+
"version": "3.0.93",
44
"authors": ["SendBird <support@sendbird.com>"],
55
"homepage": "https://github.com/smilefam/SendBird-SDK-JavaScript",
66
"description": "SendBird JavaScript SDK",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.92",
3+
"version": "3.0.93",
44
"description": "SendBird JavaScript SDK",
55
"main": "SendBird.min.js",
66
"dependencies": {

0 commit comments

Comments
 (0)