webitel-sdk 23.7.7 → 23.7.8

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 (53) hide show
  1. package/bundles/index.esm.js +1123 -129
  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 +1413 -305
  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/contacts-api.js +15 -15
  10. package/esm2015/api/contacts-api.js.map +1 -1
  11. package/esm2015/api/index.js +2 -0
  12. package/esm2015/api/index.js.map +1 -1
  13. package/esm2015/api/logger-action.js +8 -8
  14. package/esm2015/api/logger-service-api.js +8 -8
  15. package/esm2015/api/managers-api.js +984 -0
  16. package/esm2015/api/managers-api.js.map +1 -0
  17. package/esm2015/api/newupdate-of-the-manager-link.js +13 -0
  18. package/esm2015/api/newupdate-of-the-manager-link.js.map +1 -0
  19. package/esm2015/api/newupdate-of-the-manager-link1.js +13 -0
  20. package/esm2015/api/newupdate-of-the-manager-link1.js.map +1 -0
  21. package/esm2015/api.js +1 -0
  22. package/esm2015/api.js.map +1 -1
  23. package/esm5/api/contacts-api.js +15 -15
  24. package/esm5/api/contacts-api.js.map +1 -1
  25. package/esm5/api/index.js +2 -0
  26. package/esm5/api/index.js.map +1 -1
  27. package/esm5/api/logger-action.js +8 -8
  28. package/esm5/api/logger-service-api.js +8 -8
  29. package/esm5/api/managers-api.js +1096 -0
  30. package/esm5/api/managers-api.js.map +1 -0
  31. package/esm5/api/newupdate-of-the-manager-link.js +13 -0
  32. package/esm5/api/newupdate-of-the-manager-link.js.map +1 -0
  33. package/esm5/api/newupdate-of-the-manager-link1.js +13 -0
  34. package/esm5/api/newupdate-of-the-manager-link1.js.map +1 -0
  35. package/esm5/api.js +1 -0
  36. package/esm5/api.js.map +1 -1
  37. package/package.json +1 -1
  38. package/types/api/contacts-api.d.ts +8 -8
  39. package/types/api/contacts-api.d.ts.map +1 -1
  40. package/types/api/engine-agent-today-statistics-response.d.ts +12 -0
  41. package/types/api/engine-agent-today-statistics-response.d.ts.map +1 -1
  42. package/types/api/index.d.ts +2 -0
  43. package/types/api/index.d.ts.map +1 -1
  44. package/types/api/logger-action.d.ts +6 -6
  45. package/types/api/logger-service-api.d.ts +16 -16
  46. package/types/api/managers-api.d.ts +398 -0
  47. package/types/api/managers-api.d.ts.map +1 -0
  48. package/types/api/newupdate-of-the-manager-link.d.ts +32 -0
  49. package/types/api/newupdate-of-the-manager-link.d.ts.map +1 -0
  50. package/types/api/newupdate-of-the-manager-link1.d.ts +32 -0
  51. package/types/api/newupdate-of-the-manager-link1.d.ts.map +1 -0
  52. package/types/api.d.ts +1 -0
  53. package/types/api.d.ts.map +1 -1
@@ -13725,24 +13725,24 @@
13725
13725
  /**
13726
13726
  *
13727
13727
  * @summary Locate Contact source
13728
- * @param {string} etag The Contact source IDentifier. Accept: `etag` (obsolete+) or `id`.
13728
+ * @param {string} id The Contact source IDentifier. Accept: `etag` (obsolete+) or `id`.
13729
13729
  * @param {Array<string>} [fields] Source Fields to return into result.
13730
13730
  * @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of a special access mode to the Source. - READ: Can &#x60;fetch&#x60; record. [GET] - WRITE: Can &#x60;update&#x60; record. [PUT|PATCH] - DELETE: Can &#x60;delete&#x60; record. [DELETE]
13731
13731
  * @param {*} [options] Override http request option.
13732
13732
  * @throws {RequiredError}
13733
13733
  */
