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
@@ -16937,11 +16937,10 @@
16937
16937
  * @summary DeleteQueueRouting
16938
16938
  * @param {string} queueId
16939
16939
  * @param {string} id
16940
- * @param {string} [domainId]
16941
16940
  * @param {*} [options] Override http request option.
16942
16941
  * @throws {RequiredError}
16943
16942
  */
16944
- deleteQueueBucket: function (queueId, id, domainId, options) {
16943
+ deleteQueueBucket: function (queueId, id, options) {
16945
16944
  if (options === void 0) { options = {}; }
16946
16945
  return tslib.__awaiter(_this, void 0, void 0, function () {
16947
16946
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
@@ -16981,14 +16980,82 @@
16981
16980
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
16982
16981
  _b.label = 5;
16983
16982
  case 5:
16984
- if (domainId !== undefined) {
16985
- localVarQueryParameter['domain_id'] = domainId;
16983
+ localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
16984
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
16985
+ delete localVarUrlObj.search;
16986
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16987
+ localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16988
+ return [2 /*return*/, {
16989
+ url: globalImportUrl.format(localVarUrlObj),
16990
+ options: localVarRequestOptions,
16991
+ }];
16992
+ }
16993
+ });
16994
+ });
16995
+ },
16996
+ /**
16997
+ *
16998
+ * @param {string} queueId
16999
+ * @param {string} id
17000
+ * @param {EnginePatchQueueBucketRequest} body
17001
+ * @param {*} [options] Override http request option.
17002
+ * @throws {RequiredError}
17003
+ */
17004
+ patchQueueBucket: function (queueId, id, body, options) {
17005
+ if (options === void 0) { options = {}; }
17006
+ return tslib.__awaiter(_this, void 0, void 0, function () {
17007
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
17008
+ return tslib.__generator(this, function (_b) {
17009
+ switch (_b.label) {
17010
+ case 0:
17011
+ // verify required parameter 'queueId' is not null or undefined
17012
+ if (queueId === null || queueId === undefined) {
17013
+ throw new RequiredError('queueId', 'Required parameter queueId was null or undefined when calling patchQueueBucket.');
16986
17014
  }
17015
+ // verify required parameter 'id' is not null or undefined
17016
+ if (id === null || id === undefined) {
17017
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling patchQueueBucket.');
17018
+ }
17019
+ // verify required parameter 'body' is not null or undefined
17020
+ if (body === null || body === undefined) {
17021
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchQueueBucket.');
17022
+ }
17023
+ localVarPath = "/call_center/queues/{queue_id}/buckets/{id}"
17024
+ .replace("{" + 'queue_id' + "}", encodeURIComponent(String(queueId)))
17025
+ .replace("{" + 'id' + "}", encodeURIComponent(String(id)));
17026
+ localVarUrlObj = globalImportUrl.parse(localVarPath, true);
17027
+ if (configuration) {
17028
+ baseOptions = configuration.baseOptions;
17029
+ }
17030
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PATCH' }, baseOptions), options);
17031
+ localVarHeaderParameter = {};
17032
+ localVarQueryParameter = {};
17033
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
17034
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
17035
+ return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
17036
+ case 1:
17037
+ _a = _b.sent();
17038
+ return [3 /*break*/, 4];
17039
+ case 2: return [4 /*yield*/, configuration.apiKey];
17040
+ case 3:
17041
+ _a = _b.sent();
17042
+ _b.label = 4;
17043
+ case 4:
17044
+ localVarApiKeyValue = _a;
17045
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
17046
+ _b.label = 5;
17047
+ case 5:
17048
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16987
17049
  localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
16988
17050
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
16989
17051
  delete localVarUrlObj.search;
16990
17052
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16991
17053
  localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17054
+ needsSerialization = typeof body !== 'string' ||
17055
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
17056
+ localVarRequestOptions.data = needsSerialization
17057
+ ? JSON.stringify(body !== undefined ? body : {})
17058
+ : body || '';
16992
17059
  return [2 /*return*/, {
16993
17060
  url: globalImportUrl.format(localVarUrlObj),
16994
17061
  options: localVarRequestOptions,
@@ -17002,11 +17069,10 @@
17002
17069
  * @summary ReadQueueRouting
17003
17070
  * @param {string} queueId
17004
17071
  * @param {string} id
17005
- * @param {string} [domainId]
17006
17072
  * @param {*} [options] Override http request option.
17007
17073
  * @throws {RequiredError}
17008
17074
  */
17009
- readQueueBucket: function (queueId, id, domainId, options) {
17075
+ readQueueBucket: function (queueId, id, options) {
17010
17076
  if (options === void 0) { options = {}; }
17011
17077
  return tslib.__awaiter(_this, void 0, void 0, function () {
17012
17078
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
@@ -17046,9 +17112,6 @@
17046
17112
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
17047
17113
  _b.label = 5;
17048
17114
  case 5:
17049
- if (domainId !== undefined) {
17050
- localVarQueryParameter['domain_id'] = domainId;
17051
- }
17052
17115
  localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
17053
17116
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
17054
17117
  delete localVarUrlObj.search;
@@ -17251,16 +17314,41 @@
17251
17314
  * @summary DeleteQueueRouting
17252
17315
  * @param {string} queueId
17253
17316
  * @param {string} id
17254
- * @param {string} [domainId]
17255
17317
  * @param {*} [options] Override http request option.
17256
17318
  * @throws {RequiredError}
17257
17319
  */
17258
- deleteQueueBucket: function (queueId, id, domainId, options) {
17320
+ deleteQueueBucket: function (queueId, id, options) {
17259
17321
  return tslib.__awaiter(this, void 0, void 0, function () {
17260
17322
  var localVarAxiosArgs;
17261
17323
  return tslib.__generator(this, function (_a) {
17262
17324
  switch (_a.label) {
17263
- case 0: return [4 /*yield*/, QueueBucketServiceApiAxiosParamCreator(configuration).deleteQueueBucket(queueId, id, domainId, options)];
17325
+ case 0: return [4 /*yield*/, QueueBucketServiceApiAxiosParamCreator(configuration).deleteQueueBucket(queueId, id, options)];
17326
+ case 1:
17327
+ localVarAxiosArgs = _a.sent();
17328
+ return [2 /*return*/, function (axios, basePath) {
17329
+ if (axios === void 0) { axios = globalAxios; }
17330
+ if (basePath === void 0) { basePath = BASE_PATH; }
17331
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
17332
+ return axios.request(axiosRequestArgs);
17333
+ }];
17334
+ }
17335
+ });
17336
+ });
17337
+ },
17338
+ /**
17339
+ *
17340
+ * @param {string} queueId
17341
+ * @param {string} id
17342
+ * @param {EnginePatchQueueBucketRequest} body
17343
+ * @param {*} [options] Override http request option.
17344
+ * @throws {RequiredError}
17345
+ */
17346
+ patchQueueBucket: function (queueId, id, body, options) {
17347
+ return tslib.__awaiter(this, void 0, void 0, function () {
17348
+ var localVarAxiosArgs;
17349
+ return tslib.__generator(this, function (_a) {
17350
+ switch (_a.label) {
17351
+ case 0: return [4 /*yield*/, QueueBucketServiceApiAxiosParamCreator(configuration).patchQueueBucket(queueId, id, body, options)];
17264
17352
  case 1:
17265
17353
  localVarAxiosArgs = _a.sent();
17266
17354
  return [2 /*return*/, function (axios, basePath) {
@@ -17278,16 +17366,15 @@
17278
17366
  * @summary ReadQueueRouting
17279
17367
  * @param {string} queueId
17280
17368
  * @param {string} id
17281
- * @param {string} [domainId]
17282
17369
  * @param {*} [options] Override http request option.
17283
17370
  * @throws {RequiredError}
17284
17371
  */
17285
- readQueueBucket: function (queueId, id, domainId, options) {
17372
+ readQueueBucket: function (queueId, id, options) {
17286
17373
  return tslib.__awaiter(this, void 0, void 0, function () {
17287
17374
  var localVarAxiosArgs;
17288
17375
  return tslib.__generator(this, function (_a) {
17289
17376
  switch (_a.label) {
17290
- case 0: return [4 /*yield*/, QueueBucketServiceApiAxiosParamCreator(configuration).readQueueBucket(queueId, id, domainId, options)];
17377
+ case 0: return [4 /*yield*/, QueueBucketServiceApiAxiosParamCreator(configuration).readQueueBucket(queueId, id, options)];
17291
17378
  case 1:
17292
17379
  localVarAxiosArgs = _a.sent();
17293
17380
  return [2 /*return*/, function (axios, basePath) {
@@ -17384,13 +17471,25 @@
17384
17471
  * @summary DeleteQueueRouting
17385
17472
  * @param {string} queueId
17386
17473
  * @param {string} id
17387
- * @param {string} [domainId]
17388
17474
  * @param {*} [options] Override http request option.
17389
17475
  * @throws {RequiredError}
17390
17476
  */
17391
- deleteQueueBucket: function (queueId, id, domainId, options) {
17477
+ deleteQueueBucket: function (queueId, id, options) {
17478
+ return QueueBucketServiceApiFp(configuration)
17479
+ .deleteQueueBucket(queueId, id, options)
17480
+ .then(function (request) { return request(axios, basePath); });
17481
+ },
17482
+ /**
17483
+ *
17484
+ * @param {string} queueId
17485
+ * @param {string} id
17486
+ * @param {EnginePatchQueueBucketRequest} body
17487
+ * @param {*} [options] Override http request option.
17488
+ * @throws {RequiredError}
17489
+ */
17490
+ patchQueueBucket: function (queueId, id, body, options) {
17392
17491
  return QueueBucketServiceApiFp(configuration)
17393
- .deleteQueueBucket(queueId, id, domainId, options)
17492
+ .patchQueueBucket(queueId, id, body, options)
17394
17493
  .then(function (request) { return request(axios, basePath); });
17395
17494
  },
17396
17495
  /**
@@ -17398,13 +17497,12 @@
17398
17497
  * @summary ReadQueueRouting
17399
17498
  * @param {string} queueId
17400
17499
  * @param {string} id
17401
- * @param {string} [domainId]
17402
17500
  * @param {*} [options] Override http request option.
17403
17501
  * @throws {RequiredError}
17404
17502
  */
17405
- readQueueBucket: function (queueId, id, domainId, options) {
17503
+ readQueueBucket: function (queueId, id, options) {
17406
17504
  return QueueBucketServiceApiFp(configuration)
17407
- .readQueueBucket(queueId, id, domainId, options)
17505
+ .readQueueBucket(queueId, id, options)
17408
17506
  .then(function (request) { return request(axios, basePath); });
17409
17507
  },
17410
17508
  /**
@@ -17472,15 +17570,29 @@
17472
17570
  * @summary DeleteQueueRouting
17473
17571
  * @param {string} queueId
17474
17572
  * @param {string} id
17475
- * @param {string} [domainId]
17476
17573
  * @param {*} [options] Override http request option.
17477
17574
  * @throws {RequiredError}
17478
17575
  * @memberof QueueBucketServiceApi
17479
17576
  */
17480
- QueueBucketServiceApi.prototype.deleteQueueBucket = function (queueId, id, domainId, options) {
17577
+ QueueBucketServiceApi.prototype.deleteQueueBucket = function (queueId, id, options) {
17481
17578
  var _this = this;
17482
17579
  return QueueBucketServiceApiFp(this.configuration)
17483
- .deleteQueueBucket(queueId, id, domainId, options)
17580
+ .deleteQueueBucket(queueId, id, options)
17581
+ .then(function (request) { return request(_this.axios, _this.basePath); });
17582
+ };
17583
+ /**
17584
+ *
17585
+ * @param {string} queueId
17586
+ * @param {string} id
17587
+ * @param {EnginePatchQueueBucketRequest} body
17588
+ * @param {*} [options] Override http request option.
17589
+ * @throws {RequiredError}
17590
+ * @memberof QueueBucketServiceApi
17591
+ */
17592
+ QueueBucketServiceApi.prototype.patchQueueBucket = function (queueId, id, body, options) {
17593
+ var _this = this;
17594
+ return QueueBucketServiceApiFp(this.configuration)
17595
+ .patchQueueBucket(queueId, id, body, options)
17484
17596
  .then(function (request) { return request(_this.axios, _this.basePath); });
17485
17597
  };
17486
17598
  /**
@@ -17488,15 +17600,14 @@
17488
17600
  * @summary ReadQueueRouting
17489
17601
  * @param {string} queueId
17490
17602
  * @param {string} id
17491
- * @param {string} [domainId]
17492
17603
  * @param {*} [options] Override http request option.
17493
17604
  * @throws {RequiredError}
17494
17605
  * @memberof QueueBucketServiceApi
17495
17606
  */
17496
- QueueBucketServiceApi.prototype.readQueueBucket = function (queueId, id, domainId, options) {
17607
+ QueueBucketServiceApi.prototype.readQueueBucket = function (queueId, id, options) {
17497
17608
  var _this = this;
17498
17609
  return QueueBucketServiceApiFp(this.configuration)
17499
- .readQueueBucket(queueId, id, domainId, options)
17610
+ .readQueueBucket(queueId, id, options)
17500
17611
  .then(function (request) { return request(_this.axios, _this.basePath); });
17501
17612
  };
17502
17613
  /**