Comparing version 3.0.116 to 3.0.117
{ | ||
"name": "sendbird", | ||
"version": "3.0.116", | ||
"version": "3.0.117", | ||
"authors": ["SendBird <support@sendbird.com>"], | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/sendbird/SendBird-SDK-JavaScript", |
# Changelog | ||
## v3.0.117(JAN 15, 2020) | ||
- Added `createMessageSearchQuery()` in `SendBird`. | ||
- `MessageSearchQuery` searches messages with the keyword. | ||
- Options like `exactMatch`, `channelUrl`, `channelCustomType`, `messageTimestampFrom`, `messageTimestampTo`, `order` are available for fine-tuned search. | ||
- Improved stability. | ||
## v3.0.116(JAN 10, 2020) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "sendbird", | ||
"version": "3.0.116", | ||
"version": "3.0.117", | ||
"description": "SendBird JavaScript SDK", | ||
@@ -32,2 +32,2 @@ "main": "SendBird.min.js", | ||
"typings": "SendBird.d.ts" | ||
} | ||
} |
@@ -48,6 +48,9 @@ [![npm](https://img.shields.io/npm/v/sendbird.svg?style=popout&colorB=red)](https://www.npmjs.com/package/sendbird) | ||
## v3.0.116(JAN 10, 2020) | ||
## v3.0.117(JAN 15, 2020) | ||
If you want to check the record of other version, go to [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md). | ||
- Added `createMessageSearchQuery()` in `SendBird`. | ||
- `MessageSearchQuery` searches messages with the keyword. | ||
- Options like `exactMatch`, `channelUrl`, `channelCustomType`, `messageTimestampFrom`, `messageTimestampTo`, `order` are available for fine-tuned search. | ||
- Improved stability. | ||
@@ -54,0 +57,0 @@ |
/** | ||
* Type Definitions for SendBird SDK v3.0.116 | ||
* Type Definitions for SendBird SDK v3.0.117 | ||
* homepage: https://sendbird.com/ | ||
@@ -14,3 +14,3 @@ * git: https://github.com/sendbird/SendBird-SDK-JavaScript | ||
version: number; | ||
new({ appId }: { appId: string }): SendBird.SendBirdInstance; | ||
new ({ appId }: { appId: string }): SendBird.SendBirdInstance; | ||
getInstance(): SendBird.SendBirdInstance; | ||
@@ -46,3 +46,3 @@ } | ||
deviceTokens: Array<string>; | ||
type: 'gcm' | 'apns' | 'apns_voip'; | ||
type: "gcm" | "apns" | "apns_voip"; | ||
hasMore: boolean; | ||
@@ -114,4 +114,4 @@ token: string; | ||
createApplicationUserListQuery(): ApplicationUserListQuery; | ||
createBlockedUserListQuery(): BlockedUserListQuery; | ||
createMessageSearchQuery(keyword: String, options: MessageSearchQueryOptions): MessageSearchQuery; | ||
@@ -139,3 +139,3 @@ blockUser(userToBlock: User, callback?: userCallback): void; | ||
unregisterPushTokenAllForCurrentUser(callback?: commonCallback): void; // This removes all push tokens including APNS/GCM | ||
getMyPushTokensByToken(token: string, type: 'gcm' | 'apns' | 'apns_voip', callback: getMyPushTokensHandler): void; | ||
getMyPushTokensByToken(token: string, type: "gcm" | "apns" | "apns_voip", callback: getMyPushTokensHandler): void; | ||
@@ -145,3 +145,3 @@ setPushTemplate(templateName: string, callback?: pushSettingCallback): void; | ||
setPushTriggerOption(pushTriggerOption: 'all' | 'mention_only' | 'off', callback: commonCallback): void; | ||
setPushTriggerOption(pushTriggerOption: "all" | "mention_only" | "off", callback: commonCallback): void; | ||
getPushTriggerOption(callback: getPushTriggerOptionCallback): void; | ||
@@ -192,6 +192,3 @@ | ||
getUnreadItemCount(keys: Array<string>, callback: commonCallback): void; | ||
getTotalUnreadMessageCount( | ||
groupChannelTotalUnreadMessageCountParams: GroupChannelTotalUnreadMessageCountParams, | ||
callback: groupChannelCountCallback | ||
): void; | ||
getTotalUnreadMessageCount(groupChannelTotalUnreadMessageCountParams: GroupChannelTotalUnreadMessageCountParams, callback: groupChannelCountCallback): void; | ||
getTotalUnreadMessageCount(callback: groupChannelCountCallback): void; | ||
@@ -205,24 +202,6 @@ getTotalUnreadMessageCount(channelCustomTypes: Array<string>, callback: groupChannelCountCallback): void; | ||
getMyGroupChannelChangeLogsByToken( | ||
token: string, | ||
customTypes: Array<string>, | ||
callback: getGroupChannelChangeLogsHandler | ||
): void; | ||
getMyGroupChannelChangeLogsByToken( | ||
token: string, | ||
customTypes: Array<string>, | ||
includeEmpty: boolean, | ||
callback: getGroupChannelChangeLogsHandler | ||
): void; | ||
getMyGroupChannelChangeLogsByTimestamp( | ||
ts: number, | ||
customTypes: Array<string>, | ||
callback: getGroupChannelChangeLogsHandler | ||
): void; | ||
getMyGroupChannelChangeLogsByTimestamp( | ||
ts: number, | ||
customTypes: Array<string>, | ||
includeEmpty: boolean, | ||
callback: getGroupChannelChangeLogsHandler | ||
): void; | ||
getMyGroupChannelChangeLogsByToken(token: string, customTypes: Array<string>, callback: getGroupChannelChangeLogsHandler): void; | ||
getMyGroupChannelChangeLogsByToken(token: string, customTypes: Array<string>, includeEmpty: boolean, callback: getGroupChannelChangeLogsHandler): void; | ||
getMyGroupChannelChangeLogsByTimestamp(ts: number, customTypes: Array<string>, callback: getGroupChannelChangeLogsHandler): void; | ||
getMyGroupChannelChangeLogsByTimestamp(ts: number, customTypes: Array<string>, includeEmpty: boolean, callback: getGroupChannelChangeLogsHandler): void; | ||
} | ||
@@ -241,5 +220,20 @@ | ||
} | ||
interface MessageSearchQuery { | ||
hasNext: boolean; | ||
isLoading: boolean; | ||
next(callback: messageListCallback): void; | ||
} | ||
interface MessageSearchQueryOptions { | ||
limit: number; | ||
reverse: boolean; | ||
exactMatch: boolean; | ||
channelUrl: string; | ||
channelCustomType: string; | ||
messageTimestampFrom: number; | ||
messageTimestampTo: number; | ||
order: "score" | "ts"; | ||
} | ||
interface UserEventHandlerStatic { | ||
new(): UserEventHandler; | ||
new (): UserEventHandler; | ||
} | ||
@@ -252,3 +246,3 @@ interface UserEventHandler { | ||
interface ChannelHandlerStatic { | ||
new(): ChannelHandler; | ||
new (): ChannelHandler; | ||
} | ||
@@ -287,3 +281,3 @@ interface ChannelHandler { | ||
interface ConnectionHandlerStatic { | ||
new(): ConnectionHandler; | ||
new (): ConnectionHandler; | ||
} | ||
@@ -337,9 +331,9 @@ interface ConnectionHandler { | ||
interface GroupChannelTotalUnreadMessageCountParams { | ||
new(): GroupChannelTotalUnreadMessageCountParams; | ||
new (): GroupChannelTotalUnreadMessageCountParams; | ||
channelCustomTypesFilter: Array<string>; | ||
superChannelFilter: 'all' | 'super' | 'nonsuper'; | ||
superChannelFilter: "all" | "super" | "nonsuper"; | ||
} | ||
interface UserMessageParams { | ||
new(): UserMessageParams; | ||
new (): UserMessageParams; | ||
message: string; | ||
@@ -350,7 +344,7 @@ data: string; | ||
translationTargetLanguages: Array<string>; | ||
mentionType: 'users' | 'channel'; | ||
mentionType: "users" | "channel"; | ||
mentionedUserIds: Array<string>; | ||
mentionedUsers: Array<User>; | ||
metaArrayKeys: Array<string>; | ||
pushNotificationDeliveryOption: 'default' | 'suppress'; | ||
pushNotificationDeliveryOption: "default" | "suppress"; | ||
} | ||
@@ -362,3 +356,3 @@ interface UserMessage extends BaseMessageInstance { | ||
translations: Object; | ||
requestState: 'none' | 'pending' | 'failed' | 'succeeded'; | ||
requestState: "none" | "pending" | "failed" | "succeeded"; | ||
requestedMentionUserIds: Array<string>; | ||
@@ -373,3 +367,3 @@ errorCode: number; | ||
interface FileMessageParams { | ||
new(): FileMessageParams; | ||
new (): FileMessageParams; | ||
file: File; | ||
@@ -383,7 +377,7 @@ fileUrl: string; | ||
thumbnailSizes: Array<ThumbnailSize>; | ||
mentionType: 'users' | 'channel'; | ||
mentionType: "users" | "channel"; | ||
mentionedUserIds: Array<string>; | ||
mentionedUsers: Array<User>; | ||
metaArrayKeys: Array<string>; | ||
pushNotificationDeliveryOption: 'default' | 'suppress'; | ||
pushNotificationDeliveryOption: "default" | "suppress"; | ||
} | ||
@@ -398,3 +392,3 @@ interface FileMessage extends BaseMessageInstance { | ||
thumbnails: Array<ThumbnailObject>; | ||
requestState: 'none' | 'pending' | 'failed' | 'succeeded'; | ||
requestState: "none" | "pending" | "failed" | "succeeded"; | ||
requestedMentionUserIds: Array<string>; | ||
@@ -456,3 +450,3 @@ errorCode: number; | ||
interface Member extends User { | ||
state: 'invited' | 'joined'; | ||
state: "invited" | "joined"; | ||
isBlockedByMe: boolean; | ||
@@ -509,17 +503,7 @@ isBlockingMe: boolean; | ||
getMessageChangeLogsByToken(token: string, includeMetaArray: boolean, callback: getMessageChangeLogsHandler): void; | ||
getMessageChangeLogsByToken( | ||
token: string, | ||
includeMetaArray: boolean, | ||
includeReaction: boolean, | ||
callback: getMessageChangeLogsHandler | ||
): void; | ||
getMessageChangeLogsByToken(token: string, includeMetaArray: boolean, includeReaction: boolean, callback: getMessageChangeLogsHandler): void; | ||
getMessageChangeLogsByTimestamp(ts: number, callback: getMessageChangeLogsHandler): void; | ||
getMessageChangeLogsByTimestamp(ts: number, includeMetaArray: boolean, callback: getMessageChangeLogsHandler): void; | ||
getMessageChangeLogsByTimestamp( | ||
ts: number, | ||
includeMetaArray: boolean, | ||
includeReaction: boolean, | ||
callback: getMessageChangeLogsHandler | ||
): void; | ||
getMessageChangeLogsByTimestamp(ts: number, includeMetaArray: boolean, includeReaction: boolean, callback: getMessageChangeLogsHandler): void; | ||
@@ -790,11 +774,7 @@ getMyMutedInfo(callback: getMyMutedInfoHandler): void; | ||
sendFileMessage(file: File, data: string, customType: string, callback: messageCallback): FileMessage; // DEPRECATED | ||
sendFileMessage(file: File, data: string, customType: string, thumbnailSizes: Array<ThumbnailSize>, callback: messageCallback): FileMessage; // DEPRECATED | ||
sendFileMessage(file: File, name: string, type: string, size: number, data: string, callback: messageCallback): FileMessage; // DEPRECATED | ||
sendFileMessage(file: File, name: string, type: string, size: number, data: string, customType: string, callback: messageCallback): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: File, | ||
data: string, | ||
customType: string, | ||
thumbnailSizes: Array<ThumbnailSize>, | ||
callback: messageCallback | ||
): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: File, | ||
name: string, | ||
@@ -804,20 +784,3 @@ type: string, | ||
data: string, | ||
callback: messageCallback | ||
): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: File, | ||
name: string, | ||
type: string, | ||
size: number, | ||
data: string, | ||
customType: string, | ||
callback: messageCallback | ||
): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: File, | ||
name: string, | ||
type: string, | ||
size: number, | ||
data: string, | ||
customType: string, | ||
thumbnailSizes: Array<ThumbnailSize>, | ||
@@ -827,25 +790,10 @@ callback: messageCallback | ||
sendFileMessage( | ||
fileMessageParams: FileMessageParams, | ||
progressHandler: fileUploadprogressHandler, | ||
callback: messageCallback | ||
): FileMessage; | ||
sendFileMessage(fileMessageParams: FileMessageParams, progressHandler: fileUploadprogressHandler, callback: messageCallback): FileMessage; | ||
sendFileMessage(file: File, progressHandler: fileUploadprogressHandler, callback: messageCallback): FileMessage; | ||
sendFileMessage(file: File, data: string, progressHandler: fileUploadprogressHandler, callback: messageCallback): FileMessage; // DEPRECATED | ||
sendFileMessage(file: File, data: string, customType: string, progressHandler: fileUploadprogressHandler, callback: messageCallback): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: File, | ||
data: string, | ||
progressHandler: fileUploadprogressHandler, | ||
callback: messageCallback | ||
): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: File, | ||
data: string, | ||
customType: string, | ||
progressHandler: fileUploadprogressHandler, | ||
callback: messageCallback | ||
): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: File, | ||
data: string, | ||
customType: string, | ||
thumbnailSizes: Array<ThumbnailSize>, | ||
@@ -889,36 +837,10 @@ progressHandler: fileUploadprogressHandler, | ||
sendFileMessage(file: string, data: string, customType: string, callback: messageCallback): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: string, | ||
name: string, | ||
type: string, | ||
size: number, | ||
data: string, | ||
callback: messageCallback | ||
): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: string, | ||
name: string, | ||
type: string, | ||
size: number, | ||
data: string, | ||
customType: string, | ||
callback: messageCallback | ||
): FileMessage; | ||
sendFileMessage(file: string, name: string, type: string, size: number, data: string, callback: messageCallback): FileMessage; // DEPRECATED | ||
sendFileMessage(file: string, name: string, type: string, size: number, data: string, customType: string, callback: messageCallback): FileMessage; | ||
sendFileMessage(file: string, progressHandler: fileUploadprogressHandler, callback: messageCallback): FileMessage; // DEPRECATED | ||
sendFileMessage(file: string, data: string, progressHandler: fileUploadprogressHandler, callback: messageCallback): FileMessage; // DEPRECATED | ||
sendFileMessage(file: string, data: string, customType: string, progressHandler: fileUploadprogressHandler, callback: messageCallback): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: string, | ||
data: string, | ||
progressHandler: fileUploadprogressHandler, | ||
callback: messageCallback | ||
): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: string, | ||
data: string, | ||
customType: string, | ||
progressHandler: fileUploadprogressHandler, | ||
callback: messageCallback | ||
): FileMessage; // DEPRECATED | ||
sendFileMessage( | ||
file: string, | ||
name: string, | ||
@@ -942,6 +864,3 @@ type: string, | ||
sendFileMessages( | ||
fileMessageParamsList: Array<FileMessageParams>, | ||
callbackObject: fileMessagesCallbackObject | ||
): Array<FileMessage>; | ||
sendFileMessages(fileMessageParamsList: Array<FileMessageParams>, callbackObject: fileMessagesCallbackObject): Array<FileMessage>; | ||
@@ -953,9 +872,3 @@ /** UserMessage */ | ||
sendUserMessage(message: string, data: string, customType: string, callback: messageCallback): UserMessage; // DEPRECATED | ||
sendUserMessage( | ||
message: string, | ||
data: string, | ||
customType: string, | ||
translationTargetLanguages: Array<string>, | ||
callback: messageCallback | ||
): UserMessage; | ||
sendUserMessage(message: string, data: string, customType: string, translationTargetLanguages: Array<string>, callback: messageCallback): UserMessage; | ||
@@ -966,7 +879,3 @@ resendUserMessage(userMessage: UserMessage, callback: messageCallback): void; | ||
translateUserMessage( | ||
message: UserMessage, | ||
translationTargetLanguages: Array<string>, | ||
callback: messageCallback | ||
): void; | ||
translateUserMessage(message: UserMessage, translationTargetLanguages: Array<string>, callback: messageCallback): void; | ||
@@ -976,9 +885,3 @@ /** Edit Message */ | ||
updateFileMessage(messageId: number, fileMessageParams: FileMessageParams, callback: messageCallback): void; | ||
updateUserMessage( | ||
messageId: number, | ||
message: string, | ||
data: string, | ||
customType: string, | ||
callback: messageCallback | ||
): void; | ||
updateUserMessage(messageId: number, message: string, data: string, customType: string, callback: messageCallback): void; | ||
updateUserMessage(messageId: number, userMessageParams: UserMessageParams, callback: messageCallback): void; | ||
@@ -990,7 +893,3 @@ deleteMessage(message: FileMessage | UserMessage, callback: commonCallback): void; | ||
addReaction(message: UserMessage | FileMessage | AdminMessage, key: string, callback: reactionEventCallback): void; | ||
deleteReaction( | ||
message: UserMessage | FileMessage | AdminMessage, | ||
key: string, | ||
callback: reactionEventCallback | ||
): void; | ||
deleteReaction(message: UserMessage | FileMessage | AdminMessage, key: string, callback: reactionEventCallback): void; | ||
@@ -1018,33 +917,9 @@ /** MetaData */ | ||
/** MessageMetaArray */ | ||
createMessageMetaArrayKeys( | ||
message: UserMessage | FileMessage | AdminMessage, | ||
keys: Array<string>, | ||
callback: commonCallback | ||
): void; | ||
deleteMessageMetaArrayKeys( | ||
message: UserMessage | FileMessage | AdminMessage, | ||
keys: Array<string>, | ||
callback: commonCallback | ||
): void; | ||
addMessageMetaArrayValues( | ||
message: UserMessage | FileMessage | AdminMessage, | ||
data: Array<MessageMetaArray>, | ||
callback: commonCallback | ||
): void; | ||
removeMessageMetaArrayValues( | ||
message: UserMessage | FileMessage | AdminMessage, | ||
data: Array<MessageMetaArray>, | ||
callback: commonCallback | ||
): void; | ||
createMessageMetaArrayKeys(message: UserMessage | FileMessage | AdminMessage, keys: Array<string>, callback: commonCallback): void; | ||
deleteMessageMetaArrayKeys(message: UserMessage | FileMessage | AdminMessage, keys: Array<string>, callback: commonCallback): void; | ||
addMessageMetaArrayValues(message: UserMessage | FileMessage | AdminMessage, data: Array<MessageMetaArray>, callback: commonCallback): void; | ||
removeMessageMetaArrayValues(message: UserMessage | FileMessage | AdminMessage, data: Array<MessageMetaArray>, callback: commonCallback): void; | ||
addMessageMetaArrayValues( | ||
message: UserMessage | FileMessage | AdminMessage, | ||
data: Object, | ||
callback: commonCallback | ||
): void; // DEPRECATED | ||
removeMessageMetaArrayValues( | ||
message: UserMessage | FileMessage | AdminMessage, | ||
data: Object, | ||
callback: commonCallback | ||
): void; // DEPRECATED | ||
addMessageMetaArrayValues(message: UserMessage | FileMessage | AdminMessage, data: Object, callback: commonCallback): void; // DEPRECATED | ||
removeMessageMetaArrayValues(message: UserMessage | FileMessage | AdminMessage, data: Object, callback: commonCallback): void; // DEPRECATED | ||
@@ -1054,14 +929,6 @@ /** Report */ | ||
reportUser(user: User, category: string, description: string, callback: commonCallback): void; | ||
reportMessage( | ||
message: UserMessage | FileMessage | AdminMessage, | ||
category: string, | ||
description: string, | ||
callback: commonCallback | ||
): void; | ||
reportMessage(message: UserMessage | FileMessage | AdminMessage, category: string, description: string, callback: commonCallback): void; | ||
} | ||
type messageListCallback = ( | ||
messageList: Array<UserMessage | FileMessage | AdminMessage>, | ||
error: SendBirdError | ||
) => void; | ||
type messageListCallback = (messageList: Array<UserMessage | FileMessage | AdminMessage>, error: SendBirdError) => void; | ||
interface MessageListQuery { | ||
@@ -1071,9 +938,3 @@ // DEPRECATED | ||
prev(messageTimestamp: number, limit: number, reverse: boolean, callback: messageListCallback): void; | ||
load( | ||
messageTimestamp: number, | ||
prevLimit: number, | ||
nextLimit: number, | ||
reverse: boolean, | ||
callback: messageListCallback | ||
): void; | ||
load(messageTimestamp: number, prevLimit: number, nextLimit: number, reverse: boolean, callback: messageListCallback): void; | ||
} | ||
@@ -1115,2 +976,3 @@ | ||
updateChannel(name: string, coverUrlOrImageFile: string | File, data: string, callback: openChannelCallback): void; | ||
updateChannel(name: string, coverUrlOrImageFile: string | File, data: string, operatorUserIds: Array<string> | string, callback: openChannelCallback): void; // DEPRECATED | ||
updateChannel( | ||
@@ -1121,9 +983,2 @@ name: string, | ||
operatorUserIds: Array<string> | string, | ||
callback: openChannelCallback | ||
): void; // DEPRECATED | ||
updateChannel( | ||
name: string, | ||
coverUrlOrImageFile: string | File, | ||
data: string, | ||
operatorUserIds: Array<string> | string, | ||
customType: string, | ||
@@ -1238,2 +1093,3 @@ callback: openChannelCallback | ||
createChannel(name: string, coverUrlOrImageFile: string | File, data: string, callback: openChannelCallback): void; // DEPRECATED | ||
createChannel(name: string, coverUrlOrImageFile: string | File, data: string, operatorUserIds: Array<string> | string, callback: openChannelCallback): void; // DEPRECATED | ||
createChannel( | ||
@@ -1244,9 +1100,2 @@ name: string, | ||
operatorUserIds: Array<string> | string, | ||
callback: openChannelCallback | ||
): void; // DEPRECATED | ||
createChannel( | ||
name: string, | ||
coverUrlOrImageFile: string | File, | ||
data: string, | ||
operatorUserIds: Array<string> | string, | ||
customType: string, | ||
@@ -1293,3 +1142,3 @@ callback: openChannelCallback | ||
scheduledTimezone: string; | ||
status: 'scheduled' | 'sent' | 'canceled' | 'failed'; | ||
status: "scheduled" | "sent" | "canceled" | "failed"; | ||
createdAt: number; | ||
@@ -1304,5 +1153,5 @@ updatedAt: number; | ||
metaArrays: Array<MessageMetaArray>; | ||
mentionType: 'users' | 'channel'; | ||
mentionType: "users" | "channel"; | ||
mentionedUsers: Array<User>; | ||
pushNotificationDeliveryOption: 'default' | 'suppress'; | ||
pushNotificationDeliveryOption: "default" | "suppress"; | ||
translationTargetLanguages: Array<string>; | ||
@@ -1322,3 +1171,3 @@ errorMessage: string; | ||
interface GroupChannelParams { | ||
new(): GroupChannelParams; | ||
new (): GroupChannelParams; | ||
isDistinct: boolean; | ||
@@ -1347,3 +1196,3 @@ isSuper: boolean; | ||
interface ScheduledUserMessageParams { | ||
new(): ScheduledUserMessageParams; | ||
new (): ScheduledUserMessageParams; | ||
message: string; | ||
@@ -1354,6 +1203,6 @@ data: string; | ||
metaArrayKeys: Array<string>; | ||
mentionType: 'users' | 'channel'; | ||
mentionType: "users" | "channel"; | ||
mentionedUserIds: Array<string>; | ||
mentionedUsers: Array<User>; | ||
pushNotificationDeliveryOption: 'default' | 'suppress'; | ||
pushNotificationDeliveryOption: "default" | "suppress"; | ||
year: number; | ||
@@ -1375,3 +1224,3 @@ month: number; | ||
interface MessageMetaArray { | ||
new(key: string, value: Array<string>): MessageMetaArray; | ||
new (key: string, value: Array<string>): MessageMetaArray; | ||
key: string; | ||
@@ -1381,3 +1230,3 @@ value: Array<string>; | ||
interface Reaction { | ||
new(): Reaction; | ||
new (): Reaction; | ||
key: string; | ||
@@ -1388,7 +1237,7 @@ userIds: Array<string>; | ||
interface ReactionEvent { | ||
new(): ReactionEvent; | ||
new (): ReactionEvent; | ||
messageId: string; | ||
userId: string; | ||
key: string; | ||
operation: 'add' | 'delete'; | ||
operation: "add" | "delete"; | ||
updatedAt: number; | ||
@@ -1400,6 +1249,3 @@ } | ||
type getPushPreferenceCallback = (isPushOn: boolean, error: SendBirdError) => void; | ||
type getPushTriggerOptionCallback = ( | ||
pushTriggerOption: 'all' | 'mention_only' | 'off' | 'default', | ||
error: SendBirdError | ||
) => void; | ||
type getPushTriggerOptionCallback = (pushTriggerOption: "all" | "mention_only" | "off" | "default", error: SendBirdError) => void; | ||
interface GroupChannel extends BaseChannel { | ||
@@ -1411,3 +1257,3 @@ isHidden: boolean; | ||
isPushEnabled: boolean; // DEPRECATED | ||
myPushTriggerOption: 'default' | 'all' | 'mention_only' | 'off'; | ||
myPushTriggerOption: "default" | "all" | "mention_only" | "off"; | ||
myCountPreference: string; | ||
@@ -1420,9 +1266,9 @@ lastMessage: UserMessage | FileMessage | AdminMessage; | ||
joinedMemberCount: number; | ||
myMemberState: 'none' | 'joined' | 'invited'; | ||
myRole: 'operator' | 'none'; | ||
myMutedState: 'muted' | 'unmuted'; | ||
myMemberState: "none" | "joined" | "invited"; | ||
myRole: "operator" | "none"; | ||
myMutedState: "muted" | "unmuted"; | ||
inviter: User; | ||
invitedAt: number; | ||
isAccessCodeRequired: boolean; | ||
hiddenState: 'unhidden' | 'hidden_allow_auto_unhide' | 'hidden_prevent_auto_unhide'; | ||
hiddenState: "unhidden" | "hidden_allow_auto_unhide" | "hidden_prevent_auto_unhide"; | ||
isDiscoverable: boolean; | ||
@@ -1439,2 +1285,3 @@ myLastRead: number; | ||
updateChannel(name: string, coverUrlOrImageFile: string | File, data: string, callback: groupChannelCallback): void; | ||
updateChannel(isDistinct: boolean, name: string, coverUrlOrImageFile: string | File, data: string, callback: groupChannelCallback): void; // DEPRECATED | ||
updateChannel( | ||
@@ -1445,9 +1292,2 @@ isDistinct: boolean, | ||
data: string, | ||
callback: groupChannelCallback | ||
): void; // DEPRECATED | ||
updateChannel( | ||
isDistinct: boolean, | ||
name: string, | ||
coverUrlOrImageFile: string | File, | ||
data: string, | ||
customType: string, | ||
@@ -1490,11 +1330,5 @@ callback: groupChannelCallback | ||
getPushPreference(callback: getPushPreferenceCallback): void; // DEPRECATED | ||
setMyPushTriggerOption( | ||
pushTriggerOption: 'all' | 'mention_only' | 'off' | 'default', | ||
callback: getPushTriggerOptionCallback | ||
): void; | ||
setMyPushTriggerOption(pushTriggerOption: "all" | "mention_only" | "off" | "default", callback: getPushTriggerOptionCallback): void; | ||
getMyPushTriggerOption(callback: getPushTriggerOptionCallback): void; | ||
setMyCountPreference( | ||
preference: 'all' | 'unread_message_count_only' | 'unread_mention_count_only' | 'off', | ||
callback: commonCallback | ||
): void; | ||
setMyCountPreference(preference: "all" | "unread_message_count_only" | "unread_mention_count_only" | "off", callback: commonCallback): void; | ||
@@ -1519,6 +1353,3 @@ createMemberListQuery(): GroupChannelMemberListQuery; | ||
registerScheduledUserMessage( | ||
scheduledUserMessageParams: ScheduledUserMessageParams, | ||
callback: scheduledUserMessageCallback | ||
): void; | ||
registerScheduledUserMessage(scheduledUserMessageParams: ScheduledUserMessageParams, callback: scheduledUserMessageCallback): void; | ||
} | ||
@@ -1534,6 +1365,3 @@ | ||
getUnreadItemCount(keys: Array<string>, callback: commonCallback): void; // DEPRECATED | ||
getTotalUnreadMessageCount( | ||
groupChannelTotalUnreadMessageCountParams: GroupChannelTotalUnreadMessageCountParams, | ||
callback: groupChannelCountCallback | ||
): void; // DEPRECATED | ||
getTotalUnreadMessageCount(groupChannelTotalUnreadMessageCountParams: GroupChannelTotalUnreadMessageCountParams, callback: groupChannelCountCallback): void; // DEPRECATED | ||
getTotalUnreadMessageCount(callback: groupChannelCountCallback): void; // DEPRECATED | ||
@@ -1564,18 +1392,10 @@ getTotalUnreadMessageCount(channelCustomTypes: Array<string>, callback: groupChannelCountCallback): void; // DEPRECATED | ||
): void; | ||
createDistinctChannelIfNotExist( | ||
groupChannelParams: GroupChannelParams, | ||
callback: distinctGroupChannelCallback | ||
): void; | ||
createDistinctChannelIfNotExist(groupChannelParams: GroupChannelParams, callback: distinctGroupChannelCallback): void; | ||
createChannelWithUserIds(userIds: Array<string>, callback: groupChannelCallback): void; | ||
createChannelWithUserIds(userIds: Array<string>, isDistinct: boolean, callback: groupChannelCallback): void; // DEPRECATED | ||
createChannelWithUserIds(userIds: Array<string>, isDistinct: boolean, customType: string, callback: groupChannelCallback): void; // DEPRECATED | ||
createChannelWithUserIds( | ||
userIds: Array<string>, | ||
isDistinct: boolean, | ||
customType: string, | ||
callback: groupChannelCallback | ||
): void; // DEPRECATED | ||
createChannelWithUserIds( | ||
userIds: Array<string>, | ||
isDistinct: boolean, | ||
name: string, | ||
@@ -1607,5 +1427,5 @@ coverUrlOrImageFile: string | File, | ||
isLoading: boolean; | ||
mutedMemberFilter: 'all' | 'muted' | 'unmuted'; | ||
operatorFilter: 'all' | 'operator' | 'nonoperator'; // DEPRECATED | ||
memberStateFilter: 'all' | 'joined_only' | 'invited_only' | 'invited_by_friend' | 'invited_by_non_friend'; | ||
mutedMemberFilter: "all" | "muted" | "unmuted"; | ||
operatorFilter: "all" | "operator" | "nonoperator"; // DEPRECATED | ||
memberStateFilter: "all" | "joined_only" | "invited_only" | "invited_by_friend" | "invited_by_non_friend"; | ||
nicknameStartsWithFilter: string; | ||
@@ -1625,9 +1445,9 @@ | ||
includeEmpty: boolean; | ||
order: 'latest_last_message' | 'chronological' | 'channel_name_alphabetical' | 'metadata_value_alphabetical'; | ||
order: "latest_last_message" | "chronological" | "channel_name_alphabetical" | "metadata_value_alphabetical"; | ||
userIdsFilter: Array<string>; // DEPRECATED | ||
userIdsFilterExactMatch: boolean; // DEPRECATED | ||
queryType: 'AND' | 'OR'; // DEPRECATED | ||
queryType: "AND" | "OR"; // DEPRECATED | ||
userIdsExactFilter: Array<string>; | ||
userIdsIncludeFilter: Array<string>; | ||
userIdsIncludeFilterQueryType: 'AND' | 'OR'; | ||
userIdsIncludeFilterQueryType: "AND" | "OR"; | ||
nicknameContainsFilter: string; | ||
@@ -1639,8 +1459,8 @@ channelNameContainsFilter: string; | ||
channelUrlsFilter: Array<string>; | ||
superChannelFilter: 'all' | 'super' | 'nonsuper'; | ||
publicChannelFilter: 'all' | 'public' | 'private'; | ||
superChannelFilter: "all" | "super" | "nonsuper"; | ||
publicChannelFilter: "all" | "public" | "private"; | ||
metadataOrderKeyFilter: string; | ||
memberStateFilter: 'all' | 'joined_only' | 'invited_only' | 'invited_by_friend' | 'invited_by_non_friend'; | ||
hiddenChannelFilter: 'unhidden_only' | 'hidden_only' | 'hidden_allow_auto_unhide' | 'hidden_prevent_auto_unhide'; | ||
unreadChannelFilter: 'all' | 'unread_message'; | ||
memberStateFilter: "all" | "joined_only" | "invited_only" | "invited_by_friend" | "invited_by_non_friend"; | ||
hiddenChannelFilter: "unhidden_only" | "hidden_only" | "hidden_allow_auto_unhide" | "hidden_prevent_auto_unhide"; | ||
unreadChannelFilter: "all" | "unread_message"; | ||
@@ -1657,3 +1477,3 @@ setSearchFilter(fields: Array<string>, queryString: string): void; | ||
includeEmpty: boolean; | ||
order: 'chronological' | 'channel_name_alphabetical' | 'metadata_value_alphabetical'; | ||
order: "chronological" | "channel_name_alphabetical" | "metadata_value_alphabetical"; | ||
channelNameContainsFilter: string; | ||
@@ -1663,4 +1483,4 @@ channelUrlsFilter: Array<string>; | ||
customTypeStartsWithFilter: string; | ||
superChannelFilter: 'all' | 'super' | 'nonsuper'; | ||
membershipFilter: 'all' | 'joined'; | ||
superChannelFilter: "all" | "super" | "nonsuper"; | ||
membershipFilter: "all" | "joined"; | ||
metadataOrderKeyFilter: string; | ||
@@ -1667,0 +1487,0 @@ next(callback: groupChannelListQueryCallback): void; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
363780
62
1300