webitel-sdk 23.9.2 → 23.9.4

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