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