@cometchat/calls-sdk-react-native 4.0.4 → 4.0.6-beta1

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 (42) hide show
  1. package/android/src/main/java/com/CometChatCalls/AudioModeModule.java +1 -1
  2. package/dist/CometChatErrorConstants.d.ts +124 -124
  3. package/dist/Constants.d.ts +721 -721
  4. package/dist/Helper copy.d.ts +1 -1
  5. package/dist/Helper.d.ts +7 -7
  6. package/dist/api/APIHandler.d.ts +42 -42
  7. package/dist/api/endpoints.d.ts +7 -7
  8. package/dist/api/helper.d.ts +69 -69
  9. package/dist/api/index.d.ts +2 -2
  10. package/dist/constants/CallConstants.d.ts +136 -136
  11. package/dist/constants/index.d.ts +1 -1
  12. package/dist/defaultCallsettings.d.ts +2 -2
  13. package/dist/index.d.ts +9 -9
  14. package/dist/index.js +7 -7
  15. package/dist/models/CallAppSettings.d.ts +42 -42
  16. package/dist/models/CallGroup.d.ts +14 -14
  17. package/dist/models/CallLog.d.ts +276 -276
  18. package/dist/models/CallLogFilterParams.d.ts +97 -97
  19. package/dist/models/CallSettings.d.ts +316 -316
  20. package/dist/models/CallUser.d.ts +14 -14
  21. package/dist/models/CometChatCallLogs.d.ts +193 -193
  22. package/dist/models/CometChatCalls.d.ts +110 -110
  23. package/dist/models/CometChatCallsComponent.d.ts +13 -13
  24. package/dist/models/CometChatCallsComponentCore.d.ts +18 -18
  25. package/dist/models/CometChatCallsException.d.ts +7 -7
  26. package/dist/models/CometChatPresenterComponent.d.ts +13 -13
  27. package/dist/models/ErrorModel.d.ts +11 -11
  28. package/dist/models/Listner.d.ts +64 -64
  29. package/dist/models/ListnerHandler.d.ts +10 -10
  30. package/dist/models/MessageComponent.d.ts +7 -7
  31. package/dist/models/Participant.d.ts +184 -184
  32. package/dist/models/PresenterSettings.d.ts +194 -194
  33. package/dist/models/RTCUser.d.ts +18 -18
  34. package/dist/models/Recording.d.ts +86 -86
  35. package/dist/models/index.d.ts +9 -9
  36. package/dist/types/ICallAppSettings.d.ts +6 -6
  37. package/dist/types/ICallSettings.d.ts +60 -60
  38. package/dist/types/RTCUser.d.ts +6 -6
  39. package/dist/types/callEvents.d.ts +53 -53
  40. package/dist/types/common.d.ts +17 -17
  41. package/dist/types/index.d.ts +2 -2
  42. package/package.json +1 -1
