@cometchat/calls-sdk-react-native 4.0.2 → 4.0.3
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 +4 -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 +13 -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
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a participant in a call.
|
|
3
|
+
*/
|
|
4
|
+
export declare class Participant {
|
|
5
|
+
/**
|
|
6
|
+
* The unique identifier of the participant.
|
|
7
|
+
*/
|
|
8
|
+
private uid;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the participant.
|
|
11
|
+
*/
|
|
12
|
+
private name;
|
|
13
|
+
/**
|
|
14
|
+
* The avatar of the participant.
|
|
15
|
+
*/
|
|
16
|
+
private avatar;
|
|
17
|
+
/**
|
|
18
|
+
* The total audio minutes of the participant.
|
|
19
|
+
*/
|
|
20
|
+
private totalAudioMinutes;
|
|
21
|
+
/**
|
|
22
|
+
* The total video minutes of the participant.
|
|
23
|
+
*/
|
|
24
|
+
private totalVideoMinutes;
|
|
25
|
+
/**
|
|
26
|
+
* The total duration in minutes of the participant.
|
|
27
|
+
*/
|
|
28
|
+
private totalDurationInMinutes;
|
|
29
|
+
/**
|
|
30
|
+
* The device ID of the participant.
|
|
31
|
+
*/
|
|
32
|
+
private deviceID;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the participant has joined the call or not.
|
|
35
|
+
*/
|
|
36
|
+
private hasJoined;
|
|
37
|
+
/**
|
|
38
|
+
* The timestamp when the participant joined the call.
|
|
39
|
+
*/
|
|
40
|
+
private joinedAt;
|
|
41
|
+
/**
|
|
42
|
+
* The timestamp when the participant left the call.
|
|
43
|
+
*/
|
|
44
|
+
private leftAt;
|
|
45
|
+
/**
|
|
46
|
+
* The media ID of the participant.
|
|
47
|
+
*/
|
|
48
|
+
private mid;
|
|
49
|
+
/**
|
|
50
|
+
* The state of the participant.
|
|
51
|
+
*/
|
|
52
|
+
private state;
|
|
53
|
+
/**
|
|
54
|
+
* Creates a new instance of Participant.
|
|
55
|
+
* @param object - The object containing the participant data.
|
|
56
|
+
*/
|
|
57
|
+
constructor(object: any);
|
|
58
|
+
/**
|
|
59
|
+
* Gets the unique identifier of the participant.
|
|
60
|
+
* @returns The unique identifier of the participant.
|
|
61
|
+
*/
|
|
62
|
+
getUid(): string;
|
|
63
|
+
/**
|
|
64
|
+
* Sets the unique identifier of the participant.
|
|
65
|
+
* @param value - The unique identifier of the participant.
|
|
66
|
+
*/
|
|
67
|
+
setUid(value: string): void;
|
|
68
|
+
/**
|
|
69
|
+
* Gets the name of the participant.
|
|
70
|
+
* @returns The name of the participant.
|
|
71
|
+
*/
|
|
72
|
+
getName(): string;
|
|
73
|
+
/**
|
|
74
|
+
* Sets the name of the participant.
|
|
75
|
+
* @param value - The name of the participant.
|
|
76
|
+
*/
|
|
77
|
+
setName(value: string): void;
|
|
78
|
+
/**
|
|
79
|
+
* Gets the avatar of the participant.
|
|
80
|
+
* @returns The avatar of the participant.
|
|
81
|
+
*/
|
|
82
|
+
getAvatar(): string;
|
|
83
|
+
/**
|
|
84
|
+
* Sets the avatar of the participant.
|
|
85
|
+
* @param value - The avatar of the participant.
|
|
86
|
+
*/
|
|
87
|
+
setAvatar(value: string): void;
|
|
88
|
+
/**
|
|
89
|
+
* Gets the total audio minutes of the participant.
|
|
90
|
+
* @returns The total audio minutes of the participant.
|
|
91
|
+
*/
|
|
92
|
+
getTotalAudioMinutes(): number;
|
|
93
|
+
/**
|
|
94
|
+
* Sets the total audio minutes of the participant.
|
|
95
|
+
* @param value - The total audio minutes of the participant.
|
|
96
|
+
*/
|
|
97
|
+
setTotalAudioMinutes(value: number): void;
|
|
98
|
+
/**
|
|
99
|
+
* Gets the total video minutes of the participant.
|
|
100
|
+
* @returns The total video minutes of the participant.
|
|
101
|
+
*/
|
|
102
|
+
getTotalVideoMinutes(): number;
|
|
103
|
+
/**
|
|
104
|
+
* Sets the total video minutes of the participant.
|
|
105
|
+
* @param value - The total video minutes of the participant.
|
|
106
|
+
*/
|
|
107
|
+
setTotalVideoMinutes(value: number): void;
|
|
108
|
+
/**
|
|
109
|
+
* Gets the total duration in minutes of the participant.
|
|
110
|
+
* @returns The total duration in minutes of the participant.
|
|
111
|
+
*/
|
|
112
|
+
getTotalDurationInMinutes(): number;
|
|
113
|
+
/**
|
|
114
|
+
* Sets the total duration in minutes of the participant.
|
|
115
|
+
* @param value - The total duration in minutes of the participant.
|
|
116
|
+
*/
|
|
117
|
+
setTotalDurationInMinutes(value: number): void;
|
|
118
|
+
/**
|
|
119
|
+
* Gets the device ID of the participant.
|
|
120
|
+
* @returns The device ID of the participant.
|
|
121
|
+
*/
|
|
122
|
+
getDeviceID(): string;
|
|
123
|
+
/**
|
|
124
|
+
* Sets the device ID of the participant.
|
|
125
|
+
* @param value - The device ID of the participant.
|
|
126
|
+
*/
|
|
127
|
+
setDeviceID(value: string): void;
|
|
128
|
+
/**
|
|
129
|
+
* Gets whether the participant has joined the call or not.
|
|
130
|
+
* @returns Whether the participant has joined the call or not.
|
|
131
|
+
*/
|
|
132
|
+
getHasJoined(): boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Sets whether the participant has joined the call or not.
|
|
135
|
+
* @param value - Whether the participant has joined the call or not.
|
|
136
|
+
*/
|
|
137
|
+
setHasJoined(value: boolean): void;
|
|
138
|
+
/**
|
|
139
|
+
* Gets the timestamp when the participant joined the call.
|
|
140
|
+
* @returns The timestamp when the participant joined the call.
|
|
141
|
+
*/
|
|
142
|
+
getJoinedAt(): number;
|
|
143
|
+
/**
|
|
144
|
+
* Sets the timestamp when the participant joined the call.
|
|
145
|
+
* @param value - The timestamp when the participant joined the call.
|
|
146
|
+
*/
|
|
147
|
+
setJoinedAt(value: number): void;
|
|
148
|
+
/**
|
|
149
|
+
* Gets the timestamp when the participant left the call.
|
|
150
|
+
* @returns The timestamp when the participant left the call.
|
|
151
|
+
*/
|
|
152
|
+
getLeftAt(): number;
|
|
153
|
+
/**
|
|
154
|
+
* Sets the timestamp when the participant left the call.
|
|
155
|
+
* @param value - The timestamp when the participant left the call.
|
|
156
|
+
*/
|
|
157
|
+
setLeftAt(value: number): void;
|
|
158
|
+
/**
|
|
159
|
+
* Gets the media ID of the participant.
|
|
160
|
+
* @returns The media ID of the participant.
|
|
161
|
+
*/
|
|
162
|
+
getMid(): string;
|
|
163
|
+
/**
|
|
164
|
+
* Sets the media ID of the participant.
|
|
165
|
+
* @param value - The media ID of the participant.
|
|
166
|
+
*/
|
|
167
|
+
setMid(value: string): void;
|
|
168
|
+
/**
|
|
169
|
+
* Gets the state of the participant.
|
|
170
|
+
* @returns The state of the participant.
|
|
171
|
+
*/
|
|
172
|
+
getState(): string;
|
|
173
|
+
/**
|
|
174
|
+
* Sets the state of the participant.
|
|
175
|
+
* @param value - The state of the participant.
|
|
176
|
+
*/
|
|
177
|
+
setState(value: string): void;
|
|
178
|
+
/**
|
|
179
|
+
* Creates a new instance of Participant from a JSON object.
|
|
180
|
+
* @param object - The JSON object containing the participant data.
|
|
181
|
+
* @returns A new instance of Participant.
|
|
182
|
+
*/
|
|
183
|
+
static getParticipantFromJson(object: any): Participant;
|
|
184
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a recording object.
|
|
3
|
+
*/
|
|
4
|
+
export declare class Recording {
|
|
5
|
+
/**
|
|
6
|
+
* The recording ID.
|
|
7
|
+
*/
|
|
8
|
+
private rid;
|
|
9
|
+
/**
|
|
10
|
+
* The URL of the recording.
|
|
11
|
+
*/
|
|
12
|
+
private recording_url;
|
|
13
|
+
/**
|
|
14
|
+
* The start time of the recording.
|
|
15
|
+
*/
|
|
16
|
+
private startTime;
|
|
17
|
+
/**
|
|
18
|
+
* The end time of the recording.
|
|
19
|
+
*/
|
|
20
|
+
private endTime;
|
|
21
|
+
/**
|
|
22
|
+
* The duration of the recording.
|
|
23
|
+
*/
|
|
24
|
+
private duration;
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new instance of the Recording class.
|
|
27
|
+
* @param data - The data to initialize the recording object.
|
|
28
|
+
*/
|
|
29
|
+
constructor(data: any);
|
|
30
|
+
/**
|
|
31
|
+
* Gets the recording ID.
|
|
32
|
+
* @returns The recording ID.
|
|
33
|
+
*/
|
|
34
|
+
getRid(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the recording ID.
|
|
37
|
+
* @param value - The recording ID to set.
|
|
38
|
+
*/
|
|
39
|
+
setRid(value: string): void;
|
|
40
|
+
/**
|
|
41
|
+
* Gets the recording URL.
|
|
42
|
+
* @returns The recording URL.
|
|
43
|
+
*/
|
|
44
|
+
getRecordingURL(): string;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the recording URL.
|
|
47
|
+
* @param value - The recording URL to set.
|
|
48
|
+
*/
|
|
49
|
+
setRecordingURL(value: string): void;
|
|
50
|
+
/**
|
|
51
|
+
* Gets the start time of the recording.
|
|
52
|
+
* @returns The start time of the recording.
|
|
53
|
+
*/
|
|
54
|
+
getStartTime(): number;
|
|
55
|
+
/**
|
|
56
|
+
* Sets the start time of the recording.
|
|
57
|
+
* @param value - The start time of the recording to set.
|
|
58
|
+
*/
|
|
59
|
+
setStartTime(value: number): void;
|
|
60
|
+
/**
|
|
61
|
+
* Gets the end time of the recording.
|
|
62
|
+
* @returns The end time of the recording.
|
|
63
|
+
*/
|
|
64
|
+
getEndTime(): number;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the end time of the recording.
|
|
67
|
+
* @param value - The end time of the recording to set.
|
|
68
|
+
*/
|
|
69
|
+
setEndTime(value: number): void;
|
|
70
|
+
/**
|
|
71
|
+
* Gets the duration of the recording.
|
|
72
|
+
* @returns The duration of the recording.
|
|
73
|
+
*/
|
|
74
|
+
getDuration(): number;
|
|
75
|
+
/**
|
|
76
|
+
* Sets the duration of the recording.
|
|
77
|
+
* @param value - The duration of the recording to set.
|
|
78
|
+
*/
|
|
79
|
+
setDuration(value: number): void;
|
|
80
|
+
/**
|
|
81
|
+
* Creates a new Recording object from the given JSON data.
|
|
82
|
+
* @param data - The JSON data to create the Recording object from.
|
|
83
|
+
* @returns A new Recording object.
|
|
84
|
+
*/
|
|
85
|
+
static getRecordingFromJson(data: any): Recording;
|
|
86
|
+
}
|
package/dist/models/index.d.ts
CHANGED