@cometchat/calls-sdk-react-native 4.0.5-beta1 → 4.0.7

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.
Files changed (39) hide show
  1. package/dist/Constants.d.ts +721 -721
  2. package/dist/Helper copy.d.ts +1 -1
  3. package/dist/Helper.d.ts +7 -7
  4. package/dist/api/APIHandler.d.ts +42 -42
  5. package/dist/api/endpoints.d.ts +7 -7
  6. package/dist/api/helper.d.ts +69 -69
  7. package/dist/api/index.d.ts +2 -2
  8. package/dist/constants/CallConstants.d.ts +136 -136
  9. package/dist/constants/index.d.ts +1 -1
  10. package/dist/index.d.ts +9 -9
  11. package/dist/index.js +7 -7
  12. package/dist/models/CallAppSettings.d.ts +42 -42
  13. package/dist/models/CallGroup.d.ts +14 -14
  14. package/dist/models/CallLog.d.ts +276 -276
  15. package/dist/models/CallLogFilterParams.d.ts +97 -97
  16. package/dist/models/CallSettings.d.ts +316 -316
  17. package/dist/models/CallUser.d.ts +14 -14
  18. package/dist/models/CometChatCallLogs.d.ts +193 -193
  19. package/dist/models/CometChatCalls.d.ts +110 -110
  20. package/dist/models/CometChatCallsComponent.d.ts +13 -13
  21. package/dist/models/CometChatCallsComponentCore.d.ts +18 -18
  22. package/dist/models/CometChatCallsException.d.ts +7 -7
  23. package/dist/models/CometChatPresenterComponent.d.ts +13 -13
  24. package/dist/models/ErrorModel.d.ts +11 -11
  25. package/dist/models/Listner.d.ts +64 -64
  26. package/dist/models/ListnerHandler.d.ts +10 -10
  27. package/dist/models/MessageComponent.d.ts +7 -7
  28. package/dist/models/Participant.d.ts +184 -184
  29. package/dist/models/PresenterSettings.d.ts +194 -194
  30. package/dist/models/RTCUser.d.ts +18 -18
  31. package/dist/models/Recording.d.ts +86 -86
  32. package/dist/models/index.d.ts +9 -9
  33. package/dist/types/ICallAppSettings.d.ts +6 -6
  34. package/dist/types/ICallSettings.d.ts +60 -60
  35. package/dist/types/RTCUser.d.ts +6 -6
  36. package/dist/types/callEvents.d.ts +53 -53
  37. package/dist/types/common.d.ts +17 -17
  38. package/dist/types/index.d.ts +2 -2
  39. package/package.json +1 -1
