@cometchat/calls-sdk-javascript 4.2.3 → 5.0.0-beta.1

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.
Files changed (43) hide show
  1. package/README.md +29 -16
  2. package/dist/index.css +1 -0
  3. package/dist/index.d.ts +2017 -0
  4. package/dist/index.es.js +39122 -0
  5. package/dist/index.es.js.map +1 -0
  6. package/dist/index.umd.js +320 -0
  7. package/dist/index.umd.js.map +1 -0
  8. package/package.json +42 -23
  9. package/LICENSE.md +0 -3
  10. package/pack/index.js +0 -2
  11. package/pack/src/Helper.d.ts +0 -5
  12. package/pack/src/api/APIHandler.d.ts +0 -39
  13. package/pack/src/api/endpoints.d.ts +0 -7
  14. package/pack/src/api/helper.d.ts +0 -69
  15. package/pack/src/api/index.d.ts +0 -2
  16. package/pack/src/constants/CallConstants.d.ts +0 -218
  17. package/pack/src/constants/index.d.ts +0 -1
  18. package/pack/src/defaultCallsettings.d.ts +0 -2
  19. package/pack/src/index.d.ts +0 -7
  20. package/pack/src/models/CallGroup.d.ts +0 -14
  21. package/pack/src/models/CallLog.d.ts +0 -276
  22. package/pack/src/models/CallSettings.d.ts +0 -396
  23. package/pack/src/models/CallUser.d.ts +0 -14
  24. package/pack/src/models/CallsAppSettings.d.ts +0 -41
  25. package/pack/src/models/CometChatCallLogs.d.ts +0 -189
  26. package/pack/src/models/CometChatCalls.d.ts +0 -181
  27. package/pack/src/models/CometChatCallsException.d.ts +0 -8
  28. package/pack/src/models/ErrorModel.d.ts +0 -12
  29. package/pack/src/models/Listener.d.ts +0 -91
  30. package/pack/src/models/ListnerHandler.d.ts +0 -10
  31. package/pack/src/models/Participant.d.ts +0 -184
  32. package/pack/src/models/PresenterSettings.d.ts +0 -279
  33. package/pack/src/models/RTCUser.d.ts +0 -18
  34. package/pack/src/models/Recording.d.ts +0 -86
  35. package/pack/src/models/index.d.ts +0 -10
  36. package/pack/src/types/ICallSettings.d.ts +0 -62
  37. package/pack/src/types/ICallsAppSettings.d.ts +0 -6
  38. package/pack/src/types/RTCUser.d.ts +0 -6
  39. package/pack/src/types/callEvents.d.ts +0 -84
  40. package/pack/src/types/common.d.ts +0 -14
  41. package/pack/src/types/index.d.ts +0 -2
  42. package/pack/src/util/parseJwt.d.ts +0 -1
  43. package/pack/src/util/verifyCallSettings.d.ts +0 -4
