@cometchat/calls-sdk-javascript 4.0.7-rc → 4.0.7-rc2

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 (35) hide show
  1. package/pack/index.js +2 -1
  2. package/pack/src/Helper.d.ts +5 -5
  3. package/pack/src/api/APIHandler.d.ts +39 -39
  4. package/pack/src/api/endpoints.d.ts +7 -7
  5. package/pack/src/api/helper.d.ts +69 -69
  6. package/pack/src/api/index.d.ts +2 -2
  7. package/pack/src/constants/CallConstants.d.ts +217 -217
  8. package/pack/src/constants/index.d.ts +1 -1
  9. package/pack/src/defaultCallsettings.d.ts +2 -2
  10. package/pack/src/index.d.ts +7 -7
  11. package/pack/src/models/CallGroup.d.ts +14 -14
  12. package/pack/src/models/CallLog.d.ts +276 -276
  13. package/pack/src/models/CallSettings.d.ts +382 -382
  14. package/pack/src/models/CallUser.d.ts +14 -14
  15. package/pack/src/models/CallsAppSettings.d.ts +41 -41
  16. package/pack/src/models/CometChatCallLogs.d.ts +189 -189
  17. package/pack/src/models/CometChatCalls.d.ts +180 -180
  18. package/pack/src/models/CometChatCallsException.d.ts +8 -8
  19. package/pack/src/models/ErrorModel.d.ts +12 -12
  20. package/pack/src/models/Listener.d.ts +86 -86
  21. package/pack/src/models/ListnerHandler.d.ts +10 -10
  22. package/pack/src/models/Participant.d.ts +184 -184
  23. package/pack/src/models/PresenterSettings.d.ts +265 -265
  24. package/pack/src/models/RTCUser.d.ts +18 -18
  25. package/pack/src/models/Recording.d.ts +86 -86
  26. package/pack/src/models/index.d.ts +10 -10
  27. package/pack/src/types/ICallSettings.d.ts +61 -61
  28. package/pack/src/types/ICallsAppSettings.d.ts +6 -6
  29. package/pack/src/types/RTCUser.d.ts +6 -6
  30. package/pack/src/types/callEvents.d.ts +88 -88
  31. package/pack/src/types/common.d.ts +14 -14
  32. package/pack/src/types/index.d.ts +2 -2
  33. package/pack/src/util/parseJwt.d.ts +1 -1
  34. package/pack/src/util/verifyCallSettings.d.ts +4 -4
  35. package/package.json +1 -1
