webitel-sdk 23.7.6 → 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 (75) hide show
  1. package/bundles/index.esm.js +1091 -56
  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 +1478 -329
  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/calendar-service-api.js +28 -7
  10. package/esm2015/api/calendar-service-api.js.map +1 -1
  11. package/esm2015/api/config-service-api.js +14 -7
  12. package/esm2015/api/config-service-api.js.map +1 -1
  13. package/esm2015/api/contacts-api.js +15 -15
  14. package/esm2015/api/contacts-api.js.map +1 -1
  15. package/esm2015/api/index.js +3 -0
  16. package/esm2015/api/index.js.map +1 -1
  17. package/esm2015/api/logger-action.js +8 -8
  18. package/esm2015/api/logger-config-status.js +13 -0
  19. package/esm2015/api/logger-config-status.js.map +1 -0
  20. package/esm2015/api/logger-service-api.js +18 -18
  21. package/esm2015/api/logger-service-api.js.map +1 -1
  22. package/esm2015/api/managers-api.js +984 -0
  23. package/esm2015/api/managers-api.js.map +1 -0
  24. package/esm2015/api/newupdate-of-the-manager-link.js +13 -0
  25. package/esm2015/api/newupdate-of-the-manager-link.js.map +1 -0
  26. package/esm2015/api/newupdate-of-the-manager-link1.js +13 -0
  27. package/esm2015/api/newupdate-of-the-manager-link1.js.map +1 -0
  28. package/esm2015/api.js +1 -0
  29. package/esm2015/api.js.map +1 -1
  30. package/esm5/api/calendar-service-api.js +28 -7
  31. package/esm5/api/calendar-service-api.js.map +1 -1
  32. package/esm5/api/config-service-api.js +14 -7
  33. package/esm5/api/config-service-api.js.map +1 -1
  34. package/esm5/api/contacts-api.js +15 -15
  35. package/esm5/api/contacts-api.js.map +1 -1
  36. package/esm5/api/index.js +3 -0
  37. package/esm5/api/index.js.map +1 -1
  38. package/esm5/api/logger-action.js +8 -8
  39. package/esm5/api/logger-config-status.js +13 -0
  40. package/esm5/api/logger-config-status.js.map +1 -0
  41. package/esm5/api/logger-service-api.js +18 -18
  42. package/esm5/api/logger-service-api.js.map +1 -1
  43. package/esm5/api/managers-api.js +1096 -0
  44. package/esm5/api/managers-api.js.map +1 -0
  45. package/esm5/api/newupdate-of-the-manager-link.js +13 -0
  46. package/esm5/api/newupdate-of-the-manager-link.js.map +1 -0
  47. package/esm5/api/newupdate-of-the-manager-link1.js +13 -0
  48. package/esm5/api/newupdate-of-the-manager-link1.js.map +1 -0
  49. package/esm5/api.js +1 -0
  50. package/esm5/api.js.map +1 -1
  51. package/package.json +1 -1
  52. package/types/api/calendar-service-api.d.ts +16 -4
  53. package/types/api/calendar-service-api.d.ts.map +1 -1
  54. package/types/api/config-service-api.d.ts +8 -4
  55. package/types/api/config-service-api.d.ts.map +1 -1
  56. package/types/api/contacts-api.d.ts +8 -8
  57. package/types/api/contacts-api.d.ts.map +1 -1
  58. package/types/api/engine-agent-today-statistics-response.d.ts +12 -0
  59. package/types/api/engine-agent-today-statistics-response.d.ts.map +1 -1
  60. package/types/api/index.d.ts +3 -0
  61. package/types/api/index.d.ts.map +1 -1
  62. package/types/api/logger-action.d.ts +6 -6
  63. package/types/api/logger-config-status.d.ts +25 -0
  64. package/types/api/logger-config-status.d.ts.map +1 -0
  65. package/types/api/logger-log.d.ts +6 -0
  66. package/types/api/logger-log.d.ts.map +1 -1
  67. package/types/api/logger-service-api.d.ts +20 -20
  68. package/types/api/managers-api.d.ts +398 -0
  69. package/types/api/managers-api.d.ts.map +1 -0
  70. package/types/api/newupdate-of-the-manager-link.d.ts +32 -0
  71. package/types/api/newupdate-of-the-manager-link.d.ts.map +1 -0
  72. package/types/api/newupdate-of-the-manager-link1.d.ts +32 -0
  73. package/types/api/newupdate-of-the-manager-link1.d.ts.map +1 -0
  74. package/types/api.d.ts +1 -0
  75. package/types/api.d.ts.map +1 -1
