@cometchat/calls-sdk-javascript 4.0.4 → 4.0.5
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/pack/api/APIHandler.d.ts +33 -0
- package/pack/api/endpoints.d.ts +1 -0
- package/pack/api/helper.d.ts +6 -0
- package/pack/constants/CallConstants.d.ts +2 -0
- package/pack/index.d.ts +4 -0
- package/pack/index.js +1 -2
- package/pack/models/CallGroup.d.ts +14 -0
- package/pack/models/CallLog.d.ts +276 -0
- package/pack/models/CallUser.d.ts +14 -0
- package/pack/models/CometChatCallLogs.d.ts +189 -0
- package/pack/models/CometChatCalls.d.ts +14 -1
- package/pack/models/Listener.d.ts +5 -0
- package/pack/models/Participant.d.ts +184 -0
- package/pack/models/Recording.d.ts +86 -0
- package/pack/models/index.d.ts +1 -0
- package/pack/types/callEvents.d.ts +2 -1
- package/package.json +1 -1
- package/pack/index.js.LICENSE.txt +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class CallGroup {
|
|
2
|
+
protected guid: string;
|
|
3
|
+
protected name: string;
|
|
4
|
+
protected icon: string;
|
|
5
|
+
constructor(object: any);
|
|
6
|
+
getGuid(): string;
|
|
7
|
+
setGuid(guid: string): void;
|
|
8
|
+
getName(): string;
|
|
9
|
+
setName(name: string): void;
|
|
10
|
+
getIcon(): string;
|
|
11
|
+
setIcon(icon: string): void;
|
|
12
|
+
toString(): string;
|
|
13
|
+
static getGroupFromJson(object: any): CallGroup;
|
|
14
|
+
}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { CallGroup } from "./CallGroup";
|
|
2
|
+
import { CallUser } from "./CallUser";
|
|
3
|
+
import { Participant } from "./Participant";
|
|
4
|
+
import { Recording } from "./Recording";
|
|
5
|
+
/**
|
|
6
|
+
* Represents a call log.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CallLog {
|
|
9
|
+
/**
|
|
10
|
+
* The session ID of the call log.
|
|
11
|
+
*/
|
|
12
|
+
private sessionId;
|
|
13
|
+
/**
|
|
14
|
+
* The total audio minutes of the call log.
|
|
15
|
+
*/
|
|
16
|
+
private totalAudioMinutes;
|
|
17
|
+
/**
|
|
18
|
+
* The total video minutes of the call log.
|
|
19
|
+
*/
|
|
20
|
+
private totalVideoMinutes;
|
|
21
|
+
/**
|
|
22
|
+
* The total duration of the call log.
|
|
23
|
+
*/
|
|
24
|
+
private totalDuration;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the call log has a recording.
|
|
27
|
+
*/
|
|
28
|
+
private hasRecording;
|
|
29
|
+
/**
|
|
30
|
+
* The time the call was initiated at.
|
|
31
|
+
*/
|
|
32
|
+
private initiatedAt;
|
|
33
|
+
/**
|
|
34
|
+
* The call category of the call log.
|
|
35
|
+
*/
|
|
36
|
+
private callCategory;
|
|
37
|
+
/**
|
|
38
|
+
* @type {CallUser}
|
|
39
|
+
* The initiator of the call log.
|
|
40
|
+
*/
|
|
41
|
+
private initiator;
|
|
42
|
+
/**
|
|
43
|
+
* @type {CallUser | CallGroup}
|
|
44
|
+
* The receiver of the call log.
|
|
45
|
+
*/
|
|
46
|
+
private receiver;
|
|
47
|
+
/**
|
|
48
|
+
* The receiver type of the call log.
|
|
49
|
+
*/
|
|
50
|
+
private receiverType;
|
|
51
|
+
/**
|
|
52
|
+
* The status of the call log.
|
|
53
|
+
*/
|
|
54
|
+
private status;
|
|
55
|
+
/**
|
|
56
|
+
* The total duration in minutes of the call log.
|
|
57
|
+
*/
|
|
58
|
+
private totalDurationInMinutes;
|
|
59
|
+
/**
|
|
60
|
+
* The total number of participants in the call log.
|
|
61
|
+
*/
|
|
62
|
+
private totalParticipants;
|
|
63
|
+
/**
|
|
64
|
+
* The type of the call log.
|
|
65
|
+
*/
|
|
66
|
+
private type;
|
|
67
|
+
/**
|
|
68
|
+
* The message ID of the call log.
|
|
69
|
+
*/
|
|
70
|
+
private mid;
|
|
71
|
+
/**
|
|
72
|
+
* The time the call ended at.
|
|
73
|
+
*/
|
|
74
|
+
private endedAt;
|
|
75
|
+
/**
|
|
76
|
+
* @type {Participant[]}
|
|
77
|
+
* The participants of the call log.
|
|
78
|
+
*/
|
|
79
|
+
private participants;
|
|
80
|
+
/**
|
|
81
|
+
* @type {Recording[]}
|
|
82
|
+
* The recordings of the call log.
|
|
83
|
+
*/
|
|
84
|
+
private recordings;
|
|
85
|
+
/**
|
|
86
|
+
* Creates a new instance of CallLog.
|
|
87
|
+
* @param data - The data to initialize the call log with.
|
|
88
|
+
*/
|
|
89
|
+
constructor(data: any);
|
|
90
|
+
/**
|
|
91
|
+
* Gets the session ID of the call log.
|
|
92
|
+
* @returns The session ID of the call log.
|
|
93
|
+
*/
|
|
94
|
+
getSessionID(): string;
|
|
95
|
+
/**
|
|
96
|
+
* Sets the session ID of the call log.
|
|
97
|
+
* @param value - The session ID to set.
|
|
98
|
+
*/
|
|
99
|
+
setSessionID(value: string): void;
|
|
100
|
+
/**
|
|
101
|
+
* Gets the total audio minutes of the call log.
|
|
102
|
+
* @returns The total audio minutes of the call log.
|
|
103
|
+
*/
|
|
104
|
+
getTotalAudioMinutes(): number;
|
|
105
|
+
/**
|
|
106
|
+
* Sets the total audio minutes of the call log.
|
|
107
|
+
* @param value - The total audio minutes to set.
|
|
108
|
+
*/
|
|
109
|
+
setTotalAudioMinutes(value: number): void;
|
|
110
|
+
/**
|
|
111
|
+
* Gets the total video minutes of the call log.
|
|
112
|
+
* @returns The total video minutes of the call log.
|
|
113
|
+
*/
|
|
114
|
+
getTotalVideoMinutes(): number;
|
|
115
|
+
/**
|
|
116
|
+
* Sets the total video minutes of the call log.
|
|
117
|
+
* @param value - The total video minutes to set.
|
|
118
|
+
*/
|
|
119
|
+
setTotalVideoMinutes(value: number): void;
|
|
120
|
+
/**
|
|
121
|
+
* Gets the total duration of the call log.
|
|
122
|
+
* @returns The total duration of the call log.
|
|
123
|
+
*/
|
|
124
|
+
getTotalDuration(): string;
|
|
125
|
+
/**
|
|
126
|
+
* Sets the total duration of the call log.
|
|
127
|
+
* @param value - The total duration to set.
|
|
128
|
+
*/
|
|
129
|
+
setTotalDuration(value: string): void;
|
|
130
|
+
/**
|
|
131
|
+
* Gets whether the call log has a recording.
|
|
132
|
+
* @returns Whether the call log has a recording.
|
|
133
|
+
*/
|
|
134
|
+
getHasRecording(): boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Sets whether the call log has a recording.
|
|
137
|
+
* @param value - Whether the call log has a recording.
|
|
138
|
+
*/
|
|
139
|
+
setHasRecording(value: boolean): void;
|
|
140
|
+
/**
|
|
141
|
+
* Gets the time the call was initiated at.
|
|
142
|
+
* @returns The time the call was initiated at.
|
|
143
|
+
*/
|
|
144
|
+
getInitiatedAt(): number;
|
|
145
|
+
/**
|
|
146
|
+
* Sets the time the call was initiated at.
|
|
147
|
+
* @param value - The time the call was initiated at.
|
|
148
|
+
*/
|
|
149
|
+
setInitiatedAt(value: number): void;
|
|
150
|
+
/**
|
|
151
|
+
* Gets the call category of the call log.
|
|
152
|
+
* @returns The call category of the call log.
|
|
153
|
+
*/
|
|
154
|
+
getCallCategory(): string;
|
|
155
|
+
/**
|
|
156
|
+
* Sets the call category of the call log.
|
|
157
|
+
* @param value - The call category to set.
|
|
158
|
+
*/
|
|
159
|
+
setCallCategory(value: string): void;
|
|
160
|
+
/**
|
|
161
|
+
* Gets the initiator of the call log.
|
|
162
|
+
* @returns The initiator of the call log.
|
|
163
|
+
*/
|
|
164
|
+
getInitiator(): CallUser;
|
|
165
|
+
/**
|
|
166
|
+
* Sets the initiator of the call log.
|
|
167
|
+
* @param value - The initiator to set.
|
|
168
|
+
*/
|
|
169
|
+
setInitiator(value: CallUser): void;
|
|
170
|
+
/**
|
|
171
|
+
* Gets the receiver of the call log.
|
|
172
|
+
* @returns The receiver of the call log.
|
|
173
|
+
*/
|
|
174
|
+
getReceiver(): CallUser | CallGroup;
|
|
175
|
+
/**
|
|
176
|
+
* Sets the receiver of the call log.
|
|
177
|
+
* @param value - The receiver to set.
|
|
178
|
+
*/
|
|
179
|
+
setReceiver(value: CallUser | CallGroup): void;
|
|
180
|
+
/**
|
|
181
|
+
* Gets the receiver type of the call log.
|
|
182
|
+
* @returns The receiver type of the call log.
|
|
183
|
+
*/
|
|
184
|
+
getReceiverType(): string;
|
|
185
|
+
/**
|
|
186
|
+
* Sets the receiver type of the call log.
|
|
187
|
+
* @param value - The receiver type to set.
|
|
188
|
+
*/
|
|
189
|
+
setReceiverType(value: string): void;
|
|
190
|
+
/**
|
|
191
|
+
* Gets the status of the call log.
|
|
192
|
+
* @returns The status of the call log.
|
|
193
|
+
*/
|
|
194
|
+
getStatus(): string;
|
|
195
|
+
/**
|
|
196
|
+
* Sets the status of the call log.
|
|
197
|
+
* @param value - The status to set.
|
|
198
|
+
*/
|
|
199
|
+
setStatus(value: string): void;
|
|
200
|
+
/**
|
|
201
|
+
* Gets the total duration in minutes of the call log.
|
|
202
|
+
* @returns The total duration in minutes of the call log.
|
|
203
|
+
*/
|
|
204
|
+
getTotalDurationInMinutes(): number;
|
|
205
|
+
/**
|
|
206
|
+
* Sets the total duration in minutes of the call log.
|
|
207
|
+
* @param value - The total duration in minutes to set.
|
|
208
|
+
*/
|
|
209
|
+
setTotalDurationInMinutes(value: number): void;
|
|
210
|
+
/**
|
|
211
|
+
* Gets the total number of participants in the call log.
|
|
212
|
+
* @returns The total number of participants in the call log.
|
|
213
|
+
*/
|
|
214
|
+
getTotalParticipants(): number;
|
|
215
|
+
/**
|
|
216
|
+
* Sets the total number of participants in the call log.
|
|
217
|
+
* @param value - The total number of participants to set.
|
|
218
|
+
*/
|
|
219
|
+
setTotalParticipants(value: number): void;
|
|
220
|
+
/**
|
|
221
|
+
* Gets the type of the call log.
|
|
222
|
+
* @returns The type of the call log.
|
|
223
|
+
*/
|
|
224
|
+
getType(): string;
|
|
225
|
+
/**
|
|
226
|
+
* Sets the type of the call log.
|
|
227
|
+
* @param value - The type to set.
|
|
228
|
+
*/
|
|
229
|
+
setType(value: string): void;
|
|
230
|
+
/**
|
|
231
|
+
* Gets the message ID of the call log.
|
|
232
|
+
* @returns The message ID of the call log.
|
|
233
|
+
*/
|
|
234
|
+
getMid(): string;
|
|
235
|
+
/**
|
|
236
|
+
* Sets the message ID of the call log.
|
|
237
|
+
* @param value - The message ID to set.
|
|
238
|
+
*/
|
|
239
|
+
setMid(value: string): void;
|
|
240
|
+
/**
|
|
241
|
+
* Gets the time the call ended at.
|
|
242
|
+
* @returns The time the call ended at.
|
|
243
|
+
*/
|
|
244
|
+
getEndedAt(): number;
|
|
245
|
+
/**
|
|
246
|
+
* Sets the time the call ended at.
|
|
247
|
+
* @param value - The time the call ended at.
|
|
248
|
+
*/
|
|
249
|
+
setEndedAt(value: number): void;
|
|
250
|
+
/**
|
|
251
|
+
* Gets the participants of the call log.
|
|
252
|
+
* @returns The participants of the call log.
|
|
253
|
+
*/
|
|
254
|
+
getParticipants(): Participant[];
|
|
255
|
+
/**
|
|
256
|
+
* Sets the participants of the call log.
|
|
257
|
+
* @param value - The participants to set.
|
|
258
|
+
*/
|
|
259
|
+
setParticipants(value: Participant[]): void;
|
|
260
|
+
/**
|
|
261
|
+
* Gets the recordings of the call log.
|
|
262
|
+
* @returns The recordings of the call log.
|
|
263
|
+
*/
|
|
264
|
+
getRecordings(): Recording[];
|
|
265
|
+
/**
|
|
266
|
+
* Sets the recordings of the call log.
|
|
267
|
+
* @param value - The recordings to set.
|
|
268
|
+
*/
|
|
269
|
+
setRecordings(value: Recording[]): void;
|
|
270
|
+
/**
|
|
271
|
+
* Creates a new instance of CallLog from JSON data.
|
|
272
|
+
* @param data - The JSON data to create the call log from.
|
|
273
|
+
* @returns A new instance of CallLog created from the JSON data.
|
|
274
|
+
*/
|
|
275
|
+
static callLogFromJson(data: any): CallLog;
|
|
276
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
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 {};
|
|
@@ -4,8 +4,11 @@ import { OngoingCallListener } from "./Listener";
|
|
|
4
4
|
import { CallConstants } from "../constants";
|
|
5
5
|
import { PresenterSettings, PresenterSettingsBuilder } from "./PresenterSettings";
|
|
6
6
|
import { ListenerHandlers } from "./ListnerHandler";
|
|
7
|
+
import { CallLog } from './CallLog';
|
|
8
|
+
import { CallLogRequestBuilder } from './CometChatCallLogs';
|
|
7
9
|
export declare class CometChatCalls {
|
|
8
10
|
private static appSettings;
|
|
11
|
+
private static inProgress;
|
|
9
12
|
private static callEventListener;
|
|
10
13
|
private static debounceDeviceChange;
|
|
11
14
|
private static deviceList;
|
|
@@ -32,6 +35,8 @@ export declare class CometChatCalls {
|
|
|
32
35
|
static CallAppSettingsBuilder: typeof CallAppSettingsBuilder;
|
|
33
36
|
static CallAppSettings: typeof CallAppSettings;
|
|
34
37
|
static MainVideoContainerSetting: typeof MainVideoContainerSetting;
|
|
38
|
+
static CallLogRequestBuilder: typeof CallLogRequestBuilder;
|
|
39
|
+
static CallLog: typeof CallLog;
|
|
35
40
|
private static isPresenterMode;
|
|
36
41
|
static joinPresentation(callToken: string, presenterSettings: PresenterSettings, htmlElement: HTMLElement): Promise<void>;
|
|
37
42
|
static startSession(callToken: string, callSettings: CallSettings, htmlElement: HTMLElement): Promise<void>;
|
|
@@ -127,7 +132,7 @@ export declare class CometChatCalls {
|
|
|
127
132
|
* Method to get all the available audio input devices.
|
|
128
133
|
* @returns {MediaDeviceInfo[]}
|
|
129
134
|
*/
|
|
130
|
-
static getAudioInputDevices():
|
|
135
|
+
static getAudioInputDevices(): MediaDeviceInfo[];
|
|
131
136
|
/**
|
|
132
137
|
* Method to get all the available audio output devices.
|
|
133
138
|
* @returns {MediaDeviceInfo[]}
|
|
@@ -156,4 +161,12 @@ export declare class CometChatCalls {
|
|
|
156
161
|
* @returns {void}
|
|
157
162
|
*/
|
|
158
163
|
static setVideoInputDevice(deviceId: string): void;
|
|
164
|
+
/**
|
|
165
|
+
* Retrieves call details for a given session ID and auth token.
|
|
166
|
+
* @param sessionID - The session ID of the call.
|
|
167
|
+
* @param authToken - The authentication token required to make the API call.
|
|
168
|
+
* @returns A Promise that resolves to a CallLog object containing the call details.
|
|
169
|
+
* @throws {CometChatCallsException} If there is an error retrieving the call details.
|
|
170
|
+
*/
|
|
171
|
+
static getCallDetails(sessionID: string, authToken: string): Promise<CallLog>;
|
|
159
172
|
}
|
|
@@ -10,6 +10,7 @@ interface IOngoingCallListener {
|
|
|
10
10
|
onScreenShareStarted: () => void;
|
|
11
11
|
onScreenShareStopped: () => void;
|
|
12
12
|
onUserMuted: (event: Partial<ICallEventsData["onUserMuted"]>) => void;
|
|
13
|
+
onUserUnMuted: (event: Partial<ICallEventsData["onUserUnMuted"]>) => void;
|
|
13
14
|
onCallSwitchedToVideo: (event: Partial<ICallEventsData["onCallSwitchedToVideo"]>) => void;
|
|
14
15
|
onCallEnded: () => void;
|
|
15
16
|
onCallEndButtonPressed: () => void;
|
|
@@ -60,6 +61,10 @@ export declare class OngoingCallListener {
|
|
|
60
61
|
* This event is triggered when a user is muted.
|
|
61
62
|
*/
|
|
62
63
|
onUserMuted?: IOngoingCallListener["onUserMuted"];
|
|
64
|
+
/**
|
|
65
|
+
* This event is triggered when a user is unmuted.
|
|
66
|
+
*/
|
|
67
|
+
onUserUnMuted?: IOngoingCallListener["onUserUnMuted"];
|
|
63
68
|
/**
|
|
64
69
|
* This event is triggered when an audio call is switched to a video call.
|
|
65
70
|
*/
|