@closerplatform/spinner-openapi 0.12.1083 → 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.
Files changed (3) hide show
  1. package/dist/api.d.ts +12 -12
  2. package/dist/api.js +28 -24
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -15019,12 +15019,12 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
15019
15019
  /**
15020
15020
  *
15021
15021
  * @summary Get agent's metrics (average agent's time of response for the first message from client)
15022
- * @param {number} assignedFrom beginning of time section to search in (timestamp/long number)
15023
- * @param {number} assignedTo end of time section to search in (timestamp/long 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)
15024
15024
  * @param {*} [options] Override http request option.
15025
15025
  * @throws {RequiredError}
15026
15026
  */
15027
- getAverageResponseTime(assignedFrom: number, assignedTo: number, options?: any): FetchArgs;
15027
+ getAverageResponseTime(from: number, to: number, options?: any): FetchArgs;
15028
15028
  /**
15029
15029
  *
15030
15030
  * @summary Get bot profile.
@@ -15345,12 +15345,12 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
15345
15345
  /**
15346
15346
  *
15347
15347
  * @summary Get agent's metrics (average agent's time of response for the first message from client)
15348
- * @param {number} assignedFrom beginning of time section to search in (timestamp/long number)
15349
- * @param {number} assignedTo end of time section to search in (timestamp/long 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)
15350
15350
  * @param {*} [options] Override http request option.
15351
15351
  * @throws {RequiredError}
15352
15352
  */