13734
- locateContact: function (etag, fields, mode, options) {
13734
+ locateContact: function (id, fields, mode, options) {
13735
13735
  if (options === void 0) { options = {}; }
13736
13736
  return tslib.__awaiter(_this, void 0, void 0, function () {
13737
13737
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
13738
13738
  return tslib.__generator(this, function (_b) {
13739
13739
  switch (_b.label) {
13740
13740
  case 0:
13741
- // verify required parameter 'etag' is not null or undefined
13742
- if (etag === null || etag === undefined) {
13743
- throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling locateContact.');
13741
+ // verify required parameter 'id' is not null or undefined
13742
+ if (id === null || id === undefined) {
13743
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling locateContact.');
13744
13744
  }
13745
- localVarPath = "/contacts/{etag}".replace("{" + 'etag' + "}", encodeURIComponent(String(etag)));
13745
+ localVarPath = "/contacts/{id}".replace("{" + 'id' + "}", encodeURIComponent(String(id)));
13746
13746
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
13747
13747
  if (configuration) {
13748
13748
  baseOptions = configuration.baseOptions;
@@ -13997,18 +13997,18 @@
13997
13997
  /**
13998
13998
  *
13999
13999
  * @summary Locate Contact source
14000
- * @param {string} etag The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
14000
+ * @param {string} id The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
14001
14001
  * @param {Array<string>} [fields] Source Fields to return into result.
14002
14002
  * @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of a special access mode to the Source. - READ: Can &#x60;fetch&#x60; record. [GET] - WRITE: Can &#x60;update&#x60; record. [PUT|PATCH] - DELETE: Can &#x60;delete&#x60; record. [DELETE]
14003
14003
  * @param {*} [options] Override http request option.
14004
14004
  * @throws {RequiredError}
14005
14005
  */
14006
- locateContact: function (etag, fields, mode, options) {
14006
+ locateContact: function (id, fields, mode, options) {
14007
14007
  return tslib.__awaiter(this, void 0, void 0, function () {
14008
14008
  var localVarAxiosArgs;
14009
14009
  return tslib.__generator(this, function (_a) {
14010
14010
  switch (_a.label) {
14011
- case 0: return [4 /*yield*/, ContactsApiAxiosParamCreator(configuration).locateContact(etag, fields, mode, options)];
14011
+ case 0: return [4 /*yield*/, ContactsApiAxiosParamCreator(configuration).locateContact(id, fields, mode, options)];
14012
14012
  case 1:
14013
14013
  localVarAxiosArgs = _a.sent();
14014
14014
  return [2 /*return*/, function (axios, basePath) {
@@ -14117,15 +14117,15 @@
14117
14117
  /**
14118
14118
  *
14119
14119
  * @summary Locate Contact source
14120
- * @param {string} etag The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
14120
+ * @param {string} id The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
14121
14121
  * @param {Array<string>} [fields] Source Fields to return into result.
14122
14122
  * @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of a special access mode to the Source. - READ: Can &#x60;fetch&#x60; record. [GET] - WRITE: Can &#x60;update&#x60; record. [PUT|PATCH] - DELETE: Can &#x60;delete&#x60; record. [DELETE]
14123
14123
  * @param {*} [options] Override http request option.
14124
14124
  * @throws {RequiredError}
14125
14125
  */
14126
- locateContact: function (etag, fields, mode, options) {
14126
+ locateContact: function (id, fields, mode, options) {
14127
14127
  return ContactsApiFp(configuration)
14128
- .locateContact(etag, fields, mode, options)
14128
+ .locateContact(id, fields, mode, options)
14129
14129
  .then(function (request) { return request(axios, basePath); });
14130
14130
  },
14131
14131
  /**
@@ -14207,17 +14207,17 @@
14207
14207
  /**
14208
14208
  *
14209
14209
  * @summary Locate Contact source
14210
- * @param {string} etag The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
14210
+ * @param {string} id The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
14211
14211
  * @param {Array<string>} [fields] Source Fields to return into result.
14212
14212
  * @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of a special access mode to the Source. - READ: Can &#x60;fetch&#x60; record. [GET] - WRITE: Can &#x60;update&#x60; record. [PUT|PATCH] - DELETE: Can &#x60;delete&#x60; record. [DELETE]
14213
14213
  * @param {*} [options] Override http request option.
14214
14214
  * @throws {RequiredError}
14215
14215
  * @memberof ContactsApi
14216
14216
  */
14217
- ContactsApi.prototype.locateContact = function (etag, fields, mode, options) {
14217
+ ContactsApi.prototype.locateContact = function (id, fields, mode, options) {
14218
14218
  var _this = this;
14219
14219
  return ContactsApiFp(this.configuration)
14220
- .locateContact(etag, fields, mode, options)
14220
+ .locateContact(id, fields, mode, options)
14221
14221
  .then(function (request) { return request(_this.axios, _this.basePath); });
14222
14222
  };
14223
14223
  /**
@@ -19520,7 +19520,7 @@
19520
19520
  * @param {Array<string>} [fields]
19521
19521
  * @param {number} [userId]
19522
19522
  * @param {string} [userName]
19523
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action]
19523
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action]
19524
19524
  * @param {string} [userIp]
19525
19525
  * @param {string} [dateFrom]
19526
19526
  * @param {string} [dateTo]
@@ -19617,7 +19617,7 @@
19617
19617
  * @param {Array<string>} [fields]
19618
19618
  * @param {number} [objectId]
19619
19619
  * @param {string} [objectName]
19620
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
19620
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action] GENERAL filters.
19621
19621
  * @param {string} [userIp]
19622
19622
  * @param {string} [dateFrom]
19623
19623
  * @param {string} [dateTo]
@@ -19722,7 +19722,7 @@
19722
19722
  * @param {Array<string>} [fields]
19723
19723
  * @param {number} [userId]
19724
19724
  * @param {string} [userName]
19725
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action]
19725
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action]
19726
19726
  * @param {string} [userIp]
19727
19727
  * @param {string} [dateFrom]
19728
19728
  * @param {string} [dateTo]
@@ -19757,7 +19757,7 @@
19757
19757
  * @param {Array<string>} [fields]
19758
19758
  * @param {number} [objectId]
19759
19759
  * @param {string} [objectName]
19760
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
19760
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action] GENERAL filters.
19761
19761
  * @param {string} [userIp]
19762
19762
  * @param {string} [dateFrom]
19763
19763
  * @param {string} [dateTo]
@@ -19800,7 +19800,7 @@
19800
19800
  * @param {Array<string>} [fields]
19801
19801
  * @param {number} [userId]
19802
19802
  * @param {string} [userName]
19803
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action]
19803
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action]
19804
19804
  * @param {string} [userIp]
19805
19805
  * @param {string} [dateFrom]
19806
19806
  * @param {string} [dateTo]
@@ -19822,7 +19822,7 @@
19822
19822
  * @param {Array<string>} [fields]
19823
19823
  * @param {number} [objectId]
19824
19824
  * @param {string} [objectName]
19825
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
19825
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action] GENERAL filters.
19826
19826
  * @param {string} [userIp]
19827
19827
  * @param {string} [dateFrom]
19828
19828
  * @param {string} [dateTo]
@@ -19857,7 +19857,7 @@
19857
19857
  * @param {Array<string>} [fields]
19858
19858
  * @param {number} [userId]
19859
19859
  * @param {string} [userName]
19860
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action]
19860
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action]
19861
19861
  * @param {string} [userIp]
19862
19862
  * @param {string} [dateFrom]
19863
19863
  * @param {string} [dateTo]
@@ -19881,7 +19881,7 @@
19881
19881
  * @param {Array<string>} [fields]
19882
19882
  * @param {number} [objectId]
19883
19883
  * @param {string} [objectName]
19884
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
19884
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action] GENERAL filters.
19885
19885
  * @param {string} [userIp]
19886
19886
  * @param {string} [dateFrom]
19887
19887
  * @param {string} [dateTo]
@@ -19900,32 +19900,39 @@
19900
19900
 
19901
19901
  // tslint:disable
19902
19902
  /**
19903
- * MediaFileServiceApi - axios parameter creator
19903
+ * ManagersApi - axios parameter creator
19904
19904
  * @export
19905
19905
  */
19906
- var MediaFileServiceApiAxiosParamCreator = function (configuration) {
19906
+ var ManagersApiAxiosParamCreator = function (configuration) {
19907
19907
  var _this = this;
19908
19908
  return {
19909
19909
  /**
19910
19910
  *
19911
- * @summary Remove MediaFile
19912
- * @param {string} id
19913
- * @param {string} [domainId]
19911
+ * @summary Remove the contact\'s manager address link
19912
+ * @param {string} contactId Contact ID associated with.
19913
+ * @param {string} etag Unique ID to remove.
19914
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
19914
19915
  * @param {*} [options] Override http request option.
19915
19916
  * @throws {RequiredError}
19916
19917
  */
19917
- deleteMediaFile: function (id, domainId, options) {
19918
+ deleteManager: function (contactId, etag, fields, options) {
19918
19919
  if (options === void 0) { options = {}; }
19919
19920
  return tslib.__awaiter(_this, void 0, void 0, function () {
19920
19921
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
19921
19922
  return tslib.__generator(this, function (_b) {
19922
19923
  switch (_b.label) {
19923
19924
  case 0:
19924
- // verify required parameter 'id' is not null or undefined
19925
- if (id === null || id === undefined) {
19926
- throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteMediaFile.');
19925
+ // verify required parameter 'contactId' is not null or undefined
19926
+ if (contactId === null || contactId === undefined) {
19927
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling deleteManager.');
19927
19928
  }
19928
- localVarPath = "/storage/media/{id}".replace("{" + 'id' + "}", encodeURIComponent(String(id)));
19929
+ // verify required parameter 'etag' is not null or undefined
19930
+ if (etag === null || etag === undefined) {
19931
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling deleteManager.');
19932
+ }
19933
+ localVarPath = "/contacts/{contact_id}/managers/{etag}"
19934
+ .replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)))
19935
+ .replace("{" + 'etag' + "}", encodeURIComponent(String(etag)));
19929
19936
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
19930
19937
  if (configuration) {
19931
19938
  baseOptions = configuration.baseOptions;
@@ -19948,8 +19955,8 @@
19948
19955
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
19949
19956
  _b.label = 5;
19950
19957
  case 5:
19951
- if (domainId !== undefined) {
19952
- localVarQueryParameter['domain_id'] = domainId;
19958
+ if (fields) {
19959
+ localVarQueryParameter['fields'] = fields;
19953
19960
  }
19954
19961
  localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
19955
19962
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
@@ -19966,29 +19973,34 @@
19966
19973
  },
19967
19974
  /**
19968
19975
  *
19969
- * @summary MediaFile item
19970
- * @param {string} id
19971
- * @param {string} [domainId]
19976
+ * @summary Remove Contact Managers associations.
19977
+ * @param {string} contactId Contact ID associated with.
19978
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
19979
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
19972
19980
  * @param {*} [options] Override http request option.
19973
19981
  * @throws {RequiredError}
19974
19982
  */
19975
- readMediaFile: function (id, domainId, options) {
19983
+ deleteManagers: function (contactId, etag, fields, options) {
19976
19984
  if (options === void 0) { options = {}; }
19977
19985
  return tslib.__awaiter(_this, void 0, void 0, function () {
19978
19986
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
19979
19987
  return tslib.__generator(this, function (_b) {
19980
19988
  switch (_b.label) {
19981
19989
  case 0:
19982
- // verify required parameter 'id' is not null or undefined
19983
- if (id === null || id === undefined) {
19984
- throw new RequiredError('id', 'Required parameter id was null or undefined when calling readMediaFile.');
19990
+ // verify required parameter 'contactId' is not null or undefined
19991
+ if (contactId === null || contactId === undefined) {
19992
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling deleteManagers.');
19985
19993
  }
19986
- localVarPath = "/storage/media/{id}".replace("{" + 'id' + "}", encodeURIComponent(String(id)));
19994
+ // verify required parameter 'etag' is not null or undefined
19995
+ if (etag === null || etag === undefined) {
19996
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling deleteManagers.');
19997
+ }
19998
+ localVarPath = "/contacts/{contact_id}/managers".replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)));
19987
19999
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
19988
20000
  if (configuration) {
19989
20001
  baseOptions = configuration.baseOptions;
19990
20002
  }
19991
- localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'GET' }, baseOptions), options);
20003
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'DELETE' }, baseOptions), options);
19992
20004
  localVarHeaderParameter = {};
19993
20005
  localVarQueryParameter = {};
19994
20006
  if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
@@ -20006,8 +20018,11 @@
20006
20018
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
20007
20019
  _b.label = 5;
20008
20020
  case 5:
20009
- if (domainId !== undefined) {
20010
- localVarQueryParameter['domain_id'] = domainId;
20021
+ if (fields) {
20022
+ localVarQueryParameter['fields'] = fields;
20023
+ }
20024
+ if (etag) {
20025
+ localVarQueryParameter['etag'] = etag;
20011
20026
  }
20012
20027
  localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
20013
20028
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
@@ -20024,24 +20039,29 @@
20024
20039
  },
20025
20040
  /**
20026
20041
  *
20027
- * @summary Search MediaFile
20028
- * @param {number} [page]
20029
- * @param {number} [size]
20030
- * @param {string} [q]
20031
- * @param {string} [sort]
20032
- * @param {Array<string>} [fields]
20033
- * @param {Array<number>} [id]
20042
+ * @summary Search the Contact\'s Managers.
20043
+ * @param {string} contactId Contact ID associated with.
20044
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
20045
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
20046
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
20047
+ * @param {Array<string>} [sort] Sort the result according to fields.
20048
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20049
+ * @param {Array<string>} [id] Record(s) with unique ID only.
20034
20050
  * @param {*} [options] Override http request option.
20035
20051
  * @throws {RequiredError}
20036
20052
  */
20037
- searchMediaFile: function (page, size, q, sort, fields, id, options) {
20053
+ listManagers: function (contactId, page, size, q, sort, fields, id, options) {
20038
20054
  if (options === void 0) { options = {}; }
20039
20055
  return tslib.__awaiter(_this, void 0, void 0, function () {
20040
20056
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
20041
20057
  return tslib.__generator(this, function (_b) {
20042
20058
  switch (_b.label) {
20043
20059
  case 0:
20044
- localVarPath = "/storage/media";
20060
+ // verify required parameter 'contactId' is not null or undefined
20061
+ if (contactId === null || contactId === undefined) {
20062
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling listManagers.');
20063
+ }
20064
+ localVarPath = "/contacts/{contact_id}/managers".replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)));
20045
20065
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
20046
20066
  if (configuration) {
20047
20067
  baseOptions = configuration.baseOptions;
@@ -20073,7 +20093,7 @@
20073
20093
  if (q !== undefined) {
20074
20094
  localVarQueryParameter['q'] = q;
20075
20095
  }
20076
- if (sort !== undefined) {
20096
+ if (sort) {
20077
20097
  localVarQueryParameter['sort'] = sort;
20078
20098
  }
20079
20099
  if (fields) {
@@ -20095,61 +20115,66 @@
20095
20115
  });
20096
20116
  });
20097
20117
  },
20098
- };
20099
- };
20100
- /**
20101
- * MediaFileServiceApi - functional programming interface
20102
- * @export
20103
- */
20104
- var MediaFileServiceApiFp = function (configuration) {
20105
- return {
20106
20118
  /**
20107
20119
  *
20108
- * @summary Remove MediaFile
20109
- * @param {string} id
20110
- * @param {string} [domainId]
20111
- * @param {*} [options] Override http request option.
20112
- * @throws {RequiredError}
20113
- */
20114
- deleteMediaFile: function (id, domainId, options) {
20115
- return tslib.__awaiter(this, void 0, void 0, function () {
20116
- var localVarAxiosArgs;
20117
- return tslib.__generator(this, function (_a) {
20118
- switch (_a.label) {
20119
- case 0: return [4 /*yield*/, MediaFileServiceApiAxiosParamCreator(configuration).deleteMediaFile(id, domainId, options)];
20120
- case 1:
20121
- localVarAxiosArgs = _a.sent();
20122
- return [2 /*return*/, function (axios, basePath) {
20123
- if (axios === void 0) { axios = globalAxios; }
20124
- if (basePath === void 0) { basePath = BASE_PATH; }
20125
- var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
20126
- return axios.request(axiosRequestArgs);
20127
- }];
20128
- }
20129
- });
20130
- });
20131
- },
20132
- /**
20133
- *
20134
- * @summary MediaFile item
20135
- * @param {string} id
20136
- * @param {string} [domainId]
20120
+ * @summary Locate the manager address link.
20121
+ * @param {string} contactId Contact source ID.
20122
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
20123
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
20137
20124
  * @param {*} [options] Override http request option.
20138
20125
  * @throws {RequiredError}
20139
20126
  */
20140
- readMediaFile: function (id, domainId, options) {
20141
- return tslib.__awaiter(this, void 0, void 0, function () {
20142
- var localVarAxiosArgs;
20143
- return tslib.__generator(this, function (_a) {
20144
- switch (_a.label) {
20145
- case 0: return [4 /*yield*/, MediaFileServiceApiAxiosParamCreator(configuration).readMediaFile(id, domainId, options)];
20127
+ locateManager: function (contactId, etag, fields, options) {
20128
+ if (options === void 0) { options = {}; }
20129
+ return tslib.__awaiter(_this, void 0, void 0, function () {
20130
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
20131
+ return tslib.__generator(this, function (_b) {
20132
+ switch (_b.label) {
20133
+ case 0:
20134
+ // verify required parameter 'contactId' is not null or undefined
20135
+ if (contactId === null || contactId === undefined) {
20136
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling locateManager.');
20137
+ }
20138
+ // verify required parameter 'etag' is not null or undefined
20139
+ if (etag === null || etag === undefined) {
20140
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling locateManager.');
20141
+ }
20142
+ localVarPath = "/contacts/{contact_id}/managers/{etag}"
20143
+ .replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)))
20144
+ .replace("{" + 'etag' + "}", encodeURIComponent(String(etag)));
20145
+ localVarUrlObj = globalImportUrl.parse(localVarPath, true);
20146
+ if (configuration) {
20147
+ baseOptions = configuration.baseOptions;
20148
+ }
20149
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'GET' }, baseOptions), options);
20150
+ localVarHeaderParameter = {};
20151
+ localVarQueryParameter = {};
20152
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
20153
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
20154
+ return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
20146
20155
  case 1:
20147
- localVarAxiosArgs = _a.sent();
20148
- return [2 /*return*/, function (axios, basePath) {
20149
- if (axios === void 0) { axios = globalAxios; }
20150
- if (basePath === void 0) { basePath = BASE_PATH; }
20151
- var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
20152
- return axios.request(axiosRequestArgs);
20156
+ _a = _b.sent();
20157
+ return [3 /*break*/, 4];
20158
+ case 2: return [4 /*yield*/, configuration.apiKey];
20159
+ case 3:
20160
+ _a = _b.sent();
20161
+ _b.label = 4;
20162
+ case 4:
20163
+ localVarApiKeyValue = _a;
20164
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
20165
+ _b.label = 5;
20166
+ case 5:
20167
+ if (fields) {
20168
+ localVarQueryParameter['fields'] = fields;
20169
+ }
20170
+ localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
20171
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
20172
+ delete localVarUrlObj.search;
20173
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20174
+ localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20175
+ return [2 /*return*/, {
20176
+ url: globalImportUrl.format(localVarUrlObj),
20177
+ options: localVarRequestOptions,
20153
20178
  }];
20154
20179
  }
20155
20180
  });
@@ -20157,186 +20182,103 @@
20157
20182
  },
20158
20183
  /**
20159
20184
  *
20160
- * @summary Search MediaFile
20161
- * @param {number} [page]
20162
- * @param {number} [size]
20163
- * @param {string} [q]
20164
- * @param {string} [sort]
20165
- * @param {Array<string>} [fields]
20166
- * @param {Array<number>} [id]
20185
+ * @summary Associate new Managers to the Contact.
20186
+ * @param {string} contactId Link contact ID.
20187
+ * @param {Array<WebitelContactsInputManager>} input Array of the unique User(s) to associate with the Contact. Any duplicate of an already linked user{id} will result in an error.
20188
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20167
20189
  * @param {*} [options] Override http request option.
20168
20190
  * @throws {RequiredError}
20169
20191
  */
20170
- searchMediaFile: function (page, size, q, sort, fields, id, options) {
20171
- return tslib.__awaiter(this, void 0, void 0, function () {
20172
- var localVarAxiosArgs;
20173
- return tslib.__generator(this, function (_a) {
20174
- switch (_a.label) {
20175
- case 0: return [4 /*yield*/, MediaFileServiceApiAxiosParamCreator(configuration).searchMediaFile(page, size, q, sort, fields, id, options)];
20192
+ mergeManagers: function (contactId, input, fields, options) {
20193
+ if (options === void 0) { options = {}; }
20194
+ return tslib.__awaiter(_this, void 0, void 0, function () {
20195
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
20196
+ return tslib.__generator(this, function (_b) {
20197
+ switch (_b.label) {
20198
+ case 0:
20199
+ // verify required parameter 'contactId' is not null or undefined
20200
+ if (contactId === null || contactId === undefined) {
20201
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling mergeManagers.');
20202
+ }
20203
+ // verify required parameter 'input' is not null or undefined
20204
+ if (input === null || input === undefined) {
20205
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling mergeManagers.');
20206
+ }
20207
+ localVarPath = "/contacts/{contact_id}/managers".replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)));
20208
+ localVarUrlObj = globalImportUrl.parse(localVarPath, true);
20209
+ if (configuration) {
20210
+ baseOptions = configuration.baseOptions;
20211
+ }
20212
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'POST' }, baseOptions), options);
20213
+ localVarHeaderParameter = {};
20214
+ localVarQueryParameter = {};
20215
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
20216
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
20217
+ return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
20176
20218
  case 1:
20177
- localVarAxiosArgs = _a.sent();
20178
- return [2 /*return*/, function (axios, basePath) {
20179
- if (axios === void 0) { axios = globalAxios; }
20180
- if (basePath === void 0) { basePath = BASE_PATH; }
20181
- var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
20182
- return axios.request(axiosRequestArgs);
20219
+ _a = _b.sent();
20220
+ return [3 /*break*/, 4];
20221
+ case 2: return [4 /*yield*/, configuration.apiKey];
20222
+ case 3:
20223
+ _a = _b.sent();
20224
+ _b.label = 4;
20225
+ case 4:
20226
+ localVarApiKeyValue = _a;
20227
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
20228
+ _b.label = 5;
20229
+ case 5:
20230
+ if (fields) {
20231
+ localVarQueryParameter['fields'] = fields;
20232
+ }
20233
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20234
+ localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
20235
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
20236
+ delete localVarUrlObj.search;
20237
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20238
+ localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20239
+ needsSerialization = typeof input !== 'string' ||
20240
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
20241
+ localVarRequestOptions.data = needsSerialization
20242
+ ? JSON.stringify(input !== undefined ? input : {})
20243
+ : input || '';
20244
+ return [2 /*return*/, {
20245
+ url: globalImportUrl.format(localVarUrlObj),
20246
+ options: localVarRequestOptions,
20183
20247
  }];
20184
20248
  }
20185
20249
  });
20186
20250
  });
20187
20251
  },
20188
- };
20189
- };
20190
- /**
20191
- * MediaFileServiceApi - factory interface
20192
- * @export
20193
- */
20194
- var MediaFileServiceApiFactory = function (configuration, basePath, axios) {
20195
- return {
20196
- /**
20197
- *
20198
- * @summary Remove MediaFile
20199
- * @param {string} id
20200
- * @param {string} [domainId]
20201
- * @param {*} [options] Override http request option.
20202
- * @throws {RequiredError}
20203
- */
20204
- deleteMediaFile: function (id, domainId, options) {
20205
- return MediaFileServiceApiFp(configuration)
20206
- .deleteMediaFile(id, domainId, options)
20207
- .then(function (request) { return request(axios, basePath); });
20208
- },
20209
- /**
20210
- *
20211
- * @summary MediaFile item
20212
- * @param {string} id
20213
- * @param {string} [domainId]
20214
- * @param {*} [options] Override http request option.
20215
- * @throws {RequiredError}
20216
- */
20217
- readMediaFile: function (id, domainId, options) {
20218
- return MediaFileServiceApiFp(configuration)
20219
- .readMediaFile(id, domainId, options)
20220
- .then(function (request) { return request(axios, basePath); });
20221
- },
20222
- /**
20223
- *
20224
- * @summary Search MediaFile
20225
- * @param {number} [page]
20226
- * @param {number} [size]
20227
- * @param {string} [q]
20228
- * @param {string} [sort]
20229
- * @param {Array<string>} [fields]
20230
- * @param {Array<number>} [id]
20231
- * @param {*} [options] Override http request option.
20232
- * @throws {RequiredError}
20233
- */
20234
- searchMediaFile: function (page, size, q, sort, fields, id, options) {
20235
- return MediaFileServiceApiFp(configuration)
20236
- .searchMediaFile(page, size, q, sort, fields, id, options)
20237
- .then(function (request) { return request(axios, basePath); });
20238
- },
20239
- };
20240
- };
20241
- /**
20242
- * MediaFileServiceApi - object-oriented interface
20243
- * @export
20244
- * @class MediaFileServiceApi
20245
- * @extends {BaseAPI}
20246
- */
20247
- var MediaFileServiceApi = /** @class */ (function (_super) {
20248
- tslib.__extends(MediaFileServiceApi, _super);
20249
- function MediaFileServiceApi() {
20250
- return _super !== null && _super.apply(this, arguments) || this;
20251
- }
20252
- /**
20253
- *
20254
- * @summary Remove MediaFile
20255
- * @param {string} id
20256
- * @param {string} [domainId]
20257
- * @param {*} [options] Override http request option.
20258
- * @throws {RequiredError}
20259
- * @memberof MediaFileServiceApi
20260
- */
20261
- MediaFileServiceApi.prototype.deleteMediaFile = function (id, domainId, options) {
20262
- var _this = this;
20263
- return MediaFileServiceApiFp(this.configuration)
20264
- .deleteMediaFile(id, domainId, options)
20265
- .then(function (request) { return request(_this.axios, _this.basePath); });
20266
- };
20267
- /**
20268
- *
20269
- * @summary MediaFile item
20270
- * @param {string} id
20271
- * @param {string} [domainId]
20272
- * @param {*} [options] Override http request option.
20273
- * @throws {RequiredError}
20274
- * @memberof MediaFileServiceApi
20275
- */
20276
- MediaFileServiceApi.prototype.readMediaFile = function (id, domainId, options) {
20277
- var _this = this;
20278
- return MediaFileServiceApiFp(this.configuration)
20279
- .readMediaFile(id, domainId, options)
20280
- .then(function (request) { return request(_this.axios, _this.basePath); });
20281
- };
20282
- /**
20283
- *
20284
- * @summary Search MediaFile
20285
- * @param {number} [page]
20286
- * @param {number} [size]
20287
- * @param {string} [q]
20288
- * @param {string} [sort]
20289
- * @param {Array<string>} [fields]
20290
- * @param {Array<number>} [id]
20291
- * @param {*} [options] Override http request option.
20292
- * @throws {RequiredError}
20293
- * @memberof MediaFileServiceApi
20294
- */
20295
- MediaFileServiceApi.prototype.searchMediaFile = function (page, size, q, sort, fields, id, options) {
20296
- var _this = this;
20297
- return MediaFileServiceApiFp(this.configuration)
20298
- .searchMediaFile(page, size, q, sort, fields, id, options)
20299
- .then(function (request) { return request(_this.axios, _this.basePath); });
20300
- };
20301
- return MediaFileServiceApi;
20302
- }(BaseAPI));
20303
-
20304
- // tslint:disable
20305
- /**
20306
- * MemberServiceApi - axios parameter creator
20307
- * @export
20308
- */
20309
- var MemberServiceApiAxiosParamCreator = function (configuration) {
20310
- var _this = this;
20311
- return {
20312
20252
  /**
20313
20253
  *
20314
- * @param {string} attemptId
20315
- * @param {EngineAttemptCallbackRequest} body
20254
+ * @summary Reset Managers to fit the specified final set.
20255
+ * @param {string} contactId Contact ID associated with.
20256
+ * @param {Array<WebitelContactsInputManager>} input Final set of unique User(s) to be linked with the Contact. User(s) that are already linked with the Contact but not listed here will be removed. The first element will become &#x60;primary&#x60; if no other specified.
20257
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20316
20258
  * @param {*} [options] Override http request option.
20317
20259
  * @throws {RequiredError}
20318
20260
  */
20319
- attemptCallback: function (attemptId, body, options) {
20261
+ resetManagers: function (contactId, input, fields, options) {
20320
20262
  if (options === void 0) { options = {}; }
20321
20263
  return tslib.__awaiter(_this, void 0, void 0, function () {
20322
20264
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
20323
20265
  return tslib.__generator(this, function (_b) {
20324
20266
  switch (_b.label) {
20325
20267
  case 0:
20326
- // verify required parameter 'attemptId' is not null or undefined
20327
- if (attemptId === null || attemptId === undefined) {
20328
- throw new RequiredError('attemptId', 'Required parameter attemptId was null or undefined when calling attemptCallback.');
20268
+ // verify required parameter 'contactId' is not null or undefined
20269
+ if (contactId === null || contactId === undefined) {
20270
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling resetManagers.');
20329
20271
  }
20330
- // verify required parameter 'body' is not null or undefined
20331
- if (body === null || body === undefined) {
20332
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling attemptCallback.');
20272
+ // verify required parameter 'input' is not null or undefined
20273
+ if (input === null || input === undefined) {
20274
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling resetManagers.');
20333
20275
  }
20334
- localVarPath = "/call_center/attempts/{attempt_id}".replace("{" + 'attempt_id' + "}", encodeURIComponent(String(attemptId)));
20276
+ localVarPath = "/contacts/{contact_id}/managers".replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)));
20335
20277
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
20336
20278
  if (configuration) {
20337
20279
  baseOptions = configuration.baseOptions;
20338
20280
  }
20339
- localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PATCH' }, baseOptions), options);
20281
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PUT' }, baseOptions), options);
20340
20282
  localVarHeaderParameter = {};
20341
20283
  localVarQueryParameter = {};
20342
20284
  if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
@@ -20354,17 +20296,20 @@
20354
20296
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
20355
20297
  _b.label = 5;
20356
20298
  case 5:
20299
+ if (fields) {
20300
+ localVarQueryParameter['fields'] = fields;
20301
+ }
20357
20302
  localVarHeaderParameter['Content-Type'] = 'application/json';
20358
20303
  localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
20359
20304
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
20360
20305
  delete localVarUrlObj.search;
20361
20306
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20362
20307
  localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20363
- needsSerialization = typeof body !== 'string' ||
20308
+ needsSerialization = typeof input !== 'string' ||
20364
20309
  localVarRequestOptions.headers['Content-Type'] === 'application/json';
20365
20310
  localVarRequestOptions.data = needsSerialization
20366
- ? JSON.stringify(body !== undefined ? body : {})
20367
- : body || '';
20311
+ ? JSON.stringify(input !== undefined ? input : {})
20312
+ : input || '';
20368
20313
  return [2 /*return*/, {
20369
20314
  url: globalImportUrl.format(localVarUrlObj),
20370
20315
  options: localVarRequestOptions,
@@ -20375,45 +20320,41 @@
20375
20320
  },
20376
20321
  /**
20377
20322
  *
20378
- * @param {number} queueId
20379
- * @param {string} memberId
20380
- * @param {string} attemptId
20381
- * @param {EngineAttemptResultRequest} body
20323
+ * @summary Update the contact\'s manager address link details
20324
+ * @param {string} contactId Link contact ID.
20325
+ * @param {string} etag Unique ID of the latest version of an existing resource.
20326
+ * @param {NEWUpdateOfTheManagerLink} input
20327
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
20382
20328
  * @param {*} [options] Override http request option.
20383
20329
  * @throws {RequiredError}
20384
20330
  */
20385
- attemptResult: function (queueId, memberId, attemptId, body, options) {
20331
+ updateManager: function (contactId, etag, input, fields, options) {
20386
20332
  if (options === void 0) { options = {}; }
20387
20333
  return tslib.__awaiter(_this, void 0, void 0, function () {
20388
20334
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
20389
20335
  return tslib.__generator(this, function (_b) {
20390
20336
  switch (_b.label) {
20391
20337
  case 0:
20392
- // verify required parameter 'queueId' is not null or undefined
20393
- if (queueId === null || queueId === undefined) {
20394
- throw new RequiredError('queueId', 'Required parameter queueId was null or undefined when calling attemptResult.');
20395
- }
20396
- // verify required parameter 'memberId' is not null or undefined
20397
- if (memberId === null || memberId === undefined) {
20398
- throw new RequiredError('memberId', 'Required parameter memberId was null or undefined when calling attemptResult.');
20338
+ // verify required parameter 'contactId' is not null or undefined
20339
+ if (contactId === null || contactId === undefined) {
20340
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling updateManager.');
20399
20341
  }
20400
- // verify required parameter 'attemptId' is not null or undefined
20401
- if (attemptId === null || attemptId === undefined) {
20402
- throw new RequiredError('attemptId', 'Required parameter attemptId was null or undefined when calling attemptResult.');
20342
+ // verify required parameter 'etag' is not null or undefined
20343
+ if (etag === null || etag === undefined) {
20344
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling updateManager.');
20403
20345
  }
20404
- // verify required parameter 'body' is not null or undefined
20405
- if (body === null || body === undefined) {
20406
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling attemptResult.');
20346
+ // verify required parameter 'input' is not null or undefined
20347
+ if (input === null || input === undefined) {
20348
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling updateManager.');
20407
20349
  }
20408
- localVarPath = "/call_center/queues/{queue_id}/members/{member_id}/attempts/{attempt_id}"
20409
- .replace("{" + 'queue_id' + "}", encodeURIComponent(String(queueId)))
20410
- .replace("{" + 'member_id' + "}", encodeURIComponent(String(memberId)))
20411
- .replace("{" + 'attempt_id' + "}", encodeURIComponent(String(attemptId)));
20350
+ localVarPath = "/contacts/{contact_id}/managers/{etag}"
20351
+ .replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)))
20352
+ .replace("{" + 'etag' + "}", encodeURIComponent(String(etag)));
20412
20353
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
20413
20354
  if (configuration) {
20414
20355
  baseOptions = configuration.baseOptions;
20415
20356
  }
20416
- localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PATCH' }, baseOptions), options);
20357
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PUT' }, baseOptions), options);
20417
20358
  localVarHeaderParameter = {};
20418
20359
  localVarQueryParameter = {};
20419
20360
  if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
@@ -20431,17 +20372,20 @@
20431
20372
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
20432
20373
  _b.label = 5;
20433
20374
  case 5:
20375
+ if (fields) {
20376
+ localVarQueryParameter['fields'] = fields;
20377
+ }
20434
20378
  localVarHeaderParameter['Content-Type'] = 'application/json';
20435
20379
  localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
20436
20380
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
20437
20381
  delete localVarUrlObj.search;
20438
20382
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20439
20383
  localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20440
- needsSerialization = typeof body !== 'string' ||
20384
+ needsSerialization = typeof input !== 'string' ||
20441
20385
  localVarRequestOptions.headers['Content-Type'] === 'application/json';
20442
20386
  localVarRequestOptions.data = needsSerialization
20443
- ? JSON.stringify(body !== undefined ? body : {})
20444
- : body || '';
20387
+ ? JSON.stringify(input !== undefined ? input : {})
20388
+ : input || '';
20445
20389
  return [2 /*return*/, {
20446
20390
  url: globalImportUrl.format(localVarUrlObj),
20447
20391
  options: localVarRequestOptions,
@@ -20452,27 +20396,1161 @@
20452
20396
  },
20453
20397
  /**
20454
20398
  *
20455
- * @param {string} attemptId
20456
- * @param {EngineAttemptRenewalResultRequest} body
20399
+ * @summary Update the contact\'s manager address link details
20400
+ * @param {string} contactId Link contact ID.
20401
+ * @param {string} etag Unique ID of the latest version of an existing resource.
20402
+ * @param {NEWUpdateOfTheManagerLink1} input
20403
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
20457
20404
  * @param {*} [options] Override http request option.
20458
20405
  * @throws {RequiredError}
20459
20406
  */
20460
- attemptsRenewalResult: function (attemptId, body, options) {
20407
+ updateManager2: function (contactId, etag, input, fields, options) {
20461
20408
  if (options === void 0) { options = {}; }
20462
20409
  return tslib.__awaiter(_this, void 0, void 0, function () {
20463
20410
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
20464
20411
  return tslib.__generator(this, function (_b) {
20465
20412
  switch (_b.label) {
20466
20413
  case 0:
20467
- // verify required parameter 'attemptId' is not null or undefined
20468
- if (attemptId === null || attemptId === undefined) {
20469
- throw new RequiredError('attemptId', 'Required parameter attemptId was null or undefined when calling attemptsRenewalResult.');
20414
+ // verify required parameter 'contactId' is not null or undefined
20415
+ if (contactId === null || contactId === undefined) {
20416
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling updateManager2.');
20470
20417
  }
20471
- // verify required parameter 'body' is not null or undefined
20472
- if (body === null || body === undefined) {
20473
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling attemptsRenewalResult.');
20418
+ // verify required parameter 'etag' is not null or undefined
20419
+ if (etag === null || etag === undefined) {
20420
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling updateManager2.');
20474
20421
  }
20475
- localVarPath = "/call_center/queues/attempts/{attempt_id}/renewal".replace("{" + 'attempt_id' + "}", encodeURIComponent(String(attemptId)));
20422
+ // verify required parameter 'input' is not null or undefined
20423
+ if (input === null || input === undefined) {
20424
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling updateManager2.');
20425
+ }
20426
+ localVarPath = "/contacts/{contact_id}/managers/{etag}"
20427
+ .replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)))
20428
+ .replace("{" + 'etag' + "}", encodeURIComponent(String(etag)));
20429
+ localVarUrlObj = globalImportUrl.parse(localVarPath, true);
20430
+ if (configuration) {
20431
+ baseOptions = configuration.baseOptions;
20432
+ }
20433
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PATCH' }, baseOptions), options);
20434
+ localVarHeaderParameter = {};
20435
+ localVarQueryParameter = {};
20436
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
20437
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
20438
+ return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
20439
+ case 1:
20440
+ _a = _b.sent();
20441
+ return [3 /*break*/, 4];
20442
+ case 2: return [4 /*yield*/, configuration.apiKey];
20443
+ case 3:
20444
+ _a = _b.sent();
20445
+ _b.label = 4;
20446
+ case 4:
20447
+ localVarApiKeyValue = _a;
20448
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
20449
+ _b.label = 5;
20450
+ case 5:
20451
+ if (fields) {
20452
+ localVarQueryParameter['fields'] = fields;
20453
+ }
20454
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20455
+ localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
20456
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
20457
+ delete localVarUrlObj.search;
20458
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20459
+ localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20460
+ needsSerialization = typeof input !== 'string' ||
20461
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
20462
+ localVarRequestOptions.data = needsSerialization
20463
+ ? JSON.stringify(input !== undefined ? input : {})
20464
+ : input || '';
20465
+ return [2 /*return*/, {
20466
+ url: globalImportUrl.format(localVarUrlObj),
20467
+ options: localVarRequestOptions,
20468
+ }];
20469
+ }
20470
+ });
20471
+ });
20472
+ },
20473
+ };
20474
+ };
20475
+ /**
20476
+ * ManagersApi - functional programming interface
20477
+ * @export
20478
+ */
20479
+ var ManagersApiFp = function (configuration) {
20480
+ return {
20481
+ /**
20482
+ *
20483
+ * @summary Remove the contact\'s manager address link
20484
+ * @param {string} contactId Contact ID associated with.
20485
+ * @param {string} etag Unique ID to remove.
20486
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20487
+ * @param {*} [options] Override http request option.
20488
+ * @throws {RequiredError}
20489
+ */
20490
+ deleteManager: function (contactId, etag, fields, options) {
20491
+ return tslib.__awaiter(this, void 0, void 0, function () {
20492
+ var localVarAxiosArgs;
20493
+ return tslib.__generator(this, function (_a) {
20494
+ switch (_a.label) {
20495
+ case 0: return [4 /*yield*/, ManagersApiAxiosParamCreator(configuration).deleteManager(contactId, etag, fields, options)];
20496
+ case 1:
20497
+ localVarAxiosArgs = _a.sent();
20498
+ return [2 /*return*/, function (axios, basePath) {
20499
+ if (axios === void 0) { axios = globalAxios; }
20500
+ if (basePath === void 0) { basePath = BASE_PATH; }
20501
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
20502
+ return axios.request(axiosRequestArgs);
20503
+ }];
20504
+ }
20505
+ });
20506
+ });
20507
+ },
20508
+ /**
20509
+ *
20510
+ * @summary Remove Contact Managers associations.
20511
+ * @param {string} contactId Contact ID associated with.
20512
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
20513
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20514
+ * @param {*} [options] Override http request option.
20515
+ * @throws {RequiredError}
20516
+ */
20517
+ deleteManagers: function (contactId, etag, fields, options) {
20518
+ return tslib.__awaiter(this, void 0, void 0, function () {
20519
+ var localVarAxiosArgs;
20520
+ return tslib.__generator(this, function (_a) {
20521
+ switch (_a.label) {
20522
+ case 0: return [4 /*yield*/, ManagersApiAxiosParamCreator(configuration).deleteManagers(contactId, etag, fields, options)];
20523
+ case 1:
20524
+ localVarAxiosArgs = _a.sent();
20525
+ return [2 /*return*/, function (axios, basePath) {
20526
+ if (axios === void 0) { axios = globalAxios; }
20527
+ if (basePath === void 0) { basePath = BASE_PATH; }
20528
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
20529
+ return axios.request(axiosRequestArgs);
20530
+ }];
20531
+ }
20532
+ });
20533
+ });
20534
+ },
20535
+ /**
20536
+ *
20537
+ * @summary Search the Contact\'s Managers.
20538
+ * @param {string} contactId Contact ID associated with.
20539
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
20540
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
20541
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
20542
+ * @param {Array<string>} [sort] Sort the result according to fields.
20543
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20544
+ * @param {Array<string>} [id] Record(s) with unique ID only.
20545
+ * @param {*} [options] Override http request option.
20546
+ * @throws {RequiredError}
20547
+ */
20548
+ listManagers: function (contactId, page, size, q, sort, fields, id, options) {
20549
+ return tslib.__awaiter(this, void 0, void 0, function () {
20550
+ var localVarAxiosArgs;
20551
+ return tslib.__generator(this, function (_a) {
20552
+ switch (_a.label) {
20553
+ case 0: return [4 /*yield*/, ManagersApiAxiosParamCreator(configuration).listManagers(contactId, page, size, q, sort, fields, id, options)];
20554
+ case 1:
20555
+ localVarAxiosArgs = _a.sent();
20556
+ return [2 /*return*/, function (axios, basePath) {
20557
+ if (axios === void 0) { axios = globalAxios; }
20558
+ if (basePath === void 0) { basePath = BASE_PATH; }
20559
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
20560
+ return axios.request(axiosRequestArgs);
20561
+ }];
20562
+ }
20563
+ });
20564
+ });
20565
+ },
20566
+ /**
20567
+ *
20568
+ * @summary Locate the manager address link.
20569
+ * @param {string} contactId Contact source ID.
20570
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
20571
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
20572
+ * @param {*} [options] Override http request option.
20573
+ * @throws {RequiredError}
20574
+ */
20575
+ locateManager: function (contactId, etag, fields, options) {
20576
+ return tslib.__awaiter(this, void 0, void 0, function () {
20577
+ var localVarAxiosArgs;
20578
+ return tslib.__generator(this, function (_a) {
20579
+ switch (_a.label) {
20580
+ case 0: return [4 /*yield*/, ManagersApiAxiosParamCreator(configuration).locateManager(contactId, etag, fields, options)];
20581
+ case 1:
20582
+ localVarAxiosArgs = _a.sent();
20583
+ return [2 /*return*/, function (axios, basePath) {
20584
+ if (axios === void 0) { axios = globalAxios; }
20585
+ if (basePath === void 0) { basePath = BASE_PATH; }
20586
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
20587
+ return axios.request(axiosRequestArgs);
20588
+ }];
20589
+ }
20590
+ });
20591
+ });
20592
+ },
20593
+ /**
20594
+ *
20595
+ * @summary Associate new Managers to the Contact.
20596
+ * @param {string} contactId Link contact ID.
20597
+ * @param {Array<WebitelContactsInputManager>} input Array of the unique User(s) to associate with the Contact. Any duplicate of an already linked user{id} will result in an error.
20598
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20599
+ * @param {*} [options] Override http request option.
20600
+ * @throws {RequiredError}
20601
+ */
20602
+ mergeManagers: function (contactId, input, fields, options) {
20603
+ return tslib.__awaiter(this, void 0, void 0, function () {
20604
+ var localVarAxiosArgs;
20605
+ return tslib.__generator(this, function (_a) {
20606
+ switch (_a.label) {
20607
+ case 0: return [4 /*yield*/, ManagersApiAxiosParamCreator(configuration).mergeManagers(contactId, input, fields, options)];
20608
+ case 1:
20609
+ localVarAxiosArgs = _a.sent();
20610
+ return [2 /*return*/, function (axios, basePath) {
20611
+ if (axios === void 0) { axios = globalAxios; }
20612
+ if (basePath === void 0) { basePath = BASE_PATH; }
20613
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
20614
+ return axios.request(axiosRequestArgs);
20615
+ }];
20616
+ }
20617
+ });
20618
+ });
20619
+ },
20620
+ /**
20621
+ *
20622
+ * @summary Reset Managers to fit the specified final set.
20623
+ * @param {string} contactId Contact ID associated with.
20624
+ * @param {Array<WebitelContactsInputManager>} input Final set of unique User(s) to be linked with the Contact. User(s) that are already linked with the Contact but not listed here will be removed. The first element will become &#x60;primary&#x60; if no other specified.
20625
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20626
+ * @param {*} [options] Override http request option.
20627
+ * @throws {RequiredError}
20628
+ */
20629
+ resetManagers: function (contactId, input, fields, options) {
20630
+ return tslib.__awaiter(this, void 0, void 0, function () {
20631
+ var localVarAxiosArgs;
20632
+ return tslib.__generator(this, function (_a) {
20633
+ switch (_a.label) {
20634
+ case 0: return [4 /*yield*/, ManagersApiAxiosParamCreator(configuration).resetManagers(contactId, input, fields, options)];
20635
+ case 1:
20636
+ localVarAxiosArgs = _a.sent();
20637
+ return [2 /*return*/, function (axios, basePath) {
20638
+ if (axios === void 0) { axios = globalAxios; }
20639
+ if (basePath === void 0) { basePath = BASE_PATH; }
20640
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
20641
+ return axios.request(axiosRequestArgs);
20642
+ }];
20643
+ }
20644
+ });
20645
+ });
20646
+ },
20647
+ /**
20648
+ *
20649
+ * @summary Update the contact\'s manager address link details
20650
+ * @param {string} contactId Link contact ID.
20651
+ * @param {string} etag Unique ID of the latest version of an existing resource.
20652
+ * @param {NEWUpdateOfTheManagerLink} input
20653
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
20654
+ * @param {*} [options] Override http request option.
20655
+ * @throws {RequiredError}
20656
+ */
20657
+ updateManager: function (contactId, etag, input, fields, options) {
20658
+ return tslib.__awaiter(this, void 0, void 0, function () {
20659
+ var localVarAxiosArgs;
20660
+ return tslib.__generator(this, function (_a) {
20661
+ switch (_a.label) {
20662
+ case 0: return [4 /*yield*/, ManagersApiAxiosParamCreator(configuration).updateManager(contactId, etag, input, fields, options)];
20663
+ case 1:
20664
+ localVarAxiosArgs = _a.sent();
20665
+ return [2 /*return*/, function (axios, basePath) {
20666
+ if (axios === void 0) { axios = globalAxios; }
20667
+ if (basePath === void 0) { basePath = BASE_PATH; }
20668
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
20669
+ return axios.request(axiosRequestArgs);
20670
+ }];
20671
+ }
20672
+ });
20673
+ });
20674
+ },
20675
+ /**
20676
+ *
20677
+ * @summary Update the contact\'s manager address link details
20678
+ * @param {string} contactId Link contact ID.
20679
+ * @param {string} etag Unique ID of the latest version of an existing resource.
20680
+ * @param {NEWUpdateOfTheManagerLink1} input
20681
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
20682
+ * @param {*} [options] Override http request option.
20683
+ * @throws {RequiredError}
20684
+ */
20685
+ updateManager2: function (contactId, etag, input, fields, options) {
20686
+ return tslib.__awaiter(this, void 0, void 0, function () {
20687
+ var localVarAxiosArgs;
20688
+ return tslib.__generator(this, function (_a) {
20689
+ switch (_a.label) {
20690
+ case 0: return [4 /*yield*/, ManagersApiAxiosParamCreator(configuration).updateManager2(contactId, etag, input, fields, options)];
20691
+ case 1:
20692
+ localVarAxiosArgs = _a.sent();
20693
+ return [2 /*return*/, function (axios, basePath) {
20694
+ if (axios === void 0) { axios = globalAxios; }
20695
+ if (basePath === void 0) { basePath = BASE_PATH; }
20696
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
20697
+ return axios.request(axiosRequestArgs);
20698
+ }];
20699
+ }
20700
+ });
20701
+ });
20702
+ },
20703
+ };
20704
+ };
20705
+ /**
20706
+ * ManagersApi - factory interface
20707
+ * @export
20708
+ */
20709
+ var ManagersApiFactory = function (configuration, basePath, axios) {
20710
+ return {
20711
+ /**
20712
+ *
20713
+ * @summary Remove the contact\'s manager address link
20714
+ * @param {string} contactId Contact ID associated with.
20715
+ * @param {string} etag Unique ID to remove.
20716
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20717
+ * @param {*} [options] Override http request option.
20718
+ * @throws {RequiredError}
20719
+ */
20720
+ deleteManager: function (contactId, etag, fields, options) {
20721
+ return ManagersApiFp(configuration)
20722
+ .deleteManager(contactId, etag, fields, options)
20723
+ .then(function (request) { return request(axios, basePath); });
20724
+ },
20725
+ /**
20726
+ *
20727
+ * @summary Remove Contact Managers associations.
20728
+ * @param {string} contactId Contact ID associated with.
20729
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
20730
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20731
+ * @param {*} [options] Override http request option.
20732
+ * @throws {RequiredError}
20733
+ */
20734
+ deleteManagers: function (contactId, etag, fields, options) {
20735
+ return ManagersApiFp(configuration)
20736
+ .deleteManagers(contactId, etag, fields, options)
20737
+ .then(function (request) { return request(axios, basePath); });
20738
+ },
20739
+ /**
20740
+ *
20741
+ * @summary Search the Contact\'s Managers.
20742
+ * @param {string} contactId Contact ID associated with.
20743
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
20744
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
20745
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
20746
+ * @param {Array<string>} [sort] Sort the result according to fields.
20747
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20748
+ * @param {Array<string>} [id] Record(s) with unique ID only.
20749
+ * @param {*} [options] Override http request option.
20750
+ * @throws {RequiredError}
20751
+ */
20752
+ listManagers: function (contactId, page, size, q, sort, fields, id, options) {
20753
+ return ManagersApiFp(configuration)
20754
+ .listManagers(contactId, page, size, q, sort, fields, id, options)
20755
+ .then(function (request) { return request(axios, basePath); });
20756
+ },
20757
+ /**
20758
+ *
20759
+ * @summary Locate the manager address link.
20760
+ * @param {string} contactId Contact source ID.
20761
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
20762
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
20763
+ * @param {*} [options] Override http request option.
20764
+ * @throws {RequiredError}
20765
+ */
20766
+ locateManager: function (contactId, etag, fields, options) {
20767
+ return ManagersApiFp(configuration)
20768
+ .locateManager(contactId, etag, fields, options)
20769
+ .then(function (request) { return request(axios, basePath); });
20770
+ },
20771
+ /**
20772
+ *
20773
+ * @summary Associate new Managers to the Contact.
20774
+ * @param {string} contactId Link contact ID.
20775
+ * @param {Array<WebitelContactsInputManager>} input Array of the unique User(s) to associate with the Contact. Any duplicate of an already linked user{id} will result in an error.
20776
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20777
+ * @param {*} [options] Override http request option.
20778
+ * @throws {RequiredError}
20779
+ */
20780
+ mergeManagers: function (contactId, input, fields, options) {
20781
+ return ManagersApiFp(configuration)
20782
+ .mergeManagers(contactId, input, fields, options)
20783
+ .then(function (request) { return request(axios, basePath); });
20784
+ },
20785
+ /**
20786
+ *
20787
+ * @summary Reset Managers to fit the specified final set.
20788
+ * @param {string} contactId Contact ID associated with.
20789
+ * @param {Array<WebitelContactsInputManager>} input Final set of unique User(s) to be linked with the Contact. User(s) that are already linked with the Contact but not listed here will be removed. The first element will become &#x60;primary&#x60; if no other specified.
20790
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20791
+ * @param {*} [options] Override http request option.
20792
+ * @throws {RequiredError}
20793
+ */
20794
+ resetManagers: function (contactId, input, fields, options) {
20795
+ return ManagersApiFp(configuration)
20796
+ .resetManagers(contactId, input, fields, options)
20797
+ .then(function (request) { return request(axios, basePath); });
20798
+ },
20799
+ /**
20800
+ *
20801
+ * @summary Update the contact\'s manager address link details
20802
+ * @param {string} contactId Link contact ID.
20803
+ * @param {string} etag Unique ID of the latest version of an existing resource.
20804
+ * @param {NEWUpdateOfTheManagerLink} input
20805
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
20806
+ * @param {*} [options] Override http request option.
20807
+ * @throws {RequiredError}
20808
+ */
20809
+ updateManager: function (contactId, etag, input, fields, options) {
20810
+ return ManagersApiFp(configuration)
20811
+ .updateManager(contactId, etag, input, fields, options)
20812
+ .then(function (request) { return request(axios, basePath); });
20813
+ },
20814
+ /**
20815
+ *
20816
+ * @summary Update the contact\'s manager address link details
20817
+ * @param {string} contactId Link contact ID.
20818
+ * @param {string} etag Unique ID of the latest version of an existing resource.
20819
+ * @param {NEWUpdateOfTheManagerLink1} input
20820
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
20821
+ * @param {*} [options] Override http request option.
20822
+ * @throws {RequiredError}
20823
+ */
20824
+ updateManager2: function (contactId, etag, input, fields, options) {
20825
+ return ManagersApiFp(configuration)
20826
+ .updateManager2(contactId, etag, input, fields, options)
20827
+ .then(function (request) { return request(axios, basePath); });
20828
+ },
20829
+ };
20830
+ };
20831
+ /**
20832
+ * ManagersApi - object-oriented interface
20833
+ * @export
20834
+ * @class ManagersApi
20835
+ * @extends {BaseAPI}
20836
+ */
20837
+ var ManagersApi = /** @class */ (function (_super) {
20838
+ tslib.__extends(ManagersApi, _super);
20839
+ function ManagersApi() {
20840
+ return _super !== null && _super.apply(this, arguments) || this;
20841
+ }
20842
+ /**
20843
+ *
20844
+ * @summary Remove the contact\'s manager address link
20845
+ * @param {string} contactId Contact ID associated with.
20846
+ * @param {string} etag Unique ID to remove.
20847
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20848
+ * @param {*} [options] Override http request option.
20849
+ * @throws {RequiredError}
20850
+ * @memberof ManagersApi
20851
+ */
20852
+ ManagersApi.prototype.deleteManager = function (contactId, etag, fields, options) {
20853
+ var _this = this;
20854
+ return ManagersApiFp(this.configuration)
20855
+ .deleteManager(contactId, etag, fields, options)
20856
+ .then(function (request) { return request(_this.axios, _this.basePath); });
20857
+ };
20858
+ /**
20859
+ *
20860
+ * @summary Remove Contact Managers associations.
20861
+ * @param {string} contactId Contact ID associated with.
20862
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
20863
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20864
+ * @param {*} [options] Override http request option.
20865
+ * @throws {RequiredError}
20866
+ * @memberof ManagersApi
20867
+ */
20868
+ ManagersApi.prototype.deleteManagers = function (contactId, etag, fields, options) {
20869
+ var _this = this;
20870
+ return ManagersApiFp(this.configuration)
20871
+ .deleteManagers(contactId, etag, fields, options)
20872
+ .then(function (request) { return request(_this.axios, _this.basePath); });
20873
+ };
20874
+ /**
20875
+ *
20876
+ * @summary Search the Contact\'s Managers.
20877
+ * @param {string} contactId Contact ID associated with.
20878
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
20879
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
20880
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
20881
+ * @param {Array<string>} [sort] Sort the result according to fields.
20882
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20883
+ * @param {Array<string>} [id] Record(s) with unique ID only.
20884
+ * @param {*} [options] Override http request option.
20885
+ * @throws {RequiredError}
20886
+ * @memberof ManagersApi
20887
+ */
20888
+ ManagersApi.prototype.listManagers = function (contactId, page, size, q, sort, fields, id, options) {
20889
+ var _this = this;
20890
+ return ManagersApiFp(this.configuration)
20891
+ .listManagers(contactId, page, size, q, sort, fields, id, options)
20892
+ .then(function (request) { return request(_this.axios, _this.basePath); });
20893
+ };
20894
+ /**
20895
+ *
20896
+ * @summary Locate the manager address link.
20897
+ * @param {string} contactId Contact source ID.
20898
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
20899
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
20900
+ * @param {*} [options] Override http request option.
20901
+ * @throws {RequiredError}
20902
+ * @memberof ManagersApi
20903
+ */
20904
+ ManagersApi.prototype.locateManager = function (contactId, etag, fields, options) {
20905
+ var _this = this;
20906
+ return ManagersApiFp(this.configuration)
20907
+ .locateManager(contactId, etag, fields, options)
20908
+ .then(function (request) { return request(_this.axios, _this.basePath); });
20909
+ };
20910
+ /**
20911
+ *
20912
+ * @summary Associate new Managers to the Contact.
20913
+ * @param {string} contactId Link contact ID.
20914
+ * @param {Array<WebitelContactsInputManager>} input Array of the unique User(s) to associate with the Contact. Any duplicate of an already linked user{id} will result in an error.
20915
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20916
+ * @param {*} [options] Override http request option.
20917
+ * @throws {RequiredError}
20918
+ * @memberof ManagersApi
20919
+ */
20920
+ ManagersApi.prototype.mergeManagers = function (contactId, input, fields, options) {
20921
+ var _this = this;
20922
+ return ManagersApiFp(this.configuration)
20923
+ .mergeManagers(contactId, input, fields, options)
20924
+ .then(function (request) { return request(_this.axios, _this.basePath); });
20925
+ };
20926
+ /**
20927
+ *
20928
+ * @summary Reset Managers to fit the specified final set.
20929
+ * @param {string} contactId Contact ID associated with.
20930
+ * @param {Array<WebitelContactsInputManager>} input Final set of unique User(s) to be linked with the Contact. User(s) that are already linked with the Contact but not listed here will be removed. The first element will become &#x60;primary&#x60; if no other specified.
20931
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
20932
+ * @param {*} [options] Override http request option.
20933
+ * @throws {RequiredError}
20934
+ * @memberof ManagersApi
20935
+ */
20936
+ ManagersApi.prototype.resetManagers = function (contactId, input, fields, options) {
20937
+ var _this = this;
20938
+ return ManagersApiFp(this.configuration)
20939
+ .resetManagers(contactId, input, fields, options)
20940
+ .then(function (request) { return request(_this.axios, _this.basePath); });
20941
+ };
20942
+ /**
20943
+ *
20944
+ * @summary Update the contact\'s manager address link details
20945
+ * @param {string} contactId Link contact ID.
20946
+ * @param {string} etag Unique ID of the latest version of an existing resource.
20947
+ * @param {NEWUpdateOfTheManagerLink} input
20948
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
20949
+ * @param {*} [options] Override http request option.
20950
+ * @throws {RequiredError}
20951
+ * @memberof ManagersApi
20952
+ */
20953
+ ManagersApi.prototype.updateManager = function (contactId, etag, input, fields, options) {
20954
+ var _this = this;
20955
+ return ManagersApiFp(this.configuration)
20956
+ .updateManager(contactId, etag, input, fields, options)
20957
+ .then(function (request) { return request(_this.axios, _this.basePath); });
20958
+ };
20959
+ /**
20960
+ *
20961
+ * @summary Update the contact\'s manager address link details
20962
+ * @param {string} contactId Link contact ID.
20963
+ * @param {string} etag Unique ID of the latest version of an existing resource.
20964
+ * @param {NEWUpdateOfTheManagerLink1} input
20965
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
20966
+ * @param {*} [options] Override http request option.
20967
+ * @throws {RequiredError}
20968
+ * @memberof ManagersApi
20969
+ */
20970
+ ManagersApi.prototype.updateManager2 = function (contactId, etag, input, fields, options) {
20971
+ var _this = this;
20972
+ return ManagersApiFp(this.configuration)
20973
+ .updateManager2(contactId, etag, input, fields, options)
20974
+ .then(function (request) { return request(_this.axios, _this.basePath); });
20975
+ };
20976
+ return ManagersApi;
20977
+ }(BaseAPI));
20978
+
20979
+ // tslint:disable
20980
+ /**
20981
+ * MediaFileServiceApi - axios parameter creator
20982
+ * @export
20983
+ */
20984
+ var MediaFileServiceApiAxiosParamCreator = function (configuration) {
20985
+ var _this = this;
20986
+ return {
20987
+ /**
20988
+ *
20989
+ * @summary Remove MediaFile
20990
+ * @param {string} id
20991
+ * @param {string} [domainId]
20992
+ * @param {*} [options] Override http request option.
20993
+ * @throws {RequiredError}
20994
+ */
20995
+ deleteMediaFile: function (id, domainId, options) {
20996
+ if (options === void 0) { options = {}; }
20997
+ return tslib.__awaiter(_this, void 0, void 0, function () {
20998
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
20999
+ return tslib.__generator(this, function (_b) {
21000
+ switch (_b.label) {
21001
+ case 0:
21002
+ // verify required parameter 'id' is not null or undefined
21003
+ if (id === null || id === undefined) {
21004
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteMediaFile.');
21005
+ }
21006
+ localVarPath = "/storage/media/{id}".replace("{" + 'id' + "}", encodeURIComponent(String(id)));
21007
+ localVarUrlObj = globalImportUrl.parse(localVarPath, true);
21008
+ if (configuration) {
21009
+ baseOptions = configuration.baseOptions;
21010
+ }
21011
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'DELETE' }, baseOptions), options);
21012
+ localVarHeaderParameter = {};
21013
+ localVarQueryParameter = {};
21014
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
21015
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
21016
+ return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
21017
+ case 1:
21018
+ _a = _b.sent();
21019
+ return [3 /*break*/, 4];
21020
+ case 2: return [4 /*yield*/, configuration.apiKey];
21021
+ case 3:
21022
+ _a = _b.sent();
21023
+ _b.label = 4;
21024
+ case 4:
21025
+ localVarApiKeyValue = _a;
21026
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
21027
+ _b.label = 5;
21028
+ case 5:
21029
+ if (domainId !== undefined) {
21030
+ localVarQueryParameter['domain_id'] = domainId;
21031
+ }
21032
+ localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
21033
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
21034
+ delete localVarUrlObj.search;
21035
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21036
+ localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21037
+ return [2 /*return*/, {
21038
+ url: globalImportUrl.format(localVarUrlObj),
21039
+ options: localVarRequestOptions,
21040
+ }];
21041
+ }
21042
+ });
21043
+ });
21044
+ },
21045
+ /**
21046
+ *
21047
+ * @summary MediaFile item
21048
+ * @param {string} id
21049
+ * @param {string} [domainId]
21050
+ * @param {*} [options] Override http request option.
21051
+ * @throws {RequiredError}
21052
+ */
21053
+ readMediaFile: function (id, domainId, options) {
21054
+ if (options === void 0) { options = {}; }
21055
+ return tslib.__awaiter(_this, void 0, void 0, function () {
21056
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
21057
+ return tslib.__generator(this, function (_b) {
21058
+ switch (_b.label) {
21059
+ case 0:
21060
+ // verify required parameter 'id' is not null or undefined
21061
+ if (id === null || id === undefined) {
21062
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling readMediaFile.');
21063
+ }
21064
+ localVarPath = "/storage/media/{id}".replace("{" + 'id' + "}", encodeURIComponent(String(id)));
21065
+ localVarUrlObj = globalImportUrl.parse(localVarPath, true);
21066
+ if (configuration) {
21067
+ baseOptions = configuration.baseOptions;
21068
+ }
21069
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'GET' }, baseOptions), options);
21070
+ localVarHeaderParameter = {};
21071
+ localVarQueryParameter = {};
21072
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
21073
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
21074
+ return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
21075
+ case 1:
21076
+ _a = _b.sent();
21077
+ return [3 /*break*/, 4];
21078
+ case 2: return [4 /*yield*/, configuration.apiKey];
21079
+ case 3:
21080
+ _a = _b.sent();
21081
+ _b.label = 4;
21082
+ case 4:
21083
+ localVarApiKeyValue = _a;
21084
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
21085
+ _b.label = 5;
21086
+ case 5:
21087
+ if (domainId !== undefined) {
21088
+ localVarQueryParameter['domain_id'] = domainId;
21089
+ }
21090
+ localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
21091
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
21092
+ delete localVarUrlObj.search;
21093
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21094
+ localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21095
+ return [2 /*return*/, {
21096
+ url: globalImportUrl.format(localVarUrlObj),
21097
+ options: localVarRequestOptions,
21098
+ }];
21099
+ }
21100
+ });
21101
+ });
21102
+ },
21103
+ /**
21104
+ *
21105
+ * @summary Search MediaFile
21106
+ * @param {number} [page]
21107
+ * @param {number} [size]
21108
+ * @param {string} [q]
21109
+ * @param {string} [sort]
21110
+ * @param {Array<string>} [fields]
21111
+ * @param {Array<number>} [id]
21112
+ * @param {*} [options] Override http request option.
21113
+ * @throws {RequiredError}
21114
+ */
21115
+ searchMediaFile: function (page, size, q, sort, fields, id, options) {
21116
+ if (options === void 0) { options = {}; }
21117
+ return tslib.__awaiter(_this, void 0, void 0, function () {
21118
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
21119
+ return tslib.__generator(this, function (_b) {
21120
+ switch (_b.label) {
21121
+ case 0:
21122
+ localVarPath = "/storage/media";
21123
+ localVarUrlObj = globalImportUrl.parse(localVarPath, true);
21124
+ if (configuration) {
21125
+ baseOptions = configuration.baseOptions;
21126
+ }
21127
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'GET' }, baseOptions), options);
21128
+ localVarHeaderParameter = {};
21129
+ localVarQueryParameter = {};
21130
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
21131
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
21132
+ return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
21133
+ case 1:
21134
+ _a = _b.sent();
21135
+ return [3 /*break*/, 4];
21136
+ case 2: return [4 /*yield*/, configuration.apiKey];
21137
+ case 3:
21138
+ _a = _b.sent();
21139
+ _b.label = 4;
21140
+ case 4:
21141
+ localVarApiKeyValue = _a;
21142
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
21143
+ _b.label = 5;
21144
+ case 5:
21145
+ if (page !== undefined) {
21146
+ localVarQueryParameter['page'] = page;
21147
+ }
21148
+ if (size !== undefined) {
21149
+ localVarQueryParameter['size'] = size;
21150
+ }
21151
+ if (q !== undefined) {
21152
+ localVarQueryParameter['q'] = q;
21153
+ }
21154
+ if (sort !== undefined) {
21155
+ localVarQueryParameter['sort'] = sort;
21156
+ }
21157
+ if (fields) {
21158
+ localVarQueryParameter['fields'] = fields;
21159
+ }
21160
+ if (id) {
21161
+ localVarQueryParameter['id'] = id;
21162
+ }
21163
+ localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
21164
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
21165
+ delete localVarUrlObj.search;
21166
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21167
+ localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21168
+ return [2 /*return*/, {
21169
+ url: globalImportUrl.format(localVarUrlObj),
21170
+ options: localVarRequestOptions,
21171
+ }];
21172
+ }
21173
+ });
21174
+ });
21175
+ },
21176
+ };
21177
+ };
21178
+ /**
21179
+ * MediaFileServiceApi - functional programming interface
21180
+ * @export
21181
+ */
21182
+ var MediaFileServiceApiFp = function (configuration) {
21183
+ return {
21184
+ /**
21185
+ *
21186
+ * @summary Remove MediaFile
21187
+ * @param {string} id
21188
+ * @param {string} [domainId]
21189
+ * @param {*} [options] Override http request option.
21190
+ * @throws {RequiredError}
21191
+ */
21192
+ deleteMediaFile: function (id, domainId, options) {
21193
+ return tslib.__awaiter(this, void 0, void 0, function () {
21194
+ var localVarAxiosArgs;
21195
+ return tslib.__generator(this, function (_a) {
21196
+ switch (_a.label) {
21197
+ case 0: return [4 /*yield*/, MediaFileServiceApiAxiosParamCreator(configuration).deleteMediaFile(id, domainId, options)];
21198
+ case 1:
21199
+ localVarAxiosArgs = _a.sent();
21200
+ return [2 /*return*/, function (axios, basePath) {
21201
+ if (axios === void 0) { axios = globalAxios; }
21202
+ if (basePath === void 0) { basePath = BASE_PATH; }
21203
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
21204
+ return axios.request(axiosRequestArgs);
21205
+ }];
21206
+ }
21207
+ });
21208
+ });
21209
+ },
21210
+ /**
21211
+ *
21212
+ * @summary MediaFile item
21213
+ * @param {string} id
21214
+ * @param {string} [domainId]
21215
+ * @param {*} [options] Override http request option.
21216
+ * @throws {RequiredError}
21217
+ */
21218
+ readMediaFile: function (id, domainId, options) {
21219
+ return tslib.__awaiter(this, void 0, void 0, function () {
21220
+ var localVarAxiosArgs;
21221
+ return tslib.__generator(this, function (_a) {
21222
+ switch (_a.label) {
21223
+ case 0: return [4 /*yield*/, MediaFileServiceApiAxiosParamCreator(configuration).readMediaFile(id, domainId, options)];
21224
+ case 1:
21225
+ localVarAxiosArgs = _a.sent();
21226
+ return [2 /*return*/, function (axios, basePath) {
21227
+ if (axios === void 0) { axios = globalAxios; }
21228
+ if (basePath === void 0) { basePath = BASE_PATH; }
21229
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
21230
+ return axios.request(axiosRequestArgs);
21231
+ }];
21232
+ }
21233
+ });
21234
+ });
21235
+ },
21236
+ /**
21237
+ *
21238
+ * @summary Search MediaFile
21239
+ * @param {number} [page]
21240
+ * @param {number} [size]
21241
+ * @param {string} [q]
21242
+ * @param {string} [sort]
21243
+ * @param {Array<string>} [fields]
21244
+ * @param {Array<number>} [id]
21245
+ * @param {*} [options] Override http request option.
21246
+ * @throws {RequiredError}
21247
+ */
21248
+ searchMediaFile: function (page, size, q, sort, fields, id, options) {
21249
+ return tslib.__awaiter(this, void 0, void 0, function () {
21250
+ var localVarAxiosArgs;
21251
+ return tslib.__generator(this, function (_a) {
21252
+ switch (_a.label) {
21253
+ case 0: return [4 /*yield*/, MediaFileServiceApiAxiosParamCreator(configuration).searchMediaFile(page, size, q, sort, fields, id, options)];
21254
+ case 1:
21255
+ localVarAxiosArgs = _a.sent();
21256
+ return [2 /*return*/, function (axios, basePath) {
21257
+ if (axios === void 0) { axios = globalAxios; }
21258
+ if (basePath === void 0) { basePath = BASE_PATH; }
21259
+ var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
21260
+ return axios.request(axiosRequestArgs);
21261
+ }];
21262
+ }
21263
+ });
21264
+ });
21265
+ },
21266
+ };
21267
+ };
21268
+ /**
21269
+ * MediaFileServiceApi - factory interface
21270
+ * @export
21271
+ */
21272
+ var MediaFileServiceApiFactory = function (configuration, basePath, axios) {
21273
+ return {
21274
+ /**
21275
+ *
21276
+ * @summary Remove MediaFile
21277
+ * @param {string} id
21278
+ * @param {string} [domainId]
21279
+ * @param {*} [options] Override http request option.
21280
+ * @throws {RequiredError}
21281
+ */
21282
+ deleteMediaFile: function (id, domainId, options) {
21283
+ return MediaFileServiceApiFp(configuration)
21284
+ .deleteMediaFile(id, domainId, options)
21285
+ .then(function (request) { return request(axios, basePath); });
21286
+ },
21287
+ /**
21288
+ *
21289
+ * @summary MediaFile item
21290
+ * @param {string} id
21291
+ * @param {string} [domainId]
21292
+ * @param {*} [options] Override http request option.
21293
+ * @throws {RequiredError}
21294
+ */
21295
+ readMediaFile: function (id, domainId, options) {
21296
+ return MediaFileServiceApiFp(configuration)
21297
+ .readMediaFile(id, domainId, options)
21298
+ .then(function (request) { return request(axios, basePath); });
21299
+ },
21300
+ /**
21301
+ *
21302
+ * @summary Search MediaFile
21303
+ * @param {number} [page]
21304
+ * @param {number} [size]
21305
+ * @param {string} [q]
21306
+ * @param {string} [sort]
21307
+ * @param {Array<string>} [fields]
21308
+ * @param {Array<number>} [id]
21309
+ * @param {*} [options] Override http request option.
21310
+ * @throws {RequiredError}
21311
+ */
21312
+ searchMediaFile: function (page, size, q, sort, fields, id, options) {
21313
+ return MediaFileServiceApiFp(configuration)
21314
+ .searchMediaFile(page, size, q, sort, fields, id, options)
21315
+ .then(function (request) { return request(axios, basePath); });
21316
+ },
21317
+ };
21318
+ };
21319
+ /**
21320
+ * MediaFileServiceApi - object-oriented interface
21321
+ * @export
21322
+ * @class MediaFileServiceApi
21323
+ * @extends {BaseAPI}
21324
+ */
21325
+ var MediaFileServiceApi = /** @class */ (function (_super) {
21326
+ tslib.__extends(MediaFileServiceApi, _super);
21327
+ function MediaFileServiceApi() {
21328
+ return _super !== null && _super.apply(this, arguments) || this;
21329
+ }
21330
+ /**
21331
+ *
21332
+ * @summary Remove MediaFile
21333
+ * @param {string} id
21334
+ * @param {string} [domainId]
21335
+ * @param {*} [options] Override http request option.
21336
+ * @throws {RequiredError}
21337
+ * @memberof MediaFileServiceApi
21338
+ */
21339
+ MediaFileServiceApi.prototype.deleteMediaFile = function (id, domainId, options) {
21340
+ var _this = this;
21341
+ return MediaFileServiceApiFp(this.configuration)
21342
+ .deleteMediaFile(id, domainId, options)
21343
+ .then(function (request) { return request(_this.axios, _this.basePath); });
21344
+ };
21345
+ /**
21346
+ *
21347
+ * @summary MediaFile item
21348
+ * @param {string} id
21349
+ * @param {string} [domainId]
21350
+ * @param {*} [options] Override http request option.
21351
+ * @throws {RequiredError}
21352
+ * @memberof MediaFileServiceApi
21353
+ */
21354
+ MediaFileServiceApi.prototype.readMediaFile = function (id, domainId, options) {
21355
+ var _this = this;
21356
+ return MediaFileServiceApiFp(this.configuration)
21357
+ .readMediaFile(id, domainId, options)
21358
+ .then(function (request) { return request(_this.axios, _this.basePath); });
21359
+ };
21360
+ /**
21361
+ *
21362
+ * @summary Search MediaFile
21363
+ * @param {number} [page]
21364
+ * @param {number} [size]
21365
+ * @param {string} [q]
21366
+ * @param {string} [sort]
21367
+ * @param {Array<string>} [fields]
21368
+ * @param {Array<number>} [id]
21369
+ * @param {*} [options] Override http request option.
21370
+ * @throws {RequiredError}
21371
+ * @memberof MediaFileServiceApi
21372
+ */
21373
+ MediaFileServiceApi.prototype.searchMediaFile = function (page, size, q, sort, fields, id, options) {
21374
+ var _this = this;
21375
+ return MediaFileServiceApiFp(this.configuration)
21376
+ .searchMediaFile(page, size, q, sort, fields, id, options)
21377
+ .then(function (request) { return request(_this.axios, _this.basePath); });
21378
+ };
21379
+ return MediaFileServiceApi;
21380
+ }(BaseAPI));
21381
+
21382
+ // tslint:disable
21383
+ /**
21384
+ * MemberServiceApi - axios parameter creator
21385
+ * @export
21386
+ */
21387
+ var MemberServiceApiAxiosParamCreator = function (configuration) {
21388
+ var _this = this;
21389
+ return {
21390
+ /**
21391
+ *
21392
+ * @param {string} attemptId
21393
+ * @param {EngineAttemptCallbackRequest} body
21394
+ * @param {*} [options] Override http request option.
21395
+ * @throws {RequiredError}
21396
+ */
21397
+ attemptCallback: function (attemptId, body, options) {
21398
+ if (options === void 0) { options = {}; }
21399
+ return tslib.__awaiter(_this, void 0, void 0, function () {
21400
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
21401
+ return tslib.__generator(this, function (_b) {
21402
+ switch (_b.label) {
21403
+ case 0:
21404
+ // verify required parameter 'attemptId' is not null or undefined
21405
+ if (attemptId === null || attemptId === undefined) {
21406
+ throw new RequiredError('attemptId', 'Required parameter attemptId was null or undefined when calling attemptCallback.');
21407
+ }
21408
+ // verify required parameter 'body' is not null or undefined
21409
+ if (body === null || body === undefined) {
21410
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling attemptCallback.');
21411
+ }
21412
+ localVarPath = "/call_center/attempts/{attempt_id}".replace("{" + 'attempt_id' + "}", encodeURIComponent(String(attemptId)));
21413
+ localVarUrlObj = globalImportUrl.parse(localVarPath, true);
21414
+ if (configuration) {
21415
+ baseOptions = configuration.baseOptions;
21416
+ }
21417
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PATCH' }, baseOptions), options);
21418
+ localVarHeaderParameter = {};
21419
+ localVarQueryParameter = {};
21420
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
21421
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
21422
+ return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
21423
+ case 1:
21424
+ _a = _b.sent();
21425
+ return [3 /*break*/, 4];
21426
+ case 2: return [4 /*yield*/, configuration.apiKey];
21427
+ case 3:
21428
+ _a = _b.sent();
21429
+ _b.label = 4;
21430
+ case 4:
21431
+ localVarApiKeyValue = _a;
21432
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
21433
+ _b.label = 5;
21434
+ case 5:
21435
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21436
+ localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
21437
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
21438
+ delete localVarUrlObj.search;
21439
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21440
+ localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21441
+ needsSerialization = typeof body !== 'string' ||
21442
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
21443
+ localVarRequestOptions.data = needsSerialization
21444
+ ? JSON.stringify(body !== undefined ? body : {})
21445
+ : body || '';
21446
+ return [2 /*return*/, {
21447
+ url: globalImportUrl.format(localVarUrlObj),
21448
+ options: localVarRequestOptions,
21449
+ }];
21450
+ }
21451
+ });
21452
+ });
21453
+ },
21454
+ /**
21455
+ *
21456
+ * @param {number} queueId
21457
+ * @param {string} memberId
21458
+ * @param {string} attemptId
21459
+ * @param {EngineAttemptResultRequest} body
21460
+ * @param {*} [options] Override http request option.
21461
+ * @throws {RequiredError}
21462
+ */
21463
+ attemptResult: function (queueId, memberId, attemptId, body, options) {
21464
+ if (options === void 0) { options = {}; }
21465
+ return tslib.__awaiter(_this, void 0, void 0, function () {
21466
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
21467
+ return tslib.__generator(this, function (_b) {
21468
+ switch (_b.label) {
21469
+ case 0:
21470
+ // verify required parameter 'queueId' is not null or undefined
21471
+ if (queueId === null || queueId === undefined) {
21472
+ throw new RequiredError('queueId', 'Required parameter queueId was null or undefined when calling attemptResult.');
21473
+ }
21474
+ // verify required parameter 'memberId' is not null or undefined
21475
+ if (memberId === null || memberId === undefined) {
21476
+ throw new RequiredError('memberId', 'Required parameter memberId was null or undefined when calling attemptResult.');
21477
+ }
21478
+ // verify required parameter 'attemptId' is not null or undefined
21479
+ if (attemptId === null || attemptId === undefined) {
21480
+ throw new RequiredError('attemptId', 'Required parameter attemptId was null or undefined when calling attemptResult.');
21481
+ }
21482
+ // verify required parameter 'body' is not null or undefined
21483
+ if (body === null || body === undefined) {
21484
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling attemptResult.');
21485
+ }
21486
+ localVarPath = "/call_center/queues/{queue_id}/members/{member_id}/attempts/{attempt_id}"
21487
+ .replace("{" + 'queue_id' + "}", encodeURIComponent(String(queueId)))
21488
+ .replace("{" + 'member_id' + "}", encodeURIComponent(String(memberId)))
21489
+ .replace("{" + 'attempt_id' + "}", encodeURIComponent(String(attemptId)));
21490
+ localVarUrlObj = globalImportUrl.parse(localVarPath, true);
21491
+ if (configuration) {
21492
+ baseOptions = configuration.baseOptions;
21493
+ }
21494
+ localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PATCH' }, baseOptions), options);
21495
+ localVarHeaderParameter = {};
21496
+ localVarQueryParameter = {};
21497
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
21498
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
21499
+ return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
21500
+ case 1:
21501
+ _a = _b.sent();
21502
+ return [3 /*break*/, 4];
21503
+ case 2: return [4 /*yield*/, configuration.apiKey];
21504
+ case 3:
21505
+ _a = _b.sent();
21506
+ _b.label = 4;
21507
+ case 4:
21508
+ localVarApiKeyValue = _a;
21509
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
21510
+ _b.label = 5;
21511
+ case 5:
21512
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21513
+ localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
21514
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
21515
+ delete localVarUrlObj.search;
21516
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21517
+ localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21518
+ needsSerialization = typeof body !== 'string' ||
21519
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
21520
+ localVarRequestOptions.data = needsSerialization
21521
+ ? JSON.stringify(body !== undefined ? body : {})
21522
+ : body || '';
21523
+ return [2 /*return*/, {
21524
+ url: globalImportUrl.format(localVarUrlObj),
21525
+ options: localVarRequestOptions,
21526
+ }];
21527
+ }
21528
+ });
21529
+ });
21530
+ },
21531
+ /**
21532
+ *
21533
+ * @param {string} attemptId
21534
+ * @param {EngineAttemptRenewalResultRequest} body
21535
+ * @param {*} [options] Override http request option.
21536
+ * @throws {RequiredError}
21537
+ */
21538
+ attemptsRenewalResult: function (attemptId, body, options) {
21539
+ if (options === void 0) { options = {}; }
21540
+ return tslib.__awaiter(_this, void 0, void 0, function () {
21541
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
21542
+ return tslib.__generator(this, function (_b) {
21543
+ switch (_b.label) {
21544
+ case 0:
21545
+ // verify required parameter 'attemptId' is not null or undefined
21546
+ if (attemptId === null || attemptId === undefined) {
21547
+ throw new RequiredError('attemptId', 'Required parameter attemptId was null or undefined when calling attemptsRenewalResult.');
21548
+ }
21549
+ // verify required parameter 'body' is not null or undefined
21550
+ if (body === null || body === undefined) {
21551
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling attemptsRenewalResult.');
21552
+ }
21553
+ localVarPath = "/call_center/queues/attempts/{attempt_id}/renewal".replace("{" + 'attempt_id' + "}", encodeURIComponent(String(attemptId)));
20476
21554
  localVarUrlObj = globalImportUrl.parse(localVarPath, true);
20477
21555
  if (configuration) {
20478
21556
  baseOptions = configuration.baseOptions;
@@ -41091,13 +42169,39 @@
41091
42169
  */
41092
42170
 
41093
42171
  // tslint:disable
41094
- (function (LoggerACTION) {
41095
- LoggerACTION["DEFAULTNOACTION"] = "DEFAULT_NO_ACTION";
41096
- LoggerACTION["CREATE"] = "CREATE";
41097
- LoggerACTION["UPDATE"] = "UPDATE";
41098
- LoggerACTION["READ"] = "READ";
41099
- LoggerACTION["DELETE"] = "DELETE";
41100
- })(exports.LoggerACTION || (exports.LoggerACTION = {}));
42172
+ (function (LoggerAction) {
42173
+ LoggerAction["DefaultNoAction"] = "default_no_action";
42174
+ LoggerAction["Create"] = "create";
42175
+ LoggerAction["Update"] = "update";
42176
+ LoggerAction["Read"] = "read";
42177
+ LoggerAction["Delete"] = "delete";
42178
+ })(exports.LoggerAction || (exports.LoggerAction = {}));
42179
+
42180
+ // tslint:disable
42181
+ /**
42182
+ * Webitel engine API
42183
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
42184
+ *
42185
+ * The version of the OpenAPI document: 23.07.0
42186
+ * Contact: support@webitel.com
42187
+ *
42188
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
42189
+ * https://openapi-generator.tech
42190
+ * Do not edit the class manually.
42191
+ */
42192
+
42193
+ // tslint:disable
42194
+ /**
42195
+ * Webitel engine API
42196
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
42197
+ *
42198
+ * The version of the OpenAPI document: 23.07.0
42199
+ * Contact: support@webitel.com
42200
+ *
42201
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
42202
+ * https://openapi-generator.tech
42203
+ * Do not edit the class manually.
42204
+ */
41101
42205
 
41102
42206
  // tslint:disable
41103
42207
  /**
@@ -46599,6 +47703,10 @@
46599
47703
  exports.LoggerServiceApiFp = LoggerServiceApiFp;
46600
47704
  exports.LoggerServiceApiFactory = LoggerServiceApiFactory;
46601
47705
  exports.LoggerServiceApi = LoggerServiceApi;
47706
+ exports.ManagersApiAxiosParamCreator = ManagersApiAxiosParamCreator;
47707
+ exports.ManagersApiFp = ManagersApiFp;
47708
+ exports.ManagersApiFactory = ManagersApiFactory;
47709
+ exports.ManagersApi = ManagersApi;
46602
47710
  exports.MediaFileServiceApiAxiosParamCreator = MediaFileServiceApiAxiosParamCreator;
46603
47711
  exports.MediaFileServiceApiFp = MediaFileServiceApiFp;
46604
47712
  exports.MediaFileServiceApiFactory = MediaFileServiceApiFactory;