yellowgrid-api-ts 3.2.115-dev.0 → 3.2.116-dev.0
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/.openapi-generator/FILES +6 -1
- package/README.md +15 -1
- package/api.ts +770 -71
- package/dist/api.d.ts +427 -66
- package/dist/api.js +790 -25
- package/docs/AccountPageDetailsDTO.md +6 -0
- package/docs/AccountsApi.md +178 -1
- package/docs/Class3CXInstallationsApi.md +288 -4
- package/docs/InstallationDetailsDTO.md +39 -0
- package/docs/OrdersApi.md +58 -0
- package/docs/PatchUpdateAccountCompanyNumberRequest.md +20 -0
- package/docs/PatchUpdateAccountPhoneRequest.md +20 -0
- package/docs/PatchUpdateAccountVatNumberRequest.md +20 -0
- package/docs/ProductSummaryDTO.md +2 -0
- package/docs/RemoteStorageDTO.md +27 -0
- package/docs/TcxSbcDTO.md +2 -0
- package/docs/TcxSbcResponseDTO.md +23 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -913,7 +913,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
913
913
|
});
|
|
914
914
|
},
|
|
915
915
|
/**
|
|
916
|
-
* Set Account
|
|
916
|
+
* Set Account CNAME
|
|
917
917
|
* @param {string} id Xero ID
|
|
918
918
|
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
919
919
|
* @param {*} [options] Override http request option.
|
|
@@ -951,6 +951,45 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
951
951
|
});
|
|
952
952
|
});
|
|
953
953
|
},
|
|
954
|
+
/**
|
|
955
|
+
* Set Account Company Number
|
|
956
|
+
* @param {string} id Xero ID
|
|
957
|
+
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
958
|
+
* @param {*} [options] Override http request option.
|
|
959
|
+
* @throws {RequiredError}
|
|
960
|
+
*/
|
|
961
|
+
patchUpdateAccountCompanyNumber: function (id_1, patchUpdateAccountCompanyNumberRequest_1) {
|
|
962
|
+
var args_1 = [];
|
|
963
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
964
|
+
args_1[_i - 2] = arguments[_i];
|
|
965
|
+
}
|
|
966
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountCompanyNumberRequest_1], args_1, true), void 0, function (id, patchUpdateAccountCompanyNumberRequest, options) {
|
|
967
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
968
|
+
if (options === void 0) { options = {}; }
|
|
969
|
+
return __generator(this, function (_a) {
|
|
970
|
+
// verify required parameter 'id' is not null or undefined
|
|
971
|
+
(0, common_1.assertParamExists)('patchUpdateAccountCompanyNumber', 'id', id);
|
|
972
|
+
localVarPath = "/admin/accounts/{id}/companyNumber"
|
|
973
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
974
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
975
|
+
if (configuration) {
|
|
976
|
+
baseOptions = configuration.baseOptions;
|
|
977
|
+
}
|
|
978
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
979
|
+
localVarHeaderParameter = {};
|
|
980
|
+
localVarQueryParameter = {};
|
|
981
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
982
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
983
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
984
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
985
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountCompanyNumberRequest, localVarRequestOptions, configuration);
|
|
986
|
+
return [2 /*return*/, {
|
|
987
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
988
|
+
options: localVarRequestOptions,
|
|
989
|
+
}];
|
|
990
|
+
});
|
|
991
|
+
});
|
|
992
|
+
},
|
|
954
993
|
/**
|
|
955
994
|
* Update Account Password
|
|
956
995
|
* @summary Update Account Password
|
|
@@ -993,6 +1032,84 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
993
1032
|
});
|
|
994
1033
|
});
|
|
995
1034
|
},
|
|
1035
|
+
/**
|
|
1036
|
+
* Set Account Phone
|
|
1037
|
+
* @param {string} id Xero ID
|
|
1038
|
+
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
1039
|
+
* @param {*} [options] Override http request option.
|
|
1040
|
+
* @throws {RequiredError}
|
|
1041
|
+
*/
|
|
1042
|
+
patchUpdateAccountPhone: function (id_1, patchUpdateAccountPhoneRequest_1) {
|
|
1043
|
+
var args_1 = [];
|
|
1044
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1045
|
+
args_1[_i - 2] = arguments[_i];
|
|
1046
|
+
}
|
|
1047
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountPhoneRequest_1], args_1, true), void 0, function (id, patchUpdateAccountPhoneRequest, options) {
|
|
1048
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1049
|
+
if (options === void 0) { options = {}; }
|
|
1050
|
+
return __generator(this, function (_a) {
|
|
1051
|
+
// verify required parameter 'id' is not null or undefined
|
|
1052
|
+
(0, common_1.assertParamExists)('patchUpdateAccountPhone', 'id', id);
|
|
1053
|
+
localVarPath = "/admin/accounts/{id}/phone"
|
|
1054
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1055
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1056
|
+
if (configuration) {
|
|
1057
|
+
baseOptions = configuration.baseOptions;
|
|
1058
|
+
}
|
|
1059
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1060
|
+
localVarHeaderParameter = {};
|
|
1061
|
+
localVarQueryParameter = {};
|
|
1062
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1063
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1064
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1065
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1066
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountPhoneRequest, localVarRequestOptions, configuration);
|
|
1067
|
+
return [2 /*return*/, {
|
|
1068
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1069
|
+
options: localVarRequestOptions,
|
|
1070
|
+
}];
|
|
1071
|
+
});
|
|
1072
|
+
});
|
|
1073
|
+
},
|
|
1074
|
+
/**
|
|
1075
|
+
* Set Account VAT Number
|
|
1076
|
+
* @param {string} id Xero ID
|
|
1077
|
+
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
1078
|
+
* @param {*} [options] Override http request option.
|
|
1079
|
+
* @throws {RequiredError}
|
|
1080
|
+
*/
|
|
1081
|
+
patchUpdateAccountVatNumber: function (id_1, patchUpdateAccountVatNumberRequest_1) {
|
|
1082
|
+
var args_1 = [];
|
|
1083
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1084
|
+
args_1[_i - 2] = arguments[_i];
|
|
1085
|
+
}
|
|
1086
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountVatNumberRequest_1], args_1, true), void 0, function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
1087
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1088
|
+
if (options === void 0) { options = {}; }
|
|
1089
|
+
return __generator(this, function (_a) {
|
|
1090
|
+
// verify required parameter 'id' is not null or undefined
|
|
1091
|
+
(0, common_1.assertParamExists)('patchUpdateAccountVatNumber', 'id', id);
|
|
1092
|
+
localVarPath = "/admin/accounts/{id}/vat"
|
|
1093
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1094
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1095
|
+
if (configuration) {
|
|
1096
|
+
baseOptions = configuration.baseOptions;
|
|
1097
|
+
}
|
|
1098
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1099
|
+
localVarHeaderParameter = {};
|
|
1100
|
+
localVarQueryParameter = {};
|
|
1101
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1102
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1103
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1104
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1105
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountVatNumberRequest, localVarRequestOptions, configuration);
|
|
1106
|
+
return [2 /*return*/, {
|
|
1107
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1108
|
+
options: localVarRequestOptions,
|
|
1109
|
+
}];
|
|
1110
|
+
});
|
|
1111
|
+
});
|
|
1112
|
+
},
|
|
996
1113
|
/**
|
|
997
1114
|
* Add Account Contacts
|
|
998
1115
|
* @summary Add Account Contact
|
|
@@ -1722,7 +1839,7 @@ var AccountsApiFp = function (configuration) {
|
|
|
1722
1839
|
});
|
|
1723
1840
|
},
|
|
1724
1841
|
/**
|
|
1725
|
-
* Set Account
|
|
1842
|
+
* Set Account CNAME
|
|
1726
1843
|
* @param {string} id Xero ID
|
|
1727
1844
|
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
1728
1845
|
* @param {*} [options] Override http request option.
|
|
@@ -1744,6 +1861,29 @@ var AccountsApiFp = function (configuration) {
|
|
|
1744
1861
|
});
|
|
1745
1862
|
});
|
|
1746
1863
|
},
|
|
1864
|
+
/**
|
|
1865
|
+
* Set Account Company Number
|
|
1866
|
+
* @param {string} id Xero ID
|
|
1867
|
+
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
1868
|
+
* @param {*} [options] Override http request option.
|
|
1869
|
+
* @throws {RequiredError}
|
|
1870
|
+
*/
|
|
1871
|
+
patchUpdateAccountCompanyNumber: function (id, patchUpdateAccountCompanyNumberRequest, options) {
|
|
1872
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1873
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1874
|
+
var _a, _b, _c;
|
|
1875
|
+
return __generator(this, function (_d) {
|
|
1876
|
+
switch (_d.label) {
|
|
1877
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options)];
|
|
1878
|
+
case 1:
|
|
1879
|
+
localVarAxiosArgs = _d.sent();
|
|
1880
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1881
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountCompanyNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1882
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1883
|
+
}
|
|
1884
|
+
});
|
|
1885
|
+
});
|
|
1886
|
+
},
|
|
1747
1887
|
/**
|
|
1748
1888
|
* Update Account Password
|
|
1749
1889
|
* @summary Update Account Password
|
|
@@ -1768,6 +1908,52 @@ var AccountsApiFp = function (configuration) {
|
|
|
1768
1908
|
});
|
|
1769
1909
|
});
|
|
1770
1910
|
},
|
|
1911
|
+
/**
|
|
1912
|
+
* Set Account Phone
|
|
1913
|
+
* @param {string} id Xero ID
|
|
1914
|
+
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
1915
|
+
* @param {*} [options] Override http request option.
|
|
1916
|
+
* @throws {RequiredError}
|
|
1917
|
+
*/
|
|
1918
|
+
patchUpdateAccountPhone: function (id, patchUpdateAccountPhoneRequest, options) {
|
|
1919
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1920
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1921
|
+
var _a, _b, _c;
|
|
1922
|
+
return __generator(this, function (_d) {
|
|
1923
|
+
switch (_d.label) {
|
|
1924
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options)];
|
|
1925
|
+
case 1:
|
|
1926
|
+
localVarAxiosArgs = _d.sent();
|
|
1927
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1928
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountPhone']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1929
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1930
|
+
}
|
|
1931
|
+
});
|
|
1932
|
+
});
|
|
1933
|
+
},
|
|
1934
|
+
/**
|
|
1935
|
+
* Set Account VAT Number
|
|
1936
|
+
* @param {string} id Xero ID
|
|
1937
|
+
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
1938
|
+
* @param {*} [options] Override http request option.
|
|
1939
|
+
* @throws {RequiredError}
|
|
1940
|
+
*/
|
|
1941
|
+
patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
1942
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1943
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1944
|
+
var _a, _b, _c;
|
|
1945
|
+
return __generator(this, function (_d) {
|
|
1946
|
+
switch (_d.label) {
|
|
1947
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options)];
|
|
1948
|
+
case 1:
|
|
1949
|
+
localVarAxiosArgs = _d.sent();
|
|
1950
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1951
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountVatNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1952
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1953
|
+
}
|
|
1954
|
+
});
|
|
1955
|
+
});
|
|
1956
|
+
},
|
|
1771
1957
|
/**
|
|
1772
1958
|
* Add Account Contacts
|
|
1773
1959
|
* @summary Add Account Contact
|
|
@@ -2161,7 +2347,7 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2161
2347
|
return localVarFp.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2162
2348
|
},
|
|
2163
2349
|
/**
|
|
2164
|
-
* Set Account
|
|
2350
|
+
* Set Account CNAME
|
|
2165
2351
|
* @param {string} id Xero ID
|
|
2166
2352
|
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
2167
2353
|
* @param {*} [options] Override http request option.
|
|
@@ -2170,6 +2356,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2170
2356
|
patchUpdateAccountCname: function (id, patchUpdateAccountCnameRequest, options) {
|
|
2171
2357
|
return localVarFp.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2172
2358
|
},
|
|
2359
|
+
/**
|
|
2360
|
+
* Set Account Company Number
|
|
2361
|
+
* @param {string} id Xero ID
|
|
2362
|
+
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
2363
|
+
* @param {*} [options] Override http request option.
|
|
2364
|
+
* @throws {RequiredError}
|
|
2365
|
+
*/
|
|
2366
|
+
patchUpdateAccountCompanyNumber: function (id, patchUpdateAccountCompanyNumberRequest, options) {
|
|
2367
|
+
return localVarFp.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2368
|
+
},
|
|
2173
2369
|
/**
|
|
2174
2370
|
* Update Account Password
|
|
2175
2371
|
* @summary Update Account Password
|
|
@@ -2181,6 +2377,26 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2181
2377
|
patchUpdateAccountContactPassword: function (token, patchUpdateAccountContactPasswordRequest, options) {
|
|
2182
2378
|
return localVarFp.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2183
2379
|
},
|
|
2380
|
+
/**
|
|
2381
|
+
* Set Account Phone
|
|
2382
|
+
* @param {string} id Xero ID
|
|
2383
|
+
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
2384
|
+
* @param {*} [options] Override http request option.
|
|
2385
|
+
* @throws {RequiredError}
|
|
2386
|
+
*/
|
|
2387
|
+
patchUpdateAccountPhone: function (id, patchUpdateAccountPhoneRequest, options) {
|
|
2388
|
+
return localVarFp.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2389
|
+
},
|
|
2390
|
+
/**
|
|
2391
|
+
* Set Account VAT Number
|
|
2392
|
+
* @param {string} id Xero ID
|
|
2393
|
+
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
2394
|
+
* @param {*} [options] Override http request option.
|
|
2395
|
+
* @throws {RequiredError}
|
|
2396
|
+
*/
|
|
2397
|
+
patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
2398
|
+
return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2399
|
+
},
|
|
2184
2400
|
/**
|
|
2185
2401
|
* Add Account Contacts
|
|
2186
2402
|
* @summary Add Account Contact
|
|
@@ -2446,7 +2662,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2446
2662
|
return (0, exports.AccountsApiFp)(this.configuration).patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2447
2663
|
};
|
|
2448
2664
|
/**
|
|
2449
|
-
* Set Account
|
|
2665
|
+
* Set Account CNAME
|
|
2450
2666
|
* @param {string} id Xero ID
|
|
2451
2667
|
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
2452
2668
|
* @param {*} [options] Override http request option.
|
|
@@ -2456,6 +2672,17 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2456
2672
|
var _this = this;
|
|
2457
2673
|
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2458
2674
|
};
|
|
2675
|
+
/**
|
|
2676
|
+
* Set Account Company Number
|
|
2677
|
+
* @param {string} id Xero ID
|
|
2678
|
+
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
2679
|
+
* @param {*} [options] Override http request option.
|
|
2680
|
+
* @throws {RequiredError}
|
|
2681
|
+
*/
|
|
2682
|
+
AccountsApi.prototype.patchUpdateAccountCompanyNumber = function (id, patchUpdateAccountCompanyNumberRequest, options) {
|
|
2683
|
+
var _this = this;
|
|
2684
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2685
|
+
};
|
|
2459
2686
|
/**
|
|
2460
2687
|
* Update Account Password
|
|
2461
2688
|
* @summary Update Account Password
|
|
@@ -2468,6 +2695,28 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2468
2695
|
var _this = this;
|
|
2469
2696
|
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2470
2697
|
};
|
|
2698
|
+
/**
|
|
2699
|
+
* Set Account Phone
|
|
2700
|
+
* @param {string} id Xero ID
|
|
2701
|
+
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
2702
|
+
* @param {*} [options] Override http request option.
|
|
2703
|
+
* @throws {RequiredError}
|
|
2704
|
+
*/
|
|
2705
|
+
AccountsApi.prototype.patchUpdateAccountPhone = function (id, patchUpdateAccountPhoneRequest, options) {
|
|
2706
|
+
var _this = this;
|
|
2707
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2708
|
+
};
|
|
2709
|
+
/**
|
|
2710
|
+
* Set Account VAT Number
|
|
2711
|
+
* @param {string} id Xero ID
|
|
2712
|
+
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
2713
|
+
* @param {*} [options] Override http request option.
|
|
2714
|
+
* @throws {RequiredError}
|
|
2715
|
+
*/
|
|
2716
|
+
AccountsApi.prototype.patchUpdateAccountVatNumber = function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
2717
|
+
var _this = this;
|
|
2718
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2719
|
+
};
|
|
2471
2720
|
/**
|
|
2472
2721
|
* Add Account Contacts
|
|
2473
2722
|
* @summary Add Account Contact
|
|
@@ -5871,6 +6120,49 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
5871
6120
|
});
|
|
5872
6121
|
});
|
|
5873
6122
|
},
|
|
6123
|
+
/**
|
|
6124
|
+
* Change instance owner
|
|
6125
|
+
* @summary Change instance owner
|
|
6126
|
+
* @param {string} instanceId Instance ID
|
|
6127
|
+
* @param {number} customerId Customer ID
|
|
6128
|
+
* @param {*} [options] Override http request option.
|
|
6129
|
+
* @throws {RequiredError}
|
|
6130
|
+
*/
|
|
6131
|
+
patchChangeInstanceOwner: function (instanceId_1, customerId_1) {
|
|
6132
|
+
var args_1 = [];
|
|
6133
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
6134
|
+
args_1[_i - 2] = arguments[_i];
|
|
6135
|
+
}
|
|
6136
|
+
return __awaiter(_this, __spreadArray([instanceId_1, customerId_1], args_1, true), void 0, function (instanceId, customerId, options) {
|
|
6137
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6138
|
+
if (options === void 0) { options = {}; }
|
|
6139
|
+
return __generator(this, function (_a) {
|
|
6140
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
6141
|
+
(0, common_1.assertParamExists)('patchChangeInstanceOwner', 'instanceId', instanceId);
|
|
6142
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
6143
|
+
(0, common_1.assertParamExists)('patchChangeInstanceOwner', 'customerId', customerId);
|
|
6144
|
+
localVarPath = "/tcx/installations/{instance_id}/owner"
|
|
6145
|
+
.replace("{".concat("instance_id", "}"), encodeURIComponent(String(instanceId)));
|
|
6146
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6147
|
+
if (configuration) {
|
|
6148
|
+
baseOptions = configuration.baseOptions;
|
|
6149
|
+
}
|
|
6150
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
6151
|
+
localVarHeaderParameter = {};
|
|
6152
|
+
localVarQueryParameter = {};
|
|
6153
|
+
if (customerId !== undefined) {
|
|
6154
|
+
localVarQueryParameter['customer_id'] = customerId;
|
|
6155
|
+
}
|
|
6156
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6157
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6158
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6159
|
+
return [2 /*return*/, {
|
|
6160
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6161
|
+
options: localVarRequestOptions,
|
|
6162
|
+
}];
|
|
6163
|
+
});
|
|
6164
|
+
});
|
|
6165
|
+
},
|
|
5874
6166
|
/**
|
|
5875
6167
|
* Update 3CX Instance Auto Failover
|
|
5876
6168
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -6049,7 +6341,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6049
6341
|
* @summary Extend additional disk on 3CX Instance
|
|
6050
6342
|
* @param {string} instanceId Instance ID
|
|
6051
6343
|
* @param {number} gigabytes Disk Space (GB)
|
|
6052
|
-
* @param {string} schedule Scheduled Task (Date & Time)
|
|
6344
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
6053
6345
|
* @param {*} [options] Override http request option.
|
|
6054
6346
|
* @throws {RequiredError}
|
|
6055
6347
|
*/
|
|
@@ -6066,8 +6358,6 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6066
6358
|
(0, common_1.assertParamExists)('postExtendDisk', 'instanceId', instanceId);
|
|
6067
6359
|
// verify required parameter 'gigabytes' is not null or undefined
|
|
6068
6360
|
(0, common_1.assertParamExists)('postExtendDisk', 'gigabytes', gigabytes);
|
|
6069
|
-
// verify required parameter 'schedule' is not null or undefined
|
|
6070
|
-
(0, common_1.assertParamExists)('postExtendDisk', 'schedule', schedule);
|
|
6071
6361
|
localVarPath = "/tcx/installations/{instance_id}/disk/extend"
|
|
6072
6362
|
.replace("{".concat("instance_id", "}"), encodeURIComponent(String(instanceId)));
|
|
6073
6363
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6136,6 +6426,44 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6136
6426
|
});
|
|
6137
6427
|
});
|
|
6138
6428
|
},
|
|
6429
|
+
/**
|
|
6430
|
+
* Install 3CX SBC
|
|
6431
|
+
* @summary Install 3CX SBC
|
|
6432
|
+
* @param {number} sbcId SBC ID
|
|
6433
|
+
* @param {*} [options] Override http request option.
|
|
6434
|
+
* @throws {RequiredError}
|
|
6435
|
+
*/
|
|
6436
|
+
postInstallTcxSbc: function (sbcId_1) {
|
|
6437
|
+
var args_1 = [];
|
|
6438
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
6439
|
+
args_1[_i - 1] = arguments[_i];
|
|
6440
|
+
}
|
|
6441
|
+
return __awaiter(_this, __spreadArray([sbcId_1], args_1, true), void 0, function (sbcId, options) {
|
|
6442
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6443
|
+
if (options === void 0) { options = {}; }
|
|
6444
|
+
return __generator(this, function (_a) {
|
|
6445
|
+
// verify required parameter 'sbcId' is not null or undefined
|
|
6446
|
+
(0, common_1.assertParamExists)('postInstallTcxSbc', 'sbcId', sbcId);
|
|
6447
|
+
localVarPath = "/tcx/installations/sbcs/{sbc_id}/install"
|
|
6448
|
+
.replace("{".concat("sbc_id", "}"), encodeURIComponent(String(sbcId)));
|
|
6449
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6450
|
+
if (configuration) {
|
|
6451
|
+
baseOptions = configuration.baseOptions;
|
|
6452
|
+
}
|
|
6453
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6454
|
+
localVarHeaderParameter = {};
|
|
6455
|
+
localVarQueryParameter = {};
|
|
6456
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
6457
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6458
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6459
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6460
|
+
return [2 /*return*/, {
|
|
6461
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6462
|
+
options: localVarRequestOptions,
|
|
6463
|
+
}];
|
|
6464
|
+
});
|
|
6465
|
+
});
|
|
6466
|
+
},
|
|
6139
6467
|
/**
|
|
6140
6468
|
* Reboot 3CX Instance
|
|
6141
6469
|
* @summary Reboot 3CX Instance
|
|
@@ -6204,9 +6532,132 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6204
6532
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6205
6533
|
localVarHeaderParameter = {};
|
|
6206
6534
|
localVarQueryParameter = {};
|
|
6207
|
-
if (size !== undefined) {
|
|
6208
|
-
localVarQueryParameter['size'] = size;
|
|
6209
|
-
}
|
|
6535
|
+
if (size !== undefined) {
|
|
6536
|
+
localVarQueryParameter['size'] = size;
|
|
6537
|
+
}
|
|
6538
|
+
if (schedule !== undefined) {
|
|
6539
|
+
localVarQueryParameter['schedule'] = schedule;
|
|
6540
|
+
}
|
|
6541
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6542
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6543
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6544
|
+
return [2 /*return*/, {
|
|
6545
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6546
|
+
options: localVarRequestOptions,
|
|
6547
|
+
}];
|
|
6548
|
+
});
|
|
6549
|
+
});
|
|
6550
|
+
},
|
|
6551
|
+
/**
|
|
6552
|
+
* Restart 3CX Services
|
|
6553
|
+
* @summary Restart 3CX Services
|
|
6554
|
+
* @param {string} instanceId Instance ID
|
|
6555
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
6556
|
+
* @param {*} [options] Override http request option.
|
|
6557
|
+
* @throws {RequiredError}
|
|
6558
|
+
*/
|
|
6559
|
+
postRestartServices: function (instanceId_1, schedule_1) {
|
|
6560
|
+
var args_1 = [];
|
|
6561
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
6562
|
+
args_1[_i - 2] = arguments[_i];
|
|
6563
|
+
}
|
|
6564
|
+
return __awaiter(_this, __spreadArray([instanceId_1, schedule_1], args_1, true), void 0, function (instanceId, schedule, options) {
|
|
6565
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6566
|
+
if (options === void 0) { options = {}; }
|
|
6567
|
+
return __generator(this, function (_a) {
|
|
6568
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
6569
|
+
(0, common_1.assertParamExists)('postRestartServices', 'instanceId', instanceId);
|
|
6570
|
+
localVarPath = "/tcx/installations/{instance_id}/services/restart"
|
|
6571
|
+
.replace("{".concat("instance_id", "}"), encodeURIComponent(String(instanceId)));
|
|
6572
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6573
|
+
if (configuration) {
|
|
6574
|
+
baseOptions = configuration.baseOptions;
|
|
6575
|
+
}
|
|
6576
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6577
|
+
localVarHeaderParameter = {};
|
|
6578
|
+
localVarQueryParameter = {};
|
|
6579
|
+
if (schedule !== undefined) {
|
|
6580
|
+
localVarQueryParameter['schedule'] = schedule;
|
|
6581
|
+
}
|
|
6582
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6583
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6584
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6585
|
+
return [2 /*return*/, {
|
|
6586
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6587
|
+
options: localVarRequestOptions,
|
|
6588
|
+
}];
|
|
6589
|
+
});
|
|
6590
|
+
});
|
|
6591
|
+
},
|
|
6592
|
+
/**
|
|
6593
|
+
* Reboot Instance
|
|
6594
|
+
* @summary Reboot Instance
|
|
6595
|
+
* @param {string} instanceId Instance ID
|
|
6596
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
6597
|
+
* @param {*} [options] Override http request option.
|
|
6598
|
+
* @throws {RequiredError}
|
|
6599
|
+
*/
|
|
6600
|
+
postScheduledReboot: function (instanceId_1, schedule_1) {
|
|
6601
|
+
var args_1 = [];
|
|
6602
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
6603
|
+
args_1[_i - 2] = arguments[_i];
|
|
6604
|
+
}
|
|
6605
|
+
return __awaiter(_this, __spreadArray([instanceId_1, schedule_1], args_1, true), void 0, function (instanceId, schedule, options) {
|
|
6606
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6607
|
+
if (options === void 0) { options = {}; }
|
|
6608
|
+
return __generator(this, function (_a) {
|
|
6609
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
6610
|
+
(0, common_1.assertParamExists)('postScheduledReboot', 'instanceId', instanceId);
|
|
6611
|
+
localVarPath = "/tcx/installations/{instance_id}/reboot/scheduled"
|
|
6612
|
+
.replace("{".concat("instance_id", "}"), encodeURIComponent(String(instanceId)));
|
|
6613
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6614
|
+
if (configuration) {
|
|
6615
|
+
baseOptions = configuration.baseOptions;
|
|
6616
|
+
}
|
|
6617
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6618
|
+
localVarHeaderParameter = {};
|
|
6619
|
+
localVarQueryParameter = {};
|
|
6620
|
+
if (schedule !== undefined) {
|
|
6621
|
+
localVarQueryParameter['schedule'] = schedule;
|
|
6622
|
+
}
|
|
6623
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6624
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6625
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6626
|
+
return [2 /*return*/, {
|
|
6627
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6628
|
+
options: localVarRequestOptions,
|
|
6629
|
+
}];
|
|
6630
|
+
});
|
|
6631
|
+
});
|
|
6632
|
+
},
|
|
6633
|
+
/**
|
|
6634
|
+
* Suspend 3CX Instance
|
|
6635
|
+
* @summary Suspend 3CX Instance
|
|
6636
|
+
* @param {string} instanceId Instance ID
|
|
6637
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
6638
|
+
* @param {*} [options] Override http request option.
|
|
6639
|
+
* @throws {RequiredError}
|
|
6640
|
+
*/
|
|
6641
|
+
postSuspendInstance: function (instanceId_1, schedule_1) {
|
|
6642
|
+
var args_1 = [];
|
|
6643
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
6644
|
+
args_1[_i - 2] = arguments[_i];
|
|
6645
|
+
}
|
|
6646
|
+
return __awaiter(_this, __spreadArray([instanceId_1, schedule_1], args_1, true), void 0, function (instanceId, schedule, options) {
|
|
6647
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6648
|
+
if (options === void 0) { options = {}; }
|
|
6649
|
+
return __generator(this, function (_a) {
|
|
6650
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
6651
|
+
(0, common_1.assertParamExists)('postSuspendInstance', 'instanceId', instanceId);
|
|
6652
|
+
localVarPath = "/tcx/installations/{instance_id}/suspend"
|
|
6653
|
+
.replace("{".concat("instance_id", "}"), encodeURIComponent(String(instanceId)));
|
|
6654
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6655
|
+
if (configuration) {
|
|
6656
|
+
baseOptions = configuration.baseOptions;
|
|
6657
|
+
}
|
|
6658
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6659
|
+
localVarHeaderParameter = {};
|
|
6660
|
+
localVarQueryParameter = {};
|
|
6210
6661
|
if (schedule !== undefined) {
|
|
6211
6662
|
localVarQueryParameter['schedule'] = schedule;
|
|
6212
6663
|
}
|
|
@@ -6221,25 +6672,24 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6221
6672
|
});
|
|
6222
6673
|
},
|
|
6223
6674
|
/**
|
|
6224
|
-
*
|
|
6225
|
-
* @summary
|
|
6675
|
+
* Test 3CX Login Credentials
|
|
6676
|
+
* @summary Test 3CX Login Credentials
|
|
6226
6677
|
* @param {string} instanceId Instance ID
|
|
6227
|
-
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
6228
6678
|
* @param {*} [options] Override http request option.
|
|
6229
6679
|
* @throws {RequiredError}
|
|
6230
6680
|
*/
|
|
6231
|
-
|
|
6681
|
+
postTestLoginCredentials: function (instanceId_1) {
|
|
6232
6682
|
var args_1 = [];
|
|
6233
|
-
for (var _i =
|
|
6234
|
-
args_1[_i -
|
|
6683
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
6684
|
+
args_1[_i - 1] = arguments[_i];
|
|
6235
6685
|
}
|
|
6236
|
-
return __awaiter(_this, __spreadArray([instanceId_1
|
|
6686
|
+
return __awaiter(_this, __spreadArray([instanceId_1], args_1, true), void 0, function (instanceId, options) {
|
|
6237
6687
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6238
6688
|
if (options === void 0) { options = {}; }
|
|
6239
6689
|
return __generator(this, function (_a) {
|
|
6240
6690
|
// verify required parameter 'instanceId' is not null or undefined
|
|
6241
|
-
(0, common_1.assertParamExists)('
|
|
6242
|
-
localVarPath = "/tcx/installations/{instance_id}/
|
|
6691
|
+
(0, common_1.assertParamExists)('postTestLoginCredentials', 'instanceId', instanceId);
|
|
6692
|
+
localVarPath = "/tcx/installations/{instance_id}/tests/login"
|
|
6243
6693
|
.replace("{".concat("instance_id", "}"), encodeURIComponent(String(instanceId)));
|
|
6244
6694
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6245
6695
|
if (configuration) {
|
|
@@ -6248,9 +6698,6 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6248
6698
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6249
6699
|
localVarHeaderParameter = {};
|
|
6250
6700
|
localVarQueryParameter = {};
|
|
6251
|
-
if (schedule !== undefined) {
|
|
6252
|
-
localVarQueryParameter['schedule'] = schedule;
|
|
6253
|
-
}
|
|
6254
6701
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6255
6702
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6256
6703
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6402,6 +6849,30 @@ var Class3CXInstallationsApiFp = function (configuration) {
|
|
|
6402
6849
|
});
|
|
6403
6850
|
});
|
|
6404
6851
|
},
|
|
6852
|
+
/**
|
|
6853
|
+
* Change instance owner
|
|
6854
|
+
* @summary Change instance owner
|
|
6855
|
+
* @param {string} instanceId Instance ID
|
|
6856
|
+
* @param {number} customerId Customer ID
|
|
6857
|
+
* @param {*} [options] Override http request option.
|
|
6858
|
+
* @throws {RequiredError}
|
|
6859
|
+
*/
|
|
6860
|
+
patchChangeInstanceOwner: function (instanceId, customerId, options) {
|
|
6861
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6862
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
6863
|
+
var _a, _b, _c;
|
|
6864
|
+
return __generator(this, function (_d) {
|
|
6865
|
+
switch (_d.label) {
|
|
6866
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchChangeInstanceOwner(instanceId, customerId, options)];
|
|
6867
|
+
case 1:
|
|
6868
|
+
localVarAxiosArgs = _d.sent();
|
|
6869
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6870
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationsApi.patchChangeInstanceOwner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6871
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
6872
|
+
}
|
|
6873
|
+
});
|
|
6874
|
+
});
|
|
6875
|
+
},
|
|
6405
6876
|
/**
|
|
6406
6877
|
* Update 3CX Instance Auto Failover
|
|
6407
6878
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -6503,7 +6974,7 @@ var Class3CXInstallationsApiFp = function (configuration) {
|
|
|
6503
6974
|
* @summary Extend additional disk on 3CX Instance
|
|
6504
6975
|
* @param {string} instanceId Instance ID
|
|
6505
6976
|
* @param {number} gigabytes Disk Space (GB)
|
|
6506
|
-
* @param {string} schedule Scheduled Task (Date & Time)
|
|
6977
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
6507
6978
|
* @param {*} [options] Override http request option.
|
|
6508
6979
|
* @throws {RequiredError}
|
|
6509
6980
|
*/
|
|
@@ -6547,6 +7018,29 @@ var Class3CXInstallationsApiFp = function (configuration) {
|
|
|
6547
7018
|
});
|
|
6548
7019
|
});
|
|
6549
7020
|
},
|
|
7021
|
+
/**
|
|
7022
|
+
* Install 3CX SBC
|
|
7023
|
+
* @summary Install 3CX SBC
|
|
7024
|
+
* @param {number} sbcId SBC ID
|
|
7025
|
+
* @param {*} [options] Override http request option.
|
|
7026
|
+
* @throws {RequiredError}
|
|
7027
|
+
*/
|
|
7028
|
+
postInstallTcxSbc: function (sbcId, options) {
|
|
7029
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7030
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7031
|
+
var _a, _b, _c;
|
|
7032
|
+
return __generator(this, function (_d) {
|
|
7033
|
+
switch (_d.label) {
|
|
7034
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postInstallTcxSbc(sbcId, options)];
|
|
7035
|
+
case 1:
|
|
7036
|
+
localVarAxiosArgs = _d.sent();
|
|
7037
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7038
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationsApi.postInstallTcxSbc']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7039
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7040
|
+
}
|
|
7041
|
+
});
|
|
7042
|
+
});
|
|
7043
|
+
},
|
|
6550
7044
|
/**
|
|
6551
7045
|
* Reboot 3CX Instance
|
|
6552
7046
|
* @summary Reboot 3CX Instance
|
|
@@ -6595,6 +7089,54 @@ var Class3CXInstallationsApiFp = function (configuration) {
|
|
|
6595
7089
|
});
|
|
6596
7090
|
});
|
|
6597
7091
|
},
|
|
7092
|
+
/**
|
|
7093
|
+
* Restart 3CX Services
|
|
7094
|
+
* @summary Restart 3CX Services
|
|
7095
|
+
* @param {string} instanceId Instance ID
|
|
7096
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
7097
|
+
* @param {*} [options] Override http request option.
|
|
7098
|
+
* @throws {RequiredError}
|
|
7099
|
+
*/
|
|
7100
|
+
postRestartServices: function (instanceId, schedule, options) {
|
|
7101
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7102
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7103
|
+
var _a, _b, _c;
|
|
7104
|
+
return __generator(this, function (_d) {
|
|
7105
|
+
switch (_d.label) {
|
|
7106
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postRestartServices(instanceId, schedule, options)];
|
|
7107
|
+
case 1:
|
|
7108
|
+
localVarAxiosArgs = _d.sent();
|
|
7109
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7110
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationsApi.postRestartServices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7111
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7112
|
+
}
|
|
7113
|
+
});
|
|
7114
|
+
});
|
|
7115
|
+
},
|
|
7116
|
+
/**
|
|
7117
|
+
* Reboot Instance
|
|
7118
|
+
* @summary Reboot Instance
|
|
7119
|
+
* @param {string} instanceId Instance ID
|
|
7120
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
7121
|
+
* @param {*} [options] Override http request option.
|
|
7122
|
+
* @throws {RequiredError}
|
|
7123
|
+
*/
|
|
7124
|
+
postScheduledReboot: function (instanceId, schedule, options) {
|
|
7125
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7126
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7127
|
+
var _a, _b, _c;
|
|
7128
|
+
return __generator(this, function (_d) {
|
|
7129
|
+
switch (_d.label) {
|
|
7130
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postScheduledReboot(instanceId, schedule, options)];
|
|
7131
|
+
case 1:
|
|
7132
|
+
localVarAxiosArgs = _d.sent();
|
|
7133
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7134
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationsApi.postScheduledReboot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7135
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7136
|
+
}
|
|
7137
|
+
});
|
|
7138
|
+
});
|
|
7139
|
+
},
|
|
6598
7140
|
/**
|
|
6599
7141
|
* Suspend 3CX Instance
|
|
6600
7142
|
* @summary Suspend 3CX Instance
|
|
@@ -6619,6 +7161,29 @@ var Class3CXInstallationsApiFp = function (configuration) {
|
|
|
6619
7161
|
});
|
|
6620
7162
|
});
|
|
6621
7163
|
},
|
|
7164
|
+
/**
|
|
7165
|
+
* Test 3CX Login Credentials
|
|
7166
|
+
* @summary Test 3CX Login Credentials
|
|
7167
|
+
* @param {string} instanceId Instance ID
|
|
7168
|
+
* @param {*} [options] Override http request option.
|
|
7169
|
+
* @throws {RequiredError}
|
|
7170
|
+
*/
|
|
7171
|
+
postTestLoginCredentials: function (instanceId, options) {
|
|
7172
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7173
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7174
|
+
var _a, _b, _c;
|
|
7175
|
+
return __generator(this, function (_d) {
|
|
7176
|
+
switch (_d.label) {
|
|
7177
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postTestLoginCredentials(instanceId, options)];
|
|
7178
|
+
case 1:
|
|
7179
|
+
localVarAxiosArgs = _d.sent();
|
|
7180
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7181
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationsApi.postTestLoginCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7182
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7183
|
+
}
|
|
7184
|
+
});
|
|
7185
|
+
});
|
|
7186
|
+
},
|
|
6622
7187
|
/**
|
|
6623
7188
|
* Unsuspend 3CX Instance
|
|
6624
7189
|
* @summary Unsuspend 3CX Instance
|
|
@@ -6701,6 +7266,17 @@ var Class3CXInstallationsApiFactory = function (configuration, basePath, axios)
|
|
|
6701
7266
|
getGetInstallations: function (pageSize, page, customerId, search, status, hosting, installType, options) {
|
|
6702
7267
|
return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then(function (request) { return request(axios, basePath); });
|
|
6703
7268
|
},
|
|
7269
|
+
/**
|
|
7270
|
+
* Change instance owner
|
|
7271
|
+
* @summary Change instance owner
|
|
7272
|
+
* @param {string} instanceId Instance ID
|
|
7273
|
+
* @param {number} customerId Customer ID
|
|
7274
|
+
* @param {*} [options] Override http request option.
|
|
7275
|
+
* @throws {RequiredError}
|
|
7276
|
+
*/
|
|
7277
|
+
patchChangeInstanceOwner: function (instanceId, customerId, options) {
|
|
7278
|
+
return localVarFp.patchChangeInstanceOwner(instanceId, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
7279
|
+
},
|
|
6704
7280
|
/**
|
|
6705
7281
|
* Update 3CX Instance Auto Failover
|
|
6706
7282
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -6750,7 +7326,7 @@ var Class3CXInstallationsApiFactory = function (configuration, basePath, axios)
|
|
|
6750
7326
|
* @summary Extend additional disk on 3CX Instance
|
|
6751
7327
|
* @param {string} instanceId Instance ID
|
|
6752
7328
|
* @param {number} gigabytes Disk Space (GB)
|
|
6753
|
-
* @param {string} schedule Scheduled Task (Date & Time)
|
|
7329
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
6754
7330
|
* @param {*} [options] Override http request option.
|
|
6755
7331
|
* @throws {RequiredError}
|
|
6756
7332
|
*/
|
|
@@ -6768,6 +7344,16 @@ var Class3CXInstallationsApiFactory = function (configuration, basePath, axios)
|
|
|
6768
7344
|
postFailoverInstance: function (instanceId, type, options) {
|
|
6769
7345
|
return localVarFp.postFailoverInstance(instanceId, type, options).then(function (request) { return request(axios, basePath); });
|
|
6770
7346
|
},
|
|
7347
|
+
/**
|
|
7348
|
+
* Install 3CX SBC
|
|
7349
|
+
* @summary Install 3CX SBC
|
|
7350
|
+
* @param {number} sbcId SBC ID
|
|
7351
|
+
* @param {*} [options] Override http request option.
|
|
7352
|
+
* @throws {RequiredError}
|
|
7353
|
+
*/
|
|
7354
|
+
postInstallTcxSbc: function (sbcId, options) {
|
|
7355
|
+
return localVarFp.postInstallTcxSbc(sbcId, options).then(function (request) { return request(axios, basePath); });
|
|
7356
|
+
},
|
|
6771
7357
|
/**
|
|
6772
7358
|
* Reboot 3CX Instance
|
|
6773
7359
|
* @summary Reboot 3CX Instance
|
|
@@ -6790,6 +7376,28 @@ var Class3CXInstallationsApiFactory = function (configuration, basePath, axios)
|
|
|
6790
7376
|
postResizeInstance: function (instanceId, size, schedule, options) {
|
|
6791
7377
|
return localVarFp.postResizeInstance(instanceId, size, schedule, options).then(function (request) { return request(axios, basePath); });
|
|
6792
7378
|
},
|
|
7379
|
+
/**
|
|
7380
|
+
* Restart 3CX Services
|
|
7381
|
+
* @summary Restart 3CX Services
|
|
7382
|
+
* @param {string} instanceId Instance ID
|
|
7383
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
7384
|
+
* @param {*} [options] Override http request option.
|
|
7385
|
+
* @throws {RequiredError}
|
|
7386
|
+
*/
|
|
7387
|
+
postRestartServices: function (instanceId, schedule, options) {
|
|
7388
|
+
return localVarFp.postRestartServices(instanceId, schedule, options).then(function (request) { return request(axios, basePath); });
|
|
7389
|
+
},
|
|
7390
|
+
/**
|
|
7391
|
+
* Reboot Instance
|
|
7392
|
+
* @summary Reboot Instance
|
|
7393
|
+
* @param {string} instanceId Instance ID
|
|
7394
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
7395
|
+
* @param {*} [options] Override http request option.
|
|
7396
|
+
* @throws {RequiredError}
|
|
7397
|
+
*/
|
|
7398
|
+
postScheduledReboot: function (instanceId, schedule, options) {
|
|
7399
|
+
return localVarFp.postScheduledReboot(instanceId, schedule, options).then(function (request) { return request(axios, basePath); });
|
|
7400
|
+
},
|
|
6793
7401
|
/**
|
|
6794
7402
|
* Suspend 3CX Instance
|
|
6795
7403
|
* @summary Suspend 3CX Instance
|
|
@@ -6801,6 +7409,16 @@ var Class3CXInstallationsApiFactory = function (configuration, basePath, axios)
|
|
|
6801
7409
|
postSuspendInstance: function (instanceId, schedule, options) {
|
|
6802
7410
|
return localVarFp.postSuspendInstance(instanceId, schedule, options).then(function (request) { return request(axios, basePath); });
|
|
6803
7411
|
},
|
|
7412
|
+
/**
|
|
7413
|
+
* Test 3CX Login Credentials
|
|
7414
|
+
* @summary Test 3CX Login Credentials
|
|
7415
|
+
* @param {string} instanceId Instance ID
|
|
7416
|
+
* @param {*} [options] Override http request option.
|
|
7417
|
+
* @throws {RequiredError}
|
|
7418
|
+
*/
|
|
7419
|
+
postTestLoginCredentials: function (instanceId, options) {
|
|
7420
|
+
return localVarFp.postTestLoginCredentials(instanceId, options).then(function (request) { return request(axios, basePath); });
|
|
7421
|
+
},
|
|
6804
7422
|
/**
|
|
6805
7423
|
* Unsuspend 3CX Instance
|
|
6806
7424
|
* @summary Unsuspend 3CX Instance
|
|
@@ -6861,6 +7479,18 @@ var Class3CXInstallationsApi = /** @class */ (function (_super) {
|
|
|
6861
7479
|
var _this = this;
|
|
6862
7480
|
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6863
7481
|
};
|
|
7482
|
+
/**
|
|
7483
|
+
* Change instance owner
|
|
7484
|
+
* @summary Change instance owner
|
|
7485
|
+
* @param {string} instanceId Instance ID
|
|
7486
|
+
* @param {number} customerId Customer ID
|
|
7487
|
+
* @param {*} [options] Override http request option.
|
|
7488
|
+
* @throws {RequiredError}
|
|
7489
|
+
*/
|
|
7490
|
+
Class3CXInstallationsApi.prototype.patchChangeInstanceOwner = function (instanceId, customerId, options) {
|
|
7491
|
+
var _this = this;
|
|
7492
|
+
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).patchChangeInstanceOwner(instanceId, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7493
|
+
};
|
|
6864
7494
|
/**
|
|
6865
7495
|
* Update 3CX Instance Auto Failover
|
|
6866
7496
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -6914,7 +7544,7 @@ var Class3CXInstallationsApi = /** @class */ (function (_super) {
|
|
|
6914
7544
|
* @summary Extend additional disk on 3CX Instance
|
|
6915
7545
|
* @param {string} instanceId Instance ID
|
|
6916
7546
|
* @param {number} gigabytes Disk Space (GB)
|
|
6917
|
-
* @param {string} schedule Scheduled Task (Date & Time)
|
|
7547
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
6918
7548
|
* @param {*} [options] Override http request option.
|
|
6919
7549
|
* @throws {RequiredError}
|
|
6920
7550
|
*/
|
|
@@ -6934,6 +7564,17 @@ var Class3CXInstallationsApi = /** @class */ (function (_super) {
|
|
|
6934
7564
|
var _this = this;
|
|
6935
7565
|
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).postFailoverInstance(instanceId, type, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6936
7566
|
};
|
|
7567
|
+
/**
|
|
7568
|
+
* Install 3CX SBC
|
|
7569
|
+
* @summary Install 3CX SBC
|
|
7570
|
+
* @param {number} sbcId SBC ID
|
|
7571
|
+
* @param {*} [options] Override http request option.
|
|
7572
|
+
* @throws {RequiredError}
|
|
7573
|
+
*/
|
|
7574
|
+
Class3CXInstallationsApi.prototype.postInstallTcxSbc = function (sbcId, options) {
|
|
7575
|
+
var _this = this;
|
|
7576
|
+
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).postInstallTcxSbc(sbcId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7577
|
+
};
|
|
6937
7578
|
/**
|
|
6938
7579
|
* Reboot 3CX Instance
|
|
6939
7580
|
* @summary Reboot 3CX Instance
|
|
@@ -6958,6 +7599,30 @@ var Class3CXInstallationsApi = /** @class */ (function (_super) {
|
|
|
6958
7599
|
var _this = this;
|
|
6959
7600
|
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).postResizeInstance(instanceId, size, schedule, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6960
7601
|
};
|
|
7602
|
+
/**
|
|
7603
|
+
* Restart 3CX Services
|
|
7604
|
+
* @summary Restart 3CX Services
|
|
7605
|
+
* @param {string} instanceId Instance ID
|
|
7606
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
7607
|
+
* @param {*} [options] Override http request option.
|
|
7608
|
+
* @throws {RequiredError}
|
|
7609
|
+
*/
|
|
7610
|
+
Class3CXInstallationsApi.prototype.postRestartServices = function (instanceId, schedule, options) {
|
|
7611
|
+
var _this = this;
|
|
7612
|
+
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).postRestartServices(instanceId, schedule, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7613
|
+
};
|
|
7614
|
+
/**
|
|
7615
|
+
* Reboot Instance
|
|
7616
|
+
* @summary Reboot Instance
|
|
7617
|
+
* @param {string} instanceId Instance ID
|
|
7618
|
+
* @param {string} [schedule] Scheduled Task (Date & Time)
|
|
7619
|
+
* @param {*} [options] Override http request option.
|
|
7620
|
+
* @throws {RequiredError}
|
|
7621
|
+
*/
|
|
7622
|
+
Class3CXInstallationsApi.prototype.postScheduledReboot = function (instanceId, schedule, options) {
|
|
7623
|
+
var _this = this;
|
|
7624
|
+
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).postScheduledReboot(instanceId, schedule, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7625
|
+
};
|
|
6961
7626
|
/**
|
|
6962
7627
|
* Suspend 3CX Instance
|
|
6963
7628
|
* @summary Suspend 3CX Instance
|
|
@@ -6970,6 +7635,17 @@ var Class3CXInstallationsApi = /** @class */ (function (_super) {
|
|
|
6970
7635
|
var _this = this;
|
|
6971
7636
|
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).postSuspendInstance(instanceId, schedule, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6972
7637
|
};
|
|
7638
|
+
/**
|
|
7639
|
+
* Test 3CX Login Credentials
|
|
7640
|
+
* @summary Test 3CX Login Credentials
|
|
7641
|
+
* @param {string} instanceId Instance ID
|
|
7642
|
+
* @param {*} [options] Override http request option.
|
|
7643
|
+
* @throws {RequiredError}
|
|
7644
|
+
*/
|
|
7645
|
+
Class3CXInstallationsApi.prototype.postTestLoginCredentials = function (instanceId, options) {
|
|
7646
|
+
var _this = this;
|
|
7647
|
+
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).postTestLoginCredentials(instanceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7648
|
+
};
|
|
6973
7649
|
/**
|
|
6974
7650
|
* Unsuspend 3CX Instance
|
|
6975
7651
|
* @summary Unsuspend 3CX Instance
|
|
@@ -11209,6 +11885,48 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11209
11885
|
});
|
|
11210
11886
|
});
|
|
11211
11887
|
},
|
|
11888
|
+
/**
|
|
11889
|
+
* Process 3CX Licences (Admin)
|
|
11890
|
+
* @summary Process 3CX Licences (Admin)
|
|
11891
|
+
* @param {number} id Order ID
|
|
11892
|
+
* @param {number} batchId Batch ID
|
|
11893
|
+
* @param {*} [options] Override http request option.
|
|
11894
|
+
* @throws {RequiredError}
|
|
11895
|
+
*/
|
|
11896
|
+
postProcessTcxLicences: function (id_1, batchId_1) {
|
|
11897
|
+
var args_1 = [];
|
|
11898
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
11899
|
+
args_1[_i - 2] = arguments[_i];
|
|
11900
|
+
}
|
|
11901
|
+
return __awaiter(_this, __spreadArray([id_1, batchId_1], args_1, true), void 0, function (id, batchId, options) {
|
|
11902
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11903
|
+
if (options === void 0) { options = {}; }
|
|
11904
|
+
return __generator(this, function (_a) {
|
|
11905
|
+
// verify required parameter 'id' is not null or undefined
|
|
11906
|
+
(0, common_1.assertParamExists)('postProcessTcxLicences', 'id', id);
|
|
11907
|
+
// verify required parameter 'batchId' is not null or undefined
|
|
11908
|
+
(0, common_1.assertParamExists)('postProcessTcxLicences', 'batchId', batchId);
|
|
11909
|
+
localVarPath = "/admin/orders/{id}/batches/{batch_id}/licences/process"
|
|
11910
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
11911
|
+
.replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)));
|
|
11912
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11913
|
+
if (configuration) {
|
|
11914
|
+
baseOptions = configuration.baseOptions;
|
|
11915
|
+
}
|
|
11916
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
11917
|
+
localVarHeaderParameter = {};
|
|
11918
|
+
localVarQueryParameter = {};
|
|
11919
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
11920
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11921
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11922
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11923
|
+
return [2 /*return*/, {
|
|
11924
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11925
|
+
options: localVarRequestOptions,
|
|
11926
|
+
}];
|
|
11927
|
+
});
|
|
11928
|
+
});
|
|
11929
|
+
},
|
|
11212
11930
|
/**
|
|
11213
11931
|
* Send Order Email
|
|
11214
11932
|
* @summary Send Order Email
|
|
@@ -12131,6 +12849,30 @@ var OrdersApiFp = function (configuration) {
|
|
|
12131
12849
|
});
|
|
12132
12850
|
});
|
|
12133
12851
|
},
|
|
12852
|
+
/**
|
|
12853
|
+
* Process 3CX Licences (Admin)
|
|
12854
|
+
* @summary Process 3CX Licences (Admin)
|
|
12855
|
+
* @param {number} id Order ID
|
|
12856
|
+
* @param {number} batchId Batch ID
|
|
12857
|
+
* @param {*} [options] Override http request option.
|
|
12858
|
+
* @throws {RequiredError}
|
|
12859
|
+
*/
|
|
12860
|
+
postProcessTcxLicences: function (id, batchId, options) {
|
|
12861
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12862
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
12863
|
+
var _a, _b, _c;
|
|
12864
|
+
return __generator(this, function (_d) {
|
|
12865
|
+
switch (_d.label) {
|
|
12866
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postProcessTcxLicences(id, batchId, options)];
|
|
12867
|
+
case 1:
|
|
12868
|
+
localVarAxiosArgs = _d.sent();
|
|
12869
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12870
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postProcessTcxLicences']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12871
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
12872
|
+
}
|
|
12873
|
+
});
|
|
12874
|
+
});
|
|
12875
|
+
},
|
|
12134
12876
|
/**
|
|
12135
12877
|
* Send Order Email
|
|
12136
12878
|
* @summary Send Order Email
|
|
@@ -12600,6 +13342,17 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
12600
13342
|
postPrintShippingLabel: function (id, shipmentId, printer, options) {
|
|
12601
13343
|
return localVarFp.postPrintShippingLabel(id, shipmentId, printer, options).then(function (request) { return request(axios, basePath); });
|
|
12602
13344
|
},
|
|
13345
|
+
/**
|
|
13346
|
+
* Process 3CX Licences (Admin)
|
|
13347
|
+
* @summary Process 3CX Licences (Admin)
|
|
13348
|
+
* @param {number} id Order ID
|
|
13349
|
+
* @param {number} batchId Batch ID
|
|
13350
|
+
* @param {*} [options] Override http request option.
|
|
13351
|
+
* @throws {RequiredError}
|
|
13352
|
+
*/
|
|
13353
|
+
postProcessTcxLicences: function (id, batchId, options) {
|
|
13354
|
+
return localVarFp.postProcessTcxLicences(id, batchId, options).then(function (request) { return request(axios, basePath); });
|
|
13355
|
+
},
|
|
12603
13356
|
/**
|
|
12604
13357
|
* Send Order Email
|
|
12605
13358
|
* @summary Send Order Email
|
|
@@ -12960,6 +13713,18 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
12960
13713
|
var _this = this;
|
|
12961
13714
|
return (0, exports.OrdersApiFp)(this.configuration).postPrintShippingLabel(id, shipmentId, printer, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12962
13715
|
};
|
|
13716
|
+
/**
|
|
13717
|
+
* Process 3CX Licences (Admin)
|
|
13718
|
+
* @summary Process 3CX Licences (Admin)
|
|
13719
|
+
* @param {number} id Order ID
|
|
13720
|
+
* @param {number} batchId Batch ID
|
|
13721
|
+
* @param {*} [options] Override http request option.
|
|
13722
|
+
* @throws {RequiredError}
|
|
13723
|
+
*/
|
|
13724
|
+
OrdersApi.prototype.postProcessTcxLicences = function (id, batchId, options) {
|
|
13725
|
+
var _this = this;
|
|
13726
|
+
return (0, exports.OrdersApiFp)(this.configuration).postProcessTcxLicences(id, batchId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13727
|
+
};
|
|
12963
13728
|
/**
|
|
12964
13729
|
* Send Order Email
|
|
12965
13730
|
* @summary Send Order Email
|