@@ -1,217 +1,217 @@
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 COLOR: "color";
106
- };
107
- };
108
- };
109
- export declare const CALL_ERROR: {
110
- CALL_ALREADY_INITIATED: {
111
- code: string;
112
- name: string;
113
- message: string;
114
- details: {};
115
- };
116
- ERROR_IN_CALLING: {
117
- code: string;
118
- name: string;
119
- message: string;
120
- details: {};
121
- };
122
- CANNOT_ACCEPT_CALL: {
123
- code: string;
124
- name: string;
125
- message: string;
126
- details: {};
127
- };
128
- NOT_INITIALIZED: {
129
- code: string;
130
- name: string;
131
- message: string;
132
- details: {};
133
- };
134
- NOT_LOGGED_IN: {
135
- code: string;
136
- name: string;
137
- message: string;
138
- details: {};
139
- };
140
- SESSION_ID_REQUIRED: {
141
- code: string;
142
- name: string;
143
- message: string;
144
- details: {};
145
- };
146
- CALL_SETTINGS_REQUIRED: {
147
- code: string;
148
- name: string;
149
- message: string;
150
- details: {};
151
- };
152
- JWT_NOT_FOUND: {
153
- code: string;
154
- name: string;
155
- message: string;
156
- details: {};
157
- };
158
- };
159
- export declare const REGION: {
160
- readonly us: "us";
161
- readonly eu: "eu";
162
- readonly in: "in";
163
- readonly US: "us";
164
- readonly EU: "eu";
165
- readonly IN: "in";
166
- };
167
- export declare const API_ERROR_CODES: {
168
- AUTH_ERR_AUTH_TOKEN_NOT_FOUND: string;
169
- };
170
- export declare const GENERAL_CONSTS: {
171
- REGION: {
172
- us: string;
173
- eu: string;
174
- in: string;
175
- US: string;
176
- EU: string;
177
- IN: string;
178
- };
179
- };
180
- export declare const GENERAL_ERROR: {
181
- readonly GENERIC_EXCEPTION: {
182
- readonly code: "GENERIC_EXCEPTION";
183
- };
184
- readonly INVALID_ARGUMENT_EXCEPTION: {
185
- readonly code: "INVALID_ARGUMENT_EXCEPTION";
186
- };
187
- readonly API_ERROR: {
188
- readonly code: "API_ERROR";
189
- };
190
- readonly UNKNOWN_API_ERROR: {
191
- readonly code: "UNKNOWN_API_ERROR";
192
- readonly message: "There is an unknown issue with the API request. Please check your internet connection and verify the api call.";
193
- };
194
- readonly INVALID_CALL_APP_SETTINGS: {
195
- readonly code: "INVALID_CALL_APP_SETTINGS";
196
- readonly message_instance: "appSettings must be an instance of CallAppSettings class";
197
- readonly message_app_id: "Invalid app id, please check your appSettings";
198
- readonly message_region: "Invalid region, please check your appSettings";
199
- readonly message_host: "Invalid host, please check your appSettings";
200
- };
201
- readonly INVALID_CALL_SETTINGS: {
202
- readonly code: "INVALID_CALL_SETTINGS";
203
- readonly message_instance: "callSettings must be an instance of CallSettings class";
204
- };
205
- readonly INVALID_PRESENTER_SETTINGS: {
206
- readonly code: "INVALID_PRESENTER_SETTINGS";
207
- readonly message_instance: "presenterSettings must be an instance of PresenterSettings class";
208
- };
209
- readonly INVALID_ARGUMENT_EXCEPTION_CALL_TOKEN: {
210
- readonly code: "INVALID_ARGUMENT_EXCEPTION";
211
- readonly message: "callToken must be valid please verify.";
212
- };
213
- readonly ERROR_PRESENTER_MODE: {
214
- readonly code: "ERROR_PRESENTER_MODE";
215
- readonly message: "Presenter mode is disabled. To use presenter mode, please enable it from the CometChat Apps Dashboard";
216
- };
217
- };
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 COLOR: "color";
106
+ };
107
+ };
108
+ };
109
+ export declare const CALL_ERROR: {
110
+ CALL_ALREADY_INITIATED: {
111
+ code: string;
112
+ name: string;
113
+ message: string;
114
+ details: {};
115
+ };
116
+ ERROR_IN_CALLING: {
117
+ code: string;
118
+ name: string;
119
+ message: string;
120
+ details: {};
121
+ };
122
+ CANNOT_ACCEPT_CALL: {
123
+ code: string;
124
+ name: string;
125
+ message: string;
126
+ details: {};
127
+ };
128
+ NOT_INITIALIZED: {
129
+ code: string;
130
+ name: string;
131
+ message: string;
132
+ details: {};
133
+ };
134
+ NOT_LOGGED_IN: {
135
+ code: string;
136
+ name: string;
137
+ message: string;
138
+ details: {};
139
+ };
140
+ SESSION_ID_REQUIRED: {
141
+ code: string;
142
+ name: string;
143
+ message: string;
144
+ details: {};
145
+ };
146
+ CALL_SETTINGS_REQUIRED: {
147
+ code: string;
148
+ name: string;
149
+ message: string;
150
+ details: {};
151
+ };
152
+ JWT_NOT_FOUND: {
153
+ code: string;
154
+ name: string;
155
+ message: string;
156
+ details: {};
157
+ };
158
+ };
159
+ export declare const REGION: {
160
+ readonly us: "us";
161
+ readonly eu: "eu";
162
+ readonly in: "in";
163
+ readonly US: "us";
164
+ readonly EU: "eu";
165
+ readonly IN: "in";
166
+ };
167
+ export declare const API_ERROR_CODES: {
168
+ AUTH_ERR_AUTH_TOKEN_NOT_FOUND: string;
169
+ };
170
+ export declare const GENERAL_CONSTS: {
171
+ REGION: {
172
+ us: string;
173
+ eu: string;
174
+ in: string;
175
+ US: string;
176
+ EU: string;
177
+ IN: string;
178
+ };
179
+ };
180
+ export declare const GENERAL_ERROR: {
181
+ readonly GENERIC_EXCEPTION: {
182
+ readonly code: "GENERIC_EXCEPTION";
183
+ };
184
+ readonly INVALID_ARGUMENT_EXCEPTION: {
185
+ readonly code: "INVALID_ARGUMENT_EXCEPTION";
186
+ };
187
+ readonly API_ERROR: {
188
+ readonly code: "API_ERROR";
189
+ };
190
+ readonly UNKNOWN_API_ERROR: {
191
+ readonly code: "UNKNOWN_API_ERROR";
192
+ readonly message: "There is an unknown issue with the API request. Please check your internet connection and verify the api call.";
193
+ };
194
+ readonly INVALID_CALL_APP_SETTINGS: {
195
+ readonly code: "INVALID_CALL_APP_SETTINGS";
196
+ readonly message_instance: "appSettings must be an instance of CallAppSettings class";
197
+ readonly message_app_id: "Invalid app id, please check your appSettings";
198
+ readonly message_region: "Invalid region, please check your appSettings";
199
+ readonly message_host: "Invalid host, please check your appSettings";
200
+ };
201
+ readonly INVALID_CALL_SETTINGS: {
202
+ readonly code: "INVALID_CALL_SETTINGS";
203
+ readonly message_instance: "callSettings must be an instance of CallSettings class";
204
+ };
205
+ readonly INVALID_PRESENTER_SETTINGS: {
206
+ readonly code: "INVALID_PRESENTER_SETTINGS";
207
+ readonly message_instance: "presenterSettings must be an instance of PresenterSettings class";
208
+ };
209
+ readonly INVALID_ARGUMENT_EXCEPTION_CALL_TOKEN: {
210
+ readonly code: "INVALID_ARGUMENT_EXCEPTION";
211
+ readonly message: "callToken must be valid please verify.";
212
+ };
213
+ readonly ERROR_PRESENTER_MODE: {
214
+ readonly code: "ERROR_PRESENTER_MODE";
215
+ readonly message: "Presenter mode is disabled. To use presenter mode, please enable it from the CometChat Apps Dashboard";
216
+ };
217
+ };
@@ -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>;
@@ -1,7 +1,7 @@
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
+ 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 +1,14 @@
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
+ 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
+ }