yellowgrid-api-ts 3.2.176-dev.0 → 3.2.177-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 +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +8 -0
- package/api.ts +346 -0
- package/dist/api.d.ts +176 -0
- package/dist/api.js +379 -0
- package/dist/models/UserGroupEnum.d.ts +5 -0
- package/dist/models/UserGroupEnum.js +5 -0
- package/docs/Class3CXApi.md +96 -0
- package/docs/CreditStatusDTO.md +25 -0
- package/docs/GetCheckMacExists200Response.md +20 -0
- package/docs/MacAddressDTO.md +23 -0
- package/docs/PartnerDTO.md +2 -0
- package/docs/PricingApi.md +4 -4
- package/docs/ProvisioningApi.md +158 -0
- package/models/UserGroupEnum.ts +5 -0
- package/openapitools.json +1 -1
- package/package.json +2 -2
package/dist/api.js
CHANGED
|
@@ -112,6 +112,7 @@ exports.AdminUserModelPermissionsEnum = {
|
|
|
112
112
|
Privileged: 'Privileged',
|
|
113
113
|
Development: 'Development',
|
|
114
114
|
Finance: 'Finance',
|
|
115
|
+
Telesales: 'Telesales',
|
|
115
116
|
};
|
|
116
117
|
exports.AuditLogEntityActionEnum = {
|
|
117
118
|
Create: 'CREATE',
|
|
@@ -4760,6 +4761,40 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
|
|
|
4760
4761
|
});
|
|
4761
4762
|
});
|
|
4762
4763
|
},
|
|
4764
|
+
/**
|
|
4765
|
+
* Get 3CX Credit Status
|
|
4766
|
+
* @summary Get 3CX Credit Status
|
|
4767
|
+
* @param {*} [options] Override http request option.
|
|
4768
|
+
* @throws {RequiredError}
|
|
4769
|
+
*/
|
|
4770
|
+
getGetTcxCreditStatus: function () {
|
|
4771
|
+
var args_1 = [];
|
|
4772
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
4773
|
+
args_1[_i] = arguments[_i];
|
|
4774
|
+
}
|
|
4775
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
4776
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4777
|
+
if (options === void 0) { options = {}; }
|
|
4778
|
+
return __generator(this, function (_a) {
|
|
4779
|
+
localVarPath = "/tcx/admin/credit";
|
|
4780
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4781
|
+
if (configuration) {
|
|
4782
|
+
baseOptions = configuration.baseOptions;
|
|
4783
|
+
}
|
|
4784
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
4785
|
+
localVarHeaderParameter = {};
|
|
4786
|
+
localVarQueryParameter = {};
|
|
4787
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
4788
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4789
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4790
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4791
|
+
return [2 /*return*/, {
|
|
4792
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4793
|
+
options: localVarRequestOptions,
|
|
4794
|
+
}];
|
|
4795
|
+
});
|
|
4796
|
+
});
|
|
4797
|
+
},
|
|
4763
4798
|
/**
|
|
4764
4799
|
* Get 3CX Expiring Keys
|
|
4765
4800
|
* @summary Get 3CX Expiring Keys
|
|
@@ -4794,6 +4829,40 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
|
|
|
4794
4829
|
});
|
|
4795
4830
|
});
|
|
4796
4831
|
},
|
|
4832
|
+
/**
|
|
4833
|
+
* Get 3CX Partners
|
|
4834
|
+
* @summary Get 3CX Partners
|
|
4835
|
+
* @param {*} [options] Override http request option.
|
|
4836
|
+
* @throws {RequiredError}
|
|
4837
|
+
*/
|
|
4838
|
+
getGetTcxPartners: function () {
|
|
4839
|
+
var args_1 = [];
|
|
4840
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
4841
|
+
args_1[_i] = arguments[_i];
|
|
4842
|
+
}
|
|
4843
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
4844
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4845
|
+
if (options === void 0) { options = {}; }
|
|
4846
|
+
return __generator(this, function (_a) {
|
|
4847
|
+
localVarPath = "/tcx/admin/partners";
|
|
4848
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4849
|
+
if (configuration) {
|
|
4850
|
+
baseOptions = configuration.baseOptions;
|
|
4851
|
+
}
|
|
4852
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
4853
|
+
localVarHeaderParameter = {};
|
|
4854
|
+
localVarQueryParameter = {};
|
|
4855
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
4856
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4857
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4858
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4859
|
+
return [2 /*return*/, {
|
|
4860
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4861
|
+
options: localVarRequestOptions,
|
|
4862
|
+
}];
|
|
4863
|
+
});
|
|
4864
|
+
});
|
|
4865
|
+
},
|
|
4797
4866
|
/**
|
|
4798
4867
|
* Get Bulk 3CX Licence Details
|
|
4799
4868
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -4863,6 +4932,28 @@ var Class3CXApiFp = function (configuration) {
|
|
|
4863
4932
|
});
|
|
4864
4933
|
});
|
|
4865
4934
|
},
|
|
4935
|
+
/**
|
|
4936
|
+
* Get 3CX Credit Status
|
|
4937
|
+
* @summary Get 3CX Credit Status
|
|
4938
|
+
* @param {*} [options] Override http request option.
|
|
4939
|
+
* @throws {RequiredError}
|
|
4940
|
+
*/
|
|
4941
|
+
getGetTcxCreditStatus: function (options) {
|
|
4942
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4943
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
4944
|
+
var _a, _b, _c;
|
|
4945
|
+
return __generator(this, function (_d) {
|
|
4946
|
+
switch (_d.label) {
|
|
4947
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxCreditStatus(options)];
|
|
4948
|
+
case 1:
|
|
4949
|
+
localVarAxiosArgs = _d.sent();
|
|
4950
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4951
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.getGetTcxCreditStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4952
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
4953
|
+
}
|
|
4954
|
+
});
|
|
4955
|
+
});
|
|
4956
|
+
},
|
|
4866
4957
|
/**
|
|
4867
4958
|
* Get 3CX Expiring Keys
|
|
4868
4959
|
* @summary Get 3CX Expiring Keys
|
|
@@ -4885,6 +4976,28 @@ var Class3CXApiFp = function (configuration) {
|
|
|
4885
4976
|
});
|
|
4886
4977
|
});
|
|
4887
4978
|
},
|
|
4979
|
+
/**
|
|
4980
|
+
* Get 3CX Partners
|
|
4981
|
+
* @summary Get 3CX Partners
|
|
4982
|
+
* @param {*} [options] Override http request option.
|
|
4983
|
+
* @throws {RequiredError}
|
|
4984
|
+
*/
|
|
4985
|
+
getGetTcxPartners: function (options) {
|
|
4986
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4987
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
4988
|
+
var _a, _b, _c;
|
|
4989
|
+
return __generator(this, function (_d) {
|
|
4990
|
+
switch (_d.label) {
|
|
4991
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxPartners(options)];
|
|
4992
|
+
case 1:
|
|
4993
|
+
localVarAxiosArgs = _d.sent();
|
|
4994
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4995
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.getGetTcxPartners']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4996
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
4997
|
+
}
|
|
4998
|
+
});
|
|
4999
|
+
});
|
|
5000
|
+
},
|
|
4888
5001
|
/**
|
|
4889
5002
|
* Get Bulk 3CX Licence Details
|
|
4890
5003
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -4927,6 +5040,15 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
|
|
|
4927
5040
|
getGetLicenceDetails: function (key, options) {
|
|
4928
5041
|
return localVarFp.getGetLicenceDetails(key, options).then(function (request) { return request(axios, basePath); });
|
|
4929
5042
|
},
|
|
5043
|
+
/**
|
|
5044
|
+
* Get 3CX Credit Status
|
|
5045
|
+
* @summary Get 3CX Credit Status
|
|
5046
|
+
* @param {*} [options] Override http request option.
|
|
5047
|
+
* @throws {RequiredError}
|
|
5048
|
+
*/
|
|
5049
|
+
getGetTcxCreditStatus: function (options) {
|
|
5050
|
+
return localVarFp.getGetTcxCreditStatus(options).then(function (request) { return request(axios, basePath); });
|
|
5051
|
+
},
|
|
4930
5052
|
/**
|
|
4931
5053
|
* Get 3CX Expiring Keys
|
|
4932
5054
|
* @summary Get 3CX Expiring Keys
|
|
@@ -4936,6 +5058,15 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
|
|
|
4936
5058
|
getGetTcxExpiringKeys: function (options) {
|
|
4937
5059
|
return localVarFp.getGetTcxExpiringKeys(options).then(function (request) { return request(axios, basePath); });
|
|
4938
5060
|
},
|
|
5061
|
+
/**
|
|
5062
|
+
* Get 3CX Partners
|
|
5063
|
+
* @summary Get 3CX Partners
|
|
5064
|
+
* @param {*} [options] Override http request option.
|
|
5065
|
+
* @throws {RequiredError}
|
|
5066
|
+
*/
|
|
5067
|
+
getGetTcxPartners: function (options) {
|
|
5068
|
+
return localVarFp.getGetTcxPartners(options).then(function (request) { return request(axios, basePath); });
|
|
5069
|
+
},
|
|
4939
5070
|
/**
|
|
4940
5071
|
* Get Bulk 3CX Licence Details
|
|
4941
5072
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -4968,6 +5099,16 @@ var Class3CXApi = /** @class */ (function (_super) {
|
|
|
4968
5099
|
var _this = this;
|
|
4969
5100
|
return (0, exports.Class3CXApiFp)(this.configuration).getGetLicenceDetails(key, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4970
5101
|
};
|
|
5102
|
+
/**
|
|
5103
|
+
* Get 3CX Credit Status
|
|
5104
|
+
* @summary Get 3CX Credit Status
|
|
5105
|
+
* @param {*} [options] Override http request option.
|
|
5106
|
+
* @throws {RequiredError}
|
|
5107
|
+
*/
|
|
5108
|
+
Class3CXApi.prototype.getGetTcxCreditStatus = function (options) {
|
|
5109
|
+
var _this = this;
|
|
5110
|
+
return (0, exports.Class3CXApiFp)(this.configuration).getGetTcxCreditStatus(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5111
|
+
};
|
|
4971
5112
|
/**
|
|
4972
5113
|
* Get 3CX Expiring Keys
|
|
4973
5114
|
* @summary Get 3CX Expiring Keys
|
|
@@ -4978,6 +5119,16 @@ var Class3CXApi = /** @class */ (function (_super) {
|
|
|
4978
5119
|
var _this = this;
|
|
4979
5120
|
return (0, exports.Class3CXApiFp)(this.configuration).getGetTcxExpiringKeys(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4980
5121
|
};
|
|
5122
|
+
/**
|
|
5123
|
+
* Get 3CX Partners
|
|
5124
|
+
* @summary Get 3CX Partners
|
|
5125
|
+
* @param {*} [options] Override http request option.
|
|
5126
|
+
* @throws {RequiredError}
|
|
5127
|
+
*/
|
|
5128
|
+
Class3CXApi.prototype.getGetTcxPartners = function (options) {
|
|
5129
|
+
var _this = this;
|
|
5130
|
+
return (0, exports.Class3CXApiFp)(this.configuration).getGetTcxPartners(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5131
|
+
};
|
|
4981
5132
|
/**
|
|
4982
5133
|
* Get Bulk 3CX Licence Details
|
|
4983
5134
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -16296,6 +16447,7 @@ exports.GetGetPriceListTypeEnum = {
|
|
|
16296
16447
|
Sms: 'SMS',
|
|
16297
16448
|
SipTrunks: 'SIP Trunks',
|
|
16298
16449
|
CrmIntegrations: 'CRM Integrations',
|
|
16450
|
+
Jedware: 'Jedware',
|
|
16299
16451
|
};
|
|
16300
16452
|
exports.GetGetPriceListFormatEnum = {
|
|
16301
16453
|
Pdf: 'pdf',
|
|
@@ -16336,6 +16488,7 @@ exports.PostSendPriceListTypeEnum = {
|
|
|
16336
16488
|
Sms: 'SMS',
|
|
16337
16489
|
SipTrunks: 'SIP Trunks',
|
|
16338
16490
|
CrmIntegrations: 'CRM Integrations',
|
|
16491
|
+
Jedware: 'Jedware',
|
|
16339
16492
|
};
|
|
16340
16493
|
exports.PostSendPriceListFormatEnum = {
|
|
16341
16494
|
Pdf: 'pdf',
|
|
@@ -17670,6 +17823,42 @@ var ProvisioningApiAxiosParamCreator = function (configuration) {
|
|
|
17670
17823
|
});
|
|
17671
17824
|
});
|
|
17672
17825
|
},
|
|
17826
|
+
/**
|
|
17827
|
+
* Delete a MAC address in FDPS
|
|
17828
|
+
* @param {string} mac MAC Address
|
|
17829
|
+
* @param {*} [options] Override http request option.
|
|
17830
|
+
* @throws {RequiredError}
|
|
17831
|
+
*/
|
|
17832
|
+
deleteCheckMacExists: function (mac_1) {
|
|
17833
|
+
var args_1 = [];
|
|
17834
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
17835
|
+
args_1[_i - 1] = arguments[_i];
|
|
17836
|
+
}
|
|
17837
|
+
return __awaiter(_this, __spreadArray([mac_1], args_1, true), void 0, function (mac, options) {
|
|
17838
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17839
|
+
if (options === void 0) { options = {}; }
|
|
17840
|
+
return __generator(this, function (_a) {
|
|
17841
|
+
// verify required parameter 'mac' is not null or undefined
|
|
17842
|
+
(0, common_1.assertParamExists)('deleteCheckMacExists', 'mac', mac);
|
|
17843
|
+
localVarPath = "/admin/provisioning/fanvil/macs/{mac}"
|
|
17844
|
+
.replace('{mac}', encodeURIComponent(String(mac)));
|
|
17845
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17846
|
+
if (configuration) {
|
|
17847
|
+
baseOptions = configuration.baseOptions;
|
|
17848
|
+
}
|
|
17849
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
17850
|
+
localVarHeaderParameter = {};
|
|
17851
|
+
localVarQueryParameter = {};
|
|
17852
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17853
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17854
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17855
|
+
return [2 /*return*/, {
|
|
17856
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17857
|
+
options: localVarRequestOptions,
|
|
17858
|
+
}];
|
|
17859
|
+
});
|
|
17860
|
+
});
|
|
17861
|
+
},
|
|
17673
17862
|
/**
|
|
17674
17863
|
* Delete a Fanvil provisioning group
|
|
17675
17864
|
* @summary Delete group from DB and FDPS
|
|
@@ -17707,6 +17896,43 @@ var ProvisioningApiAxiosParamCreator = function (configuration) {
|
|
|
17707
17896
|
});
|
|
17708
17897
|
});
|
|
17709
17898
|
},
|
|
17899
|
+
/**
|
|
17900
|
+
* Check if a MAC address exists in FDPS
|
|
17901
|
+
* @param {string} mac MAC Address
|
|
17902
|
+
* @param {*} [options] Override http request option.
|
|
17903
|
+
* @throws {RequiredError}
|
|
17904
|
+
*/
|
|
17905
|
+
getCheckMacExists: function (mac_1) {
|
|
17906
|
+
var args_1 = [];
|
|
17907
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
17908
|
+
args_1[_i - 1] = arguments[_i];
|
|
17909
|
+
}
|
|
17910
|
+
return __awaiter(_this, __spreadArray([mac_1], args_1, true), void 0, function (mac, options) {
|
|
17911
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17912
|
+
if (options === void 0) { options = {}; }
|
|
17913
|
+
return __generator(this, function (_a) {
|
|
17914
|
+
// verify required parameter 'mac' is not null or undefined
|
|
17915
|
+
(0, common_1.assertParamExists)('getCheckMacExists', 'mac', mac);
|
|
17916
|
+
localVarPath = "/admin/provisioning/fanvil/macs/{mac}"
|
|
17917
|
+
.replace('{mac}', encodeURIComponent(String(mac)));
|
|
17918
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17919
|
+
if (configuration) {
|
|
17920
|
+
baseOptions = configuration.baseOptions;
|
|
17921
|
+
}
|
|
17922
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
17923
|
+
localVarHeaderParameter = {};
|
|
17924
|
+
localVarQueryParameter = {};
|
|
17925
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
17926
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17927
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17928
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17929
|
+
return [2 /*return*/, {
|
|
17930
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17931
|
+
options: localVarRequestOptions,
|
|
17932
|
+
}];
|
|
17933
|
+
});
|
|
17934
|
+
});
|
|
17935
|
+
},
|
|
17710
17936
|
/**
|
|
17711
17937
|
* Get group Fanvil encryption key
|
|
17712
17938
|
* @summary Get group Fanvil encryption key
|
|
@@ -17903,6 +18129,39 @@ var ProvisioningApiAxiosParamCreator = function (configuration) {
|
|
|
17903
18129
|
});
|
|
17904
18130
|
});
|
|
17905
18131
|
},
|
|
18132
|
+
/**
|
|
18133
|
+
* Create a MAC address in FDPS
|
|
18134
|
+
* @param {*} [options] Override http request option.
|
|
18135
|
+
* @throws {RequiredError}
|
|
18136
|
+
*/
|
|
18137
|
+
postCreateMac: function () {
|
|
18138
|
+
var args_1 = [];
|
|
18139
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
18140
|
+
args_1[_i] = arguments[_i];
|
|
18141
|
+
}
|
|
18142
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
18143
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18144
|
+
if (options === void 0) { options = {}; }
|
|
18145
|
+
return __generator(this, function (_a) {
|
|
18146
|
+
localVarPath = "/admin/provisioning/fanvil/macs/";
|
|
18147
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18148
|
+
if (configuration) {
|
|
18149
|
+
baseOptions = configuration.baseOptions;
|
|
18150
|
+
}
|
|
18151
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
18152
|
+
localVarHeaderParameter = {};
|
|
18153
|
+
localVarQueryParameter = {};
|
|
18154
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
18155
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
18156
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18157
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18158
|
+
return [2 /*return*/, {
|
|
18159
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
18160
|
+
options: localVarRequestOptions,
|
|
18161
|
+
}];
|
|
18162
|
+
});
|
|
18163
|
+
});
|
|
18164
|
+
},
|
|
17906
18165
|
};
|
|
17907
18166
|
};
|
|
17908
18167
|
exports.ProvisioningApiAxiosParamCreator = ProvisioningApiAxiosParamCreator;
|
|
@@ -17936,6 +18195,28 @@ var ProvisioningApiFp = function (configuration) {
|
|
|
17936
18195
|
});
|
|
17937
18196
|
});
|
|
17938
18197
|
},
|
|
18198
|
+
/**
|
|
18199
|
+
* Delete a MAC address in FDPS
|
|
18200
|
+
* @param {string} mac MAC Address
|
|
18201
|
+
* @param {*} [options] Override http request option.
|
|
18202
|
+
* @throws {RequiredError}
|
|
18203
|
+
*/
|
|
18204
|
+
deleteCheckMacExists: function (mac, options) {
|
|
18205
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18206
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
18207
|
+
var _a, _b, _c;
|
|
18208
|
+
return __generator(this, function (_d) {
|
|
18209
|
+
switch (_d.label) {
|
|
18210
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteCheckMacExists(mac, options)];
|
|
18211
|
+
case 1:
|
|
18212
|
+
localVarAxiosArgs = _d.sent();
|
|
18213
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18214
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProvisioningApi.deleteCheckMacExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18215
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
18216
|
+
}
|
|
18217
|
+
});
|
|
18218
|
+
});
|
|
18219
|
+
},
|
|
17939
18220
|
/**
|
|
17940
18221
|
* Delete a Fanvil provisioning group
|
|
17941
18222
|
* @summary Delete group from DB and FDPS
|
|
@@ -17959,6 +18240,28 @@ var ProvisioningApiFp = function (configuration) {
|
|
|
17959
18240
|
});
|
|
17960
18241
|
});
|
|
17961
18242
|
},
|
|
18243
|
+
/**
|
|
18244
|
+
* Check if a MAC address exists in FDPS
|
|
18245
|
+
* @param {string} mac MAC Address
|
|
18246
|
+
* @param {*} [options] Override http request option.
|
|
18247
|
+
* @throws {RequiredError}
|
|
18248
|
+
*/
|
|
18249
|
+
getCheckMacExists: function (mac, options) {
|
|
18250
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18251
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
18252
|
+
var _a, _b, _c;
|
|
18253
|
+
return __generator(this, function (_d) {
|
|
18254
|
+
switch (_d.label) {
|
|
18255
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCheckMacExists(mac, options)];
|
|
18256
|
+
case 1:
|
|
18257
|
+
localVarAxiosArgs = _d.sent();
|
|
18258
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18259
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProvisioningApi.getCheckMacExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18260
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
18261
|
+
}
|
|
18262
|
+
});
|
|
18263
|
+
});
|
|
18264
|
+
},
|
|
17962
18265
|
/**
|
|
17963
18266
|
* Get group Fanvil encryption key
|
|
17964
18267
|
* @summary Get group Fanvil encryption key
|
|
@@ -18076,6 +18379,27 @@ var ProvisioningApiFp = function (configuration) {
|
|
|
18076
18379
|
});
|
|
18077
18380
|
});
|
|
18078
18381
|
},
|
|
18382
|
+
/**
|
|
18383
|
+
* Create a MAC address in FDPS
|
|
18384
|
+
* @param {*} [options] Override http request option.
|
|
18385
|
+
* @throws {RequiredError}
|
|
18386
|
+
*/
|
|
18387
|
+
postCreateMac: function (options) {
|
|
18388
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18389
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
18390
|
+
var _a, _b, _c;
|
|
18391
|
+
return __generator(this, function (_d) {
|
|
18392
|
+
switch (_d.label) {
|
|
18393
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateMac(options)];
|
|
18394
|
+
case 1:
|
|
18395
|
+
localVarAxiosArgs = _d.sent();
|
|
18396
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18397
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProvisioningApi.postCreateMac']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18398
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
18399
|
+
}
|
|
18400
|
+
});
|
|
18401
|
+
});
|
|
18402
|
+
},
|
|
18079
18403
|
};
|
|
18080
18404
|
};
|
|
18081
18405
|
exports.ProvisioningApiFp = ProvisioningApiFp;
|
|
@@ -18096,6 +18420,15 @@ var ProvisioningApiFactory = function (configuration, basePath, axios) {
|
|
|
18096
18420
|
deleteAddFanvilMac: function (id, mac, options) {
|
|
18097
18421
|
return localVarFp.deleteAddFanvilMac(id, mac, options).then(function (request) { return request(axios, basePath); });
|
|
18098
18422
|
},
|
|
18423
|
+
/**
|
|
18424
|
+
* Delete a MAC address in FDPS
|
|
18425
|
+
* @param {string} mac MAC Address
|
|
18426
|
+
* @param {*} [options] Override http request option.
|
|
18427
|
+
* @throws {RequiredError}
|
|
18428
|
+
*/
|
|
18429
|
+
deleteCheckMacExists: function (mac, options) {
|
|
18430
|
+
return localVarFp.deleteCheckMacExists(mac, options).then(function (request) { return request(axios, basePath); });
|
|
18431
|
+
},
|
|
18099
18432
|
/**
|
|
18100
18433
|
* Delete a Fanvil provisioning group
|
|
18101
18434
|
* @summary Delete group from DB and FDPS
|
|
@@ -18106,6 +18439,15 @@ var ProvisioningApiFactory = function (configuration, basePath, axios) {
|
|
|
18106
18439
|
deleteDeleteFanvilGroup: function (id, options) {
|
|
18107
18440
|
return localVarFp.deleteDeleteFanvilGroup(id, options).then(function (request) { return request(axios, basePath); });
|
|
18108
18441
|
},
|
|
18442
|
+
/**
|
|
18443
|
+
* Check if a MAC address exists in FDPS
|
|
18444
|
+
* @param {string} mac MAC Address
|
|
18445
|
+
* @param {*} [options] Override http request option.
|
|
18446
|
+
* @throws {RequiredError}
|
|
18447
|
+
*/
|
|
18448
|
+
getCheckMacExists: function (mac, options) {
|
|
18449
|
+
return localVarFp.getCheckMacExists(mac, options).then(function (request) { return request(axios, basePath); });
|
|
18450
|
+
},
|
|
18109
18451
|
/**
|
|
18110
18452
|
* Get group Fanvil encryption key
|
|
18111
18453
|
* @summary Get group Fanvil encryption key
|
|
@@ -18158,6 +18500,14 @@ var ProvisioningApiFactory = function (configuration, basePath, axios) {
|
|
|
18158
18500
|
postAddFanvilMac: function (id, mac, options) {
|
|
18159
18501
|
return localVarFp.postAddFanvilMac(id, mac, options).then(function (request) { return request(axios, basePath); });
|
|
18160
18502
|
},
|
|
18503
|
+
/**
|
|
18504
|
+
* Create a MAC address in FDPS
|
|
18505
|
+
* @param {*} [options] Override http request option.
|
|
18506
|
+
* @throws {RequiredError}
|
|
18507
|
+
*/
|
|
18508
|
+
postCreateMac: function (options) {
|
|
18509
|
+
return localVarFp.postCreateMac(options).then(function (request) { return request(axios, basePath); });
|
|
18510
|
+
},
|
|
18161
18511
|
};
|
|
18162
18512
|
};
|
|
18163
18513
|
exports.ProvisioningApiFactory = ProvisioningApiFactory;
|
|
@@ -18181,6 +18531,16 @@ var ProvisioningApi = /** @class */ (function (_super) {
|
|
|
18181
18531
|
var _this = this;
|
|
18182
18532
|
return (0, exports.ProvisioningApiFp)(this.configuration).deleteAddFanvilMac(id, mac, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18183
18533
|
};
|
|
18534
|
+
/**
|
|
18535
|
+
* Delete a MAC address in FDPS
|
|
18536
|
+
* @param {string} mac MAC Address
|
|
18537
|
+
* @param {*} [options] Override http request option.
|
|
18538
|
+
* @throws {RequiredError}
|
|
18539
|
+
*/
|
|
18540
|
+
ProvisioningApi.prototype.deleteCheckMacExists = function (mac, options) {
|
|
18541
|
+
var _this = this;
|
|
18542
|
+
return (0, exports.ProvisioningApiFp)(this.configuration).deleteCheckMacExists(mac, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18543
|
+
};
|
|
18184
18544
|
/**
|
|
18185
18545
|
* Delete a Fanvil provisioning group
|
|
18186
18546
|
* @summary Delete group from DB and FDPS
|
|
@@ -18192,6 +18552,16 @@ var ProvisioningApi = /** @class */ (function (_super) {
|
|
|
18192
18552
|
var _this = this;
|
|
18193
18553
|
return (0, exports.ProvisioningApiFp)(this.configuration).deleteDeleteFanvilGroup(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18194
18554
|
};
|
|
18555
|
+
/**
|
|
18556
|
+
* Check if a MAC address exists in FDPS
|
|
18557
|
+
* @param {string} mac MAC Address
|
|
18558
|
+
* @param {*} [options] Override http request option.
|
|
18559
|
+
* @throws {RequiredError}
|
|
18560
|
+
*/
|
|
18561
|
+
ProvisioningApi.prototype.getCheckMacExists = function (mac, options) {
|
|
18562
|
+
var _this = this;
|
|
18563
|
+
return (0, exports.ProvisioningApiFp)(this.configuration).getCheckMacExists(mac, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18564
|
+
};
|
|
18195
18565
|
/**
|
|
18196
18566
|
* Get group Fanvil encryption key
|
|
18197
18567
|
* @summary Get group Fanvil encryption key
|
|
@@ -18249,6 +18619,15 @@ var ProvisioningApi = /** @class */ (function (_super) {
|
|
|
18249
18619
|
var _this = this;
|
|
18250
18620
|
return (0, exports.ProvisioningApiFp)(this.configuration).postAddFanvilMac(id, mac, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18251
18621
|
};
|
|
18622
|
+
/**
|
|
18623
|
+
* Create a MAC address in FDPS
|
|
18624
|
+
* @param {*} [options] Override http request option.
|
|
18625
|
+
* @throws {RequiredError}
|
|
18626
|
+
*/
|
|
18627
|
+
ProvisioningApi.prototype.postCreateMac = function (options) {
|
|
18628
|
+
var _this = this;
|
|
18629
|
+
return (0, exports.ProvisioningApiFp)(this.configuration).postCreateMac(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18630
|
+
};
|
|
18252
18631
|
return ProvisioningApi;
|
|
18253
18632
|
}(base_1.BaseAPI));
|
|
18254
18633
|
exports.ProvisioningApi = ProvisioningApi;
|
|
@@ -29,5 +29,10 @@ export declare const UserGroupEnum: {
|
|
|
29
29
|
readonly value: "Finance";
|
|
30
30
|
readonly publicValue: "Finance";
|
|
31
31
|
};
|
|
32
|
+
readonly TELESALES: {
|
|
33
|
+
readonly name: "TELESALES";
|
|
34
|
+
readonly value: "Telesales";
|
|
35
|
+
readonly publicValue: "Telesales";
|
|
36
|
+
};
|
|
32
37
|
};
|
|
33
38
|
export type UserGroupEnum = typeof UserGroupEnum;
|
package/docs/Class3CXApi.md
CHANGED
|
@@ -5,7 +5,9 @@ All URIs are relative to *https://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getGetLicenceDetails**](#getgetlicencedetails) | **GET** /tcx/licences/details | Get 3CX Licence Details|
|
|
8
|
+
|[**getGetTcxCreditStatus**](#getgettcxcreditstatus) | **GET** /tcx/admin/credit | Get 3CX Credit Status|
|
|
8
9
|
|[**getGetTcxExpiringKeys**](#getgettcxexpiringkeys) | **GET** /tcx/admin/keys/expiring/csv | Get 3CX Expiring Keys|
|
|
10
|
+
|[**getGetTcxPartners**](#getgettcxpartners) | **GET** /tcx/admin/partners | Get 3CX Partners|
|
|
9
11
|
|[**postGetBulkLicenceDetails**](#postgetbulklicencedetails) | **POST** /tcx/licences/bulk/details | Get bulk 3CX Licence Details|
|
|
10
12
|
|
|
11
13
|
# **getGetLicenceDetails**
|
|
@@ -62,6 +64,53 @@ No authorization required
|
|
|
62
64
|
|
|
63
65
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
64
66
|
|
|
67
|
+
# **getGetTcxCreditStatus**
|
|
68
|
+
> CreditStatusDTO getGetTcxCreditStatus()
|
|
69
|
+
|
|
70
|
+
Get 3CX Credit Status
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
Class3CXApi,
|
|
77
|
+
Configuration
|
|
78
|
+
} from 'yellowgrid-api-ts';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new Class3CXApi(configuration);
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.getGetTcxCreditStatus();
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Parameters
|
|
87
|
+
This endpoint does not have any parameters.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Return type
|
|
91
|
+
|
|
92
|
+
**CreditStatusDTO**
|
|
93
|
+
|
|
94
|
+
### Authorization
|
|
95
|
+
|
|
96
|
+
No authorization required
|
|
97
|
+
|
|
98
|
+
### HTTP request headers
|
|
99
|
+
|
|
100
|
+
- **Content-Type**: Not defined
|
|
101
|
+
- **Accept**: application/json
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### HTTP response details
|
|
105
|
+
| Status code | Description | Response headers |
|
|
106
|
+
|-------------|-------------|------------------|
|
|
107
|
+
|**200** | 3CX Credit Status | - |
|
|
108
|
+
|**400** | Bad Request | - |
|
|
109
|
+
|**401** | Unauthorised | - |
|
|
110
|
+
|**403** | Access Denied | - |
|
|
111
|
+
|
|
112
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
113
|
+
|
|
65
114
|
# **getGetTcxExpiringKeys**
|
|
66
115
|
> string getGetTcxExpiringKeys()
|
|
67
116
|
|
|
@@ -109,6 +158,53 @@ No authorization required
|
|
|
109
158
|
|
|
110
159
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
111
160
|
|
|
161
|
+
# **getGetTcxPartners**
|
|
162
|
+
> Array<PartnerDTO> getGetTcxPartners()
|
|
163
|
+
|
|
164
|
+
Get 3CX Partners
|
|
165
|
+
|
|
166
|
+
### Example
|
|
167
|
+
|
|
168
|
+
```typescript
|
|
169
|
+
import {
|
|
170
|
+
Class3CXApi,
|
|
171
|
+
Configuration
|
|
172
|
+
} from 'yellowgrid-api-ts';
|
|
173
|
+
|
|
174
|
+
const configuration = new Configuration();
|
|
175
|
+
const apiInstance = new Class3CXApi(configuration);
|
|
176
|
+
|
|
177
|
+
const { status, data } = await apiInstance.getGetTcxPartners();
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Parameters
|
|
181
|
+
This endpoint does not have any parameters.
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Return type
|
|
185
|
+
|
|
186
|
+
**Array<PartnerDTO>**
|
|
187
|
+
|
|
188
|
+
### Authorization
|
|
189
|
+
|
|
190
|
+
No authorization required
|
|
191
|
+
|
|
192
|
+
### HTTP request headers
|
|
193
|
+
|
|
194
|
+
- **Content-Type**: Not defined
|
|
195
|
+
- **Accept**: application/json
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### HTTP response details
|
|
199
|
+
| Status code | Description | Response headers |
|
|
200
|
+
|-------------|-------------|------------------|
|
|
201
|
+
|**200** | 3CX Partners | - |
|
|
202
|
+
|**400** | Bad Request | - |
|
|
203
|
+
|**401** | Unauthorised | - |
|
|
204
|
+
|**403** | Access Denied | - |
|
|
205
|
+
|
|
206
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
207
|
+
|
|
112
208
|
# **postGetBulkLicenceDetails**
|
|
113
209
|
> TcxBulkLicenceDetailsModel postGetBulkLicenceDetails()
|
|
114
210
|
|