@vonage/client-sdk 1.3.0-beta.0 → 1.3.0-beta.1
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/api_docs/ts/assets/navigation.js +1 -1
- package/api_docs/ts/assets/search.js +1 -1
- package/api_docs/ts/classes/VonageClient.html +3 -12
- package/api_docs/ts/interfaces/UpdateConversationParameters.html +7 -0
- package/api_docs/ts/modules.html +1 -0
- package/dist/client/VonageClient.d.ts +1 -15
- package/dist/client/index.cjs +10724 -10484
- package/dist/client/index.mjs +10721 -10485
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +39 -26
- package/dist/utils/ErrorModels.d.ts +1 -0
- package/dist/utils/Option.d.ts +6 -0
- package/dist/utils/RequestParameterModels.d.ts +9 -8
- package/dist/utils/index.d.ts +1 -0
- package/dist/vonageClientSDK.js +10764 -10505
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +10761 -10506
- package/package.json +1 -1
|
@@ -47,7 +47,6 @@ export declare namespace vonage {
|
|
|
47
47
|
sendEphemeralEvent(cid: string, customData: string): Promise<string>;
|
|
48
48
|
sendCustomEvent(cid: string, eventType: string, customData: string): Promise<string>;
|
|
49
49
|
deleteEvent(id: number, conversationId: string): Promise<any>;
|
|
50
|
-
resetConversation(conversationId: string, parameters: Nullable<vonage.ResetConversationParametersJS>): Promise<any>;
|
|
51
50
|
updateConversation(conversationId: string, parameters: vonage.UpdateConversationParametersJS): Promise<any>;
|
|
52
51
|
setConfig(config: vonage.ConfigObjectJS): void;
|
|
53
52
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
@@ -591,6 +590,7 @@ export declare namespace vonage {
|
|
|
591
590
|
get INVALID_CURSOR(): string;
|
|
592
591
|
get VALIDATION_FAIL(): string;
|
|
593
592
|
get CONVERSATION_MAX_NUMBER_OF_MEMBERS(): string;
|
|
593
|
+
get CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED(): string;
|
|
594
594
|
};
|
|
595
595
|
const SessionErrorCodesJS: {
|
|
596
596
|
get EMPTY_TOKEN(): string;
|
|
@@ -678,7 +678,6 @@ export declare namespace vonage {
|
|
|
678
678
|
sendEphemeralEvent(cid: string, customData: string): Promise<string>;
|
|
679
679
|
sendCustomEvent(cid: string, eventType: string, customData: string): Promise<string>;
|
|
680
680
|
deleteEvent(id: number, conversationId: string): Promise<any>;
|
|
681
|
-
resetConversation(conversationId: string, parameters: Nullable<vonage.ResetConversationParametersJS>): Promise<any>;
|
|
682
681
|
updateConversation(conversationId: string, parameters: vonage.UpdateConversationParametersJS): Promise<any>;
|
|
683
682
|
setConfig(config: vonage.ConfigObjectJS): void;
|
|
684
683
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
@@ -1102,7 +1101,7 @@ export declare namespace vonage {
|
|
|
1102
1101
|
}
|
|
1103
1102
|
}
|
|
1104
1103
|
export declare namespace vonage {
|
|
1105
|
-
interface
|
|
1104
|
+
interface CreateConversationParametersJS {
|
|
1106
1105
|
readonly name?: Nullable<string>;
|
|
1107
1106
|
readonly displayName?: Nullable<string>;
|
|
1108
1107
|
readonly imageUrl?: Nullable<string>;
|
|
@@ -1110,29 +1109,13 @@ export declare namespace vonage {
|
|
|
1110
1109
|
readonly customSortKey?: Nullable<string>;
|
|
1111
1110
|
readonly customData?: Nullable<string>;
|
|
1112
1111
|
}
|
|
1113
|
-
interface
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
}
|
|
1121
|
-
interface ResetConversationParametersJS extends vonage.ConversationParametersJS {
|
|
1122
|
-
readonly name?: Nullable<string>;
|
|
1123
|
-
readonly displayName?: Nullable<string>;
|
|
1124
|
-
readonly imageUrl?: Nullable<string>;
|
|
1125
|
-
readonly ttl?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1126
|
-
readonly customSortKey?: Nullable<string>;
|
|
1127
|
-
readonly customData?: Nullable<string>;
|
|
1128
|
-
}
|
|
1129
|
-
interface UpdateConversationParametersJS extends vonage.ConversationParametersJS {
|
|
1130
|
-
readonly name?: Nullable<string>;
|
|
1131
|
-
readonly displayName?: Nullable<string>;
|
|
1132
|
-
readonly imageUrl?: Nullable<string>;
|
|
1133
|
-
readonly ttl?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1134
|
-
readonly customSortKey?: Nullable<string>;
|
|
1135
|
-
readonly customData?: Nullable<string>;
|
|
1112
|
+
interface UpdateConversationParametersJS {
|
|
1113
|
+
name: vonage.utils.OptionJS<string>;
|
|
1114
|
+
displayName: vonage.utils.OptionJS<Nullable<string>>;
|
|
1115
|
+
imageUrl: vonage.utils.OptionJS<Nullable<string>>;
|
|
1116
|
+
ttl: vonage.utils.OptionJS<any/* kotlin.Number */>;
|
|
1117
|
+
customSortKey: vonage.utils.OptionJS<Nullable<string>>;
|
|
1118
|
+
customData: vonage.utils.OptionJS<Nullable<string>>;
|
|
1136
1119
|
}
|
|
1137
1120
|
interface GetConversationsParametersJS {
|
|
1138
1121
|
readonly order?: Nullable<vonage.PresentingOrderJS>;
|
|
@@ -1155,4 +1138,34 @@ export declare namespace vonage {
|
|
|
1155
1138
|
readonly cursor?: Nullable<string>;
|
|
1156
1139
|
}
|
|
1157
1140
|
}
|
|
1141
|
+
export declare namespace vonage.utils {
|
|
1142
|
+
abstract class OptionJS<T> {
|
|
1143
|
+
protected constructor();
|
|
1144
|
+
orNull(): Nullable<T>;
|
|
1145
|
+
contains<R>(value: R): boolean;
|
|
1146
|
+
map<R>(f: (p0: T) => R): vonage.utils.OptionJS<R>;
|
|
1147
|
+
mapOr<R>(_default: R, f: (p0: T) => R): R;
|
|
1148
|
+
mapOrElse<R>(_default: () => R, f: (p0: T) => R): R;
|
|
1149
|
+
mapNotNull<R>(f: (p0: T) => R): vonage.utils.OptionJS<Nullable<R>>;
|
|
1150
|
+
unwrapOr(_default: T): T;
|
|
1151
|
+
equals(other: Nullable<any>): boolean;
|
|
1152
|
+
hashCode(): number;
|
|
1153
|
+
static get Companion(): {
|
|
1154
|
+
of<T>(value: Nullable<T>): vonage.utils.OptionJS<T>;
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
1157
|
+
namespace OptionJS {
|
|
1158
|
+
class None<T> extends vonage.utils.OptionJS<T> {
|
|
1159
|
+
constructor();
|
|
1160
|
+
}
|
|
1161
|
+
class Some<T> extends vonage.utils.OptionJS<T> {
|
|
1162
|
+
constructor(value: T);
|
|
1163
|
+
get value(): T;
|
|
1164
|
+
copy(value?: T): vonage.utils.OptionJS.Some<T>;
|
|
1165
|
+
toString(): string;
|
|
1166
|
+
hashCode(): number;
|
|
1167
|
+
equals(other: Nullable<any>): boolean;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1158
1171
|
export as namespace clientsdk_clientcore_js;
|
|
@@ -13,6 +13,7 @@ export declare const CSErrorCodes: {
|
|
|
13
13
|
readonly INVALID_CURSOR: string;
|
|
14
14
|
readonly VALIDATION_FAIL: string;
|
|
15
15
|
readonly CONVERSATION_MAX_NUMBER_OF_MEMBERS: string;
|
|
16
|
+
readonly CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED: string;
|
|
16
17
|
};
|
|
17
18
|
export declare const SessionErrorCodes: {
|
|
18
19
|
readonly EMPTY_TOKEN: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import vonage from './vonage';
|
|
2
|
+
export type Option<T> = vonage.utils.OptionJS<T>;
|
|
3
|
+
export declare const Option: typeof vonage.utils.OptionJS;
|
|
4
|
+
export declare const mapOption: <T>(value?: T | undefined) => Option<T | null>;
|
|
5
|
+
export declare const some: <T>(value: T) => Option<T>;
|
|
6
|
+
export declare const none: <T>() => Option<T>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import vonage from './vonage';
|
|
2
2
|
import { CustomData } from './JsonUtils';
|
|
3
3
|
import { Nullable } from '../kotlin/clientsdk-clientcore_js';
|
|
4
|
+
import { Option } from './Option';
|
|
4
5
|
export type CreateConversationParameters = Omit<vonage.CreateConversationParametersJS, 'ttl' | 'customData'> & {
|
|
5
6
|
ttl?: Nullable<number>;
|
|
6
7
|
customData?: Nullable<CustomData>;
|
|
@@ -15,11 +16,11 @@ export type GetConversationEventsParameters = Omit<vonage.GetConversationEventsP
|
|
|
15
16
|
export type GetConversationMembersParameters = Omit<vonage.GetConversationMembersParametersJS, 'pageSize'> & {
|
|
16
17
|
pageSize?: Nullable<number>;
|
|
17
18
|
};
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
19
|
+
export interface UpdateConversationParameters {
|
|
20
|
+
name?: string | Option<string>;
|
|
21
|
+
displayName?: string | null | Option<string | null | undefined>;
|
|
22
|
+
imageUrl?: string | null | Option<string | null | undefined>;
|
|
23
|
+
ttl?: number | Option<number>;
|
|
24
|
+
customSortKey?: string | null | Option<string | null | undefined>;
|
|
25
|
+
customData?: CustomData | null | Option<CustomData | null | undefined>;
|
|
26
|
+
}
|
package/dist/utils/index.d.ts
CHANGED