@@ -1,60 +1,60 @@
1
- import { ColorValue, Position } from "./common";
2
- export interface ICallSettings {
3
- screenShareMode?: "default" | "presenter";
4
- ShowEndCallButton?: boolean;
5
- ShowRecordingButton?: boolean;
6
- StartRecordingOnCallStart?: boolean;
7
- ShowMuteAudioButton?: boolean;
8
- ShowPauseVideoButton?: boolean;
9
- ShowScreenShareButton?: boolean;
10
- ShowSwitchToVideoCallButton?: boolean;
11
- defaultLayout?: boolean;
12
- isAudioCall?: boolean;
13
- isAudioOnly?: boolean;
14
- user: {
15
- name: string;
16
- avatar?: string;
17
- uid: string;
18
- jwt?: string;
19
- };
20
- mode?: "DEFAULT" | "SPOTLIGHT" | "TILE" | "SIDEBAR";
21
- StartAudioMuted?: boolean;
22
- StartVideoMuted?: boolean;
23
- ShowSwitchModeButton?: boolean;
24
- ShowVirtualBackgroundSetting?: boolean;
25
- VirtualBackground?: {
26
- AllowBackgroundBlur?: boolean;
27
- AllowUserImages?: boolean;
28
- ShowDefaultImages?: boolean;
29
- SetImages?: string[];
30
- EnforceBackgroundBlur?: 0 | 1 | 2;
31
- EnforceBackgroundImage?: string;
32
- };
33
- AvatarMode?: "circle";
34
- MainVideoContainerSetting?: {
35
- videoFit?: "contain" | "cover";
36
- zoomButton?: {
37
- visible?: boolean;
38
- visibility?: boolean;
39
- position?: Position;
40
- };
41
- nameLabel?: {
42
- visible?: boolean;
43
- visibility?: boolean;
44
- position?: Position;
45
- color?: ColorValue;
46
- };
47
- network?: {
48
- visible?: boolean;
49
- visibility?: boolean;
50
- position?: Position;
51
- };
52
- };
53
- customCSS?: string;
54
- analyticsSettings?: {
55
- ANALYTICS_HOST: string;
56
- ANALYTICS_VERSION: string;
57
- ANALYTICS_PING_DISABLED: boolean;
58
- ANALYTICS_USE_SSL: boolean;
59
- };
60
- }
1
+ import { ColorValue, Position } from "./common";
2
+ export interface ICallSettings {
3
+ screenShareMode?: "default" | "presenter";
4
+ ShowEndCallButton?: boolean;
5
+ ShowRecordingButton?: boolean;
6
+ StartRecordingOnCallStart?: boolean;
7
+ ShowMuteAudioButton?: boolean;
8
+ ShowPauseVideoButton?: boolean;
9
+ ShowScreenShareButton?: boolean;
10
+ ShowSwitchToVideoCallButton?: boolean;
11
+ defaultLayout?: boolean;
12
+ isAudioCall?: boolean;
13
+ isAudioOnly?: boolean;
14
+ user: {
15
+ name: string;
16
+ avatar?: string;
17
+ uid: string;
18
+ jwt?: string;
19
+ };
20
+ mode?: "DEFAULT" | "SPOTLIGHT" | "TILE" | "SIDEBAR";
21
+ StartAudioMuted?: boolean;
22
+ StartVideoMuted?: boolean;
23
+ ShowSwitchModeButton?: boolean;
24
+ ShowVirtualBackgroundSetting?: boolean;
25
+ VirtualBackground?: {
26
+ AllowBackgroundBlur?: boolean;
27
+ AllowUserImages?: boolean;
28
+ ShowDefaultImages?: boolean;
29
+ SetImages?: string[];
30
+ EnforceBackgroundBlur?: 0 | 1 | 2;
31
+ EnforceBackgroundImage?: string;
32
+ };
33
+ AvatarMode?: "circle";
34
+ MainVideoContainerSetting?: {
35
+ videoFit?: "contain" | "cover";
36
+ zoomButton?: {
37
+ visible?: boolean;
38
+ visibility?: boolean;
39
+ position?: Position;
40
+ };
41
+ nameLabel?: {
42
+ visible?: boolean;
43
+ visibility?: boolean;
44
+ position?: Position;
45
+ color?: ColorValue;
46
+ };
47
+ network?: {
48
+ visible?: boolean;
49
+ visibility?: boolean;
50
+ position?: Position;
51
+ };
52
+ };
53
+ customCSS?: string;
54
+ analyticsSettings?: {
55
+ ANALYTICS_HOST: string;
56
+ ANALYTICS_VERSION: string;
57
+ ANALYTICS_PING_DISABLED: boolean;
58
+ ANALYTICS_USE_SSL: boolean;
59
+ };
60
+ }
@@ -1,6 +1,6 @@
1
- export interface IRTCUser {
2
- name: string;
3
- avatar: string;
4
- joinnedAt: string;
5
- uid: string;
6
- }
1
+ export interface IRTCUser {
2
+ name: string;
3
+ avatar: string;
4
+ joinnedAt: string;
5
+ uid: string;
6
+ }
@@ -1,53 +1,53 @@
1
- interface User {
2
- name: string;
3
- avatar: string;
4
- isVideoMuted: string;
5
- isAudioMuted: string;
6
- isLocalUser: string;
7
- id: string;
8
- uid: string;
9
- }
10
- export interface ICallEventsData {
11
- readonly onUserJoined: {
12
- name: string;
13
- avatar: string;
14
- joinnedAt: string;
15
- uid: string;
16
- isAudioMuted: boolean;
17
- isLocalUser: boolean;
18
- isVideoMuted: boolean;
19
- };
20
- readonly onUserLeft: {
21
- name: string;
22
- avatar: string;
23
- joinnedAt: string;
24
- uid: string;
25
- };
26
- readonly onUserListUpdated: Array<{
27
- name: string;
28
- avatar: string;
29
- uid: string;
30
- }>;
31
- readonly onMediaDeviceListUpdated: {
32
- videoInputDevices: MediaDeviceInfo[];
33
- audioInputDevices: MediaDeviceInfo[];
34
- audioOutputDevices: MediaDeviceInfo[];
35
- };
36
- readonly onRecordingStarted: Partial<User & {
37
- recordId: string;
38
- }>;
39
- readonly onRecordingStopped: Partial<User & {
40
- recordId: string;
41
- }>;
42
- readonly onCallSwitchedToVideo: {
43
- sessionId: string;
44
- initiator: Partial<User>;
45
- };
46
- readonly onCallEnded: {};
47
- readonly onUserMuted: {
48
- name: string;
49
- avatar: string;
50
- uid: string;
51
- };
52
- }
53
- export {};
1
+ interface User {
2
+ name: string;
3
+ avatar: string;
4
+ isVideoMuted: string;
5
+ isAudioMuted: string;
6
+ isLocalUser: string;
7
+ id: string;
8
+ uid: string;
9
+ }
10
+ export interface ICallEventsData {
11
+ readonly onUserJoined: {
12
+ name: string;
13
+ avatar: string;
14
+ joinnedAt: string;
15
+ uid: string;
16
+ isAudioMuted: boolean;
17
+ isLocalUser: boolean;
18
+ isVideoMuted: boolean;
19
+ };
20
+ readonly onUserLeft: {
21
+ name: string;
22
+ avatar: string;
23
+ joinnedAt: string;
24
+ uid: string;
25
+ };
26
+ readonly onUserListUpdated: Array<{
27
+ name: string;
28
+ avatar: string;
29
+ uid: string;
30
+ }>;
31
+ readonly onMediaDeviceListUpdated: {
32
+ videoInputDevices: MediaDeviceInfo[];
33
+ audioInputDevices: MediaDeviceInfo[];
34
+ audioOutputDevices: MediaDeviceInfo[];
35
+ };
36
+ readonly onRecordingStarted: Partial<User & {
37
+ recordId: string;
38
+ }>;
39
+ readonly onRecordingStopped: Partial<User & {
40
+ recordId: string;
41
+ }>;
42
+ readonly onCallSwitchedToVideo: {
43
+ sessionId: string;
44
+ initiator: Partial<User>;
45
+ };
46
+ readonly onCallEnded: {};
47
+ readonly onUserMuted: {
48
+ name: string;
49
+ avatar: string;
50
+ uid: string;
51
+ };
52
+ }
53
+ export {};
@@ -1,17 +1,17 @@
1
- import { CallSettings } from "../models/CallSettings";
2
- export type Position = typeof CallSettings.POSITION[keyof typeof CallSettings.POSITION];
3
- export type AspectRatio = typeof CallSettings.ASPECT_RATIO[keyof typeof CallSettings.ASPECT_RATIO];
4
- export type ColorRGB = `rgb(${number}, ${number}, ${number})`;
5
- export type ColorRGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
6
- export type ColorHEX = `#${string}`;
7
- type _ColorValue = ColorRGB | ColorRGBA | ColorHEX;
8
- export type ColorValue = _ColorValue | Omit<string, _ColorValue>;
9
- type _Region = "eu" | "us" | "in";
10
- export type Region = _Region | Omit<string, _Region>;
11
- type _THost = `rtc-${_Region}.cometchat.io`;
12
- export type Host = _THost | Omit<string, _THost>;
13
- export interface AudioMode {
14
- isSelected: boolean;
15
- mode: string;
16
- }
17
- export {};
1
+ import { CallSettings } from "../models/CallSettings";
2
+ export type Position = typeof CallSettings.POSITION[keyof typeof CallSettings.POSITION];
3
+ export type AspectRatio = typeof CallSettings.ASPECT_RATIO[keyof typeof CallSettings.ASPECT_RATIO];
4
+ export type ColorRGB = `rgb(${number}, ${number}, ${number})`;
5
+ export type ColorRGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
6
+ export type ColorHEX = `#${string}`;
7
+ type _ColorValue = ColorRGB | ColorRGBA | ColorHEX;
8
+ export type ColorValue = _ColorValue | Omit<string, _ColorValue>;
9
+ type _Region = "eu" | "us" | "in";
10
+ export type Region = _Region | Omit<string, _Region>;
11
+ type _THost = `rtc-${_Region}.cometchat.io`;
12
+ export type Host = _THost | Omit<string, _THost>;
13
+ export interface AudioMode {
14
+ isSelected: boolean;
15
+ mode: string;
16
+ }
17
+ export {};
@@ -1,2 +1,2 @@
1
- export * from "./ICallAppSettings";
2
- export * from "./ICallSettings";
1
+ export * from "./ICallAppSettings";
2
+ export * from "./ICallSettings";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/calls-sdk-react-native",
3
- "version": "4.0.4",
3
+ "version": "4.0.6-beta1",
4
4
  "description": "Cometchat React Native Calling component for iOS and Android",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",