webitel-sdk 23.12.2 → 23.12.6

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 (45) hide show
  1. package/bundles/index.esm.js +144 -9
  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 +157 -9
  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-activity-workspace-widget-response.js +13 -0
  10. package/esm2015/api/engine-activity-workspace-widget-response.js.map +1 -0
  11. package/esm2015/api/index.js +1 -0
  12. package/esm2015/api/index.js.map +1 -1
  13. package/esm2015/api/system-setting-service-api.js +42 -7
  14. package/esm2015/api/system-setting-service-api.js.map +1 -1
  15. package/esm2015/api/user-helper-service-api.js +87 -0
  16. package/esm2015/api/user-helper-service-api.js.map +1 -1
  17. package/esm2015/sip/webrtc/index.js +2 -2
  18. package/esm5/api/engine-activity-workspace-widget-response.js +13 -0
  19. package/esm5/api/engine-activity-workspace-widget-response.js.map +1 -0
  20. package/esm5/api/index.js +1 -0
  21. package/esm5/api/index.js.map +1 -1
  22. package/esm5/api/system-setting-service-api.js +42 -7
  23. package/esm5/api/system-setting-service-api.js.map +1 -1
  24. package/esm5/api/user-helper-service-api.js +100 -0
  25. package/esm5/api/user-helper-service-api.js.map +1 -1
  26. package/esm5/sip/webrtc/index.js +2 -2
  27. package/package.json +1 -1
  28. package/types/api/engine-activity-workspace-widget-response.d.ts +151 -0
  29. package/types/api/engine-activity-workspace-widget-response.d.ts.map +1 -0
  30. package/types/api/engine-agent-team.d.ts +6 -0
  31. package/types/api/engine-agent-team.d.ts.map +1 -1
  32. package/types/api/engine-create-agent-team-request.d.ts +6 -0
  33. package/types/api/engine-create-agent-team-request.d.ts.map +1 -1
  34. package/types/api/engine-history-call.d.ts +6 -0
  35. package/types/api/engine-history-call.d.ts.map +1 -1
  36. package/types/api/engine-update-agent-team-request.d.ts +6 -0
  37. package/types/api/engine-update-agent-team-request.d.ts.map +1 -1
  38. package/types/api/index.d.ts +1 -0
  39. package/types/api/index.d.ts.map +1 -1
  40. package/types/api/storage-upload-file-request-metadata.d.ts +6 -0
  41. package/types/api/storage-upload-file-request-metadata.d.ts.map +1 -1
  42. package/types/api/system-setting-service-api.d.ts +24 -4
  43. package/types/api/system-setting-service-api.d.ts.map +1 -1
  44. package/types/api/user-helper-service-api.d.ts +30 -0
  45. package/types/api/user-helper-service-api.d.ts.map +1 -1
@@ -39218,10 +39218,15 @@
39218
39218
  },
39219
39219
  /**
39220
39220
  *
39221
+ * @param {number} [page]
39222
+ * @param {number} [size]
39223
+ * @param {string} [q]
39224
+ * @param {string} [sort]
39225
+ * @param {Array<string>} [fields]
39221
39226
  * @param {*} [options] Override http request option.
39222
39227
  * @throws {RequiredError}
39223
39228
  */
