@cometchat/calls-sdk-javascript 4.0.5-beta1 → 4.0.5
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/pack/constants/CallConstants.d.ts +2 -0
- package/pack/index.d.ts +4 -0
- package/pack/index.js +1 -1
- package/pack/models/CallGroup.d.ts +14 -0
- package/pack/models/CallLog.d.ts +12 -10
- package/pack/models/CallUser.d.ts +14 -0
- package/pack/models/CometChatCalls.d.ts +2 -1
- package/pack/models/Listener.d.ts +5 -0
- package/pack/models/Recording.d.ts +1 -1
- package/pack/types/callEvents.d.ts +2 -1
- package/package.json +1 -1
- package/pack/index.js.LICENSE.txt +0 -1
|
@@ -0,0 +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
|
+
}
|
package/pack/models/CallLog.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CallGroup } from "./CallGroup";
|
|
2
|
+
import { CallUser } from "./CallUser";
|
|
1
3
|
import { Participant } from "./Participant";
|
|
2
4
|
import { Recording } from "./Recording";
|
|
3
5
|
/**
|
|
@@ -6,8 +8,8 @@ import { Recording } from "./Recording";
|
|
|
6
8
|
export declare class CallLog {
|
|
7
9
|
/**
|
|
8
10
|
* The session ID of the call log.
|
|
9
|
-
|
|
10
|
-
private
|
|
11
|
+
*/
|
|
12
|
+
private sessionId;
|
|
11
13
|
/**
|
|
12
14
|
* The total audio minutes of the call log.
|
|
13
15
|
*/
|
|
@@ -33,12 +35,12 @@ export declare class CallLog {
|
|
|
33
35
|
*/
|
|
34
36
|
private callCategory;
|
|
35
37
|
/**
|
|
36
|
-
* @type {
|
|
38
|
+
* @type {CallUser}
|
|
37
39
|
* The initiator of the call log.
|
|
38
|
-
|
|
40
|
+
*/
|
|
39
41
|
private initiator;
|
|
40
42
|
/**
|
|
41
|
-
* @type {
|
|
43
|
+
* @type {CallUser | CallGroup}
|
|
42
44
|
* The receiver of the call log.
|
|
43
45
|
*/
|
|
44
46
|
private receiver;
|
|
@@ -89,7 +91,7 @@ export declare class CallLog {
|
|
|
89
91
|
* Gets the session ID of the call log.
|
|
90
92
|
* @returns The session ID of the call log.
|
|
91
93
|
*/
|
|
92
|
-
|
|
94
|
+
getSessionID(): string;
|
|
93
95
|
/**
|
|
94
96
|
* Sets the session ID of the call log.
|
|
95
97
|
* @param value - The session ID to set.
|
|
@@ -159,22 +161,22 @@ export declare class CallLog {
|
|
|
159
161
|
* Gets the initiator of the call log.
|
|
160
162
|
* @returns The initiator of the call log.
|
|
161
163
|
*/
|
|
162
|
-
getInitiator():
|
|
164
|
+
getInitiator(): CallUser;
|
|
163
165
|
/**
|
|
164
166
|
* Sets the initiator of the call log.
|
|
165
167
|
* @param value - The initiator to set.
|
|
166
168
|
*/
|
|
167
|
-
setInitiator(value:
|
|
169
|
+
setInitiator(value: CallUser): void;
|
|
168
170
|
/**
|
|
169
171
|
* Gets the receiver of the call log.
|
|
170
172
|
* @returns The receiver of the call log.
|
|
171
173
|
*/
|
|
172
|
-
getReceiver():
|
|
174
|
+
getReceiver(): CallUser | CallGroup;
|
|
173
175
|
/**
|
|
174
176
|
* Sets the receiver of the call log.
|
|
175
177
|
* @param value - The receiver to set.
|
|
176
178
|
*/
|
|
177
|
-
setReceiver(value:
|
|
179
|
+
setReceiver(value: CallUser | CallGroup): void;
|
|
178
180
|
/**
|
|
179
181
|
* Gets the receiver type of the call log.
|
|
180
182
|
* @returns The receiver type of the call log.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class CallUser {
|
|
2
|
+
protected uid: string;
|
|
3
|
+
protected name: string;
|
|
4
|
+
protected avatar: string;
|
|
5
|
+
constructor(object: any);
|
|
6
|
+
getUid(): string;
|
|
7
|
+
setUid(uid: string): void;
|
|
8
|
+
getName(): string;
|
|
9
|
+
setName(name: string): void;
|
|
10
|
+
getAvatar(): string;
|
|
11
|
+
setAvatar(avatar: string): void;
|
|
12
|
+
toString(): string;
|
|
13
|
+
static getUserFromJson(object: any): CallUser;
|
|
14
|
+
}
|
|
@@ -36,6 +36,7 @@ export declare class CometChatCalls {
|
|
|
36
36
|
static CallAppSettings: typeof CallAppSettings;
|
|
37
37
|
static MainVideoContainerSetting: typeof MainVideoContainerSetting;
|
|
38
38
|
static CallLogRequestBuilder: typeof CallLogRequestBuilder;
|
|
39
|
+
static CallLog: typeof CallLog;
|
|
39
40
|
private static isPresenterMode;
|
|
40
41
|
static joinPresentation(callToken: string, presenterSettings: PresenterSettings, htmlElement: HTMLElement): Promise<void>;
|
|
41
42
|
static startSession(callToken: string, callSettings: CallSettings, htmlElement: HTMLElement): Promise<void>;
|
|
@@ -131,7 +132,7 @@ export declare class CometChatCalls {
|
|
|
131
132
|
* Method to get all the available audio input devices.
|
|
132
133
|
* @returns {MediaDeviceInfo[]}
|
|
133
134
|
*/
|
|
134
|
-
static getAudioInputDevices():
|
|
135
|
+
static getAudioInputDevices(): MediaDeviceInfo[];
|
|
135
136
|
/**
|
|
136
137
|
* Method to get all the available audio output devices.
|
|
137
138
|
* @returns {MediaDeviceInfo[]}
|
|
@@ -10,6 +10,7 @@ interface IOngoingCallListener {
|
|
|
10
10
|
onScreenShareStarted: () => void;
|
|
11
11
|
onScreenShareStopped: () => void;
|
|
12
12
|
onUserMuted: (event: Partial<ICallEventsData["onUserMuted"]>) => void;
|
|
13
|
+
onUserUnMuted: (event: Partial<ICallEventsData["onUserUnMuted"]>) => void;
|
|
13
14
|
onCallSwitchedToVideo: (event: Partial<ICallEventsData["onCallSwitchedToVideo"]>) => void;
|
|
14
15
|
onCallEnded: () => void;
|
|
15
16
|
onCallEndButtonPressed: () => void;
|
|
@@ -60,6 +61,10 @@ export declare class OngoingCallListener {
|
|
|
60
61
|
* This event is triggered when a user is muted.
|
|
61
62
|
*/
|
|
62
63
|
onUserMuted?: IOngoingCallListener["onUserMuted"];
|
|
64
|
+
/**
|
|
65
|
+
* This event is triggered when a user is unmuted.
|
|
66
|
+
*/
|
|
67
|
+
onUserUnMuted?: IOngoingCallListener["onUserUnMuted"];
|
|
63
68
|
/**
|
|
64
69
|
* This event is triggered when an audio call is switched to a video call.
|
|
65
70
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyProperties } from "./common";
|
|
2
|
-
export type CallingEventsInternal = "initialDeviceList" | "onDeviceChange" | "onUserJoined" | "onUserLeft" | "onUserListChanged" | "SCREEN_SHARE_STARTED" | "SCREEN_SHARE_ENDED" | "SCREEN_SHARE_ENDED" | "hangup" | "onCallSwitchedToVideo" | "onRecordingToggled" | "onCallEndButtonPressed" | "onUserMuted";
|
|
2
|
+
export type CallingEventsInternal = "initialDeviceList" | "onDeviceChange" | "onUserJoined" | "onUserLeft" | "onUserListChanged" | "SCREEN_SHARE_STARTED" | "SCREEN_SHARE_ENDED" | "SCREEN_SHARE_ENDED" | "hangup" | "onCallSwitchedToVideo" | "onRecordingToggled" | "onCallEndButtonPressed" | "onUserMuted" | "onUserUnMuted";
|
|
3
3
|
interface IAVDevice {
|
|
4
4
|
deviceId: string;
|
|
5
5
|
kind: string;
|
|
@@ -29,6 +29,7 @@ interface User extends AnyProperties {
|
|
|
29
29
|
export interface ICallEventsData {
|
|
30
30
|
onUserJoined: User;
|
|
31
31
|
onUserLeft: User;
|
|
32
|
+
onUserUnMuted: User;
|
|
32
33
|
onUserMuted: {
|
|
33
34
|
muted: {
|
|
34
35
|
name: string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! For license information please see index.js.LICENSE.txt */
|