15353
- getAverageResponseTime(assignedFrom: number, assignedTo: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AdviserAverageSpeedOfAnswerDto>;
15353
+ getAverageResponseTime(from: number, to: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AdviserAverageSpeedOfAnswerDto>;
15354
15354
  /**
15355
15355
  *
15356
15356
  * @summary Get bot profile.
@@ -15671,12 +15671,12 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
15671
15671
  /**
15672
15672
  *
15673
15673
  * @summary Get agent's metrics (average agent's time of response for the first message from client)
15674
- * @param {number} assignedFrom beginning of time section to search in (timestamp/long number)
15675
- * @param {number} assignedTo end of time section to search in (timestamp/long 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)
15676
15676
  * @param {*} [options] Override http request option.
15677
15677
  * @throws {RequiredError}
15678
15678
  */
15679
- getAverageResponseTime(assignedFrom: number, assignedTo: number, options?: any): Promise<AdviserAverageSpeedOfAnswerDto>;
15679
+ getAverageResponseTime(from: number, to: number, options?: any): Promise<AdviserAverageSpeedOfAnswerDto>;
15680
15680
  /**
15681
15681
  *
15682
15682
  * @summary Get bot profile.
@@ -16011,13 +16011,13 @@ export declare class UsersApi extends BaseAPI {
16011
16011
  /**
16012
16012
  *
16013
16013
  * @summary Get agent's metrics (average agent's time of response for the first message from client)
16014
- * @param {number} assignedFrom beginning of time section to search in (timestamp/long number)
16015
- * @param {number} assignedTo end of time section to search in (timestamp/long 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)
16016
16016
  * @param {*} [options] Override http request option.
16017
16017
  * @throws {RequiredError}
16018
16018
  * @memberof UsersApi
16019
16019
  */
16020
- getAverageResponseTime(assignedFrom: number, assignedTo: number, options?: any): Promise<AdviserAverageSpeedOfAnswerDto>;
16020
+ getAverageResponseTime(from: number, to: number, options?: any): Promise<AdviserAverageSpeedOfAnswerDto>;
16021
16021
  /**
16022
16022
  *
16023
16023
  * @summary Get bot profile.
package/dist/api.js CHANGED
@@ -17124,23 +17124,21 @@ const UsersApiFetchParamCreator = function (configuration) {
17124
17124
  /**
17125
17125
  *
17126
17126
  * @summary Get agent's metrics (average agent's time of response for the first message from client)
17127
- * @param {number} assignedFrom beginning of time section to search in (timestamp/long number)
17128
- * @param {number} assignedTo end of time section to search in (timestamp/long 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)
17129
17129
  * @param {*} [options] Override http request option.
17130
17130
  * @throws {RequiredError}
17131
17131
  */
17132
- getAverageResponseTime(assignedFrom, assignedTo, options = {}) {
17133
- // verify required parameter 'assignedFrom' is not null or undefined
17134
- if (assignedFrom === null || assignedFrom === undefined) {
17135
- throw new RequiredError('assignedFrom', 'Required parameter assignedFrom was null or undefined when calling getAverageResponseTime.');
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.');
17136
17136
  }
17137
- // verify required parameter 'assignedTo' is not null or undefined
17138
- if (assignedTo === null || assignedTo === undefined) {
17139
- throw new RequiredError('assignedTo', 'Required parameter assignedTo was null or undefined when calling getAverageResponseTime.');
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.');
17140
17140
  }
17141
- const localVarPath = `/agents/metrics/{assignedFrom}/{assignedTo}`
17142
- .replace(`{${"assignedFrom"}}`, encodeURIComponent(String(assignedFrom)))
17143
- .replace(`{${"assignedTo"}}`, encodeURIComponent(String(assignedTo)));
17141
+ const localVarPath = `/agents/metrics`;
17144
17142
  const localVarUrlObj = url.parse(localVarPath, true);
17145
17143
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
17146
17144
  const localVarHeaderParameter = {};
@@ -17152,6 +17150,12 @@ const UsersApiFetchParamCreator = function (configuration) {
17152
17150
  : configuration.apiKey;
17153
17151
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
17154
17152
  }
17153
+ if (from !== undefined) {
17154
+ localVarQueryParameter['from'] = from;
17155
+ }
17156
+ if (to !== undefined) {
17157
+ localVarQueryParameter['to'] = to;
17158
+ }
17155
17159
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
17156
17160
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
17157
17161
  delete localVarUrlObj.search;
@@ -18421,13 +18425,13 @@ const UsersApiFp = function (configuration) {
18421
18425
  /**
18422
18426
  *
18423
18427
  * @summary Get agent's metrics (average agent's time of response for the first message from client)
18424
- * @param {number} assignedFrom beginning of time section to search in (timestamp/long number)
18425
- * @param {number} assignedTo end of time section to search in (timestamp/long 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)
18426
18430
  * @param {*} [options] Override http request option.
18427
18431
  * @throws {RequiredError}
18428
18432
  */
18429
- getAverageResponseTime(assignedFrom, assignedTo, options) {
18430
- const localVarFetchArgs = (0, exports.UsersApiFetchParamCreator)(configuration).getAverageResponseTime(assignedFrom, assignedTo, options);
18433
+ getAverageResponseTime(from, to, options) {
18434
+ const localVarFetchArgs = (0, exports.UsersApiFetchParamCreator)(configuration).getAverageResponseTime(from, to, options);
18431
18435
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
18432
18436
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
18433
18437
  if (response.status >= 200 && response.status < 300) {
@@ -19122,13 +19126,13 @@ const UsersApiFactory = function (configuration, fetch, basePath) {
19122
19126
  /**
19123
19127
  *
19124
19128
  * @summary Get agent's metrics (average agent's time of response for the first message from client)
19125
- * @param {number} assignedFrom beginning of time section to search in (timestamp/long number)
19126
- * @param {number} assignedTo end of time section to search in (timestamp/long 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)
19127
19131
  * @param {*} [options] Override http request option.
19128
19132
  * @throws {RequiredError}
19129
19133
  */
19130
- getAverageResponseTime(assignedFrom, assignedTo, options) {
19131
- return (0, exports.UsersApiFp)(configuration).getAverageResponseTime(assignedFrom, assignedTo, options)(fetch, basePath);
19134
+ getAverageResponseTime(from, to, options) {
19135
+ return (0, exports.UsersApiFp)(configuration).getAverageResponseTime(from, to, options)(fetch, basePath);
19132
19136
  },
19133
19137
  /**
19134
19138
  *
@@ -19546,14 +19550,14 @@ class UsersApi extends BaseAPI {
19546
19550
  /**
19547
19551
  *
19548
19552
  * @summary Get agent's metrics (average agent's time of response for the first message from client)
19549
- * @param {number} assignedFrom beginning of time section to search in (timestamp/long number)
19550
- * @param {number} assignedTo end of time section to search in (timestamp/long 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)
19551
19555
  * @param {*} [options] Override http request option.
19552
19556
  * @throws {RequiredError}
19553
19557
  * @memberof UsersApi
19554
19558
  */
19555
- getAverageResponseTime(assignedFrom, assignedTo, options) {
19556
- return (0, exports.UsersApiFp)(this.configuration).getAverageResponseTime(assignedFrom, assignedTo, options)(this.fetch, this.basePath);
19559
+ getAverageResponseTime(from, to, options) {
19560
+ return (0, exports.UsersApiFp)(this.configuration).getAverageResponseTime(from, to, options)(this.fetch, this.basePath);
19557
19561
  }
19558
19562
  /**
19559
19563
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.1083",
3
+ "version": "0.12.1084",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [