Comparing version 3.0.131 to 3.0.132
{ | ||
"name": "sendbird", | ||
"version": "3.0.131", | ||
"authors": ["SendBird <support@sendbird.com>"], | ||
"homepage": "https://github.com/sendbird/SendBird-SDK-JavaScript", | ||
"description": "SendBird JavaScript SDK", | ||
"version": "3.0.132", | ||
"authors": ["Sendbird <support@sendbird.com>"], | ||
"homepage": "https://github.com/sendbird/Sendbird-SDK-JavaScript", | ||
"description": "Sendbird JavaScript SDK", | ||
"main": "SendBird.min.js", | ||
@@ -8,0 +8,0 @@ "moduleType": [], |
# Changelog | ||
## v3.0.132(AUG 21, 2020) | ||
- Added `creator` in `BaseChannel`. | ||
- Added `isOperatorMessage` in `BaseMessage`. | ||
- Added `copyUserMessage()` and `copyFileMessage()` in `BaseChannel`. | ||
- Change the type of all `messageId`s to `number`. | ||
- Bug-fix in wrong channel info in `onChannelFrozen` callback. | ||
- Bug-fix in unread member count and unread delivery count. | ||
## v3.0.131(AUG 7, 2020) | ||
@@ -222,3 +231,3 @@ | ||
- Minor bug fixed. | ||
- Updated SendBird.d.ts file for TypeScript. | ||
- Updated `SendBird.d.ts` file for TypeScript. | ||
@@ -225,0 +234,0 @@ ## v3.0.93(JAN 17, 2019) |
{ | ||
"name": "sendbird", | ||
"version": "3.0.131", | ||
"description": "SendBird JavaScript SDK", | ||
"version": "3.0.132", | ||
"description": "Sendbird JavaScript SDK", | ||
"main": "SendBird.min.js", | ||
@@ -17,3 +17,3 @@ "dependencies": { | ||
"type": "git", | ||
"url": "https://github.com/sendbird/SendBird-SDK-JavaScript" | ||
"url": "https://github.com/sendbird/Sendbird-SDK-JavaScript" | ||
}, | ||
@@ -27,6 +27,6 @@ "keywords": [ | ||
], | ||
"author": "SendBird <support@sendbird.com>", | ||
"author": "Sendbird <support@sendbird.com>", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
"bugs": { | ||
"url": "https://github.com/sendbird/SendBird-SDK-JavaScript/issues" | ||
"url": "https://github.com/sendbird/Sendbird-SDK-JavaScript/issues" | ||
}, | ||
@@ -33,0 +33,0 @@ "homepage": "https://sendbird.com", |
[![npm](https://img.shields.io/npm/v/sendbird.svg?style=popout&colorB=red)](https://www.npmjs.com/package/sendbird) | ||
# SendBird JavaScript SDK | ||
# Sendbird JavaScript SDK | ||
[SendBird](https://sendbird.com) provides the chat API and SDK for your app enabling real-time communication among your users. | ||
[Sendbird](https://sendbird.com) provides the chat API and SDK for your app enabling real-time communication among your users. | ||
# Getting Started | ||
[bower](http://bower.io) package for [SendBird](https://sendbird.com) JavaScript SDK | ||
[bower](http://bower.io) package for [Sendbird](https://sendbird.com) JavaScript SDK | ||
bower install sendbird | ||
[npm](https://www.npmjs.com/package/sendbird) module for [SendBird](https://sendbird.com) JavaScript SDK | ||
[npm](https://www.npmjs.com/package/sendbird) module for [Sendbird](https://sendbird.com) JavaScript SDK | ||
npm install sendbird --save | ||
[Download](https://github.com/sendbird/SendBird-SDK-JavaScript) for [SendBird](https://sendbird.com) JavaScript SDK if you wish to use it without a package manager. | ||
[Download](https://github.com/sendbird/Sendbird-SDK-JavaScript) for [Sendbird](https://sendbird.com) JavaScript SDK if you wish to use it without a package manager. | ||
> NOTICE! You should also add [axios](https://github.com/axios/axios) library into the `script` tag before the SendBird library inclusion since `v3.0.127`. You can host the library by your own, or utilize the CDN as the library refers to it. The below is an example. | ||
> NOTICE! You should also add [axios](https://github.com/axios/axios) library into the `script` tag before the Sendbird library inclusion since `v3.0.127`. You can host the library by your own, or utilize the CDN as the library refers to it. The below is an example. | ||
```html | ||
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> | ||
<script src="/your-own-path-to-sendbird/SendBird.min.js"></script> | ||
<script src="/your-own-path-to-sendbird/Sendbird.min.js"></script> | ||
``` | ||
@@ -36,13 +36,13 @@ | ||
If you have trouble importing `SendBird`, please check your `tsconfig.json` file and change the value of `"allowSyntheticDefaultImports"` to `true` in `compilerOptions`. | ||
If you have trouble importing `Sendbird`, please check your `tsconfig.json` file and change the value of `"allowSyntheticDefaultImports"` to `true` in `compilerOptions`. | ||
# [Sample](https://github.com/sendbird/SendBird-JavaScript) | ||
# [Sample](https://github.com/sendbird/Sendbird-JavaScript) | ||
- [Basic Sample](https://sample.sendbird.com/basic) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-sample) | ||
- [Widget Sample](https://sample.sendbird.com/widget) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-widget) | ||
- [LiveChat Sample](https://sample.sendbird.com/livechat) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-live-chat) | ||
- [Basic Sample](https://sample.sendbird.com/basic) using [Sendbird SDK](https://github.com/sendbird/Sendbird-SDK-JavaScript). [download](https://github.com/sendbird/Sendbird-JavaScript/tree/master/web-sample) | ||
- [Widget Sample](https://sample.sendbird.com/widget) using [Sendbird SDK](https://github.com/sendbird/Sendbird-SDK-JavaScript). [download](https://github.com/sendbird/Sendbird-JavaScript/tree/master/web-widget) | ||
- [LiveChat Sample](https://sample.sendbird.com/livechat) using [Sendbird SDK](https://github.com/sendbird/Sendbird-SDK-JavaScript). [download](https://github.com/sendbird/Sendbird-JavaScript/tree/master/web-live-chat) | ||
## SyncManager | ||
`SyncManager` is a support add-on for [SendBird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). Major benefits of `SyncManager` are, | ||
`SyncManager` is a support add-on for [Sendbird SDK](https://github.com/sendbird/Sendbird-SDK-JavaScript). Major benefits of `SyncManager` are, | ||
@@ -52,16 +52,22 @@ - Local cache integrated: store channel/message data in local storage for fast view loading. | ||
Check out [Basic Sample with SyncManager](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-basic-sample-syncmanager) which is similar to [Basic Sample](https://sample.sendbird.com/basic) but `SyncManager` integrated. For more information about `SyncManager`, please refer to [SyncManager README](https://github.com/sendbird/sendbird-syncmanager-javascript/blob/master/README.md). | ||
Check out [Basic Sample with SyncManager](https://github.com/sendbird/Sendbird-JavaScript/tree/master/web-basic-sample-syncmanager) which is similar to [Basic Sample](https://sample.sendbird.com/basic) but `SyncManager` integrated. For more information about `SyncManager`, please refer to [SyncManager README](https://github.com/sendbird/sendbird-syncmanager-javascript/blob/master/README.md). | ||
# [Documentation](https://docs.sendbird.com/javascript) | ||
## v3.0.131(AUG 7, 2020) | ||
## v3.0.132(AUG 21, 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). | ||
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). | ||
- Fixed duplicated `appInfo` in `SendBird.d.ts`. | ||
## [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md) | ||
- Added `creator` in `BaseChannel`. | ||
- Added `isOperatorMessage` in `BaseMessage`. | ||
- Added `copyUserMessage()` and `copyFileMessage()` in `BaseChannel`. | ||
- Change the type of all `messageId`s to `number`. | ||
- Bug-fix in wrong channel info in `onChannelFrozen` callback. | ||
- Bug-fix in unread member count and unread delivery count. | ||
## [Change Log](https://github.com/sendbird/Sendbird-SDK-JavaScript/blob/master/CHANGELOG.md) | ||
## License | ||
[SendBird License](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/LICENSE.md) | ||
[Sendbird License](https://github.com/sendbird/Sendbird-SDK-JavaScript/blob/master/LICENSE.md) |
/** | ||
* Type Definitions for SendBird SDK v3.0.131 | ||
* Type Definitions for Sendbird SDK v3.0.132 | ||
* homepage: https://sendbird.com/ | ||
* git: https://github.com/sendbird/SendBird-SDK-JavaScript | ||
* git: https://github.com/sendbird/Sendbird-SDK-JavaScript | ||
*/ | ||
@@ -51,3 +51,3 @@ | ||
deviceTokens: Array<string>; | ||
type: 'gcm' | 'apns' | 'apns_voip'; | ||
type: "gcm" | "apns" | "apns_voip"; | ||
hasMore: boolean; | ||
@@ -146,3 +146,3 @@ token: string; | ||
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; | ||
@@ -152,3 +152,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; | ||
@@ -199,6 +199,3 @@ | ||
getUnreadItemCount(keys: Array<string>, callback: commonCallback): void; | ||
getTotalUnreadMessageCount( | ||
groupChannelTotalUnreadMessageCountParams: GroupChannelTotalUnreadMessageCountParams, | ||
callback: groupChannelCountCallback | ||
): void; | ||
getTotalUnreadMessageCount(groupChannelTotalUnreadMessageCountParams: GroupChannelTotalUnreadMessageCountParams, callback: groupChannelCountCallback): void; | ||
getTotalUnreadMessageCount(callback: groupChannelCountCallback): void; | ||
@@ -213,37 +210,11 @@ getTotalUnreadMessageCount(channelCustomTypes: Array<string>, callback: groupChannelCountCallback): void; | ||
// DEPRECATED | ||
getMyGroupChannelChangeLogsByToken( | ||
token: string, | ||
customTypes: Array<string>, | ||
callback: getGroupChannelChangeLogsHandler | ||
): void; | ||
getMyGroupChannelChangeLogsByToken(token: string, customTypes: Array<string>, callback: getGroupChannelChangeLogsHandler): void; | ||
// DEPRECATED | ||
getMyGroupChannelChangeLogsByToken( | ||
token: string, | ||
customTypes: Array<string>, | ||
includeEmpty: boolean, | ||
callback: getGroupChannelChangeLogsHandler | ||
): void; | ||
getMyGroupChannelChangeLogsByToken( | ||
token: string, | ||
params: GroupChannelChangeLogsParams, | ||
callback: getGroupChannelChangeLogsHandler | ||
): void; | ||
getMyGroupChannelChangeLogsByToken(token: string, customTypes: Array<string>, includeEmpty: boolean, callback: getGroupChannelChangeLogsHandler): void; | ||
getMyGroupChannelChangeLogsByToken(token: string, params: GroupChannelChangeLogsParams, callback: getGroupChannelChangeLogsHandler): void; | ||
// DEPRECATED | ||
getMyGroupChannelChangeLogsByTimestamp( | ||
ts: number, | ||
customTypes: Array<string>, | ||
callback: getGroupChannelChangeLogsHandler | ||
): void; | ||
getMyGroupChannelChangeLogsByTimestamp(ts: number, customTypes: Array<string>, callback: getGroupChannelChangeLogsHandler): void; | ||
// DEPRECATED | ||
getMyGroupChannelChangeLogsByTimestamp( | ||
ts: number, | ||
customTypes: Array<string>, | ||
includeEmpty: boolean, | ||
callback: getGroupChannelChangeLogsHandler | ||
): void; | ||
getMyGroupChannelChangeLogsByTimestamp( | ||
ts: number, | ||
params: GroupChannelChangeLogsParams, | ||
callback: getGroupChannelChangeLogsHandler | ||
): void; | ||
getMyGroupChannelChangeLogsByTimestamp(ts: number, customTypes: Array<string>, includeEmpty: boolean, callback: getGroupChannelChangeLogsHandler): void; | ||
getMyGroupChannelChangeLogsByTimestamp(ts: number, params: GroupChannelChangeLogsParams, callback: getGroupChannelChangeLogsHandler): void; | ||
@@ -289,3 +260,3 @@ getAllEmoji(callback: getEmojiContainerHandler): void; | ||
messageTimestampTo: number; | ||
order: 'score' | 'ts'; | ||
order: "score" | "ts"; | ||
} | ||
@@ -353,3 +324,3 @@ | ||
messageId: number; | ||
messageType: 'base' | 'user' | 'file' | 'admin'; | ||
messageType: "base" | "user" | "file" | "admin"; | ||
data: string; | ||
@@ -379,7 +350,3 @@ customType: string; | ||
applyReactionEvent(event: ReactionEvent): void; | ||
getThreadedMessagesByTimestamp( | ||
timestamp: number, | ||
params: ThreadedMessageListParams, | ||
callback: messageListCallback | ||
): void; | ||
getThreadedMessagesByTimestamp(timestamp: number, params: ThreadedMessageListParams, callback: messageListCallback): void; | ||
applyThreadInfoUpdateEvent(threadInfoUpdateEvent: ThreadInfoUpdateEvent): boolean; | ||
@@ -392,3 +359,3 @@ | ||
interface AdminMessage extends BaseMessageInstance { | ||
messageType: 'admin'; | ||
messageType: "admin"; | ||
message: string; | ||
@@ -405,3 +372,3 @@ translations: Object; | ||
channelCustomTypesFilter: Array<string>; | ||
superChannelFilter: 'all' | 'super' | 'nonsuper'; | ||
superChannelFilter: "all" | "super" | "nonsuper"; | ||
} | ||
@@ -433,3 +400,3 @@ | ||
translationTargetLanguages: Array<string>; | ||
mentionType: 'users' | 'channel'; | ||
mentionType: "users" | "channel"; | ||
mentionedUserIds: Array<string>; | ||
@@ -439,7 +406,7 @@ mentionedUsers: Array<User>; | ||
metaArrayKeys: Array<string>; // DEPRECATED | ||
pushNotificationDeliveryOption: 'default' | 'suppress'; | ||
pushNotificationDeliveryOption: "default" | "suppress"; | ||
parentMessageId: number; | ||
} | ||
interface UserMessage extends BaseMessageInstance { | ||
messageType: 'user'; | ||
messageType: "user"; | ||
message: string; | ||
@@ -449,4 +416,4 @@ sender: Sender; | ||
translations: Object; | ||
requestState: 'none' | 'pending' | 'failed' | 'succeeded'; // DEPRECATED | ||
sendingStatus: 'none' | 'pending' | 'failed' | 'canceled' | 'succeeded'; | ||
requestState: "none" | "pending" | "failed" | "succeeded"; // DEPRECATED | ||
sendingStatus: "none" | "pending" | "failed" | "canceled" | "succeeded"; | ||
requestedMentionUserIds: Array<string>; | ||
@@ -472,3 +439,3 @@ errorCode: number; | ||
thumbnailSizes: Array<ThumbnailSize>; | ||
mentionType: 'users' | 'channel'; | ||
mentionType: "users" | "channel"; | ||
mentionedUserIds: Array<string>; | ||
@@ -478,7 +445,7 @@ mentionedUsers: Array<User>; | ||
metaArrayKeys: Array<string>; // DEPRECATED | ||
pushNotificationDeliveryOption: 'default' | 'suppress'; | ||
pushNotificationDeliveryOption: "default" | "suppress"; | ||
parentMessageId: number; | ||
} | ||
interface FileMessage extends BaseMessageInstance { | ||
messageType: 'file'; | ||
messageType: "file"; | ||
sender: Sender; | ||
@@ -492,4 +459,4 @@ reqId: string; | ||
thumbnails: Array<ThumbnailObject>; | ||
requestState: 'none' | 'pending' | 'failed' | 'succeeded'; // DEPRECATED | ||
sendingStatus: 'none' | 'pending' | 'failed' | 'canceled' | 'succeeded'; | ||
requestState: "none" | "pending" | "failed" | "succeeded"; // DEPRECATED | ||
sendingStatus: "none" | "pending" | "failed" | "canceled" | "succeeded"; | ||
requestedMentionUserIds: Array<string>; | ||
@@ -602,4 +569,4 @@ errorCode: number; | ||
interface Member extends User { | ||
state: 'invited' | 'joined'; | ||
role: 'none' | 'operator'; | ||
state: "invited" | "joined"; | ||
role: "none" | "operator"; | ||
isMuted: boolean; | ||
@@ -677,12 +644,4 @@ isBlockedByMe: boolean; | ||
getMessageChangeLogsSinceToken( | ||
token: string, | ||
params: MessageChangeLogsParams, | ||
callback: getMessageChangeLogsHandler | ||
): void; | ||
getMessageChangeLogsSinceTimestamp( | ||
timestamp: number, | ||
params: MessageChangeLogsParams, | ||
callback: getMessageChangeLogsHandler | ||
): void; | ||
getMessageChangeLogsSinceToken(token: string, params: MessageChangeLogsParams, callback: getMessageChangeLogsHandler): void; | ||
getMessageChangeLogsSinceTimestamp(timestamp: number, params: MessageChangeLogsParams, callback: getMessageChangeLogsHandler): void; | ||
@@ -964,11 +923,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, | ||
@@ -978,20 +933,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>, | ||
@@ -1001,25 +939,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>, | ||
@@ -1063,36 +986,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, | ||
@@ -1116,6 +1013,3 @@ type: string, | ||
sendFileMessages( | ||
fileMessageParamsList: Array<FileMessageParams>, | ||
callbackObject: fileMessagesCallbackObject | ||
): Array<FileMessage>; | ||
sendFileMessages(fileMessageParamsList: Array<FileMessageParams>, callbackObject: fileMessagesCallbackObject): Array<FileMessage>; | ||
@@ -1127,9 +1021,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; | ||
@@ -1140,7 +1028,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; | ||
@@ -1150,9 +1034,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; | ||
@@ -1168,7 +1046,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; | ||
@@ -1196,33 +1070,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 | ||
@@ -1232,14 +1082,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 { | ||
@@ -1249,9 +1091,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; | ||
} | ||
@@ -1304,2 +1140,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( | ||
@@ -1310,9 +1147,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, | ||
@@ -1427,2 +1257,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( | ||
@@ -1433,9 +1264,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, | ||
@@ -1483,3 +1307,3 @@ callback: openChannelCallback | ||
scheduledTimezone: string; | ||
status: 'scheduled' | 'sent' | 'canceled' | 'failed'; | ||
status: "scheduled" | "sent" | "canceled" | "failed"; | ||
createdAt: number; | ||
@@ -1494,5 +1318,5 @@ updatedAt: number; | ||
metaArrays: Array<MessageMetaArray>; | ||
mentionType: 'users' | 'channel'; | ||
mentionType: "users" | "channel"; | ||
mentionedUsers: Array<User>; | ||
pushNotificationDeliveryOption: 'default' | 'suppress'; | ||
pushNotificationDeliveryOption: "default" | "suppress"; | ||
translationTargetLanguages: Array<string>; | ||
@@ -1544,6 +1368,6 @@ errorMessage: string; | ||
metaArrayKeys: Array<string>; | ||
mentionType: 'users' | 'channel'; | ||
mentionType: "users" | "channel"; | ||
mentionedUserIds: Array<string>; | ||
mentionedUsers: Array<User>; | ||
pushNotificationDeliveryOption: 'default' | 'suppress'; | ||
pushNotificationDeliveryOption: "default" | "suppress"; | ||
year: number; | ||
@@ -1588,3 +1412,3 @@ month: number; | ||
key: string; | ||
operation: 'add' | 'delete'; | ||
operation: "add" | "delete"; | ||
updatedAt: number; | ||
@@ -1628,6 +1452,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 { | ||
@@ -1640,3 +1461,3 @@ isHidden: boolean; | ||
isPushEnabled: boolean; // DEPRECATED | ||
myPushTriggerOption: 'default' | 'all' | 'mention_only' | 'off'; | ||
myPushTriggerOption: "default" | "all" | "mention_only" | "off"; | ||
myCountPreference: string; | ||
@@ -1649,9 +1470,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; | ||
@@ -1669,2 +1490,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( | ||
@@ -1675,9 +1497,2 @@ isDistinct: boolean, | ||
data: string, | ||
callback: groupChannelCallback | ||
): void; // DEPRECATED | ||
updateChannel( | ||
isDistinct: boolean, | ||
name: string, | ||
coverUrlOrImageFile: string | File, | ||
data: string, | ||
customType: string, | ||
@@ -1722,11 +1537,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; | ||
@@ -1751,6 +1560,3 @@ createMemberListQuery(): GroupChannelMemberListQuery; | ||
registerScheduledUserMessage( | ||
scheduledUserMessageParams: ScheduledUserMessageParams, | ||
callback: scheduledUserMessageCallback | ||
): void; | ||
registerScheduledUserMessage(scheduledUserMessageParams: ScheduledUserMessageParams, callback: scheduledUserMessageCallback): void; | ||
} | ||
@@ -1766,6 +1572,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 | ||
@@ -1796,18 +1599,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, | ||
@@ -1839,6 +1634,6 @@ coverUrlOrImageFile: string | File, | ||
isLoading: boolean; | ||
order: 'member_nickname_alphabetical' | 'operator_then_member_alphabetical'; | ||
mutedMemberFilter: 'all' | 'muted' | 'unmuted'; | ||
operatorFilter: 'all' | 'operator' | 'nonoperator'; // DEPRECATED | ||
memberStateFilter: 'all' | 'joined_only' | 'invited_only' | 'invited_by_friend' | 'invited_by_non_friend'; | ||
order: "member_nickname_alphabetical" | "operator_then_member_alphabetical"; | ||
mutedMemberFilter: "all" | "muted" | "unmuted"; | ||
operatorFilter: "all" | "operator" | "nonoperator"; // DEPRECATED | ||
memberStateFilter: "all" | "joined_only" | "invited_only" | "invited_by_friend" | "invited_by_non_friend"; | ||
nicknameStartsWithFilter: string; | ||
@@ -1858,9 +1653,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; | ||
@@ -1872,8 +1667,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"; | ||
includeFrozen: boolean; | ||
@@ -1891,3 +1686,3 @@ | ||
includeEmpty: boolean; | ||
order: 'chronological' | 'channel_name_alphabetical' | 'metadata_value_alphabetical'; | ||
order: "chronological" | "channel_name_alphabetical" | "metadata_value_alphabetical"; | ||
channelNameContainsFilter: string; | ||
@@ -1897,4 +1692,4 @@ channelUrlsFilter: Array<string>; | ||
customTypeStartsWithFilter: string; | ||
superChannelFilter: 'all' | 'super' | 'nonsuper'; | ||
membershipFilter: 'all' | 'joined'; | ||
superChannelFilter: "all" | "super" | "nonsuper"; | ||
membershipFilter: "all" | "joined"; | ||
metadataOrderKeyFilter: string; | ||
@@ -1901,0 +1696,0 @@ includeFrozen: boolean; |
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
411551
72
1497