@cometchat/calls-sdk-react-native 4.0.2 → 4.0.4
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/dist/Constants.d.ts +1 -0
- package/dist/api/APIHandler.d.ts +37 -1
- package/dist/api/endpoints.d.ts +1 -0
- package/dist/api/helper.d.ts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +105 -105
- package/dist/models/CallGroup.d.ts +14 -0
- package/dist/models/CallLog.d.ts +276 -0
- package/dist/models/CallLogFilterParams.d.ts +97 -0
- package/dist/models/CallUser.d.ts +14 -0
- package/dist/models/CometChatCallLogs.d.ts +193 -0
- package/dist/models/CometChatCalls.d.ts +21 -0
- package/dist/models/ErrorModel.d.ts +1 -1
- package/dist/models/Participant.d.ts +184 -0
- package/dist/models/Recording.d.ts +86 -0
- package/dist/models/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/Constants.d.ts
CHANGED
|
@@ -377,6 +377,7 @@ export declare const CallConstants: {
|
|
|
377
377
|
readonly CALL_SESSION_ID: "sessionid";
|
|
378
378
|
readonly CALL_RECEIVER: "receiver";
|
|
379
379
|
readonly CALL_SENDER: "sender";
|
|
380
|
+
readonly CALL_INITIATOR: "initiator";
|
|
380
381
|
readonly CALL_RECEIVER_TYPE: "receiverType";
|
|
381
382
|
readonly CALL_STATUS: "status";
|
|
382
383
|
readonly CALL_TYPE: "type";
|
package/dist/api/APIHandler.d.ts
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* APIHandler class for handling API requests related to CometChat Calls.
|
|
3
|
+
*/
|
|
4
|
+
import { CallAppSettings, CallLogFilterParams } from '../models';
|
|
2
5
|
import type { IGenerateTokenAPIResult, IVerifyTokenAPIResult } from './helper';
|
|
3
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
|
+
*/
|
|
4
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
|
+
*/
|
|
5
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>;
|
|
6
42
|
}
|
package/dist/api/endpoints.d.ts
CHANGED
package/dist/api/helper.d.ts
CHANGED
|
@@ -60,4 +60,10 @@ export interface IVerifyTokenAPIResult {
|
|
|
60
60
|
}
|
|
61
61
|
export declare const postAPI: (postReqObj: IPOSTReqObj) => Promise<IGenerateTokenAPIResult>;
|
|
62
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;
|
|
63
69
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import * as CallScreen from './calling';
|
|
2
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';
|
|
3
9
|
export default CallScreen;
|