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
package/bundles/index.umd.js
CHANGED
|
@@ -39373,6 +39373,1091 @@
|
|
|
39373
39373
|
return SystemSettingServiceApi;
|
|
39374
39374
|
}(BaseAPI));
|
|
39375
39375
|
|
|
39376
|
+
// tslint:disable
|
|
39377
|
+
/**
|
|
39378
|
+
* TimezonesApi - axios parameter creator
|
|
39379
|
+
* @export
|
|
39380
|
+
*/
|
|
39381
|
+
var TimezonesApiAxiosParamCreator = function (configuration) {
|
|
39382
|
+
var _this = this;
|
|
39383
|
+
return {
|
|
39384
|
+
/**
|
|
39385
|
+
*
|
|
39386
|
+
* @summary Remove the Contact\'s timezone association.
|
|
39387
|
+
* @param {string} contactId Contact ID associated with.
|
|
39388
|
+
* @param {string} etag Unique ID to remove.
|
|
39389
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
39390
|
+
* @param {*} [options] Override http request option.
|
|
39391
|
+
* @throws {RequiredError}
|
|
39392
|
+
*/
|
|
39393
|
+
deleteTimezone: function (contactId, etag, fields, options) {
|
|
39394
|
+
if (options === void 0) { options = {}; }
|
|
39395
|
+
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
39396
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
39397
|
+
return tslib.__generator(this, function (_b) {
|
|
39398
|
+
switch (_b.label) {
|
|
39399
|
+
case 0:
|
|
39400
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
39401
|
+
if (contactId === null || contactId === undefined) {
|
|
39402
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling deleteTimezone.');
|
|
39403
|
+
}
|
|
39404
|
+
// verify required parameter 'etag' is not null or undefined
|
|
39405
|
+
if (etag === null || etag === undefined) {
|
|
39406
|
+
throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling deleteTimezone.');
|
|
39407
|
+
}
|
|
39408
|
+
localVarPath = "/contacts/{contact_id}/timezones/{etag}"
|
|
39409
|
+
.replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)))
|
|
39410
|
+
.replace("{" + 'etag' + "}", encodeURIComponent(String(etag)));
|
|
39411
|
+
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
39412
|
+
if (configuration) {
|
|
39413
|
+
baseOptions = configuration.baseOptions;
|
|
39414
|
+
}
|
|
39415
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'DELETE' }, baseOptions), options);
|
|
39416
|
+
localVarHeaderParameter = {};
|
|
39417
|
+
localVarQueryParameter = {};
|
|
39418
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
39419
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
39420
|
+
return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
|
|
39421
|
+
case 1:
|
|
39422
|
+
_a = _b.sent();
|
|
39423
|
+
return [3 /*break*/, 4];
|
|
39424
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
39425
|
+
case 3:
|
|
39426
|
+
_a = _b.sent();
|
|
39427
|
+
_b.label = 4;
|
|
39428
|
+
case 4:
|
|
39429
|
+
localVarApiKeyValue = _a;
|
|
39430
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39431
|
+
_b.label = 5;
|
|
39432
|
+
case 5:
|
|
39433
|
+
if (fields) {
|
|
39434
|
+
localVarQueryParameter['fields'] = fields;
|
|
39435
|
+
}
|
|
39436
|
+
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
39437
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39438
|
+
delete localVarUrlObj.search;
|
|
39439
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39440
|
+
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
39441
|
+
return [2 /*return*/, {
|
|
39442
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
39443
|
+
options: localVarRequestOptions,
|
|
39444
|
+
}];
|
|
39445
|
+
}
|
|
39446
|
+
});
|
|
39447
|
+
});
|
|
39448
|
+
},
|
|
39449
|
+
/**
|
|
39450
|
+
*
|
|
39451
|
+
* @summary Remove the Contact\'s timezone(s).
|
|
39452
|
+
* @param {string} contactId Contact ID associated with.
|
|
39453
|
+
* @param {Array<string>} etag Set of unique ID(s) to remove.
|
|
39454
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
39455
|
+
* @param {*} [options] Override http request option.
|
|
39456
|
+
* @throws {RequiredError}
|
|
39457
|
+
*/
|
|
39458
|
+
deleteTimezones: function (contactId, etag, fields, options) {
|
|
39459
|
+
if (options === void 0) { options = {}; }
|
|
39460
|
+
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
39461
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
39462
|
+
return tslib.__generator(this, function (_b) {
|
|
39463
|
+
switch (_b.label) {
|
|
39464
|
+
case 0:
|
|
39465
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
39466
|
+
if (contactId === null || contactId === undefined) {
|
|
39467
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling deleteTimezones.');
|
|
39468
|
+
}
|
|
39469
|
+
// verify required parameter 'etag' is not null or undefined
|
|
39470
|
+
if (etag === null || etag === undefined) {
|
|
39471
|
+
throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling deleteTimezones.');
|
|
39472
|
+
}
|
|
39473
|
+
localVarPath = "/contacts/{contact_id}/timezones".replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)));
|
|
39474
|
+
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
39475
|
+
if (configuration) {
|
|
39476
|
+
baseOptions = configuration.baseOptions;
|
|
39477
|
+
}
|
|
39478
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'DELETE' }, baseOptions), options);
|
|
39479
|
+
localVarHeaderParameter = {};
|
|
39480
|
+
localVarQueryParameter = {};
|
|
39481
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
39482
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
39483
|
+
return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
|
|
39484
|
+
case 1:
|
|
39485
|
+
_a = _b.sent();
|
|
39486
|
+
return [3 /*break*/, 4];
|
|
39487
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
39488
|
+
case 3:
|
|
39489
|
+
_a = _b.sent();
|
|
39490
|
+
_b.label = 4;
|
|
39491
|
+
case 4:
|
|
39492
|
+
localVarApiKeyValue = _a;
|
|
39493
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39494
|
+
_b.label = 5;
|
|
39495
|
+
case 5:
|
|
39496
|
+
if (fields) {
|
|
39497
|
+
localVarQueryParameter['fields'] = fields;
|
|
39498
|
+
}
|
|
39499
|
+
if (etag) {
|
|
39500
|
+
localVarQueryParameter['etag'] = etag;
|
|
39501
|
+
}
|
|
39502
|
+
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
39503
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39504
|
+
delete localVarUrlObj.search;
|
|
39505
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39506
|
+
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
39507
|
+
return [2 /*return*/, {
|
|
39508
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
39509
|
+
options: localVarRequestOptions,
|
|
39510
|
+
}];
|
|
39511
|
+
}
|
|
39512
|
+
});
|
|
39513
|
+
});
|
|
39514
|
+
},
|
|
39515
|
+
/**
|
|
39516
|
+
*
|
|
39517
|
+
* @summary List of the Contact\'s timezone(s).
|
|
39518
|
+
* @param {string} contactId Contact ID associated with.
|
|
39519
|
+
* @param {number} [page] Page number of result dataset records. offset = (page*size)
|
|
39520
|
+
* @param {number} [size] Size count of records on result page. limit = (size++)
|
|
39521
|
+
* @param {string} [q] Search term: location name; `?` - matches any one character `*` - matches 0 or more characters
|
|
39522
|
+
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
39523
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
39524
|
+
* @param {Array<string>} [id] Record(s) with unique ID only.
|
|
39525
|
+
* @param {boolean} [primary] Primary timezone only.
|
|
39526
|
+
* @param {*} [options] Override http request option.
|
|
39527
|
+
* @throws {RequiredError}
|
|
39528
|
+
*/
|
|
39529
|
+
listTimezones: function (contactId, page, size, q, sort, fields, id, primary, options) {
|
|
39530
|
+
if (options === void 0) { options = {}; }
|
|
39531
|
+
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
39532
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
39533
|
+
return tslib.__generator(this, function (_b) {
|
|
39534
|
+
switch (_b.label) {
|
|
39535
|
+
case 0:
|
|
39536
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
39537
|
+
if (contactId === null || contactId === undefined) {
|
|
39538
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling listTimezones.');
|
|
39539
|
+
}
|
|
39540
|
+
localVarPath = "/contacts/{contact_id}/timezones".replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)));
|
|
39541
|
+
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
39542
|
+
if (configuration) {
|
|
39543
|
+
baseOptions = configuration.baseOptions;
|
|
39544
|
+
}
|
|
39545
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'GET' }, baseOptions), options);
|
|
39546
|
+
localVarHeaderParameter = {};
|
|
39547
|
+
localVarQueryParameter = {};
|
|
39548
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
39549
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
39550
|
+
return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
|
|
39551
|
+
case 1:
|
|
39552
|
+
_a = _b.sent();
|
|
39553
|
+
return [3 /*break*/, 4];
|
|
39554
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
39555
|
+
case 3:
|
|
39556
|
+
_a = _b.sent();
|
|
39557
|
+
_b.label = 4;
|
|
39558
|
+
case 4:
|
|
39559
|
+
localVarApiKeyValue = _a;
|
|
39560
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39561
|
+
_b.label = 5;
|
|
39562
|
+
case 5:
|
|
39563
|
+
if (page !== undefined) {
|
|
39564
|
+
localVarQueryParameter['page'] = page;
|
|
39565
|
+
}
|
|
39566
|
+
if (size !== undefined) {
|
|
39567
|
+
localVarQueryParameter['size'] = size;
|
|
39568
|
+
}
|
|
39569
|
+
if (q !== undefined) {
|
|
39570
|
+
localVarQueryParameter['q'] = q;
|
|
39571
|
+
}
|
|
39572
|
+
if (sort) {
|
|
39573
|
+
localVarQueryParameter['sort'] = sort;
|
|
39574
|
+
}
|
|
39575
|
+
if (fields) {
|
|
39576
|
+
localVarQueryParameter['fields'] = fields;
|
|
39577
|
+
}
|
|
39578
|
+
if (id) {
|
|
39579
|
+
localVarQueryParameter['id'] = id;
|
|
39580
|
+
}
|
|
39581
|
+
if (primary !== undefined) {
|
|
39582
|
+
localVarQueryParameter['primary'] = primary;
|
|
39583
|
+
}
|
|
39584
|
+
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
39585
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39586
|
+
delete localVarUrlObj.search;
|
|
39587
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39588
|
+
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
39589
|
+
return [2 /*return*/, {
|
|
39590
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
39591
|
+
options: localVarRequestOptions,
|
|
39592
|
+
}];
|
|
39593
|
+
}
|
|
39594
|
+
});
|
|
39595
|
+
});
|
|
39596
|
+
},
|
|
39597
|
+
/**
|
|
39598
|
+
*
|
|
39599
|
+
* @summary Locate the Contact\'s timezone association.
|
|
39600
|
+
* @param {string} contactId Contact source ID.
|
|
39601
|
+
* @param {string} etag Unique timezone link IDentifier. Accept: `etag` (obsolete+) or `id`.
|
|
39602
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
39603
|
+
* @param {*} [options] Override http request option.
|
|
39604
|
+
* @throws {RequiredError}
|
|
39605
|
+
*/
|
|
39606
|
+
locateTimezone: function (contactId, etag, fields, options) {
|
|
39607
|
+
if (options === void 0) { options = {}; }
|
|
39608
|
+
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
39609
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions;
|
|
39610
|
+
return tslib.__generator(this, function (_b) {
|
|
39611
|
+
switch (_b.label) {
|
|
39612
|
+
case 0:
|
|
39613
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
39614
|
+
if (contactId === null || contactId === undefined) {
|
|
39615
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling locateTimezone.');
|
|
39616
|
+
}
|
|
39617
|
+
// verify required parameter 'etag' is not null or undefined
|
|
39618
|
+
if (etag === null || etag === undefined) {
|
|
39619
|
+
throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling locateTimezone.');
|
|
39620
|
+
}
|
|
39621
|
+
localVarPath = "/contacts/{contact_id}/timezones/{etag}"
|
|
39622
|
+
.replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)))
|
|
39623
|
+
.replace("{" + 'etag' + "}", encodeURIComponent(String(etag)));
|
|
39624
|
+
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
39625
|
+
if (configuration) {
|
|
39626
|
+
baseOptions = configuration.baseOptions;
|
|
39627
|
+
}
|
|
39628
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'GET' }, baseOptions), options);
|
|
39629
|
+
localVarHeaderParameter = {};
|
|
39630
|
+
localVarQueryParameter = {};
|
|
39631
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
39632
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
39633
|
+
return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
|
|
39634
|
+
case 1:
|
|
39635
|
+
_a = _b.sent();
|
|
39636
|
+
return [3 /*break*/, 4];
|
|
39637
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
39638
|
+
case 3:
|
|
39639
|
+
_a = _b.sent();
|
|
39640
|
+
_b.label = 4;
|
|
39641
|
+
case 4:
|
|
39642
|
+
localVarApiKeyValue = _a;
|
|
39643
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39644
|
+
_b.label = 5;
|
|
39645
|
+
case 5:
|
|
39646
|
+
if (fields) {
|
|
39647
|
+
localVarQueryParameter['fields'] = fields;
|
|
39648
|
+
}
|
|
39649
|
+
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
39650
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39651
|
+
delete localVarUrlObj.search;
|
|
39652
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39653
|
+
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
39654
|
+
return [2 /*return*/, {
|
|
39655
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
39656
|
+
options: localVarRequestOptions,
|
|
39657
|
+
}];
|
|
39658
|
+
}
|
|
39659
|
+
});
|
|
39660
|
+
});
|
|
39661
|
+
},
|
|
39662
|
+
/**
|
|
39663
|
+
*
|
|
39664
|
+
* @summary Associate more timezone(s) with the Contact.
|
|
39665
|
+
* @param {string} contactId Link contact ID.
|
|
39666
|
+
* @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.
|
|
39667
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
39668
|
+
* @param {*} [options] Override http request option.
|
|
39669
|
+
* @throws {RequiredError}
|
|
39670
|
+
*/
|
|
39671
|
+
mergeTimezones: function (contactId, input, fields, options) {
|
|
39672
|
+
if (options === void 0) { options = {}; }
|
|
39673
|
+
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
39674
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
|
|
39675
|
+
return tslib.__generator(this, function (_b) {
|
|
39676
|
+
switch (_b.label) {
|
|
39677
|
+
case 0:
|
|
39678
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
39679
|
+
if (contactId === null || contactId === undefined) {
|
|
39680
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling mergeTimezones.');
|
|
39681
|
+
}
|
|
39682
|
+
// verify required parameter 'input' is not null or undefined
|
|
39683
|
+
if (input === null || input === undefined) {
|
|
39684
|
+
throw new RequiredError('input', 'Required parameter input was null or undefined when calling mergeTimezones.');
|
|
39685
|
+
}
|
|
39686
|
+
localVarPath = "/contacts/{contact_id}/timezones".replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)));
|
|
39687
|
+
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
39688
|
+
if (configuration) {
|
|
39689
|
+
baseOptions = configuration.baseOptions;
|
|
39690
|
+
}
|
|
39691
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'POST' }, baseOptions), options);
|
|
39692
|
+
localVarHeaderParameter = {};
|
|
39693
|
+
localVarQueryParameter = {};
|
|
39694
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
39695
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
39696
|
+
return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
|
|
39697
|
+
case 1:
|
|
39698
|
+
_a = _b.sent();
|
|
39699
|
+
return [3 /*break*/, 4];
|
|
39700
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
39701
|
+
case 3:
|
|
39702
|
+
_a = _b.sent();
|
|
39703
|
+
_b.label = 4;
|
|
39704
|
+
case 4:
|
|
39705
|
+
localVarApiKeyValue = _a;
|
|
39706
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39707
|
+
_b.label = 5;
|
|
39708
|
+
case 5:
|
|
39709
|
+
if (fields) {
|
|
39710
|
+
localVarQueryParameter['fields'] = fields;
|
|
39711
|
+
}
|
|
39712
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39713
|
+
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
39714
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39715
|
+
delete localVarUrlObj.search;
|
|
39716
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39717
|
+
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
39718
|
+
needsSerialization = typeof input !== 'string' ||
|
|
39719
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
39720
|
+
localVarRequestOptions.data = needsSerialization
|
|
39721
|
+
? JSON.stringify(input !== undefined ? input : {})
|
|
39722
|
+
: input || '';
|
|
39723
|
+
return [2 /*return*/, {
|
|
39724
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
39725
|
+
options: localVarRequestOptions,
|
|
39726
|
+
}];
|
|
39727
|
+
}
|
|
39728
|
+
});
|
|
39729
|
+
});
|
|
39730
|
+
},
|
|
39731
|
+
/**
|
|
39732
|
+
*
|
|
39733
|
+
* @summary Resets all timezones of the contact according to the input dataset.
|
|
39734
|
+
* @param {string} contactId Link contact ID.
|
|
39735
|
+
* @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.
|
|
39736
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
39737
|
+
* @param {*} [options] Override http request option.
|
|
39738
|
+
* @throws {RequiredError}
|
|
39739
|
+
*/
|
|
39740
|
+
resetTimezones: function (contactId, input, fields, options) {
|
|
39741
|
+
if (options === void 0) { options = {}; }
|
|
39742
|
+
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
39743
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
|
|
39744
|
+
return tslib.__generator(this, function (_b) {
|
|
39745
|
+
switch (_b.label) {
|
|
39746
|
+
case 0:
|
|
39747
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
39748
|
+
if (contactId === null || contactId === undefined) {
|
|
39749
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling resetTimezones.');
|
|
39750
|
+
}
|
|
39751
|
+
// verify required parameter 'input' is not null or undefined
|
|
39752
|
+
if (input === null || input === undefined) {
|
|
39753
|
+
throw new RequiredError('input', 'Required parameter input was null or undefined when calling resetTimezones.');
|
|
39754
|
+
}
|
|
39755
|
+
localVarPath = "/contacts/{contact_id}/timezones".replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)));
|
|
39756
|
+
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
39757
|
+
if (configuration) {
|
|
39758
|
+
baseOptions = configuration.baseOptions;
|
|
39759
|
+
}
|
|
39760
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PUT' }, baseOptions), options);
|
|
39761
|
+
localVarHeaderParameter = {};
|
|
39762
|
+
localVarQueryParameter = {};
|
|
39763
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
39764
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
39765
|
+
return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
|
|
39766
|
+
case 1:
|
|
39767
|
+
_a = _b.sent();
|
|
39768
|
+
return [3 /*break*/, 4];
|
|
39769
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
39770
|
+
case 3:
|
|
39771
|
+
_a = _b.sent();
|
|
39772
|
+
_b.label = 4;
|
|
39773
|
+
case 4:
|
|
39774
|
+
localVarApiKeyValue = _a;
|
|
39775
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39776
|
+
_b.label = 5;
|
|
39777
|
+
case 5:
|
|
39778
|
+
if (fields) {
|
|
39779
|
+
localVarQueryParameter['fields'] = fields;
|
|
39780
|
+
}
|
|
39781
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39782
|
+
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
39783
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39784
|
+
delete localVarUrlObj.search;
|
|
39785
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39786
|
+
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
39787
|
+
needsSerialization = typeof input !== 'string' ||
|
|
39788
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
39789
|
+
localVarRequestOptions.data = needsSerialization
|
|
39790
|
+
? JSON.stringify(input !== undefined ? input : {})
|
|
39791
|
+
: input || '';
|
|
39792
|
+
return [2 /*return*/, {
|
|
39793
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
39794
|
+
options: localVarRequestOptions,
|
|
39795
|
+
}];
|
|
39796
|
+
}
|
|
39797
|
+
});
|
|
39798
|
+
});
|
|
39799
|
+
},
|
|
39800
|
+
/**
|
|
39801
|
+
*
|
|
39802
|
+
* @summary Update the Contact\'s timezone details.
|
|
39803
|
+
* @param {string} contactId Link contact ID.
|
|
39804
|
+
* @param {string} etag Unique ID of the latest version of an existing resource.
|
|
39805
|
+
* @param {NEWUpdateOfTheTimezoneLink} input
|
|
39806
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
39807
|
+
* @param {*} [options] Override http request option.
|
|
39808
|
+
* @throws {RequiredError}
|
|
39809
|
+
*/
|
|
39810
|
+
updateTimezone: function (contactId, etag, input, fields, options) {
|
|
39811
|
+
if (options === void 0) { options = {}; }
|
|
39812
|
+
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
39813
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
|
|
39814
|
+
return tslib.__generator(this, function (_b) {
|
|
39815
|
+
switch (_b.label) {
|
|
39816
|
+
case 0:
|
|
39817
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
39818
|
+
if (contactId === null || contactId === undefined) {
|
|
39819
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling updateTimezone.');
|
|
39820
|
+
}
|
|
39821
|
+
// verify required parameter 'etag' is not null or undefined
|
|
39822
|
+
if (etag === null || etag === undefined) {
|
|
39823
|
+
throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling updateTimezone.');
|
|
39824
|
+
}
|
|
39825
|
+
// verify required parameter 'input' is not null or undefined
|
|
39826
|
+
if (input === null || input === undefined) {
|
|
39827
|
+
throw new RequiredError('input', 'Required parameter input was null or undefined when calling updateTimezone.');
|
|
39828
|
+
}
|
|
39829
|
+
localVarPath = "/contacts/{contact_id}/timezones/{etag}"
|
|
39830
|
+
.replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)))
|
|
39831
|
+
.replace("{" + 'etag' + "}", encodeURIComponent(String(etag)));
|
|
39832
|
+
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
39833
|
+
if (configuration) {
|
|
39834
|
+
baseOptions = configuration.baseOptions;
|
|
39835
|
+
}
|
|
39836
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PUT' }, baseOptions), options);
|
|
39837
|
+
localVarHeaderParameter = {};
|
|
39838
|
+
localVarQueryParameter = {};
|
|
39839
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
39840
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
39841
|
+
return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
|
|
39842
|
+
case 1:
|
|
39843
|
+
_a = _b.sent();
|
|
39844
|
+
return [3 /*break*/, 4];
|
|
39845
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
39846
|
+
case 3:
|
|
39847
|
+
_a = _b.sent();
|
|
39848
|
+
_b.label = 4;
|
|
39849
|
+
case 4:
|
|
39850
|
+
localVarApiKeyValue = _a;
|
|
39851
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39852
|
+
_b.label = 5;
|
|
39853
|
+
case 5:
|
|
39854
|
+
if (fields) {
|
|
39855
|
+
localVarQueryParameter['fields'] = fields;
|
|
39856
|
+
}
|
|
39857
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39858
|
+
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
39859
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39860
|
+
delete localVarUrlObj.search;
|
|
39861
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39862
|
+
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
39863
|
+
needsSerialization = typeof input !== 'string' ||
|
|
39864
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
39865
|
+
localVarRequestOptions.data = needsSerialization
|
|
39866
|
+
? JSON.stringify(input !== undefined ? input : {})
|
|
39867
|
+
: input || '';
|
|
39868
|
+
return [2 /*return*/, {
|
|
39869
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
39870
|
+
options: localVarRequestOptions,
|
|
39871
|
+
}];
|
|
39872
|
+
}
|
|
39873
|
+
});
|
|
39874
|
+
});
|
|
39875
|
+
},
|
|
39876
|
+
/**
|
|
39877
|
+
*
|
|
39878
|
+
* @summary Update the Contact\'s timezone details.
|
|
39879
|
+
* @param {string} contactId Link contact ID.
|
|
39880
|
+
* @param {string} etag Unique ID of the latest version of an existing resource.
|
|
39881
|
+
* @param {NEWUpdateOfTheTimezoneLink1} input
|
|
39882
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
39883
|
+
* @param {*} [options] Override http request option.
|
|
39884
|
+
* @throws {RequiredError}
|
|
39885
|
+
*/
|
|
39886
|
+
updateTimezone2: function (contactId, etag, input, fields, options) {
|
|
39887
|
+
if (options === void 0) { options = {}; }
|
|
39888
|
+
return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
39889
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, headersFromBaseOptions, needsSerialization;
|
|
39890
|
+
return tslib.__generator(this, function (_b) {
|
|
39891
|
+
switch (_b.label) {
|
|
39892
|
+
case 0:
|
|
39893
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
39894
|
+
if (contactId === null || contactId === undefined) {
|
|
39895
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling updateTimezone2.');
|
|
39896
|
+
}
|
|
39897
|
+
// verify required parameter 'etag' is not null or undefined
|
|
39898
|
+
if (etag === null || etag === undefined) {
|
|
39899
|
+
throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling updateTimezone2.');
|
|
39900
|
+
}
|
|
39901
|
+
// verify required parameter 'input' is not null or undefined
|
|
39902
|
+
if (input === null || input === undefined) {
|
|
39903
|
+
throw new RequiredError('input', 'Required parameter input was null or undefined when calling updateTimezone2.');
|
|
39904
|
+
}
|
|
39905
|
+
localVarPath = "/contacts/{contact_id}/timezones/{etag}"
|
|
39906
|
+
.replace("{" + 'contact_id' + "}", encodeURIComponent(String(contactId)))
|
|
39907
|
+
.replace("{" + 'etag' + "}", encodeURIComponent(String(etag)));
|
|
39908
|
+
localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
39909
|
+
if (configuration) {
|
|
39910
|
+
baseOptions = configuration.baseOptions;
|
|
39911
|
+
}
|
|
39912
|
+
localVarRequestOptions = tslib.__assign(tslib.__assign({ method: 'PATCH' }, baseOptions), options);
|
|
39913
|
+
localVarHeaderParameter = {};
|
|
39914
|
+
localVarQueryParameter = {};
|
|
39915
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
39916
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
39917
|
+
return [4 /*yield*/, configuration.apiKey('X-Webitel-Access')];
|
|
39918
|
+
case 1:
|
|
39919
|
+
_a = _b.sent();
|
|
39920
|
+
return [3 /*break*/, 4];
|
|
39921
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
39922
|
+
case 3:
|
|
39923
|
+
_a = _b.sent();
|
|
39924
|
+
_b.label = 4;
|
|
39925
|
+
case 4:
|
|
39926
|
+
localVarApiKeyValue = _a;
|
|
39927
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39928
|
+
_b.label = 5;
|
|
39929
|
+
case 5:
|
|
39930
|
+
if (fields) {
|
|
39931
|
+
localVarQueryParameter['fields'] = fields;
|
|
39932
|
+
}
|
|
39933
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39934
|
+
localVarUrlObj.query = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
39935
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39936
|
+
delete localVarUrlObj.search;
|
|
39937
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39938
|
+
localVarRequestOptions.headers = tslib.__assign(tslib.__assign(tslib.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
39939
|
+
needsSerialization = typeof input !== 'string' ||
|
|
39940
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
39941
|
+
localVarRequestOptions.data = needsSerialization
|
|
39942
|
+
? JSON.stringify(input !== undefined ? input : {})
|
|
39943
|
+
: input || '';
|
|
39944
|
+
return [2 /*return*/, {
|
|
39945
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
39946
|
+
options: localVarRequestOptions,
|
|
39947
|
+
}];
|
|
39948
|
+
}
|
|
39949
|
+
});
|
|
39950
|
+
});
|
|
39951
|
+
},
|
|
39952
|
+
};
|
|
39953
|
+
};
|
|
39954
|
+
/**
|
|
39955
|
+
* TimezonesApi - functional programming interface
|
|
39956
|
+
* @export
|
|
39957
|
+
*/
|
|
39958
|
+
var TimezonesApiFp = function (configuration) {
|
|
39959
|
+
return {
|
|
39960
|
+
/**
|
|
39961
|
+
*
|
|
39962
|
+
* @summary Remove the Contact\'s timezone association.
|
|
39963
|
+
* @param {string} contactId Contact ID associated with.
|
|
39964
|
+
* @param {string} etag Unique ID to remove.
|
|
39965
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
39966
|
+
* @param {*} [options] Override http request option.
|
|
39967
|
+
* @throws {RequiredError}
|
|
39968
|
+
*/
|
|
39969
|
+
deleteTimezone: function (contactId, etag, fields, options) {
|
|
39970
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
39971
|
+
var localVarAxiosArgs;
|
|
39972
|
+
return tslib.__generator(this, function (_a) {
|
|
39973
|
+
switch (_a.label) {
|
|
39974
|
+
case 0: return [4 /*yield*/, TimezonesApiAxiosParamCreator(configuration).deleteTimezone(contactId, etag, fields, options)];
|
|
39975
|
+
case 1:
|
|
39976
|
+
localVarAxiosArgs = _a.sent();
|
|
39977
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
39978
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
39979
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
39980
|
+
var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
39981
|
+
return axios.request(axiosRequestArgs);
|
|
39982
|
+
}];
|
|
39983
|
+
}
|
|
39984
|
+
});
|
|
39985
|
+
});
|
|
39986
|
+
},
|
|
39987
|
+
/**
|
|
39988
|
+
*
|
|
39989
|
+
* @summary Remove the Contact\'s timezone(s).
|
|
39990
|
+
* @param {string} contactId Contact ID associated with.
|
|
39991
|
+
* @param {Array<string>} etag Set of unique ID(s) to remove.
|
|
39992
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
39993
|
+
* @param {*} [options] Override http request option.
|
|
39994
|
+
* @throws {RequiredError}
|
|
39995
|
+
*/
|
|
39996
|
+
deleteTimezones: function (contactId, etag, fields, options) {
|
|
39997
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
39998
|
+
var localVarAxiosArgs;
|
|
39999
|
+
return tslib.__generator(this, function (_a) {
|
|
40000
|
+
switch (_a.label) {
|
|
40001
|
+
case 0: return [4 /*yield*/, TimezonesApiAxiosParamCreator(configuration).deleteTimezones(contactId, etag, fields, options)];
|
|
40002
|
+
case 1:
|
|
40003
|
+
localVarAxiosArgs = _a.sent();
|
|
40004
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
40005
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
40006
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
40007
|
+
var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
40008
|
+
return axios.request(axiosRequestArgs);
|
|
40009
|
+
}];
|
|
40010
|
+
}
|
|
40011
|
+
});
|
|
40012
|
+
});
|
|
40013
|
+
},
|
|
40014
|
+
/**
|
|
40015
|
+
*
|
|
40016
|
+
* @summary List of the Contact\'s timezone(s).
|
|
40017
|
+
* @param {string} contactId Contact ID associated with.
|
|
40018
|
+
* @param {number} [page] Page number of result dataset records. offset = (page*size)
|
|
40019
|
+
* @param {number} [size] Size count of records on result page. limit = (size++)
|
|
40020
|
+
* @param {string} [q] Search term: location name; `?` - matches any one character `*` - matches 0 or more characters
|
|
40021
|
+
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
40022
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
40023
|
+
* @param {Array<string>} [id] Record(s) with unique ID only.
|
|
40024
|
+
* @param {boolean} [primary] Primary timezone only.
|
|
40025
|
+
* @param {*} [options] Override http request option.
|
|
40026
|
+
* @throws {RequiredError}
|
|
40027
|
+
*/
|
|
40028
|
+
listTimezones: function (contactId, page, size, q, sort, fields, id, primary, options) {
|
|
40029
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
40030
|
+
var localVarAxiosArgs;
|
|
40031
|
+
return tslib.__generator(this, function (_a) {
|
|
40032
|
+
switch (_a.label) {
|
|
40033
|
+
case 0: return [4 /*yield*/, TimezonesApiAxiosParamCreator(configuration).listTimezones(contactId, page, size, q, sort, fields, id, primary, options)];
|
|
40034
|
+
case 1:
|
|
40035
|
+
localVarAxiosArgs = _a.sent();
|
|
40036
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
40037
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
40038
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
40039
|
+
var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
40040
|
+
return axios.request(axiosRequestArgs);
|
|
40041
|
+
}];
|
|
40042
|
+
}
|
|
40043
|
+
});
|
|
40044
|
+
});
|
|
40045
|
+
},
|
|
40046
|
+
/**
|
|
40047
|
+
*
|
|
40048
|
+
* @summary Locate the Contact\'s timezone association.
|
|
40049
|
+
* @param {string} contactId Contact source ID.
|
|
40050
|
+
* @param {string} etag Unique timezone link IDentifier. Accept: `etag` (obsolete+) or `id`.
|
|
40051
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
40052
|
+
* @param {*} [options] Override http request option.
|
|
40053
|
+
* @throws {RequiredError}
|
|
40054
|
+
*/
|
|
40055
|
+
locateTimezone: function (contactId, etag, fields, options) {
|
|
40056
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
40057
|
+
var localVarAxiosArgs;
|
|
40058
|
+
return tslib.__generator(this, function (_a) {
|
|
40059
|
+
switch (_a.label) {
|
|
40060
|
+
case 0: return [4 /*yield*/, TimezonesApiAxiosParamCreator(configuration).locateTimezone(contactId, etag, fields, options)];
|
|
40061
|
+
case 1:
|
|
40062
|
+
localVarAxiosArgs = _a.sent();
|
|
40063
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
40064
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
40065
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
40066
|
+
var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
40067
|
+
return axios.request(axiosRequestArgs);
|
|
40068
|
+
}];
|
|
40069
|
+
}
|
|
40070
|
+
});
|
|
40071
|
+
});
|
|
40072
|
+
},
|
|
40073
|
+
/**
|
|
40074
|
+
*
|
|
40075
|
+
* @summary Associate more timezone(s) with the Contact.
|
|
40076
|
+
* @param {string} contactId Link contact ID.
|
|
40077
|
+
* @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.
|
|
40078
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
40079
|
+
* @param {*} [options] Override http request option.
|
|
40080
|
+
* @throws {RequiredError}
|
|
40081
|
+
*/
|
|
40082
|
+
mergeTimezones: function (contactId, input, fields, options) {
|
|
40083
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
40084
|
+
var localVarAxiosArgs;
|
|
40085
|
+
return tslib.__generator(this, function (_a) {
|
|
40086
|
+
switch (_a.label) {
|
|
40087
|
+
case 0: return [4 /*yield*/, TimezonesApiAxiosParamCreator(configuration).mergeTimezones(contactId, input, fields, options)];
|
|
40088
|
+
case 1:
|
|
40089
|
+
localVarAxiosArgs = _a.sent();
|
|
40090
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
40091
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
40092
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
40093
|
+
var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
40094
|
+
return axios.request(axiosRequestArgs);
|
|
40095
|
+
}];
|
|
40096
|
+
}
|
|
40097
|
+
});
|
|
40098
|
+
});
|
|
40099
|
+
},
|
|
40100
|
+
/**
|
|
40101
|
+
*
|
|
40102
|
+
* @summary Resets all timezones of the contact according to the input dataset.
|
|
40103
|
+
* @param {string} contactId Link contact ID.
|
|
40104
|
+
* @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.
|
|
40105
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
40106
|
+
* @param {*} [options] Override http request option.
|
|
40107
|
+
* @throws {RequiredError}
|
|
40108
|
+
*/
|
|
40109
|
+
resetTimezones: function (contactId, input, fields, options) {
|
|
40110
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
40111
|
+
var localVarAxiosArgs;
|
|
40112
|
+
return tslib.__generator(this, function (_a) {
|
|
40113
|
+
switch (_a.label) {
|
|
40114
|
+
case 0: return [4 /*yield*/, TimezonesApiAxiosParamCreator(configuration).resetTimezones(contactId, input, fields, options)];
|
|
40115
|
+
case 1:
|
|
40116
|
+
localVarAxiosArgs = _a.sent();
|
|
40117
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
40118
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
40119
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
40120
|
+
var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
40121
|
+
return axios.request(axiosRequestArgs);
|
|
40122
|
+
}];
|
|
40123
|
+
}
|
|
40124
|
+
});
|
|
40125
|
+
});
|
|
40126
|
+
},
|
|
40127
|
+
/**
|
|
40128
|
+
*
|
|
40129
|
+
* @summary Update the Contact\'s timezone details.
|
|
40130
|
+
* @param {string} contactId Link contact ID.
|
|
40131
|
+
* @param {string} etag Unique ID of the latest version of an existing resource.
|
|
40132
|
+
* @param {NEWUpdateOfTheTimezoneLink} input
|
|
40133
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
40134
|
+
* @param {*} [options] Override http request option.
|
|
40135
|
+
* @throws {RequiredError}
|
|
40136
|
+
*/
|
|
40137
|
+
updateTimezone: function (contactId, etag, input, fields, options) {
|
|
40138
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
40139
|
+
var localVarAxiosArgs;
|
|
40140
|
+
return tslib.__generator(this, function (_a) {
|
|
40141
|
+
switch (_a.label) {
|
|
40142
|
+
case 0: return [4 /*yield*/, TimezonesApiAxiosParamCreator(configuration).updateTimezone(contactId, etag, input, fields, options)];
|
|
40143
|
+
case 1:
|
|
40144
|
+
localVarAxiosArgs = _a.sent();
|
|
40145
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
40146
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
40147
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
40148
|
+
var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
40149
|
+
return axios.request(axiosRequestArgs);
|
|
40150
|
+
}];
|
|
40151
|
+
}
|
|
40152
|
+
});
|
|
40153
|
+
});
|
|
40154
|
+
},
|
|
40155
|
+
/**
|
|
40156
|
+
*
|
|
40157
|
+
* @summary Update the Contact\'s timezone details.
|
|
40158
|
+
* @param {string} contactId Link contact ID.
|
|
40159
|
+
* @param {string} etag Unique ID of the latest version of an existing resource.
|
|
40160
|
+
* @param {NEWUpdateOfTheTimezoneLink1} input
|
|
40161
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
40162
|
+
* @param {*} [options] Override http request option.
|
|
40163
|
+
* @throws {RequiredError}
|
|
40164
|
+
*/
|
|
40165
|
+
updateTimezone2: function (contactId, etag, input, fields, options) {
|
|
40166
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
40167
|
+
var localVarAxiosArgs;
|
|
40168
|
+
return tslib.__generator(this, function (_a) {
|
|
40169
|
+
switch (_a.label) {
|
|
40170
|
+
case 0: return [4 /*yield*/, TimezonesApiAxiosParamCreator(configuration).updateTimezone2(contactId, etag, input, fields, options)];
|
|
40171
|
+
case 1:
|
|
40172
|
+
localVarAxiosArgs = _a.sent();
|
|
40173
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
40174
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
40175
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
40176
|
+
var axiosRequestArgs = tslib.__assign(tslib.__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
40177
|
+
return axios.request(axiosRequestArgs);
|
|
40178
|
+
}];
|
|
40179
|
+
}
|
|
40180
|
+
});
|
|
40181
|
+
});
|
|
40182
|
+
},
|
|
40183
|
+
};
|
|
40184
|
+
};
|
|
40185
|
+
/**
|
|
40186
|
+
* TimezonesApi - factory interface
|
|
40187
|
+
* @export
|
|
40188
|
+
*/
|
|
40189
|
+
var TimezonesApiFactory = function (configuration, basePath, axios) {
|
|
40190
|
+
return {
|
|
40191
|
+
/**
|
|
40192
|
+
*
|
|
40193
|
+
* @summary Remove the Contact\'s timezone association.
|
|
40194
|
+
* @param {string} contactId Contact ID associated with.
|
|
40195
|
+
* @param {string} etag Unique ID to remove.
|
|
40196
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
40197
|
+
* @param {*} [options] Override http request option.
|
|
40198
|
+
* @throws {RequiredError}
|
|
40199
|
+
*/
|
|
40200
|
+
deleteTimezone: function (contactId, etag, fields, options) {
|
|
40201
|
+
return TimezonesApiFp(configuration)
|
|
40202
|
+
.deleteTimezone(contactId, etag, fields, options)
|
|
40203
|
+
.then(function (request) { return request(axios, basePath); });
|
|
40204
|
+
},
|
|
40205
|
+
/**
|
|
40206
|
+
*
|
|
40207
|
+
* @summary Remove the Contact\'s timezone(s).
|
|
40208
|
+
* @param {string} contactId Contact ID associated with.
|
|
40209
|
+
* @param {Array<string>} etag Set of unique ID(s) to remove.
|
|
40210
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
40211
|
+
* @param {*} [options] Override http request option.
|
|
40212
|
+
* @throws {RequiredError}
|
|
40213
|
+
*/
|
|
40214
|
+
deleteTimezones: function (contactId, etag, fields, options) {
|
|
40215
|
+
return TimezonesApiFp(configuration)
|
|
40216
|
+
.deleteTimezones(contactId, etag, fields, options)
|
|
40217
|
+
.then(function (request) { return request(axios, basePath); });
|
|
40218
|
+
},
|
|
40219
|
+
/**
|
|
40220
|
+
*
|
|
40221
|
+
* @summary List of the Contact\'s timezone(s).
|
|
40222
|
+
* @param {string} contactId Contact ID associated with.
|
|
40223
|
+
* @param {number} [page] Page number of result dataset records. offset = (page*size)
|
|
40224
|
+
* @param {number} [size] Size count of records on result page. limit = (size++)
|
|
40225
|
+
* @param {string} [q] Search term: location name; `?` - matches any one character `*` - matches 0 or more characters
|
|
40226
|
+
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
40227
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
40228
|
+
* @param {Array<string>} [id] Record(s) with unique ID only.
|
|
40229
|
+
* @param {boolean} [primary] Primary timezone only.
|
|
40230
|
+
* @param {*} [options] Override http request option.
|
|
40231
|
+
* @throws {RequiredError}
|
|
40232
|
+
*/
|
|
40233
|
+
listTimezones: function (contactId, page, size, q, sort, fields, id, primary, options) {
|
|
40234
|
+
return TimezonesApiFp(configuration)
|
|
40235
|
+
.listTimezones(contactId, page, size, q, sort, fields, id, primary, options)
|
|
40236
|
+
.then(function (request) { return request(axios, basePath); });
|
|
40237
|
+
},
|
|
40238
|
+
/**
|
|
40239
|
+
*
|
|
40240
|
+
* @summary Locate the Contact\'s timezone association.
|
|
40241
|
+
* @param {string} contactId Contact source ID.
|
|
40242
|
+
* @param {string} etag Unique timezone link IDentifier. Accept: `etag` (obsolete+) or `id`.
|
|
40243
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
40244
|
+
* @param {*} [options] Override http request option.
|
|
40245
|
+
* @throws {RequiredError}
|
|
40246
|
+
*/
|
|
40247
|
+
locateTimezone: function (contactId, etag, fields, options) {
|
|
40248
|
+
return TimezonesApiFp(configuration)
|
|
40249
|
+
.locateTimezone(contactId, etag, fields, options)
|
|
40250
|
+
.then(function (request) { return request(axios, basePath); });
|
|
40251
|
+
},
|
|
40252
|
+
/**
|
|
40253
|
+
*
|
|
40254
|
+
* @summary Associate more timezone(s) with the Contact.
|
|
40255
|
+
* @param {string} contactId Link contact ID.
|
|
40256
|
+
* @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.
|
|
40257
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
40258
|
+
* @param {*} [options] Override http request option.
|
|
40259
|
+
* @throws {RequiredError}
|
|
40260
|
+
*/
|
|
40261
|
+
mergeTimezones: function (contactId, input, fields, options) {
|
|
40262
|
+
return TimezonesApiFp(configuration)
|
|
40263
|
+
.mergeTimezones(contactId, input, fields, options)
|
|
40264
|
+
.then(function (request) { return request(axios, basePath); });
|
|
40265
|
+
},
|
|
40266
|
+
/**
|
|
40267
|
+
*
|
|
40268
|
+
* @summary Resets all timezones of the contact according to the input dataset.
|
|
40269
|
+
* @param {string} contactId Link contact ID.
|
|
40270
|
+
* @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.
|
|
40271
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
40272
|
+
* @param {*} [options] Override http request option.
|
|
40273
|
+
* @throws {RequiredError}
|
|
40274
|
+
*/
|
|
40275
|
+
resetTimezones: function (contactId, input, fields, options) {
|
|
40276
|
+
return TimezonesApiFp(configuration)
|
|
40277
|
+
.resetTimezones(contactId, input, fields, options)
|
|
40278
|
+
.then(function (request) { return request(axios, basePath); });
|
|
40279
|
+
},
|
|
40280
|
+
/**
|
|
40281
|
+
*
|
|
40282
|
+
* @summary Update the Contact\'s timezone details.
|
|
40283
|
+
* @param {string} contactId Link contact ID.
|
|
40284
|
+
* @param {string} etag Unique ID of the latest version of an existing resource.
|
|
40285
|
+
* @param {NEWUpdateOfTheTimezoneLink} input
|
|
40286
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
40287
|
+
* @param {*} [options] Override http request option.
|
|
40288
|
+
* @throws {RequiredError}
|
|
40289
|
+
*/
|
|
40290
|
+
updateTimezone: function (contactId, etag, input, fields, options) {
|
|
40291
|
+
return TimezonesApiFp(configuration)
|
|
40292
|
+
.updateTimezone(contactId, etag, input, fields, options)
|
|
40293
|
+
.then(function (request) { return request(axios, basePath); });
|
|
40294
|
+
},
|
|
40295
|
+
/**
|
|
40296
|
+
*
|
|
40297
|
+
* @summary Update the Contact\'s timezone details.
|
|
40298
|
+
* @param {string} contactId Link contact ID.
|
|
40299
|
+
* @param {string} etag Unique ID of the latest version of an existing resource.
|
|
40300
|
+
* @param {NEWUpdateOfTheTimezoneLink1} input
|
|
40301
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
40302
|
+
* @param {*} [options] Override http request option.
|
|
40303
|
+
* @throws {RequiredError}
|
|
40304
|
+
*/
|
|
40305
|
+
updateTimezone2: function (contactId, etag, input, fields, options) {
|
|
40306
|
+
return TimezonesApiFp(configuration)
|
|
40307
|
+
.updateTimezone2(contactId, etag, input, fields, options)
|
|
40308
|
+
.then(function (request) { return request(axios, basePath); });
|
|
40309
|
+
},
|
|
40310
|
+
};
|
|
40311
|
+
};
|
|
40312
|
+
/**
|
|
40313
|
+
* TimezonesApi - object-oriented interface
|
|
40314
|
+
* @export
|
|
40315
|
+
* @class TimezonesApi
|
|
40316
|
+
* @extends {BaseAPI}
|
|
40317
|
+
*/
|
|
40318
|
+
var TimezonesApi = /** @class */ (function (_super) {
|
|
40319
|
+
tslib.__extends(TimezonesApi, _super);
|
|
40320
|
+
function TimezonesApi() {
|
|
40321
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
40322
|
+
}
|
|
40323
|
+
/**
|
|
40324
|
+
*
|
|
40325
|
+
* @summary Remove the Contact\'s timezone association.
|
|
40326
|
+
* @param {string} contactId Contact ID associated with.
|
|
40327
|
+
* @param {string} etag Unique ID to remove.
|
|
40328
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
40329
|
+
* @param {*} [options] Override http request option.
|
|
40330
|
+
* @throws {RequiredError}
|
|
40331
|
+
* @memberof TimezonesApi
|
|
40332
|
+
*/
|
|
40333
|
+
TimezonesApi.prototype.deleteTimezone = function (contactId, etag, fields, options) {
|
|
40334
|
+
var _this = this;
|
|
40335
|
+
return TimezonesApiFp(this.configuration)
|
|
40336
|
+
.deleteTimezone(contactId, etag, fields, options)
|
|
40337
|
+
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
40338
|
+
};
|
|
40339
|
+
/**
|
|
40340
|
+
*
|
|
40341
|
+
* @summary Remove the Contact\'s timezone(s).
|
|
40342
|
+
* @param {string} contactId Contact ID associated with.
|
|
40343
|
+
* @param {Array<string>} etag Set of unique ID(s) to remove.
|
|
40344
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
40345
|
+
* @param {*} [options] Override http request option.
|
|
40346
|
+
* @throws {RequiredError}
|
|
40347
|
+
* @memberof TimezonesApi
|
|
40348
|
+
*/
|
|
40349
|
+
TimezonesApi.prototype.deleteTimezones = function (contactId, etag, fields, options) {
|
|
40350
|
+
var _this = this;
|
|
40351
|
+
return TimezonesApiFp(this.configuration)
|
|
40352
|
+
.deleteTimezones(contactId, etag, fields, options)
|
|
40353
|
+
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
40354
|
+
};
|
|
40355
|
+
/**
|
|
40356
|
+
*
|
|
40357
|
+
* @summary List of the Contact\'s timezone(s).
|
|
40358
|
+
* @param {string} contactId Contact ID associated with.
|
|
40359
|
+
* @param {number} [page] Page number of result dataset records. offset = (page*size)
|
|
40360
|
+
* @param {number} [size] Size count of records on result page. limit = (size++)
|
|
40361
|
+
* @param {string} [q] Search term: location name; `?` - matches any one character `*` - matches 0 or more characters
|
|
40362
|
+
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
40363
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
40364
|
+
* @param {Array<string>} [id] Record(s) with unique ID only.
|
|
40365
|
+
* @param {boolean} [primary] Primary timezone only.
|
|
40366
|
+
* @param {*} [options] Override http request option.
|
|
40367
|
+
* @throws {RequiredError}
|
|
40368
|
+
* @memberof TimezonesApi
|
|
40369
|
+
*/
|
|
40370
|
+
TimezonesApi.prototype.listTimezones = function (contactId, page, size, q, sort, fields, id, primary, options) {
|
|
40371
|
+
var _this = this;
|
|
40372
|
+
return TimezonesApiFp(this.configuration)
|
|
40373
|
+
.listTimezones(contactId, page, size, q, sort, fields, id, primary, options)
|
|
40374
|
+
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
40375
|
+
};
|
|
40376
|
+
/**
|
|
40377
|
+
*
|
|
40378
|
+
* @summary Locate the Contact\'s timezone association.
|
|
40379
|
+
* @param {string} contactId Contact source ID.
|
|
40380
|
+
* @param {string} etag Unique timezone link IDentifier. Accept: `etag` (obsolete+) or `id`.
|
|
40381
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
40382
|
+
* @param {*} [options] Override http request option.
|
|
40383
|
+
* @throws {RequiredError}
|
|
40384
|
+
* @memberof TimezonesApi
|
|
40385
|
+
*/
|
|
40386
|
+
TimezonesApi.prototype.locateTimezone = function (contactId, etag, fields, options) {
|
|
40387
|
+
var _this = this;
|
|
40388
|
+
return TimezonesApiFp(this.configuration)
|
|
40389
|
+
.locateTimezone(contactId, etag, fields, options)
|
|
40390
|
+
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
40391
|
+
};
|
|
40392
|
+
/**
|
|
40393
|
+
*
|
|
40394
|
+
* @summary Associate more timezone(s) with the Contact.
|
|
40395
|
+
* @param {string} contactId Link contact ID.
|
|
40396
|
+
* @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.
|
|
40397
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
40398
|
+
* @param {*} [options] Override http request option.
|
|
40399
|
+
* @throws {RequiredError}
|
|
40400
|
+
* @memberof TimezonesApi
|
|
40401
|
+
*/
|
|
40402
|
+
TimezonesApi.prototype.mergeTimezones = function (contactId, input, fields, options) {
|
|
40403
|
+
var _this = this;
|
|
40404
|
+
return TimezonesApiFp(this.configuration)
|
|
40405
|
+
.mergeTimezones(contactId, input, fields, options)
|
|
40406
|
+
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
40407
|
+
};
|
|
40408
|
+
/**
|
|
40409
|
+
*
|
|
40410
|
+
* @summary Resets all timezones of the contact according to the input dataset.
|
|
40411
|
+
* @param {string} contactId Link contact ID.
|
|
40412
|
+
* @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.
|
|
40413
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
40414
|
+
* @param {*} [options] Override http request option.
|
|
40415
|
+
* @throws {RequiredError}
|
|
40416
|
+
* @memberof TimezonesApi
|
|
40417
|
+
*/
|
|
40418
|
+
TimezonesApi.prototype.resetTimezones = function (contactId, input, fields, options) {
|
|
40419
|
+
var _this = this;
|
|
40420
|
+
return TimezonesApiFp(this.configuration)
|
|
40421
|
+
.resetTimezones(contactId, input, fields, options)
|
|
40422
|
+
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
40423
|
+
};
|
|
40424
|
+
/**
|
|
40425
|
+
*
|
|
40426
|
+
* @summary Update the Contact\'s timezone details.
|
|
40427
|
+
* @param {string} contactId Link contact ID.
|
|
40428
|
+
* @param {string} etag Unique ID of the latest version of an existing resource.
|
|
40429
|
+
* @param {NEWUpdateOfTheTimezoneLink} input
|
|
40430
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
40431
|
+
* @param {*} [options] Override http request option.
|
|
40432
|
+
* @throws {RequiredError}
|
|
40433
|
+
* @memberof TimezonesApi
|
|
40434
|
+
*/
|
|
40435
|
+
TimezonesApi.prototype.updateTimezone = function (contactId, etag, input, fields, options) {
|
|
40436
|
+
var _this = this;
|
|
40437
|
+
return TimezonesApiFp(this.configuration)
|
|
40438
|
+
.updateTimezone(contactId, etag, input, fields, options)
|
|
40439
|
+
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
40440
|
+
};
|
|
40441
|
+
/**
|
|
40442
|
+
*
|
|
40443
|
+
* @summary Update the Contact\'s timezone details.
|
|
40444
|
+
* @param {string} contactId Link contact ID.
|
|
40445
|
+
* @param {string} etag Unique ID of the latest version of an existing resource.
|
|
40446
|
+
* @param {NEWUpdateOfTheTimezoneLink1} input
|
|
40447
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
40448
|
+
* @param {*} [options] Override http request option.
|
|
40449
|
+
* @throws {RequiredError}
|
|
40450
|
+
* @memberof TimezonesApi
|
|
40451
|
+
*/
|
|
40452
|
+
TimezonesApi.prototype.updateTimezone2 = function (contactId, etag, input, fields, options) {
|
|
40453
|
+
var _this = this;
|
|
40454
|
+
return TimezonesApiFp(this.configuration)
|
|
40455
|
+
.updateTimezone2(contactId, etag, input, fields, options)
|
|
40456
|
+
.then(function (request) { return request(_this.axios, _this.basePath); });
|
|
40457
|
+
};
|
|
40458
|
+
return TimezonesApi;
|
|
40459
|
+
}(BaseAPI));
|
|
40460
|
+
|
|
39376
40461
|
// tslint:disable
|
|
39377
40462
|
/**
|
|
39378
40463
|
* TriggerServiceApi - axios parameter creator
|
|
@@ -45303,6 +46388,32 @@
|
|
|
45303
46388
|
* Do not edit the class manually.
|
|
45304
46389
|
*/
|
|
45305
46390
|
|
|
46391
|
+
// tslint:disable
|
|
46392
|
+
/**
|
|
46393
|
+
* Webitel API
|
|
46394
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
46395
|
+
*
|
|
46396
|
+
* The version of the OpenAPI document: 23.07.0
|
|
46397
|
+
* Contact: support@webitel.com
|
|
46398
|
+
*
|
|
46399
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
46400
|
+
* https://openapi-generator.tech
|
|
46401
|
+
* Do not edit the class manually.
|
|
46402
|
+
*/
|
|
46403
|
+
|
|
46404
|
+
// tslint:disable
|
|
46405
|
+
/**
|
|
46406
|
+
* Webitel API
|
|
46407
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
46408
|
+
*
|
|
46409
|
+
* The version of the OpenAPI document: 23.07.0
|
|
46410
|
+
* Contact: support@webitel.com
|
|
46411
|
+
*
|
|
46412
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
46413
|
+
* https://openapi-generator.tech
|
|
46414
|
+
* Do not edit the class manually.
|
|
46415
|
+
*/
|
|
46416
|
+
|
|
45306
46417
|
// tslint:disable
|
|
45307
46418
|
(function (ProtobufNullValue) {
|
|
45308
46419
|
ProtobufNullValue["NULLVALUE"] = "NULL_VALUE";
|
|
@@ -48348,19 +49459,20 @@
|
|
|
48348
49459
|
if (this.autoAnswered) {
|
|
48349
49460
|
return;
|
|
48350
49461
|
}
|
|
48351
|
-
this.
|
|
49462
|
+
if (this._autoAnswerTimerId) {
|
|
49463
|
+
clearTimeout(this._autoAnswerTimerId);
|
|
49464
|
+
}
|
|
48352
49465
|
this._autoAnswerTimerId = setTimeout(function () { return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
48353
|
-
|
|
48354
|
-
|
|
48355
|
-
switch (_b.label) {
|
|
49466
|
+
return tslib.__generator(this, function (_a) {
|
|
49467
|
+
switch (_a.label) {
|
|
48356
49468
|
case 0:
|
|
48357
49469
|
if (this.autoAnswered) {
|
|
48358
49470
|
return [2 /*return*/];
|
|
48359
49471
|
}
|
|
48360
|
-
|
|
49472
|
+
this.autoAnswered = true;
|
|
48361
49473
|
return [4 /*yield*/, this.answer(req)];
|
|
48362
49474
|
case 1:
|
|
48363
|
-
_a.
|
|
49475
|
+
_a.sent();
|
|
48364
49476
|
return [2 /*return*/];
|
|
48365
49477
|
}
|
|
48366
49478
|
});
|
|
@@ -50863,6 +51975,10 @@
|
|
|
50863
51975
|
exports.SystemSettingServiceApiFp = SystemSettingServiceApiFp;
|
|
50864
51976
|
exports.SystemSettingServiceApiFactory = SystemSettingServiceApiFactory;
|
|
50865
51977
|
exports.SystemSettingServiceApi = SystemSettingServiceApi;
|
|
51978
|
+
exports.TimezonesApiAxiosParamCreator = TimezonesApiAxiosParamCreator;
|
|
51979
|
+
exports.TimezonesApiFp = TimezonesApiFp;
|
|
51980
|
+
exports.TimezonesApiFactory = TimezonesApiFactory;
|
|
51981
|
+
exports.TimezonesApi = TimezonesApi;
|
|
50866
51982
|
exports.TriggerServiceApiAxiosParamCreator = TriggerServiceApiAxiosParamCreator;
|
|
50867
51983
|
exports.TriggerServiceApiFp = TriggerServiceApiFp;
|
|
50868
51984
|
exports.TriggerServiceApiFactory = TriggerServiceApiFactory;
|