@@ -1,396 +0,0 @@
1
- import { ICallsettings } from "../types";
2
- import { OngoingCallListener } from "./Listener";
3
- export declare class CallSettings {
4
- static POSITION_TOP_LEFT: string;
5
- static POSITION_TOP_RIGHT: string;
6
- static POSITION_BOTTOM_LEFT: string;
7
- static POSITION_BOTTOM_RIGHT: string;
8
- static POSITION: {
9
- readonly TOP_LEFT: "top-left";
10
- readonly TOP_RIGHT: "top-right";
11
- readonly BOTTOM_LEFT: "bottom-left";
12
- readonly BOTTOM_RIGHT: "bottom-right";
13
- };
14
- static ASPECT_RATIO_DEFAULT: string;
15
- static ASPECT_RATIO_CONTAIN: string;
16
- static ASPECT_RATIO_COVER: string;
17
- static ASPECT_RATIO: {
18
- readonly DEFAULT: "default";
19
- readonly CONTAIN: "contain";
20
- readonly COVER: "cover";
21
- };
22
- private defaultLayout;
23
- private isAudioOnly;
24
- private mode;
25
- private ShowEndCallButton;
26
- private ShowMuteAudioButton;
27
- private ShowPauseVideoButton;
28
- private ShowScreenShareButton;
29
- private ShowSwitchModeButton;
30
- private StartAudioMuted;
31
- private StartVideoMuted;
32
- private localizedObject;
33
- private analyticsSettings;
34
- private customCSS;
35
- private ShowRecordingButton;
36
- private idleTimeoutPeriod;
37
- private StartRecordingOnCallStart;
38
- private callListener;
39
- private ShowSwitchToVideoCallButton;
40
- private VirtualBackground;
41
- private ShowVirtualBackgroundSetting;
42
- private MainVideoContainerSetting;
43
- constructor(builder?: CallSettingsBuilder);
44
- getCallListener(): OngoingCallListener;
45
- isRecordingButtonEnabled(): boolean;
46
- getIdleTimeoutPeriod(): number;
47
- shouldStartRecordingOnCallStart(): boolean;
48
- getCustomCSS(): string;
49
- isAudioOnlyCall(): boolean;
50
- isDefaultLayoutEnabled(): boolean;
51
- getMode(): "DEFAULT" | "SPOTLIGHT" | "TILE";
52
- getStartWithAudioMuted(): boolean;
53
- getStartWithVideoMuted(): boolean;
54
- isEndCallButtonEnabled(): boolean;
55
- isMuteAudioButtonEnabled(): boolean;
56
- isPauseVideoButtonEnabled(): boolean;
57
- isScreenShareButtonEnabled(): boolean;
58
- isModeButtonEnabled(): boolean;
59
- getLocalizedStringObject(): Object;
60
- getAnalyticsSettings(): Object;
61
- isAudioToVideoButtonEnabled(): boolean;
62
- getVirtualBackground(): VirtualBackground;
63
- isVirtualBackgroundSettingEnabled(): boolean;
64
- getMainVideoContainerSetting(): MainVideoContainerSetting;
65
- }
66
- export declare class CallSettingsBuilder {
67
- /** @private */ defaultLayout: boolean;
68
- /** @private */ isAudioOnly: boolean;
69
- /** @private */ mode: ICallsettings["mode"];
70
- /** @private */ ShowEndCallButton: boolean;
71
- /** @private */ ShowMuteAudioButton: boolean;
72
- /** @private */ ShowPauseVideoButton: boolean;
73
- /** @private */ ShowScreenShareButton: boolean;
74
- /** @private */ ShowSwitchModeButton: boolean;
75
- /** @private */ StartAudioMuted: boolean;
76
- /** @private */ StartVideoMuted: boolean;
77
- /** @private */ localizedObject: Object;
78
- /** @private */ analyticsSettings: Object;
79
- /** @private */ customCSS: string;
80
- /** @private */ ShowRecordingButton: boolean;
81
- /** @private */ idleTimeoutPeriod: number;
82
- /** @private */ StartRecordingOnCallStart: boolean;
83
- /** @private */ ShowSwitchToVideoCallButton: boolean;
84
- /** @private */ virtualBackground: VirtualBackground;
85
- /** @private */ ShowVirtualBackgroundSetting: boolean;
86
- /** @private */ MainVideoContainerSetting: MainVideoContainerSetting;
87
- /** @private */ callListener: OngoingCallListener;
88
- /**
89
- *
90
- * @param {boolean} defaultLayout
91
- * This methods shows/hides the default button layout.
92
- * If set to true the default button layout will be shown.
93
- * If set to false the default button layout will be hidden.
94
- * Default value is true
95
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
96
- */
97
- enableDefaultLayout(defaultLayout: boolean): this;
98
- /**
99
- *
100
- * @param {boolean} isAudioOnly
101
- * This methods sets the type(audio/video) of the call.
102
- * If set to true, the call will be strictly an audio call.
103
- * If set to false, the call will be an audio-video call.
104
- * Default value is false
105
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
106
- */
107
- setIsAudioOnlyCall(isAudioOnly: boolean): this;
108
- /**
109
- *
110
- * @param {string} mode
111
- * This method sets the mode of the call.
112
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
113
- */
114
- setMode(mode: ICallsettings["mode"]): this;
115
- /**
116
- *
117
- * @param {boolean} showEndCallButton
118
- * This method shows/hides the end call button.
119
- * If set to true it will display the end call button.
120
- * If set to false it will hide the end call button.
121
- * Default value is true.
122
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
123
- */
124
- showEndCallButton(showEndCallButton: boolean): this;
125
- /**
126
- *
127
- * @param {boolean} showMuteAudioButton
128
- * This method shows/hides the mute audio button.
129
- * If set to true it will display the mute audio button.
130
- * If set to false it will hide the mute audio button.
131
- * Default value is true.
132
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
133
- */
134
- showMuteAudioButton(showMuteAudioButton: boolean): this;
135
- /**
136
- *
137
- * @param {boolean} showPauseVideoButton
138
- * This method shows/hides the pause video button.
139
- * If set to true it will display the pause video button.
140
- * If set to false it will hide the pause video button.
141
- * Default value is true.
142
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
143
- */
144
- showPauseVideoButton(showPauseVideoButton: boolean): this;
145
- /**
146
- *
147
- * @param {boolean} showScreenShareButton
148
- * This method shows/hides the screen share button.
149
- * If set to true it will display the screen share button.
150
- * If set to false it will hide the screen share button.
151
- * Default value is true.
152
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
153
- */
154
- showScreenShareButton(showScreenShareButton: boolean): this;
155
- /**
156
- *
157
- * @param {boolean} showModeButton
158
- * This method shows/hides the switch mode button.
159
- * If set to true it will display the switch mode button.
160
- * If set to false it will hide the switch mode button.
161
- * Default value is true.
162
- * @returns
163
- */
164
- showModeButton(showModeButton: boolean): this;
165
- /**
166
- *
167
- * @param {Object} localizedStringObject
168
- * This method will set the localized text in the call screen.
169
- * @returns
170
- */
171
- setLocalizedStringObject(localizedStringObject: Object): this;
172
- /**
173
- * @private
174
- * @param {Object} analyticsSettings
175
- * This method will set the settings required for analytics.
176
- * @returns
177
- */
178
- setAnalyticsSettings(analyticsSettings: Object): this;
179
- /**
180
- *
181
- * @param {boolean} audioMuted
182
- * This method allows the call to be started with audio muted.
183
- * If set to true, the call will start with audio muted.
184
- * Default value is false.
185
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
186
- */
187
- startWithAudioMuted(audioMuted: boolean): this;
188
- /**
189
- *
190
- * @param {boolean} videoMuted
191
- * This method allows the call to be started with video muted.
192
- * If set to true, the call will start with video muted.
193
- * Default value is false.
194
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
195
- */
196
- startWithVideoMuted(videoMuted: boolean): this;
197
- /**
198
- *
199
- * @param {boolean} showRecordingButton
200
- * This method shows/hides the recording button.
201
- * If set to true it will display the recording button.
202
- * If set to false it will hide the recording button.
203
- * Default value is false.
204
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
205
- */
206
- showRecordingButton(showRecordingButton: boolean): this;
207
- /**
208
- *
209
- * @param {number} idleTimeoutPeriod
210
- * This method sets the idle timeout period for the call.
211
- * If set and you are the only one in call, the call will end
212
- * after the idle timeout period, giving you the option to
213
- * extend the call 60 seconds before the call ends.
214
- * Default value is 180 seconds.
215
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
216
- */
217
- setIdleTimeoutPeriod(idleTimeoutPeriod: number): this;
218
- /**
219
- *
220
- * @param {boolean} startRecordingOnCallStart
221
- * This method starts the recording as soon as the call start.
222
- * If set to true it will start the recording as soon as the call start.
223
- * Default value is false.
224
- * @returns {CallSettingsBuilder} Returns the CallSettingsBuilder instance
225
- */
226
- startRecordingOnCallStart(startRecordingOnCallStart: boolean): this;
227
- /**
228
- *
229
- * @param {boolean} showAudioToVideoSwitchButton
230
- * This method shows/hides the switch to video call button.
231
- * If set to true it will display the switch to video call button.
232
- * If set to false it will hide the switch to video call button.
233
- * Default value is true.
234
- * @returns
235
- */
236
- showSwitchToVideoCallButton(showAudioToVideoSwitchButton: boolean): this;
237
- /**
238
- *
239
- * @param {VirtualBackground} virtualBackground
240
- * This method will set the virtual background setting.
241
- * This methods takes an Object of VirtualBackground Class.
242
- * @returns
243
- */
244
- setVirtualBackground(virtualBackground: VirtualBackground): this;
245
- /**
246
- *
247
- * @param {boolean} showVirtualBackgroundSetting
248
- * This method shows/hides the virtual background setting button.
249
- * If set to true it will display the virtual background setting button.
250
- * If set to false it will hide the virtual background setting button.
251
- * Default value is true.
252
- * @returns
253
- */
254
- showVirtualBackgroundSetting(showVirtualBackgroundSetting: boolean): this;
255
- /**
256
- *
257
- * @param {MainVideoContainerSetting} mainVideoContainerSetting
258
- * This method can be used to customize the main video container.
259
- * @returns
260
- */
261
- setMainVideoContainerSetting(mainVideoContainerSetting: MainVideoContainerSetting): this;
262
- /**
263
- *
264
- * @param {OngoingCallListener} callListener
265
- * This method can be used to subscribe to available callings events
266
- * @returns
267
- */
268
- setCallListener(callListener: OngoingCallListener): this;
269
- /**
270
- * This method will return an object of the CallSettings class.
271
- * @returns {CallSettings} Returns the CallSettings instance
272
- */
273
- build(): CallSettings;
274
- }
275
- export declare class VirtualBackground {
276
- private AllowBackgroundBlur;
277
- private AllowUserImages;
278
- private ShowDefaultImages;
279
- private SetImages;
280
- private EnforceBackgroundBlur;
281
- private EnforceBackgroundImage;
282
- constructor(builder?: VirtualBackgroundBuilder);
283
- shouldAllowBackgroundBlur(): boolean;
284
- shouldAllowUserImages(): boolean;
285
- shouldShowDefaultImages(): boolean;
286
- getImages(): Array<String>;
287
- isBackgroundBlurEnforced(): number;
288
- getEnforcedBackgroundImage(): string;
289
- }
290
- export declare class VirtualBackgroundBuilder {
291
- /** @private */ AllowBackgroundBlur: boolean;
292
- /** @private */ AllowUserImages: boolean;
293
- /** @private */ ShowDefaultImages: boolean;
294
- /** @private */ SetImages: string[];
295
- /** @private */ EnforceBackgroundBlur: number;
296
- /** @private */ EnforceBackgroundImage: string;
297
- /**
298
- *
299
- * @param {boolean} AllowBackgroundBlur
300
- * This method will show the background blur option in Virtual Background.
301
- * If set to true it will show the background blur option.
302
- * Default value is true.
303
- * @returns
304
- */
305
- allowBackgroundBlur(AllowBackgroundBlur: boolean): this;
306
- /**
307
- *
308
- * @param {boolean} AllowUserImage
309
- * This method will allow the user to add custom images as background.
310
- * If set to true it will allow the user to add custom images as background.
311
- * Default value is true.
312
- * @returns
313
- */
314
- allowUserImages(AllowUserImages: boolean): this;
315
- /**
316
- *
317
- * @param {boolean} ShowDefaultImages
318
- * This method will show the default images to be used as background.
319
- * If set to true it will show the default images to be used as background.
320
- * Default value is true.
321
- * @returns
322
- */
323
- showDefaultImages(ShowDefaultImages: boolean): this;
324
- /**
325
- *
326
- * @param {boolean} SetImages
327
- * This method will allow user to add custom Images to be used as background. It takes in an array of URLs.
328
- * @returns
329
- */
330
- setImages(SetImages: string[]): this;
331
- /**
332
- *
333
- * @param {number} EnforceBackgroundBlur
334
- * This method will enforce background blur.
335
- * This method takes number as input which decides the blur level of the background.
336
- * Default value is 0.
337
- * @returns
338
- */
339
- enforceBackgroundBlur(EnforceBackgroundBlur: number): this;
340
- /**
341
- *
342
- * @param {string} EnforceBackgroundImage
343
- * This method will enforce background image.
344
- * If an URL of the image is sent then that image will be set as background.
345
- * By default no image is set.
346
- * @returns
347
- */
348
- enforceBackgroundImage(EnforceBackgroundImage: string): this;
349
- /**
350
- * This method will return an object of the VirtualBackground class.
351
- * @returns {VirtualBackground}
352
- */
353
- build(): VirtualBackground;
354
- }
355
- export declare class MainVideoContainerSetting {
356
- private videoFit;
357
- private zoomButton;
358
- private nameLabel;
359
- private network;
360
- /**
361
- *
362
- * @param {string} mainVideoAspectRatio
363
- * This method is used to set the aspect ratio of main video.
364
- * The default value is `contain`
365
- * @returns
366
- */
367
- setMainVideoAspectRatio(mainVideoAspectRatio: typeof CallSettings.ASPECT_RATIO[keyof typeof CallSettings.ASPECT_RATIO]): void;
368
- /**
369
- *
370
- * @param {string} position
371
- * @param {boolean} visibility
372
- * This method is used to set the position & visibility parameter of the full screen button.
373
- * By default the full screen button is visible in the `bottom-right` position.
374
- * @returns
375
- */
376
- setFullScreenButtonParams(position: typeof CallSettings.POSITION[keyof typeof CallSettings.POSITION], visibility: boolean): void;
377
- /**
378
- *
379
- * @param {string} position
380
- * @param {boolean} visibility
381
- * @param {string} backgroundColor
382
- * This method is used to set the position, visibility & background color of the name label.
383
- * By default the name label is visible in the `bottom-left` position with a background-color `rgba(27, 27, 27, 0.4)`
384
- * @returns
385
- */
386
- setNameLabelParams(position: typeof CallSettings.POSITION[keyof typeof CallSettings.POSITION], visibility: boolean, backgroundColor: string): void;
387
- /**
388
- *
389
- * @param {string} position
390
- * @param {boolean} visibility
391
- * This method is used to set the position, visibility of the network label.
392
- * By default the network label is visible in the `bottom-right` position.
393
- * @returns
394
- */
395
- setNetworkLabelParams(position: typeof CallSettings.POSITION[keyof typeof CallSettings.POSITION], visibility: boolean): void;
396
- }
@@ -1,14 +0,0 @@
1
- export declare class CallUser {
2
- protected uid: string;
3
- protected name: string;
4
- protected avatar: string;
5
- constructor(object: any);
6
- getUid(): string;
7
- setUid(uid: string): void;
8
- getName(): string;
9
- setName(name: string): void;
10
- getAvatar(): string;
11
- setAvatar(avatar: string): void;
12
- toString(): string;
13
- static getUserFromJson(object: any): CallUser;
14
- }
@@ -1,41 +0,0 @@
1
- import { Host, Region } from "../types/common";
2
- export declare class CallAppSettings {
3
- private appId;
4
- private region;
5
- private host?;
6
- constructor(builder?: CallAppSettingsBuilder);
7
- setAppId(appId: string): this;
8
- setRegion(region: Region): this;
9
- setHost(host: Host): this;
10
- getAppId(): string;
11
- getRegion(): Region;
12
- getHost(): Host;
13
- }
14
- export declare class CallAppSettingsBuilder {
15
- appId: string;
16
- region: Region;
17
- host?: Host;
18
- /**
19
- * Method to set appId of the app.
20
- * @param {string} appId appId of the app
21
- * @returns
22
- */
23
- setAppId(appId: string): this;
24
- /**
25
- * Method to set region of the app.
26
- * @param {Region} region region of the app.
27
- * @returns {void}
28
- */
29
- setRegion(region: Region): this;
30
- /**
31
- * Method to set host/domain of the app.
32
- * @param {string} host host/domain of the app.
33
- * @returns {void}
34
- */
35
- setHost(host: Host): this;
36
- /**
37
- * This method will return an object of the CallsAppSettings class.
38
- * @returns {CallAppSettings} Returns the CallsAppSettings instance
39
- */
40
- build(): CallAppSettings;
41
- }
@@ -1,189 +0,0 @@
1
- import { CallLog } from "./CallLog";
2
- /**
3
- * Represents a request to fetch call logs.
4
- */
5
- declare class CallLogRequest {
6
- /**
7
- * The maximum number of call logs to fetch.
8
- */
9
- private limit;
10
- /**
11
- * The total number of pages of call logs.
12
- */
13
- private totalPages;
14
- /**
15
- * The current page of call logs.
16
- */
17
- private currentPage;
18
- /**
19
- * The type of call to filter by.
20
- */
21
- private callType;
22
- /**
23
- * The status of call to filter by.
24
- */
25
- private callStatus;
26
- /**
27
- * Whether the call has a recording or not.
28
- */
29
- private hasRecording;
30
- /**
31
- * The category of call to filter by.
32
- */
33
- private callCategory;
34
- /**
35
- * The direction of call to filter by.
36
- */
37
- private callDirection;
38
- /**
39
- * The user ID to filter by.
40
- */
41
- private uid;
42
- /**
43
- * The group ID to filter by.
44
- */
45
- private guid;
46
- /**
47
- * The authentication token to use for the API call.
48
- */
49
- private authToken;
50
- /**
51
- * Whether an API call is currently in progress.
52
- */
53
- private inProgress;
54
- /**
55
- * The timestamp of the last update.
56
- */
57
- private updatedAt;
58
- /**
59
- * Whether to only fetch updates.
60
- */
61
- private onlyUpdates;
62
- /**
63
- * The timestamp of the call log.
64
- */
65
- private timestamp?;
66
- /**
67
- * The affix of the call log.
68
- */
69
- private affix;
70
- /**
71
- * The last affix of the call log.
72
- */
73
- private lastAffix;
74
- /**
75
- * The current method of the call log.
76
- */
77
- private currentMethod;
78
- /**
79
- * The pagination metadata of the call log.
80
- */
81
- private paginationMeta;
82
- /**
83
- * Creates a new CallLogRequest instance.
84
- * @param builder The builder object to use for constructing the request.
85
- */
86
- constructor(builder: CallLogRequestBuilder);
87
- /**
88
- * Fetches the next page of call logs.
89
- * @returns A promise that resolves to an array of CallLog objects, or rejects with a CometChatCallsException if there was an error.
90
- */
91
- fetchNext(): Promise<CallLog[]>;
92
- /**
93
- * Fetches the previous page of call logs.
94
- * @returns A promise that resolves to an array of CallLog objects, or an empty array if there are no previous pages, or rejects with a CometChatCallsException if there was an error..
95
- */
96
- fetchPrevious(): Promise<CallLog[] | []>;
97
- /**
98
- * Makes an API call to fetch call logs.
99
- * @param isFetchNext Whether to fetch the next page of call logs.
100
- * @returns A promise that resolves to an array of CallLog objects, or rejects with a CometChatCallsException if there was an error.
101
- */
102
- private makeAPICall;
103
- /**
104
- * Gets the filter parameters for the API call.
105
- * @param isNext Whether to fetch the next page of call logs.
106
- * @returns The filter parameters object.
107
- */
108
- private getParams;
109
- /**
110
- * Parses the API response and returns an array of CallLog objects.
111
- * @param response The API response string.
112
- * @returns An array of CallLog objects.
113
- */
114
- private getCallLogList;
115
- }
116
- /**
117
- * A builder class for creating a request to fetch call logs.
118
- */
119
- export declare class CallLogRequestBuilder {
120
- /** @private */ limit: number;
121
- /** @private */ callType: string;
122
- /** @private */ callStatus: string;
123
- /** @private */ hasRecording: boolean;
124
- /** @private */ callCategory: string;
125
- /** @private */ callDirection: string;
126
- /** @private */ uid: string;
127
- /** @private */ guid: string;
128
- /** @private */ authToken: string;
129
- /**
130
- * Sets the limit of call logs to be fetched.
131
- * @param limit - The number of call logs to be fetched.
132
- * @returns The CallLogRequestBuilder object.
133
- */
134
- setLimit(limit: number): this;
135
- /**
136
- * Sets the type of call to be fetched.
137
- * @param callType - The type of call to be fetched. Can be either 'video' or 'audio'.
138
- * @returns The CallLogRequestBuilder object.
139
- */
140
- setCallType(callType: 'video' | 'audio'): this;
141
- /**
142
- * Sets the status of call to be fetched.
143
- * @param callStatus - The status of call to be fetched. Can be either 'ongoing', 'busy', 'rejected', 'cancelled', 'ended' or 'missed'.
144
- * @returns The CallLogRequestBuilder object.
145
- */
146
- setCallStatus(callStatus: 'ongoing' | 'busy' | 'rejected' | 'cancelled' | 'ended' | 'missed'): this;
147
- /**
148
- * Sets whether the call has recording or not.
149
- * @param hasRecording - Whether the call has recording or not.
150
- * @returns The CallLogRequestBuilder object.
151
- */
152
- setHasRecording(hasRecording: boolean): this;
153
- /**
154
- * Sets the category of call to be fetched.
155
- * @param callCategory - The category of call to be fetched. Can be either 'call' or 'meet'.
156
- * @returns The CallLogRequestBuilder object.
157
- */
158
- setCallCategory(callCategory: 'call' | 'meet'): this;
159
- /**
160
- * Sets the direction of call to be fetched.
161
- * @param callDirection - The direction of call to be fetched. Can be either 'incoming' or 'outgoing'.
162
- * @returns The CallLogRequestBuilder object.
163
- */
164
- setCallDirection(callDirection: 'incoming' | 'outgoing'): this;
165
- /**
166
- * Sets the user ID of the call logs to be fetched.
167
- * @param uid - The user ID of the call logs to be fetched.
168
- * @returns The CallLogRequestBuilder object.
169
- */
170
- setUid(uid: string): this;
171
- /**
172
- * Sets the group ID of the call logs to be fetched.
173
- * @param guid - The group ID of the call logs to be fetched.
174
- * @returns The CallLogRequestBuilder object.
175
- */
176
- setGuid(guid: string): this;
177
- /**
178
- * Sets the authorization token for the request.
179
- * @param authToken - The authorization token for the request.
180
- * @returns The CallLogRequestBuilder object.
181
- */
182
- setAuthToken(authToken: string): this;
183
- /**
184
- * Builds and returns the CallLogRequest object.
185
- * @returns The CallLogRequest object.
186
- */
187
- build(): CallLogRequest;
188
- }
189
- export {};