@vonage/client-sdk 1.2.0-alpha.1 → 1.2.0-alpha.11
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/README.md +4 -1
- package/dist/client/VonageClient.d.ts +3 -1
- package/dist/client/index.cjs +26251 -33732
- package/dist/client/index.mjs +26251 -33733
- package/dist/kotlin/ConversationEvents.d.ts +11 -10
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +97 -79
- package/dist/lib/MediaClient.d.ts +1 -0
- package/dist/utils/ConnectivityManager.d.ts +11 -0
- package/dist/vonageClientSDK.js +29560 -38697
- package/dist/vonageClientSDK.min.js +1 -2
- package/dist/vonageClientSDK.min.mjs +1 -2
- package/dist/vonageClientSDK.mjs +29560 -38698
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -200,11 +200,13 @@ try {
|
|
|
200
200
|
let cursor: string | undefined | null = undefined;
|
|
201
201
|
const pageSize = 10;
|
|
202
202
|
const conversations: Conversation[] = [];
|
|
203
|
+
const includeCustsomData = false;
|
|
203
204
|
do {
|
|
204
205
|
const response: ConversationsPage = await client.getConversations(
|
|
205
206
|
PresentingOrder.ASC,
|
|
206
207
|
pageSize,
|
|
207
|
-
cursor
|
|
208
|
+
cursor,
|
|
209
|
+
includeCustsomData
|
|
208
210
|
);
|
|
209
211
|
conversations.push(...response.conversations);
|
|
210
212
|
cursor = response.nextCursor;
|
|
@@ -246,6 +248,7 @@ client.on('conversationEvent', (event) => {
|
|
|
246
248
|
case 'message:vcard':
|
|
247
249
|
case 'message:location':
|
|
248
250
|
case 'message:template':
|
|
251
|
+
case 'custom':
|
|
249
252
|
}
|
|
250
253
|
const sender =
|
|
251
254
|
event.from.kind == 'embeddedInfo' ? event.from.user.name : 'System';
|
|
@@ -31,6 +31,8 @@ export declare const LegStatus: typeof vonage.LegStatusJS;
|
|
|
31
31
|
export type CallSayParams = Partial<vonage.CallSayParams> & {
|
|
32
32
|
text: string;
|
|
33
33
|
};
|
|
34
|
+
export type CallDisconnectReason = vonage.CallDisconnectReasonJS;
|
|
35
|
+
export declare const CallDisconnectReason: typeof vonage.CallDisconnectReasonJS;
|
|
34
36
|
type JSONValue = string | number | boolean | {
|
|
35
37
|
[x: string]: JSONValue;
|
|
36
38
|
} | JSONValue[];
|
|
@@ -177,7 +179,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
|
|
|
177
179
|
* @param cursor - the cursor to use for pagination (default: null)
|
|
178
180
|
* @returns a `ConversationsPage` containing the conversations
|
|
179
181
|
*/
|
|
180
|
-
getConversations(order?: PresentingOrder, pageSize?: number, cursor?: string | null): Promise<ConversationsPage>;
|
|
182
|
+
getConversations(order?: PresentingOrder, pageSize?: number, cursor?: string | null, includeCustomData?: boolean): Promise<ConversationsPage>;
|
|
181
183
|
/**
|
|
182
184
|
* Get a Conversation's Events
|
|
183
185
|
*
|