@cometchat/chat-sdk-javascript 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/index.d.ts → CometChat.d.ts} +444 -32
- package/CometChat.js +1 -0
- package/LICENSE.md +3 -0
- package/{readme.md → README.md} +8 -8
- package/package.json +31 -42
- package/dist/CometChat.js +0 -1
- package/dist/package.json +0 -36
- package/dist/type/index.d.ts +0 -10
- package/dist/type/lib/BannedMembersRequest.d.ts +0 -60
- package/dist/type/lib/BlockedUsersRequest.d.ts +0 -67
- package/dist/type/lib/CallSettings.d.ts +0 -429
- package/dist/type/lib/CometChat.d.ts +0 -1975
- package/dist/type/lib/CometChatErrorConstants.d.ts +0 -124
- package/dist/type/lib/CometChatHelper.d.ts +0 -26
- package/dist/type/lib/Constants.d.ts +0 -973
- package/dist/type/lib/ConversationRequest.d.ts +0 -89
- package/dist/type/lib/GroupMembersRequest.d.ts +0 -61
- package/dist/type/lib/GroupsRequest.d.ts +0 -78
- package/dist/type/lib/Helper.d.ts +0 -47
- package/dist/type/lib/ListenerHandlers.d.ts +0 -101
- package/dist/type/lib/MessagesRequest.d.ts +0 -188
- package/dist/type/lib/UsersRequest.d.ts +0 -142
- package/dist/type/lib/WebSockets/WSConnectionHelper.d.ts +0 -41
- package/dist/type/lib/WebSockets/WSConstants.d.ts +0 -71
- package/dist/type/lib/WebSockets/WSHelper.d.ts +0 -3
- package/dist/type/lib/controllers/CallController.d.ts +0 -151
- package/dist/type/lib/controllers/ConversationController.d.ts +0 -14
- package/dist/type/lib/controllers/GroupMemberController.d.ts +0 -10
- package/dist/type/lib/controllers/GroupsController.d.ts +0 -9
- package/dist/type/lib/controllers/MessageController.d.ts +0 -18
- package/dist/type/lib/controllers/PresenceController.d.ts +0 -0
- package/dist/type/lib/controllers/TypingNotificationController.d.ts +0 -14
- package/dist/type/lib/controllers/UserAuthController.d.ts +0 -10
- package/dist/type/lib/controllers/UsersController.d.ts +0 -9
- package/dist/type/lib/localStore/KeyStore.d.ts +0 -45
- package/dist/type/lib/localStore/MessageListenerEventMaping.d.ts +0 -56
- package/dist/type/lib/localStore/MessagesStore.d.ts +0 -72
- package/dist/type/lib/localStore/UserStore.d.ts +0 -72
- package/dist/type/lib/localStore/store.d.ts +0 -61
- package/dist/type/lib/models/Action.d.ts +0 -159
- package/dist/type/lib/models/AppSettings.d.ts +0 -135
- package/dist/type/lib/models/BaseMessage.d.ts +0 -259
- package/dist/type/lib/models/CCExtension.d.ts +0 -15
- package/dist/type/lib/models/Call.d.ts +0 -159
- package/dist/type/lib/models/CometChatAuthEvent.d.ts +0 -25
- package/dist/type/lib/models/CometChatEvent.d.ts +0 -25
- package/dist/type/lib/models/CometChatMessageEvent.d.ts +0 -9
- package/dist/type/lib/models/CometChatPingEvent.d.ts +0 -6
- package/dist/type/lib/models/CometChatPresenceEvent.d.ts +0 -15
- package/dist/type/lib/models/CometChatReceiptEvent.d.ts +0 -14
- package/dist/type/lib/models/CometChatTransientEvent.d.ts +0 -11
- package/dist/type/lib/models/CometChatTypingEvent.d.ts +0 -14
- package/dist/type/lib/models/ConversationModel.d.ts +0 -73
- package/dist/type/lib/models/CustomError.d.ts +0 -13
- package/dist/type/lib/models/CustomMessage.d.ts +0 -71
- package/dist/type/lib/models/ErrorModel.d.ts +0 -12
- package/dist/type/lib/models/Group.d.ts +0 -190
- package/dist/type/lib/models/GroupMember.d.ts +0 -43
- package/dist/type/lib/models/Listner.d.ts +0 -258
- package/dist/type/lib/models/MediaDevice.d.ts +0 -36
- package/dist/type/lib/models/MediaMessage.d.ts +0 -115
- package/dist/type/lib/models/MessageReceipt.d.ts +0 -99
- package/dist/type/lib/models/RTCUser.d.ts +0 -18
- package/dist/type/lib/models/TextMessage.d.ts +0 -84
- package/dist/type/lib/models/TransientMessage.d.ts +0 -48
- package/dist/type/lib/models/TypingNotification.d.ts +0 -52
- package/dist/type/lib/models/UserModel.d.ts +0 -177
- package/dist/type/lib/models/UserPresence.d.ts +0 -0
- package/dist/type/lib/models/attachment.d.ts +0 -74
- package/dist/type/lib/rest-api/EndPointUtils.d.ts +0 -9
- package/dist/type/lib/rest-api/EndpointFactory.d.ts +0 -28
- package/dist/type/lib/rest-api/HttpHelper.d.ts +0 -10
|
@@ -1,1975 +0,0 @@
|
|
|
1
|
-
import { CometChatException } from './models/CustomError';
|
|
2
|
-
import { User, Me } from "./models/UserModel";
|
|
3
|
-
import { MediaMessage } from "./models/MediaMessage";
|
|
4
|
-
import { BaseMessage } from "./models/BaseMessage";
|
|
5
|
-
import { TextMessage } from "./models/TextMessage";
|
|
6
|
-
import { GroupType, GroupMemberScope, MessageCategory } from "./Constants";
|
|
7
|
-
import { Group } from "./models/Group";
|
|
8
|
-
import { MessageListener, UserListener, OngoingCallListener, CallListener, GroupListener, LoginListener, ConnectionListener } from "./models/Listner";
|
|
9
|
-
import { Call } from './models/Call';
|
|
10
|
-
import { CallController } from './controllers/CallController';
|
|
11
|
-
import { Action } from './models/Action';
|
|
12
|
-
import { GroupsRequest, GroupsRequestBuilder } from "./GroupsRequest";
|
|
13
|
-
import { GroupMembersRequestBuilder, GroupMembersRequest } from "./GroupMembersRequest";
|
|
14
|
-
import { BannedMembersRequestBuilder, BannedMembersRequest } from "./BannedMembersRequest";
|
|
15
|
-
import { UsersRequest, UsersRequestBuilder } from "./UsersRequest";
|
|
16
|
-
import { ConversationsRequest, ConversationsRequestBuilder } from "./ConversationRequest";
|
|
17
|
-
import { MessagesRequest, MessagesRequestBuilder } from './MessagesRequest';
|
|
18
|
-
import { TypingIndicator } from './models/TypingNotification';
|
|
19
|
-
import { CustomMessage } from './models/CustomMessage';
|
|
20
|
-
import { GroupMember } from './models/GroupMember';
|
|
21
|
-
import { BlockedUsersRequest, BlockedUsersRequestBuilder } from './BlockedUsersRequest';
|
|
22
|
-
import { AppSettings, AppSettingsBuilder } from './models/AppSettings';
|
|
23
|
-
import { CometChatHelper } from './CometChatHelper';
|
|
24
|
-
import { Conversation } from "./models/ConversationModel";
|
|
25
|
-
import { Attachment } from "./models/attachment";
|
|
26
|
-
import { CallSettings, CallSettingsBuilder, MainVideoContainerSetting, VirtualBackground, VirtualBackgroundBuilder } from "./CallSettings";
|
|
27
|
-
import { CCExtension } from "./models/CCExtension";
|
|
28
|
-
import { MediaDevice } from "./models/MediaDevice";
|
|
29
|
-
import { TransientMessage } from "./models/TransientMessage";
|
|
30
|
-
export declare class CometChat {
|
|
31
|
-
static GroupType: typeof GroupType;
|
|
32
|
-
static GroupMemberScope: typeof GroupMemberScope;
|
|
33
|
-
static ResponseConstants: {
|
|
34
|
-
RESPONSE_KEYS: {
|
|
35
|
-
KEY_DATA: string;
|
|
36
|
-
KEY_META: string;
|
|
37
|
-
KEY_CURSOR: string;
|
|
38
|
-
KEY_ACTION: string;
|
|
39
|
-
KEY_MESSAGE: string;
|
|
40
|
-
KEY_ERROR: string;
|
|
41
|
-
KEY_ERROR_DETAILS: string;
|
|
42
|
-
KEY_ERROR_CODE: string;
|
|
43
|
-
KEY_ERROR_MESSAGE: string;
|
|
44
|
-
KEY_AUTH_TOKEN: string;
|
|
45
|
-
KEY_WS_CHANNEL: string;
|
|
46
|
-
KEY_IDENTITY: string;
|
|
47
|
-
KEY_SERVICE: string;
|
|
48
|
-
KEY_ENTITIES: string;
|
|
49
|
-
KEY_ENTITITY: string;
|
|
50
|
-
KEY_ENTITYTYPE: string;
|
|
51
|
-
KEY_ATTACHMENTS: string;
|
|
52
|
-
CODE_REQUEST_OK: number;
|
|
53
|
-
CODE_BAD_REQUEST: number;
|
|
54
|
-
UNREAD_UNDELIVERED_KEYS: {
|
|
55
|
-
ENTITY: string;
|
|
56
|
-
ENTITY_TYPE: string;
|
|
57
|
-
ENTITY_Id: string;
|
|
58
|
-
COUNT: string;
|
|
59
|
-
};
|
|
60
|
-
GROUP_MEMBERS_RESPONSE: {
|
|
61
|
-
SUCCESS: string;
|
|
62
|
-
ERROR: string;
|
|
63
|
-
MESSAGE: string;
|
|
64
|
-
};
|
|
65
|
-
KEY_ENTITY_TYPE: {
|
|
66
|
-
USER: string;
|
|
67
|
-
GROUP: string;
|
|
68
|
-
};
|
|
69
|
-
KEY_CONVERSATION_STARTER: string;
|
|
70
|
-
KEY_SMART_REPLIES: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
static CallConstants: {
|
|
74
|
-
CALL_MODE: {
|
|
75
|
-
DEFAULT: string;
|
|
76
|
-
SPOTLIGHT: string;
|
|
77
|
-
SINGLE: string;
|
|
78
|
-
TILE: string;
|
|
79
|
-
GRID: string;
|
|
80
|
-
};
|
|
81
|
-
CALL_TYPE: {
|
|
82
|
-
AUDIO: string;
|
|
83
|
-
VIDEO: string;
|
|
84
|
-
};
|
|
85
|
-
RECEIVER_TYPE_GROUP: string;
|
|
86
|
-
RECEIVER_TYPE_USER: string;
|
|
87
|
-
CALL_KEYS: {
|
|
88
|
-
CALL_DATA: string;
|
|
89
|
-
CALL_ID: string;
|
|
90
|
-
CALL_SESSION_ID: string;
|
|
91
|
-
CALL_RECEIVER: string;
|
|
92
|
-
CALL_SENDER: string;
|
|
93
|
-
CALL_RECEIVER_TYPE: string;
|
|
94
|
-
CALL_STATUS: string;
|
|
95
|
-
CALL_TYPE: string;
|
|
96
|
-
CALL_INITIATED_AT: string;
|
|
97
|
-
CALL_JOINED_AT: string;
|
|
98
|
-
CALL_LEFT_AT: string;
|
|
99
|
-
CALL_METADATA: string;
|
|
100
|
-
CALL_ENTITIES: string;
|
|
101
|
-
CALL_ENTITY_TYPE: string;
|
|
102
|
-
CALL_ENTITY: string;
|
|
103
|
-
CALL_ENTITY_USER: string;
|
|
104
|
-
CALL_ENTITY_GROUP: string;
|
|
105
|
-
};
|
|
106
|
-
CALL_STATUS: {
|
|
107
|
-
INITIATED: string;
|
|
108
|
-
ONGOING: string;
|
|
109
|
-
UNANSWERED: string;
|
|
110
|
-
REJECTED: string;
|
|
111
|
-
BUSY: string;
|
|
112
|
-
CANCELLED: string;
|
|
113
|
-
ENDED: string;
|
|
114
|
-
};
|
|
115
|
-
AUDIO_INPUT_DEVICES: string;
|
|
116
|
-
AUDIO_OUTPUT_DEVICES: string;
|
|
117
|
-
VIDEO_INPUT_DEVICES: string;
|
|
118
|
-
POST_MESSAGES: {
|
|
119
|
-
TYPES: {
|
|
120
|
-
ACTION_MESSAGE: string;
|
|
121
|
-
HANGUP: string;
|
|
122
|
-
COMETCHAT_RTC_SETTINGS: string;
|
|
123
|
-
};
|
|
124
|
-
ACTIONS: {
|
|
125
|
-
USER_JOINED: string;
|
|
126
|
-
USER_LEFT: string;
|
|
127
|
-
USER_LIST_CHANGED: string;
|
|
128
|
-
INITIAL_DEVICE_LIST: string;
|
|
129
|
-
DEVICE_CHANGE: string;
|
|
130
|
-
LOAD: string;
|
|
131
|
-
CHANGE_AUDIO_INPUT: string;
|
|
132
|
-
CHANGE_AUDIO_OUTPUT: string;
|
|
133
|
-
CHANGE_VIDEO_INPUT: string;
|
|
134
|
-
MUTE_AUDIO: string;
|
|
135
|
-
UNMUTE_AUDIO: string;
|
|
136
|
-
PAUSE_VIDEO: string;
|
|
137
|
-
UNPAUSE_VIDEO: string;
|
|
138
|
-
SWITCH_MODE: string;
|
|
139
|
-
START_SCREENSHARE: string;
|
|
140
|
-
STOP_SCREENSHARE: string;
|
|
141
|
-
END_CALL: string;
|
|
142
|
-
START_RECORDING: string;
|
|
143
|
-
STOP_RECORDING: string;
|
|
144
|
-
RECORDING_TOGGLED: string;
|
|
145
|
-
USER_MUTED: string;
|
|
146
|
-
SCREEN_SHARE_STARTED: string;
|
|
147
|
-
SCREEN_SHARE_STOPPED: string;
|
|
148
|
-
SWITCH_TO_VIDEO_CALL: string;
|
|
149
|
-
SWITCHED_TO_VIDEO_CALL: string;
|
|
150
|
-
OPEN_VIRTUAL_BACKGROUND: string;
|
|
151
|
-
SET_BACKGROUND_BLUR: string;
|
|
152
|
-
SET_BACKGROUND_IMAGE: string;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
MEDIA_DEVICE: {
|
|
156
|
-
ID: string;
|
|
157
|
-
NAME: string;
|
|
158
|
-
ACTIVE: string;
|
|
159
|
-
};
|
|
160
|
-
ZOOM_BUTTON_DEFAULT_PARAMS: {
|
|
161
|
-
position: string;
|
|
162
|
-
visible: boolean;
|
|
163
|
-
};
|
|
164
|
-
NAME_LABEL_DEFAULT_PARAMS: {
|
|
165
|
-
position: string;
|
|
166
|
-
visible: boolean;
|
|
167
|
-
color: string;
|
|
168
|
-
};
|
|
169
|
-
NETWORK_LABEL_DEFAULT_PARAMS: {
|
|
170
|
-
position: string;
|
|
171
|
-
visible: boolean;
|
|
172
|
-
};
|
|
173
|
-
MAIN_VIDEO_CONTAINER_SETTINGS: {
|
|
174
|
-
KEYS: {
|
|
175
|
-
POSITION: string;
|
|
176
|
-
VISIBILITY: string;
|
|
177
|
-
COLOR: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
static ActionConstatnts: {
|
|
182
|
-
ACTION_SUBJECTS: {
|
|
183
|
-
ACTION_ON: string;
|
|
184
|
-
ACTION_BY: string;
|
|
185
|
-
ACTION_FOR: string;
|
|
186
|
-
};
|
|
187
|
-
ACTION_ENTITY_TYPE: {
|
|
188
|
-
GROUP_USER: string;
|
|
189
|
-
USER: string;
|
|
190
|
-
GROUP: string;
|
|
191
|
-
MESSAGE: string;
|
|
192
|
-
};
|
|
193
|
-
ACTION_KEYS: {
|
|
194
|
-
ACTION_CREATED: string;
|
|
195
|
-
ACTION_UPDATED: string;
|
|
196
|
-
ACTION_DELETED: string;
|
|
197
|
-
ENTITIES: string;
|
|
198
|
-
ENTITY: string;
|
|
199
|
-
ENTITY_TYPE: string;
|
|
200
|
-
TYPE_MEMBER_JOINED: string;
|
|
201
|
-
TYPE_MEMBER_LEFT: string;
|
|
202
|
-
TYPE_MEMBER_KICKED: string;
|
|
203
|
-
TYPE_MEMBER_BANNED: string;
|
|
204
|
-
TYPE_MEMBER_UNBANNED: string;
|
|
205
|
-
TYPE_MEMBER_INVITED: string;
|
|
206
|
-
TYPE_MEMBER_ADDED: string;
|
|
207
|
-
ACTION_SCOPE_CHANGED: string;
|
|
208
|
-
ACTION_TYPE_USER: string;
|
|
209
|
-
ACTION_TYPE_GROUP: string;
|
|
210
|
-
ACTION_TYPE_GROUP_MEMBER: string;
|
|
211
|
-
TYPE_MESSAGE_EDITED: string;
|
|
212
|
-
TYPE_MESSAGE_DELETED: string;
|
|
213
|
-
ACTION_TYPE_CALL: string;
|
|
214
|
-
EXTRAS: string;
|
|
215
|
-
SCOPE: string;
|
|
216
|
-
NEW: string;
|
|
217
|
-
OLD: string;
|
|
218
|
-
};
|
|
219
|
-
ActionMessages: {
|
|
220
|
-
ACTION_GROUP_JOINED_MESSAGE: string;
|
|
221
|
-
ACTION_GROUP_LEFT_MESSAGE: string;
|
|
222
|
-
ACTION_MEMBER_KICKED_MESSAGE: string;
|
|
223
|
-
ACTION_MEMBER_BANNED_MESSAGE: string;
|
|
224
|
-
ACTION_MEMBER_UNBANNED_MESSAGE: string;
|
|
225
|
-
ACTION_MEMBER_INVITED_MESSAGE: string;
|
|
226
|
-
ACTION_MESSAGE_EDITED_MESSAGE: string;
|
|
227
|
-
ACTION_MESSAGE_DELETED_MESSAGE: string;
|
|
228
|
-
ACTION_MEMBER_SCOPE_CHANGED: string;
|
|
229
|
-
ACTION_MEMBER_ADDED_TO_GROUP: string;
|
|
230
|
-
};
|
|
231
|
-
ACTION_TYPE: {
|
|
232
|
-
TYPE_MEMBER_JOINED: string;
|
|
233
|
-
TYPE_MEMBER_LEFT: string;
|
|
234
|
-
TYPE_MEMBER_KICKED: string;
|
|
235
|
-
TYPE_MEMBER_BANNED: string;
|
|
236
|
-
TYPE_MEMBER_UNBANNED: string;
|
|
237
|
-
TYPE_MEMBER_INVITED: string;
|
|
238
|
-
TYPE_MEMBER_SCOPE_CHANGED: string;
|
|
239
|
-
TYPE_MESSAGE: string;
|
|
240
|
-
TYPE_MESSAGE_EDITED: string;
|
|
241
|
-
TYPE_MESSAGE_DELETED: string;
|
|
242
|
-
TYPE_MEMBER_ADDED: string;
|
|
243
|
-
};
|
|
244
|
-
ACTIONS: {
|
|
245
|
-
MEMBER_ADDED: string;
|
|
246
|
-
MEMBER_JOINED: string;
|
|
247
|
-
MEMBER_LEFT: string;
|
|
248
|
-
MEMBER_KICKED: string;
|
|
249
|
-
MEMBER_BANNED: string;
|
|
250
|
-
MEMBER_UNBANNED: string;
|
|
251
|
-
MEMBER_INVITED: string;
|
|
252
|
-
MEMBER_SCOPE_CHANGED: string;
|
|
253
|
-
MESSAGE_EDITED: string;
|
|
254
|
-
MESSSAGE_DELETED: string;
|
|
255
|
-
TYPE_USER: string;
|
|
256
|
-
TYPE_GROUP: string;
|
|
257
|
-
TYPE_GROUP_MEMBER: string;
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
static CALL_ERROR: {
|
|
261
|
-
CALL_ALREADY_INITIATED: {
|
|
262
|
-
code: string;
|
|
263
|
-
name: string;
|
|
264
|
-
message: string;
|
|
265
|
-
details: {};
|
|
266
|
-
};
|
|
267
|
-
ERROR_IN_CALLING: {
|
|
268
|
-
code: string;
|
|
269
|
-
name: string;
|
|
270
|
-
message: string;
|
|
271
|
-
details: {};
|
|
272
|
-
};
|
|
273
|
-
CANNOT_ACCEPT_CALL: {
|
|
274
|
-
code: string;
|
|
275
|
-
name: string;
|
|
276
|
-
message: string;
|
|
277
|
-
details: {};
|
|
278
|
-
};
|
|
279
|
-
NOT_INITIALIZED: {
|
|
280
|
-
code: string;
|
|
281
|
-
name: string;
|
|
282
|
-
message: string;
|
|
283
|
-
details: {};
|
|
284
|
-
};
|
|
285
|
-
NOT_LOGGED_IN: {
|
|
286
|
-
code: string;
|
|
287
|
-
name: string;
|
|
288
|
-
message: string;
|
|
289
|
-
details: {};
|
|
290
|
-
};
|
|
291
|
-
SESSION_ID_REQUIRED: {
|
|
292
|
-
code: string;
|
|
293
|
-
name: string;
|
|
294
|
-
message: string;
|
|
295
|
-
details: {};
|
|
296
|
-
};
|
|
297
|
-
CALL_SETTINGS_REQUIRED: {
|
|
298
|
-
code: string;
|
|
299
|
-
name: string;
|
|
300
|
-
message: string;
|
|
301
|
-
details: {};
|
|
302
|
-
};
|
|
303
|
-
JWT_NOT_FOUND: {
|
|
304
|
-
code: string;
|
|
305
|
-
name: string;
|
|
306
|
-
message: string;
|
|
307
|
-
details: {};
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
static MessageConstatnts: {
|
|
311
|
-
TYPE: {
|
|
312
|
-
TEXT: string;
|
|
313
|
-
MEDIA: string;
|
|
314
|
-
IMAGE: string;
|
|
315
|
-
VIDEO: string;
|
|
316
|
-
AUDIO: string;
|
|
317
|
-
FILE: string;
|
|
318
|
-
CUSTOM: string;
|
|
319
|
-
};
|
|
320
|
-
CATEGORY: {
|
|
321
|
-
MESSAGE: string;
|
|
322
|
-
ACTION: string;
|
|
323
|
-
CALL: string;
|
|
324
|
-
CUSTOM: string;
|
|
325
|
-
};
|
|
326
|
-
RECEIVER_TYPE: {
|
|
327
|
-
USER: string;
|
|
328
|
-
GROUP: string;
|
|
329
|
-
};
|
|
330
|
-
KEYS: {
|
|
331
|
-
ATTATCHMENT: string;
|
|
332
|
-
ATTATCHMENTS: string;
|
|
333
|
-
ACTION: string;
|
|
334
|
-
TYPE: string;
|
|
335
|
-
DATA: string;
|
|
336
|
-
ID: string;
|
|
337
|
-
MUID: string;
|
|
338
|
-
SENDER: string;
|
|
339
|
-
RECEIVER: string;
|
|
340
|
-
RECEIVER_ID: string;
|
|
341
|
-
CATEGORY: string;
|
|
342
|
-
RECEIVER_TYPE: string;
|
|
343
|
-
SENT_AT: string;
|
|
344
|
-
STATUS: string;
|
|
345
|
-
TEXT: string;
|
|
346
|
-
URL: string;
|
|
347
|
-
METADATA: string;
|
|
348
|
-
RECEIPTS: string;
|
|
349
|
-
MY_RECEIPTS: string;
|
|
350
|
-
CUSTOM_DATA: string;
|
|
351
|
-
CUSTOM_SUB_TYPE: string;
|
|
352
|
-
RESOURCE: string;
|
|
353
|
-
};
|
|
354
|
-
KNOWN_MEDIA_TYPE: {
|
|
355
|
-
IMAGE: any[];
|
|
356
|
-
VIDEO: any[];
|
|
357
|
-
AUDIO: any[];
|
|
358
|
-
FILE: any[];
|
|
359
|
-
};
|
|
360
|
-
PAGINATION: {
|
|
361
|
-
AFFIX: {
|
|
362
|
-
APPEND: string;
|
|
363
|
-
PREPEND: string;
|
|
364
|
-
};
|
|
365
|
-
CURSOR_FILEDS: {
|
|
366
|
-
ID: string;
|
|
367
|
-
SENT_AT: string;
|
|
368
|
-
};
|
|
369
|
-
CURSOR_AFFIX_DEFAULT: string;
|
|
370
|
-
CURSOR_FIELD_DEFAULT: string;
|
|
371
|
-
KEYS: {
|
|
372
|
-
PER_PAGE: string;
|
|
373
|
-
CURSOR_AFFIX: string;
|
|
374
|
-
AFFIX: string;
|
|
375
|
-
CURSOR_FIELD: string;
|
|
376
|
-
CURSOR_VALUE: string;
|
|
377
|
-
UID: string;
|
|
378
|
-
SENT_AT: string;
|
|
379
|
-
ID: string;
|
|
380
|
-
CURRENT_PAGE: string;
|
|
381
|
-
UNREAD: string;
|
|
382
|
-
HIDE_MESSAGES_FROM_BLOCKED_USER: string;
|
|
383
|
-
SEARCH_KEY: string;
|
|
384
|
-
ONLY_UPDATES: string;
|
|
385
|
-
UPDATED_AT: string;
|
|
386
|
-
CATEGORY: string;
|
|
387
|
-
CATEGORIES: string;
|
|
388
|
-
TYPE: string;
|
|
389
|
-
TYPES: string;
|
|
390
|
-
HIDE_REPLIES: string;
|
|
391
|
-
HIDE_DELETED_MESSAGES: string;
|
|
392
|
-
WITH_TAGS: string;
|
|
393
|
-
TAGS: string;
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
|
-
static APP_SETTINGS: {
|
|
398
|
-
APP_SETTINGS: string;
|
|
399
|
-
KEYS: {
|
|
400
|
-
CHAT_HOST: string;
|
|
401
|
-
CHAT_USE_SSL: string;
|
|
402
|
-
GROUP_SERVICE: string;
|
|
403
|
-
CALL_SERVICE: string;
|
|
404
|
-
CHAT_WS_PORT: string;
|
|
405
|
-
CHAT_WSS_PORT: string;
|
|
406
|
-
CHAT_HTTP_BIND_PORT: string;
|
|
407
|
-
CHAT_HTTPS_BIND_PORT: string;
|
|
408
|
-
ADMIN_API_HOST: string;
|
|
409
|
-
CLIENT_API_HOST: string;
|
|
410
|
-
WEBRTC_HOST: string;
|
|
411
|
-
WEBRTC_USE_SSL: string;
|
|
412
|
-
WEBRTC_WS_PORT: string;
|
|
413
|
-
WEBRTC_WSS_PORT: string;
|
|
414
|
-
WEBRTC_HTTP_BIND_PORT: string;
|
|
415
|
-
WEBRTC_HTTPS_BIND_PORT: string;
|
|
416
|
-
EXTENSION_LIST: string;
|
|
417
|
-
EXTENSION_KEYS: {
|
|
418
|
-
ID: string;
|
|
419
|
-
NAME: string;
|
|
420
|
-
};
|
|
421
|
-
JID_HOST_OVERRIDE: string;
|
|
422
|
-
CHAT_HOST_OVERRIDE: string;
|
|
423
|
-
CHAT_HOST_APP_SPECIFIC: string;
|
|
424
|
-
MODE: string;
|
|
425
|
-
CONNECTION_TYPE: string;
|
|
426
|
-
DEFAULT_MODE: string;
|
|
427
|
-
LIMITED_TRANSIENT: string;
|
|
428
|
-
NO_TRANSIENT: string;
|
|
429
|
-
POLLING_ENABLED: string;
|
|
430
|
-
POLLING_INTERVAL: string;
|
|
431
|
-
ANALYTICS_PING_DISABLED: string;
|
|
432
|
-
ANALYTICS_HOST: string;
|
|
433
|
-
ANALYTICS_VERSION: string;
|
|
434
|
-
ANALYTICS_USE_SSL: string;
|
|
435
|
-
SETTINGS_HASH: string;
|
|
436
|
-
SETTINGS_HASH_RECEIVED_AT: string;
|
|
437
|
-
DENY_FALLBACK_TO_POLLING: string;
|
|
438
|
-
APP_VERSION: string;
|
|
439
|
-
MAIN_DOMAIN: string;
|
|
440
|
-
CHAT_API_VERSION: string;
|
|
441
|
-
WS_API_VERSION: string;
|
|
442
|
-
REGION: string;
|
|
443
|
-
EXTENSION_DOMAIN: string;
|
|
444
|
-
WEBRTC_API_SUBDOMAIN: string;
|
|
445
|
-
WEBRTC_WEB_FRONTEND_HOST: string;
|
|
446
|
-
WEBRTC_WEB_FRONTEND_VERSION: string;
|
|
447
|
-
SECURED_MEDIA_HOST: string;
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
static GroupConstants: {
|
|
451
|
-
KEYS: {
|
|
452
|
-
NAME: string;
|
|
453
|
-
GUID: string;
|
|
454
|
-
TYPE: string;
|
|
455
|
-
PASSWORD: string;
|
|
456
|
-
ICON: string;
|
|
457
|
-
DESCRIPTION: string;
|
|
458
|
-
OWNER: string;
|
|
459
|
-
METADATA: string;
|
|
460
|
-
CREATED_AT: string;
|
|
461
|
-
UPDATED_AT: string;
|
|
462
|
-
HAS_JOINED: string;
|
|
463
|
-
WS_CHANNEL: string;
|
|
464
|
-
TAGS: string;
|
|
465
|
-
};
|
|
466
|
-
};
|
|
467
|
-
static TYPING_NOTIFICATION: {
|
|
468
|
-
RECEIVER_ID: string;
|
|
469
|
-
RECEIVER_TYPE: string;
|
|
470
|
-
META: string;
|
|
471
|
-
KEYS: {
|
|
472
|
-
TYPING_NOTIFICATION: string;
|
|
473
|
-
TIMESTAMP: string;
|
|
474
|
-
};
|
|
475
|
-
ACTIONS: {
|
|
476
|
-
STARTED: string;
|
|
477
|
-
ENDED: string;
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
|
-
static PresenceConstatnts: {
|
|
481
|
-
STATUS: {
|
|
482
|
-
ONLINE: string;
|
|
483
|
-
AVAILABLE: string;
|
|
484
|
-
OFFLINE: string;
|
|
485
|
-
JOINED: string;
|
|
486
|
-
LEFT: string;
|
|
487
|
-
};
|
|
488
|
-
};
|
|
489
|
-
static APPINFO: {
|
|
490
|
-
platform: string;
|
|
491
|
-
sdkVersion: string;
|
|
492
|
-
apiVersion: string;
|
|
493
|
-
sdkVersionWithUnderScore: string;
|
|
494
|
-
};
|
|
495
|
-
static UserConstants: {
|
|
496
|
-
UID: string;
|
|
497
|
-
NAME: string;
|
|
498
|
-
AUTH_TOKEN: string;
|
|
499
|
-
AVATAR: string;
|
|
500
|
-
LAST_ACTIVE_AT: string;
|
|
501
|
-
LINK: string;
|
|
502
|
-
META_DATA: string;
|
|
503
|
-
ROLE: string;
|
|
504
|
-
STATUS: string;
|
|
505
|
-
STATUS_MESSAGE: string;
|
|
506
|
-
USER_NAME: string;
|
|
507
|
-
TAGS: string;
|
|
508
|
-
SORT_BY: {
|
|
509
|
-
NAME: string;
|
|
510
|
-
STATUS: string;
|
|
511
|
-
};
|
|
512
|
-
SORT_ORDER: {
|
|
513
|
-
ASCENDING: string;
|
|
514
|
-
DESCENDING: string;
|
|
515
|
-
};
|
|
516
|
-
};
|
|
517
|
-
static GENERAL_ERROR: {
|
|
518
|
-
MUST_BE_A_STRING: {
|
|
519
|
-
code: string;
|
|
520
|
-
name: string;
|
|
521
|
-
message: string;
|
|
522
|
-
details: {};
|
|
523
|
-
};
|
|
524
|
-
MUST_BE_A_NUMBER: {
|
|
525
|
-
code: string;
|
|
526
|
-
name: string;
|
|
527
|
-
message: string;
|
|
528
|
-
details: {};
|
|
529
|
-
};
|
|
530
|
-
MUST_BE_A_OBJECT: {
|
|
531
|
-
code: string;
|
|
532
|
-
name: string;
|
|
533
|
-
message: string;
|
|
534
|
-
details: {};
|
|
535
|
-
};
|
|
536
|
-
MUST_BE_AN_ARRAY: {
|
|
537
|
-
code: string;
|
|
538
|
-
name: string;
|
|
539
|
-
message: string;
|
|
540
|
-
details: {};
|
|
541
|
-
};
|
|
542
|
-
MUST_BE_A_BOOLEAN: {
|
|
543
|
-
code: string;
|
|
544
|
-
name: string;
|
|
545
|
-
message: string;
|
|
546
|
-
details: {};
|
|
547
|
-
};
|
|
548
|
-
MUST_BE_A_BLOB: {
|
|
549
|
-
code: string;
|
|
550
|
-
name: string;
|
|
551
|
-
message: string;
|
|
552
|
-
details: {};
|
|
553
|
-
};
|
|
554
|
-
INVALID: {
|
|
555
|
-
code: string;
|
|
556
|
-
name: string;
|
|
557
|
-
message: string;
|
|
558
|
-
details: {};
|
|
559
|
-
};
|
|
560
|
-
METHOD_COMPULSORY: {
|
|
561
|
-
code: string;
|
|
562
|
-
name: string;
|
|
563
|
-
message: string;
|
|
564
|
-
details: {};
|
|
565
|
-
};
|
|
566
|
-
LIMIT_EXCEEDED: {
|
|
567
|
-
code: string;
|
|
568
|
-
name: string;
|
|
569
|
-
message: string;
|
|
570
|
-
details: {};
|
|
571
|
-
};
|
|
572
|
-
MUST_BE_A_POSITIVE_NUMBER: {
|
|
573
|
-
code: string;
|
|
574
|
-
name: string;
|
|
575
|
-
message: string;
|
|
576
|
-
details: {};
|
|
577
|
-
};
|
|
578
|
-
INVALID_MEDIA_FILE: {
|
|
579
|
-
code: string;
|
|
580
|
-
name: string;
|
|
581
|
-
message: string;
|
|
582
|
-
details: {};
|
|
583
|
-
};
|
|
584
|
-
EMPTY_STRING: {
|
|
585
|
-
code: string;
|
|
586
|
-
name: string;
|
|
587
|
-
message: string;
|
|
588
|
-
details: {};
|
|
589
|
-
};
|
|
590
|
-
MISSING_KEY: {
|
|
591
|
-
code: string;
|
|
592
|
-
name: string;
|
|
593
|
-
message: string;
|
|
594
|
-
details: {};
|
|
595
|
-
};
|
|
596
|
-
EMPTY_ARRAY: {
|
|
597
|
-
code: string;
|
|
598
|
-
name: string;
|
|
599
|
-
message: string;
|
|
600
|
-
details: {};
|
|
601
|
-
};
|
|
602
|
-
INVALID_SEARCH_KEYWORD: {
|
|
603
|
-
code: string;
|
|
604
|
-
name: string;
|
|
605
|
-
message: string;
|
|
606
|
-
details: {};
|
|
607
|
-
};
|
|
608
|
-
INVALID_GROUP_PROPERTY: {
|
|
609
|
-
code: string;
|
|
610
|
-
name: string;
|
|
611
|
-
message: string;
|
|
612
|
-
details: {};
|
|
613
|
-
};
|
|
614
|
-
INVALID_USER_PROPERTY: {
|
|
615
|
-
code: string;
|
|
616
|
-
name: string;
|
|
617
|
-
message: string;
|
|
618
|
-
details: {};
|
|
619
|
-
};
|
|
620
|
-
PARAMETER_MUST_BE_A_NUMBER: {
|
|
621
|
-
code: string;
|
|
622
|
-
name: string;
|
|
623
|
-
message: string;
|
|
624
|
-
details: {};
|
|
625
|
-
};
|
|
626
|
-
PARAMETER_MUST_BE_AN_ARRAY: {
|
|
627
|
-
code: string;
|
|
628
|
-
name: string;
|
|
629
|
-
message: string;
|
|
630
|
-
details: {};
|
|
631
|
-
};
|
|
632
|
-
PARAMETER_MUST_BE_A_BOOLEAN: {
|
|
633
|
-
code: string;
|
|
634
|
-
name: string;
|
|
635
|
-
message: string;
|
|
636
|
-
details: {};
|
|
637
|
-
};
|
|
638
|
-
PARAMETER_MUST_BE_A_POSITIVE_NUMBER: {
|
|
639
|
-
code: string;
|
|
640
|
-
name: string;
|
|
641
|
-
message: string;
|
|
642
|
-
details: {};
|
|
643
|
-
};
|
|
644
|
-
PARAMETER_MUST_BE_A_STRING: {
|
|
645
|
-
code: string;
|
|
646
|
-
name: string;
|
|
647
|
-
message: string;
|
|
648
|
-
details: {};
|
|
649
|
-
};
|
|
650
|
-
PARAMETER_COMPULSORY: {
|
|
651
|
-
code: string;
|
|
652
|
-
name: string;
|
|
653
|
-
message: string;
|
|
654
|
-
details: {};
|
|
655
|
-
};
|
|
656
|
-
PASSWORD_COMPULSORY: {
|
|
657
|
-
code: string;
|
|
658
|
-
name: string;
|
|
659
|
-
message: string;
|
|
660
|
-
details: {};
|
|
661
|
-
};
|
|
662
|
-
INVALID_ARRAY: {
|
|
663
|
-
code: string;
|
|
664
|
-
name: string;
|
|
665
|
-
message: string;
|
|
666
|
-
details: {};
|
|
667
|
-
};
|
|
668
|
-
};
|
|
669
|
-
static ConversationErrors: {
|
|
670
|
-
INVALID_CONVERSATION_TYPE: {
|
|
671
|
-
code: string;
|
|
672
|
-
name: string;
|
|
673
|
-
message: string;
|
|
674
|
-
details: string;
|
|
675
|
-
};
|
|
676
|
-
CONVERSATION_NOT_FOUND: {
|
|
677
|
-
code: string;
|
|
678
|
-
name: string;
|
|
679
|
-
message: string;
|
|
680
|
-
details: string;
|
|
681
|
-
};
|
|
682
|
-
};
|
|
683
|
-
static LOCAL_STORE: {
|
|
684
|
-
COMMON_STORE: string;
|
|
685
|
-
MESSAGE_LISTENERS_LIST: string;
|
|
686
|
-
USERS_STORE: string;
|
|
687
|
-
MESSAGES_STORE: string;
|
|
688
|
-
KEYS_STORE: string;
|
|
689
|
-
STORE_STRING: string;
|
|
690
|
-
KEY_STRING: string;
|
|
691
|
-
KEY_USER: string;
|
|
692
|
-
KEY_APP_SETTINGS: string;
|
|
693
|
-
KEY_APP_ID: string;
|
|
694
|
-
KEY_DEVICE_ID: string;
|
|
695
|
-
KEY_MESSAGE_LISTENER_LIST: string;
|
|
696
|
-
};
|
|
697
|
-
static SDKHeader: {
|
|
698
|
-
platform: string;
|
|
699
|
-
sdkVersion: string;
|
|
700
|
-
sdk: string;
|
|
701
|
-
};
|
|
702
|
-
static Errors: {
|
|
703
|
-
ERROR_IO_EXCEPTION: string;
|
|
704
|
-
ERROR_JSON_EXCEPTION: string;
|
|
705
|
-
ERROR_PASSWORD_MISSING: string;
|
|
706
|
-
ERROR_LIMIT_EXCEEDED: string;
|
|
707
|
-
ERROR_USER_NOT_LOGGED_IN: string;
|
|
708
|
-
ERROR_INVALID_GUID: string;
|
|
709
|
-
ERROR_PASSWORD_MISSING_MESSAGE: string;
|
|
710
|
-
ERROR_LIMIT_EXCEEDED_MESSAGE: string;
|
|
711
|
-
ERROR_USER_NOT_LOGGED_IN_MESSAGE: string;
|
|
712
|
-
ERROR_INVALID_GUID_MESSAGE: string;
|
|
713
|
-
ERROR_DEFAULT_MESSAGE: string;
|
|
714
|
-
ERR_SETTINGS_HASH_OUTDATED: string;
|
|
715
|
-
ERR_NO_AUTH: string;
|
|
716
|
-
};
|
|
717
|
-
static SESSION_STORE: {
|
|
718
|
-
SESSION_ID: string;
|
|
719
|
-
};
|
|
720
|
-
static ExtensionErrors: {
|
|
721
|
-
INVALID_EXTENSION: {
|
|
722
|
-
code: string;
|
|
723
|
-
name: string;
|
|
724
|
-
message: string;
|
|
725
|
-
details: {};
|
|
726
|
-
};
|
|
727
|
-
EXTENSION_NOT_FOUND: {
|
|
728
|
-
code: string;
|
|
729
|
-
name: string;
|
|
730
|
-
message: string;
|
|
731
|
-
details: {};
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
static FeatureRestrictionErrors: {
|
|
735
|
-
INVALID_FEATURE: {
|
|
736
|
-
code: string;
|
|
737
|
-
name: string;
|
|
738
|
-
message: string;
|
|
739
|
-
details: {};
|
|
740
|
-
};
|
|
741
|
-
FEATURE_NOT_FOUND: {
|
|
742
|
-
code: string;
|
|
743
|
-
name: string;
|
|
744
|
-
message: string;
|
|
745
|
-
details: {};
|
|
746
|
-
};
|
|
747
|
-
};
|
|
748
|
-
static WS: {
|
|
749
|
-
CONVERSATION: {
|
|
750
|
-
TYPE: {
|
|
751
|
-
CHAT: string;
|
|
752
|
-
GROUP_CHAT: string;
|
|
753
|
-
};
|
|
754
|
-
};
|
|
755
|
-
};
|
|
756
|
-
static JWT_API: {
|
|
757
|
-
KEYS: {
|
|
758
|
-
PASSTHROUGH: string;
|
|
759
|
-
EXPAND: string;
|
|
760
|
-
};
|
|
761
|
-
};
|
|
762
|
-
static PROSODY_API: {
|
|
763
|
-
DOMAIN_PREFIX: string;
|
|
764
|
-
PATH: {
|
|
765
|
-
ROOM: string;
|
|
766
|
-
ROOM_SIZE: string;
|
|
767
|
-
SESSIONS: string;
|
|
768
|
-
};
|
|
769
|
-
RESPONSE: {
|
|
770
|
-
PARTICIPANTS: string;
|
|
771
|
-
};
|
|
772
|
-
QUERY_PARAMETERS: {
|
|
773
|
-
DOMAIN: string;
|
|
774
|
-
ROOM: string;
|
|
775
|
-
};
|
|
776
|
-
};
|
|
777
|
-
static ProsodyApiErrors: {
|
|
778
|
-
INVALID_SESSIONID: {
|
|
779
|
-
code: string;
|
|
780
|
-
name: string;
|
|
781
|
-
message: string;
|
|
782
|
-
details: string;
|
|
783
|
-
};
|
|
784
|
-
INVALID_TYPE: {
|
|
785
|
-
code: string;
|
|
786
|
-
name: string;
|
|
787
|
-
message: string;
|
|
788
|
-
details: string;
|
|
789
|
-
};
|
|
790
|
-
};
|
|
791
|
-
static ONLINE_MEMBER_COUNT_API: {
|
|
792
|
-
ENDPOINTS: {
|
|
793
|
-
GET_ONLINE_MEMBER_COUNT: string;
|
|
794
|
-
};
|
|
795
|
-
RESPONSE: {
|
|
796
|
-
ONLINE_USERS_COUNT: string;
|
|
797
|
-
GROUPS: string;
|
|
798
|
-
};
|
|
799
|
-
ERRORS: {
|
|
800
|
-
INVALID_GROUPLIST: {
|
|
801
|
-
code: string;
|
|
802
|
-
name: string;
|
|
803
|
-
message: string;
|
|
804
|
-
details: string;
|
|
805
|
-
};
|
|
806
|
-
};
|
|
807
|
-
};
|
|
808
|
-
static ReceiptErrors: {
|
|
809
|
-
MISSING_PARAMETERS: {
|
|
810
|
-
code: string;
|
|
811
|
-
name: string;
|
|
812
|
-
message: string;
|
|
813
|
-
details: {};
|
|
814
|
-
};
|
|
815
|
-
INVALID_PARAMETER: {
|
|
816
|
-
code: string;
|
|
817
|
-
name: string;
|
|
818
|
-
message: string;
|
|
819
|
-
details: {};
|
|
820
|
-
};
|
|
821
|
-
NO_WEBSOCKET_CONNECTION: {
|
|
822
|
-
code: string;
|
|
823
|
-
name: string;
|
|
824
|
-
message: string;
|
|
825
|
-
details: {};
|
|
826
|
-
};
|
|
827
|
-
RECEIPTS_TEMPORARILY_BLOCKED: {
|
|
828
|
-
code: string;
|
|
829
|
-
name: string;
|
|
830
|
-
message: string;
|
|
831
|
-
details: {};
|
|
832
|
-
};
|
|
833
|
-
UNKNOWN_ERROR_OCCURRED: {
|
|
834
|
-
code: string;
|
|
835
|
-
name: string;
|
|
836
|
-
message: string;
|
|
837
|
-
details: {};
|
|
838
|
-
};
|
|
839
|
-
};
|
|
840
|
-
static ANALYTICS: {
|
|
841
|
-
analyticsHost: string;
|
|
842
|
-
analyticsVersion: string;
|
|
843
|
-
};
|
|
844
|
-
static API_ERROR_CODES: {
|
|
845
|
-
AUTH_ERR_AUTH_TOKEN_NOT_FOUND: string;
|
|
846
|
-
};
|
|
847
|
-
static ATTACHMENTS_CONSTANTS: {
|
|
848
|
-
KEYS: {
|
|
849
|
-
EXTENSION: string;
|
|
850
|
-
MIME_TYPE: string;
|
|
851
|
-
NAME: string;
|
|
852
|
-
SIZE: string;
|
|
853
|
-
URL: string;
|
|
854
|
-
};
|
|
855
|
-
};
|
|
856
|
-
static BlockedUsersConstants: {
|
|
857
|
-
REQUEST_KEYS: {
|
|
858
|
-
DIRECTIONS: {
|
|
859
|
-
BOTH: string;
|
|
860
|
-
HAS_BLOCKED_ME: string;
|
|
861
|
-
BLOCKED_BY_ME: string;
|
|
862
|
-
};
|
|
863
|
-
};
|
|
864
|
-
};
|
|
865
|
-
static CALLING_COMPONENT_VERSION: number;
|
|
866
|
-
static COMMON_UTILITY_CONSTANTS: {
|
|
867
|
-
TYPE_CONSTANTS: {
|
|
868
|
-
BOOLEAN: string;
|
|
869
|
-
STRING: string;
|
|
870
|
-
OBJECT: string;
|
|
871
|
-
NUMBER: string;
|
|
872
|
-
};
|
|
873
|
-
};
|
|
874
|
-
static DEFAULT_VALUES: {
|
|
875
|
-
ZERO: number;
|
|
876
|
-
MSGS_LIMIT: number;
|
|
877
|
-
MSGS_MAX_LIMIT: number;
|
|
878
|
-
USERS_LIMIT: number;
|
|
879
|
-
USERS_MAX_LIMIT: number;
|
|
880
|
-
GROUPS_LIMIT: number;
|
|
881
|
-
GROUPS_MAX_LIMIT: number;
|
|
882
|
-
CONVERSATION_MAX_LIMIT: number;
|
|
883
|
-
CALL_TIMEOUT: number;
|
|
884
|
-
DEFAULT_MSG_ID: number;
|
|
885
|
-
DEFAULT_MAX_TYPING_INDICATOR_LIMIT: number;
|
|
886
|
-
REGION_DEFAULT: string;
|
|
887
|
-
REGION_DEFAULT_EU: string;
|
|
888
|
-
REGION_DEFAULT_US: string;
|
|
889
|
-
REGION_DEFAULT_IN: string;
|
|
890
|
-
REGION_DEFAULT_PRIVATE: string;
|
|
891
|
-
};
|
|
892
|
-
static DELIVERY_RECEIPTS: {
|
|
893
|
-
RECEIVER_ID: string;
|
|
894
|
-
RECEIVER_TYPE: string;
|
|
895
|
-
RECIPIENT: string;
|
|
896
|
-
MESSAGE_ID: string;
|
|
897
|
-
RECEIVED: string;
|
|
898
|
-
DELIVERED_AT: string;
|
|
899
|
-
ID: string;
|
|
900
|
-
TIME: string;
|
|
901
|
-
DELIVERED_TO_ME_AT: string;
|
|
902
|
-
};
|
|
903
|
-
static GroupErrors: {
|
|
904
|
-
NOT_A_GROUP: CometChatException;
|
|
905
|
-
INVALID_SCOPE: CometChatException;
|
|
906
|
-
INVALID_GROUP_TYPE: CometChatException;
|
|
907
|
-
};
|
|
908
|
-
static GroupMemersConstans: {
|
|
909
|
-
KEYS: {
|
|
910
|
-
SCOPE: string;
|
|
911
|
-
UID: string;
|
|
912
|
-
GUID: string;
|
|
913
|
-
USER: string;
|
|
914
|
-
NAME: string;
|
|
915
|
-
};
|
|
916
|
-
};
|
|
917
|
-
static MessageCategory: typeof MessageCategory;
|
|
918
|
-
static MessageErrors: {
|
|
919
|
-
INVALID_RECEIVER_TYPE: {
|
|
920
|
-
code: string;
|
|
921
|
-
name: string;
|
|
922
|
-
message: string;
|
|
923
|
-
details: string;
|
|
924
|
-
};
|
|
925
|
-
};
|
|
926
|
-
static PARAMETER_ERROR: {
|
|
927
|
-
PARAMETER_REQUIRED: {
|
|
928
|
-
code: string;
|
|
929
|
-
name: string;
|
|
930
|
-
message: string;
|
|
931
|
-
details: {};
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
static READ_RECEIPTS: {
|
|
935
|
-
RECEIVER_ID: string;
|
|
936
|
-
RECEIVER_TYPE: string;
|
|
937
|
-
RECIPIENT: string;
|
|
938
|
-
MESSAGE_ID: string;
|
|
939
|
-
READ: string;
|
|
940
|
-
READ_AT: string;
|
|
941
|
-
ID: string;
|
|
942
|
-
TIME: string;
|
|
943
|
-
READ_BY_ME_AT: string;
|
|
944
|
-
};
|
|
945
|
-
static UserErrors: {
|
|
946
|
-
INVALID_STATUS: CometChatException;
|
|
947
|
-
INVALID_DIRECTION: CometChatException;
|
|
948
|
-
USER_NOT_LOGGED_IN: CometChatException;
|
|
949
|
-
};
|
|
950
|
-
static constants: {
|
|
951
|
-
DEFAULT_STORE: string;
|
|
952
|
-
MSG_VER_PRE: string;
|
|
953
|
-
MSG_VER_POST: string;
|
|
954
|
-
};
|
|
955
|
-
private static initialzed;
|
|
956
|
-
static CometChatException: typeof CometChatException;
|
|
957
|
-
static TextMessage: typeof TextMessage;
|
|
958
|
-
static MediaMessage: typeof MediaMessage;
|
|
959
|
-
static CustomMessage: typeof CustomMessage;
|
|
960
|
-
static BaseMessage: typeof BaseMessage;
|
|
961
|
-
static Action: typeof Action;
|
|
962
|
-
static Call: typeof Call;
|
|
963
|
-
static TypingIndicator: typeof TypingIndicator;
|
|
964
|
-
static TransientMessage: typeof TransientMessage;
|
|
965
|
-
static Group: typeof Group;
|
|
966
|
-
static User: typeof User;
|
|
967
|
-
static GroupMember: typeof GroupMember;
|
|
968
|
-
static Conversation: typeof Conversation;
|
|
969
|
-
static USER_STATUS: {
|
|
970
|
-
ONLINE: string;
|
|
971
|
-
OFFLINE: string;
|
|
972
|
-
};
|
|
973
|
-
static MessagesRequest: typeof MessagesRequest;
|
|
974
|
-
static MessagesRequestBuilder: typeof MessagesRequestBuilder;
|
|
975
|
-
static UsersRequest: typeof UsersRequest;
|
|
976
|
-
static UsersRequestBuilder: typeof UsersRequestBuilder;
|
|
977
|
-
static ConversationsRequest: typeof ConversationsRequest;
|
|
978
|
-
static ConversationsRequestBuilder: typeof ConversationsRequestBuilder;
|
|
979
|
-
static BlockedUsersRequest: typeof BlockedUsersRequest;
|
|
980
|
-
static BlockedUsersRequestBuilder: typeof BlockedUsersRequestBuilder;
|
|
981
|
-
static GroupsRequest: typeof GroupsRequest;
|
|
982
|
-
static GroupsRequestBuilder: typeof GroupsRequestBuilder;
|
|
983
|
-
static GroupMembersRequest: typeof GroupMembersRequest;
|
|
984
|
-
static GroupMembersRequestBuilder: typeof GroupMembersRequestBuilder;
|
|
985
|
-
static BannedMembersRequest: typeof BannedMembersRequest;
|
|
986
|
-
static BannedMembersRequestBuilder: typeof BannedMembersRequestBuilder;
|
|
987
|
-
static CallSettings: typeof CallSettings;
|
|
988
|
-
static CallSettingsBuilder: typeof CallSettingsBuilder;
|
|
989
|
-
static MainVideoContainerSetting: typeof MainVideoContainerSetting;
|
|
990
|
-
static VirtualBackground: typeof VirtualBackground;
|
|
991
|
-
static VirtualBackgroundBuilder: typeof VirtualBackgroundBuilder;
|
|
992
|
-
static AppSettings: typeof AppSettings;
|
|
993
|
-
static AppSettingsBuilder: typeof AppSettingsBuilder;
|
|
994
|
-
static MessageListener: typeof MessageListener;
|
|
995
|
-
static UserListener: typeof UserListener;
|
|
996
|
-
static GroupListener: typeof GroupListener;
|
|
997
|
-
static OngoingCallListener: typeof OngoingCallListener;
|
|
998
|
-
static CallListener: typeof CallListener;
|
|
999
|
-
static ConnectionListener: typeof ConnectionListener;
|
|
1000
|
-
static LoginListener: typeof LoginListener;
|
|
1001
|
-
static CallController: typeof CallController;
|
|
1002
|
-
static CometChatHelper: typeof CometChatHelper;
|
|
1003
|
-
static Attachment: typeof Attachment;
|
|
1004
|
-
static MediaDevice: typeof MediaDevice;
|
|
1005
|
-
static MESSAGE_TYPE: {
|
|
1006
|
-
TEXT: string;
|
|
1007
|
-
MEDIA: string;
|
|
1008
|
-
IMAGE: string;
|
|
1009
|
-
VIDEO: string;
|
|
1010
|
-
AUDIO: string;
|
|
1011
|
-
FILE: string;
|
|
1012
|
-
CUSTOM: string;
|
|
1013
|
-
};
|
|
1014
|
-
static CATEGORY_MESSAGE: string;
|
|
1015
|
-
static CATEGORY_ACTION: string;
|
|
1016
|
-
static CATEGORY_CALL: string;
|
|
1017
|
-
static CATEGORY_CUSTOM: string;
|
|
1018
|
-
static ACTION_TYPE: {
|
|
1019
|
-
MEMBER_ADDED: string;
|
|
1020
|
-
MEMBER_JOINED: string;
|
|
1021
|
-
MEMBER_LEFT: string;
|
|
1022
|
-
MEMBER_KICKED: string;
|
|
1023
|
-
MEMBER_BANNED: string;
|
|
1024
|
-
MEMBER_UNBANNED: string;
|
|
1025
|
-
MEMBER_INVITED: string;
|
|
1026
|
-
MEMBER_SCOPE_CHANGED: string;
|
|
1027
|
-
MESSAGE_EDITED: string;
|
|
1028
|
-
MESSSAGE_DELETED: string;
|
|
1029
|
-
TYPE_USER: string;
|
|
1030
|
-
TYPE_GROUP: string;
|
|
1031
|
-
TYPE_GROUP_MEMBER: string;
|
|
1032
|
-
};
|
|
1033
|
-
static CALL_TYPE: {
|
|
1034
|
-
AUDIO: string;
|
|
1035
|
-
VIDEO: string;
|
|
1036
|
-
};
|
|
1037
|
-
static SORT_BY: {
|
|
1038
|
-
NAME: string;
|
|
1039
|
-
STATUS: string;
|
|
1040
|
-
};
|
|
1041
|
-
static SORT_ORDER: {
|
|
1042
|
-
ASCENDING: string;
|
|
1043
|
-
DESCENDING: string;
|
|
1044
|
-
};
|
|
1045
|
-
static CALL_MODE: {
|
|
1046
|
-
DEFAULT: string;
|
|
1047
|
-
SPOTLIGHT: string;
|
|
1048
|
-
SINGLE: string;
|
|
1049
|
-
TILE: string;
|
|
1050
|
-
GRID: string;
|
|
1051
|
-
};
|
|
1052
|
-
static RECEIVER_TYPE: {
|
|
1053
|
-
USER: string;
|
|
1054
|
-
GROUP: string;
|
|
1055
|
-
};
|
|
1056
|
-
static CONNECTION_STATUS: {
|
|
1057
|
-
CONNECTED: string;
|
|
1058
|
-
CONNECTING: string;
|
|
1059
|
-
DISCONNECTED: string;
|
|
1060
|
-
FEATURE_THROTTLED: string;
|
|
1061
|
-
};
|
|
1062
|
-
static CALL_STATUS: {
|
|
1063
|
-
INITIATED: string;
|
|
1064
|
-
ONGOING: string;
|
|
1065
|
-
UNANSWERED: string;
|
|
1066
|
-
REJECTED: string;
|
|
1067
|
-
BUSY: string;
|
|
1068
|
-
CANCELLED: string;
|
|
1069
|
-
ENDED: string;
|
|
1070
|
-
};
|
|
1071
|
-
static GROUP_MEMBER_SCOPE: {
|
|
1072
|
-
ADMIN: string;
|
|
1073
|
-
MODERATOR: string;
|
|
1074
|
-
PARTICIPANT: string;
|
|
1075
|
-
};
|
|
1076
|
-
static GROUP_TYPE: {
|
|
1077
|
-
PUBLIC: string;
|
|
1078
|
-
PRIVATE: string;
|
|
1079
|
-
PROTECTED: string;
|
|
1080
|
-
PASSWORD: string;
|
|
1081
|
-
};
|
|
1082
|
-
/** @internal */ static MESSAGE_REQUEST: {
|
|
1083
|
-
ID: string;
|
|
1084
|
-
SENT_AT: string;
|
|
1085
|
-
};
|
|
1086
|
-
/** @internal */ static user?: Me | any;
|
|
1087
|
-
private static appId;
|
|
1088
|
-
private static apiKey?;
|
|
1089
|
-
private static authToken?;
|
|
1090
|
-
private static cometChat;
|
|
1091
|
-
private static keyStore;
|
|
1092
|
-
private static localStorage;
|
|
1093
|
-
/** @internal */ static appSettings: AppSettings;
|
|
1094
|
-
private static WSReconnectionInProgress;
|
|
1095
|
-
private static WSReconnectionTimer;
|
|
1096
|
-
private static WSReconnectionTimerInterval;
|
|
1097
|
-
private static currentConnectionStatus;
|
|
1098
|
-
/** @internal */ static resource: string;
|
|
1099
|
-
/** @internal */ static platform: string;
|
|
1100
|
-
/** @internal */ static language: string;
|
|
1101
|
-
private static mode;
|
|
1102
|
-
private static sessionId;
|
|
1103
|
-
private static isConnectingFromInit;
|
|
1104
|
-
private static loginInProgress;
|
|
1105
|
-
private static internalRestart;
|
|
1106
|
-
private static settingsInterval;
|
|
1107
|
-
private static isAnalyticsPingStarted;
|
|
1108
|
-
private static analyticsPingTimer;
|
|
1109
|
-
private static isLoggedOut;
|
|
1110
|
-
private static isAnalyticsDisabled;
|
|
1111
|
-
private static jwt;
|
|
1112
|
-
private static settingsHash;
|
|
1113
|
-
private static settingsHashReceivedAt;
|
|
1114
|
-
private static disconnectedByUser;
|
|
1115
|
-
private static shouldConnectToWS;
|
|
1116
|
-
static SECURED_MEDIA_HOST: string;
|
|
1117
|
-
/**
|
|
1118
|
-
* Creates an instance of CometChat.
|
|
1119
|
-
* @param {string} appId
|
|
1120
|
-
* @memberof CometChat
|
|
1121
|
-
*/
|
|
1122
|
-
private constructor();
|
|
1123
|
-
/**
|
|
1124
|
-
* Setter method for CometChat authToken.
|
|
1125
|
-
* @internal
|
|
1126
|
-
* @param {string} authToken
|
|
1127
|
-
* @memberof CometChat
|
|
1128
|
-
*/
|
|
1129
|
-
static setAuthToken(authToken: string): void;
|
|
1130
|
-
/**
|
|
1131
|
-
*Getter method for CometChat authToken.
|
|
1132
|
-
* @internal
|
|
1133
|
-
* @returns
|
|
1134
|
-
* @memberof CometChat
|
|
1135
|
-
*/
|
|
1136
|
-
getAuthToken(): string;
|
|
1137
|
-
/**
|
|
1138
|
-
* Getter for appId
|
|
1139
|
-
* @internal
|
|
1140
|
-
* @returns {string}
|
|
1141
|
-
*/
|
|
1142
|
-
static getAppId(): string;
|
|
1143
|
-
/**
|
|
1144
|
-
*Getter for apiKey.
|
|
1145
|
-
* @internal
|
|
1146
|
-
* @returns
|
|
1147
|
-
* @memberof CometChat
|
|
1148
|
-
*/
|
|
1149
|
-
getApiKey(): string;
|
|
1150
|
-
/**
|
|
1151
|
-
*Getter method for CometChat mode.
|
|
1152
|
-
* @internal
|
|
1153
|
-
* @returns
|
|
1154
|
-
* @memberof CometChat
|
|
1155
|
-
*/
|
|
1156
|
-
static getMode(): string;
|
|
1157
|
-
/**
|
|
1158
|
-
*Setter method for CometChat mode.
|
|
1159
|
-
* @internal
|
|
1160
|
-
* @returns
|
|
1161
|
-
* @memberof CometChat
|
|
1162
|
-
*/
|
|
1163
|
-
static setMode(mode: string): void;
|
|
1164
|
-
/**
|
|
1165
|
-
* Getter for sessionId.
|
|
1166
|
-
* @internal
|
|
1167
|
-
* @returns
|
|
1168
|
-
* @memberof CometChat
|
|
1169
|
-
*/
|
|
1170
|
-
static getSessionId(): string;
|
|
1171
|
-
/**
|
|
1172
|
-
* Storage event when a key is added/updated in localstorage.
|
|
1173
|
-
* @internal
|
|
1174
|
-
* @memberof CometChat
|
|
1175
|
-
*/
|
|
1176
|
-
static onStorageEvent(storageEvent: any): void;
|
|
1177
|
-
/**
|
|
1178
|
-
* This method triggers before a page unloads.
|
|
1179
|
-
* @internal
|
|
1180
|
-
* @memberof CometChat
|
|
1181
|
-
*/
|
|
1182
|
-
static beforeUnload(unloadEvent: any): void;
|
|
1183
|
-
/**
|
|
1184
|
-
* This method checks if Analytics Ping has started.
|
|
1185
|
-
* @internal
|
|
1186
|
-
* @returns {boolean}
|
|
1187
|
-
*/
|
|
1188
|
-
static didAnalyticsPingStart(): boolean;
|
|
1189
|
-
/**
|
|
1190
|
-
* This method gets data from session storage.
|
|
1191
|
-
* @internal
|
|
1192
|
-
* @returns {string | null}
|
|
1193
|
-
* @memberof CometChat
|
|
1194
|
-
*/
|
|
1195
|
-
static getDataFromSessionStorage(key: any): string;
|
|
1196
|
-
/**
|
|
1197
|
-
* This method adds data in the session storage.
|
|
1198
|
-
* @internal
|
|
1199
|
-
* @memberof CometChat
|
|
1200
|
-
*/
|
|
1201
|
-
static addDataToSessionStorage(key: any, value: any): void;
|
|
1202
|
-
/**
|
|
1203
|
-
* This method removes data from the session storage.
|
|
1204
|
-
* @internal
|
|
1205
|
-
* @memberof CometChat
|
|
1206
|
-
*/
|
|
1207
|
-
static removeDataFromSessionStorage(key: any): void;
|
|
1208
|
-
/**--------------------------------*
|
|
1209
|
-
* Core apis
|
|
1210
|
-
* --------------------------------**/
|
|
1211
|
-
/**
|
|
1212
|
-
* Initialize the CometChat app with appId & Object of AppSettings Class.
|
|
1213
|
-
* @param {string} appId
|
|
1214
|
-
* @param {AppSettings} appSettings
|
|
1215
|
-
* @returns {CometChat}
|
|
1216
|
-
* @memberof CometChat
|
|
1217
|
-
*/
|
|
1218
|
-
static init(appId: any, appSettings: AppSettings): Promise<boolean>;
|
|
1219
|
-
/**
|
|
1220
|
-
* Function to check whether CometChat class initialized before.
|
|
1221
|
-
* @returns {boolean}
|
|
1222
|
-
* @memberof CometChat
|
|
1223
|
-
*/
|
|
1224
|
-
static isInitialized(): boolean;
|
|
1225
|
-
/**
|
|
1226
|
-
* Returns the singleton object of CometChat class. If CometChat object is not created yet? it will create and returns it.
|
|
1227
|
-
*
|
|
1228
|
-
* @internal
|
|
1229
|
-
* @param {string} appId - An optional argument needed for first time initialization.
|
|
1230
|
-
* @returns {CometChat}
|
|
1231
|
-
*/
|
|
1232
|
-
static getInstance(appId?: string): CometChat;
|
|
1233
|
-
/**
|
|
1234
|
-
* Function to register the FCM token for Push Notification.
|
|
1235
|
-
* @param {string} token
|
|
1236
|
-
* @param {JSON Object} Settings
|
|
1237
|
-
* @returns {Promise<string>}
|
|
1238
|
-
* @memberof CometChat
|
|
1239
|
-
*/
|
|
1240
|
-
static registerTokenForPushNotification(token: string, settings?: {}): Promise<string>;
|
|
1241
|
-
/**
|
|
1242
|
-
* Function which publishes events to the Login Listener.
|
|
1243
|
-
* @internal
|
|
1244
|
-
* @param {User | CometChatException} data
|
|
1245
|
-
* @param {string} status
|
|
1246
|
-
* @memberof CometChat
|
|
1247
|
-
*/
|
|
1248
|
-
private static pushToLoginListener;
|
|
1249
|
-
/**
|
|
1250
|
-
* Login funtion will authenticate user provided as an argument. There are two ways to login:
|
|
1251
|
-
* 1. using UID and authKey (unsecure way)
|
|
1252
|
-
* 2. using authToken (secure way)
|
|
1253
|
-
* @param {...string[]} args
|
|
1254
|
-
* @returns {User | CometChatException}
|
|
1255
|
-
* @memberof CometChat
|
|
1256
|
-
*/
|
|
1257
|
-
static login(...args: any): Promise<User>;
|
|
1258
|
-
/**-------------------------------------------------------------------*
|
|
1259
|
-
* Message related functions provided by CometChat class *
|
|
1260
|
-
*--------------------------------------------------------------------**/
|
|
1261
|
-
/**
|
|
1262
|
-
* Function to send message.
|
|
1263
|
-
* @param {TextMessage | MediaMessage | CustomMessage | any} message
|
|
1264
|
-
* @returns {Message | any}
|
|
1265
|
-
* @memberof CometChat
|
|
1266
|
-
*/
|
|
1267
|
-
static sendMessage(message: TextMessage | MediaMessage | CustomMessage | any): Promise<TextMessage | MediaMessage | CustomMessage | BaseMessage>;
|
|
1268
|
-
/**
|
|
1269
|
-
* Function to send a message to user.
|
|
1270
|
-
* @internal
|
|
1271
|
-
* @param {*} message Object
|
|
1272
|
-
* @returns
|
|
1273
|
-
* @memberof CometChat
|
|
1274
|
-
*/
|
|
1275
|
-
static sendDirectMessage(message: Object): Promise<TextMessage | BaseMessage | MediaMessage | CustomMessage>;
|
|
1276
|
-
/**
|
|
1277
|
-
* Function to send a message to group.
|
|
1278
|
-
* @internal
|
|
1279
|
-
* @param {*} message
|
|
1280
|
-
* @returns
|
|
1281
|
-
* @memberof CometChat
|
|
1282
|
-
*/
|
|
1283
|
-
static sendGroupMessage(message: any): Promise<TextMessage | BaseMessage | MediaMessage | CustomMessage>;
|
|
1284
|
-
/**
|
|
1285
|
-
* Function to send a media message.
|
|
1286
|
-
* @param {MediaMessage} message
|
|
1287
|
-
* @returns {Message | any}
|
|
1288
|
-
* @memberof CometChat
|
|
1289
|
-
*/
|
|
1290
|
-
static sendMediaMessage(message: Object): Promise<TextMessage | BaseMessage | MediaMessage | CustomMessage>;
|
|
1291
|
-
/**
|
|
1292
|
-
*
|
|
1293
|
-
* Function to send a custom message.
|
|
1294
|
-
* @param {CustomMessage} message
|
|
1295
|
-
* @returns {Message | any}
|
|
1296
|
-
* @memberof CometChat
|
|
1297
|
-
*/
|
|
1298
|
-
static sendCustomMessage(message: CustomMessage): Promise<TextMessage | BaseMessage | MediaMessage | CustomMessage>;
|
|
1299
|
-
/**
|
|
1300
|
-
*
|
|
1301
|
-
* Function to get the last delivered message id from local storage.
|
|
1302
|
-
* @returns {any}
|
|
1303
|
-
* @memberof CometChat
|
|
1304
|
-
*/
|
|
1305
|
-
static getLastDeliveredMessageId(): Promise<any>;
|
|
1306
|
-
/**
|
|
1307
|
-
* Function to send start typing notification to the provided uid/ guid.
|
|
1308
|
-
* @param {TypingIndicator | any} typingNotification
|
|
1309
|
-
* @memberof CometChat
|
|
1310
|
-
*/
|
|
1311
|
-
static startTyping(typingNotification: TypingIndicator | any): void;
|
|
1312
|
-
/**
|
|
1313
|
-
* Function to send stop typing notification to the provided uid/ guid.
|
|
1314
|
-
* @param {TypingIndicator | any} typingNotification
|
|
1315
|
-
* @memberof CometChat
|
|
1316
|
-
*/
|
|
1317
|
-
static endTyping(typingNotification: TypingIndicator | any): void;
|
|
1318
|
-
/**
|
|
1319
|
-
* Mark all messages upto a specified message id as read. There are two ways markAsRead works:
|
|
1320
|
-
* 1. message
|
|
1321
|
-
* 2. messageID, receiverID, receiverType, senderID
|
|
1322
|
-
* @param {...string[]} args
|
|
1323
|
-
* @memberof CometChat
|
|
1324
|
-
*/
|
|
1325
|
-
static markAsRead(...args: any): any;
|
|
1326
|
-
/**
|
|
1327
|
-
* Mark all messages upto a specified message id as delivered. There are two ways markAsDelivered works:
|
|
1328
|
-
* 1. message
|
|
1329
|
-
* 2. messageID, receiverID, receiverType, senderID
|
|
1330
|
-
* @param {...string[]} args
|
|
1331
|
-
* @memberof CometChat
|
|
1332
|
-
*/
|
|
1333
|
-
static markAsDelivered(...args: any): any;
|
|
1334
|
-
/**
|
|
1335
|
-
* Send a transient message.
|
|
1336
|
-
* @param {string} uid
|
|
1337
|
-
* @param {string} receiverType
|
|
1338
|
-
* @memberof CometChat
|
|
1339
|
-
*/
|
|
1340
|
-
static sendTransientMessage(transientMessage: TransientMessage): void;
|
|
1341
|
-
/**
|
|
1342
|
-
* Triggers the onTextMessageReceived event.
|
|
1343
|
-
* @internal
|
|
1344
|
-
* @param {any} message
|
|
1345
|
-
* @memberof CometChat
|
|
1346
|
-
*/
|
|
1347
|
-
static sendTestMessage(message: any): Promise<void>;
|
|
1348
|
-
/**
|
|
1349
|
-
* Function to fetch message details for the provided messageID.
|
|
1350
|
-
* @param {string | any} messageId
|
|
1351
|
-
* @returns {Message | any}
|
|
1352
|
-
* @memberof CometChat
|
|
1353
|
-
*/
|
|
1354
|
-
static getMessageDetails(messageId: string | any): Promise<TextMessage | MediaMessage | CustomMessage | BaseMessage>;
|
|
1355
|
-
/**
|
|
1356
|
-
* Function to fetch message receipt details for the provided messageID.
|
|
1357
|
-
* @param {string | any} messageId
|
|
1358
|
-
* @returns {MessageReceipt[]}
|
|
1359
|
-
* @memberof CometChat
|
|
1360
|
-
*/
|
|
1361
|
-
static getMessageReceipts(messageId: string | any): Promise<Object>;
|
|
1362
|
-
/**
|
|
1363
|
-
* Function to fetch unread message count.
|
|
1364
|
-
* @param {boolean} doHideMessages
|
|
1365
|
-
* @returns {Object}
|
|
1366
|
-
* @memberof CometChat
|
|
1367
|
-
*/
|
|
1368
|
-
static getUnreadMessageCount(doHideMessages?: boolean): Promise<Object>;
|
|
1369
|
-
/**
|
|
1370
|
-
* Function to fetch unread message count for all users.
|
|
1371
|
-
* @param {boolean} doHideMessages
|
|
1372
|
-
* @returns {Object}
|
|
1373
|
-
* @memberof CometChat
|
|
1374
|
-
*/
|
|
1375
|
-
static getUnreadMessageCountForAllUsers(doHideMessages?: boolean): Promise<Object>;
|
|
1376
|
-
/**
|
|
1377
|
-
* Function to fetch unread message count for all groups.
|
|
1378
|
-
* @param {boolean} doHideMessages
|
|
1379
|
-
* @returns {Object}
|
|
1380
|
-
* @memberof CometChat
|
|
1381
|
-
*/
|
|
1382
|
-
static getUnreadMessageCountForAllGroups(doHideMessages?: boolean): Promise<Object>;
|
|
1383
|
-
/**
|
|
1384
|
-
* Function to fetch unread message count for a particular UID.
|
|
1385
|
-
* @param {string} UID
|
|
1386
|
-
* @param {boolean} doHideMessages
|
|
1387
|
-
* @returns {Object}
|
|
1388
|
-
* @memberof CometChat
|
|
1389
|
-
*/
|
|
1390
|
-
static getUnreadMessageCountForUser(UID: string, doHideMessages?: boolean): Promise<Object>;
|
|
1391
|
-
/**
|
|
1392
|
-
* Function to fetch unread message count for a particular GUID.
|
|
1393
|
-
* @param {string} GUID
|
|
1394
|
-
* @param {boolean} doHideMessages
|
|
1395
|
-
* @returns {Object}
|
|
1396
|
-
* @memberof CometChat
|
|
1397
|
-
*/
|
|
1398
|
-
static getUnreadMessageCountForGroup(GUID: string, doHideMessages?: boolean): Promise<Object>;
|
|
1399
|
-
/**
|
|
1400
|
-
* Funtion to edit a message.
|
|
1401
|
-
* @param {BaseMessage} message
|
|
1402
|
-
* @returns {Promise<BaseMessage>}
|
|
1403
|
-
* @memberof CometChat
|
|
1404
|
-
*/
|
|
1405
|
-
static editMessage(message: BaseMessage): Promise<BaseMessage>;
|
|
1406
|
-
/**
|
|
1407
|
-
* Funtion to delete a message.
|
|
1408
|
-
* @param {string} messageId
|
|
1409
|
-
* @returns {Promise<BaseMessage>}
|
|
1410
|
-
* @memberof CometChat
|
|
1411
|
-
*/
|
|
1412
|
-
static deleteMessage(messageId: string): Promise<BaseMessage>;
|
|
1413
|
-
/**---------------------------------------------------------------------------------------*
|
|
1414
|
-
* Online User/Group Member count related functions provided by CometChat class *
|
|
1415
|
-
*----------------------------------------------------------------------------------------**/
|
|
1416
|
-
/**
|
|
1417
|
-
* This function will return online user count
|
|
1418
|
-
*
|
|
1419
|
-
* @returns {Promise<number>}
|
|
1420
|
-
* @memberof CometChat
|
|
1421
|
-
*/
|
|
1422
|
-
static getOnlineUserCount(): Promise<number>;
|
|
1423
|
-
/**
|
|
1424
|
-
* This function will return online group members count for given GUIDs
|
|
1425
|
-
*
|
|
1426
|
-
* @param {String[]} groups
|
|
1427
|
-
* @returns {Promise<number>}
|
|
1428
|
-
* @memberof CometChat
|
|
1429
|
-
*/
|
|
1430
|
-
static getOnlineGroupMemberCount(groups: String[]): Promise<Object>;
|
|
1431
|
-
/**-------------------------------------------------------------------*
|
|
1432
|
-
* User related functions provided by CometChat class *
|
|
1433
|
-
*--------------------------------------------------------------------**/
|
|
1434
|
-
/**
|
|
1435
|
-
* Function to create a user.
|
|
1436
|
-
* @param {User | any} user
|
|
1437
|
-
* @param {string} apiKey
|
|
1438
|
-
* @returns {Promise<User>}
|
|
1439
|
-
* @memberof CometChat
|
|
1440
|
-
*/
|
|
1441
|
-
static createUser(user: User | any, apiKey: string): Promise<User>;
|
|
1442
|
-
/**
|
|
1443
|
-
*
|
|
1444
|
-
* Function to update the already existing user and returns the result with updated user.
|
|
1445
|
-
* @param {User | any} user
|
|
1446
|
-
* @param {string} apiKey
|
|
1447
|
-
* @returns {Promise<User>}
|
|
1448
|
-
* @memberof CometChat
|
|
1449
|
-
*/
|
|
1450
|
-
static updateUser(user: User | any, apiKey: string): Promise<User>;
|
|
1451
|
-
/**
|
|
1452
|
-
*
|
|
1453
|
-
* function to update the logged-in user and returns the result with updated user
|
|
1454
|
-
* @param {User} user
|
|
1455
|
-
* @returns Promise<User>
|
|
1456
|
-
* @memberof CometChat
|
|
1457
|
-
*/
|
|
1458
|
-
static updateCurrentUserDetails(user: User | any): Promise<User>;
|
|
1459
|
-
/**
|
|
1460
|
-
* function to get the information for the uid provided as an argument
|
|
1461
|
-
* @param {string} uid
|
|
1462
|
-
* @returns {Promise<User>}
|
|
1463
|
-
* @memberof CometChat
|
|
1464
|
-
*/
|
|
1465
|
-
static getUser(uid: any): Promise<User>;
|
|
1466
|
-
/**
|
|
1467
|
-
*
|
|
1468
|
-
* Function to check if logged-in user is available in local storage. If not present in local storage then fetch from API.
|
|
1469
|
-
* @internal
|
|
1470
|
-
* @returns {Promise<User | any>}
|
|
1471
|
-
* @memberof CometChat
|
|
1472
|
-
*/
|
|
1473
|
-
static getLoggedInUser(): Promise<User | any>;
|
|
1474
|
-
/**
|
|
1475
|
-
*
|
|
1476
|
-
* This function will return logged in user from local storage.
|
|
1477
|
-
* @returns {Promise<User | null>}
|
|
1478
|
-
* @memberof CometChat
|
|
1479
|
-
*/
|
|
1480
|
-
static getLoggedinUser(): Promise<User | null>;
|
|
1481
|
-
/**
|
|
1482
|
-
* Function to block users.
|
|
1483
|
-
* @param {String[]} blockedUids
|
|
1484
|
-
* @returns
|
|
1485
|
-
* @memberof CometChat
|
|
1486
|
-
*/
|
|
1487
|
-
static blockUsers(blockedUids: String[]): Promise<Object>;
|
|
1488
|
-
/**
|
|
1489
|
-
* Function to unblock users.
|
|
1490
|
-
* @param {String[]} blockedUids
|
|
1491
|
-
* @returns
|
|
1492
|
-
* @memberof CometChat
|
|
1493
|
-
*/
|
|
1494
|
-
static unblockUsers(blockedUids: String[]): Promise<Object>;
|
|
1495
|
-
/**-------------------------------------------------------------------*
|
|
1496
|
-
* Conversation related functions provided by CometChat class *
|
|
1497
|
-
*--------------------------------------------------------------------**/
|
|
1498
|
-
/**
|
|
1499
|
-
* Function to fetch conversation for a specific user/group.
|
|
1500
|
-
* @param {string} conversationWith
|
|
1501
|
-
* @param {string} conversationType
|
|
1502
|
-
* @returns {Promise<Conversation>}
|
|
1503
|
-
* @memberof CometChat
|
|
1504
|
-
*/
|
|
1505
|
-
static getConversation(conversationWith: string, conversationType: string): Promise<Conversation>;
|
|
1506
|
-
/**
|
|
1507
|
-
* Function to tag a conversation for a specific user/group.
|
|
1508
|
-
* @param {string} conversationWith
|
|
1509
|
-
* @param {string} conversationType
|
|
1510
|
-
* @param {Array<String>} tags
|
|
1511
|
-
* @returns {Promise<Conversation>}
|
|
1512
|
-
* @memberof CometChat
|
|
1513
|
-
*/
|
|
1514
|
-
static tagConversation(conversationWith: string, conversationType: string, tags?: Array<String>): Promise<Conversation>;
|
|
1515
|
-
/**
|
|
1516
|
-
* function to delete conversation for a specific user/group.
|
|
1517
|
-
* @param {string} conversationWith
|
|
1518
|
-
* @param {string} conversationType
|
|
1519
|
-
* @returns Promise<string>
|
|
1520
|
-
* @memberof CometChat
|
|
1521
|
-
*/
|
|
1522
|
-
static deleteConversation(conversationWith: string, conversationType: string): Promise<string>;
|
|
1523
|
-
/**-------------------------------------------------------------------*
|
|
1524
|
-
* Group related functions provided by CometChat class *
|
|
1525
|
-
*--------------------------------------------------------------------**/
|
|
1526
|
-
/**
|
|
1527
|
-
* Function to create a group.
|
|
1528
|
-
* @param {Group} group
|
|
1529
|
-
* @returns {Promise<Group>}
|
|
1530
|
-
* @memberof CometChat
|
|
1531
|
-
*/
|
|
1532
|
-
static createGroup(group: Group | any): Promise<Group>;
|
|
1533
|
-
/**
|
|
1534
|
-
* Function to fetch details of a group.
|
|
1535
|
-
* @param {string | Object} guid
|
|
1536
|
-
* @returns {Promise<Group>}
|
|
1537
|
-
* @memberof CometChat
|
|
1538
|
-
*/
|
|
1539
|
-
static getGroup(guid: string | Object): Promise<Group>;
|
|
1540
|
-
/**
|
|
1541
|
-
* Function to join a public group.
|
|
1542
|
-
* @param {guid} guid
|
|
1543
|
-
* @param {GroupType} type
|
|
1544
|
-
* @param {string} password
|
|
1545
|
-
* @returns {Promise<Group>}
|
|
1546
|
-
* @memberof CometChat
|
|
1547
|
-
*/
|
|
1548
|
-
static joinGroup(grp: any, type?: GroupType, password?: string): Promise<Group>;
|
|
1549
|
-
/**
|
|
1550
|
-
*
|
|
1551
|
-
* Function to update a group.
|
|
1552
|
-
* @param {Group} group
|
|
1553
|
-
* @returns {Promise<Group>}
|
|
1554
|
-
* @memberof CometChat
|
|
1555
|
-
*/
|
|
1556
|
-
static updateGroup(group: any): Promise<Group>;
|
|
1557
|
-
/**
|
|
1558
|
-
*
|
|
1559
|
-
* Function to delete a group.
|
|
1560
|
-
* @param {string} guid
|
|
1561
|
-
* @returns {Promise<boolean>}
|
|
1562
|
-
* @memberof CometChat
|
|
1563
|
-
*/
|
|
1564
|
-
static deleteGroup(guid: string): Promise<boolean>;
|
|
1565
|
-
/**
|
|
1566
|
-
* Function to leave a group.
|
|
1567
|
-
* @param {string} guid
|
|
1568
|
-
* @returns {Promise}
|
|
1569
|
-
* @memberof CometChat
|
|
1570
|
-
*/
|
|
1571
|
-
static leaveGroup(guid: string): Promise<boolean>;
|
|
1572
|
-
/**
|
|
1573
|
-
* Function to kick a member from a group.
|
|
1574
|
-
* @param {string} guid
|
|
1575
|
-
* @param {string} uid
|
|
1576
|
-
* @returns {Promise<boolean>}
|
|
1577
|
-
* @memberof CometChat
|
|
1578
|
-
*/
|
|
1579
|
-
static kickGroupMember(guid: string, uid: string): Promise<boolean>;
|
|
1580
|
-
/**
|
|
1581
|
-
* Function to change the scope of a member in a group.
|
|
1582
|
-
* @param {string} guid
|
|
1583
|
-
* @param {string} uid
|
|
1584
|
-
* @param {GroupMemberScope} scope
|
|
1585
|
-
* @returns {Promise<boolean>}
|
|
1586
|
-
* @memberof CometChat
|
|
1587
|
-
*/
|
|
1588
|
-
static updateGroupMemberScope(guid: string, uid: string, scope: GroupMemberScope): Promise<boolean>;
|
|
1589
|
-
/**
|
|
1590
|
-
* Function to ban a group member from a group.
|
|
1591
|
-
* @param {string} guid
|
|
1592
|
-
* @param {string} uid
|
|
1593
|
-
* @returns {Promise<boolean>}
|
|
1594
|
-
* @memberof CometChat
|
|
1595
|
-
*/
|
|
1596
|
-
static banGroupMember(guid: string, uid: string): Promise<boolean>;
|
|
1597
|
-
/**
|
|
1598
|
-
* Function to unban a group member from a group.
|
|
1599
|
-
* @param {string} guid
|
|
1600
|
-
* @param {string} uid
|
|
1601
|
-
* @returns {Promise<boolean>}
|
|
1602
|
-
* @memberof CometChat
|
|
1603
|
-
*/
|
|
1604
|
-
static unbanGroupMember(guid: string, uid: string): Promise<boolean>;
|
|
1605
|
-
/**
|
|
1606
|
-
* Function to add members in a group. This function can also be used to ban a group member from a group.
|
|
1607
|
-
* @param {string} guid
|
|
1608
|
-
* @param {Array<GroupMember>} groupMembers
|
|
1609
|
-
* @param {Array<String>} bannedMembersList
|
|
1610
|
-
* @returns {Promise<Object>}
|
|
1611
|
-
* @memberof CometChat
|
|
1612
|
-
*/
|
|
1613
|
-
static addMembersToGroup(guid: string, groupMembers: Array<GroupMember>, bannedMembersList: Array<string>): Promise<Object>;
|
|
1614
|
-
/**
|
|
1615
|
-
*
|
|
1616
|
-
* Function to transfer ownership of a group.
|
|
1617
|
-
* @param {string} guid
|
|
1618
|
-
* @param {string} uid
|
|
1619
|
-
* @returns {Promise<string>}
|
|
1620
|
-
* @memberof CometChat
|
|
1621
|
-
*/
|
|
1622
|
-
static transferGroupOwnership(guid: string, uid: string): Promise<string>;
|
|
1623
|
-
/**
|
|
1624
|
-
* Function to create a group and add/ban members in/from that group.
|
|
1625
|
-
* @param {Group} group
|
|
1626
|
-
* @param {Array<GroupMember>} members
|
|
1627
|
-
* @param {Array<String>} banMembers
|
|
1628
|
-
* @returns {Promise<Object>}
|
|
1629
|
-
* @memberof CometChat
|
|
1630
|
-
*/
|
|
1631
|
-
static createGroupWithMembers(group: Group, members: Array<GroupMember>, banMembers: Array<string>): Promise<Object>;
|
|
1632
|
-
/**-------------------------------------------------------------------*
|
|
1633
|
-
* Call related functions provided by CometChat class *
|
|
1634
|
-
*--------------------------------------------------------------------**/
|
|
1635
|
-
/**
|
|
1636
|
-
* Function to initiate a user/group call.
|
|
1637
|
-
* @param {Call} call
|
|
1638
|
-
* @returns {Promise<Call>}
|
|
1639
|
-
* @memberof CometChat
|
|
1640
|
-
*/
|
|
1641
|
-
static initiateCall(call: Call | any): Promise<Call>;
|
|
1642
|
-
/**
|
|
1643
|
-
* Function to accept an incoming user/group call.
|
|
1644
|
-
* @param {string} sessionid
|
|
1645
|
-
* @returns {Promise<Call>}
|
|
1646
|
-
* @memberof CometChat
|
|
1647
|
-
*/
|
|
1648
|
-
static acceptCall(sessionid: string): Promise<Call>;
|
|
1649
|
-
/**
|
|
1650
|
-
* Function to reject an incoming call or cancel an outgoing call.
|
|
1651
|
-
* @param {string} sessionId
|
|
1652
|
-
* @param {string} status
|
|
1653
|
-
* @returns {Promise<Call>}
|
|
1654
|
-
* @memberof CometChat
|
|
1655
|
-
*/
|
|
1656
|
-
static rejectCall(sessionId: string, status: any): Promise<Call>;
|
|
1657
|
-
/**
|
|
1658
|
-
* Function to end an ongoing call.
|
|
1659
|
-
* @param {string} sessionid
|
|
1660
|
-
* @param {boolean} isInternal - Optional
|
|
1661
|
-
* @returns {Promise<Call>}
|
|
1662
|
-
* @memberof CometChat
|
|
1663
|
-
*/
|
|
1664
|
-
static endCall(sessionid: string, isInternal?: boolean): Promise<Call>;
|
|
1665
|
-
/**
|
|
1666
|
-
* Function to get the active call.
|
|
1667
|
-
* @returns {Call}
|
|
1668
|
-
* @memberof CometChat
|
|
1669
|
-
*/
|
|
1670
|
-
static getActiveCall(): Call;
|
|
1671
|
-
/**
|
|
1672
|
-
* Function to start a call.
|
|
1673
|
-
* @param {CallSettings | string} callSettings
|
|
1674
|
-
* @param {HTMLElement} view
|
|
1675
|
-
* @param {UserCallEventListener} callEventHandler
|
|
1676
|
-
* @memberof CometChat
|
|
1677
|
-
*/
|
|
1678
|
-
static startCall(callSettings: CallSettings | string, view: HTMLElement, ongoingCallListener?: OngoingCallListener): void;
|
|
1679
|
-
/**
|
|
1680
|
-
* Function to fetch participant count of an ongoing call.
|
|
1681
|
-
* @param {string} sessionId
|
|
1682
|
-
* @param {string} type
|
|
1683
|
-
* @returns {Promise<number>}
|
|
1684
|
-
* @memberof CometChat
|
|
1685
|
-
*/
|
|
1686
|
-
static getCallParticipantCount(sessionId: string, type: string): Promise<number>;
|
|
1687
|
-
/**-------------------------------------------------------------------*
|
|
1688
|
-
* Call related `helper` functions provided by CometChat class. *
|
|
1689
|
-
* ---ONLY PRIVATE FUNCTION DO NOT MADE PUBLIC--- *
|
|
1690
|
-
*--------------------------------------------------------------------**/
|
|
1691
|
-
/**
|
|
1692
|
-
* Function to reject an incoming call.
|
|
1693
|
-
* @private
|
|
1694
|
-
* @internal
|
|
1695
|
-
* @param {string} sessionid
|
|
1696
|
-
* @returns {Promise<Call>}
|
|
1697
|
-
* @memberof CometChat
|
|
1698
|
-
*/
|
|
1699
|
-
private static rejectIncomingCall;
|
|
1700
|
-
/**
|
|
1701
|
-
* Function to reject an outgoing call
|
|
1702
|
-
* @private
|
|
1703
|
-
* @internal
|
|
1704
|
-
* @param {string} sessionid
|
|
1705
|
-
* @returns {Promise<Call>}
|
|
1706
|
-
* @memberof CometChat
|
|
1707
|
-
*/
|
|
1708
|
-
private static cancelCall;
|
|
1709
|
-
/**
|
|
1710
|
-
* Function to send a busy response for an incoming call.
|
|
1711
|
-
* @private
|
|
1712
|
-
* @internal
|
|
1713
|
-
* @param {string} sessionid
|
|
1714
|
-
* @returns {Promise<Call>}
|
|
1715
|
-
* @memberof CometChat
|
|
1716
|
-
*/
|
|
1717
|
-
private static sendBusyResponse;
|
|
1718
|
-
/**
|
|
1719
|
-
* Function to send unanswered response if a call in not answered in a specific time interval.
|
|
1720
|
-
* @internal
|
|
1721
|
-
* @param {string} sessionid
|
|
1722
|
-
* @returns {Promise<Call>}
|
|
1723
|
-
* @memberof CometChat
|
|
1724
|
-
*/
|
|
1725
|
-
static sendUnansweredResponse(sessionid: string): Promise<Call>;
|
|
1726
|
-
/**-------------------------------------------------------------------------------------------------------*
|
|
1727
|
-
* Events listeners setting and removing . *
|
|
1728
|
-
*--------------------------------------------------------------------------------------------------------**/
|
|
1729
|
-
/**
|
|
1730
|
-
*
|
|
1731
|
-
* Function to add a Connection Listner.
|
|
1732
|
-
* @param {string} name
|
|
1733
|
-
* @param {ConnectionListener} connectionListener
|
|
1734
|
-
* @memberof CometChat
|
|
1735
|
-
*/
|
|
1736
|
-
static addConnectionListener(name: string, connectionListener: ConnectionListener): void;
|
|
1737
|
-
/**
|
|
1738
|
-
*
|
|
1739
|
-
* Function to remove a Connection Listner.
|
|
1740
|
-
* @param {string} name
|
|
1741
|
-
* @memberof CometChat
|
|
1742
|
-
*/
|
|
1743
|
-
static removeConnectionListener(name: string): void;
|
|
1744
|
-
/**
|
|
1745
|
-
*
|
|
1746
|
-
* Function to add a Message Listner.
|
|
1747
|
-
* @param {string} name
|
|
1748
|
-
* @param {MessageListener} messageListener
|
|
1749
|
-
* @memberof CometChat
|
|
1750
|
-
*/
|
|
1751
|
-
static addMessageListener(name: string, messageListener: MessageListener): void;
|
|
1752
|
-
/**
|
|
1753
|
-
*
|
|
1754
|
-
* Function to remove a Message Listner.
|
|
1755
|
-
* @param {string} name
|
|
1756
|
-
* @memberof CometChat
|
|
1757
|
-
*/
|
|
1758
|
-
static removeMessageListener(name: string): void;
|
|
1759
|
-
/**
|
|
1760
|
-
*
|
|
1761
|
-
* Function to add a Call Listener.
|
|
1762
|
-
* @param {string} name
|
|
1763
|
-
* @param {CallListener} callListener
|
|
1764
|
-
* @memberof CometChat
|
|
1765
|
-
*/
|
|
1766
|
-
static addCallListener(name: string, callListener: CallListener): void;
|
|
1767
|
-
/**
|
|
1768
|
-
*
|
|
1769
|
-
* Function to remove a Call Listener.
|
|
1770
|
-
* @param {string} name
|
|
1771
|
-
* @memberof CometChat
|
|
1772
|
-
*/
|
|
1773
|
-
static removeCallListener(name: string): void;
|
|
1774
|
-
/**
|
|
1775
|
-
*
|
|
1776
|
-
* Function to add a User Listener.
|
|
1777
|
-
* @param {string} name
|
|
1778
|
-
* @param {UserListener} userListener
|
|
1779
|
-
* @memberof CometChat
|
|
1780
|
-
*/
|
|
1781
|
-
static addUserListener(name: string, userListener: UserListener): void;
|
|
1782
|
-
/**
|
|
1783
|
-
*
|
|
1784
|
-
* Function to remove a User Listener.
|
|
1785
|
-
* @param {string} name
|
|
1786
|
-
* @memberof CometChat
|
|
1787
|
-
*/
|
|
1788
|
-
static removeUserListener(name: string): void;
|
|
1789
|
-
/**
|
|
1790
|
-
*
|
|
1791
|
-
* Function to add a Group Listener.
|
|
1792
|
-
* @param {string} name
|
|
1793
|
-
* @param {GroupListener} groupListener
|
|
1794
|
-
* @memberof CometChat
|
|
1795
|
-
*/
|
|
1796
|
-
static addGroupListener(name: string, groupListener: GroupListener): void;
|
|
1797
|
-
/**
|
|
1798
|
-
*
|
|
1799
|
-
* Function to remove a Group Listener.
|
|
1800
|
-
* @param {string} name
|
|
1801
|
-
* @memberof CometChat
|
|
1802
|
-
*/
|
|
1803
|
-
static removeGroupListener(name: string): void;
|
|
1804
|
-
/**
|
|
1805
|
-
* Function to add a Login Listener.
|
|
1806
|
-
*
|
|
1807
|
-
* @param {string} name
|
|
1808
|
-
* @param {LoginListener} loginListener
|
|
1809
|
-
* @memberof CometChat
|
|
1810
|
-
*/
|
|
1811
|
-
static addLoginListener(name: string, loginListener: LoginListener): void;
|
|
1812
|
-
/**
|
|
1813
|
-
* Function to remove a Login Listener.
|
|
1814
|
-
*
|
|
1815
|
-
* @param {string} name
|
|
1816
|
-
* @memberof CometChat
|
|
1817
|
-
*/
|
|
1818
|
-
static removeLoginListener(name: string): void;
|
|
1819
|
-
/**------------------------------------*
|
|
1820
|
-
* Private helper methods functions *
|
|
1821
|
-
*-------------------------------------**/
|
|
1822
|
-
/**
|
|
1823
|
-
*
|
|
1824
|
-
* ---SHOULD NOT BE MADE PUBLIC---
|
|
1825
|
-
* Function to generate an Authtoken for the provided UID.
|
|
1826
|
-
* @param {string} uid
|
|
1827
|
-
* @returns {Promise<Object>}
|
|
1828
|
-
* @memberof CometChat
|
|
1829
|
-
*/
|
|
1830
|
-
private static generateAuthToken;
|
|
1831
|
-
private static tryReconnectingToWS;
|
|
1832
|
-
/**
|
|
1833
|
-
*
|
|
1834
|
-
* Function to make WebSocket Connection.
|
|
1835
|
-
* @internal
|
|
1836
|
-
*/
|
|
1837
|
-
makeWSConnection(): void;
|
|
1838
|
-
/**
|
|
1839
|
-
*
|
|
1840
|
-
* Function is triggered when the WebSocket Connection is broken.
|
|
1841
|
-
* @internal
|
|
1842
|
-
*/
|
|
1843
|
-
accidentallyDisconnected(): void;
|
|
1844
|
-
private static WSLogin;
|
|
1845
|
-
private static pingAnalytics;
|
|
1846
|
-
private static updateJWT;
|
|
1847
|
-
private static startAnalyticsPingTimer;
|
|
1848
|
-
/**
|
|
1849
|
-
*
|
|
1850
|
-
* Function to clear the analytical timer.
|
|
1851
|
-
* @internal
|
|
1852
|
-
*/
|
|
1853
|
-
static clearAnalyticsPingTimer(): void;
|
|
1854
|
-
private static startWSReconnectionTimer;
|
|
1855
|
-
private static clearWSReconnectionTimer;
|
|
1856
|
-
private static getJWT;
|
|
1857
|
-
/**
|
|
1858
|
-
* Get the current connection status
|
|
1859
|
-
* @returns {string}
|
|
1860
|
-
* @memberof CometChat
|
|
1861
|
-
*/
|
|
1862
|
-
static getConnectionStatus(): string;
|
|
1863
|
-
/**
|
|
1864
|
-
* Update the connection status.
|
|
1865
|
-
* @internal
|
|
1866
|
-
* @memberof CometChat
|
|
1867
|
-
*/
|
|
1868
|
-
setConnectionStatus(connectionStatus: any): void;
|
|
1869
|
-
/**
|
|
1870
|
-
*
|
|
1871
|
-
* Returns a boolean value which indicates if the extension is enabled or not.
|
|
1872
|
-
* @param {string} extensionId
|
|
1873
|
-
* @returns {Promise<boolean>}
|
|
1874
|
-
* @memberof CometChat
|
|
1875
|
-
*/
|
|
1876
|
-
static isExtensionEnabled(extensionId: string): Promise<boolean>;
|
|
1877
|
-
/**
|
|
1878
|
-
* Returns an object of CCExtension Class which has the details of the extension.
|
|
1879
|
-
*
|
|
1880
|
-
* @param {string} extensionId
|
|
1881
|
-
* @returns {Promise<CCExtension>}
|
|
1882
|
-
* @memberof CometChat
|
|
1883
|
-
*/
|
|
1884
|
-
static getExtensionDetails(extensionId: string): Promise<CCExtension>;
|
|
1885
|
-
/**
|
|
1886
|
-
* Get the XMPP/ WEBRTC details from the servers
|
|
1887
|
-
* @internal
|
|
1888
|
-
* @returns {Promise<Object>}
|
|
1889
|
-
* @memberof CometChat
|
|
1890
|
-
*/
|
|
1891
|
-
static getAppSettings(): Promise<Object>;
|
|
1892
|
-
/**
|
|
1893
|
-
* Returns a boolean value which indicates if a feature is enabled or not for the current plan.
|
|
1894
|
-
* @param {string} feature
|
|
1895
|
-
* @returns {Promise<boolean>}
|
|
1896
|
-
* @memberof CometChat
|
|
1897
|
-
*/
|
|
1898
|
-
static isFeatureEnabled(feature: string): Promise<boolean>;
|
|
1899
|
-
/**
|
|
1900
|
-
* Clears the authtoken from server and clears the local cache.
|
|
1901
|
-
* @returns {Promise<Object>}
|
|
1902
|
-
* @memberof CometChat
|
|
1903
|
-
*/
|
|
1904
|
-
static logout(): Promise<Object>;
|
|
1905
|
-
/**
|
|
1906
|
-
* Function to call extension API.
|
|
1907
|
-
* @param {string} slug
|
|
1908
|
-
* @param {string} method
|
|
1909
|
-
* @param {string} endpoint
|
|
1910
|
-
* @param {Object} data
|
|
1911
|
-
* @returns {Promise<Object>}
|
|
1912
|
-
* @memberof CometChat
|
|
1913
|
-
*/
|
|
1914
|
-
static callExtension(slug: string, method: string, endpoint: string, data?: Object): Promise<Object>;
|
|
1915
|
-
/**
|
|
1916
|
-
* Function to get conversation starter for a particular conversation.
|
|
1917
|
-
* @param {string} receiverId
|
|
1918
|
-
* @param {string} receiverType
|
|
1919
|
-
* @returns {Promise<Object>}
|
|
1920
|
-
* @memberof CometChat
|
|
1921
|
-
*/
|
|
1922
|
-
static getConversationStarter(receiverId: string, receiverType: string): Promise<Object>;
|
|
1923
|
-
/**
|
|
1924
|
-
* Function to get smart reply in a particular conversation.
|
|
1925
|
-
* @param {string} receiverId
|
|
1926
|
-
* @param {string} receiverType
|
|
1927
|
-
* @returns {Promise<Object>}
|
|
1928
|
-
* @memberof CometChat
|
|
1929
|
-
*/
|
|
1930
|
-
static getSmartReply(receiverId: string, receiverType: string): Promise<Object>;
|
|
1931
|
-
/**
|
|
1932
|
-
* Function to set resource, platform and language variable.
|
|
1933
|
-
* @param {string} resource
|
|
1934
|
-
* @param {string} platform
|
|
1935
|
-
* @param {string} language
|
|
1936
|
-
* @memberof CometChat
|
|
1937
|
-
*/
|
|
1938
|
-
static setSource(resource: string, platform: string, language: string): void;
|
|
1939
|
-
/**
|
|
1940
|
-
* Function to clear local storage.
|
|
1941
|
-
* @internal
|
|
1942
|
-
* @memberof CometChat
|
|
1943
|
-
*/
|
|
1944
|
-
static clearCache(): Promise<unknown>;
|
|
1945
|
-
/**
|
|
1946
|
-
*
|
|
1947
|
-
* Method to connect to WebSocket server.
|
|
1948
|
-
*
|
|
1949
|
-
* @static
|
|
1950
|
-
* @returns void
|
|
1951
|
-
* @memberof CometChat
|
|
1952
|
-
*/
|
|
1953
|
-
static connect(): void;
|
|
1954
|
-
/**
|
|
1955
|
-
*
|
|
1956
|
-
* Method to disconnect from WebSocket server.
|
|
1957
|
-
*
|
|
1958
|
-
* @static
|
|
1959
|
-
* @returns void
|
|
1960
|
-
* @memberof CometChat
|
|
1961
|
-
*/
|
|
1962
|
-
static disconnect(): void;
|
|
1963
|
-
/**
|
|
1964
|
-
* @internal
|
|
1965
|
-
* @param authToken
|
|
1966
|
-
* @returns
|
|
1967
|
-
*/
|
|
1968
|
-
internalRestart(authToken: any): void;
|
|
1969
|
-
/**
|
|
1970
|
-
* @internal
|
|
1971
|
-
* @param pushToLoginListener
|
|
1972
|
-
* @returns
|
|
1973
|
-
*/
|
|
1974
|
-
internalLogout(pushToLoginListener?: boolean): Promise<unknown>;
|
|
1975
|
-
}
|