@closerplatform/spinner-openapi 0.12.1082 → 0.12.1084
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 +12 -75
- package/dist/api.js +28 -103
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2451,19 +2451,6 @@ export interface FreeOrgAdminForm {
|
|
|
2451
2451
|
*/
|
|
2452
2452
|
ipAddress?: string;
|
|
2453
2453
|
}
|
|
2454
|
-
/**
|
|
2455
|
-
*
|
|
2456
|
-
* @export
|
|
2457
|
-
* @interface FreeSlotsInfo
|
|
2458
|
-
*/
|
|
2459
|
-
export interface FreeSlotsInfo {
|
|
2460
|
-
/**
|
|
2461
|
-
*
|
|
2462
|
-
* @type {number}
|
|
2463
|
-
* @memberof FreeSlotsInfo
|
|
2464
|
-
*/
|
|
2465
|
-
sum: number;
|
|
2466
|
-
}
|
|
2467
2454
|
/**
|
|
2468
2455
|
*
|
|
2469
2456
|
* @export
|
|
@@ -5997,19 +5984,6 @@ export interface SignUpGuest {
|
|
|
5997
5984
|
*/
|
|
5998
5985
|
locale?: Locale;
|
|
5999
5986
|
}
|
|
6000
|
-
/**
|
|
6001
|
-
*
|
|
6002
|
-
* @export
|
|
6003
|
-
* @interface SkillForm
|
|
6004
|
-
*/
|
|
6005
|
-
export interface SkillForm {
|
|
6006
|
-
/**
|
|
6007
|
-
*
|
|
6008
|
-
* @type {string}
|
|
6009
|
-
* @memberof SkillForm
|
|
6010
|
-
*/
|
|
6011
|
-
skill: string;
|
|
6012
|
-
}
|
|
6013
5987
|
/**
|
|
6014
5988
|
*
|
|
6015
5989
|
* @export
|
|
@@ -11722,15 +11696,6 @@ export declare const OrgsApiFetchParamCreator: (configuration?: Configuration) =
|
|
|
11722
11696
|
* @throws {RequiredError}
|
|
11723
11697
|
*/
|
|
11724
11698
|
getCompanyBillingData(options?: any): FetchArgs;
|
|
11725
|
-
/**
|
|
11726
|
-
*
|
|
11727
|
-
* @summary Retrieve total number of free slots of agents with given skill, in given organization
|
|
11728
|
-
* @param {SkillForm} body
|
|
11729
|
-
* @param {string} orgId
|
|
11730
|
-
* @param {*} [options] Override http request option.
|
|
11731
|
-
* @throws {RequiredError}
|
|
11732
|
-
*/
|
|
11733
|
-
getFreeSlotsInfo(body: SkillForm, orgId: string, options?: any): FetchArgs;
|
|
11734
11699
|
/**
|
|
11735
11700
|
*
|
|
11736
11701
|
* @summary Retrieve data of all orgs
|
|
@@ -11900,15 +11865,6 @@ export declare const OrgsApiFp: (configuration?: Configuration) => {
|
|
|
11900
11865
|
* @throws {RequiredError}
|
|
11901
11866
|
*/
|
|
11902
11867
|
getCompanyBillingData(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrgBillingData>;
|
|
11903
|
-
/**
|
|
11904
|
-
*
|
|
11905
|
-
* @summary Retrieve total number of free slots of agents with given skill, in given organization
|
|
11906
|
-
* @param {SkillForm} body
|
|
11907
|
-
* @param {string} orgId
|
|
11908
|
-
* @param {*} [options] Override http request option.
|
|
11909
|
-
* @throws {RequiredError}
|
|
11910
|
-
*/
|
|
11911
|
-
getFreeSlotsInfo(body: SkillForm, orgId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FreeSlotsInfo>;
|
|
11912
11868
|
/**
|
|
11913
11869
|
*
|
|
11914
11870
|
* @summary Retrieve data of all orgs
|
|
@@ -12078,15 +12034,6 @@ export declare const OrgsApiFactory: (configuration?: Configuration, fetch?: Fet
|
|
|
12078
12034
|
* @throws {RequiredError}
|
|
12079
12035
|
*/
|
|
12080
12036
|
getCompanyBillingData(options?: any): Promise<OrgBillingData>;
|
|
12081
|
-
/**
|
|
12082
|
-
*
|
|
12083
|
-
* @summary Retrieve total number of free slots of agents with given skill, in given organization
|
|
12084
|
-
* @param {SkillForm} body
|
|
12085
|
-
* @param {string} orgId
|
|
12086
|
-
* @param {*} [options] Override http request option.
|
|
12087
|
-
* @throws {RequiredError}
|
|
12088
|
-
*/
|
|
12089
|
-
getFreeSlotsInfo(body: SkillForm, orgId: string, options?: any): Promise<FreeSlotsInfo>;
|
|
12090
12037
|
/**
|
|
12091
12038
|
*
|
|
12092
12039
|
* @summary Retrieve data of all orgs
|
|
@@ -12268,16 +12215,6 @@ export declare class OrgsApi extends BaseAPI {
|
|
|
12268
12215
|
* @memberof OrgsApi
|
|
12269
12216
|
*/
|
|
12270
12217
|
getCompanyBillingData(options?: any): Promise<OrgBillingData>;
|
|
12271
|
-
/**
|
|
12272
|
-
*
|
|
12273
|
-
* @summary Retrieve total number of free slots of agents with given skill, in given organization
|
|
12274
|
-
* @param {SkillForm} body
|
|
12275
|
-
* @param {string} orgId
|
|
12276
|
-
* @param {*} [options] Override http request option.
|
|
12277
|
-
* @throws {RequiredError}
|
|
12278
|
-
* @memberof OrgsApi
|
|
12279
|
-
*/
|
|
12280
|
-
getFreeSlotsInfo(body: SkillForm, orgId: string, options?: any): Promise<FreeSlotsInfo>;
|
|
12281
12218
|
/**
|
|
12282
12219
|
*
|
|
12283
12220
|
* @summary Retrieve data of all orgs
|
|
@@ -15082,12 +15019,12 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
|
|
|
15082
15019
|
/**
|
|
15083
15020
|
*
|
|
15084
15021
|
* @summary Get agent's metrics (average agent's time of response for the first message from client)
|
|
15085
|
-
* @param {number}
|
|
15086
|
-
* @param {number}
|
|
15022
|
+
* @param {number} from beginning of time section to search in (timestamp/long number)
|
|
15023
|
+
* @param {number} to end of time section to search in (timestamp/long number)
|
|
15087
15024
|
* @param {*} [options] Override http request option.
|
|
15088
15025
|
* @throws {RequiredError}
|
|
15089
15026
|
*/
|
|
15090
|
-
getAverageResponseTime(
|
|
15027
|
+
getAverageResponseTime(from: number, to: number, options?: any): FetchArgs;
|
|
15091
15028
|
/**
|
|
15092
15029
|
*
|
|
15093
15030
|
* @summary Get bot profile.
|
|
@@ -15408,12 +15345,12 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
15408
15345
|
/**
|
|
15409
15346
|
*
|
|
15410
15347
|
* @summary Get agent's metrics (average agent's time of response for the first message from client)
|
|
15411
|
-
* @param {number}
|
|
15412
|
-
* @param {number}
|
|
15348
|
+
* @param {number} from beginning of time section to search in (timestamp/long number)
|
|
15349
|
+
* @param {number} to end of time section to search in (timestamp/long number)
|
|
15413
15350
|
* @param {*} [options] Override http request option.
|
|
15414
15351
|
* @throws {RequiredError}
|
|
15415
15352
|
*/
|
|
15416
|
-
getAverageResponseTime(
|
|
15353
|
+
getAverageResponseTime(from: number, to: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AdviserAverageSpeedOfAnswerDto>;
|
|
15417
15354
|
/**
|
|
15418
15355
|
*
|
|
15419
15356
|
* @summary Get bot profile.
|
|
@@ -15734,12 +15671,12 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
15734
15671
|
/**
|
|
15735
15672
|
*
|
|
15736
15673
|
* @summary Get agent's metrics (average agent's time of response for the first message from client)
|
|
15737
|
-
* @param {number}
|
|
15738
|
-
* @param {number}
|
|
15674
|
+
* @param {number} from beginning of time section to search in (timestamp/long number)
|
|
15675
|
+
* @param {number} to end of time section to search in (timestamp/long number)
|
|
15739
15676
|
* @param {*} [options] Override http request option.
|
|
15740
15677
|
* @throws {RequiredError}
|
|
15741
15678
|
*/
|
|
15742
|
-
getAverageResponseTime(
|
|
15679
|
+
getAverageResponseTime(from: number, to: number, options?: any): Promise<AdviserAverageSpeedOfAnswerDto>;
|
|
15743
15680
|
/**
|
|
15744
15681
|
*
|
|
15745
15682
|
* @summary Get bot profile.
|
|
@@ -16074,13 +16011,13 @@ export declare class UsersApi extends BaseAPI {
|
|
|
16074
16011
|
/**
|
|
16075
16012
|
*
|
|
16076
16013
|
* @summary Get agent's metrics (average agent's time of response for the first message from client)
|
|
16077
|
-
* @param {number}
|
|
16078
|
-
* @param {number}
|
|
16014
|
+
* @param {number} from beginning of time section to search in (timestamp/long number)
|
|
16015
|
+
* @param {number} to end of time section to search in (timestamp/long number)
|
|
16079
16016
|
* @param {*} [options] Override http request option.
|
|
16080
16017
|
* @throws {RequiredError}
|
|
16081
16018
|
* @memberof UsersApi
|
|
16082
16019
|
*/
|
|
16083
|
-
getAverageResponseTime(
|
|
16020
|
+
getAverageResponseTime(from: number, to: number, options?: any): Promise<AdviserAverageSpeedOfAnswerDto>;
|
|
16084
16021
|
/**
|
|
16085
16022
|
*
|
|
16086
16023
|
* @summary Get bot profile.
|
package/dist/api.js
CHANGED
|
@@ -9921,41 +9921,6 @@ const OrgsApiFetchParamCreator = function (configuration) {
|
|
|
9921
9921
|
options: localVarRequestOptions,
|
|
9922
9922
|
};
|
|
9923
9923
|
},
|
|
9924
|
-
/**
|
|
9925
|
-
*
|
|
9926
|
-
* @summary Retrieve total number of free slots of agents with given skill, in given organization
|
|
9927
|
-
* @param {SkillForm} body
|
|
9928
|
-
* @param {string} orgId
|
|
9929
|
-
* @param {*} [options] Override http request option.
|
|
9930
|
-
* @throws {RequiredError}
|
|
9931
|
-
*/
|
|
9932
|
-
getFreeSlotsInfo(body, orgId, options = {}) {
|
|
9933
|
-
// verify required parameter 'body' is not null or undefined
|
|
9934
|
-
if (body === null || body === undefined) {
|
|
9935
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling getFreeSlotsInfo.');
|
|
9936
|
-
}
|
|
9937
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
9938
|
-
if (orgId === null || orgId === undefined) {
|
|
9939
|
-
throw new RequiredError('orgId', 'Required parameter orgId was null or undefined when calling getFreeSlotsInfo.');
|
|
9940
|
-
}
|
|
9941
|
-
const localVarPath = `/orgs/{orgId}/freeSlots`
|
|
9942
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
9943
|
-
const localVarUrlObj = url.parse(localVarPath, true);
|
|
9944
|
-
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
9945
|
-
const localVarHeaderParameter = {};
|
|
9946
|
-
const localVarQueryParameter = {};
|
|
9947
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9948
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
9949
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
9950
|
-
delete localVarUrlObj.search;
|
|
9951
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
9952
|
-
const needsSerialization = ("SkillForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
9953
|
-
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
9954
|
-
return {
|
|
9955
|
-
url: url.format(localVarUrlObj),
|
|
9956
|
-
options: localVarRequestOptions,
|
|
9957
|
-
};
|
|
9958
|
-
},
|
|
9959
9924
|
/**
|
|
9960
9925
|
*
|
|
9961
9926
|
* @summary Retrieve data of all orgs
|
|
@@ -10514,27 +10479,6 @@ const OrgsApiFp = function (configuration) {
|
|
|
10514
10479
|
});
|
|
10515
10480
|
};
|
|
10516
10481
|
},
|
|
10517
|
-
/**
|
|
10518
|
-
*
|
|
10519
|
-
* @summary Retrieve total number of free slots of agents with given skill, in given organization
|
|
10520
|
-
* @param {SkillForm} body
|
|
10521
|
-
* @param {string} orgId
|
|
10522
|
-
* @param {*} [options] Override http request option.
|
|
10523
|
-
* @throws {RequiredError}
|
|
10524
|
-
*/
|
|
10525
|
-
getFreeSlotsInfo(body, orgId, options) {
|
|
10526
|
-
const localVarFetchArgs = (0, exports.OrgsApiFetchParamCreator)(configuration).getFreeSlotsInfo(body, orgId, options);
|
|
10527
|
-
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
10528
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
10529
|
-
if (response.status >= 200 && response.status < 300) {
|
|
10530
|
-
return response.json();
|
|
10531
|
-
}
|
|
10532
|
-
else {
|
|
10533
|
-
throw response;
|
|
10534
|
-
}
|
|
10535
|
-
});
|
|
10536
|
-
};
|
|
10537
|
-
},
|
|
10538
10482
|
/**
|
|
10539
10483
|
*
|
|
10540
10484
|
* @summary Retrieve data of all orgs
|
|
@@ -10847,17 +10791,6 @@ const OrgsApiFactory = function (configuration, fetch, basePath) {
|
|
|
10847
10791
|
getCompanyBillingData(options) {
|
|
10848
10792
|
return (0, exports.OrgsApiFp)(configuration).getCompanyBillingData(options)(fetch, basePath);
|
|
10849
10793
|
},
|
|
10850
|
-
/**
|
|
10851
|
-
*
|
|
10852
|
-
* @summary Retrieve total number of free slots of agents with given skill, in given organization
|
|
10853
|
-
* @param {SkillForm} body
|
|
10854
|
-
* @param {string} orgId
|
|
10855
|
-
* @param {*} [options] Override http request option.
|
|
10856
|
-
* @throws {RequiredError}
|
|
10857
|
-
*/
|
|
10858
|
-
getFreeSlotsInfo(body, orgId, options) {
|
|
10859
|
-
return (0, exports.OrgsApiFp)(configuration).getFreeSlotsInfo(body, orgId, options)(fetch, basePath);
|
|
10860
|
-
},
|
|
10861
10794
|
/**
|
|
10862
10795
|
*
|
|
10863
10796
|
* @summary Retrieve data of all orgs
|
|
@@ -11081,18 +11014,6 @@ class OrgsApi extends BaseAPI {
|
|
|
11081
11014
|
getCompanyBillingData(options) {
|
|
11082
11015
|
return (0, exports.OrgsApiFp)(this.configuration).getCompanyBillingData(options)(this.fetch, this.basePath);
|
|
11083
11016
|
}
|
|
11084
|
-
/**
|
|
11085
|
-
*
|
|
11086
|
-
* @summary Retrieve total number of free slots of agents with given skill, in given organization
|
|
11087
|
-
* @param {SkillForm} body
|
|
11088
|
-
* @param {string} orgId
|
|
11089
|
-
* @param {*} [options] Override http request option.
|
|
11090
|
-
* @throws {RequiredError}
|
|
11091
|
-
* @memberof OrgsApi
|
|
11092
|
-
*/
|
|
11093
|
-
getFreeSlotsInfo(body, orgId, options) {
|
|
11094
|
-
return (0, exports.OrgsApiFp)(this.configuration).getFreeSlotsInfo(body, orgId, options)(this.fetch, this.basePath);
|
|
11095
|
-
}
|
|
11096
11017
|
/**
|
|
11097
11018
|
*
|
|
11098
11019
|
* @summary Retrieve data of all orgs
|
|
@@ -17203,23 +17124,21 @@ const UsersApiFetchParamCreator = function (configuration) {
|
|
|
17203
17124
|
/**
|
|
17204
17125
|
*
|
|
17205
17126
|
* @summary Get agent's metrics (average agent's time of response for the first message from client)
|
|
17206
|
-
* @param {number}
|
|
17207
|
-
* @param {number}
|
|
17127
|
+
* @param {number} from beginning of time section to search in (timestamp/long number)
|
|
17128
|
+
* @param {number} to end of time section to search in (timestamp/long number)
|
|
17208
17129
|
* @param {*} [options] Override http request option.
|
|
17209
17130
|
* @throws {RequiredError}
|
|
17210
17131
|
*/
|
|
17211
|
-
getAverageResponseTime(
|
|
17212
|
-
// verify required parameter '
|
|
17213
|
-
if (
|
|
17214
|
-
throw new RequiredError('
|
|
17132
|
+
getAverageResponseTime(from, to, options = {}) {
|
|
17133
|
+
// verify required parameter 'from' is not null or undefined
|
|
17134
|
+
if (from === null || from === undefined) {
|
|
17135
|
+
throw new RequiredError('from', 'Required parameter from was null or undefined when calling getAverageResponseTime.');
|
|
17215
17136
|
}
|
|
17216
|
-
// verify required parameter '
|
|
17217
|
-
if (
|
|
17218
|
-
throw new RequiredError('
|
|
17137
|
+
// verify required parameter 'to' is not null or undefined
|
|
17138
|
+
if (to === null || to === undefined) {
|
|
17139
|
+
throw new RequiredError('to', 'Required parameter to was null or undefined when calling getAverageResponseTime.');
|
|
17219
17140
|
}
|
|
17220
|
-
const localVarPath = `/agents/metrics
|
|
17221
|
-
.replace(`{${"assignedFrom"}}`, encodeURIComponent(String(assignedFrom)))
|
|
17222
|
-
.replace(`{${"assignedTo"}}`, encodeURIComponent(String(assignedTo)));
|
|
17141
|
+
const localVarPath = `/agents/metrics`;
|
|
17223
17142
|
const localVarUrlObj = url.parse(localVarPath, true);
|
|
17224
17143
|
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
17225
17144
|
const localVarHeaderParameter = {};
|
|
@@ -17231,6 +17150,12 @@ const UsersApiFetchParamCreator = function (configuration) {
|
|
|
17231
17150
|
: configuration.apiKey;
|
|
17232
17151
|
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
17233
17152
|
}
|
|
17153
|
+
if (from !== undefined) {
|
|
17154
|
+
localVarQueryParameter['from'] = from;
|
|
17155
|
+
}
|
|
17156
|
+
if (to !== undefined) {
|
|
17157
|
+
localVarQueryParameter['to'] = to;
|
|
17158
|
+
}
|
|
17234
17159
|
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
17235
17160
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
17236
17161
|
delete localVarUrlObj.search;
|
|
@@ -18500,13 +18425,13 @@ const UsersApiFp = function (configuration) {
|
|
|
18500
18425
|
/**
|
|
18501
18426
|
*
|
|
18502
18427
|
* @summary Get agent's metrics (average agent's time of response for the first message from client)
|
|
18503
|
-
* @param {number}
|
|
18504
|
-
* @param {number}
|
|
18428
|
+
* @param {number} from beginning of time section to search in (timestamp/long number)
|
|
18429
|
+
* @param {number} to end of time section to search in (timestamp/long number)
|
|
18505
18430
|
* @param {*} [options] Override http request option.
|
|
18506
18431
|
* @throws {RequiredError}
|
|
18507
18432
|
*/
|
|
18508
|
-
getAverageResponseTime(
|
|
18509
|
-
const localVarFetchArgs = (0, exports.UsersApiFetchParamCreator)(configuration).getAverageResponseTime(
|
|
18433
|
+
getAverageResponseTime(from, to, options) {
|
|
18434
|
+
const localVarFetchArgs = (0, exports.UsersApiFetchParamCreator)(configuration).getAverageResponseTime(from, to, options);
|
|
18510
18435
|
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
18511
18436
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
18512
18437
|
if (response.status >= 200 && response.status < 300) {
|
|
@@ -19201,13 +19126,13 @@ const UsersApiFactory = function (configuration, fetch, basePath) {
|
|
|
19201
19126
|
/**
|
|
19202
19127
|
*
|
|
19203
19128
|
* @summary Get agent's metrics (average agent's time of response for the first message from client)
|
|
19204
|
-
* @param {number}
|
|
19205
|
-
* @param {number}
|
|
19129
|
+
* @param {number} from beginning of time section to search in (timestamp/long number)
|
|
19130
|
+
* @param {number} to end of time section to search in (timestamp/long number)
|
|
19206
19131
|
* @param {*} [options] Override http request option.
|
|
19207
19132
|
* @throws {RequiredError}
|
|
19208
19133
|
*/
|
|
19209
|
-
getAverageResponseTime(
|
|
19210
|
-
return (0, exports.UsersApiFp)(configuration).getAverageResponseTime(
|
|
19134
|
+
getAverageResponseTime(from, to, options) {
|
|
19135
|
+
return (0, exports.UsersApiFp)(configuration).getAverageResponseTime(from, to, options)(fetch, basePath);
|
|
19211
19136
|
},
|
|
19212
19137
|
/**
|
|
19213
19138
|
*
|
|
@@ -19625,14 +19550,14 @@ class UsersApi extends BaseAPI {
|
|
|
19625
19550
|
/**
|
|
19626
19551
|
*
|
|
19627
19552
|
* @summary Get agent's metrics (average agent's time of response for the first message from client)
|
|
19628
|
-
* @param {number}
|
|
19629
|
-
* @param {number}
|
|
19553
|
+
* @param {number} from beginning of time section to search in (timestamp/long number)
|
|
19554
|
+
* @param {number} to end of time section to search in (timestamp/long number)
|
|
19630
19555
|
* @param {*} [options] Override http request option.
|
|
19631
19556
|
* @throws {RequiredError}
|
|
19632
19557
|
* @memberof UsersApi
|
|
19633
19558
|
*/
|
|
19634
|
-
getAverageResponseTime(
|
|
19635
|
-
return (0, exports.UsersApiFp)(this.configuration).getAverageResponseTime(
|
|
19559
|
+
getAverageResponseTime(from, to, options) {
|
|
19560
|
+
return (0, exports.UsersApiFp)(this.configuration).getAverageResponseTime(from, to, options)(this.fetch, this.basePath);
|
|
19636
19561
|
}
|
|
19637
19562
|
/**
|
|
19638
19563
|
*
|