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
@@ -8449,6 +8449,66 @@ const CallServiceApiAxiosParamCreator = function (configuration) {
8449
8449
  options: localVarRequestOptions,
8450
8450
  };
8451
8451
  },
8452
+ /**
8453
+ *
8454
+ * @param {string} callId
8455
+ * @param {EngineRedialCallRequest} body
8456
+ * @param {*} [options] Override http request option.
8457
+ * @throws {RequiredError}
8458
+ */
8459
+ redialCall: async (callId, body, options = {}) => {
8460
+ // verify required parameter 'callId' is not null or undefined
8461
+ if (callId === null || callId === undefined) {
8462
+ throw new RequiredError('callId', 'Required parameter callId was null or undefined when calling redialCall.');
8463
+ }
8464
+ // verify required parameter 'body' is not null or undefined
8465
+ if (body === null || body === undefined) {
8466
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling redialCall.');
8467
+ }
8468
+ const localVarPath = `/calls/history/{call_id}/redial`.replace(`{${'call_id'}}`, encodeURIComponent(String(callId)));
8469
+ const localVarUrlObj = parse(localVarPath, true);
8470
+ let baseOptions;
8471
+ if (configuration) {
8472
+ baseOptions = configuration.baseOptions;
8473
+ }
8474
+ const localVarRequestOptions = {
8475
+ method: 'POST',
8476
+ ...baseOptions,
8477
+ ...options,
8478
+ };
8479
+ const localVarHeaderParameter = {};
8480
+ const localVarQueryParameter = {};
8481
+ // authentication AccessToken required
8482
+ if (configuration && configuration.apiKey) {
8483
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
8484
+ ? await configuration.apiKey('X-Webitel-Access')
8485
+ : await configuration.apiKey;
8486
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
8487
+ }
8488
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8489
+ localVarUrlObj.query = {
8490
+ ...localVarUrlObj.query,
8491
+ ...localVarQueryParameter,
8492
+ ...options.query,
8493
+ };
8494
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
8495
+ delete localVarUrlObj.search;
8496
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8497
+ localVarRequestOptions.headers = {
8498
+ ...localVarHeaderParameter,
8499
+ ...headersFromBaseOptions,
8500
+ ...options.headers,
8501
+ };
8502
+ const needsSerialization = typeof body !== 'string' ||
8503
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
8504
+ localVarRequestOptions.data = needsSerialization
8505
+ ? JSON.stringify(body !== undefined ? body : {})
8506
+ : body || '';
8507
+ return {
8508
+ url: format(localVarUrlObj),
8509
+ options: localVarRequestOptions,
8510
+ };
8511
+ },
8452
8512
  /**
8453
8513
  *
8454
8514
  * @param {number} [page]
@@ -9308,6 +9368,23 @@ const CallServiceApiFp = function (configuration) {
9308
9368
  return axios.request(axiosRequestArgs);
9309
9369
  };
9310
9370
  },
9371
+ /**
9372
+ *
9373
+ * @param {string} callId
9374
+ * @param {EngineRedialCallRequest} body
9375
+ * @param {*} [options] Override http request option.
9376
+ * @throws {RequiredError}
9377
+ */
9378
+ async redialCall(callId, body, options) {
9379
+ const localVarAxiosArgs = await CallServiceApiAxiosParamCreator(configuration).redialCall(callId, body, options);
9380
+ return (axios = globalAxios, basePath = BASE_PATH) => {
9381
+ const axiosRequestArgs = {
9382
+ ...localVarAxiosArgs.options,
9383
+ url: basePath + localVarAxiosArgs.url,
9384
+ };
9385
+ return axios.request(axiosRequestArgs);
9386
+ };
9387
+ },
9311
9388
  /**
9312
9389
  *
9313
9390
  * @param {number} [page]
@@ -9638,6 +9715,18 @@ const CallServiceApiFactory = function (configuration, basePath, axios) {
9638
9715
  .readCall(id, domainId, options)
9639
9716
  .then((request) => request(axios, basePath));
9640
9717
  },
9718
+ /**
9719
+ *
9720
+ * @param {string} callId
9721
+ * @param {EngineRedialCallRequest} body
9722
+ * @param {*} [options] Override http request option.
9723
+ * @throws {RequiredError}
9724
+ */
9725
+ redialCall(callId, body, options) {
9726
+ return CallServiceApiFp(configuration)
9727
+ .redialCall(callId, body, options)
9728
+ .then((request) => request(axios, basePath));
9729
+ },
9641
9730
  /**
9642
9731
  *
9643
9732
  * @param {number} [page]
@@ -9951,6 +10040,19 @@ class CallServiceApi extends BaseAPI {
9951
10040
  .readCall(id, domainId, options)
9952
10041
  .then((request) => request(this.axios, this.basePath));
9953
10042
  }
10043
+ /**
10044
+ *
10045
+ * @param {string} callId
10046
+ * @param {EngineRedialCallRequest} body
10047
+ * @param {*} [options] Override http request option.
10048
+ * @throws {RequiredError}
10049
+ * @memberof CallServiceApi
10050
+ */
10051
+ redialCall(callId, body, options) {
10052
+ return CallServiceApiFp(this.configuration)
10053
+ .redialCall(callId, body, options)
10054
+ .then((request) => request(this.axios, this.basePath));
10055
+ }
9954
10056
  /**
9955
10057
  *
9956
10058
  * @param {number} [page]
@@ -40233,6 +40335,8 @@ var EnginePresetQuerySection;
40233
40335
 
40234
40336
  // tslint:disable
40235
40337
 
40338
+ // tslint:disable
40339
+
40236
40340
  // tslint:disable
40237
40341
  /**
40238
40342
  * Webitel API
@@ -40299,6 +40403,7 @@ var EngineSystemSettingName;
40299
40403
  EngineSystemSettingName["EmptySystemSettingsName"] = "empty_system_settings_name";
40300
40404
  EngineSystemSettingName["EnableOmnichannel"] = "enable_omnichannel";
40301
40405
  EngineSystemSettingName["MemberChunkSize"] = "member_chunk_size";
40406
+ EngineSystemSettingName["AmdCancelNotHuman"] = "amd_cancel_not_human";
40302
40407
  })(EngineSystemSettingName || (EngineSystemSettingName = {}));
40303
40408
 
40304
40409
  // tslint:disable