@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.
- package/README.md +29 -16
- package/dist/index.css +1 -0
- package/dist/index.d.ts +2017 -0
- package/dist/index.es.js +39122 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +320 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +42 -23
- package/LICENSE.md +0 -3
- package/pack/index.js +0 -2
- package/pack/src/Helper.d.ts +0 -5
- package/pack/src/api/APIHandler.d.ts +0 -39
- package/pack/src/api/endpoints.d.ts +0 -7
- package/pack/src/api/helper.d.ts +0 -69
- package/pack/src/api/index.d.ts +0 -2
- package/pack/src/constants/CallConstants.d.ts +0 -218
- package/pack/src/constants/index.d.ts +0 -1
- package/pack/src/defaultCallsettings.d.ts +0 -2
- package/pack/src/index.d.ts +0 -7
- package/pack/src/models/CallGroup.d.ts +0 -14
- package/pack/src/models/CallLog.d.ts +0 -276
- package/pack/src/models/CallSettings.d.ts +0 -396
- package/pack/src/models/CallUser.d.ts +0 -14
- package/pack/src/models/CallsAppSettings.d.ts +0 -41
- package/pack/src/models/CometChatCallLogs.d.ts +0 -189
- package/pack/src/models/CometChatCalls.d.ts +0 -181
- package/pack/src/models/CometChatCallsException.d.ts +0 -8
- package/pack/src/models/ErrorModel.d.ts +0 -12
- package/pack/src/models/Listener.d.ts +0 -91
- package/pack/src/models/ListnerHandler.d.ts +0 -10
- package/pack/src/models/Participant.d.ts +0 -184
- package/pack/src/models/PresenterSettings.d.ts +0 -279
- package/pack/src/models/RTCUser.d.ts +0 -18
- package/pack/src/models/Recording.d.ts +0 -86
- package/pack/src/models/index.d.ts +0 -10
- package/pack/src/types/ICallSettings.d.ts +0 -62
- package/pack/src/types/ICallsAppSettings.d.ts +0 -6
- package/pack/src/types/RTCUser.d.ts +0 -6
- package/pack/src/types/callEvents.d.ts +0 -84
- package/pack/src/types/common.d.ts +0 -14
- package/pack/src/types/index.d.ts +0 -2
- package/pack/src/util/parseJwt.d.ts +0 -1
- package/pack/src/util/verifyCallSettings.d.ts +0 -4
package/pack/src/Helper.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CallAppSettings, ErrorModel } from "./models";
|
|
2
|
-
export declare function isFalsy($false: any): any;
|
|
3
|
-
export declare function mergeDeep(target: any, ...sources: any[]): any;
|
|
4
|
-
export declare function validateCallAppSettings(appSettings: CallAppSettings): Promise<true>;
|
|
5
|
-
export declare function throwCommonException(errorCallback: (err: ErrorModel) => void, details: any): void;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { CallAppSettings } from "../models";
|
|
2
|
-
import { IGenerateTokenAPIResult, IVerifyTokenAPIResult } from "./helper";
|
|
3
|
-
export declare class APIHandler {
|
|
4
|
-
private static appSettings;
|
|
5
|
-
/**
|
|
6
|
-
* Sets the app settings for the APIHandler class.
|
|
7
|
-
* @param appSettings - The CallAppSettings object containing the app settings.
|
|
8
|
-
*/
|
|
9
|
-
static setAppSettings(appSettings: CallAppSettings): void;
|
|
10
|
-
/**
|
|
11
|
-
* Generates a call token for the given session ID and app settings.
|
|
12
|
-
* @param authToken - The authentication token.
|
|
13
|
-
* @param sessionID - The session ID for which the token is to be generated.
|
|
14
|
-
* @param appSettings - The CallAppSettings object containing the app settings.
|
|
15
|
-
* @returns A Promise that resolves to an IGenerateTokenAPIResult object.
|
|
16
|
-
*/
|
|
17
|
-
static generateToken(authToken: string, sessionID: string, appSettings: CallAppSettings): Promise<IGenerateTokenAPIResult>;
|
|
18
|
-
/**
|
|
19
|
-
* Verifies the given call token for the given app settings.
|
|
20
|
-
* @param callToken - The call token to be verified.
|
|
21
|
-
* @param appSettings - The CallAppSettings object containing the app settings.
|
|
22
|
-
* @returns A Promise that resolves to an IVerifyTokenAPIResult object.
|
|
23
|
-
*/
|
|
24
|
-
static verifyToken(callToken: string, appSettings: CallAppSettings): Promise<IVerifyTokenAPIResult>;
|
|
25
|
-
/**
|
|
26
|
-
* Gets the call log list for the given filter parameters and authentication token.
|
|
27
|
-
* @param params - The object containing the filter parameters.
|
|
28
|
-
* @param authToken - The authentication token.
|
|
29
|
-
* @returns A Promise that resolves to an array of call log objects.
|
|
30
|
-
*/
|
|
31
|
-
static getCallLogList(params: object, authToken: string): Promise<any>;
|
|
32
|
-
/**
|
|
33
|
-
* Gets the call details for the given session ID and authentication token.
|
|
34
|
-
* @param sessionID - The session ID for which the call details are to be fetched.
|
|
35
|
-
* @param authToken - The authentication token.
|
|
36
|
-
* @returns A Promise that resolves to a call details object.
|
|
37
|
-
*/
|
|
38
|
-
static getCallDetails(sessionID: string, authToken: string): Promise<any>;
|
|
39
|
-
}
|
package/pack/src/api/helper.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { Region, Host } from "../types/common";
|
|
2
|
-
interface StringMap {
|
|
3
|
-
[key: string]: string;
|
|
4
|
-
}
|
|
5
|
-
interface IGETReqObj {
|
|
6
|
-
url: string;
|
|
7
|
-
headers?: StringMap;
|
|
8
|
-
}
|
|
9
|
-
interface IPOSTReqObj extends IGETReqObj {
|
|
10
|
-
data?: Object;
|
|
11
|
-
}
|
|
12
|
-
export interface IGenerateTokenAPIResult {
|
|
13
|
-
error?: null | Object;
|
|
14
|
-
data?: {
|
|
15
|
-
data: {
|
|
16
|
-
token: string;
|
|
17
|
-
};
|
|
18
|
-
error: {
|
|
19
|
-
message: string;
|
|
20
|
-
devMessage: string;
|
|
21
|
-
source: "chat-api" | Omit<string, "chat-api">;
|
|
22
|
-
code: "AUTH_ERR_AUTH_TOKEN_NOT_FOUND" | string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export interface IVerifyTokenAPIResult {
|
|
27
|
-
error?: null | Object;
|
|
28
|
-
data?: {
|
|
29
|
-
data?: {
|
|
30
|
-
callToken: string;
|
|
31
|
-
settings: {
|
|
32
|
-
PRESENTER_MODE_ENABLED: boolean;
|
|
33
|
-
WEBRTC_HOST: Host;
|
|
34
|
-
ANALYTICS_HOST: string;
|
|
35
|
-
ANALYTICS_VERSION: string;
|
|
36
|
-
};
|
|
37
|
-
payload: {
|
|
38
|
-
data: {
|
|
39
|
-
appId: string;
|
|
40
|
-
region: Region;
|
|
41
|
-
authToken: string;
|
|
42
|
-
user: {
|
|
43
|
-
uid: string;
|
|
44
|
-
name: string;
|
|
45
|
-
avatar: string;
|
|
46
|
-
};
|
|
47
|
-
sessionId: string;
|
|
48
|
-
passthrough: any;
|
|
49
|
-
};
|
|
50
|
-
room: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
error?: {
|
|
54
|
-
message: string;
|
|
55
|
-
devMessage: string;
|
|
56
|
-
source: "chat-api" | Omit<string, "chat-api">;
|
|
57
|
-
code: "AUTH_ERR_AUTH_TOKEN_NOT_FOUND" | string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export declare const postAPI: (postReqObj: IPOSTReqObj) => Promise<IGenerateTokenAPIResult>;
|
|
62
|
-
export declare const getAPI: (getReqObj: IGETReqObj) => Promise<IVerifyTokenAPIResult>;
|
|
63
|
-
/**
|
|
64
|
-
* Encodes the given data object into a query string.
|
|
65
|
-
* @param data - The data object to be encoded.
|
|
66
|
-
* @returns The encoded query string.
|
|
67
|
-
*/
|
|
68
|
-
export declare function encodeQueryData(data: any): string;
|
|
69
|
-
export {};
|
package/pack/src/api/index.d.ts
DELETED
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
export declare const CallConstants: {
|
|
2
|
-
readonly MODE: {
|
|
3
|
-
readonly DEFAULT: "DEFAULT";
|
|
4
|
-
readonly SPOTLIGHT: "SPOTLIGHT";
|
|
5
|
-
readonly GRID: "TILE";
|
|
6
|
-
};
|
|
7
|
-
readonly CALL_TYPE: {
|
|
8
|
-
readonly AUDIO: "audio";
|
|
9
|
-
readonly VIDEO: "video";
|
|
10
|
-
};
|
|
11
|
-
readonly RECEIVER_TYPE_GROUP: "group";
|
|
12
|
-
readonly RECEIVER_TYPE_USER: "user";
|
|
13
|
-
readonly CALL_KEYS: {
|
|
14
|
-
readonly CALL_DATA: "data";
|
|
15
|
-
readonly CALL_ID: "id";
|
|
16
|
-
readonly CALL_SESSION_ID: "sessionid";
|
|
17
|
-
readonly CALL_RECEIVER: "receiver";
|
|
18
|
-
readonly CALL_INITIATOR: "initiator";
|
|
19
|
-
readonly CALL_SENDER: "sender";
|
|
20
|
-
readonly CALL_RECEIVER_TYPE: "receiverType";
|
|
21
|
-
readonly CALL_STATUS: "status";
|
|
22
|
-
readonly CALL_TYPE: "type";
|
|
23
|
-
readonly CALL_INITIATED_AT: "initiatedAt";
|
|
24
|
-
readonly CALL_JOINED_AT: "joinedAt";
|
|
25
|
-
readonly CALL_LEFT_AT: "leftAt";
|
|
26
|
-
readonly CALL_METADATA: "metadata";
|
|
27
|
-
readonly CALL_ENTITIES: "entities";
|
|
28
|
-
readonly CALL_ENTITY_TYPE: "entityType";
|
|
29
|
-
readonly CALL_ENTITY: "entity";
|
|
30
|
-
readonly CALL_ENTITY_USER: "user";
|
|
31
|
-
readonly CALL_ENTITY_GROUP: "group";
|
|
32
|
-
};
|
|
33
|
-
readonly CALL_STATUS: {
|
|
34
|
-
readonly INITIATED: "initiated";
|
|
35
|
-
readonly ONGOING: "ongoing";
|
|
36
|
-
readonly UNANSWERED: "unanswered";
|
|
37
|
-
readonly REJECTED: "rejected";
|
|
38
|
-
readonly BUSY: "busy";
|
|
39
|
-
readonly CANCELLED: "cancelled";
|
|
40
|
-
readonly ENDED: "ended";
|
|
41
|
-
};
|
|
42
|
-
readonly AUDIO_INPUT_DEVICES: "audioInputDevices";
|
|
43
|
-
readonly AUDIO_OUTPUT_DEVICES: "audioOutputDevices";
|
|
44
|
-
readonly VIDEO_INPUT_DEVICES: "videoInputDevices";
|
|
45
|
-
readonly POST_MESSAGES: {
|
|
46
|
-
readonly TYPES: {
|
|
47
|
-
readonly ACTION_MESSAGE: "cometchat_action_message";
|
|
48
|
-
readonly HANGUP: "hangup";
|
|
49
|
-
readonly COMETCHAT_RTC_SETTINGS: "cometchat_rtc_settings";
|
|
50
|
-
};
|
|
51
|
-
readonly ACTIONS: {
|
|
52
|
-
readonly USER_JOINED: "onUserJoined";
|
|
53
|
-
readonly USER_LEFT: "onUserLeft";
|
|
54
|
-
readonly USER_LIST_CHANGED: "onUserListChanged";
|
|
55
|
-
readonly INITIAL_DEVICE_LIST: "initialDeviceList";
|
|
56
|
-
readonly DEVICE_CHANGE: "onDeviceChange";
|
|
57
|
-
readonly LOAD: "LOAD";
|
|
58
|
-
readonly CHANGE_AUDIO_INPUT: "changeAudioInput";
|
|
59
|
-
readonly CHANGE_AUDIO_OUTPUT: "changeAudioOutput";
|
|
60
|
-
readonly CHANGE_VIDEO_INPUT: "changeVideoInput";
|
|
61
|
-
readonly MUTE_AUDIO: "muteAudio";
|
|
62
|
-
readonly UNMUTE_AUDIO: "unMuteAudio";
|
|
63
|
-
readonly PAUSE_VIDEO: "pauseVideo";
|
|
64
|
-
readonly UNPAUSE_VIDEO: "unPauseVideo";
|
|
65
|
-
readonly SWITCH_MODE: "switchMode";
|
|
66
|
-
readonly START_SCREENSHARE: "startScreenShare";
|
|
67
|
-
readonly STOP_SCREENSHARE: "stopScreenShare";
|
|
68
|
-
readonly END_CALL: "endCall";
|
|
69
|
-
readonly START_RECORDING: "startRecording";
|
|
70
|
-
readonly STOP_RECORDING: "stopRecording";
|
|
71
|
-
readonly RECORDING_TOGGLED: "onRecordingToggled";
|
|
72
|
-
readonly USER_MUTED: "onUserMuted";
|
|
73
|
-
readonly ON_USER_UNMUTED: "onUserUnMuted";
|
|
74
|
-
readonly SCREEN_SHARE_STARTED: "SCREEN_SHARE_STARTED";
|
|
75
|
-
readonly SCREEN_SHARE_STOPPED: "SCREEN_SHARE_ENDED";
|
|
76
|
-
readonly SWITCH_TO_VIDEO_CALL: "switchedToVideo";
|
|
77
|
-
readonly SWITCHED_TO_VIDEO_CALL: "onCallSwitchedToVideo";
|
|
78
|
-
readonly OPEN_VIRTUAL_BACKGROUND: "openVirtualBackgroundMenu";
|
|
79
|
-
readonly SET_BACKGROUND_BLUR: "setBackgroundBlur";
|
|
80
|
-
readonly SET_BACKGROUND_IMAGE: "setBackgroundImage";
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
readonly MEDIA_DEVICE: {
|
|
84
|
-
readonly ID: "id";
|
|
85
|
-
readonly NAME: "name";
|
|
86
|
-
readonly ACTIVE: "active";
|
|
87
|
-
};
|
|
88
|
-
readonly ZOOM_BUTTON_DEFAULT_PARAMS: {
|
|
89
|
-
readonly position: "bottom-right";
|
|
90
|
-
readonly visible: true;
|
|
91
|
-
};
|
|
92
|
-
readonly NAME_LABEL_DEFAULT_PARAMS: {
|
|
93
|
-
readonly position: "bottom-left";
|
|
94
|
-
readonly visible: true;
|
|
95
|
-
readonly color: "rgba(27, 27, 27, 0.4)";
|
|
96
|
-
};
|
|
97
|
-
readonly NETWORK_LABEL_DEFAULT_PARAMS: {
|
|
98
|
-
readonly position: "bottom-right";
|
|
99
|
-
readonly visible: true;
|
|
100
|
-
};
|
|
101
|
-
readonly MAIN_VIDEO_CONTAINER_SETTINGS: {
|
|
102
|
-
readonly KEYS: {
|
|
103
|
-
readonly POSITION: "position";
|
|
104
|
-
readonly VISIBILITY: "visible";
|
|
105
|
-
readonly LEGACY_VISIBILITY: "visibility";
|
|
106
|
-
readonly COLOR: "color";
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
export declare const CALL_ERROR: {
|
|
111
|
-
CALL_ALREADY_INITIATED: {
|
|
112
|
-
code: string;
|
|
113
|
-
name: string;
|
|
114
|
-
message: string;
|
|
115
|
-
details: {};
|
|
116
|
-
};
|
|
117
|
-
ERROR_IN_CALLING: {
|
|
118
|
-
code: string;
|
|
119
|
-
name: string;
|
|
120
|
-
message: string;
|
|
121
|
-
details: {};
|
|
122
|
-
};
|
|
123
|
-
CANNOT_ACCEPT_CALL: {
|
|
124
|
-
code: string;
|
|
125
|
-
name: string;
|
|
126
|
-
message: string;
|
|
127
|
-
details: {};
|
|
128
|
-
};
|
|
129
|
-
NOT_INITIALIZED: {
|
|
130
|
-
code: string;
|
|
131
|
-
name: string;
|
|
132
|
-
message: string;
|
|
133
|
-
details: {};
|
|
134
|
-
};
|
|
135
|
-
NOT_LOGGED_IN: {
|
|
136
|
-
code: string;
|
|
137
|
-
name: string;
|
|
138
|
-
message: string;
|
|
139
|
-
details: {};
|
|
140
|
-
};
|
|
141
|
-
SESSION_ID_REQUIRED: {
|
|
142
|
-
code: string;
|
|
143
|
-
name: string;
|
|
144
|
-
message: string;
|
|
145
|
-
details: {};
|
|
146
|
-
};
|
|
147
|
-
CALL_SETTINGS_REQUIRED: {
|
|
148
|
-
code: string;
|
|
149
|
-
name: string;
|
|
150
|
-
message: string;
|
|
151
|
-
details: {};
|
|
152
|
-
};
|
|
153
|
-
JWT_NOT_FOUND: {
|
|
154
|
-
code: string;
|
|
155
|
-
name: string;
|
|
156
|
-
message: string;
|
|
157
|
-
details: {};
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
export declare const REGION: {
|
|
161
|
-
readonly us: "us";
|
|
162
|
-
readonly eu: "eu";
|
|
163
|
-
readonly in: "in";
|
|
164
|
-
readonly US: "us";
|
|
165
|
-
readonly EU: "eu";
|
|
166
|
-
readonly IN: "in";
|
|
167
|
-
};
|
|
168
|
-
export declare const API_ERROR_CODES: {
|
|
169
|
-
AUTH_ERR_AUTH_TOKEN_NOT_FOUND: string;
|
|
170
|
-
};
|
|
171
|
-
export declare const GENERAL_CONSTS: {
|
|
172
|
-
REGION: {
|
|
173
|
-
us: string;
|
|
174
|
-
eu: string;
|
|
175
|
-
in: string;
|
|
176
|
-
US: string;
|
|
177
|
-
EU: string;
|
|
178
|
-
IN: string;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
export declare const GENERAL_ERROR: {
|
|
182
|
-
readonly GENERIC_EXCEPTION: {
|
|
183
|
-
readonly code: "GENERIC_EXCEPTION";
|
|
184
|
-
};
|
|
185
|
-
readonly INVALID_ARGUMENT_EXCEPTION: {
|
|
186
|
-
readonly code: "INVALID_ARGUMENT_EXCEPTION";
|
|
187
|
-
};
|
|
188
|
-
readonly API_ERROR: {
|
|
189
|
-
readonly code: "API_ERROR";
|
|
190
|
-
};
|
|
191
|
-
readonly UNKNOWN_API_ERROR: {
|
|
192
|
-
readonly code: "UNKNOWN_API_ERROR";
|
|
193
|
-
readonly message: "There is an unknown issue with the API request. Please check your internet connection and verify the api call.";
|
|
194
|
-
};
|
|
195
|
-
readonly INVALID_CALL_APP_SETTINGS: {
|
|
196
|
-
readonly code: "INVALID_CALL_APP_SETTINGS";
|
|
197
|
-
readonly message_instance: "appSettings must be an instance of CallAppSettings class";
|
|
198
|
-
readonly message_app_id: "Invalid app id, please check your appSettings";
|
|
199
|
-
readonly message_region: "Invalid region, please check your appSettings";
|
|
200
|
-
readonly message_host: "Invalid host, please check your appSettings";
|
|
201
|
-
};
|
|
202
|
-
readonly INVALID_CALL_SETTINGS: {
|
|
203
|
-
readonly code: "INVALID_CALL_SETTINGS";
|
|
204
|
-
readonly message_instance: "callSettings must be an instance of CallSettings class";
|
|
205
|
-
};
|
|
206
|
-
readonly INVALID_PRESENTER_SETTINGS: {
|
|
207
|
-
readonly code: "INVALID_PRESENTER_SETTINGS";
|
|
208
|
-
readonly message_instance: "presenterSettings must be an instance of PresenterSettings class";
|
|
209
|
-
};
|
|
210
|
-
readonly INVALID_ARGUMENT_EXCEPTION_CALL_TOKEN: {
|
|
211
|
-
readonly code: "INVALID_ARGUMENT_EXCEPTION";
|
|
212
|
-
readonly message: "callToken must be valid please verify.";
|
|
213
|
-
};
|
|
214
|
-
readonly ERROR_PRESENTER_MODE: {
|
|
215
|
-
readonly code: "ERROR_PRESENTER_MODE";
|
|
216
|
-
readonly message: "Presenter mode is disabled. To use presenter mode, please enable it from the CometChat Apps Dashboard";
|
|
217
|
-
};
|
|
218
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./CallConstants";
|
package/pack/src/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { CometChatCalls } from "./models/CometChatCalls";
|
|
2
|
-
export { CallLog } from "./models/CallLog";
|
|
3
|
-
export { CallLogRequestBuilder } from "./models/CometChatCallLogs";
|
|
4
|
-
export { CallUser } from "./models/CallUser";
|
|
5
|
-
export { CallGroup } from "./models/CallGroup";
|
|
6
|
-
export { Participant } from './models/Participant';
|
|
7
|
-
export { Recording } from './models/Recording';
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,276 +0,0 @@
|
|
|
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
|
-
}
|