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
@@ -0,0 +1,984 @@
1
+ // tslint:disable
2
+ /**
3
+ * Webitel engine API
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document: 23.07.0
7
+ * Contact: support@webitel.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ import * as globalImportUrl from 'url';
14
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { BASE_PATH, BaseAPI, RequiredError, } from '../base';
18
+ /**
19
+ * ManagersApi - axios parameter creator
20
+ * @export
21
+ */
22
+ export const ManagersApiAxiosParamCreator = function (configuration) {
23
+ return {
24
+ /**
25
+ *
26
+ * @summary Remove the contact\'s manager address link
27
+ * @param {string} contactId Contact ID associated with.
28
+ * @param {string} etag Unique ID to remove.
29
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ deleteManager: async (contactId, etag, fields, options = {}) => {
34
+ // verify required parameter 'contactId' is not null or undefined
35
+ if (contactId === null || contactId === undefined) {
36
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling deleteManager.');
37
+ }
38
+ // verify required parameter 'etag' is not null or undefined
39
+ if (etag === null || etag === undefined) {
40
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling deleteManager.');
41
+ }
42
+ const localVarPath = `/contacts/{contact_id}/managers/{etag}`
43
+ .replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
44
+ .replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
45
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
46
+ let baseOptions;
47
+ if (configuration) {
48
+ baseOptions = configuration.baseOptions;
49
+ }
50
+ const localVarRequestOptions = {
51
+ method: 'DELETE',
52
+ ...baseOptions,
53
+ ...options,
54
+ };
55
+ const localVarHeaderParameter = {};
56
+ const localVarQueryParameter = {};
57
+ // authentication AccessToken required
58
+ if (configuration && configuration.apiKey) {
59
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
60
+ ? await configuration.apiKey('X-Webitel-Access')
61
+ : await configuration.apiKey;
62
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
63
+ }
64
+ if (fields) {
65
+ localVarQueryParameter['fields'] = fields;
66
+ }
67
+ localVarUrlObj.query = {
68
+ ...localVarUrlObj.query,
69
+ ...localVarQueryParameter,
70
+ ...options.query,
71
+ };
72
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
73
+ delete localVarUrlObj.search;
74
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
+ localVarRequestOptions.headers = {
76
+ ...localVarHeaderParameter,
77
+ ...headersFromBaseOptions,
78
+ ...options.headers,
79
+ };
80
+ return {
81
+ url: globalImportUrl.format(localVarUrlObj),
82
+ options: localVarRequestOptions,
83
+ };
84
+ },
85
+ /**
86
+ *
87
+ * @summary Remove Contact Managers associations.
88
+ * @param {string} contactId Contact ID associated with.
89
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
90
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ deleteManagers: async (contactId, etag, fields, options = {}) => {
95
+ // verify required parameter 'contactId' is not null or undefined
96
+ if (contactId === null || contactId === undefined) {
97
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling deleteManagers.');
98
+ }
99
+ // verify required parameter 'etag' is not null or undefined
100
+ if (etag === null || etag === undefined) {
101
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling deleteManagers.');
102
+ }
103
+ const localVarPath = `/contacts/{contact_id}/managers`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
104
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
105
+ let baseOptions;
106
+ if (configuration) {
107
+ baseOptions = configuration.baseOptions;
108
+ }
109
+ const localVarRequestOptions = {
110
+ method: 'DELETE',
111
+ ...baseOptions,
112
+ ...options,
113
+ };
114
+ const localVarHeaderParameter = {};
115
+ const localVarQueryParameter = {};
116
+ // authentication AccessToken required
117
+ if (configuration && configuration.apiKey) {
118
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
119
+ ? await configuration.apiKey('X-Webitel-Access')
120
+ : await configuration.apiKey;
121
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
122
+ }
123
+ if (fields) {
124
+ localVarQueryParameter['fields'] = fields;
125
+ }
126
+ if (etag) {
127
+ localVarQueryParameter['etag'] = etag;
128
+ }
129
+ localVarUrlObj.query = {
130
+ ...localVarUrlObj.query,
131
+ ...localVarQueryParameter,
132
+ ...options.query,
133
+ };
134
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
135
+ delete localVarUrlObj.search;
136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = {
138
+ ...localVarHeaderParameter,
139
+ ...headersFromBaseOptions,
140
+ ...options.headers,
141
+ };
142
+ return {
143
+ url: globalImportUrl.format(localVarUrlObj),
144
+ options: localVarRequestOptions,
145
+ };
146
+ },
147
+ /**
148
+ *
149
+ * @summary Search the Contact\'s Managers.
150
+ * @param {string} contactId Contact ID associated with.
151
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
152
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
153
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
154
+ * @param {Array<string>} [sort] Sort the result according to fields.
155
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
156
+ * @param {Array<string>} [id] Record(s) with unique ID only.
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ listManagers: async (contactId, page, size, q, sort, fields, id, options = {}) => {
161
+ // verify required parameter 'contactId' is not null or undefined
162
+ if (contactId === null || contactId === undefined) {
163
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling listManagers.');
164
+ }
165
+ const localVarPath = `/contacts/{contact_id}/managers`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
166
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
167
+ let baseOptions;
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ }
171
+ const localVarRequestOptions = {
172
+ method: 'GET',
173
+ ...baseOptions,
174
+ ...options,
175
+ };
176
+ const localVarHeaderParameter = {};
177
+ const localVarQueryParameter = {};
178
+ // authentication AccessToken required
179
+ if (configuration && configuration.apiKey) {
180
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
181
+ ? await configuration.apiKey('X-Webitel-Access')
182
+ : await configuration.apiKey;
183
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
184
+ }
185
+ if (page !== undefined) {
186
+ localVarQueryParameter['page'] = page;
187
+ }
188
+ if (size !== undefined) {
189
+ localVarQueryParameter['size'] = size;
190
+ }
191
+ if (q !== undefined) {
192
+ localVarQueryParameter['q'] = q;
193
+ }
194
+ if (sort) {
195
+ localVarQueryParameter['sort'] = sort;
196
+ }
197
+ if (fields) {
198
+ localVarQueryParameter['fields'] = fields;
199
+ }
200
+ if (id) {
201
+ localVarQueryParameter['id'] = id;
202
+ }
203
+ localVarUrlObj.query = {
204
+ ...localVarUrlObj.query,
205
+ ...localVarQueryParameter,
206
+ ...options.query,
207
+ };
208
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
209
+ delete localVarUrlObj.search;
210
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
211
+ localVarRequestOptions.headers = {
212
+ ...localVarHeaderParameter,
213
+ ...headersFromBaseOptions,
214
+ ...options.headers,
215
+ };
216
+ return {
217
+ url: globalImportUrl.format(localVarUrlObj),
218
+ options: localVarRequestOptions,
219
+ };
220
+ },
221
+ /**
222
+ *
223
+ * @summary Locate the manager address link.
224
+ * @param {string} contactId Contact source ID.
225
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
226
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ locateManager: async (contactId, etag, fields, options = {}) => {
231
+ // verify required parameter 'contactId' is not null or undefined
232
+ if (contactId === null || contactId === undefined) {
233
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling locateManager.');
234
+ }
235
+ // verify required parameter 'etag' is not null or undefined
236
+ if (etag === null || etag === undefined) {
237
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling locateManager.');
238
+ }
239
+ const localVarPath = `/contacts/{contact_id}/managers/{etag}`
240
+ .replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
241
+ .replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
242
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
243
+ let baseOptions;
244
+ if (configuration) {
245
+ baseOptions = configuration.baseOptions;
246
+ }
247
+ const localVarRequestOptions = {
248
+ method: 'GET',
249
+ ...baseOptions,
250
+ ...options,
251
+ };
252
+ const localVarHeaderParameter = {};
253
+ const localVarQueryParameter = {};
254
+ // authentication AccessToken required
255
+ if (configuration && configuration.apiKey) {
256
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
257
+ ? await configuration.apiKey('X-Webitel-Access')
258
+ : await configuration.apiKey;
259
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
260
+ }
261
+ if (fields) {
262
+ localVarQueryParameter['fields'] = fields;
263
+ }
264
+ localVarUrlObj.query = {
265
+ ...localVarUrlObj.query,
266
+ ...localVarQueryParameter,
267
+ ...options.query,
268
+ };
269
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
270
+ delete localVarUrlObj.search;
271
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
272
+ localVarRequestOptions.headers = {
273
+ ...localVarHeaderParameter,
274
+ ...headersFromBaseOptions,
275
+ ...options.headers,
276
+ };
277
+ return {
278
+ url: globalImportUrl.format(localVarUrlObj),
279
+ options: localVarRequestOptions,
280
+ };
281
+ },
282
+ /**
283
+ *
284
+ * @summary Associate new Managers to the Contact.
285
+ * @param {string} contactId Link contact ID.
286
+ * @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.
287
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ mergeManagers: async (contactId, input, fields, options = {}) => {
292
+ // verify required parameter 'contactId' is not null or undefined
293
+ if (contactId === null || contactId === undefined) {
294
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling mergeManagers.');
295
+ }
296
+ // verify required parameter 'input' is not null or undefined
297
+ if (input === null || input === undefined) {
298
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling mergeManagers.');
299
+ }
300
+ const localVarPath = `/contacts/{contact_id}/managers`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
301
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
302
+ let baseOptions;
303
+ if (configuration) {
304
+ baseOptions = configuration.baseOptions;
305
+ }
306
+ const localVarRequestOptions = {
307
+ method: 'POST',
308
+ ...baseOptions,
309
+ ...options,
310
+ };
311
+ const localVarHeaderParameter = {};
312
+ const localVarQueryParameter = {};
313
+ // authentication AccessToken required
314
+ if (configuration && configuration.apiKey) {
315
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
316
+ ? await configuration.apiKey('X-Webitel-Access')
317
+ : await configuration.apiKey;
318
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
319
+ }
320
+ if (fields) {
321
+ localVarQueryParameter['fields'] = fields;
322
+ }
323
+ localVarHeaderParameter['Content-Type'] = 'application/json';
324
+ localVarUrlObj.query = {
325
+ ...localVarUrlObj.query,
326
+ ...localVarQueryParameter,
327
+ ...options.query,
328
+ };
329
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
330
+ delete localVarUrlObj.search;
331
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
332
+ localVarRequestOptions.headers = {
333
+ ...localVarHeaderParameter,
334
+ ...headersFromBaseOptions,
335
+ ...options.headers,
336
+ };
337
+ const needsSerialization = typeof input !== 'string' ||
338
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
339
+ localVarRequestOptions.data = needsSerialization
340
+ ? JSON.stringify(input !== undefined ? input : {})
341
+ : input || '';
342
+ return {
343
+ url: globalImportUrl.format(localVarUrlObj),
344
+ options: localVarRequestOptions,
345
+ };
346
+ },
347
+ /**
348
+ *
349
+ * @summary Reset Managers to fit the specified final set.
350
+ * @param {string} contactId Contact ID associated with.
351
+ * @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.
352
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ resetManagers: async (contactId, input, fields, options = {}) => {
357
+ // verify required parameter 'contactId' is not null or undefined
358
+ if (contactId === null || contactId === undefined) {
359
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling resetManagers.');
360
+ }
361
+ // verify required parameter 'input' is not null or undefined
362
+ if (input === null || input === undefined) {
363
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling resetManagers.');
364
+ }
365
+ const localVarPath = `/contacts/{contact_id}/managers`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
366
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
367
+ let baseOptions;
368
+ if (configuration) {
369
+ baseOptions = configuration.baseOptions;
370
+ }
371
+ const localVarRequestOptions = {
372
+ method: 'PUT',
373
+ ...baseOptions,
374
+ ...options,
375
+ };
376
+ const localVarHeaderParameter = {};
377
+ const localVarQueryParameter = {};
378
+ // authentication AccessToken required
379
+ if (configuration && configuration.apiKey) {
380
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
381
+ ? await configuration.apiKey('X-Webitel-Access')
382
+ : await configuration.apiKey;
383
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
384
+ }
385
+ if (fields) {
386
+ localVarQueryParameter['fields'] = fields;
387
+ }
388
+ localVarHeaderParameter['Content-Type'] = 'application/json';
389
+ localVarUrlObj.query = {
390
+ ...localVarUrlObj.query,
391
+ ...localVarQueryParameter,
392
+ ...options.query,
393
+ };
394
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
395
+ delete localVarUrlObj.search;
396
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
397
+ localVarRequestOptions.headers = {
398
+ ...localVarHeaderParameter,
399
+ ...headersFromBaseOptions,
400
+ ...options.headers,
401
+ };
402
+ const needsSerialization = typeof input !== 'string' ||
403
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
404
+ localVarRequestOptions.data = needsSerialization
405
+ ? JSON.stringify(input !== undefined ? input : {})
406
+ : input || '';
407
+ return {
408
+ url: globalImportUrl.format(localVarUrlObj),
409
+ options: localVarRequestOptions,
410
+ };
411
+ },
412
+ /**
413
+ *
414
+ * @summary Update the contact\'s manager address link details
415
+ * @param {string} contactId Link contact ID.
416
+ * @param {string} etag Unique ID of the latest version of an existing resource.
417
+ * @param {NEWUpdateOfTheManagerLink} input
418
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ updateManager: async (contactId, etag, input, fields, options = {}) => {
423
+ // verify required parameter 'contactId' is not null or undefined
424
+ if (contactId === null || contactId === undefined) {
425
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling updateManager.');
426
+ }
427
+ // verify required parameter 'etag' is not null or undefined
428
+ if (etag === null || etag === undefined) {
429
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling updateManager.');
430
+ }
431
+ // verify required parameter 'input' is not null or undefined
432
+ if (input === null || input === undefined) {
433
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling updateManager.');
434
+ }
435
+ const localVarPath = `/contacts/{contact_id}/managers/{etag}`
436
+ .replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
437
+ .replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
438
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
439
+ let baseOptions;
440
+ if (configuration) {
441
+ baseOptions = configuration.baseOptions;
442
+ }
443
+ const localVarRequestOptions = {
444
+ method: 'PUT',
445
+ ...baseOptions,
446
+ ...options,
447
+ };
448
+ const localVarHeaderParameter = {};
449
+ const localVarQueryParameter = {};
450
+ // authentication AccessToken required
451
+ if (configuration && configuration.apiKey) {
452
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
453
+ ? await configuration.apiKey('X-Webitel-Access')
454
+ : await configuration.apiKey;
455
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
456
+ }
457
+ if (fields) {
458
+ localVarQueryParameter['fields'] = fields;
459
+ }
460
+ localVarHeaderParameter['Content-Type'] = 'application/json';
461
+ localVarUrlObj.query = {
462
+ ...localVarUrlObj.query,
463
+ ...localVarQueryParameter,
464
+ ...options.query,
465
+ };
466
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
467
+ delete localVarUrlObj.search;
468
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
469
+ localVarRequestOptions.headers = {
470
+ ...localVarHeaderParameter,
471
+ ...headersFromBaseOptions,
472
+ ...options.headers,
473
+ };
474
+ const needsSerialization = typeof input !== 'string' ||
475
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
476
+ localVarRequestOptions.data = needsSerialization
477
+ ? JSON.stringify(input !== undefined ? input : {})
478
+ : input || '';
479
+ return {
480
+ url: globalImportUrl.format(localVarUrlObj),
481
+ options: localVarRequestOptions,
482
+ };
483
+ },
484
+ /**
485
+ *
486
+ * @summary Update the contact\'s manager address link details
487
+ * @param {string} contactId Link contact ID.
488
+ * @param {string} etag Unique ID of the latest version of an existing resource.
489
+ * @param {NEWUpdateOfTheManagerLink1} input
490
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ updateManager2: async (contactId, etag, input, fields, options = {}) => {
495
+ // verify required parameter 'contactId' is not null or undefined
496
+ if (contactId === null || contactId === undefined) {
497
+ throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling updateManager2.');
498
+ }
499
+ // verify required parameter 'etag' is not null or undefined
500
+ if (etag === null || etag === undefined) {
501
+ throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling updateManager2.');
502
+ }
503
+ // verify required parameter 'input' is not null or undefined
504
+ if (input === null || input === undefined) {
505
+ throw new RequiredError('input', 'Required parameter input was null or undefined when calling updateManager2.');
506
+ }
507
+ const localVarPath = `/contacts/{contact_id}/managers/{etag}`
508
+ .replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
509
+ .replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
510
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
511
+ let baseOptions;
512
+ if (configuration) {
513
+ baseOptions = configuration.baseOptions;
514
+ }
515
+ const localVarRequestOptions = {
516
+ method: 'PATCH',
517
+ ...baseOptions,
518
+ ...options,
519
+ };
520
+ const localVarHeaderParameter = {};
521
+ const localVarQueryParameter = {};
522
+ // authentication AccessToken required
523
+ if (configuration && configuration.apiKey) {
524
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
525
+ ? await configuration.apiKey('X-Webitel-Access')
526
+ : await configuration.apiKey;
527
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
528
+ }
529
+ if (fields) {
530
+ localVarQueryParameter['fields'] = fields;
531
+ }
532
+ localVarHeaderParameter['Content-Type'] = 'application/json';
533
+ localVarUrlObj.query = {
534
+ ...localVarUrlObj.query,
535
+ ...localVarQueryParameter,
536
+ ...options.query,
537
+ };
538
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
539
+ delete localVarUrlObj.search;
540
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
541
+ localVarRequestOptions.headers = {
542
+ ...localVarHeaderParameter,
543
+ ...headersFromBaseOptions,
544
+ ...options.headers,
545
+ };
546
+ const needsSerialization = typeof input !== 'string' ||
547
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
548
+ localVarRequestOptions.data = needsSerialization
549
+ ? JSON.stringify(input !== undefined ? input : {})
550
+ : input || '';
551
+ return {
552
+ url: globalImportUrl.format(localVarUrlObj),
553
+ options: localVarRequestOptions,
554
+ };
555
+ },
556
+ };
557
+ };
558
+ /**
559
+ * ManagersApi - functional programming interface
560
+ * @export
561
+ */
562
+ export const ManagersApiFp = function (configuration) {
563
+ return {
564
+ /**
565
+ *
566
+ * @summary Remove the contact\'s manager address link
567
+ * @param {string} contactId Contact ID associated with.
568
+ * @param {string} etag Unique ID to remove.
569
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
570
+ * @param {*} [options] Override http request option.
571
+ * @throws {RequiredError}
572
+ */
573
+ async deleteManager(contactId, etag, fields, options) {
574
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).deleteManager(contactId, etag, fields, options);
575
+ return (axios = globalAxios, basePath = BASE_PATH) => {
576
+ const axiosRequestArgs = {
577
+ ...localVarAxiosArgs.options,
578
+ url: basePath + localVarAxiosArgs.url,
579
+ };
580
+ return axios.request(axiosRequestArgs);
581
+ };
582
+ },
583
+ /**
584
+ *
585
+ * @summary Remove Contact Managers associations.
586
+ * @param {string} contactId Contact ID associated with.
587
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
588
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
589
+ * @param {*} [options] Override http request option.
590
+ * @throws {RequiredError}
591
+ */
592
+ async deleteManagers(contactId, etag, fields, options) {
593
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).deleteManagers(contactId, etag, fields, options);
594
+ return (axios = globalAxios, basePath = BASE_PATH) => {
595
+ const axiosRequestArgs = {
596
+ ...localVarAxiosArgs.options,
597
+ url: basePath + localVarAxiosArgs.url,
598
+ };
599
+ return axios.request(axiosRequestArgs);
600
+ };
601
+ },
602
+ /**
603
+ *
604
+ * @summary Search the Contact\'s Managers.
605
+ * @param {string} contactId Contact ID associated with.
606
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
607
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
608
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
609
+ * @param {Array<string>} [sort] Sort the result according to fields.
610
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
611
+ * @param {Array<string>} [id] Record(s) with unique ID only.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ async listManagers(contactId, page, size, q, sort, fields, id, options) {
616
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).listManagers(contactId, page, size, q, sort, fields, id, options);
617
+ return (axios = globalAxios, basePath = BASE_PATH) => {
618
+ const axiosRequestArgs = {
619
+ ...localVarAxiosArgs.options,
620
+ url: basePath + localVarAxiosArgs.url,
621
+ };
622
+ return axios.request(axiosRequestArgs);
623
+ };
624
+ },
625
+ /**
626
+ *
627
+ * @summary Locate the manager address link.
628
+ * @param {string} contactId Contact source ID.
629
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
630
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
631
+ * @param {*} [options] Override http request option.
632
+ * @throws {RequiredError}
633
+ */
634
+ async locateManager(contactId, etag, fields, options) {
635
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).locateManager(contactId, etag, fields, options);
636
+ return (axios = globalAxios, basePath = BASE_PATH) => {
637
+ const axiosRequestArgs = {
638
+ ...localVarAxiosArgs.options,
639
+ url: basePath + localVarAxiosArgs.url,
640
+ };
641
+ return axios.request(axiosRequestArgs);
642
+ };
643
+ },
644
+ /**
645
+ *
646
+ * @summary Associate new Managers to the Contact.
647
+ * @param {string} contactId Link contact ID.
648
+ * @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.
649
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ async mergeManagers(contactId, input, fields, options) {
654
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).mergeManagers(contactId, input, fields, options);
655
+ return (axios = globalAxios, basePath = BASE_PATH) => {
656
+ const axiosRequestArgs = {
657
+ ...localVarAxiosArgs.options,
658
+ url: basePath + localVarAxiosArgs.url,
659
+ };
660
+ return axios.request(axiosRequestArgs);
661
+ };
662
+ },
663
+ /**
664
+ *
665
+ * @summary Reset Managers to fit the specified final set.
666
+ * @param {string} contactId Contact ID associated with.
667
+ * @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.
668
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ */
672
+ async resetManagers(contactId, input, fields, options) {
673
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).resetManagers(contactId, input, fields, options);
674
+ return (axios = globalAxios, basePath = BASE_PATH) => {
675
+ const axiosRequestArgs = {
676
+ ...localVarAxiosArgs.options,
677
+ url: basePath + localVarAxiosArgs.url,
678
+ };
679
+ return axios.request(axiosRequestArgs);
680
+ };
681
+ },
682
+ /**
683
+ *
684
+ * @summary Update the contact\'s manager address link details
685
+ * @param {string} contactId Link contact ID.
686
+ * @param {string} etag Unique ID of the latest version of an existing resource.
687
+ * @param {NEWUpdateOfTheManagerLink} input
688
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ */
692
+ async updateManager(contactId, etag, input, fields, options) {
693
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).updateManager(contactId, etag, input, fields, options);
694
+ return (axios = globalAxios, basePath = BASE_PATH) => {
695
+ const axiosRequestArgs = {
696
+ ...localVarAxiosArgs.options,
697
+ url: basePath + localVarAxiosArgs.url,
698
+ };
699
+ return axios.request(axiosRequestArgs);
700
+ };
701
+ },
702
+ /**
703
+ *
704
+ * @summary Update the contact\'s manager address link details
705
+ * @param {string} contactId Link contact ID.
706
+ * @param {string} etag Unique ID of the latest version of an existing resource.
707
+ * @param {NEWUpdateOfTheManagerLink1} input
708
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ */
712
+ async updateManager2(contactId, etag, input, fields, options) {
713
+ const localVarAxiosArgs = await ManagersApiAxiosParamCreator(configuration).updateManager2(contactId, etag, input, fields, options);
714
+ return (axios = globalAxios, basePath = BASE_PATH) => {
715
+ const axiosRequestArgs = {
716
+ ...localVarAxiosArgs.options,
717
+ url: basePath + localVarAxiosArgs.url,
718
+ };
719
+ return axios.request(axiosRequestArgs);
720
+ };
721
+ },
722
+ };
723
+ };
724
+ /**
725
+ * ManagersApi - factory interface
726
+ * @export
727
+ */
728
+ export const ManagersApiFactory = function (configuration, basePath, axios) {
729
+ return {
730
+ /**
731
+ *
732
+ * @summary Remove the contact\'s manager address link
733
+ * @param {string} contactId Contact ID associated with.
734
+ * @param {string} etag Unique ID to remove.
735
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
736
+ * @param {*} [options] Override http request option.
737
+ * @throws {RequiredError}
738
+ */
739
+ deleteManager(contactId, etag, fields, options) {
740
+ return ManagersApiFp(configuration)
741
+ .deleteManager(contactId, etag, fields, options)
742
+ .then((request) => request(axios, basePath));
743
+ },
744
+ /**
745
+ *
746
+ * @summary Remove Contact Managers associations.
747
+ * @param {string} contactId Contact ID associated with.
748
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
749
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ */
753
+ deleteManagers(contactId, etag, fields, options) {
754
+ return ManagersApiFp(configuration)
755
+ .deleteManagers(contactId, etag, fields, options)
756
+ .then((request) => request(axios, basePath));
757
+ },
758
+ /**
759
+ *
760
+ * @summary Search the Contact\'s Managers.
761
+ * @param {string} contactId Contact ID associated with.
762
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
763
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
764
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
765
+ * @param {Array<string>} [sort] Sort the result according to fields.
766
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
767
+ * @param {Array<string>} [id] Record(s) with unique ID only.
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ listManagers(contactId, page, size, q, sort, fields, id, options) {
772
+ return ManagersApiFp(configuration)
773
+ .listManagers(contactId, page, size, q, sort, fields, id, options)
774
+ .then((request) => request(axios, basePath));
775
+ },
776
+ /**
777
+ *
778
+ * @summary Locate the manager address link.
779
+ * @param {string} contactId Contact source ID.
780
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
781
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
782
+ * @param {*} [options] Override http request option.
783
+ * @throws {RequiredError}
784
+ */
785
+ locateManager(contactId, etag, fields, options) {
786
+ return ManagersApiFp(configuration)
787
+ .locateManager(contactId, etag, fields, options)
788
+ .then((request) => request(axios, basePath));
789
+ },
790
+ /**
791
+ *
792
+ * @summary Associate new Managers to the Contact.
793
+ * @param {string} contactId Link contact ID.
794
+ * @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.
795
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
796
+ * @param {*} [options] Override http request option.
797
+ * @throws {RequiredError}
798
+ */
799
+ mergeManagers(contactId, input, fields, options) {
800
+ return ManagersApiFp(configuration)
801
+ .mergeManagers(contactId, input, fields, options)
802
+ .then((request) => request(axios, basePath));
803
+ },
804
+ /**
805
+ *
806
+ * @summary Reset Managers to fit the specified final set.
807
+ * @param {string} contactId Contact ID associated with.
808
+ * @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.
809
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ */
813
+ resetManagers(contactId, input, fields, options) {
814
+ return ManagersApiFp(configuration)
815
+ .resetManagers(contactId, input, fields, options)
816
+ .then((request) => request(axios, basePath));
817
+ },
818
+ /**
819
+ *
820
+ * @summary Update the contact\'s manager address link details
821
+ * @param {string} contactId Link contact ID.
822
+ * @param {string} etag Unique ID of the latest version of an existing resource.
823
+ * @param {NEWUpdateOfTheManagerLink} input
824
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ */
828
+ updateManager(contactId, etag, input, fields, options) {
829
+ return ManagersApiFp(configuration)
830
+ .updateManager(contactId, etag, input, fields, options)
831
+ .then((request) => request(axios, basePath));
832
+ },
833
+ /**
834
+ *
835
+ * @summary Update the contact\'s manager address link details
836
+ * @param {string} contactId Link contact ID.
837
+ * @param {string} etag Unique ID of the latest version of an existing resource.
838
+ * @param {NEWUpdateOfTheManagerLink1} input
839
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ */
843
+ updateManager2(contactId, etag, input, fields, options) {
844
+ return ManagersApiFp(configuration)
845
+ .updateManager2(contactId, etag, input, fields, options)
846
+ .then((request) => request(axios, basePath));
847
+ },
848
+ };
849
+ };
850
+ /**
851
+ * ManagersApi - object-oriented interface
852
+ * @export
853
+ * @class ManagersApi
854
+ * @extends {BaseAPI}
855
+ */
856
+ export class ManagersApi extends BaseAPI {
857
+ /**
858
+ *
859
+ * @summary Remove the contact\'s manager address link
860
+ * @param {string} contactId Contact ID associated with.
861
+ * @param {string} etag Unique ID to remove.
862
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ * @memberof ManagersApi
866
+ */
867
+ deleteManager(contactId, etag, fields, options) {
868
+ return ManagersApiFp(this.configuration)
869
+ .deleteManager(contactId, etag, fields, options)
870
+ .then((request) => request(this.axios, this.basePath));
871
+ }
872
+ /**
873
+ *
874
+ * @summary Remove Contact Managers associations.
875
+ * @param {string} contactId Contact ID associated with.
876
+ * @param {Array<string>} etag Set of unique ID(s) to remove.
877
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ * @memberof ManagersApi
881
+ */
882
+ deleteManagers(contactId, etag, fields, options) {
883
+ return ManagersApiFp(this.configuration)
884
+ .deleteManagers(contactId, etag, fields, options)
885
+ .then((request) => request(this.axios, this.basePath));
886
+ }
887
+ /**
888
+ *
889
+ * @summary Search the Contact\'s Managers.
890
+ * @param {string} contactId Contact ID associated with.
891
+ * @param {number} [page] Page number of result. offset &#x3D; ((page-1)*size)
892
+ * @param {number} [size] Size of result page. limit &#x3D; (size++)
893
+ * @param {string} [q] Search term: user name; &#x60;?&#x60; - matches any one character &#x60;*&#x60; - matches 0 or more characters
894
+ * @param {Array<string>} [sort] Sort the result according to fields.
895
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
896
+ * @param {Array<string>} [id] Record(s) with unique ID only.
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ * @memberof ManagersApi
900
+ */
901
+ listManagers(contactId, page, size, q, sort, fields, id, options) {
902
+ return ManagersApiFp(this.configuration)
903
+ .listManagers(contactId, page, size, q, sort, fields, id, options)
904
+ .then((request) => request(this.axios, this.basePath));
905
+ }
906
+ /**
907
+ *
908
+ * @summary Locate the manager address link.
909
+ * @param {string} contactId Contact source ID.
910
+ * @param {string} etag Unique manager link IDentifier. Accept: &#x60;etag&#x60; (obsolete+) or &#x60;id&#x60;.
911
+ * @param {Array<string>} [fields] Fields to be retrieved into result.
912
+ * @param {*} [options] Override http request option.
913
+ * @throws {RequiredError}
914
+ * @memberof ManagersApi
915
+ */
916
+ locateManager(contactId, etag, fields, options) {
917
+ return ManagersApiFp(this.configuration)
918
+ .locateManager(contactId, etag, fields, options)
919
+ .then((request) => request(this.axios, this.basePath));
920
+ }
921
+ /**
922
+ *
923
+ * @summary Associate new Managers to the Contact.
924
+ * @param {string} contactId Link contact ID.
925
+ * @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.
926
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
927
+ * @param {*} [options] Override http request option.
928
+ * @throws {RequiredError}
929
+ * @memberof ManagersApi
930
+ */
931
+ mergeManagers(contactId, input, fields, options) {
932
+ return ManagersApiFp(this.configuration)
933
+ .mergeManagers(contactId, input, fields, options)
934
+ .then((request) => request(this.axios, this.basePath));
935
+ }
936
+ /**
937
+ *
938
+ * @summary Reset Managers to fit the specified final set.
939
+ * @param {string} contactId Contact ID associated with.
940
+ * @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.
941
+ * @param {Array<string>} [fields] Fields to be retrieved as a result.
942
+ * @param {*} [options] Override http request option.
943
+ * @throws {RequiredError}
944
+ * @memberof ManagersApi
945
+ */
946
+ resetManagers(contactId, input, fields, options) {
947
+ return ManagersApiFp(this.configuration)
948
+ .resetManagers(contactId, input, fields, options)
949
+ .then((request) => request(this.axios, this.basePath));
950
+ }
951
+ /**
952
+ *
953
+ * @summary Update the contact\'s manager address link details
954
+ * @param {string} contactId Link contact ID.
955
+ * @param {string} etag Unique ID of the latest version of an existing resource.
956
+ * @param {NEWUpdateOfTheManagerLink} input
957
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
958
+ * @param {*} [options] Override http request option.
959
+ * @throws {RequiredError}
960
+ * @memberof ManagersApi
961
+ */
962
+ updateManager(contactId, etag, input, fields, options) {
963
+ return ManagersApiFp(this.configuration)
964
+ .updateManager(contactId, etag, input, fields, options)
965
+ .then((request) => request(this.axios, this.basePath));
966
+ }
967
+ /**
968
+ *
969
+ * @summary Update the contact\'s manager address link details
970
+ * @param {string} contactId Link contact ID.
971
+ * @param {string} etag Unique ID of the latest version of an existing resource.
972
+ * @param {NEWUpdateOfTheManagerLink1} input
973
+ * @param {Array<string>} [fields] Fields to be retrieved into result of changes.
974
+ * @param {*} [options] Override http request option.
975
+ * @throws {RequiredError}
976
+ * @memberof ManagersApi
977
+ */
978
+ updateManager2(contactId, etag, input, fields, options) {
979
+ return ManagersApiFp(this.configuration)
980
+ .updateManager2(contactId, etag, input, fields, options)
981
+ .then((request) => request(this.axios, this.basePath));
982
+ }
983
+ }
984
+ //# sourceMappingURL=managers-api.js.map