webitel-sdk 0.1.90 → 0.1.91

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 (31) hide show
  1. package/bundles/index.esm.js +125 -27
  2. package/bundles/index.esm.js.map +1 -1
  3. package/bundles/index.esm.min.js +1 -1
  4. package/bundles/index.esm.min.js.map +1 -1
  5. package/bundles/index.umd.js +138 -27
  6. package/bundles/index.umd.js.map +1 -1
  7. package/bundles/index.umd.min.js +1 -1
  8. package/bundles/index.umd.min.js.map +1 -1
  9. package/esm2015/api/engine-patch-queue-bucket-request.js +13 -0
  10. package/esm2015/api/engine-patch-queue-bucket-request.js.map +1 -0
  11. package/esm2015/api/index.js.map +1 -1
  12. package/esm2015/api/queue-bucket-service-api.js +125 -27
  13. package/esm2015/api/queue-bucket-service-api.js.map +1 -1
  14. package/esm5/api/engine-patch-queue-bucket-request.js +13 -0
  15. package/esm5/api/engine-patch-queue-bucket-request.js.map +1 -0
  16. package/esm5/api/index.js.map +1 -1
  17. package/esm5/api/queue-bucket-service-api.js +138 -27
  18. package/esm5/api/queue-bucket-service-api.js.map +1 -1
  19. package/package.json +1 -1
  20. package/types/api/engine-create-queue-bucket-request.d.ts +8 -2
  21. package/types/api/engine-create-queue-bucket-request.d.ts.map +1 -1
  22. package/types/api/engine-patch-queue-bucket-request.d.ts +62 -0
  23. package/types/api/engine-patch-queue-bucket-request.d.ts.map +1 -0
  24. package/types/api/engine-queue-bucket.d.ts +12 -0
  25. package/types/api/engine-queue-bucket.d.ts.map +1 -1
  26. package/types/api/engine-update-queue-bucket-request.d.ts +8 -2
  27. package/types/api/engine-update-queue-bucket-request.d.ts.map +1 -1
  28. package/types/api/index.d.ts +1 -0
  29. package/types/api/index.d.ts.map +1 -1
  30. package/types/api/queue-bucket-service-api.d.ts +46 -16
  31. package/types/api/queue-bucket-service-api.d.ts.map +1 -1
