@cometchat/calls-sdk-react-native 4.0.6-beta1 → 4.0.7-t2
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/android/src/main/java/com/CometChatCalls/CallNotificationService.java +93 -0
- package/android/src/main/java/com/CometChatCalls/CallNotificationServiceModule.java +48 -0
- package/android/src/main/java/com/CometChatCalls/CometChatCallsPackage.java +13 -3
- package/android/src/main/java/com/CometChatCalls/PictureInPictureModule.java +138 -0
- package/android/src/main/res/drawable-mdpi/callingcomponent_icons_headphones_pluged.png +0 -0
- package/dist/CometChatErrorConstants.d.ts +124 -124
- package/dist/Constants.d.ts +724 -721
- package/dist/Helper copy.d.ts +1 -1
- package/dist/Helper.d.ts +7 -7
- package/dist/api/APIHandler.d.ts +42 -42
- package/dist/api/endpoints.d.ts +7 -7
- package/dist/api/helper.d.ts +69 -69
- package/dist/api/index.d.ts +2 -2
- package/dist/constants/CallConstants.d.ts +136 -136
- package/dist/constants/index.d.ts +1 -1
- package/dist/defaultCallsettings.d.ts +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +81 -81
- package/dist/models/CallAppSettings.d.ts +42 -42
- package/dist/models/CallGroup.d.ts +14 -14
- package/dist/models/CallLog.d.ts +276 -276
- package/dist/models/CallLogFilterParams.d.ts +97 -97
- package/dist/models/CallSettings.d.ts +316 -316
- package/dist/models/CallUser.d.ts +14 -14
- package/dist/models/CometChatCallLogs.d.ts +193 -193
- package/dist/models/CometChatCalls.d.ts +110 -110
- package/dist/models/CometChatCallsComponent.d.ts +13 -13
- package/dist/models/CometChatCallsComponentCore.d.ts +18 -18
- package/dist/models/CometChatCallsException.d.ts +7 -7
- package/dist/models/CometChatPresenterComponent.d.ts +13 -13
- package/dist/models/ErrorModel.d.ts +11 -11
- package/dist/models/Listner.d.ts +64 -64
- package/dist/models/ListnerHandler.d.ts +10 -10
- package/dist/models/MessageComponent.d.ts +7 -7
- package/dist/models/Participant.d.ts +184 -184
- package/dist/models/PresenterSettings.d.ts +194 -194
- package/dist/models/RTCUser.d.ts +18 -18
- package/dist/models/Recording.d.ts +86 -86
- package/dist/models/index.d.ts +9 -9
- package/dist/types/ICallAppSettings.d.ts +6 -6
- package/dist/types/ICallSettings.d.ts +60 -60
- package/dist/types/RTCUser.d.ts +6 -6
- package/dist/types/callEvents.d.ts +53 -53
- package/dist/types/common.d.ts +18 -17
- package/dist/types/index.d.ts +2 -2
- package/ios/AudioMode.m +15 -0
- package/package.json +2 -2
package/dist/Helper copy.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function isFalsy($false: any): any;
|
|
1
|
+
export declare function isFalsy($false: any): any;
|
package/dist/Helper.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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;
|
|
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
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
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
|
-
}
|
|
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const apiEndpoints: {
|
|
2
|
-
CALL_TOKENS: string;
|
|
3
|
-
CALL_LIST: string;
|
|
4
|
-
};
|
|
5
|
-
export declare const APP_ID_SPACE = "__APP_ID__";
|
|
6
|
-
export declare const REGION_SPACE = "__REGION__";
|
|
7
|
-
export declare const BASE_URL: string;
|
|
1
|
+
export declare const apiEndpoints: {
|
|
2
|
+
CALL_TOKENS: string;
|
|
3
|
+
CALL_LIST: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const APP_ID_SPACE = "__APP_ID__";
|
|
6
|
+
export declare const REGION_SPACE = "__REGION__";
|
|
7
|
+
export declare const BASE_URL: string;
|
package/dist/api/helper.d.ts
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
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 {};
|
|
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
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./APIHandler";
|
|
2
|
-
export * from "./endpoints";
|
|
1
|
+
export * from "./APIHandler";
|
|
2
|
+
export * from "./endpoints";
|
|
@@ -1,136 +1,136 @@
|
|
|
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
|
+
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 +1 @@
|
|
|
1
|
-
export * from "./CallConstants";
|
|
1
|
+
export * from "./CallConstants";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ICallSettings } from "./types/ICallSettings";
|
|
2
|
-
export declare const defaultCallsettings: Partial<ICallSettings>;
|
|
1
|
+
import { ICallSettings } from "./types/ICallSettings";
|
|
2
|
+
export declare const defaultCallsettings: Partial<ICallSettings>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as CallScreen from './calling';
|
|
2
|
-
export { CometChatCalls } from './models/CometChatCalls';
|
|
3
|
-
export { CallLog } from './models/CallLog';
|
|
4
|
-
export { CallLogRequestBuilder } from './models/CometChatCallLogs';
|
|
5
|
-
export { CallUser } from './models/CallUser';
|
|
6
|
-
export { CallGroup } from './models/CallGroup';
|
|
7
|
-
export { Participant } from './models/Participant';
|
|
8
|
-
export { Recording } from './models/Recording';
|
|
9
|
-
export default CallScreen;
|
|
1
|
+
import * as CallScreen from './calling';
|
|
2
|
+
export { CometChatCalls } from './models/CometChatCalls';
|
|
3
|
+
export { CallLog } from './models/CallLog';
|
|
4
|
+
export { CallLogRequestBuilder } from './models/CometChatCallLogs';
|
|
5
|
+
export { CallUser } from './models/CallUser';
|
|
6
|
+
export { CallGroup } from './models/CallGroup';
|
|
7
|
+
export { Participant } from './models/Participant';
|
|
8
|
+
export { Recording } from './models/Recording';
|
|
9
|
+
export default CallScreen;
|