39224
- searchAvailableSystemSetting: function (options) {
39229
+ searchAvailableSystemSetting: function (page, size, q, sort, fields, options) {
39225
39230
  if (options === void 0) { options = {}; }
39226
39231
  return tslib.__awaiter(_this, void 0, void 0, function () {
39227
39232
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
@@ -39251,6 +39256,21 @@
39251
39256
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
39252
39257
  _b.label = 5;
39253
39258
  case 5:
39259
+ if (page !== undefined) {
39260
+ localVarQueryParameter['page'] = page;
39261
+ }
39262
+ if (size !== undefined) {
39263
+ localVarQueryParameter['size'] = size;
39264
+ }
39265
+ if (q !== undefined) {
39266
+ localVarQueryParameter['q'] = q;
39267
+ }
39268
+ if (sort !== undefined) {
39269
+ localVarQueryParameter['sort'] = sort;
39270
+ }
39271
+ if (fields) {
39272
+ localVarQueryParameter['fields'] = fields;
39273
+ }
39254
39274
  localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
39255
39275
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
39256
39276
  delete localVarUrlObj.search;
@@ -39503,15 +39523,20 @@
39503
39523
  },
39504
39524
  /**
39505
39525
  *
39526
+ * @param {number} [page]
39527
+ * @param {number} [size]
39528
+ * @param {string} [q]
39529
+ * @param {string} [sort]
39530
+ * @param {Array<string>} [fields]
39506
39531
  * @param {*} [options] Override http request option.
39507
39532
  * @throws {RequiredError}
39508
39533
  */
39509
- searchAvailableSystemSetting: function (options) {
39534
+ searchAvailableSystemSetting: function (page, size, q, sort, fields, options) {
39510
39535
  return tslib.__awaiter(this, void 0, void 0, function () {
39511
39536
  var localVarAxiosArgs;
39512
39537
  return tslib.__generator(this, function (_a) {
39513
39538
  switch (_a.label) {
39514
- case 0: return [4 /*yield*/, SystemSettingServiceApiAxiosParamCreator(configuration).searchAvailableSystemSetting(options)];
39539
+ case 0: return [4 /*yield*/, SystemSettingServiceApiAxiosParamCreator(configuration).searchAvailableSystemSetting(page, size, q, sort, fields, options)];
39515
39540
  case 1:
39516
39541
  localVarAxiosArgs = _a.sent();
39517
39542
  return [2 /*return*/, function (axios, basePath) {
@@ -39632,12 +39657,17 @@
39632
39657
  },
39633
39658
  /**
39634
39659
  *
39660
+ * @param {number} [page]
39661
+ * @param {number} [size]
39662
+ * @param {string} [q]
39663
+ * @param {string} [sort]
39664
+ * @param {Array<string>} [fields]
39635
39665
  * @param {*} [options] Override http request option.
39636
39666
  * @throws {RequiredError}
39637
39667
  */
39638
- searchAvailableSystemSetting: function (options) {
39668
+ searchAvailableSystemSetting: function (page, size, q, sort, fields, options) {
39639
39669
  return SystemSettingServiceApiFp(configuration)
39640
- .searchAvailableSystemSetting(options)
39670
+ .searchAvailableSystemSetting(page, size, q, sort, fields, options)
39641
39671
  .then(function (request) { return request(axios, basePath); });
39642
39672
  },
39643
39673
  /**
@@ -39735,14 +39765,19 @@
39735
39765
  };
39736
39766
  /**
39737
39767
  *
39768
+ * @param {number} [page]
39769
+ * @param {number} [size]
39770
+ * @param {string} [q]
39771
+ * @param {string} [sort]
39772
+ * @param {Array<string>} [fields]
39738
39773
  * @param {*} [options] Override http request option.
39739
39774
  * @throws {RequiredError}
39740
39775
  * @memberof SystemSettingServiceApi
39741
39776
  */
39742
- SystemSettingServiceApi.prototype.searchAvailableSystemSetting = function (options) {
39777
+ SystemSettingServiceApi.prototype.searchAvailableSystemSetting = function (page, size, q, sort, fields, options) {
39743
39778
  var _this = this;
39744
39779
  return SystemSettingServiceApiFp(this.configuration)
39745
- .searchAvailableSystemSetting(options)
39780
+ .searchAvailableSystemSetting(page, size, q, sort, fields, options)
39746
39781
  .then(function (request) { return request(_this.axios, _this.basePath); });
39747
39782
  };
39748
39783
  /**
@@ -41913,6 +41948,58 @@
41913
41948
  var UserHelperServiceApiAxiosParamCreator = function (configuration) {
41914
41949
  var _this = this;
41915
41950
  return {
41951
+ /**
41952
+ *
41953
+ * @param {Array<string>} [fields]
41954
+ * @param {*} [options] Override http request option.
41955
+ * @throws {RequiredError}
41956
+ */
41957
+ activityWorkspaceWidget: function (fields, options) {
41958
+ if (options === void 0) { options = {}; }
41959
+ return tslib.__awaiter(_this, void 0, void 0, function () {
41960
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
41961
+ return tslib.__generator(this, function (_b) {
41962
+ switch (_b.label) {
41963
+ case 0:
41964
+ localVarPath = "/user/widget/activity/today";
41965
+ localVarUrlObj = globalImportUrl.parse(localVarPath, true);
41966
+ if (configuration) {
41967
+ baseOptions = configuration.baseOptions;
41968
+ }
41969
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'GET' }, baseOptions), options);
41970
+ localVarHeaderParameter = {};
41971
+ localVarQueryParameter = {};
41972
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
41973
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
41974
+ return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
41975
+ case 1:
41976
+ _a = _b.sent();
41977
+ return [3 /*break*/, 4];
41978
+ case 2: return [4 /*yield*/, configuration.apiKey];
41979
+ case 3:
41980
+ _a = _b.sent();
41981
+ _b.label = 4;
41982
+ case 4:
41983
+ localVarApiKeyValue = _a;
41984
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
41985
+ _b.label = 5;
41986
+ case 5:
41987
+ if (fields) {
41988
+ localVarQueryParameter['fields'] = fields;
41989
+ }
41990
+ localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
41991
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
41992
+ delete localVarUrlObj.search;
41993
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41994
+ localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
41995
+ return [2 /*return*/, {
41996
+ url: globalImportUrl.format(localVarUrlObj),
41997
+ options: localVarRequestOptions,
41998
+ }];
41999
+ }
42000
+ });
42001
+ });
42002
+ },
41916
42003
  /**
41917
42004
  *
41918
42005
  * @param {string} type
@@ -41974,6 +42061,30 @@
41974
42061
  */
41975
42062
  var UserHelperServiceApiFp = function (configuration) {
41976
42063
  return {
42064
+ /**
42065
+ *
42066
+ * @param {Array<string>} [fields]
42067
+ * @param {*} [options] Override http request option.
42068
+ * @throws {RequiredError}
42069
+ */
42070
+ activityWorkspaceWidget: function (fields, options) {
42071
+ return tslib.__awaiter(this, void 0, void 0, function () {
42072
+ var localVarAxiosArgs;
42073
+ return tslib.__generator(this, function (_a) {
42074
+ switch (_a.label) {
42075
+ case 0: return [4 /*yield*/, UserHelperServiceApiAxiosParamCreator(configuration).activityWorkspaceWidget(fields, options)];
42076
+ case 1:
42077
+ localVarAxiosArgs = _a.sent();
42078
+ return [2 /*return*/, function (axios, basePath) {
42079
+ if (axios === void 0) { axios = globalAxios; }
42080
+ if (basePath === void 0) { basePath = BASE_PATH; }
42081
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
42082
+ return axios.request(axiosRequestArgs);
42083
+ }];
42084
+ }
42085
+ });
42086
+ });
42087
+ },
41977
42088
  /**
41978
42089
  *
41979
42090
  * @param {string} type
@@ -42006,6 +42117,17 @@
42006
42117
  */
42007
42118
  var UserHelperServiceApiFactory = function (configuration, basePath, axios) {
42008
42119
  return {
42120
+ /**
42121
+ *
42122
+ * @param {Array<string>} [fields]
42123
+ * @param {*} [options] Override http request option.
42124
+ * @throws {RequiredError}
42125
+ */
42126
+ activityWorkspaceWidget: function (fields, options) {
42127
+ return UserHelperServiceApiFp(configuration)
42128
+ .activityWorkspaceWidget(fields, options)
42129
+ .then(function (request) { return request(axios, basePath); });
42130
+ },
42009
42131
  /**
42010
42132
  *
42011
42133
  * @param {string} type
@@ -42030,6 +42152,19 @@
42030
42152
  function UserHelperServiceApi() {
42031
42153
  return _super !== null && _super.apply(this, arguments) || this;
42032
42154
  }
42155
+ /**
42156
+ *
42157
+ * @param {Array<string>} [fields]
42158
+ * @param {*} [options] Override http request option.
42159
+ * @throws {RequiredError}
42160
+ * @memberof UserHelperServiceApi
42161
+ */
42162
+ UserHelperServiceApi.prototype.activityWorkspaceWidget = function (fields, options) {
42163
+ var _this = this;
42164
+ return UserHelperServiceApiFp(this.configuration)
42165
+ .activityWorkspaceWidget(fields, options)
42166
+ .then(function (request) { return request(_this.axios, _this.basePath); });
42167
+ };
42033
42168
  /**
42034
42169
  *
42035
42170
  * @param {string} type
@@ -43510,6 +43645,19 @@
43510
43645
  * Do not edit the class manually.
43511
43646
  */
43512
43647
 
43648
+ // tslint:disable
43649
+ /**
43650
+ * Webitel API
43651
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
43652
+ *
43653
+ * The version of the OpenAPI document: 23.09.0
43654
+ * Contact: support@webitel.com
43655
+ *
43656
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
43657
+ * https://openapi-generator.tech
43658
+ * Do not edit the class manually.
43659
+ */
43660
+
43513
43661
  // tslint:disable
43514
43662
  (function (EngineAuditQuestionType) {
43515
43663
  EngineAuditQuestionType["Default"] = "question_default";
@@ -48241,8 +48389,8 @@
48241
48389
  // use_preloaded_route: true,
48242
48390
  display_name: sipConf.display_name,
48243
48391
  register_expires: sipConf.register_expires || 90,
48244
- connection_recovery_min_interval: 5,
48245
- connection_recovery_max_interval: 60,
48392
+ connection_recovery_min_interval: 2,
48393
+ connection_recovery_max_interval: 30,
48246
48394
  };
48247
48395
  ua = (this.ua = new JsSip.UA(configuration));
48248
48396
  // ua.on('connected', (e: object) => {})