webitel-sdk 23.12.13 → 23.12.15

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 (37) hide show
  1. package/bundles/index.esm.js +105 -0
  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 +118 -0
  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/call-service-api.js +102 -0
  10. package/esm2015/api/call-service-api.js.map +1 -1
  11. package/esm2015/api/engine-redial-call-request.js +14 -0
  12. package/esm2015/api/engine-redial-call-request.js.map +1 -0
  13. package/esm2015/api/engine-system-setting-name.js +1 -0
  14. package/esm2015/api/engine-system-setting-name.js.map +1 -1
  15. package/esm2015/api/index.js +1 -0
  16. package/esm2015/api/index.js.map +1 -1
  17. package/esm5/api/call-service-api.js +115 -0
  18. package/esm5/api/call-service-api.js.map +1 -1
  19. package/esm5/api/engine-redial-call-request.js +14 -0
  20. package/esm5/api/engine-redial-call-request.js.map +1 -0
  21. package/esm5/api/engine-system-setting-name.js +1 -0
  22. package/esm5/api/engine-system-setting-name.js.map +1 -1
  23. package/esm5/api/index.js +1 -0
  24. package/esm5/api/index.js.map +1 -1
  25. package/package.json +1 -1
  26. package/types/api/call-service-api.d.ts +34 -0
  27. package/types/api/call-service-api.d.ts.map +1 -1
  28. package/types/api/engine-delete-members-request.d.ts +6 -0
  29. package/types/api/engine-delete-members-request.d.ts.map +1 -1
  30. package/types/api/engine-patch-history-call-request.d.ts +6 -0
  31. package/types/api/engine-patch-history-call-request.d.ts.map +1 -1
  32. package/types/api/engine-redial-call-request.d.ts +25 -0
  33. package/types/api/engine-redial-call-request.d.ts.map +1 -0
  34. package/types/api/engine-system-setting-name.d.ts +2 -1
  35. package/types/api/engine-system-setting-name.d.ts.map +1 -1
  36. package/types/api/index.d.ts +1 -0
  37. package/types/api/index.d.ts.map +1 -1
@@ -9426,6 +9426,70 @@
9426
9426
  });
9427
9427
  });
9428
9428
  },
