Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sendbird

Package Overview
Dependencies
Maintainers
1
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sendbird - npm Package Compare versions

Comparing version 3.0.121 to 3.0.122

2

bower.json
{
"name": "sendbird",
"version": "3.0.121",
"version": "3.0.122",
"authors": ["SendBird <support@sendbird.com>"],

@@ -5,0 +5,0 @@ "homepage": "https://github.com/sendbird/SendBird-SDK-JavaScript",

# Changelog
## v3.0.122(APR 29, 2020)
- Added `metaArrays` in `UserMessageParams` and `FileMessageParams`.
- Message could be sent with predefined `metaArrays`.
## v3.0.121(APR 10, 2020)

@@ -4,0 +9,0 @@

{
"name": "sendbird",
"version": "3.0.121",
"version": "3.0.122",
"description": "SendBird JavaScript SDK",

@@ -5,0 +5,0 @@ "main": "SendBird.min.js",

@@ -48,7 +48,8 @@ [![npm](https://img.shields.io/npm/v/sendbird.svg?style=popout&colorB=red)](https://www.npmjs.com/package/sendbird)

## v3.0.121(APR 10, 2020)
## v3.0.122(APR 29, 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).
- Improved stability.
- Added `metaArrays` in `UserMessageParams` and `FileMessageParams`.
- Message could be sent with predefined `metaArrays`.

@@ -55,0 +56,0 @@ ## [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md)

/**
* Type Definitions for SendBird SDK v3.0.121
* Type Definitions for SendBird SDK v3.0.122
* homepage: https://sendbird.com/

@@ -45,3 +45,3 @@ * git: https://github.com/sendbird/SendBird-SDK-JavaScript

deviceTokens: Array<string>;
type: "gcm" | "apns" | "apns_voip";
type: 'gcm' | 'apns' | 'apns_voip';
hasMore: boolean;

@@ -137,3 +137,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;

@@ -143,3 +143,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;

@@ -190,3 +190,6 @@

getUnreadItemCount(keys: Array<string>, callback: commonCallback): void;
getTotalUnreadMessageCount(groupChannelTotalUnreadMessageCountParams: GroupChannelTotalUnreadMessageCountParams, callback: groupChannelCountCallback): void;
getTotalUnreadMessageCount(
groupChannelTotalUnreadMessageCountParams: GroupChannelTotalUnreadMessageCountParams,
callback: groupChannelCountCallback
): void;
getTotalUnreadMessageCount(callback: groupChannelCountCallback): void;

@@ -200,6 +203,24 @@ 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;
}

@@ -231,3 +252,3 @@

messageTimestampTo: number;
order: "score" | "ts";
order: 'score' | 'ts';
}

@@ -294,3 +315,3 @@

messageId: number;
messageType: "base" | "user" | "file" | "admin";
messageType: 'base' | 'user' | 'file' | 'admin';
data: string;

@@ -321,3 +342,3 @@ customType: string;

interface AdminMessage extends BaseMessageInstance {
messageType: "admin";
messageType: 'admin';
message: string;

@@ -333,3 +354,3 @@ translations: Object;

channelCustomTypesFilter: Array<string>;
superChannelFilter: "all" | "super" | "nonsuper";
superChannelFilter: 'all' | 'super' | 'nonsuper';
}

@@ -344,10 +365,11 @@

translationTargetLanguages: Array<string>;
mentionType: "users" | "channel";
mentionType: 'users' | 'channel';
mentionedUserIds: Array<string>;
mentionedUsers: Array<User>;
metaArrayKeys: Array<string>;
pushNotificationDeliveryOption: "default" | "suppress";
metaArrays: Array<MessageMetaArray>;
metaArrayKeys: Array<string>; // DEPRECATED
pushNotificationDeliveryOption: 'default' | 'suppress';
}
interface UserMessage extends BaseMessageInstance {
messageType: "user";
messageType: 'user';
message: string;

@@ -357,4 +379,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>;

@@ -379,10 +401,11 @@ errorCode: number;

thumbnailSizes: Array<ThumbnailSize>;
mentionType: "users" | "channel";
mentionType: 'users' | 'channel';
mentionedUserIds: Array<string>;
mentionedUsers: Array<User>;
metaArrayKeys: Array<string>;
pushNotificationDeliveryOption: "default" | "suppress";
metaArrays: Array<MessageMetaArray>;
metaArrayKeys: Array<string>; // DEPRECATED
pushNotificationDeliveryOption: 'default' | 'suppress';
}
interface FileMessage extends BaseMessageInstance {
messageType: "file";
messageType: 'file';
sender: Sender;

@@ -395,4 +418,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>;

@@ -455,4 +478,4 @@ errorCode: number;

interface Member extends User {
state: "invited" | "joined";
role: "none" | "operator";
state: 'invited' | 'joined';
role: 'none' | 'operator';
isBlockedByMe: boolean;

@@ -509,7 +532,17 @@ 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;

@@ -780,7 +813,11 @@ 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,

@@ -790,3 +827,20 @@ 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>,

@@ -796,10 +850,25 @@ 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>,

@@ -843,10 +912,36 @@ 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,

@@ -870,3 +965,6 @@ type: string,

sendFileMessages(fileMessageParamsList: Array<FileMessageParams>, callbackObject: fileMessagesCallbackObject): Array<FileMessage>;
sendFileMessages(
fileMessageParamsList: Array<FileMessageParams>,
callbackObject: fileMessagesCallbackObject
): Array<FileMessage>;

@@ -878,3 +976,9 @@ /** 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;

@@ -885,3 +989,7 @@ resendUserMessage(userMessage: UserMessage, callback: messageCallback): void;

translateUserMessage(message: UserMessage, translationTargetLanguages: Array<string>, callback: messageCallback): void;
translateUserMessage(
message: UserMessage,
translationTargetLanguages: Array<string>,
callback: messageCallback
): void;

@@ -891,3 +999,9 @@ /** 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;

@@ -899,3 +1013,7 @@ 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;

@@ -923,9 +1041,33 @@ /** 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

@@ -935,6 +1077,14 @@ /** 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 {

@@ -944,3 +1094,9 @@ // 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;
}

@@ -983,3 +1139,2 @@

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(

@@ -990,2 +1145,9 @@ name: string,

operatorUserIds: Array<string> | string,
callback: openChannelCallback
): void; // DEPRECATED
updateChannel(
name: string,
coverUrlOrImageFile: string | File,
data: string,
operatorUserIds: Array<string> | string,
customType: string,

@@ -1100,3 +1262,2 @@ 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(

@@ -1107,2 +1268,9 @@ name: string,

operatorUserIds: Array<string> | string,
callback: openChannelCallback
): void; // DEPRECATED
createChannel(
name: string,
coverUrlOrImageFile: string | File,
data: string,
operatorUserIds: Array<string> | string,
customType: string,

@@ -1149,3 +1317,3 @@ callback: openChannelCallback

scheduledTimezone: string;
status: "scheduled" | "sent" | "canceled" | "failed";
status: 'scheduled' | 'sent' | 'canceled' | 'failed';
createdAt: number;

@@ -1160,5 +1328,5 @@ updatedAt: number;

metaArrays: Array<MessageMetaArray>;
mentionType: "users" | "channel";
mentionType: 'users' | 'channel';
mentionedUsers: Array<User>;
pushNotificationDeliveryOption: "default" | "suppress";
pushNotificationDeliveryOption: 'default' | 'suppress';
translationTargetLanguages: Array<string>;

@@ -1210,6 +1378,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;

@@ -1246,3 +1414,3 @@ month: number;

key: string;
operation: "add" | "delete";
operation: 'add' | 'delete';
updatedAt: number;

@@ -1254,3 +1422,6 @@ }

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 {

@@ -1263,3 +1434,3 @@ isHidden: boolean;

isPushEnabled: boolean; // DEPRECATED
myPushTriggerOption: "default" | "all" | "mention_only" | "off";
myPushTriggerOption: 'default' | 'all' | 'mention_only' | 'off';
myCountPreference: string;

@@ -1272,9 +1443,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;

@@ -1292,3 +1463,2 @@ 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(

@@ -1299,2 +1469,9 @@ isDistinct: boolean,

data: string,
callback: groupChannelCallback
): void; // DEPRECATED
updateChannel(
isDistinct: boolean,
name: string,
coverUrlOrImageFile: string | File,
data: string,
customType: string,

@@ -1337,5 +1514,11 @@ 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;

@@ -1360,3 +1543,6 @@ createMemberListQuery(): GroupChannelMemberListQuery;

registerScheduledUserMessage(scheduledUserMessageParams: ScheduledUserMessageParams, callback: scheduledUserMessageCallback): void;
registerScheduledUserMessage(
scheduledUserMessageParams: ScheduledUserMessageParams,
callback: scheduledUserMessageCallback
): void;
}

@@ -1372,3 +1558,6 @@

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

@@ -1399,10 +1588,18 @@ 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,

@@ -1434,5 +1631,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;

@@ -1452,9 +1649,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;

@@ -1466,8 +1663,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';

@@ -1484,3 +1681,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;

@@ -1490,4 +1687,4 @@ channelUrlsFilter: Array<string>;

customTypeStartsWithFilter: string;
superChannelFilter: "all" | "super" | "nonsuper";
membershipFilter: "all" | "joined";
superChannelFilter: 'all' | 'super' | 'nonsuper';
membershipFilter: 'all' | 'joined';
metadataOrderKeyFilter: string;

@@ -1494,0 +1691,0 @@ next(callback: groupChannelListQueryCallback): void;

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc