@closerplatform/spinner-openapi 0.12.57 → 0.12.60
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/api.d.ts +206 -4
- package/dist/api.js +247 -8
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -155,6 +155,55 @@ export interface AdviserApiKeyForm {
|
|
|
155
155
|
*/
|
|
156
156
|
apiKey: string;
|
|
157
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @export
|
|
161
|
+
* @interface AdviserBatchPatchForm
|
|
162
|
+
*/
|
|
163
|
+
export interface AdviserBatchPatchForm {
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type {string}
|
|
167
|
+
* @memberof AdviserBatchPatchForm
|
|
168
|
+
*/
|
|
169
|
+
id: string;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @type {string}
|
|
173
|
+
* @memberof AdviserBatchPatchForm
|
|
174
|
+
*/
|
|
175
|
+
roleId?: string;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @type {number}
|
|
179
|
+
* @memberof AdviserBatchPatchForm
|
|
180
|
+
*/
|
|
181
|
+
validFrom?: number;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @type {number}
|
|
185
|
+
* @memberof AdviserBatchPatchForm
|
|
186
|
+
*/
|
|
187
|
+
validTo?: number;
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @type {Array<string>}
|
|
191
|
+
* @memberof AdviserBatchPatchForm
|
|
192
|
+
*/
|
|
193
|
+
tagIds?: Array<string>;
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @type {Array<string>}
|
|
197
|
+
* @memberof AdviserBatchPatchForm
|
|
198
|
+
*/
|
|
199
|
+
tagGroupIds?: Array<string>;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type {number}
|
|
203
|
+
* @memberof AdviserBatchPatchForm
|
|
204
|
+
*/
|
|
205
|
+
autoAssignedLimit?: number;
|
|
206
|
+
}
|
|
158
207
|
/**
|
|
159
208
|
*
|
|
160
209
|
* @export
|
|
@@ -168,6 +217,49 @@ export interface AdviserCobrowseJwtResponse {
|
|
|
168
217
|
*/
|
|
169
218
|
jwt: string;
|
|
170
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @export
|
|
223
|
+
* @interface AdviserPatchForm
|
|
224
|
+
*/
|
|
225
|
+
export interface AdviserPatchForm {
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {string}
|
|
229
|
+
* @memberof AdviserPatchForm
|
|
230
|
+
*/
|
|
231
|
+
roleId?: string;
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @type {number}
|
|
235
|
+
* @memberof AdviserPatchForm
|
|
236
|
+
*/
|
|
237
|
+
validFrom?: number;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @type {number}
|
|
241
|
+
* @memberof AdviserPatchForm
|
|
242
|
+
*/
|
|
243
|
+
validTo?: number;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @type {Array<string>}
|
|
247
|
+
* @memberof AdviserPatchForm
|
|
248
|
+
*/
|
|
249
|
+
tagIds?: Array<string>;
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @type {Array<string>}
|
|
253
|
+
* @memberof AdviserPatchForm
|
|
254
|
+
*/
|
|
255
|
+
tagGroupIds?: Array<string>;
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @type {number}
|
|
259
|
+
* @memberof AdviserPatchForm
|
|
260
|
+
*/
|
|
261
|
+
autoAssignedLimit?: number;
|
|
262
|
+
}
|
|
171
263
|
/**
|
|
172
264
|
*
|
|
173
265
|
* @export
|
|
@@ -817,6 +909,7 @@ export declare enum AppPermission {
|
|
|
817
909
|
SettingsAdvisersConfiguration = "settings_advisers_configuration",
|
|
818
910
|
SettingsAgentGroupsConfiguration = "settings_agent_groups_configuration",
|
|
819
911
|
SettingsAdvisersAssignments = "settings_advisers_assignments",
|
|
912
|
+
SettingsAdvisersAutoAssignedLimit = "settings_advisers_auto_assigned_limit",
|
|
820
913
|
SettingsAdvisersAvatar = "settings_advisers_avatar",
|
|
821
914
|
SettingsActionForms = "settings_action_forms",
|
|
822
915
|
SettingsStatuses = "settings_statuses",
|
|
@@ -4725,6 +4818,12 @@ export interface OrgConfig {
|
|
|
4725
4818
|
* @memberof OrgConfig
|
|
4726
4819
|
*/
|
|
4727
4820
|
resetRoomViewOnClose?: boolean;
|
|
4821
|
+
/**
|
|
4822
|
+
*
|
|
4823
|
+
* @type {boolean}
|
|
4824
|
+
* @memberof OrgConfig
|
|
4825
|
+
*/
|
|
4826
|
+
autoReassignOnWebsocketUnavailable?: boolean;
|
|
4728
4827
|
}
|
|
4729
4828
|
/**
|
|
4730
4829
|
*
|
|
@@ -8480,7 +8579,7 @@ export declare const CustomersApiFetchParamCreator: (configuration?: Configurati
|
|
|
8480
8579
|
* @param {*} [options] Override http request option.
|
|
8481
8580
|
* @throws {RequiredError}
|
|
8482
8581
|
*/
|
|
8483
|
-
|
|
8582
|
+
deleteCustomerDeprecated(customerId: string, options?: any): FetchArgs;
|
|
8484
8583
|
/**
|
|
8485
8584
|
*
|
|
8486
8585
|
* @summary Get list of customer addresses
|
|
@@ -8619,7 +8718,7 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
8619
8718
|
* @param {*} [options] Override http request option.
|
|
8620
8719
|
* @throws {RequiredError}
|
|
8621
8720
|
*/
|
|
8622
|
-
|
|
8721
|
+
deleteCustomerDeprecated(customerId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
8623
8722
|
/**
|
|
8624
8723
|
*
|
|
8625
8724
|
* @summary Get list of customer addresses
|
|
@@ -8758,7 +8857,7 @@ export declare const CustomersApiFactory: (configuration?: Configuration, fetch?
|
|
|
8758
8857
|
* @param {*} [options] Override http request option.
|
|
8759
8858
|
* @throws {RequiredError}
|
|
8760
8859
|
*/
|
|
8761
|
-
|
|
8860
|
+
deleteCustomerDeprecated(customerId: string, options?: any): Promise<Response>;
|
|
8762
8861
|
/**
|
|
8763
8862
|
*
|
|
8764
8863
|
* @summary Get list of customer addresses
|
|
@@ -8907,7 +9006,7 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
8907
9006
|
* @throws {RequiredError}
|
|
8908
9007
|
* @memberof CustomersApi
|
|
8909
9008
|
*/
|
|
8910
|
-
|
|
9009
|
+
deleteCustomerDeprecated(customerId: string, options?: any): Promise<Response>;
|
|
8911
9010
|
/**
|
|
8912
9011
|
*
|
|
8913
9012
|
* @summary Get list of customer addresses
|
|
@@ -14436,6 +14535,14 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
|
|
|
14436
14535
|
* @throws {RequiredError}
|
|
14437
14536
|
*/
|
|
14438
14537
|
deleteAgentAvatar(options?: any): FetchArgs;
|
|
14538
|
+
/**
|
|
14539
|
+
*
|
|
14540
|
+
* @summary Anonymize customer profile
|
|
14541
|
+
* @param {string} customerId
|
|
14542
|
+
* @param {*} [options] Override http request option.
|
|
14543
|
+
* @throws {RequiredError}
|
|
14544
|
+
*/
|
|
14545
|
+
deleteCustomer(customerId: string, options?: any): FetchArgs;
|
|
14439
14546
|
/**
|
|
14440
14547
|
*
|
|
14441
14548
|
* @summary Generate avatar upload URL.
|
|
@@ -14552,6 +14659,23 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
|
|
|
14552
14659
|
* @throws {RequiredError}
|
|
14553
14660
|
*/
|
|
14554
14661
|
joinMeeting(body: GuestMeetingToken, options?: any): FetchArgs;
|
|
14662
|
+
/**
|
|
14663
|
+
*
|
|
14664
|
+
* @summary update adviser
|
|
14665
|
+
* @param {AdviserPatchForm} body
|
|
14666
|
+
* @param {string} id
|
|
14667
|
+
* @param {*} [options] Override http request option.
|
|
14668
|
+
* @throws {RequiredError}
|
|
14669
|
+
*/
|
|
14670
|
+
patchAdviser(body: AdviserPatchForm, id: string, options?: any): FetchArgs;
|
|
14671
|
+
/**
|
|
14672
|
+
*
|
|
14673
|
+
* @summary Batch update advisers
|
|
14674
|
+
* @param {Array<AdviserBatchPatchForm>} body
|
|
14675
|
+
* @param {*} [options] Override http request option.
|
|
14676
|
+
* @throws {RequiredError}
|
|
14677
|
+
*/
|
|
14678
|
+
patchAdvisers(body: Array<AdviserBatchPatchForm>, options?: any): FetchArgs;
|
|
14555
14679
|
/**
|
|
14556
14680
|
*
|
|
14557
14681
|
* @summary Partially update the preferences
|
|
@@ -14828,6 +14952,14 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
14828
14952
|
* @throws {RequiredError}
|
|
14829
14953
|
*/
|
|
14830
14954
|
deleteAgentAvatar(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
14955
|
+
/**
|
|
14956
|
+
*
|
|
14957
|
+
* @summary Anonymize customer profile
|
|
14958
|
+
* @param {string} customerId
|
|
14959
|
+
* @param {*} [options] Override http request option.
|
|
14960
|
+
* @throws {RequiredError}
|
|
14961
|
+
*/
|
|
14962
|
+
deleteCustomer(customerId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
14831
14963
|
/**
|
|
14832
14964
|
*
|
|
14833
14965
|
* @summary Generate avatar upload URL.
|
|
@@ -14944,6 +15076,23 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
14944
15076
|
* @throws {RequiredError}
|
|
14945
15077
|
*/
|
|
14946
15078
|
joinMeeting(body: GuestMeetingToken, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<LeadCtx>;
|
|
15079
|
+
/**
|
|
15080
|
+
*
|
|
15081
|
+
* @summary update adviser
|
|
15082
|
+
* @param {AdviserPatchForm} body
|
|
15083
|
+
* @param {string} id
|
|
15084
|
+
* @param {*} [options] Override http request option.
|
|
15085
|
+
* @throws {RequiredError}
|
|
15086
|
+
*/
|
|
15087
|
+
patchAdviser(body: AdviserPatchForm, id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AgentProfile>;
|
|
15088
|
+
/**
|
|
15089
|
+
*
|
|
15090
|
+
* @summary Batch update advisers
|
|
15091
|
+
* @param {Array<AdviserBatchPatchForm>} body
|
|
15092
|
+
* @param {*} [options] Override http request option.
|
|
15093
|
+
* @throws {RequiredError}
|
|
15094
|
+
*/
|
|
15095
|
+
patchAdvisers(body: Array<AdviserBatchPatchForm>, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<AgentProfile>>;
|
|
14947
15096
|
/**
|
|
14948
15097
|
*
|
|
14949
15098
|
* @summary Partially update the preferences
|
|
@@ -15220,6 +15369,14 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
15220
15369
|
* @throws {RequiredError}
|
|
15221
15370
|
*/
|
|
15222
15371
|
deleteAgentAvatar(options?: any): Promise<Response>;
|
|
15372
|
+
/**
|
|
15373
|
+
*
|
|
15374
|
+
* @summary Anonymize customer profile
|
|
15375
|
+
* @param {string} customerId
|
|
15376
|
+
* @param {*} [options] Override http request option.
|
|
15377
|
+
* @throws {RequiredError}
|
|
15378
|
+
*/
|
|
15379
|
+
deleteCustomer(customerId: string, options?: any): Promise<Response>;
|
|
15223
15380
|
/**
|
|
15224
15381
|
*
|
|
15225
15382
|
* @summary Generate avatar upload URL.
|
|
@@ -15336,6 +15493,23 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
15336
15493
|
* @throws {RequiredError}
|
|
15337
15494
|
*/
|
|
15338
15495
|
joinMeeting(body: GuestMeetingToken, options?: any): Promise<LeadCtx>;
|
|
15496
|
+
/**
|
|
15497
|
+
*
|
|
15498
|
+
* @summary update adviser
|
|
15499
|
+
* @param {AdviserPatchForm} body
|
|
15500
|
+
* @param {string} id
|
|
15501
|
+
* @param {*} [options] Override http request option.
|
|
15502
|
+
* @throws {RequiredError}
|
|
15503
|
+
*/
|
|
15504
|
+
patchAdviser(body: AdviserPatchForm, id: string, options?: any): Promise<AgentProfile>;
|
|
15505
|
+
/**
|
|
15506
|
+
*
|
|
15507
|
+
* @summary Batch update advisers
|
|
15508
|
+
* @param {Array<AdviserBatchPatchForm>} body
|
|
15509
|
+
* @param {*} [options] Override http request option.
|
|
15510
|
+
* @throws {RequiredError}
|
|
15511
|
+
*/
|
|
15512
|
+
patchAdvisers(body: Array<AdviserBatchPatchForm>, options?: any): Promise<AgentProfile[]>;
|
|
15339
15513
|
/**
|
|
15340
15514
|
*
|
|
15341
15515
|
* @summary Partially update the preferences
|
|
@@ -15624,6 +15798,15 @@ export declare class UsersApi extends BaseAPI {
|
|
|
15624
15798
|
* @memberof UsersApi
|
|
15625
15799
|
*/
|
|
15626
15800
|
deleteAgentAvatar(options?: any): Promise<Response>;
|
|
15801
|
+
/**
|
|
15802
|
+
*
|
|
15803
|
+
* @summary Anonymize customer profile
|
|
15804
|
+
* @param {string} customerId
|
|
15805
|
+
* @param {*} [options] Override http request option.
|
|
15806
|
+
* @throws {RequiredError}
|
|
15807
|
+
* @memberof UsersApi
|
|
15808
|
+
*/
|
|
15809
|
+
deleteCustomer(customerId: string, options?: any): Promise<Response>;
|
|
15627
15810
|
/**
|
|
15628
15811
|
*
|
|
15629
15812
|
* @summary Generate avatar upload URL.
|
|
@@ -15755,6 +15938,25 @@ export declare class UsersApi extends BaseAPI {
|
|
|
15755
15938
|
* @memberof UsersApi
|
|
15756
15939
|
*/
|
|
15757
15940
|
joinMeeting(body: GuestMeetingToken, options?: any): Promise<LeadCtx>;
|
|
15941
|
+
/**
|
|
15942
|
+
*
|
|
15943
|
+
* @summary update adviser
|
|
15944
|
+
* @param {AdviserPatchForm} body
|
|
15945
|
+
* @param {string} id
|
|
15946
|
+
* @param {*} [options] Override http request option.
|
|
15947
|
+
* @throws {RequiredError}
|
|
15948
|
+
* @memberof UsersApi
|
|
15949
|
+
*/
|
|
15950
|
+
patchAdviser(body: AdviserPatchForm, id: string, options?: any): Promise<AgentProfile>;
|
|
15951
|
+
/**
|
|
15952
|
+
*
|
|
15953
|
+
* @summary Batch update advisers
|
|
15954
|
+
* @param {Array<AdviserBatchPatchForm>} body
|
|
15955
|
+
* @param {*} [options] Override http request option.
|
|
15956
|
+
* @throws {RequiredError}
|
|
15957
|
+
* @memberof UsersApi
|
|
15958
|
+
*/
|
|
15959
|
+
patchAdvisers(body: Array<AdviserBatchPatchForm>, options?: any): Promise<AgentProfile[]>;
|
|
15758
15960
|
/**
|
|
15759
15961
|
*
|
|
15760
15962
|
* @summary Partially update the preferences
|
package/dist/api.js
CHANGED
|
@@ -77,6 +77,7 @@ var AppPermission;
|
|
|
77
77
|
AppPermission["SettingsAdvisersConfiguration"] = "settings_advisers_configuration";
|
|
78
78
|
AppPermission["SettingsAgentGroupsConfiguration"] = "settings_agent_groups_configuration";
|
|
79
79
|
AppPermission["SettingsAdvisersAssignments"] = "settings_advisers_assignments";
|
|
80
|
+
AppPermission["SettingsAdvisersAutoAssignedLimit"] = "settings_advisers_auto_assigned_limit";
|
|
80
81
|
AppPermission["SettingsAdvisersAvatar"] = "settings_advisers_avatar";
|
|
81
82
|
AppPermission["SettingsActionForms"] = "settings_action_forms";
|
|
82
83
|
AppPermission["SettingsStatuses"] = "settings_statuses";
|
|
@@ -4035,10 +4036,10 @@ exports.CustomersApiFetchParamCreator = function (configuration) {
|
|
|
4035
4036
|
* @param {*} [options] Override http request option.
|
|
4036
4037
|
* @throws {RequiredError}
|
|
4037
4038
|
*/
|
|
4038
|
-
|
|
4039
|
+
deleteCustomerDeprecated(customerId, options = {}) {
|
|
4039
4040
|
// verify required parameter 'customerId' is not null or undefined
|
|
4040
4041
|
if (customerId === null || customerId === undefined) {
|
|
4041
|
-
throw new RequiredError('customerId', 'Required parameter customerId was null or undefined when calling
|
|
4042
|
+
throw new RequiredError('customerId', 'Required parameter customerId was null or undefined when calling deleteCustomerDeprecated.');
|
|
4042
4043
|
}
|
|
4043
4044
|
const localVarPath = `/customers/customer/{customerId}`
|
|
4044
4045
|
.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
|
|
@@ -4508,8 +4509,8 @@ exports.CustomersApiFp = function (configuration) {
|
|
|
4508
4509
|
* @param {*} [options] Override http request option.
|
|
4509
4510
|
* @throws {RequiredError}
|
|
4510
4511
|
*/
|
|
4511
|
-
|
|
4512
|
-
const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).
|
|
4512
|
+
deleteCustomerDeprecated(customerId, options) {
|
|
4513
|
+
const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).deleteCustomerDeprecated(customerId, options);
|
|
4513
4514
|
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
4514
4515
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
4515
4516
|
if (response.status >= 200 && response.status < 300) {
|
|
@@ -4783,8 +4784,8 @@ exports.CustomersApiFactory = function (configuration, fetch, basePath) {
|
|
|
4783
4784
|
* @param {*} [options] Override http request option.
|
|
4784
4785
|
* @throws {RequiredError}
|
|
4785
4786
|
*/
|
|
4786
|
-
|
|
4787
|
-
return exports.CustomersApiFp(configuration).
|
|
4787
|
+
deleteCustomerDeprecated(customerId, options) {
|
|
4788
|
+
return exports.CustomersApiFp(configuration).deleteCustomerDeprecated(customerId, options)(fetch, basePath);
|
|
4788
4789
|
},
|
|
4789
4790
|
/**
|
|
4790
4791
|
*
|
|
@@ -4967,8 +4968,8 @@ class CustomersApi extends BaseAPI {
|
|
|
4967
4968
|
* @throws {RequiredError}
|
|
4968
4969
|
* @memberof CustomersApi
|
|
4969
4970
|
*/
|
|
4970
|
-
|
|
4971
|
-
return exports.CustomersApiFp(this.configuration).
|
|
4971
|
+
deleteCustomerDeprecated(customerId, options) {
|
|
4972
|
+
return exports.CustomersApiFp(this.configuration).deleteCustomerDeprecated(customerId, options)(this.fetch, this.basePath);
|
|
4972
4973
|
}
|
|
4973
4974
|
/**
|
|
4974
4975
|
*
|
|
@@ -17069,6 +17070,40 @@ exports.UsersApiFetchParamCreator = function (configuration) {
|
|
|
17069
17070
|
options: localVarRequestOptions,
|
|
17070
17071
|
};
|
|
17071
17072
|
},
|
|
17073
|
+
/**
|
|
17074
|
+
*
|
|
17075
|
+
* @summary Anonymize customer profile
|
|
17076
|
+
* @param {string} customerId
|
|
17077
|
+
* @param {*} [options] Override http request option.
|
|
17078
|
+
* @throws {RequiredError}
|
|
17079
|
+
*/
|
|
17080
|
+
deleteCustomer(customerId, options = {}) {
|
|
17081
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
17082
|
+
if (customerId === null || customerId === undefined) {
|
|
17083
|
+
throw new RequiredError('customerId', 'Required parameter customerId was null or undefined when calling deleteCustomer.');
|
|
17084
|
+
}
|
|
17085
|
+
const localVarPath = `/users/guest/{customerId}`
|
|
17086
|
+
.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
|
|
17087
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
17088
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
|
|
17089
|
+
const localVarHeaderParameter = {};
|
|
17090
|
+
const localVarQueryParameter = {};
|
|
17091
|
+
// authentication apiKey required
|
|
17092
|
+
if (configuration && configuration.apiKey) {
|
|
17093
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
17094
|
+
? configuration.apiKey("X-Api-Key")
|
|
17095
|
+
: configuration.apiKey;
|
|
17096
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
17097
|
+
}
|
|
17098
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
17099
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
17100
|
+
delete localVarUrlObj.search;
|
|
17101
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
17102
|
+
return {
|
|
17103
|
+
url: url.format(localVarUrlObj),
|
|
17104
|
+
options: localVarRequestOptions,
|
|
17105
|
+
};
|
|
17106
|
+
},
|
|
17072
17107
|
/**
|
|
17073
17108
|
*
|
|
17074
17109
|
* @summary Generate avatar upload URL.
|
|
@@ -17599,6 +17634,84 @@ exports.UsersApiFetchParamCreator = function (configuration) {
|
|
|
17599
17634
|
options: localVarRequestOptions,
|
|
17600
17635
|
};
|
|
17601
17636
|
},
|
|
17637
|
+
/**
|
|
17638
|
+
*
|
|
17639
|
+
* @summary update adviser
|
|
17640
|
+
* @param {AdviserPatchForm} body
|
|
17641
|
+
* @param {string} id
|
|
17642
|
+
* @param {*} [options] Override http request option.
|
|
17643
|
+
* @throws {RequiredError}
|
|
17644
|
+
*/
|
|
17645
|
+
patchAdviser(body, id, options = {}) {
|
|
17646
|
+
// verify required parameter 'body' is not null or undefined
|
|
17647
|
+
if (body === null || body === undefined) {
|
|
17648
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchAdviser.');
|
|
17649
|
+
}
|
|
17650
|
+
// verify required parameter 'id' is not null or undefined
|
|
17651
|
+
if (id === null || id === undefined) {
|
|
17652
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling patchAdviser.');
|
|
17653
|
+
}
|
|
17654
|
+
const localVarPath = `/advisers/{id}`
|
|
17655
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
17656
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
17657
|
+
const localVarRequestOptions = Object.assign({ method: 'PATCH' }, options);
|
|
17658
|
+
const localVarHeaderParameter = {};
|
|
17659
|
+
const localVarQueryParameter = {};
|
|
17660
|
+
// authentication apiKey required
|
|
17661
|
+
if (configuration && configuration.apiKey) {
|
|
17662
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
17663
|
+
? configuration.apiKey("X-Api-Key")
|
|
17664
|
+
: configuration.apiKey;
|
|
17665
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
17666
|
+
}
|
|
17667
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17668
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
17669
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
17670
|
+
delete localVarUrlObj.search;
|
|
17671
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
17672
|
+
const needsSerialization = ("AdviserPatchForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
17673
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
17674
|
+
return {
|
|
17675
|
+
url: url.format(localVarUrlObj),
|
|
17676
|
+
options: localVarRequestOptions,
|
|
17677
|
+
};
|
|
17678
|
+
},
|
|
17679
|
+
/**
|
|
17680
|
+
*
|
|
17681
|
+
* @summary Batch update advisers
|
|
17682
|
+
* @param {Array<AdviserBatchPatchForm>} body
|
|
17683
|
+
* @param {*} [options] Override http request option.
|
|
17684
|
+
* @throws {RequiredError}
|
|
17685
|
+
*/
|
|
17686
|
+
patchAdvisers(body, options = {}) {
|
|
17687
|
+
// verify required parameter 'body' is not null or undefined
|
|
17688
|
+
if (body === null || body === undefined) {
|
|
17689
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchAdvisers.');
|
|
17690
|
+
}
|
|
17691
|
+
const localVarPath = `/advisers`;
|
|
17692
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
17693
|
+
const localVarRequestOptions = Object.assign({ method: 'PATCH' }, options);
|
|
17694
|
+
const localVarHeaderParameter = {};
|
|
17695
|
+
const localVarQueryParameter = {};
|
|
17696
|
+
// authentication apiKey required
|
|
17697
|
+
if (configuration && configuration.apiKey) {
|
|
17698
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
17699
|
+
? configuration.apiKey("X-Api-Key")
|
|
17700
|
+
: configuration.apiKey;
|
|
17701
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
17702
|
+
}
|
|
17703
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17704
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
17705
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
17706
|
+
delete localVarUrlObj.search;
|
|
17707
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
17708
|
+
const needsSerialization = ("Array<AdviserBatchPatchForm>" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
17709
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
17710
|
+
return {
|
|
17711
|
+
url: url.format(localVarUrlObj),
|
|
17712
|
+
options: localVarRequestOptions,
|
|
17713
|
+
};
|
|
17714
|
+
},
|
|
17602
17715
|
/**
|
|
17603
17716
|
*
|
|
17604
17717
|
* @summary Partially update the preferences
|
|
@@ -18695,6 +18808,26 @@ exports.UsersApiFp = function (configuration) {
|
|
|
18695
18808
|
});
|
|
18696
18809
|
};
|
|
18697
18810
|
},
|
|
18811
|
+
/**
|
|
18812
|
+
*
|
|
18813
|
+
* @summary Anonymize customer profile
|
|
18814
|
+
* @param {string} customerId
|
|
18815
|
+
* @param {*} [options] Override http request option.
|
|
18816
|
+
* @throws {RequiredError}
|
|
18817
|
+
*/
|
|
18818
|
+
deleteCustomer(customerId, options) {
|
|
18819
|
+
const localVarFetchArgs = exports.UsersApiFetchParamCreator(configuration).deleteCustomer(customerId, options);
|
|
18820
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
18821
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
18822
|
+
if (response.status >= 200 && response.status < 300) {
|
|
18823
|
+
return response;
|
|
18824
|
+
}
|
|
18825
|
+
else {
|
|
18826
|
+
throw response;
|
|
18827
|
+
}
|
|
18828
|
+
});
|
|
18829
|
+
};
|
|
18830
|
+
},
|
|
18698
18831
|
/**
|
|
18699
18832
|
*
|
|
18700
18833
|
* @summary Generate avatar upload URL.
|
|
@@ -18991,6 +19124,47 @@ exports.UsersApiFp = function (configuration) {
|
|
|
18991
19124
|
});
|
|
18992
19125
|
};
|
|
18993
19126
|
},
|
|
19127
|
+
/**
|
|
19128
|
+
*
|
|
19129
|
+
* @summary update adviser
|
|
19130
|
+
* @param {AdviserPatchForm} body
|
|
19131
|
+
* @param {string} id
|
|
19132
|
+
* @param {*} [options] Override http request option.
|
|
19133
|
+
* @throws {RequiredError}
|
|
19134
|
+
*/
|
|
19135
|
+
patchAdviser(body, id, options) {
|
|
19136
|
+
const localVarFetchArgs = exports.UsersApiFetchParamCreator(configuration).patchAdviser(body, id, options);
|
|
19137
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
19138
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
19139
|
+
if (response.status >= 200 && response.status < 300) {
|
|
19140
|
+
return response.json();
|
|
19141
|
+
}
|
|
19142
|
+
else {
|
|
19143
|
+
throw response;
|
|
19144
|
+
}
|
|
19145
|
+
});
|
|
19146
|
+
};
|
|
19147
|
+
},
|
|
19148
|
+
/**
|
|
19149
|
+
*
|
|
19150
|
+
* @summary Batch update advisers
|
|
19151
|
+
* @param {Array<AdviserBatchPatchForm>} body
|
|
19152
|
+
* @param {*} [options] Override http request option.
|
|
19153
|
+
* @throws {RequiredError}
|
|
19154
|
+
*/
|
|
19155
|
+
patchAdvisers(body, options) {
|
|
19156
|
+
const localVarFetchArgs = exports.UsersApiFetchParamCreator(configuration).patchAdvisers(body, options);
|
|
19157
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
19158
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
19159
|
+
if (response.status >= 200 && response.status < 300) {
|
|
19160
|
+
return response.json();
|
|
19161
|
+
}
|
|
19162
|
+
else {
|
|
19163
|
+
throw response;
|
|
19164
|
+
}
|
|
19165
|
+
});
|
|
19166
|
+
};
|
|
19167
|
+
},
|
|
18994
19168
|
/**
|
|
18995
19169
|
*
|
|
18996
19170
|
* @summary Partially update the preferences
|
|
@@ -19565,6 +19739,16 @@ exports.UsersApiFactory = function (configuration, fetch, basePath) {
|
|
|
19565
19739
|
deleteAgentAvatar(options) {
|
|
19566
19740
|
return exports.UsersApiFp(configuration).deleteAgentAvatar(options)(fetch, basePath);
|
|
19567
19741
|
},
|
|
19742
|
+
/**
|
|
19743
|
+
*
|
|
19744
|
+
* @summary Anonymize customer profile
|
|
19745
|
+
* @param {string} customerId
|
|
19746
|
+
* @param {*} [options] Override http request option.
|
|
19747
|
+
* @throws {RequiredError}
|
|
19748
|
+
*/
|
|
19749
|
+
deleteCustomer(customerId, options) {
|
|
19750
|
+
return exports.UsersApiFp(configuration).deleteCustomer(customerId, options)(fetch, basePath);
|
|
19751
|
+
},
|
|
19568
19752
|
/**
|
|
19569
19753
|
*
|
|
19570
19754
|
* @summary Generate avatar upload URL.
|
|
@@ -19711,6 +19895,27 @@ exports.UsersApiFactory = function (configuration, fetch, basePath) {
|
|
|
19711
19895
|
joinMeeting(body, options) {
|
|
19712
19896
|
return exports.UsersApiFp(configuration).joinMeeting(body, options)(fetch, basePath);
|
|
19713
19897
|
},
|
|
19898
|
+
/**
|
|
19899
|
+
*
|
|
19900
|
+
* @summary update adviser
|
|
19901
|
+
* @param {AdviserPatchForm} body
|
|
19902
|
+
* @param {string} id
|
|
19903
|
+
* @param {*} [options] Override http request option.
|
|
19904
|
+
* @throws {RequiredError}
|
|
19905
|
+
*/
|
|
19906
|
+
patchAdviser(body, id, options) {
|
|
19907
|
+
return exports.UsersApiFp(configuration).patchAdviser(body, id, options)(fetch, basePath);
|
|
19908
|
+
},
|
|
19909
|
+
/**
|
|
19910
|
+
*
|
|
19911
|
+
* @summary Batch update advisers
|
|
19912
|
+
* @param {Array<AdviserBatchPatchForm>} body
|
|
19913
|
+
* @param {*} [options] Override http request option.
|
|
19914
|
+
* @throws {RequiredError}
|
|
19915
|
+
*/
|
|
19916
|
+
patchAdvisers(body, options) {
|
|
19917
|
+
return exports.UsersApiFp(configuration).patchAdvisers(body, options)(fetch, basePath);
|
|
19918
|
+
},
|
|
19714
19919
|
/**
|
|
19715
19920
|
*
|
|
19716
19921
|
* @summary Partially update the preferences
|
|
@@ -20066,6 +20271,17 @@ class UsersApi extends BaseAPI {
|
|
|
20066
20271
|
deleteAgentAvatar(options) {
|
|
20067
20272
|
return exports.UsersApiFp(this.configuration).deleteAgentAvatar(options)(this.fetch, this.basePath);
|
|
20068
20273
|
}
|
|
20274
|
+
/**
|
|
20275
|
+
*
|
|
20276
|
+
* @summary Anonymize customer profile
|
|
20277
|
+
* @param {string} customerId
|
|
20278
|
+
* @param {*} [options] Override http request option.
|
|
20279
|
+
* @throws {RequiredError}
|
|
20280
|
+
* @memberof UsersApi
|
|
20281
|
+
*/
|
|
20282
|
+
deleteCustomer(customerId, options) {
|
|
20283
|
+
return exports.UsersApiFp(this.configuration).deleteCustomer(customerId, options)(this.fetch, this.basePath);
|
|
20284
|
+
}
|
|
20069
20285
|
/**
|
|
20070
20286
|
*
|
|
20071
20287
|
* @summary Generate avatar upload URL.
|
|
@@ -20227,6 +20443,29 @@ class UsersApi extends BaseAPI {
|
|
|
20227
20443
|
joinMeeting(body, options) {
|
|
20228
20444
|
return exports.UsersApiFp(this.configuration).joinMeeting(body, options)(this.fetch, this.basePath);
|
|
20229
20445
|
}
|
|
20446
|
+
/**
|
|
20447
|
+
*
|
|
20448
|
+
* @summary update adviser
|
|
20449
|
+
* @param {AdviserPatchForm} body
|
|
20450
|
+
* @param {string} id
|
|
20451
|
+
* @param {*} [options] Override http request option.
|
|
20452
|
+
* @throws {RequiredError}
|
|
20453
|
+
* @memberof UsersApi
|
|
20454
|
+
*/
|
|
20455
|
+
patchAdviser(body, id, options) {
|
|
20456
|
+
return exports.UsersApiFp(this.configuration).patchAdviser(body, id, options)(this.fetch, this.basePath);
|
|
20457
|
+
}
|
|
20458
|
+
/**
|
|
20459
|
+
*
|
|
20460
|
+
* @summary Batch update advisers
|
|
20461
|
+
* @param {Array<AdviserBatchPatchForm>} body
|
|
20462
|
+
* @param {*} [options] Override http request option.
|
|
20463
|
+
* @throws {RequiredError}
|
|
20464
|
+
* @memberof UsersApi
|
|
20465
|
+
*/
|
|
20466
|
+
patchAdvisers(body, options) {
|
|
20467
|
+
return exports.UsersApiFp(this.configuration).patchAdvisers(body, options)(this.fetch, this.basePath);
|
|
20468
|
+
}
|
|
20230
20469
|
/**
|
|
20231
20470
|
*
|
|
20232
20471
|
* @summary Partially update the preferences
|