@@ -7205,10 +7205,13 @@ const CalendarServiceApiAxiosParamCreator = function (configuration) {
7205
7205
  * @param {number} [page]
7206
7206
  * @param {number} [size]
7207
7207
  * @param {string} [q]
7208
+ * @param {string} [sort]
7209
+ * @param {Array<string>} [fields]
7210
+ * @param {Array<number>} [id]
7208
7211
  * @param {*} [options] Override http request option.
7209
7212
  * @throws {RequiredError}
7210
7213
  */
7211
- searchTimezones: async (page, size, q, options = {}) => {
7214
+ searchTimezones: async (page, size, q, sort, fields, id, options = {}) => {
7212
7215
  const localVarPath = `/calendars/timezones`;
7213
7216
  const localVarUrlObj = parse(localVarPath, true);
7214
7217
  let baseOptions;
@@ -7238,6 +7241,15 @@ const CalendarServiceApiAxiosParamCreator = function (configuration) {
7238
7241
  if (q !== undefined) {
7239
7242
  localVarQueryParameter['q'] = q;
7240
7243
  }
7244
+ if (sort !== undefined) {
7245
+ localVarQueryParameter['sort'] = sort;
7246
+ }
7247
+ if (fields) {
7248
+ localVarQueryParameter['fields'] = fields;
7249
+ }
7250
+ if (id) {
7251
+ localVarQueryParameter['id'] = id;
7252
+ }
7241
7253
  localVarUrlObj.query = {
7242
7254
  ...localVarUrlObj.query,
7243
7255
  ...localVarQueryParameter,
@@ -7406,11 +7418,14 @@ const CalendarServiceApiFp = function (configuration) {
7406
7418
  * @param {number} [page]
7407
7419
  * @param {number} [size]
7408
7420
  * @param {string} [q]
7421
+ * @param {string} [sort]
7422
+ * @param {Array<string>} [fields]
7423
+ * @param {Array<number>} [id]
7409
7424
  * @param {*} [options] Override http request option.
7410
7425
  * @throws {RequiredError}
7411
7426
  */
7412
- async searchTimezones(page, size, q, options) {
7413
- const localVarAxiosArgs = await CalendarServiceApiAxiosParamCreator(configuration).searchTimezones(page, size, q, options);
7427
+ async searchTimezones(page, size, q, sort, fields, id, options) {
7428
+ const localVarAxiosArgs = await CalendarServiceApiAxiosParamCreator(configuration).searchTimezones(page, size, q, sort, fields, id, options);
7414
7429
  return (axios = globalAxios, basePath = BASE_PATH) => {
7415
7430
  const axiosRequestArgs = {
7416
7431
  ...localVarAxiosArgs.options,
@@ -7506,12 +7521,15 @@ const CalendarServiceApiFactory = function (configuration, basePath, axios) {
7506
7521
  * @param {number} [page]
7507
7522
  * @param {number} [size]
7508
7523
  * @param {string} [q]
7524
+ * @param {string} [sort]
7525
+ * @param {Array<string>} [fields]
7526
+ * @param {Array<number>} [id]
7509
7527
  * @param {*} [options] Override http request option.
7510
7528
  * @throws {RequiredError}
7511
7529
  */
7512
- searchTimezones(page, size, q, options) {
7530
+ searchTimezones(page, size, q, sort, fields, id, options) {
7513
7531
  return CalendarServiceApiFp(configuration)
7514
- .searchTimezones(page, size, q, options)
7532
+ .searchTimezones(page, size, q, sort, fields, id, options)
7515
7533
  .then((request) => request(axios, basePath));
7516
7534
  },
7517
7535
  /**
@@ -7601,13 +7619,16 @@ class CalendarServiceApi extends BaseAPI {
7601
7619
  * @param {number} [page]
7602
7620
  * @param {number} [size]
7603
7621
  * @param {string} [q]
7622
+ * @param {string} [sort]
7623
+ * @param {Array<string>} [fields]
7624
+ * @param {Array<number>} [id]
7604
7625
  * @param {*} [options] Override http request option.
7605
7626
  * @throws {RequiredError}
7606
7627
  * @memberof CalendarServiceApi
7607
7628
  */
7608
- searchTimezones(page, size, q, options) {
7629
+ searchTimezones(page, size, q, sort, fields, id, options) {
7609
7630
  return CalendarServiceApiFp(this.configuration)
7610
- .searchTimezones(page, size, q, options)
7631
+ .searchTimezones(page, size, q, sort, fields, id, options)
7611
7632
  .then((request) => request(this.axios, this.basePath));
7612
7633
  }
7613
7634
  /**
@@ -11605,10 +11626,11 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
11605
11626
  },
11606
11627
  /**
11607
11628
  *
11629
+ * @param {boolean} [includeExisting]
11608
11630
  * @param {*} [options] Override http request option.
11609
11631
  * @throws {RequiredError}
11610
11632
  */
11611
- readSystemObjects: async (options = {}) => {
11633
+ readSystemObjects: async (includeExisting, options = {}) => {
11612
11634
  const localVarPath = `/logger/available_objects`;
11613
11635
  const localVarUrlObj = parse(localVarPath, true);
11614
11636
  let baseOptions;
@@ -11629,6 +11651,9 @@ const ConfigServiceApiAxiosParamCreator = function (configuration) {
11629
11651
  : await configuration.apiKey;
11630
11652
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
11631
11653
  }
11654
+ if (includeExisting !== undefined) {
11655
+ localVarQueryParameter['include_existing'] = includeExisting;
11656
+ }
11632
11657
  localVarUrlObj.query = {
11633
11658
  ...localVarUrlObj.query,
11634
11659
  ...localVarQueryParameter,
@@ -11862,11 +11887,12 @@ const ConfigServiceApiFp = function (configuration) {
11862
11887
  },
11863
11888
  /**
11864
11889
  *
11890
+ * @param {boolean} [includeExisting]
11865
11891
  * @param {*} [options] Override http request option.
11866
11892
  * @throws {RequiredError}
11867
11893
  */
11868
- async readSystemObjects(options) {
11869
- const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).readSystemObjects(options);
11894
+ async readSystemObjects(includeExisting, options) {
11895
+ const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).readSystemObjects(includeExisting, options);
11870
11896
  return (axios = globalAxios, basePath = BASE_PATH) => {
11871
11897
  const axiosRequestArgs = {
11872
11898
  ...localVarAxiosArgs.options,
@@ -11978,12 +12004,13 @@ const ConfigServiceApiFactory = function (configuration, basePath, axios) {
11978
12004
  },
11979
12005
  /**
11980
12006
  *
12007
+ * @param {boolean} [includeExisting]
11981
12008
  * @param {*} [options] Override http request option.
11982
12009
  * @throws {RequiredError}
11983
12010
  */
11984
- readSystemObjects(options) {
12011
+ readSystemObjects(includeExisting, options) {
11985
12012
  return ConfigServiceApiFp(configuration)
11986
- .readSystemObjects(options)
12013
+ .readSystemObjects(includeExisting, options)
11987
12014
  .then((request) => request(axios, basePath));
11988
12015
  },
11989
12016
  /**
@@ -12085,13 +12112,14 @@ class ConfigServiceApi extends BaseAPI {
12085
12112
  }
12086
12113
  /**
12087
12114
  *
12115
+ * @param {boolean} [includeExisting]
12088
12116
  * @param {*} [options] Override http request option.
12089
12117
  * @throws {RequiredError}
12090
12118
  * @memberof ConfigServiceApi
12091
12119
  */
12092
- readSystemObjects(options) {
12120
+ readSystemObjects(includeExisting, options) {
12093
12121
  return ConfigServiceApiFp(this.configuration)
12094
- .readSystemObjects(options)
12122
+ .readSystemObjects(includeExisting, options)
12095
12123
  .then((request) => request(this.axios, this.basePath));
12096
12124
  }
12097
12125
  /**
@@ -12249,18 +12277,18 @@ const ContactsApiAxiosParamCreator = function (configuration) {
12249
12277
  /**
12250
12278
  *
12251
12279
  * @summary Locate Contact source
12252
- * @param {string} etag The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
12280
+ * @param {string} id The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
12253
12281
  * @param {Array<string>} [fields] Source Fields to return into result.
12254
12282
  * @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]
12255
12283
  * @param {*} [options] Override http request option.
12256
12284
  * @throws {RequiredError}
12257
12285
  */
12258
- locateContact: async (etag, fields, mode, options = {}) => {
12259
- // verify required parameter 'etag' is not null or undefined
12260
- if (etag === null || etag === undefined) {
12261
- throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling locateContact.');
12286
+ locateContact: async (id, fields, mode, options = {}) => {
12287
+ // verify required parameter 'id' is not null or undefined
12288
+ if (id === null || id === undefined) {
12289
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling locateContact.');
12262
12290
  }
12263
- const localVarPath = `/contacts/{etag}`.replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
12291
+ const localVarPath = `/contacts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
12264
12292
  const localVarUrlObj = parse(localVarPath, true);
12265
12293
  let baseOptions;
12266
12294
  if (configuration) {
@@ -12493,14 +12521,14 @@ const ContactsApiFp = function (configuration) {
12493
12521
  /**
12494
12522
  *
12495
12523
  * @summary Locate Contact source
12496
- * @param {string} etag The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
12524
+ * @param {string} id The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
12497
12525
  * @param {Array<string>} [fields] Source Fields to return into result.
12498
12526
  * @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]
12499
12527
  * @param {*} [options] Override http request option.
12500
12528
  * @throws {RequiredError}
12501
12529
  */
12502
- async locateContact(etag, fields, mode, options) {
12503
- const localVarAxiosArgs = await ContactsApiAxiosParamCreator(configuration).locateContact(etag, fields, mode, options);
12530
+ async locateContact(id, fields, mode, options) {
12531
+ const localVarAxiosArgs = await ContactsApiAxiosParamCreator(configuration).locateContact(id, fields, mode, options);
12504
12532
  return (axios = globalAxios, basePath = BASE_PATH) => {
12505
12533
  const axiosRequestArgs = {
12506
12534
  ...localVarAxiosArgs.options,
@@ -12589,15 +12617,15 @@ const ContactsApiFactory = function (configuration, basePath, axios) {
12589
12617
  /**
12590
12618
  *
12591
12619
  * @summary Locate Contact source
12592
- * @param {string} etag The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
12620
+ * @param {string} id The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
12593
12621
  * @param {Array<string>} [fields] Source Fields to return into result.
12594
12622
  * @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]
12595
12623
  * @param {*} [options] Override http request option.
12596
12624
  * @throws {RequiredError}
12597
12625
  */
12598
- locateContact(etag, fields, mode, options) {
12626
+ locateContact(id, fields, mode, options) {
12599
12627
  return ContactsApiFp(configuration)
12600
- .locateContact(etag, fields, mode, options)
12628
+ .locateContact(id, fields, mode, options)
12601
12629
  .then((request) => request(axios, basePath));
12602
12630
  },
12603
12631
  /**
@@ -12673,16 +12701,16 @@ class ContactsApi extends BaseAPI {
12673
12701
  /**
12674
12702
  *
12675
12703
  * @summary Locate Contact source
12676
- * @param {string} etag The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
12704
+ * @param {string} id The Contact source IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
12677
12705
  * @param {Array<string>} [fields] Source Fields to return into result.
12678
12706
  * @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]
12679
12707
  * @param {*} [options] Override http request option.
12680
12708
  * @throws {RequiredError}
12681
12709
  * @memberof ContactsApi
12682
12710
  */
12683
- locateContact(etag, fields, mode, options) {
12711
+ locateContact(id, fields, mode, options) {
12684
12712
  return ContactsApiFp(this.configuration)
12685
- .locateContact(etag, fields, mode, options)
12713
+ .locateContact(id, fields, mode, options)
12686
12714
  .then((request) => request(this.axios, this.basePath));
12687
12715
  }
12688
12716
  /**
@@ -17398,7 +17426,7 @@ const LoggerServiceApiAxiosParamCreator = function (configuration) {
17398
17426
  return {
17399
17427
  /**
17400
17428
  *
17401
- * @param {number} configId REQUIRED filter
17429
+ * @param {number} configId
17402
17430
  * @param {number} [page]
17403
17431
  * @param {number} [size]
17404
17432
  * @param {string} [q]
@@ -17406,7 +17434,7 @@ const LoggerServiceApiAxiosParamCreator = function (configuration) {
17406
17434
  * @param {Array<string>} [fields]
17407
17435
  * @param {number} [userId]
17408
17436
  * @param {string} [userName]
17409
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
17437
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action]
17410
17438
  * @param {string} [userIp]
17411
17439
  * @param {string} [dateFrom]
17412
17440
  * @param {string} [dateTo]
@@ -17463,13 +17491,13 @@ const LoggerServiceApiAxiosParamCreator = function (configuration) {
17463
17491
  localVarQueryParameter['action'] = action;
17464
17492
  }
17465
17493
  if (userIp !== undefined) {
17466
- localVarQueryParameter['userIp'] = userIp;
17494
+ localVarQueryParameter['user_ip'] = userIp;
17467
17495
  }
17468
17496
  if (dateFrom !== undefined) {
17469
- localVarQueryParameter['dateFrom'] = dateFrom;
17497
+ localVarQueryParameter['date_from'] = dateFrom;
17470
17498
  }
17471
17499
  if (dateTo !== undefined) {
17472
- localVarQueryParameter['dateTo'] = dateTo;
17500
+ localVarQueryParameter['date_to'] = dateTo;
17473
17501
  }
17474
17502
  localVarUrlObj.query = {
17475
17503
  ...localVarUrlObj.query,
@@ -17499,7 +17527,7 @@ const LoggerServiceApiAxiosParamCreator = function (configuration) {
17499
17527
  * @param {Array<string>} [fields]
17500
17528
  * @param {number} [objectId]
17501
17529
  * @param {string} [objectName]
17502
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
17530
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action] GENERAL filters.
17503
17531
  * @param {string} [userIp]
17504
17532
  * @param {string} [dateFrom]
17505
17533
  * @param {string} [dateTo]
@@ -17556,13 +17584,13 @@ const LoggerServiceApiAxiosParamCreator = function (configuration) {
17556
17584
  localVarQueryParameter['action'] = action;
17557
17585
  }
17558
17586
  if (userIp !== undefined) {
17559
- localVarQueryParameter['userIp'] = userIp;
17587
+ localVarQueryParameter['user_ip'] = userIp;
17560
17588
  }
17561
17589
  if (dateFrom !== undefined) {
17562
- localVarQueryParameter['dateFrom'] = dateFrom;
17590
+ localVarQueryParameter['date_from'] = dateFrom;
17563
17591
  }
17564
17592
  if (dateTo !== undefined) {
17565
- localVarQueryParameter['dateTo'] = dateTo;
17593
+ localVarQueryParameter['date_to'] = dateTo;
17566
17594
  }
17567
17595
  localVarUrlObj.query = {
17568
17596
  ...localVarUrlObj.query,
@@ -17592,7 +17620,7 @@ const LoggerServiceApiFp = function (configuration) {
17592
17620
  return {
17593
17621
  /**
17594
17622
  *
17595
- * @param {number} configId REQUIRED filter
17623
+ * @param {number} configId
17596
17624
  * @param {number} [page]
17597
17625
  * @param {number} [size]
17598
17626
  * @param {string} [q]
@@ -17600,7 +17628,7 @@ const LoggerServiceApiFp = function (configuration) {
17600
17628
  * @param {Array<string>} [fields]
17601
17629
  * @param {number} [userId]
17602
17630
  * @param {string} [userName]
17603
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
17631
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action]
17604
17632
  * @param {string} [userIp]
17605
17633
  * @param {string} [dateFrom]
17606
17634
  * @param {string} [dateTo]
@@ -17627,7 +17655,7 @@ const LoggerServiceApiFp = function (configuration) {
17627
17655
  * @param {Array<string>} [fields]
17628
17656
  * @param {number} [objectId]
17629
17657
  * @param {string} [objectName]
17630
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
17658
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action] GENERAL filters.
17631
17659
  * @param {string} [userIp]
17632
17660
  * @param {string} [dateFrom]
17633
17661
  * @param {string} [dateTo]
@@ -17654,7 +17682,7 @@ const LoggerServiceApiFactory = function (configuration, basePath, axios) {
17654
17682
  return {
17655
17683
  /**
17656
17684
  *
17657
- * @param {number} configId REQUIRED filter
17685
+ * @param {number} configId
17658
17686
  * @param {number} [page]
17659
17687
  * @param {number} [size]
17660
17688
  * @param {string} [q]
@@ -17662,7 +17690,7 @@ const LoggerServiceApiFactory = function (configuration, basePath, axios) {
17662
17690
  * @param {Array<string>} [fields]
17663
17691
  * @param {number} [userId]
17664
17692
  * @param {string} [userName]
17665
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
17693
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action]
17666
17694
  * @param {string} [userIp]
17667
17695
  * @param {string} [dateFrom]
17668
17696
  * @param {string} [dateTo]
@@ -17684,7 +17712,7 @@ const LoggerServiceApiFactory = function (configuration, basePath, axios) {
17684
17712
  * @param {Array<string>} [fields]
17685
17713
  * @param {number} [objectId]
17686
17714
  * @param {string} [objectName]
17687
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
17715
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action] GENERAL filters.
17688
17716
  * @param {string} [userIp]
17689
17717
  * @param {string} [dateFrom]
17690
17718
  * @param {string} [dateTo]
@@ -17707,7 +17735,7 @@ const LoggerServiceApiFactory = function (configuration, basePath, axios) {
17707
17735
  class LoggerServiceApi extends BaseAPI {
17708
17736
  /**
17709
17737
  *
17710
- * @param {number} configId REQUIRED filter
17738
+ * @param {number} configId
17711
17739
  * @param {number} [page]
17712
17740
  * @param {number} [size]
17713
17741
  * @param {string} [q]
@@ -17715,7 +17743,7 @@ class LoggerServiceApi extends BaseAPI {
17715
17743
  * @param {Array<string>} [fields]
17716
17744
  * @param {number} [userId]
17717
17745
  * @param {string} [userName]
17718
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
17746
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action]
17719
17747
  * @param {string} [userIp]
17720
17748
  * @param {string} [dateFrom]
17721
17749
  * @param {string} [dateTo]
@@ -17738,7 +17766,7 @@ class LoggerServiceApi extends BaseAPI {
17738
17766
  * @param {Array<string>} [fields]
17739
17767
  * @param {number} [objectId]
17740
17768
  * @param {string} [objectName]
17741
- * @param {'DEFAULT_NO_ACTION' | 'CREATE' | 'UPDATE' | 'READ' | 'DELETE'} [action] GENERAL filters.
17769
+ * @param {'default_no_action' | 'create' | 'update' | 'read' | 'delete'} [action] GENERAL filters.
17742
17770
  * @param {string} [userIp]
17743
17771
  * @param {string} [dateFrom]
17744
17772
  * @param {string} [dateTo]
@@ -17753,6 +17781,974 @@ class LoggerServiceApi extends BaseAPI {
17753
17781
  }
17754
17782
  }
17755
17783
 
17784
+ // tslint:disable
17785
+ /**
17786
+ * ManagersApi - axios parameter creator
17787
+ * @export
17788
+ */
17789
+ const ManagersApiAxiosParamCreator = function (configuration) {
17790
+ return {
17791
+ /**
17792
+ *
17793
+ * @summary Remove the contact\'s manager address link
17794
+ * @param {string} contactId Contact ID associated with.
17795
+ * @param {string} etag Unique ID to remove.
17796
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
17797
+ * @param {*} [options] Override http request option.
17798
+ * @throws {RequiredError}
17799
+ */
17800
+ deleteManager: async (contactId, etag, fields, options = {}) => {
17801
+ // verify required parameter 'contactId' is not null or undefined
17802
+ if (contactId === null || contactId === undefined) {
17803
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling deleteManager.');
17804
+ }
17805
+ // verify required parameter 'etag' is not null or undefined
17806
+ if (etag === null || etag === undefined) {
17807
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling deleteManager.');
17808
+ }
17809
+ const localVarPath = `/contacts/{contact_id}/managers/{etag}`
17810
+ .replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
17811
+ .replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
17812
+ const localVarUrlObj = parse(localVarPath, true);
17813
+ let baseOptions;
17814
+ if (configuration) {
17815
+ baseOptions = configuration.baseOptions;
17816
+ }
17817
+ const localVarRequestOptions = {
17818
+ method: 'DELETE',
17819
+ ...baseOptions,
17820
+ ...options,
17821
+ };
17822
+ const localVarHeaderParameter = {};
17823
+ const localVarQueryParameter = {};
17824
+ // authentication AccessToken required
17825
+ if (configuration && configuration.apiKey) {
17826
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
17827
+ ? await configuration.apiKey('X-Webitel-Access')
17828
+ : await configuration.apiKey;
17829
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
17830
+ }
17831
+ if (fields) {
17832
+ localVarQueryParameter['fields'] = fields;
17833
+ }
17834
+ localVarUrlObj.query = {
17835
+ ...localVarUrlObj.query,
17836
+ ...localVarQueryParameter,
17837
+ ...options.query,
17838
+ };
17839
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
17840
+ delete localVarUrlObj.search;
17841
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17842
+ localVarRequestOptions.headers = {
17843
+ ...localVarHeaderParameter,
17844
+ ...headersFromBaseOptions,
17845
+ ...options.headers,
17846
+ };
17847
+ return {
17848
+ url: format(localVarUrlObj),
17849
+ options: localVarRequestOptions,
17850
+ };
17851
+ },
17852
+ /**
17853
+ *
17854
+ * @summary Remove Contact Managers associations.
17855
+ * @param {string} contactId Contact ID associated with.
17856
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
17857
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
17858
+ * @param {*} [options] Override http request option.
17859
+ * @throws {RequiredError}
17860
+ */
17861
+ deleteManagers: async (contactId, etag, fields, options = {}) => {
17862
+ // verify required parameter 'contactId' is not null or undefined
17863
+ if (contactId === null || contactId === undefined) {
17864
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling deleteManagers.');
17865
+ }
17866
+ // verify required parameter 'etag' is not null or undefined
17867
+ if (etag === null || etag === undefined) {
17868
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling deleteManagers.');
17869
+ }
17870
+ const localVarPath = `/contacts/{contact_id}/managers`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
17871
+ const localVarUrlObj = parse(localVarPath, true);
17872
+ let baseOptions;
17873
+ if (configuration) {
17874
+ baseOptions = configuration.baseOptions;
17875
+ }
17876
+ const localVarRequestOptions = {
17877
+ method: 'DELETE',
17878
+ ...baseOptions,
17879
+ ...options,
17880
+ };
17881
+ const localVarHeaderParameter = {};
17882
+ const localVarQueryParameter = {};
17883
+ // authentication AccessToken required
17884
+ if (configuration && configuration.apiKey) {
17885
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
17886
+ ? await configuration.apiKey('X-Webitel-Access')
17887
+ : await configuration.apiKey;
17888
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
17889
+ }
17890
+ if (fields) {
17891
+ localVarQueryParameter['fields'] = fields;
17892
+ }
17893
+ if (etag) {
17894
+ localVarQueryParameter['etag'] = etag;
17895
+ }
17896
+ localVarUrlObj.query = {
17897
+ ...localVarUrlObj.query,
17898
+ ...localVarQueryParameter,
17899
+ ...options.query,
17900
+ };
17901
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
17902
+ delete localVarUrlObj.search;
17903
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17904
+ localVarRequestOptions.headers = {
17905
+ ...localVarHeaderParameter,
17906
+ ...headersFromBaseOptions,
17907
+ ...options.headers,
17908
+ };
17909
+ return {
17910
+ url: format(localVarUrlObj),
17911
+ options: localVarRequestOptions,
17912
+ };
17913
+ },
17914
+ /**
17915
+ *
17916
+ * @summary Search the Contact\'s Managers.
17917
+ * @param {string} contactId Contact ID associated with.
17918
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
17919
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
17920
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
17921
+ * @param {Array<string>} [sort] Sort the result according to fields.
17922
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
17923
+ * @param {Array<string>} [id] Record(s) with unique ID only.
17924
+ * @param {*} [options] Override http request option.
17925
+ * @throws {RequiredError}
17926
+ */
17927
+ listManagers: async (contactId, page, size, q, sort, fields, id, options = {}) => {
17928
+ // verify required parameter 'contactId' is not null or undefined
17929
+ if (contactId === null || contactId === undefined) {
17930
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling listManagers.');
17931
+ }
17932
+ const localVarPath = `/contacts/{contact_id}/managers`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
17933
+ const localVarUrlObj = parse(localVarPath, true);
17934
+ let baseOptions;
17935
+ if (configuration) {
17936
+ baseOptions = configuration.baseOptions;
17937
+ }
17938
+ const localVarRequestOptions = {
17939
+ method: 'GET',
17940
+ ...baseOptions,
17941
+ ...options,
17942
+ };
17943
+ const localVarHeaderParameter = {};
17944
+ const localVarQueryParameter = {};
17945
+ // authentication AccessToken required
17946
+ if (configuration && configuration.apiKey) {
17947
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
17948
+ ? await configuration.apiKey('X-Webitel-Access')
17949
+ : await configuration.apiKey;
17950
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
17951
+ }
17952
+ if (page !== undefined) {
17953
+ localVarQueryParameter['page'] = page;
17954
+ }
17955
+ if (size !== undefined) {
17956
+ localVarQueryParameter['size'] = size;
17957
+ }
17958
+ if (q !== undefined) {
17959
+ localVarQueryParameter['q'] = q;
17960
+ }
17961
+ if (sort) {
17962
+ localVarQueryParameter['sort'] = sort;
17963
+ }
17964
+ if (fields) {
17965
+ localVarQueryParameter['fields'] = fields;
17966
+ }
17967
+ if (id) {
17968
+ localVarQueryParameter['id'] = id;
17969
+ }
17970
+ localVarUrlObj.query = {
17971
+ ...localVarUrlObj.query,
17972
+ ...localVarQueryParameter,
17973
+ ...options.query,
17974
+ };
17975
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
17976
+ delete localVarUrlObj.search;
17977
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17978
+ localVarRequestOptions.headers = {
17979
+ ...localVarHeaderParameter,
17980
+ ...headersFromBaseOptions,
17981
+ ...options.headers,
17982
+ };
17983
+ return {
17984
+ url: format(localVarUrlObj),
17985
+ options: localVarRequestOptions,
17986
+ };
17987
+ },
17988
+ /**
17989
+ *
17990
+ * @summary Locate the manager address link.
17991
+ * @param {string} contactId Contact source ID.
17992
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
17993
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
17994
+ * @param {*} [options] Override http request option.
17995
+ * @throws {RequiredError}
17996
+ */
17997
+ locateManager: async (contactId, etag, fields, options = {}) => {
17998
+ // verify required parameter 'contactId' is not null or undefined
17999
+ if (contactId === null || contactId === undefined) {
18000
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling locateManager.');
18001
+ }
18002
+ // verify required parameter 'etag' is not null or undefined
18003
+ if (etag === null || etag === undefined) {
18004
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling locateManager.');
18005
+ }
18006
+ const localVarPath = `/contacts/{contact_id}/managers/{etag}`
18007
+ .replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
18008
+ .replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
18009
+ const localVarUrlObj = parse(localVarPath, true);
18010
+ let baseOptions;
18011
+ if (configuration) {
18012
+ baseOptions = configuration.baseOptions;
18013
+ }
18014
+ const localVarRequestOptions = {
18015
+ method: 'GET',
18016
+ ...baseOptions,
18017
+ ...options,
18018
+ };
18019
+ const localVarHeaderParameter = {};
18020
+ const localVarQueryParameter = {};
18021
+ // authentication AccessToken required
18022
+ if (configuration && configuration.apiKey) {
18023
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18024
+ ? await configuration.apiKey('X-Webitel-Access')
18025
+ : await configuration.apiKey;
18026
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
18027
+ }
18028
+ if (fields) {
18029
+ localVarQueryParameter['fields'] = fields;
18030
+ }
18031
+ localVarUrlObj.query = {
18032
+ ...localVarUrlObj.query,
18033
+ ...localVarQueryParameter,
18034
+ ...options.query,
18035
+ };
18036
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
18037
+ delete localVarUrlObj.search;
18038
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18039
+ localVarRequestOptions.headers = {
18040
+ ...localVarHeaderParameter,
18041
+ ...headersFromBaseOptions,
18042
+ ...options.headers,
18043
+ };
18044
+ return {
18045
+ url: format(localVarUrlObj),
18046
+ options: localVarRequestOptions,
18047
+ };
18048
+ },
18049
+ /**
18050
+ *
18051
+ * @summary Associate new Managers to the Contact.
18052
+ * @param {string} contactId Link contact ID.
18053
+ * @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.
18054
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18055
+ * @param {*} [options] Override http request option.
18056
+ * @throws {RequiredError}
18057
+ */
18058
+ mergeManagers: async (contactId, input, fields, options = {}) => {
18059
+ // verify required parameter 'contactId' is not null or undefined
18060
+ if (contactId === null || contactId === undefined) {
18061
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling mergeManagers.');
18062
+ }
18063
+ // verify required parameter 'input' is not null or undefined
18064
+ if (input === null || input === undefined) {
18065
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling mergeManagers.');
18066
+ }
18067
+ const localVarPath = `/contacts/{contact_id}/managers`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
18068
+ const localVarUrlObj = parse(localVarPath, true);
18069
+ let baseOptions;
18070
+ if (configuration) {
18071
+ baseOptions = configuration.baseOptions;
18072
+ }
18073
+ const localVarRequestOptions = {
18074
+ method: 'POST',
18075
+ ...baseOptions,
18076
+ ...options,
18077
+ };
18078
+ const localVarHeaderParameter = {};
18079
+ const localVarQueryParameter = {};
18080
+ // authentication AccessToken required
18081
+ if (configuration && configuration.apiKey) {
18082
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18083
+ ? await configuration.apiKey('X-Webitel-Access')
18084
+ : await configuration.apiKey;
18085
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
18086
+ }
18087
+ if (fields) {
18088
+ localVarQueryParameter['fields'] = fields;
18089
+ }
18090
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18091
+ localVarUrlObj.query = {
18092
+ ...localVarUrlObj.query,
18093
+ ...localVarQueryParameter,
18094
+ ...options.query,
18095
+ };
18096
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
18097
+ delete localVarUrlObj.search;
18098
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18099
+ localVarRequestOptions.headers = {
18100
+ ...localVarHeaderParameter,
18101
+ ...headersFromBaseOptions,
18102
+ ...options.headers,
18103
+ };
18104
+ const needsSerialization = typeof input !== 'string' ||
18105
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
18106
+ localVarRequestOptions.data = needsSerialization
18107
+ ? JSON.stringify(input !== undefined ? input : {})
18108
+ : input || '';
18109
+ return {
18110
+ url: format(localVarUrlObj),
18111
+ options: localVarRequestOptions,
18112
+ };
18113
+ },
18114
+ /**
18115
+ *
18116
+ * @summary Reset Managers to fit the specified final set.
18117
+ * @param {string} contactId Contact ID associated with.
18118
+ * @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.
18119
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18120
+ * @param {*} [options] Override http request option.
18121
+ * @throws {RequiredError}
18122
+ */
18123
+ resetManagers: async (contactId, input, fields, options = {}) => {
18124
+ // verify required parameter 'contactId' is not null or undefined
18125
+ if (contactId === null || contactId === undefined) {
18126
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling resetManagers.');
18127
+ }
18128
+ // verify required parameter 'input' is not null or undefined
18129
+ if (input === null || input === undefined) {
18130
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling resetManagers.');
18131
+ }
18132
+ const localVarPath = `/contacts/{contact_id}/managers`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
18133
+ const localVarUrlObj = parse(localVarPath, true);
18134
+ let baseOptions;
18135
+ if (configuration) {
18136
+ baseOptions = configuration.baseOptions;
18137
+ }
18138
+ const localVarRequestOptions = {
18139
+ method: 'PUT',
18140
+ ...baseOptions,
18141
+ ...options,
18142
+ };
18143
+ const localVarHeaderParameter = {};
18144
+ const localVarQueryParameter = {};
18145
+ // authentication AccessToken required
18146
+ if (configuration && configuration.apiKey) {
18147
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18148
+ ? await configuration.apiKey('X-Webitel-Access')
18149
+ : await configuration.apiKey;
18150
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
18151
+ }
18152
+ if (fields) {
18153
+ localVarQueryParameter['fields'] = fields;
18154
+ }
18155
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18156
+ localVarUrlObj.query = {
18157
+ ...localVarUrlObj.query,
18158
+ ...localVarQueryParameter,
18159
+ ...options.query,
18160
+ };
18161
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
18162
+ delete localVarUrlObj.search;
18163
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18164
+ localVarRequestOptions.headers = {
18165
+ ...localVarHeaderParameter,
18166
+ ...headersFromBaseOptions,
18167
+ ...options.headers,
18168
+ };
18169
+ const needsSerialization = typeof input !== 'string' ||
18170
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
18171
+ localVarRequestOptions.data = needsSerialization
18172
+ ? JSON.stringify(input !== undefined ? input : {})
18173
+ : input || '';
18174
+ return {
18175
+ url: format(localVarUrlObj),
18176
+ options: localVarRequestOptions,
18177
+ };
18178
+ },
18179
+ /**
18180
+ *
18181
+ * @summary Update the contact\'s manager address link details
18182
+ * @param {string} contactId Link contact ID.
18183
+ * @param {string} etag Unique ID of the latest version of an existing resource.
18184
+ * @param {NEWUpdateOfTheManagerLink} input
18185
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
18186
+ * @param {*} [options] Override http request option.
18187
+ * @throws {RequiredError}
18188
+ */
18189
+ updateManager: async (contactId, etag, input, fields, options = {}) => {
18190
+ // verify required parameter 'contactId' is not null or undefined
18191
+ if (contactId === null || contactId === undefined) {
18192
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling updateManager.');
18193
+ }
18194
+ // verify required parameter 'etag' is not null or undefined
18195
+ if (etag === null || etag === undefined) {
18196
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling updateManager.');
18197
+ }
18198
+ // verify required parameter 'input' is not null or undefined
18199
+ if (input === null || input === undefined) {
18200
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling updateManager.');
18201
+ }
18202
+ const localVarPath = `/contacts/{contact_id}/managers/{etag}`
18203
+ .replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
18204
+ .replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
18205
+ const localVarUrlObj = parse(localVarPath, true);
18206
+ let baseOptions;
18207
+ if (configuration) {
18208
+ baseOptions = configuration.baseOptions;
18209
+ }
18210
+ const localVarRequestOptions = {
18211
+ method: 'PUT',
18212
+ ...baseOptions,
18213
+ ...options,
18214
+ };
18215
+ const localVarHeaderParameter = {};
18216
+ const localVarQueryParameter = {};
18217
+ // authentication AccessToken required
18218
+ if (configuration && configuration.apiKey) {
18219
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18220
+ ? await configuration.apiKey('X-Webitel-Access')
18221
+ : await configuration.apiKey;
18222
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
18223
+ }
18224
+ if (fields) {
18225
+ localVarQueryParameter['fields'] = fields;
18226
+ }
18227
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18228
+ localVarUrlObj.query = {
18229
+ ...localVarUrlObj.query,
18230
+ ...localVarQueryParameter,
18231
+ ...options.query,
18232
+ };
18233
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
18234
+ delete localVarUrlObj.search;
18235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18236
+ localVarRequestOptions.headers = {
18237
+ ...localVarHeaderParameter,
18238
+ ...headersFromBaseOptions,
18239
+ ...options.headers,
18240
+ };
18241
+ const needsSerialization = typeof input !== 'string' ||
18242
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
18243
+ localVarRequestOptions.data = needsSerialization
18244
+ ? JSON.stringify(input !== undefined ? input : {})
18245
+ : input || '';
18246
+ return {
18247
+ url: format(localVarUrlObj),
18248
+ options: localVarRequestOptions,
18249
+ };
18250
+ },
18251
+ /**
18252
+ *
18253
+ * @summary Update the contact\'s manager address link details
18254
+ * @param {string} contactId Link contact ID.
18255
+ * @param {string} etag Unique ID of the latest version of an existing resource.
18256
+ * @param {NEWUpdateOfTheManagerLink1} input
18257
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
18258
+ * @param {*} [options] Override http request option.
18259
+ * @throws {RequiredError}
18260
+ */
18261
+ updateManager2: async (contactId, etag, input, fields, options = {}) => {
18262
+ // verify required parameter 'contactId' is not null or undefined
18263
+ if (contactId === null || contactId === undefined) {
18264
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling updateManager2.');
18265
+ }
18266
+ // verify required parameter 'etag' is not null or undefined
18267
+ if (etag === null || etag === undefined) {
18268
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling updateManager2.');
18269
+ }
18270
+ // verify required parameter 'input' is not null or undefined
18271
+ if (input === null || input === undefined) {
18272
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling updateManager2.');
18273
+ }
18274
+ const localVarPath = `/contacts/{contact_id}/managers/{etag}`
18275
+ .replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
18276
+ .replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
18277
+ const localVarUrlObj = parse(localVarPath, true);
18278
+ let baseOptions;
18279
+ if (configuration) {
18280
+ baseOptions = configuration.baseOptions;
18281
+ }
18282
+ const localVarRequestOptions = {
18283
+ method: 'PATCH',
18284
+ ...baseOptions,
18285
+ ...options,
18286
+ };
18287
+ const localVarHeaderParameter = {};
18288
+ const localVarQueryParameter = {};
18289
+ // authentication AccessToken required
18290
+ if (configuration && configuration.apiKey) {
18291
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18292
+ ? await configuration.apiKey('X-Webitel-Access')
18293
+ : await configuration.apiKey;
18294
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
18295
+ }
18296
+ if (fields) {
18297
+ localVarQueryParameter['fields'] = fields;
18298
+ }
18299
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18300
+ localVarUrlObj.query = {
18301
+ ...localVarUrlObj.query,
18302
+ ...localVarQueryParameter,
18303
+ ...options.query,
18304
+ };
18305
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
18306
+ delete localVarUrlObj.search;
18307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18308
+ localVarRequestOptions.headers = {
18309
+ ...localVarHeaderParameter,
18310
+ ...headersFromBaseOptions,
18311
+ ...options.headers,
18312
+ };
18313
+ const needsSerialization = typeof input !== 'string' ||
18314
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
18315
+ localVarRequestOptions.data = needsSerialization
18316
+ ? JSON.stringify(input !== undefined ? input : {})
18317
+ : input || '';
18318
+ return {
18319
+ url: format(localVarUrlObj),
18320
+ options: localVarRequestOptions,
18321
+ };
18322
+ },
18323
+ };
18324
+ };
18325
+ /**
18326
+ * ManagersApi - functional programming interface
18327
+ * @export
18328
+ */
18329
+ const ManagersApiFp = function (configuration) {
18330
+ return {
18331
+ /**
18332
+ *
18333
+ * @summary Remove the contact\'s manager address link
18334
+ * @param {string} contactId Contact ID associated with.
18335
+ * @param {string} etag Unique ID to remove.
18336
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18337
+ * @param {*} [options] Override http request option.
18338
+ * @throws {RequiredError}
18339
+ */
18340
+ async deleteManager(contactId, etag, fields, options) {
18341
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).deleteManager(contactId, etag, fields, options);
18342
+ return (axios = globalAxios, basePath = BASE_PATH) => {
18343
+ const axiosRequestArgs = {
18344
+ ...localVarAxiosArgs.options,
18345
+ url: basePath + localVarAxiosArgs.url,
18346
+ };
18347
+ return axios.request(axiosRequestArgs);
18348
+ };
18349
+ },
18350
+ /**
18351
+ *
18352
+ * @summary Remove Contact Managers associations.
18353
+ * @param {string} contactId Contact ID associated with.
18354
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
18355
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18356
+ * @param {*} [options] Override http request option.
18357
+ * @throws {RequiredError}
18358
+ */
18359
+ async deleteManagers(contactId, etag, fields, options) {
18360
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).deleteManagers(contactId, etag, fields, options);
18361
+ return (axios = globalAxios, basePath = BASE_PATH) => {
18362
+ const axiosRequestArgs = {
18363
+ ...localVarAxiosArgs.options,
18364
+ url: basePath + localVarAxiosArgs.url,
18365
+ };
18366
+ return axios.request(axiosRequestArgs);
18367
+ };
18368
+ },
18369
+ /**
18370
+ *
18371
+ * @summary Search the Contact\'s Managers.
18372
+ * @param {string} contactId Contact ID associated with.
18373
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
18374
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
18375
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
18376
+ * @param {Array<string>} [sort] Sort the result according to fields.
18377
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18378
+ * @param {Array<string>} [id] Record(s) with unique ID only.
18379
+ * @param {*} [options] Override http request option.
18380
+ * @throws {RequiredError}
18381
+ */
18382
+ async listManagers(contactId, page, size, q, sort, fields, id, options) {
18383
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).listManagers(contactId, page, size, q, sort, fields, id, options);
18384
+ return (axios = globalAxios, basePath = BASE_PATH) => {
18385
+ const axiosRequestArgs = {
18386
+ ...localVarAxiosArgs.options,
18387
+ url: basePath + localVarAxiosArgs.url,
18388
+ };
18389
+ return axios.request(axiosRequestArgs);
18390
+ };
18391
+ },
18392
+ /**
18393
+ *
18394
+ * @summary Locate the manager address link.
18395
+ * @param {string} contactId Contact source ID.
18396
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
18397
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
18398
+ * @param {*} [options] Override http request option.
18399
+ * @throws {RequiredError}
18400
+ */
18401
+ async locateManager(contactId, etag, fields, options) {
18402
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).locateManager(contactId, etag, fields, options);
18403
+ return (axios = globalAxios, basePath = BASE_PATH) => {
18404
+ const axiosRequestArgs = {
18405
+ ...localVarAxiosArgs.options,
18406
+ url: basePath + localVarAxiosArgs.url,
18407
+ };
18408
+ return axios.request(axiosRequestArgs);
18409
+ };
18410
+ },
18411
+ /**
18412
+ *
18413
+ * @summary Associate new Managers to the Contact.
18414
+ * @param {string} contactId Link contact ID.
18415
+ * @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.
18416
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18417
+ * @param {*} [options] Override http request option.
18418
+ * @throws {RequiredError}
18419
+ */
18420
+ async mergeManagers(contactId, input, fields, options) {
18421
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).mergeManagers(contactId, input, fields, options);
18422
+ return (axios = globalAxios, basePath = BASE_PATH) => {
18423
+ const axiosRequestArgs = {
18424
+ ...localVarAxiosArgs.options,
18425
+ url: basePath + localVarAxiosArgs.url,
18426
+ };
18427
+ return axios.request(axiosRequestArgs);
18428
+ };
18429
+ },
18430
+ /**
18431
+ *
18432
+ * @summary Reset Managers to fit the specified final set.
18433
+ * @param {string} contactId Contact ID associated with.
18434
+ * @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.
18435
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18436
+ * @param {*} [options] Override http request option.
18437
+ * @throws {RequiredError}
18438
+ */
18439
+ async resetManagers(contactId, input, fields, options) {
18440
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).resetManagers(contactId, input, fields, options);
18441
+ return (axios = globalAxios, basePath = BASE_PATH) => {
18442
+ const axiosRequestArgs = {
18443
+ ...localVarAxiosArgs.options,
18444
+ url: basePath + localVarAxiosArgs.url,
18445
+ };
18446
+ return axios.request(axiosRequestArgs);
18447
+ };
18448
+ },
18449
+ /**
18450
+ *
18451
+ * @summary Update the contact\'s manager address link details
18452
+ * @param {string} contactId Link contact ID.
18453
+ * @param {string} etag Unique ID of the latest version of an existing resource.
18454
+ * @param {NEWUpdateOfTheManagerLink} input
18455
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
18456
+ * @param {*} [options] Override http request option.
18457
+ * @throws {RequiredError}
18458
+ */
18459
+ async updateManager(contactId, etag, input, fields, options) {
18460
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).updateManager(contactId, etag, input, fields, options);
18461
+ return (axios = globalAxios, basePath = BASE_PATH) => {
18462
+ const axiosRequestArgs = {
18463
+ ...localVarAxiosArgs.options,
18464
+ url: basePath + localVarAxiosArgs.url,
18465
+ };
18466
+ return axios.request(axiosRequestArgs);
18467
+ };
18468
+ },
18469
+ /**
18470
+ *
18471
+ * @summary Update the contact\'s manager address link details
18472
+ * @param {string} contactId Link contact ID.
18473
+ * @param {string} etag Unique ID of the latest version of an existing resource.
18474
+ * @param {NEWUpdateOfTheManagerLink1} input
18475
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
18476
+ * @param {*} [options] Override http request option.
18477
+ * @throws {RequiredError}
18478
+ */
18479
+ async updateManager2(contactId, etag, input, fields, options) {
18480
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).updateManager2(contactId, etag, input, fields, options);
18481
+ return (axios = globalAxios, basePath = BASE_PATH) => {
18482
+ const axiosRequestArgs = {
18483
+ ...localVarAxiosArgs.options,
18484
+ url: basePath + localVarAxiosArgs.url,
18485
+ };
18486
+ return axios.request(axiosRequestArgs);
18487
+ };
18488
+ },
18489
+ };
18490
+ };
18491
+ /**
18492
+ * ManagersApi - factory interface
18493
+ * @export
18494
+ */
18495
+ const ManagersApiFactory = function (configuration, basePath, axios) {
18496
+ return {
18497
+ /**
18498
+ *
18499
+ * @summary Remove the contact\'s manager address link
18500
+ * @param {string} contactId Contact ID associated with.
18501
+ * @param {string} etag Unique ID to remove.
18502
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18503
+ * @param {*} [options] Override http request option.
18504
+ * @throws {RequiredError}
18505
+ */
18506
+ deleteManager(contactId, etag, fields, options) {
18507
+ return ManagersApiFp(configuration)
18508
+ .deleteManager(contactId, etag, fields, options)
18509
+ .then((request) => request(axios, basePath));
18510
+ },
18511
+ /**
18512
+ *
18513
+ * @summary Remove Contact Managers associations.
18514
+ * @param {string} contactId Contact ID associated with.
18515
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
18516
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18517
+ * @param {*} [options] Override http request option.
18518
+ * @throws {RequiredError}
18519
+ */
18520
+ deleteManagers(contactId, etag, fields, options) {
18521
+ return ManagersApiFp(configuration)
18522
+ .deleteManagers(contactId, etag, fields, options)
18523
+ .then((request) => request(axios, basePath));
18524
+ },
18525
+ /**
18526
+ *
18527
+ * @summary Search the Contact\'s Managers.
18528
+ * @param {string} contactId Contact ID associated with.
18529
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
18530
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
18531
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
18532
+ * @param {Array<string>} [sort] Sort the result according to fields.
18533
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18534
+ * @param {Array<string>} [id] Record(s) with unique ID only.
18535
+ * @param {*} [options] Override http request option.
18536
+ * @throws {RequiredError}
18537
+ */
18538
+ listManagers(contactId, page, size, q, sort, fields, id, options) {
18539
+ return ManagersApiFp(configuration)
18540
+ .listManagers(contactId, page, size, q, sort, fields, id, options)
18541
+ .then((request) => request(axios, basePath));
18542
+ },
18543
+ /**
18544
+ *
18545
+ * @summary Locate the manager address link.
18546
+ * @param {string} contactId Contact source ID.
18547
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
18548
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
18549
+ * @param {*} [options] Override http request option.
18550
+ * @throws {RequiredError}
18551
+ */
18552
+ locateManager(contactId, etag, fields, options) {
18553
+ return ManagersApiFp(configuration)
18554
+ .locateManager(contactId, etag, fields, options)
18555
+ .then((request) => request(axios, basePath));
18556
+ },
18557
+ /**
18558
+ *
18559
+ * @summary Associate new Managers to the Contact.
18560
+ * @param {string} contactId Link contact ID.
18561
+ * @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.
18562
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18563
+ * @param {*} [options] Override http request option.
18564
+ * @throws {RequiredError}
18565
+ */
18566
+ mergeManagers(contactId, input, fields, options) {
18567
+ return ManagersApiFp(configuration)
18568
+ .mergeManagers(contactId, input, fields, options)
18569
+ .then((request) => request(axios, basePath));
18570
+ },
18571
+ /**
18572
+ *
18573
+ * @summary Reset Managers to fit the specified final set.
18574
+ * @param {string} contactId Contact ID associated with.
18575
+ * @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.
18576
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18577
+ * @param {*} [options] Override http request option.
18578
+ * @throws {RequiredError}
18579
+ */
18580
+ resetManagers(contactId, input, fields, options) {
18581
+ return ManagersApiFp(configuration)
18582
+ .resetManagers(contactId, input, fields, options)
18583
+ .then((request) => request(axios, basePath));
18584
+ },
18585
+ /**
18586
+ *
18587
+ * @summary Update the contact\'s manager address link details
18588
+ * @param {string} contactId Link contact ID.
18589
+ * @param {string} etag Unique ID of the latest version of an existing resource.
18590
+ * @param {NEWUpdateOfTheManagerLink} input
18591
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
18592
+ * @param {*} [options] Override http request option.
18593
+ * @throws {RequiredError}
18594
+ */
18595
+ updateManager(contactId, etag, input, fields, options) {
18596
+ return ManagersApiFp(configuration)
18597
+ .updateManager(contactId, etag, input, fields, options)
18598
+ .then((request) => request(axios, basePath));
18599
+ },
18600
+ /**
18601
+ *
18602
+ * @summary Update the contact\'s manager address link details
18603
+ * @param {string} contactId Link contact ID.
18604
+ * @param {string} etag Unique ID of the latest version of an existing resource.
18605
+ * @param {NEWUpdateOfTheManagerLink1} input
18606
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
18607
+ * @param {*} [options] Override http request option.
18608
+ * @throws {RequiredError}
18609
+ */
18610
+ updateManager2(contactId, etag, input, fields, options) {
18611
+ return ManagersApiFp(configuration)
18612
+ .updateManager2(contactId, etag, input, fields, options)
18613
+ .then((request) => request(axios, basePath));
18614
+ },
18615
+ };
18616
+ };
18617
+ /**
18618
+ * ManagersApi - object-oriented interface
18619
+ * @export
18620
+ * @class ManagersApi
18621
+ * @extends {BaseAPI}
18622
+ */
18623
+ class ManagersApi extends BaseAPI {
18624
+ /**
18625
+ *
18626
+ * @summary Remove the contact\'s manager address link
18627
+ * @param {string} contactId Contact ID associated with.
18628
+ * @param {string} etag Unique ID to remove.
18629
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18630
+ * @param {*} [options] Override http request option.
18631
+ * @throws {RequiredError}
18632
+ * @memberof ManagersApi
18633
+ */
18634
+ deleteManager(contactId, etag, fields, options) {
18635
+ return ManagersApiFp(this.configuration)
18636
+ .deleteManager(contactId, etag, fields, options)
18637
+ .then((request) => request(this.axios, this.basePath));
18638
+ }
18639
+ /**
18640
+ *
18641
+ * @summary Remove Contact Managers associations.
18642
+ * @param {string} contactId Contact ID associated with.
18643
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
18644
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18645
+ * @param {*} [options] Override http request option.
18646
+ * @throws {RequiredError}
18647
+ * @memberof ManagersApi
18648
+ */
18649
+ deleteManagers(contactId, etag, fields, options) {
18650
+ return ManagersApiFp(this.configuration)
18651
+ .deleteManagers(contactId, etag, fields, options)
18652
+ .then((request) => request(this.axios, this.basePath));
18653
+ }
18654
+ /**
18655
+ *
18656
+ * @summary Search the Contact\'s Managers.
18657
+ * @param {string} contactId Contact ID associated with.
18658
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
18659
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
18660
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
18661
+ * @param {Array<string>} [sort] Sort the result according to fields.
18662
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18663
+ * @param {Array<string>} [id] Record(s) with unique ID only.
18664
+ * @param {*} [options] Override http request option.
18665
+ * @throws {RequiredError}
18666
+ * @memberof ManagersApi
18667
+ */
18668
+ listManagers(contactId, page, size, q, sort, fields, id, options) {
18669
+ return ManagersApiFp(this.configuration)
18670
+ .listManagers(contactId, page, size, q, sort, fields, id, options)
18671
+ .then((request) => request(this.axios, this.basePath));
18672
+ }
18673
+ /**
18674
+ *
18675
+ * @summary Locate the manager address link.
18676
+ * @param {string} contactId Contact source ID.
18677
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
18678
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
18679
+ * @param {*} [options] Override http request option.
18680
+ * @throws {RequiredError}
18681
+ * @memberof ManagersApi
18682
+ */
18683
+ locateManager(contactId, etag, fields, options) {
18684
+ return ManagersApiFp(this.configuration)
18685
+ .locateManager(contactId, etag, fields, options)
18686
+ .then((request) => request(this.axios, this.basePath));
18687
+ }
18688
+ /**
18689
+ *
18690
+ * @summary Associate new Managers to the Contact.
18691
+ * @param {string} contactId Link contact ID.
18692
+ * @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.
18693
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18694
+ * @param {*} [options] Override http request option.
18695
+ * @throws {RequiredError}
18696
+ * @memberof ManagersApi
18697
+ */
18698
+ mergeManagers(contactId, input, fields, options) {
18699
+ return ManagersApiFp(this.configuration)
18700
+ .mergeManagers(contactId, input, fields, options)
18701
+ .then((request) => request(this.axios, this.basePath));
18702
+ }
18703
+ /**
18704
+ *
18705
+ * @summary Reset Managers to fit the specified final set.
18706
+ * @param {string} contactId Contact ID associated with.
18707
+ * @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.
18708
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
18709
+ * @param {*} [options] Override http request option.
18710
+ * @throws {RequiredError}
18711
+ * @memberof ManagersApi
18712
+ */
18713
+ resetManagers(contactId, input, fields, options) {
18714
+ return ManagersApiFp(this.configuration)
18715
+ .resetManagers(contactId, input, fields, options)
18716
+ .then((request) => request(this.axios, this.basePath));
18717
+ }
18718
+ /**
18719
+ *
18720
+ * @summary Update the contact\'s manager address link details
18721
+ * @param {string} contactId Link contact ID.
18722
+ * @param {string} etag Unique ID of the latest version of an existing resource.
18723
+ * @param {NEWUpdateOfTheManagerLink} input
18724
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
18725
+ * @param {*} [options] Override http request option.
18726
+ * @throws {RequiredError}
18727
+ * @memberof ManagersApi
18728
+ */
18729
+ updateManager(contactId, etag, input, fields, options) {
18730
+ return ManagersApiFp(this.configuration)
18731
+ .updateManager(contactId, etag, input, fields, options)
18732
+ .then((request) => request(this.axios, this.basePath));
18733
+ }
18734
+ /**
18735
+ *
18736
+ * @summary Update the contact\'s manager address link details
18737
+ * @param {string} contactId Link contact ID.
18738
+ * @param {string} etag Unique ID of the latest version of an existing resource.
18739
+ * @param {NEWUpdateOfTheManagerLink1} input
18740
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
18741
+ * @param {*} [options] Override http request option.
18742
+ * @throws {RequiredError}
18743
+ * @memberof ManagersApi
18744
+ */
18745
+ updateManager2(contactId, etag, input, fields, options) {
18746
+ return ManagersApiFp(this.configuration)
18747
+ .updateManager2(contactId, etag, input, fields, options)
18748
+ .then((request) => request(this.axios, this.basePath));
18749
+ }
18750
+ }
18751
+
17756
18752
  // tslint:disable
17757
18753
  /**
17758
18754
  * MediaFileServiceApi - axios parameter creator
@@ -37261,14 +38257,53 @@ var HistoryFileJobHistoryFileJobState;
37261
38257
  * @export
37262
38258
  * @enum {string}
37263
38259
  */
37264
- var LoggerACTION;
37265
- (function (LoggerACTION) {
37266
- LoggerACTION["DEFAULTNOACTION"] = "DEFAULT_NO_ACTION";
37267
- LoggerACTION["CREATE"] = "CREATE";
37268
- LoggerACTION["UPDATE"] = "UPDATE";
37269
- LoggerACTION["READ"] = "READ";
37270
- LoggerACTION["DELETE"] = "DELETE";
37271
- })(LoggerACTION || (LoggerACTION = {}));
38260
+ var LoggerAction;
38261
+ (function (LoggerAction) {
38262
+ LoggerAction["DefaultNoAction"] = "default_no_action";
38263
+ LoggerAction["Create"] = "create";
38264
+ LoggerAction["Update"] = "update";
38265
+ LoggerAction["Read"] = "read";
38266
+ LoggerAction["Delete"] = "delete";
38267
+ })(LoggerAction || (LoggerAction = {}));
38268
+
38269
+ // tslint:disable
38270
+ /**
38271
+ * Webitel engine API
38272
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
38273
+ *
38274
+ * The version of the OpenAPI document: 23.07.0
38275
+ * Contact: support@webitel.com
38276
+ *
38277
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
38278
+ * https://openapi-generator.tech
38279
+ * Do not edit the class manually.
38280
+ */
38281
+
38282
+ // tslint:disable
38283
+ /**
38284
+ * Webitel engine API
38285
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
38286
+ *
38287
+ * The version of the OpenAPI document: 23.07.0
38288
+ * Contact: support@webitel.com
38289
+ *
38290
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
38291
+ * https://openapi-generator.tech
38292
+ * Do not edit the class manually.
38293
+ */
38294
+
38295
+ // tslint:disable
38296
+ /**
38297
+ * Webitel engine API
38298
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
38299
+ *
38300
+ * The version of the OpenAPI document: 23.07.0
38301
+ * Contact: support@webitel.com
38302
+ *
38303
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
38304
+ * https://openapi-generator.tech
38305
+ * Do not edit the class manually.
38306
+ */
37272
38307
 
37273
38308
  // tslint:disable
37274
38309
  /**
@@ -41746,5 +42781,5 @@ class ExternalClient extends ee_3 {
41746
42781
 
41747
42782
  // tslint:disable
41748
42783
 
41749
- export { AgentPauseCauseServiceApiAxiosParamCreator, AgentPauseCauseServiceApiFp, AgentPauseCauseServiceApiFactory, AgentPauseCauseServiceApi, AgentServiceApiAxiosParamCreator, AgentServiceApiFp, AgentServiceApiFactory, AgentServiceApi, AgentSkillServiceApiAxiosParamCreator, AgentSkillServiceApiFp, AgentSkillServiceApiFactory, AgentSkillServiceApi, AgentTeamServiceApiAxiosParamCreator, AgentTeamServiceApiFp, AgentTeamServiceApiFactory, AgentTeamServiceApi, AuditFormServiceApiAxiosParamCreator, AuditFormServiceApiFp, AuditFormServiceApiFactory, AuditFormServiceApi, BackendProfileServiceApiAxiosParamCreator, BackendProfileServiceApiFp, BackendProfileServiceApiFactory, BackendProfileServiceApi, BucketServiceApiAxiosParamCreator, BucketServiceApiFp, BucketServiceApiFactory, BucketServiceApi, CalendarServiceApiAxiosParamCreator, CalendarServiceApiFp, CalendarServiceApiFactory, CalendarServiceApi, CallServiceApiAxiosParamCreator, CallServiceApiFp, CallServiceApiFactory, CallServiceApi, ChatHelperServiceApiAxiosParamCreator, ChatHelperServiceApiFp, ChatHelperServiceApiFactory, ChatHelperServiceApi, CognitiveProfileServiceApiAxiosParamCreator, CognitiveProfileServiceApiFp, CognitiveProfileServiceApiFactory, CognitiveProfileServiceApi, CommunicationTypeServiceApiAxiosParamCreator, CommunicationTypeServiceApiFp, CommunicationTypeServiceApiFactory, CommunicationTypeServiceApi, ConfigServiceApiAxiosParamCreator, ConfigServiceApiFp, ConfigServiceApiFactory, ConfigServiceApi, ContactsApiAxiosParamCreator, ContactsApiFp, ContactsApiFactory, ContactsApi, EmailProfileServiceApiAxiosParamCreator, EmailProfileServiceApiFp, EmailProfileServiceApiFactory, EmailProfileServiceApi, EmailsApiAxiosParamCreator, EmailsApiFp, EmailsApiFactory, EmailsApi, FileServiceApiAxiosParamCreator, FileServiceApiFp, FileServiceApiFactory, FileServiceApi, FileTranscriptServiceApiAxiosParamCreator, FileTranscriptServiceApiFp, FileTranscriptServiceApiFactory, FileTranscriptServiceApi, ImportTemplateServiceApiAxiosParamCreator, ImportTemplateServiceApiFp, ImportTemplateServiceApiFactory, ImportTemplateServiceApi, LabelsApiAxiosParamCreator, LabelsApiFp, LabelsApiFactory, LabelsApi, ListServiceApiAxiosParamCreator, ListServiceApiFp, ListServiceApiFactory, ListServiceApi, LoggerServiceApiAxiosParamCreator, LoggerServiceApiFp, LoggerServiceApiFactory, LoggerServiceApi, MediaFileServiceApiAxiosParamCreator, MediaFileServiceApiFp, MediaFileServiceApiFactory, MediaFileServiceApi, MemberServiceApiAxiosParamCreator, MemberServiceApiFp, MemberServiceApiFactory, MemberServiceApi, OutboundResourceGroupServiceApiAxiosParamCreator, OutboundResourceGroupServiceApiFp, OutboundResourceGroupServiceApiFactory, OutboundResourceGroupServiceApi, OutboundResourceServiceApiAxiosParamCreator, OutboundResourceServiceApiFp, OutboundResourceServiceApiFactory, OutboundResourceServiceApi, PresetQueryServiceApiAxiosParamCreator, PresetQueryServiceApiFp, PresetQueryServiceApiFactory, PresetQueryServiceApi, QueueBucketServiceApiAxiosParamCreator, QueueBucketServiceApiFp, QueueBucketServiceApiFactory, QueueBucketServiceApi, QueueHookServiceApiAxiosParamCreator, QueueHookServiceApiFp, QueueHookServiceApiFactory, QueueHookServiceApi, QueueResourcesServiceApiAxiosParamCreator, QueueResourcesServiceApiFp, QueueResourcesServiceApiFactory, QueueResourcesServiceApi, QueueServiceApiAxiosParamCreator, QueueServiceApiFp, QueueServiceApiFactory, QueueServiceApi, QueueSkillServiceApiAxiosParamCreator, QueueSkillServiceApiFp, QueueSkillServiceApiFactory, QueueSkillServiceApi, RegionServiceApiAxiosParamCreator, RegionServiceApiFp, RegionServiceApiFactory, RegionServiceApi, RoutingChatPlanServiceApiAxiosParamCreator, RoutingChatPlanServiceApiFp, RoutingChatPlanServiceApiFactory, RoutingChatPlanServiceApi, RoutingOutboundCallServiceApiAxiosParamCreator, RoutingOutboundCallServiceApiFp, RoutingOutboundCallServiceApiFactory, RoutingOutboundCallServiceApi, RoutingSchemaServiceApiAxiosParamCreator, RoutingSchemaServiceApiFp, RoutingSchemaServiceApiFactory, RoutingSchemaServiceApi, RoutingVariableServiceApiAxiosParamCreator, RoutingVariableServiceApiFp, RoutingVariableServiceApiFactory, RoutingVariableServiceApi, SkillServiceApiAxiosParamCreator, SkillServiceApiFp, SkillServiceApiFactory, SkillServiceApi, TriggerServiceApiAxiosParamCreator, TriggerServiceApiFp, TriggerServiceApiFactory, TriggerServiceApi, UserHelperServiceApiAxiosParamCreator, UserHelperServiceApiFp, UserHelperServiceApiFactory, UserHelperServiceApi, VariablesApiAxiosParamCreator, VariablesApiFp, VariablesApiFactory, VariablesApi, Configuration, EngineAuditQuestionType, EngineBoolFilter, EngineCommunicationChannels, EnginePresetQuerySection, EngineRoutingSchemaType, EngineTriggerJobState, EngineTriggerType, GoogleProtobufNullValue, HistoryFileJobHistoryFileJobAction, HistoryFileJobHistoryFileJobState, LoggerACTION, ProtobufNullValue, StorageImportSourceType, StorageProviderType, StorageServiceType, StorageUploadStatusCode, WebitelContactsAccessMode, JobState, Response, Client, CallReportingStatus, EavesdropState, EavesdropType, CallActions, CallDirection, Call, AgentStatus, ChannelState, ChannelType, Agent, DeclineCause, ChatActions, ConversationState, Conversation, TypeErrors, DeviceNotFoundError, DeviceNotAllowPermissionError, RolePermissionError, LicencePermissionError, PauseNotAllowedError, SipClient, ExternalClient, SipPhone, Log };
42784
+ export { AgentPauseCauseServiceApiAxiosParamCreator, AgentPauseCauseServiceApiFp, AgentPauseCauseServiceApiFactory, AgentPauseCauseServiceApi, AgentServiceApiAxiosParamCreator, AgentServiceApiFp, AgentServiceApiFactory, AgentServiceApi, AgentSkillServiceApiAxiosParamCreator, AgentSkillServiceApiFp, AgentSkillServiceApiFactory, AgentSkillServiceApi, AgentTeamServiceApiAxiosParamCreator, AgentTeamServiceApiFp, AgentTeamServiceApiFactory, AgentTeamServiceApi, AuditFormServiceApiAxiosParamCreator, AuditFormServiceApiFp, AuditFormServiceApiFactory, AuditFormServiceApi, BackendProfileServiceApiAxiosParamCreator, BackendProfileServiceApiFp, BackendProfileServiceApiFactory, BackendProfileServiceApi, BucketServiceApiAxiosParamCreator, BucketServiceApiFp, BucketServiceApiFactory, BucketServiceApi, CalendarServiceApiAxiosParamCreator, CalendarServiceApiFp, CalendarServiceApiFactory, CalendarServiceApi, CallServiceApiAxiosParamCreator, CallServiceApiFp, CallServiceApiFactory, CallServiceApi, ChatHelperServiceApiAxiosParamCreator, ChatHelperServiceApiFp, ChatHelperServiceApiFactory, ChatHelperServiceApi, CognitiveProfileServiceApiAxiosParamCreator, CognitiveProfileServiceApiFp, CognitiveProfileServiceApiFactory, CognitiveProfileServiceApi, CommunicationTypeServiceApiAxiosParamCreator, CommunicationTypeServiceApiFp, CommunicationTypeServiceApiFactory, CommunicationTypeServiceApi, ConfigServiceApiAxiosParamCreator, ConfigServiceApiFp, ConfigServiceApiFactory, ConfigServiceApi, ContactsApiAxiosParamCreator, ContactsApiFp, ContactsApiFactory, ContactsApi, EmailProfileServiceApiAxiosParamCreator, EmailProfileServiceApiFp, EmailProfileServiceApiFactory, EmailProfileServiceApi, EmailsApiAxiosParamCreator, EmailsApiFp, EmailsApiFactory, EmailsApi, FileServiceApiAxiosParamCreator, FileServiceApiFp, FileServiceApiFactory, FileServiceApi, FileTranscriptServiceApiAxiosParamCreator, FileTranscriptServiceApiFp, FileTranscriptServiceApiFactory, FileTranscriptServiceApi, ImportTemplateServiceApiAxiosParamCreator, ImportTemplateServiceApiFp, ImportTemplateServiceApiFactory, ImportTemplateServiceApi, LabelsApiAxiosParamCreator, LabelsApiFp, LabelsApiFactory, LabelsApi, ListServiceApiAxiosParamCreator, ListServiceApiFp, ListServiceApiFactory, ListServiceApi, LoggerServiceApiAxiosParamCreator, LoggerServiceApiFp, LoggerServiceApiFactory, LoggerServiceApi, ManagersApiAxiosParamCreator, ManagersApiFp, ManagersApiFactory, ManagersApi, MediaFileServiceApiAxiosParamCreator, MediaFileServiceApiFp, MediaFileServiceApiFactory, MediaFileServiceApi, MemberServiceApiAxiosParamCreator, MemberServiceApiFp, MemberServiceApiFactory, MemberServiceApi, OutboundResourceGroupServiceApiAxiosParamCreator, OutboundResourceGroupServiceApiFp, OutboundResourceGroupServiceApiFactory, OutboundResourceGroupServiceApi, OutboundResourceServiceApiAxiosParamCreator, OutboundResourceServiceApiFp, OutboundResourceServiceApiFactory, OutboundResourceServiceApi, PresetQueryServiceApiAxiosParamCreator, PresetQueryServiceApiFp, PresetQueryServiceApiFactory, PresetQueryServiceApi, QueueBucketServiceApiAxiosParamCreator, QueueBucketServiceApiFp, QueueBucketServiceApiFactory, QueueBucketServiceApi, QueueHookServiceApiAxiosParamCreator, QueueHookServiceApiFp, QueueHookServiceApiFactory, QueueHookServiceApi, QueueResourcesServiceApiAxiosParamCreator, QueueResourcesServiceApiFp, QueueResourcesServiceApiFactory, QueueResourcesServiceApi, QueueServiceApiAxiosParamCreator, QueueServiceApiFp, QueueServiceApiFactory, QueueServiceApi, QueueSkillServiceApiAxiosParamCreator, QueueSkillServiceApiFp, QueueSkillServiceApiFactory, QueueSkillServiceApi, RegionServiceApiAxiosParamCreator, RegionServiceApiFp, RegionServiceApiFactory, RegionServiceApi, RoutingChatPlanServiceApiAxiosParamCreator, RoutingChatPlanServiceApiFp, RoutingChatPlanServiceApiFactory, RoutingChatPlanServiceApi, RoutingOutboundCallServiceApiAxiosParamCreator, RoutingOutboundCallServiceApiFp, RoutingOutboundCallServiceApiFactory, RoutingOutboundCallServiceApi, RoutingSchemaServiceApiAxiosParamCreator, RoutingSchemaServiceApiFp, RoutingSchemaServiceApiFactory, RoutingSchemaServiceApi, RoutingVariableServiceApiAxiosParamCreator, RoutingVariableServiceApiFp, RoutingVariableServiceApiFactory, RoutingVariableServiceApi, SkillServiceApiAxiosParamCreator, SkillServiceApiFp, SkillServiceApiFactory, SkillServiceApi, TriggerServiceApiAxiosParamCreator, TriggerServiceApiFp, TriggerServiceApiFactory, TriggerServiceApi, UserHelperServiceApiAxiosParamCreator, UserHelperServiceApiFp, UserHelperServiceApiFactory, UserHelperServiceApi, VariablesApiAxiosParamCreator, VariablesApiFp, VariablesApiFactory, VariablesApi, Configuration, EngineAuditQuestionType, EngineBoolFilter, EngineCommunicationChannels, EnginePresetQuerySection, EngineRoutingSchemaType, EngineTriggerJobState, EngineTriggerType, GoogleProtobufNullValue, HistoryFileJobHistoryFileJobAction, HistoryFileJobHistoryFileJobState, LoggerAction, ProtobufNullValue, StorageImportSourceType, StorageProviderType, StorageServiceType, StorageUploadStatusCode, WebitelContactsAccessMode, JobState, Response, Client, CallReportingStatus, EavesdropState, EavesdropType, CallActions, CallDirection, Call, AgentStatus, ChannelState, ChannelType, Agent, DeclineCause, ChatActions, ConversationState, Conversation, TypeErrors, DeviceNotFoundError, DeviceNotAllowPermissionError, RolePermissionError, LicencePermissionError, PauseNotAllowedError, SipClient, ExternalClient, SipPhone, Log };
41750
42785
  //# sourceMappingURL=index.esm.js.map