@@ -1,193 +1,193 @@
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 ID of the call log.
68
- */
69
- private id?;
70
- /**
71
- * The affix of the call log.
72
- */
73
- private affix;
74
- /**
75
- * The last affix of the call log.
76
- */
77
- private lastAffix;
78
- /**
79
- * The current method of the call log.
80
- */
81
- private currentMethod;
82
- /**
83
- * The pagination metadata of the call log.
84
- */
85
- private paginationMeta;
86
- /**
87
- * Creates a new CallLogRequest instance.
88
- * @param builder The builder object to use for constructing the request.
89
- */
90
- constructor(builder: CallLogRequestBuilder);
91
- /**
92
- * Fetches the next page of call logs.
93
- * @returns A promise that resolves to an array of CallLog objects, or rejects with a CometChatCallsException if there was an error.
94
- */
95
- fetchNext(): Promise<CallLog[]>;
96
- /**
97
- * Fetches the previous page of call logs.
98
- * @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..
99
- */
100
- fetchPrevious(): Promise<CallLog[] | []>;
101
- /**
102
- * Makes an API call to fetch call logs.
103
- * @param isFetchNext Whether to fetch the next page of call logs.
104
- * @returns A promise that resolves to an array of CallLog objects, or rejects with a CometChatCallsException if there was an error.
105
- */
106
- private makeAPICall;
107
- /**
108
- * Gets the filter parameters for the API call.
109
- * @param isNext Whether to fetch the next page of call logs.
110
- * @returns The filter parameters object.
111
- */
112
- private getParams;
113
- /**
114
- * Parses the API response and returns an array of CallLog objects.
115
- * @param response The API response string.
116
- * @returns An array of CallLog objects.
117
- */
118
- private getCallLogList;
119
- }
120
- /**
121
- * A builder class for creating a request to fetch call logs.
122
- */
123
- export declare class CallLogRequestBuilder {
124
- limit: number;
125
- callType: string;
126
- callStatus: string;
127
- hasRecording: boolean;
128
- callCategory: string;
129
- callDirection: string;
130
- uid: string;
131
- guid: string;
132
- authToken: string;
133
- /**
134
- * Sets the limit of call logs to be fetched.
135
- * @param limit - The number of call logs to be fetched.
136
- * @returns The CallLogRequestBuilder object.
137
- */
138
- setLimit(limit: number): this;
139
- /**
140
- * Sets the type of call to be fetched.
141
- * @param callType - The type of call to be fetched. Can be either 'video' or 'audio'.
142
- * @returns The CallLogRequestBuilder object.
143
- */
144
- setCallType(callType: 'video' | 'audio'): this;
145
- /**
146
- * Sets the status of call to be fetched.
147
- * @param callStatus - The status of call to be fetched. Can be either 'ongoing', 'busy', 'rejected', 'cancelled', 'ended' or 'missed'.
148
- * @returns The CallLogRequestBuilder object.
149
- */
150
- setCallStatus(callStatus: 'ongoing' | 'busy' | 'rejected' | 'cancelled' | 'ended' | 'missed'): this;
151
- /**
152
- * Sets whether the call has recording or not.
153
- * @param hasRecording - Whether the call has recording or not.
154
- * @returns The CallLogRequestBuilder object.
155
- */
156
- setHasRecording(hasRecording: boolean): this;
157
- /**
158
- * Sets the category of call to be fetched.
159
- * @param callCategory - The category of call to be fetched. Can be either 'call' or 'meet'.
160
- * @returns The CallLogRequestBuilder object.
161
- */
162
- setCallCategory(callCategory: 'call' | 'meet'): this;
163
- /**
164
- * Sets the direction of call to be fetched.
165
- * @param callDirection - The direction of call to be fetched. Can be either 'incoming' or 'outgoing'.
166
- * @returns The CallLogRequestBuilder object.
167
- */
168
- setCallDirection(callDirection: 'incoming' | 'outgoing'): this;
169
- /**
170
- * Sets the user ID of the call logs to be fetched.
171
- * @param uid - The user ID of the call logs to be fetched.
172
- * @returns The CallLogRequestBuilder object.
173
- */
174
- setUid(uid: string): this;
175
- /**
176
- * Sets the group ID of the call logs to be fetched.
177
- * @param guid - The group ID of the call logs to be fetched.
178
- * @returns The CallLogRequestBuilder object.
179
- */
180
- setGuid(guid: string): this;
181
- /**
182
- * Sets the authorization token for the request.
183
- * @param authToken - The authorization token for the request.
184
- * @returns The CallLogRequestBuilder object.
185
- */
186
- setAuthToken(authToken: string): this;
187
- /**
188
- * Builds and returns the CallLogRequest object.
189
- * @returns The CallLogRequest object.
190
- */
191
- build(): CallLogRequest;
192
- }
193
- export {};
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 ID of the call log.
68
+ */
69
+ private id?;
70
+ /**
71
+ * The affix of the call log.
72
+ */
73
+ private affix;
74
+ /**
75
+ * The last affix of the call log.
76
+ */
77
+ private lastAffix;
78
+ /**
79
+ * The current method of the call log.
80
+ */
81
+ private currentMethod;
82
+ /**
83
+ * The pagination metadata of the call log.
84
+ */
85
+ private paginationMeta;
86
+ /**
87
+ * Creates a new CallLogRequest instance.
88
+ * @param builder The builder object to use for constructing the request.
89
+ */
90
+ constructor(builder: CallLogRequestBuilder);
91
+ /**
92
+ * Fetches the next page of call logs.
93
+ * @returns A promise that resolves to an array of CallLog objects, or rejects with a CometChatCallsException if there was an error.
94
+ */
95
+ fetchNext(): Promise<CallLog[]>;
96
+ /**
97
+ * Fetches the previous page of call logs.
98
+ * @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..
99
+ */
100
+ fetchPrevious(): Promise<CallLog[] | []>;
101
+ /**
102
+ * Makes an API call to fetch call logs.
103
+ * @param isFetchNext Whether to fetch the next page of call logs.
104
+ * @returns A promise that resolves to an array of CallLog objects, or rejects with a CometChatCallsException if there was an error.
105
+ */
106
+ private makeAPICall;
107
+ /**
108
+ * Gets the filter parameters for the API call.
109
+ * @param isNext Whether to fetch the next page of call logs.
110
+ * @returns The filter parameters object.
111
+ */
112
+ private getParams;
113
+ /**
114
+ * Parses the API response and returns an array of CallLog objects.
115
+ * @param response The API response string.
116
+ * @returns An array of CallLog objects.
117
+ */
118
+ private getCallLogList;
119
+ }
120
+ /**
121
+ * A builder class for creating a request to fetch call logs.
122
+ */
123
+ export declare class CallLogRequestBuilder {
124
+ limit: number;
125
+ callType: string;
126
+ callStatus: string;
127
+ hasRecording: boolean;
128
+ callCategory: string;
129
+ callDirection: string;
130
+ uid: string;
131
+ guid: string;
132
+ authToken: string;
133
+ /**
134
+ * Sets the limit of call logs to be fetched.
135
+ * @param limit - The number of call logs to be fetched.
136
+ * @returns The CallLogRequestBuilder object.
137
+ */
138
+ setLimit(limit: number): this;
139
+ /**
140
+ * Sets the type of call to be fetched.
141
+ * @param callType - The type of call to be fetched. Can be either 'video' or 'audio'.
142
+ * @returns The CallLogRequestBuilder object.
143
+ */
144
+ setCallType(callType: 'video' | 'audio'): this;
145
+ /**
146
+ * Sets the status of call to be fetched.
147
+ * @param callStatus - The status of call to be fetched. Can be either 'ongoing', 'busy', 'rejected', 'cancelled', 'ended' or 'missed'.
148
+ * @returns The CallLogRequestBuilder object.
149
+ */
150
+ setCallStatus(callStatus: 'ongoing' | 'busy' | 'rejected' | 'cancelled' | 'ended' | 'missed'): this;
151
+ /**
152
+ * Sets whether the call has recording or not.
153
+ * @param hasRecording - Whether the call has recording or not.
154
+ * @returns The CallLogRequestBuilder object.
155
+ */
156
+ setHasRecording(hasRecording: boolean): this;
157
+ /**
158
+ * Sets the category of call to be fetched.
159
+ * @param callCategory - The category of call to be fetched. Can be either 'call' or 'meet'.
160
+ * @returns The CallLogRequestBuilder object.
161
+ */
162
+ setCallCategory(callCategory: 'call' | 'meet'): this;
163
+ /**
164
+ * Sets the direction of call to be fetched.
165
+ * @param callDirection - The direction of call to be fetched. Can be either 'incoming' or 'outgoing'.
166
+ * @returns The CallLogRequestBuilder object.
167
+ */
168
+ setCallDirection(callDirection: 'incoming' | 'outgoing'): this;
169
+ /**
170
+ * Sets the user ID of the call logs to be fetched.
171
+ * @param uid - The user ID of the call logs to be fetched.
172
+ * @returns The CallLogRequestBuilder object.
173
+ */
174
+ setUid(uid: string): this;
175
+ /**
176
+ * Sets the group ID of the call logs to be fetched.
177
+ * @param guid - The group ID of the call logs to be fetched.
178
+ * @returns The CallLogRequestBuilder object.
179
+ */
180
+ setGuid(guid: string): this;
181
+ /**
182
+ * Sets the authorization token for the request.
183
+ * @param authToken - The authorization token for the request.
184
+ * @returns The CallLogRequestBuilder object.
185
+ */
186
+ setAuthToken(authToken: string): this;
187
+ /**
188
+ * Builds and returns the CallLogRequest object.
189
+ * @returns The CallLogRequest object.
190
+ */
191
+ build(): CallLogRequest;
192
+ }
193
+ export {};
@@ -1,110 +1,110 @@
1
- import { ListenerHandlers } from './ListnerHandler';
2
- import { AudioMode } from '../types/common';
3
- import { CallAppSettings, CallAppSettingsBuilder } from './CallAppSettings';
4
- import { CallSettings, CallSettingsBuilder } from './CallSettings';
5
- import { CometChatCallsComponentCore as CometChatCallsComponent } from './CometChatCallsComponentCore';
6
- import { CometChatPresenterComponent } from './CometChatPresenterComponent';
7
- import { OngoingCallListener } from './Listner';
8
- import { PresenterSettings, PresenterSettingsBuilder } from './PresenterSettings';
9
- import { CallLog } from './CallLog';
10
- import { CallLogRequestBuilder } from './CometChatCallLogs';
11
- import { CallUser } from "./CallUser";
12
- import { CallGroup } from "./CallGroup";
13
- import { Participant } from './Participant';
14
- import { Recording } from './Recording';
15
- export declare class CometChatCalls {
16
- private static appSettings;
17
- private static inProgress;
18
- static CALL_MODE: {
19
- readonly DEFAULT: "DEFAULT";
20
- readonly SPOTLIGHT: "SPOTLIGHT";
21
- };
22
- static AUDIO_MODE: {
23
- readonly SPEAKER: "SPEAKER";
24
- readonly EARPIECE: "EARPIECE";
25
- readonly BLUETOOTH: "BLUETOOTH";
26
- readonly HEADPHONES: "HEADPHONES";
27
- };
28
- static addCallEventListener: typeof ListenerHandlers.addCallEventListener;
29
- static removeCallEventListener: typeof ListenerHandlers.removeCallEventListener;
30
- static OngoingCallListener: typeof OngoingCallListener;
31
- static CallSettingsBuilder: typeof CallSettingsBuilder;
32
- static CallSettings: typeof CallSettings;
33
- static PresenterSettingsBuilder: typeof PresenterSettingsBuilder;
34
- static PresenterSettings: typeof PresenterSettings;
35
- static CallAppSettingsBuilder: typeof CallAppSettingsBuilder;
36
- static CallAppSettings: typeof CallAppSettings;
37
- static Component: typeof CometChatCallsComponent;
38
- static PresenterComponent: typeof CometChatPresenterComponent;
39
- static CallLogRequestBuilder: typeof CallLogRequestBuilder;
40
- static CallLog: typeof CallLog;
41
- static CallUser: typeof CallUser;
42
- static CallGroup: typeof CallGroup;
43
- static Participant: typeof Participant;
44
- static Recording: typeof Recording;
45
- static generateToken(sessionID: string, authToken: string): Promise<{
46
- token: string;
47
- }>;
48
- static init(appSettings: CallAppSettings): Promise<void>;
49
- /**
50
- * Method end on-going call.
51
- * @returns {void}
52
- */
53
- static endSession(): void;
54
- /**
55
- * Method to mute/unmute audio stream.
56
- * @param {boolean} muteAudio
57
- * @returns {void}
58
- */
59
- static muteAudio(muteAudio: boolean): void;
60
- /**
61
- * Method to pause/unpause video stream.
62
- * @param {boolean} pauseVideo
63
- * @returns {void}
64
- */
65
- static pauseVideo(pauseVideo: boolean): void;
66
- /**
67
- * Method to resume video stream.
68
- * @returns {void}
69
- */
70
- static resumeVideo(): void;
71
- /**
72
- * Method to set audio mode.
73
- * @param {string} mode
74
- * @returns {void}
75
- */
76
- static setAudioMode(mode: string): void;
77
- /**
78
- * Method to switch camera.
79
- * @returns {void}
80
- */
81
- static switchCamera(): void;
82
- /**
83
- * Method to get all the available audio output devices.
84
- * @returns {Promise<AudioMode[]>}
85
- */
86
- static getAudioOutputModes(): Promise<AudioMode[]>;
87
- /**
88
- * Method to switch from audio call to video call.
89
- * @returns {void}
90
- */
91
- static switchToVideoCall(): void;
92
- /**
93
- * Method to Start Call Recording.
94
- * @returns {void}
95
- */
96
- static startRecording(): void;
97
- /**
98
- * Method to Stop Call Recording.
99
- * @returns {void}
100
- */
101
- static stopRecording(): void;
102
- /**
103
- * Retrieves call details for a given session ID and auth token.
104
- * @param sessionID - The session ID of the call.
105
- * @param authToken - The authentication token required to make the API call.
106
- * @returns A Promise that resolves to a CallLog object containing the call details.
107
- * @throws {CometChatCallsException} If there is an error retrieving the call details.
108
- */
109
- static getCallDetails(sessionID: string, authToken: string): Promise<CallLog>;
110
- }
1
+ import { ListenerHandlers } from './ListnerHandler';
2
+ import { AudioMode } from '../types/common';
3
+ import { CallAppSettings, CallAppSettingsBuilder } from './CallAppSettings';
4
+ import { CallSettings, CallSettingsBuilder } from './CallSettings';
5
+ import { CometChatCallsComponentCore as CometChatCallsComponent } from './CometChatCallsComponentCore';
6
+ import { CometChatPresenterComponent } from './CometChatPresenterComponent';
7
+ import { OngoingCallListener } from './Listner';
8
+ import { PresenterSettings, PresenterSettingsBuilder } from './PresenterSettings';
9
+ import { CallLog } from './CallLog';
10
+ import { CallLogRequestBuilder } from './CometChatCallLogs';
11
+ import { CallUser } from "./CallUser";
12
+ import { CallGroup } from "./CallGroup";
13
+ import { Participant } from './Participant';
14
+ import { Recording } from './Recording';
15
+ export declare class CometChatCalls {
16
+ private static appSettings;
17
+ private static inProgress;
18
+ static CALL_MODE: {
19
+ readonly DEFAULT: "DEFAULT";
20
+ readonly SPOTLIGHT: "SPOTLIGHT";
21
+ };
22
+ static AUDIO_MODE: {
23
+ readonly SPEAKER: "SPEAKER";
24
+ readonly EARPIECE: "EARPIECE";
25
+ readonly BLUETOOTH: "BLUETOOTH";
26
+ readonly HEADPHONES: "HEADPHONES";
27
+ };
28
+ static addCallEventListener: typeof ListenerHandlers.addCallEventListener;
29
+ static removeCallEventListener: typeof ListenerHandlers.removeCallEventListener;
30
+ static OngoingCallListener: typeof OngoingCallListener;
31
+ static CallSettingsBuilder: typeof CallSettingsBuilder;
32
+ static CallSettings: typeof CallSettings;
33
+ static PresenterSettingsBuilder: typeof PresenterSettingsBuilder;
34
+ static PresenterSettings: typeof PresenterSettings;
35
+ static CallAppSettingsBuilder: typeof CallAppSettingsBuilder;
36
+ static CallAppSettings: typeof CallAppSettings;
37
+ static Component: typeof CometChatCallsComponent;
38
+ static PresenterComponent: typeof CometChatPresenterComponent;
39
+ static CallLogRequestBuilder: typeof CallLogRequestBuilder;
40
+ static CallLog: typeof CallLog;
41
+ static CallUser: typeof CallUser;
42
+ static CallGroup: typeof CallGroup;
43
+ static Participant: typeof Participant;
44
+ static Recording: typeof Recording;
45
+ static generateToken(sessionID: string, authToken: string): Promise<{
46
+ token: string;
47
+ }>;
48
+ static init(appSettings: CallAppSettings): Promise<void>;
49
+ /**
50
+ * Method end on-going call.
51
+ * @returns {void}
52
+ */
53
+ static endSession(): void;
54
+ /**
55
+ * Method to mute/unmute audio stream.
56
+ * @param {boolean} muteAudio
57
+ * @returns {void}
58
+ */
59
+ static muteAudio(muteAudio: boolean): void;
60
+ /**
61
+ * Method to pause/unpause video stream.
62
+ * @param {boolean} pauseVideo
63
+ * @returns {void}
64
+ */
65
+ static pauseVideo(pauseVideo: boolean): void;
66
+ /**
67
+ * Method to resume video stream.
68
+ * @returns {void}
69
+ */
70
+ static resumeVideo(): void;
71
+ /**
72
+ * Method to set audio mode.
73
+ * @param {string} mode
74
+ * @returns {void}
75
+ */
76
+ static setAudioMode(mode: string): void;
77
+ /**
78
+ * Method to switch camera.
79
+ * @returns {void}
80
+ */
81
+ static switchCamera(): void;
82
+ /**
83
+ * Method to get all the available audio output devices.
84
+ * @returns {Promise<AudioMode[]>}
85
+ */
86
+ static getAudioOutputModes(): Promise<AudioMode[]>;
87
+ /**
88
+ * Method to switch from audio call to video call.
89
+ * @returns {void}
90
+ */
91
+ static switchToVideoCall(): void;
92
+ /**
93
+ * Method to Start Call Recording.
94
+ * @returns {void}
95
+ */
96
+ static startRecording(): void;
97
+ /**
98
+ * Method to Stop Call Recording.
99
+ * @returns {void}
100
+ */
101
+ static stopRecording(): void;
102
+ /**
103
+ * Retrieves call details for a given session ID and auth token.
104
+ * @param sessionID - The session ID of the call.
105
+ * @param authToken - The authentication token required to make the API call.
106
+ * @returns A Promise that resolves to a CallLog object containing the call details.
107
+ * @throws {CometChatCallsException} If there is an error retrieving the call details.
108
+ */
109
+ static getCallDetails(sessionID: string, authToken: string): Promise<CallLog>;
110
+ }
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
- import { CallSettings } from './CallSettings';
3
- type MyState = {
4
- errored: boolean;
5
- };
6
- export declare class CometChatCallsComponent extends React.Component<{
7
- callSettings: CallSettings;
8
- callToken: string;
9
- }, MyState> {
10
- constructor(props: any);
11
- render(): JSX.Element;
12
- }
13
- export {};
1
+ import React from 'react';
2
+ import { CallSettings } from './CallSettings';
3
+ type MyState = {
4
+ errored: boolean;
5
+ };
6
+ export declare class CometChatCallsComponent extends React.Component<{
7
+ callSettings: CallSettings;
8
+ callToken: string;
9
+ }, MyState> {
10
+ constructor(props: any);
11
+ render(): JSX.Element;
12
+ }
13
+ export {};
@@ -1,18 +1,18 @@
1
- import React from 'react';
2
- import { CallSettings } from './CallSettings';
3
- import { PresenterSettings } from './PresenterSettings';
4
- type MyState = {
5
- shouldLoad: boolean;
6
- errored: boolean;
7
- };
8
- export declare class CometChatCallsComponentCore extends React.Component<{
9
- callSettings: CallSettings | PresenterSettings;
10
- callToken: string;
11
- presenterMode?: boolean;
12
- }, MyState> {
13
- static ref: any;
14
- callsettings: CallSettings | PresenterSettings;
15
- constructor(props: any);
16
- render(): JSX.Element;
17
- }
18
- export {};
1
+ import React from 'react';
2
+ import { CallSettings } from './CallSettings';
3
+ import { PresenterSettings } from './PresenterSettings';
4
+ type MyState = {
5
+ shouldLoad: boolean;
6
+ errored: boolean;
7
+ };
8
+ export declare class CometChatCallsComponentCore extends React.Component<{
9
+ callSettings: CallSettings | PresenterSettings;
10
+ callToken: string;
11
+ presenterMode?: boolean;
12
+ }, MyState> {
13
+ static ref: any;
14
+ callsettings: CallSettings | PresenterSettings;
15
+ constructor(props: any);
16
+ render(): JSX.Element;
17
+ }
18
+ export {};