9429
+ /**
9430
+ *
9431
+ * @param {string} callId
9432
+ * @param {EngineRedialCallRequest} body
9433
+ * @param {*} [options] Override http request option.
9434
+ * @throws {RequiredError}
9435
+ */
9436
+ redialCall: function (callId, body, options) {
9437
+ if (options === void 0) { options = {}; }
9438
+ return tslib.__awaiter(_this, void 0, void 0, function () {
9439
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
9440
+ return tslib.__generator(this, function (_b) {
9441
+ switch (_b.label) {
9442
+ case 0:
9443
+ // verify required parameter 'callId' is not null or undefined
9444
+ if (callId === null || callId === undefined) {
9445
+ throw new RequiredError('callId', 'Required parameter callId was null or undefined when calling redialCall.');
9446
+ }
9447
+ // verify required parameter 'body' is not null or undefined
9448
+ if (body === null || body === undefined) {
9449
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling redialCall.');
9450
+ }
9451
+ localVarPath = "/calls/history/{call_id}/redial".replace("{".concat('call_id', "}"), encodeURIComponent(String(callId)));
9452
+ localVarUrlObj = globalImportUrl.parse(localVarPath, true);
9453
+ if (configuration) {
9454
+ baseOptions = configuration.baseOptions;
9455
+ }
9456
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'POST' }, baseOptions), options);
9457
+ localVarHeaderParameter = {};
9458
+ localVarQueryParameter = {};
9459
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
9460
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
9461
+ return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
9462
+ case 1:
9463
+ _a = _b.sent();
9464
+ return [3 /*break*/, 4];
9465
+ case 2: return [4 /*yield*/, configuration.apiKey];
9466
+ case 3:
9467
+ _a = _b.sent();
9468
+ _b.label = 4;
9469
+ case 4:
9470
+ localVarApiKeyValue = _a;
9471
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
9472
+ _b.label = 5;
9473
+ case 5:
9474
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9475
+ localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
9476
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
9477
+ delete localVarUrlObj.search;
9478
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9479
+ localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9480
+ needsSerialization = typeof body !== 'string' ||
9481
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
9482
+ localVarRequestOptions.data = needsSerialization
9483
+ ? JSON.stringify(body !== undefined ? body : {})
9484
+ : body || '';
9485
+ return [2 /*return*/, {
9486
+ url: globalImportUrl.format(localVarUrlObj),
9487
+ options: localVarRequestOptions,
9488
+ }];
9489
+ }
9490
+ });
9491
+ });
9492
+ },
9429
9493
  /**
9430
9494
  *
9431
9495
  * @param {number} [page]
@@ -10405,6 +10469,31 @@
10405
10469
  });
10406
10470
  });
10407
10471
  },
10472
+ /**
10473
+ *
10474
+ * @param {string} callId
10475
+ * @param {EngineRedialCallRequest} body
10476
+ * @param {*} [options] Override http request option.
10477
+ * @throws {RequiredError}
10478
+ */
10479
+ redialCall: function (callId, body, options) {
10480
+ return tslib.__awaiter(this, void 0, void 0, function () {
10481
+ var localVarAxiosArgs;
10482
+ return tslib.__generator(this, function (_a) {
10483
+ switch (_a.label) {
10484
+ case 0: return [4 /*yield*/, CallServiceApiAxiosParamCreator(configuration).redialCall(callId, body, options)];
10485
+ case 1:
10486
+ localVarAxiosArgs = _a.sent();
10487
+ return [2 /*return*/, function (axios, basePath) {
10488
+ if (axios === void 0) { axios = globalAxios; }
10489
+ if (basePath === void 0) { basePath = BASE_PATH; }
10490
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
10491
+ return axios.request(axiosRequestArgs);
10492
+ }];
10493
+ }
10494
+ });
10495
+ });
10496
+ },
10408
10497
  /**
10409
10498
  *
10410
10499
  * @param {number} [page]
@@ -10783,6 +10872,18 @@
10783
10872
  .readCall(id, domainId, options)
10784
10873
  .then(function (request) { return request(axios, basePath); });
10785
10874
  },
10875
+ /**
10876
+ *
10877
+ * @param {string} callId
10878
+ * @param {EngineRedialCallRequest} body
10879
+ * @param {*} [options] Override http request option.
10880
+ * @throws {RequiredError}
10881
+ */
10882
+ redialCall: function (callId, body, options) {
10883
+ return CallServiceApiFp(configuration)
10884
+ .redialCall(callId, body, options)
10885
+ .then(function (request) { return request(axios, basePath); });
10886
+ },
10786
10887
  /**
10787
10888
  *
10788
10889
  * @param {number} [page]
@@ -11112,6 +11213,20 @@
11112
11213
  .readCall(id, domainId, options)
11113
11214
  .then(function (request) { return request(_this.axios, _this.basePath); });
11114
11215
  };
11216
+ /**
11217
+ *
11218
+ * @param {string} callId
11219
+ * @param {EngineRedialCallRequest} body
11220
+ * @param {*} [options] Override http request option.
11221
+ * @throws {RequiredError}
11222
+ * @memberof CallServiceApi
11223
+ */
11224
+ CallServiceApi.prototype.redialCall = function (callId, body, options) {
11225
+ var _this = this;
11226
+ return CallServiceApiFp(this.configuration)
11227
+ .redialCall(callId, body, options)
11228
+ .then(function (request) { return request(_this.axios, _this.basePath); });
11229
+ };
11115
11230
  /**
11116
11231
  *
11117
11232
  * @param {number} [page]
@@ -44819,6 +44934,8 @@
44819
44934
 
44820
44935
  // tslint:disable
44821
44936
 
44937
+ // tslint:disable
44938
+
44822
44939
  // tslint:disable
44823
44940
  (function (EngineRoutingSchemaType) {
44824
44941
  EngineRoutingSchemaType["Default"] = "default";
@@ -44851,6 +44968,7 @@
44851
44968
  EngineSystemSettingName["EmptySystemSettingsName"] = "empty_system_settings_name";
44852
44969
  EngineSystemSettingName["EnableOmnichannel"] = "enable_omnichannel";
44853
44970
  EngineSystemSettingName["MemberChunkSize"] = "member_chunk_size";
44971
+ EngineSystemSettingName["AmdCancelNotHuman"] = "amd_cancel_not_human";
44854
44972
  })(exports.EngineSystemSettingName || (exports.EngineSystemSettingName = {}));
44855
44973
 
44856
44974
  // tslint:disable