@cometchat/calls-sdk-react-native 4.4.2-beta.1 → 5.0.0-beta.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/README.md +85 -19
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +13 -12
- package/android/src/main/AndroidManifest.xml +15 -6
- package/android/src/main/java/com/callingv5/AudioDeviceHandlerConnectionService.java +185 -0
- package/android/src/main/java/com/callingv5/AudioDeviceHandlerGeneric.java +254 -0
- package/android/src/main/java/com/{CometChatCalls → callingv5}/AudioModeModule.java +93 -56
- package/android/src/main/java/com/callingv5/ConnectionService.java +451 -0
- package/android/src/main/java/com/callingv5/KeepAwakeModule.java +53 -0
- package/android/src/main/java/com/callingv5/MyAppPackage.java +35 -0
- package/android/src/main/java/com/callingv5/RNConnectionService.java +244 -0
- package/android/src/main/java/com/callingv5/ToastModule.java +29 -0
- package/android/src/main/java/com/callingv5/utils/CometChatLogger.java +88 -0
- package/cometchat-calls-sdk-react-native.podspec +9 -10
- package/dist/index.d.mts +4066 -0
- package/dist/index.d.ts +4066 -9
- package/dist/index.js +11116 -132
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +11085 -0
- package/dist/index.mjs.map +1 -0
- package/dist/polyfills/RTCPeerConnection.js +19 -0
- package/dist/polyfills/Storage.js +192 -0
- package/dist/polyfills/browser.js +337 -0
- package/dist/polyfills/index.js +1 -0
- package/dist/polyfills/ipv6utils.js +197 -0
- package/dist/polyfills/webrtc.js +11 -0
- package/ios/{JitsiAudioSession+Private.h → Audio/CometChatAudioSession+Private.h} +2 -3
- package/ios/{LogUtils.h → Audio/CometChatAudioSession.h} +9 -6
- package/ios/{JitsiAudioSession.m → Audio/CometChatAudioSession.m} +4 -3
- package/ios/{AudioMode.m → Modules/AudioMode.m} +15 -49
- package/ios/Modules/KeepAwake.h +4 -0
- package/ios/Modules/KeepAwake.m +29 -0
- package/package.json +24 -110
- package/LICENSE.md +0 -3
- package/android/src/main/java/com/CometChatCalls/AudioDeviceHandlerGeneric.java +0 -213
- package/android/src/main/java/com/CometChatCalls/AudioDeviceHandlerLegacy.java +0 -213
- package/android/src/main/java/com/CometChatCalls/BluetoothHeadsetMonitor.java +0 -187
- package/android/src/main/java/com/CometChatCalls/CallNotificationService.java +0 -93
- package/android/src/main/java/com/CometChatCalls/CallNotificationServiceModule.java +0 -48
- package/android/src/main/java/com/CometChatCalls/CometChatCallsPackage.java +0 -56
- package/android/src/main/java/com/CometChatCalls/CometChatCommonModule.java +0 -48
- package/android/src/main/java/com/CometChatCalls/PictureInPictureModule.java +0 -133
- package/android/src/main/res/drawable-mdpi/callingcomponent_icons_headphones_pluged.png +0 -0
- package/dist/CometChatErrorConstants.d.ts +0 -124
- package/dist/Constants.d.ts +0 -724
- package/dist/Helper copy.d.ts +0 -1
- package/dist/Helper.d.ts +0 -7
- package/dist/api/APIHandler.d.ts +0 -42
- package/dist/api/endpoints.d.ts +0 -7
- package/dist/api/helper.d.ts +0 -69
- package/dist/api/index.d.ts +0 -2
- package/dist/constants/CallConstants.d.ts +0 -136
- package/dist/constants/index.d.ts +0 -1
- package/dist/defaultCallsettings.d.ts +0 -2
- package/dist/models/CallAppSettings.d.ts +0 -42
- package/dist/models/CallGroup.d.ts +0 -14
- package/dist/models/CallLog.d.ts +0 -276
- package/dist/models/CallLogFilterParams.d.ts +0 -97
- package/dist/models/CallSettings.d.ts +0 -330
- package/dist/models/CallUser.d.ts +0 -14
- package/dist/models/CometChatCallLogs.d.ts +0 -193
- package/dist/models/CometChatCalls.d.ts +0 -110
- package/dist/models/CometChatCallsComponent.d.ts +0 -13
- package/dist/models/CometChatCallsComponentCore.d.ts +0 -18
- package/dist/models/CometChatCallsException.d.ts +0 -7
- package/dist/models/CometChatPresenterComponent.d.ts +0 -13
- package/dist/models/ErrorModel.d.ts +0 -11
- package/dist/models/Listner.d.ts +0 -69
- package/dist/models/ListnerHandler.d.ts +0 -10
- package/dist/models/MessageComponent.d.ts +0 -7
- package/dist/models/Participant.d.ts +0 -184
- package/dist/models/PresenterSettings.d.ts +0 -208
- package/dist/models/RTCUser.d.ts +0 -18
- package/dist/models/Recording.d.ts +0 -86
- package/dist/models/index.d.ts +0 -9
- package/dist/types/ICallAppSettings.d.ts +0 -6
- package/dist/types/ICallSettings.d.ts +0 -61
- package/dist/types/RTCUser.d.ts +0 -6
- package/dist/types/callEvents.d.ts +0 -54
- package/dist/types/common.d.ts +0 -18
- package/dist/types/index.d.ts +0 -2
- package/ios/AudioMode.h +0 -11
- package/ios/CometChatCommonModule.h +0 -6
- package/ios/CometChatCommonModule.m +0 -29
- package/ios/JitsiAudioSession.h +0 -17
- package/ios/react-native-calls2.xcodeproj/project.pbxproj +0 -269
package/dist/Helper.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function isFalsy($false: any): any;
|
|
2
|
-
export declare class Logger {
|
|
3
|
-
static log(TAG: string, message: any): void;
|
|
4
|
-
static error(TAG: string, message: any): void;
|
|
5
|
-
static info(TAG: string, message: any): void;
|
|
6
|
-
}
|
|
7
|
-
export declare function throwGenericException(err: any): void;
|
package/dist/api/APIHandler.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* APIHandler class for handling API requests related to CometChat Calls.
|
|
3
|
-
*/
|
|
4
|
-
import { CallAppSettings, CallLogFilterParams } from '../models';
|
|
5
|
-
import type { IGenerateTokenAPIResult, IVerifyTokenAPIResult } from './helper';
|
|
6
|
-
export declare class APIHandler {
|
|
7
|
-
private static appSettings;
|
|
8
|
-
/**
|
|
9
|
-
* Sets the app settings for the APIHandler class.
|
|
10
|
-
* @param appSettings - The CallAppSettings object containing the app settings.
|
|
11
|
-
*/
|
|
12
|
-
static setAppSettings(appSettings: CallAppSettings): void;
|
|
13
|
-
/**
|
|
14
|
-
* Generates a call token for the given session ID and app settings.
|
|
15
|
-
* @param authToken - The authentication token.
|
|
16
|
-
* @param sessionID - The session ID for which the token is to be generated.
|
|
17
|
-
* @param appSettings - The CallAppSettings object containing the app settings.
|
|
18
|
-
* @returns A Promise that resolves to an IGenerateTokenAPIResult object.
|
|
19
|
-
*/
|
|
20
|
-
static generateToken(authToken: string, sessionID: string, appSettings: CallAppSettings): Promise<IGenerateTokenAPIResult>;
|
|
21
|
-
/**
|
|
22
|
-
* Verifies the given call token for the given app settings.
|
|
23
|
-
* @param callToken - The call token to be verified.
|
|
24
|
-
* @param appSettings - The CallAppSettings object containing the app settings.
|
|
25
|
-
* @returns A Promise that resolves to an IVerifyTokenAPIResult object.
|
|
26
|
-
*/
|
|
27
|
-
static verifyToken(callToken: string, appSettings: CallAppSettings): Promise<IVerifyTokenAPIResult>;
|
|
28
|
-
/**
|
|
29
|
-
* Gets the call log list for the given filter parameters and authentication token.
|
|
30
|
-
* @param params - The CallLogFilterParams object containing the filter parameters.
|
|
31
|
-
* @param authToken - The authentication token.
|
|
32
|
-
* @returns A Promise that resolves to an array of call log objects.
|
|
33
|
-
*/
|
|
34
|
-
static getCallLogList(params: CallLogFilterParams, authToken: string): Promise<any>;
|
|
35
|
-
/**
|
|
36
|
-
* Gets the call details for the given session ID and authentication token.
|
|
37
|
-
* @param sessionID - The session ID for which the call details are to be fetched.
|
|
38
|
-
* @param authToken - The authentication token.
|
|
39
|
-
* @returns A Promise that resolves to a call details object.
|
|
40
|
-
*/
|
|
41
|
-
static getCallDetails(sessionID: string, authToken: string): Promise<any>;
|
|
42
|
-
}
|
package/dist/api/endpoints.d.ts
DELETED
package/dist/api/helper.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { 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?: Record<string, unknown>;
|
|
11
|
-
}
|
|
12
|
-
export interface IGenerateTokenAPIResult {
|
|
13
|
-
error?: null | Record<string, unknown>;
|
|
14
|
-
data?: null | {
|
|
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 | Record<string, unknown>;
|
|
28
|
-
data?: null | {
|
|
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/dist/api/index.d.ts
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
export declare const CallConstants: {
|
|
2
|
-
CALL_MODE: {
|
|
3
|
-
DEFAULT: string;
|
|
4
|
-
SPOTLIGHT: string;
|
|
5
|
-
SINGLE: string;
|
|
6
|
-
TILE: string;
|
|
7
|
-
GRID: string;
|
|
8
|
-
};
|
|
9
|
-
CALL_TYPE: {
|
|
10
|
-
AUDIO: string;
|
|
11
|
-
VIDEO: string;
|
|
12
|
-
};
|
|
13
|
-
RECEIVER_TYPE_GROUP: string;
|
|
14
|
-
RECEIVER_TYPE_USER: string;
|
|
15
|
-
CALL_KEYS: {
|
|
16
|
-
CALL_DATA: string;
|
|
17
|
-
CALL_ID: string;
|
|
18
|
-
CALL_SESSION_ID: string;
|
|
19
|
-
CALL_RECEIVER: string;
|
|
20
|
-
CALL_SENDER: string;
|
|
21
|
-
CALL_RECEIVER_TYPE: string;
|
|
22
|
-
CALL_STATUS: string;
|
|
23
|
-
CALL_TYPE: string;
|
|
24
|
-
CALL_INITIATED_AT: string;
|
|
25
|
-
CALL_JOINED_AT: string;
|
|
26
|
-
CALL_LEFT_AT: string;
|
|
27
|
-
CALL_METADATA: string;
|
|
28
|
-
CALL_ENTITIES: string;
|
|
29
|
-
CALL_ENTITY_TYPE: string;
|
|
30
|
-
CALL_ENTITY: string;
|
|
31
|
-
CALL_ENTITY_USER: string;
|
|
32
|
-
CALL_ENTITY_GROUP: string;
|
|
33
|
-
};
|
|
34
|
-
CALL_STATUS: {
|
|
35
|
-
INITIATED: string;
|
|
36
|
-
ONGOING: string;
|
|
37
|
-
UNANSWERED: string;
|
|
38
|
-
REJECTED: string;
|
|
39
|
-
BUSY: string;
|
|
40
|
-
CANCELLED: string;
|
|
41
|
-
ENDED: string;
|
|
42
|
-
};
|
|
43
|
-
AUDIO_INPUT_DEVICES: string;
|
|
44
|
-
AUDIO_OUTPUT_DEVICES: string;
|
|
45
|
-
VIDEO_INPUT_DEVICES: string;
|
|
46
|
-
POST_MESSAGES: {
|
|
47
|
-
TYPES: {
|
|
48
|
-
ACTION_MESSAGE: string;
|
|
49
|
-
HANGUP: string;
|
|
50
|
-
COMETCHAT_RTC_SETTINGS: string;
|
|
51
|
-
};
|
|
52
|
-
ACTIONS: {
|
|
53
|
-
USER_JOINED: string;
|
|
54
|
-
USER_LEFT: string;
|
|
55
|
-
USER_LIST_CHANGED: string;
|
|
56
|
-
INITIAL_DEVICE_LIST: string;
|
|
57
|
-
DEVICE_CHANGE: string;
|
|
58
|
-
LOAD: string;
|
|
59
|
-
CHANGE_AUDIO_INPUT: string;
|
|
60
|
-
CHANGE_AUDIO_OUTPUT: string;
|
|
61
|
-
CHANGE_VIDEO_INPUT: string;
|
|
62
|
-
MUTE_AUDIO: string;
|
|
63
|
-
UNMUTE_AUDIO: string;
|
|
64
|
-
PAUSE_VIDEO: string;
|
|
65
|
-
UNPAUSE_VIDEO: string;
|
|
66
|
-
SWITCH_MODE: string;
|
|
67
|
-
START_SCREENSHARE: string;
|
|
68
|
-
STOP_SCREENSHARE: string;
|
|
69
|
-
END_CALL: string;
|
|
70
|
-
START_RECORDING: string;
|
|
71
|
-
STOP_RECORDING: string;
|
|
72
|
-
RECORDING_TOGGLED: string;
|
|
73
|
-
USER_MUTED: string;
|
|
74
|
-
SCREEN_SHARE_STARTED: string;
|
|
75
|
-
SCREEN_SHARE_STOPPED: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
MEDIA_DEVICE: {
|
|
79
|
-
ID: string;
|
|
80
|
-
NAME: string;
|
|
81
|
-
ACTIVE: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
export declare const CALL_ERROR: {
|
|
85
|
-
CALL_ALREADY_INITIATED: {
|
|
86
|
-
code: string;
|
|
87
|
-
name: string;
|
|
88
|
-
message: string;
|
|
89
|
-
details: {};
|
|
90
|
-
};
|
|
91
|
-
ERROR_IN_CALLING: {
|
|
92
|
-
code: string;
|
|
93
|
-
name: string;
|
|
94
|
-
message: string;
|
|
95
|
-
details: {};
|
|
96
|
-
};
|
|
97
|
-
CANNOT_ACCEPT_CALL: {
|
|
98
|
-
code: string;
|
|
99
|
-
name: string;
|
|
100
|
-
message: string;
|
|
101
|
-
details: {};
|
|
102
|
-
};
|
|
103
|
-
NOT_INITIALIZED: {
|
|
104
|
-
code: string;
|
|
105
|
-
name: string;
|
|
106
|
-
message: string;
|
|
107
|
-
details: {};
|
|
108
|
-
};
|
|
109
|
-
NOT_LOGGED_IN: {
|
|
110
|
-
code: string;
|
|
111
|
-
name: string;
|
|
112
|
-
message: string;
|
|
113
|
-
details: {};
|
|
114
|
-
};
|
|
115
|
-
SESSION_ID_REQUIRED: {
|
|
116
|
-
code: string;
|
|
117
|
-
name: string;
|
|
118
|
-
message: string;
|
|
119
|
-
details: {};
|
|
120
|
-
};
|
|
121
|
-
CALL_SETTINGS_REQUIRED: {
|
|
122
|
-
code: string;
|
|
123
|
-
name: string;
|
|
124
|
-
message: string;
|
|
125
|
-
details: {};
|
|
126
|
-
};
|
|
127
|
-
JWT_NOT_FOUND: {
|
|
128
|
-
code: string;
|
|
129
|
-
name: string;
|
|
130
|
-
message: string;
|
|
131
|
-
details: {};
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
export declare const API_ERROR_CODES: {
|
|
135
|
-
AUTH_ERR_AUTH_TOKEN_NOT_FOUND: string;
|
|
136
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./CallConstants";
|
|
@@ -1,42 +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
|
-
}
|
|
42
|
-
export declare function validateCallAppSettings(appSettings: CallAppSettings): Promise<true>;
|
|
@@ -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
|
-
}
|
package/dist/models/CallLog.d.ts
DELETED
|
@@ -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
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents the parameters used to filter call logs.
|
|
3
|
-
*/
|
|
4
|
-
export declare class CallLogFilterParams {
|
|
5
|
-
/**
|
|
6
|
-
* The number of items to display per page.
|
|
7
|
-
*/
|
|
8
|
-
private perPage;
|
|
9
|
-
/**
|
|
10
|
-
* The page number to display.
|
|
11
|
-
*/
|
|
12
|
-
private page;
|
|
13
|
-
/**
|
|
14
|
-
* The mode of the call.
|
|
15
|
-
*/
|
|
16
|
-
private mode;
|
|
17
|
-
/**
|
|
18
|
-
* The type of the call.
|
|
19
|
-
*/
|
|
20
|
-
private type;
|
|
21
|
-
/**
|
|
22
|
-
* The status of the call.
|
|
23
|
-
*/
|
|
24
|
-
private status;
|
|
25
|
-
/**
|
|
26
|
-
* The direction of the call.
|
|
27
|
-
*/
|
|
28
|
-
private direction;
|
|
29
|
-
/**
|
|
30
|
-
* Whether the call has recordings.
|
|
31
|
-
*/
|
|
32
|
-
private hasRecording;
|
|
33
|
-
/**
|
|
34
|
-
* The user ID.
|
|
35
|
-
*/
|
|
36
|
-
private uid;
|
|
37
|
-
/**
|
|
38
|
-
* The group ID.
|
|
39
|
-
*/
|
|
40
|
-
private guid;
|
|
41
|
-
/**
|
|
42
|
-
* Creates a new instance of the CallLogFilterParams class.
|
|
43
|
-
* @param data - The data to initialize the call log filter parameters object.
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* Sets the direction of the call.
|
|
47
|
-
* @param value - The direction of the call.
|
|
48
|
-
*/
|
|
49
|
-
setDirection(value: string): void;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the status of the call.
|
|
52
|
-
* @param value - The status of the call.
|
|
53
|
-
*/
|
|
54
|
-
setStatus(value: string): void;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the type of the call.
|
|
57
|
-
* @param value - The type of the call.
|
|
58
|
-
*/
|
|
59
|
-
setType(value: string): void;
|
|
60
|
-
/**
|
|
61
|
-
* Sets the number of items to display per page.
|
|
62
|
-
* @param value - The number of items to display per page.
|
|
63
|
-
*/
|
|
64
|
-
setPerPage(value: number): void;
|
|
65
|
-
/**
|
|
66
|
-
* Sets the page number to display.
|
|
67
|
-
* @param value - The page number to display.
|
|
68
|
-
*/
|
|
69
|
-
setPage(value: number): void;
|
|
70
|
-
/**
|
|
71
|
-
* Sets the mode of the call.
|
|
72
|
-
* @param value - The mode of the call.
|
|
73
|
-
*/
|
|
74
|
-
setMode(value: string): void;
|
|
75
|
-
/**
|
|
76
|
-
* Sets whether the call has recordings.
|
|
77
|
-
* @param value - Whether the call has recordings.
|
|
78
|
-
*/
|
|
79
|
-
setHasRecordings(value: boolean): void;
|
|
80
|
-
/**
|
|
81
|
-
* Sets the user ID.
|
|
82
|
-
* @param value - The user ID.
|
|
83
|
-
*/
|
|
84
|
-
setUid(value: string): void;
|
|
85
|
-
/**
|
|
86
|
-
* Sets the group ID.
|
|
87
|
-
* @param value - The group ID.
|
|
88
|
-
*/
|
|
89
|
-
setGuid(value: string): void;
|
|
90
|
-
/**
|
|
91
|
-
* Converts the filter parameters to a map of key-value pairs.
|
|
92
|
-
* @returns A map of key-value pairs representing the filter parameters.
|
|
93
|
-
*/
|
|
94
|
-
toMap(): {
|
|
95
|
-
[key: string]: string;
|
|
96
|
-
};
|
|
97
|
-
}
|