@closerplatform/spinner-openapi 0.12.521 → 0.12.522
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 +0 -126
- package/dist/api.js +0 -163
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -481,49 +481,6 @@ export interface AgentCtx {
|
|
|
481
481
|
*/
|
|
482
482
|
tags: Array<string>;
|
|
483
483
|
}
|
|
484
|
-
/**
|
|
485
|
-
*
|
|
486
|
-
* @export
|
|
487
|
-
* @interface AgentForm
|
|
488
|
-
*/
|
|
489
|
-
export interface AgentForm {
|
|
490
|
-
/**
|
|
491
|
-
*
|
|
492
|
-
* @type {string}
|
|
493
|
-
* @memberof AgentForm
|
|
494
|
-
*/
|
|
495
|
-
email: string;
|
|
496
|
-
/**
|
|
497
|
-
*
|
|
498
|
-
* @type {string}
|
|
499
|
-
* @memberof AgentForm
|
|
500
|
-
*/
|
|
501
|
-
password: string;
|
|
502
|
-
/**
|
|
503
|
-
*
|
|
504
|
-
* @type {string}
|
|
505
|
-
* @memberof AgentForm
|
|
506
|
-
*/
|
|
507
|
-
firstName: string;
|
|
508
|
-
/**
|
|
509
|
-
*
|
|
510
|
-
* @type {string}
|
|
511
|
-
* @memberof AgentForm
|
|
512
|
-
*/
|
|
513
|
-
lastName: string;
|
|
514
|
-
/**
|
|
515
|
-
*
|
|
516
|
-
* @type {Phone}
|
|
517
|
-
* @memberof AgentForm
|
|
518
|
-
*/
|
|
519
|
-
phone?: Phone;
|
|
520
|
-
/**
|
|
521
|
-
*
|
|
522
|
-
* @type {string}
|
|
523
|
-
* @memberof AgentForm
|
|
524
|
-
*/
|
|
525
|
-
avatarUrl?: string;
|
|
526
|
-
}
|
|
527
484
|
/**
|
|
528
485
|
*
|
|
529
486
|
* @export
|
|
@@ -5539,19 +5496,6 @@ export interface PreferencesFormNotifications {
|
|
|
5539
5496
|
*/
|
|
5540
5497
|
upcomingMeeting?: boolean;
|
|
5541
5498
|
}
|
|
5542
|
-
/**
|
|
5543
|
-
*
|
|
5544
|
-
* @export
|
|
5545
|
-
* @interface PrivilegesChange
|
|
5546
|
-
*/
|
|
5547
|
-
export interface PrivilegesChange {
|
|
5548
|
-
/**
|
|
5549
|
-
*
|
|
5550
|
-
* @type {boolean}
|
|
5551
|
-
* @memberof PrivilegesChange
|
|
5552
|
-
*/
|
|
5553
|
-
markAdmin: boolean;
|
|
5554
|
-
}
|
|
5555
5499
|
/**
|
|
5556
5500
|
*
|
|
5557
5501
|
* @export
|
|
@@ -14538,14 +14482,6 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
|
|
|
14538
14482
|
* @throws {RequiredError}
|
|
14539
14483
|
*/
|
|
14540
14484
|
continueConversationLink(body: LeadContinueConversation, options?: any): FetchArgs;
|
|
14541
|
-
/**
|
|
14542
|
-
*
|
|
14543
|
-
* @summary Create an agent (admin only).
|
|
14544
|
-
* @param {AgentForm} body
|
|
14545
|
-
* @param {*} [options] Override http request option.
|
|
14546
|
-
* @throws {RequiredError}
|
|
14547
|
-
*/
|
|
14548
|
-
createAgent(body: AgentForm, options?: any): FetchArgs;
|
|
14549
14485
|
/**
|
|
14550
14486
|
*
|
|
14551
14487
|
* @summary Create a Lekta user.
|
|
@@ -14782,15 +14718,6 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
|
|
|
14782
14718
|
* @throws {RequiredError}
|
|
14783
14719
|
*/
|
|
14784
14720
|
searchGuest(query: string, options?: any): FetchArgs;
|
|
14785
|
-
/**
|
|
14786
|
-
*
|
|
14787
|
-
* @summary Grant or revoke admin privileges
|
|
14788
|
-
* @param {PrivilegesChange} body
|
|
14789
|
-
* @param {string} id
|
|
14790
|
-
* @param {*} [options] Override http request option.
|
|
14791
|
-
* @throws {RequiredError}
|
|
14792
|
-
*/
|
|
14793
|
-
setAdminStatus(body: PrivilegesChange, id: string, options?: any): FetchArgs;
|
|
14794
14721
|
/**
|
|
14795
14722
|
*
|
|
14796
14723
|
* @summary Override org limit for a number of auto-assigned conversations.
|
|
@@ -14963,14 +14890,6 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
14963
14890
|
* @throws {RequiredError}
|
|
14964
14891
|
*/
|
|
14965
14892
|
continueConversationLink(body: LeadContinueConversation, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
14966
|
-
/**
|
|
14967
|
-
*
|
|
14968
|
-
* @summary Create an agent (admin only).
|
|
14969
|
-
* @param {AgentForm} body
|
|
14970
|
-
* @param {*} [options] Override http request option.
|
|
14971
|
-
* @throws {RequiredError}
|
|
14972
|
-
*/
|
|
14973
|
-
createAgent(body: AgentForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AgentCtx>;
|
|
14974
14893
|
/**
|
|
14975
14894
|
*
|
|
14976
14895
|
* @summary Create a Lekta user.
|
|
@@ -15207,15 +15126,6 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
15207
15126
|
* @throws {RequiredError}
|
|
15208
15127
|
*/
|
|
15209
15128
|
searchGuest(query: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<GuestProfile>>;
|
|
15210
|
-
/**
|
|
15211
|
-
*
|
|
15212
|
-
* @summary Grant or revoke admin privileges
|
|
15213
|
-
* @param {PrivilegesChange} body
|
|
15214
|
-
* @param {string} id
|
|
15215
|
-
* @param {*} [options] Override http request option.
|
|
15216
|
-
* @throws {RequiredError}
|
|
15217
|
-
*/
|
|
15218
|
-
setAdminStatus(body: PrivilegesChange, id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
15219
15129
|
/**
|
|
15220
15130
|
*
|
|
15221
15131
|
* @summary Override org limit for a number of auto-assigned conversations.
|
|
@@ -15388,14 +15298,6 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
15388
15298
|
* @throws {RequiredError}
|
|
15389
15299
|
*/
|
|
15390
15300
|
continueConversationLink(body: LeadContinueConversation, options?: any): Promise<Response>;
|
|
15391
|
-
/**
|
|
15392
|
-
*
|
|
15393
|
-
* @summary Create an agent (admin only).
|
|
15394
|
-
* @param {AgentForm} body
|
|
15395
|
-
* @param {*} [options] Override http request option.
|
|
15396
|
-
* @throws {RequiredError}
|
|
15397
|
-
*/
|
|
15398
|
-
createAgent(body: AgentForm, options?: any): Promise<AgentCtx>;
|
|
15399
15301
|
/**
|
|
15400
15302
|
*
|
|
15401
15303
|
* @summary Create a Lekta user.
|
|
@@ -15632,15 +15534,6 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
15632
15534
|
* @throws {RequiredError}
|
|
15633
15535
|
*/
|
|
15634
15536
|
searchGuest(query: string, options?: any): Promise<GuestProfile[]>;
|
|
15635
|
-
/**
|
|
15636
|
-
*
|
|
15637
|
-
* @summary Grant or revoke admin privileges
|
|
15638
|
-
* @param {PrivilegesChange} body
|
|
15639
|
-
* @param {string} id
|
|
15640
|
-
* @param {*} [options] Override http request option.
|
|
15641
|
-
* @throws {RequiredError}
|
|
15642
|
-
*/
|
|
15643
|
-
setAdminStatus(body: PrivilegesChange, id: string, options?: any): Promise<Response>;
|
|
15644
15537
|
/**
|
|
15645
15538
|
*
|
|
15646
15539
|
* @summary Override org limit for a number of auto-assigned conversations.
|
|
@@ -15820,15 +15713,6 @@ export declare class UsersApi extends BaseAPI {
|
|
|
15820
15713
|
* @memberof UsersApi
|
|
15821
15714
|
*/
|
|
15822
15715
|
continueConversationLink(body: LeadContinueConversation, options?: any): Promise<Response>;
|
|
15823
|
-
/**
|
|
15824
|
-
*
|
|
15825
|
-
* @summary Create an agent (admin only).
|
|
15826
|
-
* @param {AgentForm} body
|
|
15827
|
-
* @param {*} [options] Override http request option.
|
|
15828
|
-
* @throws {RequiredError}
|
|
15829
|
-
* @memberof UsersApi
|
|
15830
|
-
*/
|
|
15831
|
-
createAgent(body: AgentForm, options?: any): Promise<AgentCtx>;
|
|
15832
15716
|
/**
|
|
15833
15717
|
*
|
|
15834
15718
|
* @summary Create a Lekta user.
|
|
@@ -16095,16 +15979,6 @@ export declare class UsersApi extends BaseAPI {
|
|
|
16095
15979
|
* @memberof UsersApi
|
|
16096
15980
|
*/
|
|
16097
15981
|
searchGuest(query: string, options?: any): Promise<GuestProfile[]>;
|
|
16098
|
-
/**
|
|
16099
|
-
*
|
|
16100
|
-
* @summary Grant or revoke admin privileges
|
|
16101
|
-
* @param {PrivilegesChange} body
|
|
16102
|
-
* @param {string} id
|
|
16103
|
-
* @param {*} [options] Override http request option.
|
|
16104
|
-
* @throws {RequiredError}
|
|
16105
|
-
* @memberof UsersApi
|
|
16106
|
-
*/
|
|
16107
|
-
setAdminStatus(body: PrivilegesChange, id: string, options?: any): Promise<Response>;
|
|
16108
15982
|
/**
|
|
16109
15983
|
*
|
|
16110
15984
|
* @summary Override org limit for a number of auto-assigned conversations.
|
package/dist/api.js
CHANGED
|
@@ -16402,42 +16402,6 @@ const UsersApiFetchParamCreator = function (configuration) {
|
|
|
16402
16402
|
options: localVarRequestOptions,
|
|
16403
16403
|
};
|
|
16404
16404
|
},
|
|
16405
|
-
/**
|
|
16406
|
-
*
|
|
16407
|
-
* @summary Create an agent (admin only).
|
|
16408
|
-
* @param {AgentForm} body
|
|
16409
|
-
* @param {*} [options] Override http request option.
|
|
16410
|
-
* @throws {RequiredError}
|
|
16411
|
-
*/
|
|
16412
|
-
createAgent(body, options = {}) {
|
|
16413
|
-
// verify required parameter 'body' is not null or undefined
|
|
16414
|
-
if (body === null || body === undefined) {
|
|
16415
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling createAgent.');
|
|
16416
|
-
}
|
|
16417
|
-
const localVarPath = `/users/agent`;
|
|
16418
|
-
const localVarUrlObj = url.parse(localVarPath, true);
|
|
16419
|
-
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
16420
|
-
const localVarHeaderParameter = {};
|
|
16421
|
-
const localVarQueryParameter = {};
|
|
16422
|
-
// authentication apiKey required
|
|
16423
|
-
if (configuration && configuration.apiKey) {
|
|
16424
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
16425
|
-
? configuration.apiKey("X-Api-Key")
|
|
16426
|
-
: configuration.apiKey;
|
|
16427
|
-
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
16428
|
-
}
|
|
16429
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16430
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
16431
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
16432
|
-
delete localVarUrlObj.search;
|
|
16433
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
16434
|
-
const needsSerialization = ("AgentForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
16435
|
-
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
16436
|
-
return {
|
|
16437
|
-
url: url.format(localVarUrlObj),
|
|
16438
|
-
options: localVarRequestOptions,
|
|
16439
|
-
};
|
|
16440
|
-
},
|
|
16441
16405
|
/**
|
|
16442
16406
|
*
|
|
16443
16407
|
* @summary Create a Lekta user.
|
|
@@ -17499,48 +17463,6 @@ const UsersApiFetchParamCreator = function (configuration) {
|
|
|
17499
17463
|
options: localVarRequestOptions,
|
|
17500
17464
|
};
|
|
17501
17465
|
},
|
|
17502
|
-
/**
|
|
17503
|
-
*
|
|
17504
|
-
* @summary Grant or revoke admin privileges
|
|
17505
|
-
* @param {PrivilegesChange} body
|
|
17506
|
-
* @param {string} id
|
|
17507
|
-
* @param {*} [options] Override http request option.
|
|
17508
|
-
* @throws {RequiredError}
|
|
17509
|
-
*/
|
|
17510
|
-
setAdminStatus(body, id, options = {}) {
|
|
17511
|
-
// verify required parameter 'body' is not null or undefined
|
|
17512
|
-
if (body === null || body === undefined) {
|
|
17513
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling setAdminStatus.');
|
|
17514
|
-
}
|
|
17515
|
-
// verify required parameter 'id' is not null or undefined
|
|
17516
|
-
if (id === null || id === undefined) {
|
|
17517
|
-
throw new RequiredError('id', 'Required parameter id was null or undefined when calling setAdminStatus.');
|
|
17518
|
-
}
|
|
17519
|
-
const localVarPath = `/users/agents/{id}/role`
|
|
17520
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
17521
|
-
const localVarUrlObj = url.parse(localVarPath, true);
|
|
17522
|
-
const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
17523
|
-
const localVarHeaderParameter = {};
|
|
17524
|
-
const localVarQueryParameter = {};
|
|
17525
|
-
// authentication apiKey required
|
|
17526
|
-
if (configuration && configuration.apiKey) {
|
|
17527
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
17528
|
-
? configuration.apiKey("X-Api-Key")
|
|
17529
|
-
: configuration.apiKey;
|
|
17530
|
-
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
17531
|
-
}
|
|
17532
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17533
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
17534
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
17535
|
-
delete localVarUrlObj.search;
|
|
17536
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
17537
|
-
const needsSerialization = ("PrivilegesChange" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
17538
|
-
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
17539
|
-
return {
|
|
17540
|
-
url: url.format(localVarUrlObj),
|
|
17541
|
-
options: localVarRequestOptions,
|
|
17542
|
-
};
|
|
17543
|
-
},
|
|
17544
17466
|
/**
|
|
17545
17467
|
*
|
|
17546
17468
|
* @summary Override org limit for a number of auto-assigned conversations.
|
|
@@ -18237,26 +18159,6 @@ const UsersApiFp = function (configuration) {
|
|
|
18237
18159
|
});
|
|
18238
18160
|
};
|
|
18239
18161
|
},
|
|
18240
|
-
/**
|
|
18241
|
-
*
|
|
18242
|
-
* @summary Create an agent (admin only).
|
|
18243
|
-
* @param {AgentForm} body
|
|
18244
|
-
* @param {*} [options] Override http request option.
|
|
18245
|
-
* @throws {RequiredError}
|
|
18246
|
-
*/
|
|
18247
|
-
createAgent(body, options) {
|
|
18248
|
-
const localVarFetchArgs = (0, exports.UsersApiFetchParamCreator)(configuration).createAgent(body, options);
|
|
18249
|
-
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
18250
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
18251
|
-
if (response.status >= 200 && response.status < 300) {
|
|
18252
|
-
return response.json();
|
|
18253
|
-
}
|
|
18254
|
-
else {
|
|
18255
|
-
throw response;
|
|
18256
|
-
}
|
|
18257
|
-
});
|
|
18258
|
-
};
|
|
18259
|
-
},
|
|
18260
18162
|
/**
|
|
18261
18163
|
*
|
|
18262
18164
|
* @summary Create a Lekta user.
|
|
@@ -18853,27 +18755,6 @@ const UsersApiFp = function (configuration) {
|
|
|
18853
18755
|
});
|
|
18854
18756
|
};
|
|
18855
18757
|
},
|
|
18856
|
-
/**
|
|
18857
|
-
*
|
|
18858
|
-
* @summary Grant or revoke admin privileges
|
|
18859
|
-
* @param {PrivilegesChange} body
|
|
18860
|
-
* @param {string} id
|
|
18861
|
-
* @param {*} [options] Override http request option.
|
|
18862
|
-
* @throws {RequiredError}
|
|
18863
|
-
*/
|
|
18864
|
-
setAdminStatus(body, id, options) {
|
|
18865
|
-
const localVarFetchArgs = (0, exports.UsersApiFetchParamCreator)(configuration).setAdminStatus(body, id, options);
|
|
18866
|
-
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
18867
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
18868
|
-
if (response.status >= 200 && response.status < 300) {
|
|
18869
|
-
return response;
|
|
18870
|
-
}
|
|
18871
|
-
else {
|
|
18872
|
-
throw response;
|
|
18873
|
-
}
|
|
18874
|
-
});
|
|
18875
|
-
};
|
|
18876
|
-
},
|
|
18877
18758
|
/**
|
|
18878
18759
|
*
|
|
18879
18760
|
* @summary Override org limit for a number of auto-assigned conversations.
|
|
@@ -19239,16 +19120,6 @@ const UsersApiFactory = function (configuration, fetch, basePath) {
|
|
|
19239
19120
|
continueConversationLink(body, options) {
|
|
19240
19121
|
return (0, exports.UsersApiFp)(configuration).continueConversationLink(body, options)(fetch, basePath);
|
|
19241
19122
|
},
|
|
19242
|
-
/**
|
|
19243
|
-
*
|
|
19244
|
-
* @summary Create an agent (admin only).
|
|
19245
|
-
* @param {AgentForm} body
|
|
19246
|
-
* @param {*} [options] Override http request option.
|
|
19247
|
-
* @throws {RequiredError}
|
|
19248
|
-
*/
|
|
19249
|
-
createAgent(body, options) {
|
|
19250
|
-
return (0, exports.UsersApiFp)(configuration).createAgent(body, options)(fetch, basePath);
|
|
19251
|
-
},
|
|
19252
19123
|
/**
|
|
19253
19124
|
*
|
|
19254
19125
|
* @summary Create a Lekta user.
|
|
@@ -19545,17 +19416,6 @@ const UsersApiFactory = function (configuration, fetch, basePath) {
|
|
|
19545
19416
|
searchGuest(query, options) {
|
|
19546
19417
|
return (0, exports.UsersApiFp)(configuration).searchGuest(query, options)(fetch, basePath);
|
|
19547
19418
|
},
|
|
19548
|
-
/**
|
|
19549
|
-
*
|
|
19550
|
-
* @summary Grant or revoke admin privileges
|
|
19551
|
-
* @param {PrivilegesChange} body
|
|
19552
|
-
* @param {string} id
|
|
19553
|
-
* @param {*} [options] Override http request option.
|
|
19554
|
-
* @throws {RequiredError}
|
|
19555
|
-
*/
|
|
19556
|
-
setAdminStatus(body, id, options) {
|
|
19557
|
-
return (0, exports.UsersApiFp)(configuration).setAdminStatus(body, id, options)(fetch, basePath);
|
|
19558
|
-
},
|
|
19559
19419
|
/**
|
|
19560
19420
|
*
|
|
19561
19421
|
* @summary Override org limit for a number of auto-assigned conversations.
|
|
@@ -19777,17 +19637,6 @@ class UsersApi extends BaseAPI {
|
|
|
19777
19637
|
continueConversationLink(body, options) {
|
|
19778
19638
|
return (0, exports.UsersApiFp)(this.configuration).continueConversationLink(body, options)(this.fetch, this.basePath);
|
|
19779
19639
|
}
|
|
19780
|
-
/**
|
|
19781
|
-
*
|
|
19782
|
-
* @summary Create an agent (admin only).
|
|
19783
|
-
* @param {AgentForm} body
|
|
19784
|
-
* @param {*} [options] Override http request option.
|
|
19785
|
-
* @throws {RequiredError}
|
|
19786
|
-
* @memberof UsersApi
|
|
19787
|
-
*/
|
|
19788
|
-
createAgent(body, options) {
|
|
19789
|
-
return (0, exports.UsersApiFp)(this.configuration).createAgent(body, options)(this.fetch, this.basePath);
|
|
19790
|
-
}
|
|
19791
19640
|
/**
|
|
19792
19641
|
*
|
|
19793
19642
|
* @summary Create a Lekta user.
|
|
@@ -20114,18 +19963,6 @@ class UsersApi extends BaseAPI {
|
|
|
20114
19963
|
searchGuest(query, options) {
|
|
20115
19964
|
return (0, exports.UsersApiFp)(this.configuration).searchGuest(query, options)(this.fetch, this.basePath);
|
|
20116
19965
|
}
|
|
20117
|
-
/**
|
|
20118
|
-
*
|
|
20119
|
-
* @summary Grant or revoke admin privileges
|
|
20120
|
-
* @param {PrivilegesChange} body
|
|
20121
|
-
* @param {string} id
|
|
20122
|
-
* @param {*} [options] Override http request option.
|
|
20123
|
-
* @throws {RequiredError}
|
|
20124
|
-
* @memberof UsersApi
|
|
20125
|
-
*/
|
|
20126
|
-
setAdminStatus(body, id, options) {
|
|
20127
|
-
return (0, exports.UsersApiFp)(this.configuration).setAdminStatus(body, id, options)(this.fetch, this.basePath);
|
|
20128
|
-
}
|
|
20129
19966
|
/**
|
|
20130
19967
|
*
|
|
20131
19968
|
* @summary Override org limit for a number of auto-assigned conversations.
|