@closerplatform/spinner-openapi 0.12.59 → 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 +163 -0
- package/dist/api.js +164 -0
- 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",
|
|
@@ -14566,6 +14659,23 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
|
|
|
14566
14659
|
* @throws {RequiredError}
|
|
14567
14660
|
*/
|
|
14568
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;
|
|
14569
14679
|
/**
|
|
14570
14680
|
*
|
|
14571
14681
|
* @summary Partially update the preferences
|
|
@@ -14966,6 +15076,23 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
14966
15076
|
* @throws {RequiredError}
|
|
14967
15077
|
*/
|
|
14968
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>>;
|
|
14969
15096
|
/**
|
|
14970
15097
|
*
|
|
14971
15098
|
* @summary Partially update the preferences
|
|
@@ -15366,6 +15493,23 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
15366
15493
|
* @throws {RequiredError}
|
|
15367
15494
|
*/
|
|
15368
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[]>;
|
|
15369
15513
|
/**
|
|
15370
15514
|
*
|
|
15371
15515
|
* @summary Partially update the preferences
|
|
@@ -15794,6 +15938,25 @@ export declare class UsersApi extends BaseAPI {
|
|
|
15794
15938
|
* @memberof UsersApi
|
|
15795
15939
|
*/
|
|
15796
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[]>;
|
|
15797
15960
|
/**
|
|
15798
15961
|
*
|
|
15799
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";
|
|
@@ -17633,6 +17634,84 @@ exports.UsersApiFetchParamCreator = function (configuration) {
|
|
|
17633
17634
|
options: localVarRequestOptions,
|
|
17634
17635
|
};
|
|
17635
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
|
+
},
|
|
17636
17715
|
/**
|
|
17637
17716
|
*
|
|
17638
17717
|
* @summary Partially update the preferences
|
|
@@ -19045,6 +19124,47 @@ exports.UsersApiFp = function (configuration) {
|
|
|
19045
19124
|
});
|
|
19046
19125
|
};
|
|
19047
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
|
+
},
|
|
19048
19168
|
/**
|
|
19049
19169
|
*
|
|
19050
19170
|
* @summary Partially update the preferences
|
|
@@ -19775,6 +19895,27 @@ exports.UsersApiFactory = function (configuration, fetch, basePath) {
|
|
|
19775
19895
|
joinMeeting(body, options) {
|
|
19776
19896
|
return exports.UsersApiFp(configuration).joinMeeting(body, options)(fetch, basePath);
|
|
19777
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
|
+
},
|
|
19778
19919
|
/**
|
|
19779
19920
|
*
|
|
19780
19921
|
* @summary Partially update the preferences
|
|
@@ -20302,6 +20443,29 @@ class UsersApi extends BaseAPI {
|
|
|
20302
20443
|
joinMeeting(body, options) {
|
|
20303
20444
|
return exports.UsersApiFp(this.configuration).joinMeeting(body, options)(this.fetch, this.basePath);
|
|
20304
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
|
+
}
|
|
20305
20469
|
/**
|
|
20306
20470
|
*
|
|
20307
20471
|
* @summary Partially update the preferences
|