@@ -15169,11 +15169,10 @@ const QueueBucketServiceApiAxiosParamCreator = function (configuration) {
15169
15169
  * @summary DeleteQueueRouting
15170
15170
  * @param {string} queueId
15171
15171
  * @param {string} id
15172
- * @param {string} [domainId]
15173
15172
  * @param {*} [options] Override http request option.
15174
15173
  * @throws {RequiredError}
15175
15174
  */
15176
- deleteQueueBucket: async (queueId, id, domainId, options = {}) => {
15175
+ deleteQueueBucket: async (queueId, id, options = {}) => {
15177
15176
  // verify required parameter 'queueId' is not null or undefined
15178
15177
  if (queueId === null || queueId === undefined) {
15179
15178
  throw new RequiredError('queueId', 'Required parameter queueId was null or undefined when calling deleteQueueBucket.');
@@ -15204,9 +15203,68 @@ const QueueBucketServiceApiAxiosParamCreator = function (configuration) {
15204
15203
  : await configuration.apiKey;
15205
15204
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
15206
15205
  }
15207
- if (domainId !== undefined) {
15208
- localVarQueryParameter['domain_id'] = domainId;
15206
+ localVarUrlObj.query = {
15207
+ ...localVarUrlObj.query,
15208
+ ...localVarQueryParameter,
15209
+ ...options.query,
15210
+ };
15211
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
15212
+ delete localVarUrlObj.search;
15213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15214
+ localVarRequestOptions.headers = {
15215
+ ...localVarHeaderParameter,
15216
+ ...headersFromBaseOptions,
15217
+ ...options.headers,
15218
+ };
15219
+ return {
15220
+ url: format(localVarUrlObj),
15221
+ options: localVarRequestOptions,
15222
+ };
15223
+ },
15224
+ /**
15225
+ *
15226
+ * @param {string} queueId
15227
+ * @param {string} id
15228
+ * @param {EnginePatchQueueBucketRequest} body
15229
+ * @param {*} [options] Override http request option.
15230
+ * @throws {RequiredError}
15231
+ */
15232
+ patchQueueBucket: async (queueId, id, body, options = {}) => {
15233
+ // verify required parameter 'queueId' is not null or undefined
15234
+ if (queueId === null || queueId === undefined) {
15235
+ throw new RequiredError('queueId', 'Required parameter queueId was null or undefined when calling patchQueueBucket.');
15236
+ }
15237
+ // verify required parameter 'id' is not null or undefined
15238
+ if (id === null || id === undefined) {
15239
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling patchQueueBucket.');
15240
+ }
15241
+ // verify required parameter 'body' is not null or undefined
15242
+ if (body === null || body === undefined) {
15243
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchQueueBucket.');
15244
+ }
15245
+ const localVarPath = `/call_center/queues/{queue_id}/buckets/{id}`
15246
+ .replace(`{${'queue_id'}}`, encodeURIComponent(String(queueId)))
15247
+ .replace(`{${'id'}}`, encodeURIComponent(String(id)));
15248
+ const localVarUrlObj = parse(localVarPath, true);
15249
+ let baseOptions;
15250
+ if (configuration) {
15251
+ baseOptions = configuration.baseOptions;
15252
+ }
15253
+ const localVarRequestOptions = {
15254
+ method: 'PATCH',
15255
+ ...baseOptions,
15256
+ ...options,
15257
+ };
15258
+ const localVarHeaderParameter = {};
15259
+ const localVarQueryParameter = {};
15260
+ // authentication AccessToken required
15261
+ if (configuration && configuration.apiKey) {
15262
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
15263
+ ? await configuration.apiKey('X-Webitel-Access')
15264
+ : await configuration.apiKey;
15265
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
15209
15266
  }
15267
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15210
15268
  localVarUrlObj.query = {
15211
15269
  ...localVarUrlObj.query,
15212
15270
  ...localVarQueryParameter,
@@ -15220,6 +15278,11 @@ const QueueBucketServiceApiAxiosParamCreator = function (configuration) {
15220
15278
  ...headersFromBaseOptions,
15221
15279
  ...options.headers,
15222
15280
  };
15281
+ const needsSerialization = typeof body !== 'string' ||
15282
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
15283
+ localVarRequestOptions.data = needsSerialization
15284
+ ? JSON.stringify(body !== undefined ? body : {})
15285
+ : body || '';
15223
15286
  return {
15224
15287
  url: format(localVarUrlObj),
15225
15288
  options: localVarRequestOptions,
@@ -15230,11 +15293,10 @@ const QueueBucketServiceApiAxiosParamCreator = function (configuration) {
15230
15293
  * @summary ReadQueueRouting
15231
15294
  * @param {string} queueId
15232
15295
  * @param {string} id
15233
- * @param {string} [domainId]
15234
15296
  * @param {*} [options] Override http request option.
15235
15297
  * @throws {RequiredError}
15236
15298
  */
15237
- readQueueBucket: async (queueId, id, domainId, options = {}) => {
15299
+ readQueueBucket: async (queueId, id, options = {}) => {
15238
15300
  // verify required parameter 'queueId' is not null or undefined
15239
15301
  if (queueId === null || queueId === undefined) {
15240
15302
  throw new RequiredError('queueId', 'Required parameter queueId was null or undefined when calling readQueueBucket.');
@@ -15265,9 +15327,6 @@ const QueueBucketServiceApiAxiosParamCreator = function (configuration) {
15265
15327
  : await configuration.apiKey;
15266
15328
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
15267
15329
  }
15268
- if (domainId !== undefined) {
15269
- localVarQueryParameter['domain_id'] = domainId;
15270
- }
15271
15330
  localVarUrlObj.query = {
15272
15331
  ...localVarUrlObj.query,
15273
15332
  ...localVarQueryParameter,
@@ -15459,12 +15518,29 @@ const QueueBucketServiceApiFp = function (configuration) {
15459
15518
  * @summary DeleteQueueRouting
15460
15519
  * @param {string} queueId
15461
15520
  * @param {string} id
15462
- * @param {string} [domainId]
15463
15521
  * @param {*} [options] Override http request option.
15464
15522
  * @throws {RequiredError}
15465
15523
  */
15466
- async deleteQueueBucket(queueId, id, domainId, options) {
15467
- const localVarAxiosArgs = await QueueBucketServiceApiAxiosParamCreator(configuration).deleteQueueBucket(queueId, id, domainId, options);
15524
+ async deleteQueueBucket(queueId, id, options) {
15525
+ const localVarAxiosArgs = await QueueBucketServiceApiAxiosParamCreator(configuration).deleteQueueBucket(queueId, id, options);
15526
+ return (axios = globalAxios, basePath = BASE_PATH) => {
15527
+ const axiosRequestArgs = {
15528
+ ...localVarAxiosArgs.options,
15529
+ url: basePath + localVarAxiosArgs.url,
15530
+ };
15531
+ return axios.request(axiosRequestArgs);
15532
+ };
15533
+ },
15534
+ /**
15535
+ *
15536
+ * @param {string} queueId
15537
+ * @param {string} id
15538
+ * @param {EnginePatchQueueBucketRequest} body
15539
+ * @param {*} [options] Override http request option.
15540
+ * @throws {RequiredError}
15541
+ */
15542
+ async patchQueueBucket(queueId, id, body, options) {
15543
+ const localVarAxiosArgs = await QueueBucketServiceApiAxiosParamCreator(configuration).patchQueueBucket(queueId, id, body, options);
15468
15544
  return (axios = globalAxios, basePath = BASE_PATH) => {
15469
15545
  const axiosRequestArgs = {
15470
15546
  ...localVarAxiosArgs.options,
@@ -15478,12 +15554,11 @@ const QueueBucketServiceApiFp = function (configuration) {
15478
15554
  * @summary ReadQueueRouting
15479
15555
  * @param {string} queueId
15480
15556
  * @param {string} id
15481
- * @param {string} [domainId]
15482
15557
  * @param {*} [options] Override http request option.
15483
15558
  * @throws {RequiredError}
15484
15559
  */
15485
- async readQueueBucket(queueId, id, domainId, options) {
15486
- const localVarAxiosArgs = await QueueBucketServiceApiAxiosParamCreator(configuration).readQueueBucket(queueId, id, domainId, options);
15560
+ async readQueueBucket(queueId, id, options) {
15561
+ const localVarAxiosArgs = await QueueBucketServiceApiAxiosParamCreator(configuration).readQueueBucket(queueId, id, options);
15487
15562
  return (axios = globalAxios, basePath = BASE_PATH) => {
15488
15563
  const axiosRequestArgs = {
15489
15564
  ...localVarAxiosArgs.options,
@@ -15560,13 +15635,25 @@ const QueueBucketServiceApiFactory = function (configuration, basePath, axios) {
15560
15635
  * @summary DeleteQueueRouting
15561
15636
  * @param {string} queueId
15562
15637
  * @param {string} id
15563
- * @param {string} [domainId]
15564
15638
  * @param {*} [options] Override http request option.
15565
15639
  * @throws {RequiredError}
15566
15640
  */
15567
- deleteQueueBucket(queueId, id, domainId, options) {
15641
+ deleteQueueBucket(queueId, id, options) {
15642
+ return QueueBucketServiceApiFp(configuration)
15643
+ .deleteQueueBucket(queueId, id, options)
15644
+ .then((request) => request(axios, basePath));
15645
+ },
15646
+ /**
15647
+ *
15648
+ * @param {string} queueId
15649
+ * @param {string} id
15650
+ * @param {EnginePatchQueueBucketRequest} body
15651
+ * @param {*} [options] Override http request option.
15652
+ * @throws {RequiredError}
15653
+ */
15654
+ patchQueueBucket(queueId, id, body, options) {
15568
15655
  return QueueBucketServiceApiFp(configuration)
15569
- .deleteQueueBucket(queueId, id, domainId, options)
15656
+ .patchQueueBucket(queueId, id, body, options)
15570
15657
  .then((request) => request(axios, basePath));
15571
15658
  },
15572
15659
  /**
@@ -15574,13 +15661,12 @@ const QueueBucketServiceApiFactory = function (configuration, basePath, axios) {
15574
15661
  * @summary ReadQueueRouting
15575
15662
  * @param {string} queueId
15576
15663
  * @param {string} id
15577
- * @param {string} [domainId]
15578
15664
  * @param {*} [options] Override http request option.
15579
15665
  * @throws {RequiredError}
15580
15666
  */
15581
- readQueueBucket(queueId, id, domainId, options) {
15667
+ readQueueBucket(queueId, id, options) {
15582
15668
  return QueueBucketServiceApiFp(configuration)
15583
- .readQueueBucket(queueId, id, domainId, options)
15669
+ .readQueueBucket(queueId, id, options)
15584
15670
  .then((request) => request(axios, basePath));
15585
15671
  },
15586
15672
  /**
@@ -15643,14 +15729,27 @@ class QueueBucketServiceApi extends BaseAPI {
15643
15729
  * @summary DeleteQueueRouting
15644
15730
  * @param {string} queueId
15645
15731
  * @param {string} id
15646
- * @param {string} [domainId]
15647
15732
  * @param {*} [options] Override http request option.
15648
15733
  * @throws {RequiredError}
15649
15734
  * @memberof QueueBucketServiceApi
15650
15735
  */
15651
- deleteQueueBucket(queueId, id, domainId, options) {
15736
+ deleteQueueBucket(queueId, id, options) {
15652
15737
  return QueueBucketServiceApiFp(this.configuration)
15653
- .deleteQueueBucket(queueId, id, domainId, options)
15738
+ .deleteQueueBucket(queueId, id, options)
15739
+ .then((request) => request(this.axios, this.basePath));
15740
+ }
15741
+ /**
15742
+ *
15743
+ * @param {string} queueId
15744
+ * @param {string} id
15745
+ * @param {EnginePatchQueueBucketRequest} body
15746
+ * @param {*} [options] Override http request option.
15747
+ * @throws {RequiredError}
15748
+ * @memberof QueueBucketServiceApi
15749
+ */
15750
+ patchQueueBucket(queueId, id, body, options) {
15751
+ return QueueBucketServiceApiFp(this.configuration)
15752
+ .patchQueueBucket(queueId, id, body, options)
15654
15753
  .then((request) => request(this.axios, this.basePath));
15655
15754
  }
15656
15755
  /**
@@ -15658,14 +15757,13 @@ class QueueBucketServiceApi extends BaseAPI {
15658
15757
  * @summary ReadQueueRouting
15659
15758
  * @param {string} queueId
15660
15759
  * @param {string} id
15661
- * @param {string} [domainId]
15662
15760
  * @param {*} [options] Override http request option.
15663
15761
  * @throws {RequiredError}
15664
15762
  * @memberof QueueBucketServiceApi
15665
15763
  */
15666
- readQueueBucket(queueId, id, domainId, options) {
15764
+ readQueueBucket(queueId, id, options) {
15667
15765
  return QueueBucketServiceApiFp(this.configuration)
15668
- .readQueueBucket(queueId, id, domainId, options)
15766
+ .readQueueBucket(queueId, id, options)
15669
15767
  .then((request) => request(this.axios, this.basePath));
15670
15768
  }
15671
15769
  /**