yellowgrid-api-ts 3.2.68-dev.0 → 3.2.70-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 +7 -2
- package/README.md +21 -2
- package/api.ts +1703 -199
- package/dist/api.d.ts +1018 -139
- package/dist/api.js +1379 -97
- package/dist/models/EventStatusEnum.d.ts +18 -0
- package/dist/models/EventStatusEnum.js +20 -0
- package/dist/models/PortStatusEnum.d.ts +18 -0
- package/dist/models/PortStatusEnum.js +20 -0
- package/docs/Class3CXMultiTenantApi.md +55 -0
- package/docs/NumberPortDTO.md +55 -0
- package/docs/NumberPortModel.md +51 -0
- package/docs/NumberPortRangeDTO.md +33 -0
- package/docs/NumberPortRangeRequestDTO.md +27 -0
- package/docs/NumberPortingApi.md +668 -0
- package/docs/NumberPortsModel.md +27 -0
- package/docs/OAuth20Api.md +3 -3
- package/docs/OrdersApi.md +14 -14
- package/docs/SIPTrunksApi.md +55 -0
- package/docs/ShipmentDTO.md +2 -0
- package/docs/SupportTicketModel.md +41 -0
- package/docs/TicketsApi.md +8 -8
- package/models/EventStatusEnum.ts +19 -0
- package/models/PortStatusEnum.ts +19 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -85,8 +85,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
87
|
exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelRoleEnum = void 0;
|
|
88
|
-
exports.
|
|
89
|
-
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = void 0;
|
|
88
|
+
exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = void 0;
|
|
89
|
+
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = void 0;
|
|
90
90
|
var axios_1 = require("axios");
|
|
91
91
|
// Some imports not used depending on template conditions
|
|
92
92
|
// @ts-ignore
|
|
@@ -136,6 +136,8 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
136
136
|
PopsItemDiscounts: 'pops_item_discounts',
|
|
137
137
|
PopsItems: 'pops_items',
|
|
138
138
|
PopsLinkedOrders: 'pops_linked_orders',
|
|
139
|
+
NumberPorts: 'number_ports',
|
|
140
|
+
NumberPortRanges: 'number_port_ranges',
|
|
139
141
|
PopsOfflineInstances: 'pops_offline_instances',
|
|
140
142
|
PopsOrderedItems: 'pops_ordered_items',
|
|
141
143
|
PopsPrizes: 'pops_prizes',
|
|
@@ -7093,6 +7095,45 @@ var Class3CXMultiTenantApiAxiosParamCreator = function (configuration) {
|
|
|
7093
7095
|
});
|
|
7094
7096
|
});
|
|
7095
7097
|
},
|
|
7098
|
+
/**
|
|
7099
|
+
* Get 3CX Starter Bundle Tenants
|
|
7100
|
+
* @summary Get 3CX MT Tenants
|
|
7101
|
+
* @param {number} customerId
|
|
7102
|
+
* @param {*} [options] Override http request option.
|
|
7103
|
+
* @throws {RequiredError}
|
|
7104
|
+
*/
|
|
7105
|
+
getGetAdminTenants: function (customerId_1) {
|
|
7106
|
+
var args_1 = [];
|
|
7107
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
7108
|
+
args_1[_i - 1] = arguments[_i];
|
|
7109
|
+
}
|
|
7110
|
+
return __awaiter(_this, __spreadArray([customerId_1], args_1, true), void 0, function (customerId, options) {
|
|
7111
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
7112
|
+
if (options === void 0) { options = {}; }
|
|
7113
|
+
return __generator(this, function (_a) {
|
|
7114
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
7115
|
+
(0, common_1.assertParamExists)('getGetAdminTenants', 'customerId', customerId);
|
|
7116
|
+
localVarPath = "/tcx/mt/admin/tenants";
|
|
7117
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7118
|
+
if (configuration) {
|
|
7119
|
+
baseOptions = configuration.baseOptions;
|
|
7120
|
+
}
|
|
7121
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
7122
|
+
localVarHeaderParameter = {};
|
|
7123
|
+
localVarQueryParameter = {};
|
|
7124
|
+
if (customerId !== undefined) {
|
|
7125
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
7126
|
+
}
|
|
7127
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7128
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7129
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7130
|
+
return [2 /*return*/, {
|
|
7131
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7132
|
+
options: localVarRequestOptions,
|
|
7133
|
+
}];
|
|
7134
|
+
});
|
|
7135
|
+
});
|
|
7136
|
+
},
|
|
7096
7137
|
/**
|
|
7097
7138
|
* Get 3CX Starter Bundle Tenant
|
|
7098
7139
|
* @summary Get 3CX MT Tenant
|
|
@@ -7359,6 +7400,29 @@ var Class3CXMultiTenantApiFp = function (configuration) {
|
|
|
7359
7400
|
});
|
|
7360
7401
|
});
|
|
7361
7402
|
},
|
|
7403
|
+
/**
|
|
7404
|
+
* Get 3CX Starter Bundle Tenants
|
|
7405
|
+
* @summary Get 3CX MT Tenants
|
|
7406
|
+
* @param {number} customerId
|
|
7407
|
+
* @param {*} [options] Override http request option.
|
|
7408
|
+
* @throws {RequiredError}
|
|
7409
|
+
*/
|
|
7410
|
+
getGetAdminTenants: function (customerId, options) {
|
|
7411
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7412
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7413
|
+
var _a, _b, _c;
|
|
7414
|
+
return __generator(this, function (_d) {
|
|
7415
|
+
switch (_d.label) {
|
|
7416
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminTenants(customerId, options)];
|
|
7417
|
+
case 1:
|
|
7418
|
+
localVarAxiosArgs = _d.sent();
|
|
7419
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7420
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXMultiTenantApi.getGetAdminTenants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7421
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7422
|
+
}
|
|
7423
|
+
});
|
|
7424
|
+
});
|
|
7425
|
+
},
|
|
7362
7426
|
/**
|
|
7363
7427
|
* Get 3CX Starter Bundle Tenant
|
|
7364
7428
|
* @summary Get 3CX MT Tenant
|
|
@@ -7520,6 +7584,16 @@ var Class3CXMultiTenantApiFactory = function (configuration, basePath, axios) {
|
|
|
7520
7584
|
deleteGetTenant: function (reference, options) {
|
|
7521
7585
|
return localVarFp.deleteGetTenant(reference, options).then(function (request) { return request(axios, basePath); });
|
|
7522
7586
|
},
|
|
7587
|
+
/**
|
|
7588
|
+
* Get 3CX Starter Bundle Tenants
|
|
7589
|
+
* @summary Get 3CX MT Tenants
|
|
7590
|
+
* @param {number} customerId
|
|
7591
|
+
* @param {*} [options] Override http request option.
|
|
7592
|
+
* @throws {RequiredError}
|
|
7593
|
+
*/
|
|
7594
|
+
getGetAdminTenants: function (customerId, options) {
|
|
7595
|
+
return localVarFp.getGetAdminTenants(customerId, options).then(function (request) { return request(axios, basePath); });
|
|
7596
|
+
},
|
|
7523
7597
|
/**
|
|
7524
7598
|
* Get 3CX Starter Bundle Tenant
|
|
7525
7599
|
* @summary Get 3CX MT Tenant
|
|
@@ -7609,6 +7683,18 @@ var Class3CXMultiTenantApi = /** @class */ (function (_super) {
|
|
|
7609
7683
|
var _this = this;
|
|
7610
7684
|
return (0, exports.Class3CXMultiTenantApiFp)(this.configuration).deleteGetTenant(reference, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7611
7685
|
};
|
|
7686
|
+
/**
|
|
7687
|
+
* Get 3CX Starter Bundle Tenants
|
|
7688
|
+
* @summary Get 3CX MT Tenants
|
|
7689
|
+
* @param {number} customerId
|
|
7690
|
+
* @param {*} [options] Override http request option.
|
|
7691
|
+
* @throws {RequiredError}
|
|
7692
|
+
* @memberof Class3CXMultiTenantApi
|
|
7693
|
+
*/
|
|
7694
|
+
Class3CXMultiTenantApi.prototype.getGetAdminTenants = function (customerId, options) {
|
|
7695
|
+
var _this = this;
|
|
7696
|
+
return (0, exports.Class3CXMultiTenantApiFp)(this.configuration).getGetAdminTenants(customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7697
|
+
};
|
|
7612
7698
|
/**
|
|
7613
7699
|
* Get 3CX Starter Bundle Tenant
|
|
7614
7700
|
* @summary Get 3CX MT Tenant
|
|
@@ -7766,73 +7852,1187 @@ var MyPBXToolsApiFp = function (configuration) {
|
|
|
7766
7852
|
* @param {*} [options] Override http request option.
|
|
7767
7853
|
* @throws {RequiredError}
|
|
7768
7854
|
*/
|
|
7769
|
-
getGetRecording: function (licenceKey, fileName, options) {
|
|
7770
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7771
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7772
|
-
var _a, _b, _c;
|
|
7773
|
-
return __generator(this, function (_d) {
|
|
7774
|
-
switch (_d.label) {
|
|
7775
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetRecording(licenceKey, fileName, options)];
|
|
7776
|
-
case 1:
|
|
7777
|
-
localVarAxiosArgs = _d.sent();
|
|
7778
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7779
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MyPBXToolsApi.getGetRecording']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7780
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7781
|
-
}
|
|
7782
|
-
});
|
|
7783
|
-
});
|
|
7855
|
+
getGetRecording: function (licenceKey, fileName, options) {
|
|
7856
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7857
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7858
|
+
var _a, _b, _c;
|
|
7859
|
+
return __generator(this, function (_d) {
|
|
7860
|
+
switch (_d.label) {
|
|
7861
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetRecording(licenceKey, fileName, options)];
|
|
7862
|
+
case 1:
|
|
7863
|
+
localVarAxiosArgs = _d.sent();
|
|
7864
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7865
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MyPBXToolsApi.getGetRecording']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7866
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7867
|
+
}
|
|
7868
|
+
});
|
|
7869
|
+
});
|
|
7870
|
+
},
|
|
7871
|
+
};
|
|
7872
|
+
};
|
|
7873
|
+
exports.MyPBXToolsApiFp = MyPBXToolsApiFp;
|
|
7874
|
+
/**
|
|
7875
|
+
* MyPBXToolsApi - factory interface
|
|
7876
|
+
* @export
|
|
7877
|
+
*/
|
|
7878
|
+
var MyPBXToolsApiFactory = function (configuration, basePath, axios) {
|
|
7879
|
+
var localVarFp = (0, exports.MyPBXToolsApiFp)(configuration);
|
|
7880
|
+
return {
|
|
7881
|
+
/**
|
|
7882
|
+
* Get 3CX Installation Details
|
|
7883
|
+
* @summary Fetch recording from a 3CX instance
|
|
7884
|
+
* @param {string} licenceKey Licence Key
|
|
7885
|
+
* @param {string} fileName File Name
|
|
7886
|
+
* @param {*} [options] Override http request option.
|
|
7887
|
+
* @throws {RequiredError}
|
|
7888
|
+
*/
|
|
7889
|
+
getGetRecording: function (licenceKey, fileName, options) {
|
|
7890
|
+
return localVarFp.getGetRecording(licenceKey, fileName, options).then(function (request) { return request(axios, basePath); });
|
|
7891
|
+
},
|
|
7892
|
+
};
|
|
7893
|
+
};
|
|
7894
|
+
exports.MyPBXToolsApiFactory = MyPBXToolsApiFactory;
|
|
7895
|
+
/**
|
|
7896
|
+
* MyPBXToolsApi - object-oriented interface
|
|
7897
|
+
* @export
|
|
7898
|
+
* @class MyPBXToolsApi
|
|
7899
|
+
* @extends {BaseAPI}
|
|
7900
|
+
*/
|
|
7901
|
+
var MyPBXToolsApi = /** @class */ (function (_super) {
|
|
7902
|
+
__extends(MyPBXToolsApi, _super);
|
|
7903
|
+
function MyPBXToolsApi() {
|
|
7904
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
7905
|
+
}
|
|
7906
|
+
/**
|
|
7907
|
+
* Get 3CX Installation Details
|
|
7908
|
+
* @summary Fetch recording from a 3CX instance
|
|
7909
|
+
* @param {string} licenceKey Licence Key
|
|
7910
|
+
* @param {string} fileName File Name
|
|
7911
|
+
* @param {*} [options] Override http request option.
|
|
7912
|
+
* @throws {RequiredError}
|
|
7913
|
+
* @memberof MyPBXToolsApi
|
|
7914
|
+
*/
|
|
7915
|
+
MyPBXToolsApi.prototype.getGetRecording = function (licenceKey, fileName, options) {
|
|
7916
|
+
var _this = this;
|
|
7917
|
+
return (0, exports.MyPBXToolsApiFp)(this.configuration).getGetRecording(licenceKey, fileName, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7918
|
+
};
|
|
7919
|
+
return MyPBXToolsApi;
|
|
7920
|
+
}(base_1.BaseAPI));
|
|
7921
|
+
exports.MyPBXToolsApi = MyPBXToolsApi;
|
|
7922
|
+
/**
|
|
7923
|
+
* NumberPortingApi - axios parameter creator
|
|
7924
|
+
* @export
|
|
7925
|
+
*/
|
|
7926
|
+
var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
7927
|
+
var _this = this;
|
|
7928
|
+
return {
|
|
7929
|
+
/**
|
|
7930
|
+
*
|
|
7931
|
+
* @param {number} id Number Port ID
|
|
7932
|
+
* @param {*} [options] Override http request option.
|
|
7933
|
+
* @throws {RequiredError}
|
|
7934
|
+
*/
|
|
7935
|
+
deleteGetAdminNumberPort: function (id_1) {
|
|
7936
|
+
var args_1 = [];
|
|
7937
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
7938
|
+
args_1[_i - 1] = arguments[_i];
|
|
7939
|
+
}
|
|
7940
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
7941
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
7942
|
+
if (options === void 0) { options = {}; }
|
|
7943
|
+
return __generator(this, function (_a) {
|
|
7944
|
+
// verify required parameter 'id' is not null or undefined
|
|
7945
|
+
(0, common_1.assertParamExists)('deleteGetAdminNumberPort', 'id', id);
|
|
7946
|
+
localVarPath = "/admin/sip/numbers/ports/{id}"
|
|
7947
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
7948
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7949
|
+
if (configuration) {
|
|
7950
|
+
baseOptions = configuration.baseOptions;
|
|
7951
|
+
}
|
|
7952
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
7953
|
+
localVarHeaderParameter = {};
|
|
7954
|
+
localVarQueryParameter = {};
|
|
7955
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7956
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7957
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7958
|
+
return [2 /*return*/, {
|
|
7959
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7960
|
+
options: localVarRequestOptions,
|
|
7961
|
+
}];
|
|
7962
|
+
});
|
|
7963
|
+
});
|
|
7964
|
+
},
|
|
7965
|
+
/**
|
|
7966
|
+
*
|
|
7967
|
+
* @param {number} [pageSize] Number Of Results
|
|
7968
|
+
* @param {number} [page] Page Number
|
|
7969
|
+
* @param {string} [search] Search
|
|
7970
|
+
* @param {*} [options] Override http request option.
|
|
7971
|
+
* @throws {RequiredError}
|
|
7972
|
+
*/
|
|
7973
|
+
getCreateNumberPort: function (pageSize_1, page_1, search_1) {
|
|
7974
|
+
var args_1 = [];
|
|
7975
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
7976
|
+
args_1[_i - 3] = arguments[_i];
|
|
7977
|
+
}
|
|
7978
|
+
return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1], args_1, true), void 0, function (pageSize, page, search, options) {
|
|
7979
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
7980
|
+
if (options === void 0) { options = {}; }
|
|
7981
|
+
return __generator(this, function (_a) {
|
|
7982
|
+
localVarPath = "/sip/numbers/ports";
|
|
7983
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7984
|
+
if (configuration) {
|
|
7985
|
+
baseOptions = configuration.baseOptions;
|
|
7986
|
+
}
|
|
7987
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
7988
|
+
localVarHeaderParameter = {};
|
|
7989
|
+
localVarQueryParameter = {};
|
|
7990
|
+
if (pageSize !== undefined) {
|
|
7991
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
7992
|
+
}
|
|
7993
|
+
if (page !== undefined) {
|
|
7994
|
+
localVarQueryParameter['page'] = page;
|
|
7995
|
+
}
|
|
7996
|
+
if (search !== undefined) {
|
|
7997
|
+
localVarQueryParameter['search'] = search;
|
|
7998
|
+
}
|
|
7999
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8000
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8001
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8002
|
+
return [2 /*return*/, {
|
|
8003
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8004
|
+
options: localVarRequestOptions,
|
|
8005
|
+
}];
|
|
8006
|
+
});
|
|
8007
|
+
});
|
|
8008
|
+
},
|
|
8009
|
+
/**
|
|
8010
|
+
*
|
|
8011
|
+
* @param {number} id Number Port ID
|
|
8012
|
+
* @param {*} [options] Override http request option.
|
|
8013
|
+
* @throws {RequiredError}
|
|
8014
|
+
*/
|
|
8015
|
+
getGetAdminNumberPort: function (id_1) {
|
|
8016
|
+
var args_1 = [];
|
|
8017
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8018
|
+
args_1[_i - 1] = arguments[_i];
|
|
8019
|
+
}
|
|
8020
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
8021
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8022
|
+
if (options === void 0) { options = {}; }
|
|
8023
|
+
return __generator(this, function (_a) {
|
|
8024
|
+
// verify required parameter 'id' is not null or undefined
|
|
8025
|
+
(0, common_1.assertParamExists)('getGetAdminNumberPort', 'id', id);
|
|
8026
|
+
localVarPath = "/admin/sip/numbers/ports/{id}"
|
|
8027
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8028
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8029
|
+
if (configuration) {
|
|
8030
|
+
baseOptions = configuration.baseOptions;
|
|
8031
|
+
}
|
|
8032
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8033
|
+
localVarHeaderParameter = {};
|
|
8034
|
+
localVarQueryParameter = {};
|
|
8035
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8036
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8037
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8038
|
+
return [2 /*return*/, {
|
|
8039
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8040
|
+
options: localVarRequestOptions,
|
|
8041
|
+
}];
|
|
8042
|
+
});
|
|
8043
|
+
});
|
|
8044
|
+
},
|
|
8045
|
+
/**
|
|
8046
|
+
*
|
|
8047
|
+
* @param {number} [pageSize] Number Of Results
|
|
8048
|
+
* @param {number} [page] Page Number
|
|
8049
|
+
* @param {string} [search] Search
|
|
8050
|
+
* @param {*} [options] Override http request option.
|
|
8051
|
+
* @throws {RequiredError}
|
|
8052
|
+
*/
|
|
8053
|
+
getGetAdminNumberPorts: function (pageSize_1, page_1, search_1) {
|
|
8054
|
+
var args_1 = [];
|
|
8055
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8056
|
+
args_1[_i - 3] = arguments[_i];
|
|
8057
|
+
}
|
|
8058
|
+
return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1], args_1, true), void 0, function (pageSize, page, search, options) {
|
|
8059
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8060
|
+
if (options === void 0) { options = {}; }
|
|
8061
|
+
return __generator(this, function (_a) {
|
|
8062
|
+
localVarPath = "/admin/sip/numbers/ports";
|
|
8063
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8064
|
+
if (configuration) {
|
|
8065
|
+
baseOptions = configuration.baseOptions;
|
|
8066
|
+
}
|
|
8067
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8068
|
+
localVarHeaderParameter = {};
|
|
8069
|
+
localVarQueryParameter = {};
|
|
8070
|
+
if (pageSize !== undefined) {
|
|
8071
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
8072
|
+
}
|
|
8073
|
+
if (page !== undefined) {
|
|
8074
|
+
localVarQueryParameter['page'] = page;
|
|
8075
|
+
}
|
|
8076
|
+
if (search !== undefined) {
|
|
8077
|
+
localVarQueryParameter['search'] = search;
|
|
8078
|
+
}
|
|
8079
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8080
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8081
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8082
|
+
return [2 /*return*/, {
|
|
8083
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8084
|
+
options: localVarRequestOptions,
|
|
8085
|
+
}];
|
|
8086
|
+
});
|
|
8087
|
+
});
|
|
8088
|
+
},
|
|
8089
|
+
/**
|
|
8090
|
+
*
|
|
8091
|
+
* @param {number} id Number Port ID
|
|
8092
|
+
* @param {*} [options] Override http request option.
|
|
8093
|
+
* @throws {RequiredError}
|
|
8094
|
+
*/
|
|
8095
|
+
getUpdateNumberPort: function (id_1) {
|
|
8096
|
+
var args_1 = [];
|
|
8097
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8098
|
+
args_1[_i - 1] = arguments[_i];
|
|
8099
|
+
}
|
|
8100
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
8101
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8102
|
+
if (options === void 0) { options = {}; }
|
|
8103
|
+
return __generator(this, function (_a) {
|
|
8104
|
+
// verify required parameter 'id' is not null or undefined
|
|
8105
|
+
(0, common_1.assertParamExists)('getUpdateNumberPort', 'id', id);
|
|
8106
|
+
localVarPath = "/sip/numbers/ports/{id}"
|
|
8107
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8108
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8109
|
+
if (configuration) {
|
|
8110
|
+
baseOptions = configuration.baseOptions;
|
|
8111
|
+
}
|
|
8112
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8113
|
+
localVarHeaderParameter = {};
|
|
8114
|
+
localVarQueryParameter = {};
|
|
8115
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8116
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8117
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8118
|
+
return [2 /*return*/, {
|
|
8119
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8120
|
+
options: localVarRequestOptions,
|
|
8121
|
+
}];
|
|
8122
|
+
});
|
|
8123
|
+
});
|
|
8124
|
+
},
|
|
8125
|
+
/**
|
|
8126
|
+
*
|
|
8127
|
+
* @param {number} id Number Port ID
|
|
8128
|
+
* @param {*} [options] Override http request option.
|
|
8129
|
+
* @throws {RequiredError}
|
|
8130
|
+
*/
|
|
8131
|
+
patchCloseAdminNumberPort: function (id_1) {
|
|
8132
|
+
var args_1 = [];
|
|
8133
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8134
|
+
args_1[_i - 1] = arguments[_i];
|
|
8135
|
+
}
|
|
8136
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
8137
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8138
|
+
if (options === void 0) { options = {}; }
|
|
8139
|
+
return __generator(this, function (_a) {
|
|
8140
|
+
// verify required parameter 'id' is not null or undefined
|
|
8141
|
+
(0, common_1.assertParamExists)('patchCloseAdminNumberPort', 'id', id);
|
|
8142
|
+
localVarPath = "/admin/sip/numbers/ports/{id}/close"
|
|
8143
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8144
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8145
|
+
if (configuration) {
|
|
8146
|
+
baseOptions = configuration.baseOptions;
|
|
8147
|
+
}
|
|
8148
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
8149
|
+
localVarHeaderParameter = {};
|
|
8150
|
+
localVarQueryParameter = {};
|
|
8151
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8152
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8153
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8154
|
+
return [2 /*return*/, {
|
|
8155
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8156
|
+
options: localVarRequestOptions,
|
|
8157
|
+
}];
|
|
8158
|
+
});
|
|
8159
|
+
});
|
|
8160
|
+
},
|
|
8161
|
+
/**
|
|
8162
|
+
*
|
|
8163
|
+
* @param {string | null} [companyName] Company Name
|
|
8164
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
8165
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
8166
|
+
* @param {string | null} [city] City
|
|
8167
|
+
* @param {string | null} [postCode] Post Code
|
|
8168
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
8169
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8170
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8171
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
8172
|
+
* @param {string | null} [comment] Comment
|
|
8173
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
8174
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
8175
|
+
* @param {*} [options] Override http request option.
|
|
8176
|
+
* @throws {RequiredError}
|
|
8177
|
+
*/
|
|
8178
|
+
postCreateNumberPort: function (companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1) {
|
|
8179
|
+
var args_1 = [];
|
|
8180
|
+
for (var _i = 12; _i < arguments.length; _i++) {
|
|
8181
|
+
args_1[_i - 12] = arguments[_i];
|
|
8182
|
+
}
|
|
8183
|
+
return __awaiter(_this, __spreadArray([companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1], args_1, true), void 0, function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
8184
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
8185
|
+
if (options === void 0) { options = {}; }
|
|
8186
|
+
return __generator(this, function (_a) {
|
|
8187
|
+
localVarPath = "/sip/numbers/ports";
|
|
8188
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8189
|
+
if (configuration) {
|
|
8190
|
+
baseOptions = configuration.baseOptions;
|
|
8191
|
+
}
|
|
8192
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8193
|
+
localVarHeaderParameter = {};
|
|
8194
|
+
localVarQueryParameter = {};
|
|
8195
|
+
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
8196
|
+
if (companyName !== undefined) {
|
|
8197
|
+
localVarFormParams.append('companyName', companyName);
|
|
8198
|
+
}
|
|
8199
|
+
if (addressLine1 !== undefined) {
|
|
8200
|
+
localVarFormParams.append('addressLine1', addressLine1);
|
|
8201
|
+
}
|
|
8202
|
+
if (addressLine2 !== undefined) {
|
|
8203
|
+
localVarFormParams.append('addressLine2', addressLine2);
|
|
8204
|
+
}
|
|
8205
|
+
if (city !== undefined) {
|
|
8206
|
+
localVarFormParams.append('city', city);
|
|
8207
|
+
}
|
|
8208
|
+
if (postCode !== undefined) {
|
|
8209
|
+
localVarFormParams.append('postCode', postCode);
|
|
8210
|
+
}
|
|
8211
|
+
if (trunkId !== undefined) {
|
|
8212
|
+
localVarFormParams.append('trunkId', trunkId);
|
|
8213
|
+
}
|
|
8214
|
+
if (tenantId !== undefined) {
|
|
8215
|
+
localVarFormParams.append('tenantId', tenantId);
|
|
8216
|
+
}
|
|
8217
|
+
if (requestedPortDate !== undefined) {
|
|
8218
|
+
localVarFormParams.append('requestedPortDate', requestedPortDate);
|
|
8219
|
+
}
|
|
8220
|
+
if (asap !== undefined) {
|
|
8221
|
+
localVarFormParams.append('asap', String(asap));
|
|
8222
|
+
}
|
|
8223
|
+
if (comment !== undefined) {
|
|
8224
|
+
localVarFormParams.append('comment', comment);
|
|
8225
|
+
}
|
|
8226
|
+
if (numberRanges) {
|
|
8227
|
+
localVarFormParams.append('numberRanges', numberRanges.join(base_1.COLLECTION_FORMATS.csv));
|
|
8228
|
+
}
|
|
8229
|
+
if (cloa !== undefined) {
|
|
8230
|
+
localVarFormParams.append('cloa', cloa);
|
|
8231
|
+
}
|
|
8232
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
8233
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8234
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8235
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8236
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
8237
|
+
return [2 /*return*/, {
|
|
8238
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8239
|
+
options: localVarRequestOptions,
|
|
8240
|
+
}];
|
|
8241
|
+
});
|
|
8242
|
+
});
|
|
8243
|
+
},
|
|
8244
|
+
/**
|
|
8245
|
+
*
|
|
8246
|
+
* @param {number} id Number Port ID
|
|
8247
|
+
* @param {string | null} [companyName] Company Name
|
|
8248
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
8249
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
8250
|
+
* @param {string | null} [city] City
|
|
8251
|
+
* @param {string | null} [postCode] Post Code
|
|
8252
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
8253
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8254
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8255
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
8256
|
+
* @param {string | null} [comment] Comment
|
|
8257
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
8258
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
8259
|
+
* @param {*} [options] Override http request option.
|
|
8260
|
+
* @throws {RequiredError}
|
|
8261
|
+
*/
|
|
8262
|
+
postSubmitNumberPort: function (id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1) {
|
|
8263
|
+
var args_1 = [];
|
|
8264
|
+
for (var _i = 13; _i < arguments.length; _i++) {
|
|
8265
|
+
args_1[_i - 13] = arguments[_i];
|
|
8266
|
+
}
|
|
8267
|
+
return __awaiter(_this, __spreadArray([id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1], args_1, true), void 0, function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
8268
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
8269
|
+
if (options === void 0) { options = {}; }
|
|
8270
|
+
return __generator(this, function (_a) {
|
|
8271
|
+
// verify required parameter 'id' is not null or undefined
|
|
8272
|
+
(0, common_1.assertParamExists)('postSubmitNumberPort', 'id', id);
|
|
8273
|
+
localVarPath = "/sip/numbers/ports/{id}/submit"
|
|
8274
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8275
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8276
|
+
if (configuration) {
|
|
8277
|
+
baseOptions = configuration.baseOptions;
|
|
8278
|
+
}
|
|
8279
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8280
|
+
localVarHeaderParameter = {};
|
|
8281
|
+
localVarQueryParameter = {};
|
|
8282
|
+
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
8283
|
+
if (companyName !== undefined) {
|
|
8284
|
+
localVarFormParams.append('companyName', companyName);
|
|
8285
|
+
}
|
|
8286
|
+
if (addressLine1 !== undefined) {
|
|
8287
|
+
localVarFormParams.append('addressLine1', addressLine1);
|
|
8288
|
+
}
|
|
8289
|
+
if (addressLine2 !== undefined) {
|
|
8290
|
+
localVarFormParams.append('addressLine2', addressLine2);
|
|
8291
|
+
}
|
|
8292
|
+
if (city !== undefined) {
|
|
8293
|
+
localVarFormParams.append('city', city);
|
|
8294
|
+
}
|
|
8295
|
+
if (postCode !== undefined) {
|
|
8296
|
+
localVarFormParams.append('postCode', postCode);
|
|
8297
|
+
}
|
|
8298
|
+
if (trunkId !== undefined) {
|
|
8299
|
+
localVarFormParams.append('trunkId', trunkId);
|
|
8300
|
+
}
|
|
8301
|
+
if (tenantId !== undefined) {
|
|
8302
|
+
localVarFormParams.append('tenantId', tenantId);
|
|
8303
|
+
}
|
|
8304
|
+
if (requestedPortDate !== undefined) {
|
|
8305
|
+
localVarFormParams.append('requestedPortDate', requestedPortDate);
|
|
8306
|
+
}
|
|
8307
|
+
if (asap !== undefined) {
|
|
8308
|
+
localVarFormParams.append('asap', String(asap));
|
|
8309
|
+
}
|
|
8310
|
+
if (comment !== undefined) {
|
|
8311
|
+
localVarFormParams.append('comment', comment);
|
|
8312
|
+
}
|
|
8313
|
+
if (numberRanges) {
|
|
8314
|
+
localVarFormParams.append('numberRanges', numberRanges.join(base_1.COLLECTION_FORMATS.csv));
|
|
8315
|
+
}
|
|
8316
|
+
if (cloa !== undefined) {
|
|
8317
|
+
localVarFormParams.append('cloa', cloa);
|
|
8318
|
+
}
|
|
8319
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
8320
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8321
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8322
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8323
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
8324
|
+
return [2 /*return*/, {
|
|
8325
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8326
|
+
options: localVarRequestOptions,
|
|
8327
|
+
}];
|
|
8328
|
+
});
|
|
8329
|
+
});
|
|
8330
|
+
},
|
|
8331
|
+
/**
|
|
8332
|
+
*
|
|
8333
|
+
* @param {number} id Number Port ID
|
|
8334
|
+
* @param {string | null} [companyName] Company Name
|
|
8335
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
8336
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
8337
|
+
* @param {string | null} [city] City
|
|
8338
|
+
* @param {string | null} [postCode] Post Code
|
|
8339
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
8340
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8341
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8342
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
8343
|
+
* @param {string | null} [comment] Comment
|
|
8344
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
8345
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
8346
|
+
* @param {*} [options] Override http request option.
|
|
8347
|
+
* @throws {RequiredError}
|
|
8348
|
+
*/
|
|
8349
|
+
postUpdateNumberPort: function (id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1) {
|
|
8350
|
+
var args_1 = [];
|
|
8351
|
+
for (var _i = 13; _i < arguments.length; _i++) {
|
|
8352
|
+
args_1[_i - 13] = arguments[_i];
|
|
8353
|
+
}
|
|
8354
|
+
return __awaiter(_this, __spreadArray([id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1], args_1, true), void 0, function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
8355
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
8356
|
+
if (options === void 0) { options = {}; }
|
|
8357
|
+
return __generator(this, function (_a) {
|
|
8358
|
+
// verify required parameter 'id' is not null or undefined
|
|
8359
|
+
(0, common_1.assertParamExists)('postUpdateNumberPort', 'id', id);
|
|
8360
|
+
localVarPath = "/sip/numbers/ports/{id}"
|
|
8361
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8362
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8363
|
+
if (configuration) {
|
|
8364
|
+
baseOptions = configuration.baseOptions;
|
|
8365
|
+
}
|
|
8366
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8367
|
+
localVarHeaderParameter = {};
|
|
8368
|
+
localVarQueryParameter = {};
|
|
8369
|
+
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
8370
|
+
if (companyName !== undefined) {
|
|
8371
|
+
localVarFormParams.append('companyName', companyName);
|
|
8372
|
+
}
|
|
8373
|
+
if (addressLine1 !== undefined) {
|
|
8374
|
+
localVarFormParams.append('addressLine1', addressLine1);
|
|
8375
|
+
}
|
|
8376
|
+
if (addressLine2 !== undefined) {
|
|
8377
|
+
localVarFormParams.append('addressLine2', addressLine2);
|
|
8378
|
+
}
|
|
8379
|
+
if (city !== undefined) {
|
|
8380
|
+
localVarFormParams.append('city', city);
|
|
8381
|
+
}
|
|
8382
|
+
if (postCode !== undefined) {
|
|
8383
|
+
localVarFormParams.append('postCode', postCode);
|
|
8384
|
+
}
|
|
8385
|
+
if (trunkId !== undefined) {
|
|
8386
|
+
localVarFormParams.append('trunkId', trunkId);
|
|
8387
|
+
}
|
|
8388
|
+
if (tenantId !== undefined) {
|
|
8389
|
+
localVarFormParams.append('tenantId', tenantId);
|
|
8390
|
+
}
|
|
8391
|
+
if (requestedPortDate !== undefined) {
|
|
8392
|
+
localVarFormParams.append('requestedPortDate', requestedPortDate);
|
|
8393
|
+
}
|
|
8394
|
+
if (asap !== undefined) {
|
|
8395
|
+
localVarFormParams.append('asap', String(asap));
|
|
8396
|
+
}
|
|
8397
|
+
if (comment !== undefined) {
|
|
8398
|
+
localVarFormParams.append('comment', comment);
|
|
8399
|
+
}
|
|
8400
|
+
if (numberRanges) {
|
|
8401
|
+
localVarFormParams.append('numberRanges', numberRanges.join(base_1.COLLECTION_FORMATS.csv));
|
|
8402
|
+
}
|
|
8403
|
+
if (cloa !== undefined) {
|
|
8404
|
+
localVarFormParams.append('cloa', cloa);
|
|
8405
|
+
}
|
|
8406
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
8407
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8408
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8409
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8410
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
8411
|
+
return [2 /*return*/, {
|
|
8412
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8413
|
+
options: localVarRequestOptions,
|
|
8414
|
+
}];
|
|
8415
|
+
});
|
|
8416
|
+
});
|
|
8417
|
+
},
|
|
8418
|
+
/**
|
|
8419
|
+
*
|
|
8420
|
+
* @param {number} id Number Port ID
|
|
8421
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
8422
|
+
* @param {*} [options] Override http request option.
|
|
8423
|
+
* @throws {RequiredError}
|
|
8424
|
+
*/
|
|
8425
|
+
putGetAdminNumberPort: function (id_1, numberPortDTO_1) {
|
|
8426
|
+
var args_1 = [];
|
|
8427
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8428
|
+
args_1[_i - 2] = arguments[_i];
|
|
8429
|
+
}
|
|
8430
|
+
return __awaiter(_this, __spreadArray([id_1, numberPortDTO_1], args_1, true), void 0, function (id, numberPortDTO, options) {
|
|
8431
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8432
|
+
if (options === void 0) { options = {}; }
|
|
8433
|
+
return __generator(this, function (_a) {
|
|
8434
|
+
// verify required parameter 'id' is not null or undefined
|
|
8435
|
+
(0, common_1.assertParamExists)('putGetAdminNumberPort', 'id', id);
|
|
8436
|
+
// verify required parameter 'numberPortDTO' is not null or undefined
|
|
8437
|
+
(0, common_1.assertParamExists)('putGetAdminNumberPort', 'numberPortDTO', numberPortDTO);
|
|
8438
|
+
localVarPath = "/admin/sip/numbers/ports/{id}"
|
|
8439
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8440
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8441
|
+
if (configuration) {
|
|
8442
|
+
baseOptions = configuration.baseOptions;
|
|
8443
|
+
}
|
|
8444
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
8445
|
+
localVarHeaderParameter = {};
|
|
8446
|
+
localVarQueryParameter = {};
|
|
8447
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8448
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8449
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8450
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8451
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(numberPortDTO, localVarRequestOptions, configuration);
|
|
8452
|
+
return [2 /*return*/, {
|
|
8453
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8454
|
+
options: localVarRequestOptions,
|
|
8455
|
+
}];
|
|
8456
|
+
});
|
|
8457
|
+
});
|
|
8458
|
+
},
|
|
8459
|
+
};
|
|
8460
|
+
};
|
|
8461
|
+
exports.NumberPortingApiAxiosParamCreator = NumberPortingApiAxiosParamCreator;
|
|
8462
|
+
/**
|
|
8463
|
+
* NumberPortingApi - functional programming interface
|
|
8464
|
+
* @export
|
|
8465
|
+
*/
|
|
8466
|
+
var NumberPortingApiFp = function (configuration) {
|
|
8467
|
+
var localVarAxiosParamCreator = (0, exports.NumberPortingApiAxiosParamCreator)(configuration);
|
|
8468
|
+
return {
|
|
8469
|
+
/**
|
|
8470
|
+
*
|
|
8471
|
+
* @param {number} id Number Port ID
|
|
8472
|
+
* @param {*} [options] Override http request option.
|
|
8473
|
+
* @throws {RequiredError}
|
|
8474
|
+
*/
|
|
8475
|
+
deleteGetAdminNumberPort: function (id, options) {
|
|
8476
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8477
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8478
|
+
var _a, _b, _c;
|
|
8479
|
+
return __generator(this, function (_d) {
|
|
8480
|
+
switch (_d.label) {
|
|
8481
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteGetAdminNumberPort(id, options)];
|
|
8482
|
+
case 1:
|
|
8483
|
+
localVarAxiosArgs = _d.sent();
|
|
8484
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8485
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.deleteGetAdminNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8486
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8487
|
+
}
|
|
8488
|
+
});
|
|
8489
|
+
});
|
|
8490
|
+
},
|
|
8491
|
+
/**
|
|
8492
|
+
*
|
|
8493
|
+
* @param {number} [pageSize] Number Of Results
|
|
8494
|
+
* @param {number} [page] Page Number
|
|
8495
|
+
* @param {string} [search] Search
|
|
8496
|
+
* @param {*} [options] Override http request option.
|
|
8497
|
+
* @throws {RequiredError}
|
|
8498
|
+
*/
|
|
8499
|
+
getCreateNumberPort: function (pageSize, page, search, options) {
|
|
8500
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8501
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8502
|
+
var _a, _b, _c;
|
|
8503
|
+
return __generator(this, function (_d) {
|
|
8504
|
+
switch (_d.label) {
|
|
8505
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCreateNumberPort(pageSize, page, search, options)];
|
|
8506
|
+
case 1:
|
|
8507
|
+
localVarAxiosArgs = _d.sent();
|
|
8508
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8509
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.getCreateNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8510
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8511
|
+
}
|
|
8512
|
+
});
|
|
8513
|
+
});
|
|
8514
|
+
},
|
|
8515
|
+
/**
|
|
8516
|
+
*
|
|
8517
|
+
* @param {number} id Number Port ID
|
|
8518
|
+
* @param {*} [options] Override http request option.
|
|
8519
|
+
* @throws {RequiredError}
|
|
8520
|
+
*/
|
|
8521
|
+
getGetAdminNumberPort: function (id, options) {
|
|
8522
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8523
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8524
|
+
var _a, _b, _c;
|
|
8525
|
+
return __generator(this, function (_d) {
|
|
8526
|
+
switch (_d.label) {
|
|
8527
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminNumberPort(id, options)];
|
|
8528
|
+
case 1:
|
|
8529
|
+
localVarAxiosArgs = _d.sent();
|
|
8530
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8531
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.getGetAdminNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8532
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8533
|
+
}
|
|
8534
|
+
});
|
|
8535
|
+
});
|
|
8536
|
+
},
|
|
8537
|
+
/**
|
|
8538
|
+
*
|
|
8539
|
+
* @param {number} [pageSize] Number Of Results
|
|
8540
|
+
* @param {number} [page] Page Number
|
|
8541
|
+
* @param {string} [search] Search
|
|
8542
|
+
* @param {*} [options] Override http request option.
|
|
8543
|
+
* @throws {RequiredError}
|
|
8544
|
+
*/
|
|
8545
|
+
getGetAdminNumberPorts: function (pageSize, page, search, options) {
|
|
8546
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8547
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8548
|
+
var _a, _b, _c;
|
|
8549
|
+
return __generator(this, function (_d) {
|
|
8550
|
+
switch (_d.label) {
|
|
8551
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminNumberPorts(pageSize, page, search, options)];
|
|
8552
|
+
case 1:
|
|
8553
|
+
localVarAxiosArgs = _d.sent();
|
|
8554
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8555
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.getGetAdminNumberPorts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8556
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8557
|
+
}
|
|
8558
|
+
});
|
|
8559
|
+
});
|
|
8560
|
+
},
|
|
8561
|
+
/**
|
|
8562
|
+
*
|
|
8563
|
+
* @param {number} id Number Port ID
|
|
8564
|
+
* @param {*} [options] Override http request option.
|
|
8565
|
+
* @throws {RequiredError}
|
|
8566
|
+
*/
|
|
8567
|
+
getUpdateNumberPort: function (id, options) {
|
|
8568
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8569
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8570
|
+
var _a, _b, _c;
|
|
8571
|
+
return __generator(this, function (_d) {
|
|
8572
|
+
switch (_d.label) {
|
|
8573
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUpdateNumberPort(id, options)];
|
|
8574
|
+
case 1:
|
|
8575
|
+
localVarAxiosArgs = _d.sent();
|
|
8576
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8577
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.getUpdateNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8578
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8579
|
+
}
|
|
8580
|
+
});
|
|
8581
|
+
});
|
|
8582
|
+
},
|
|
8583
|
+
/**
|
|
8584
|
+
*
|
|
8585
|
+
* @param {number} id Number Port ID
|
|
8586
|
+
* @param {*} [options] Override http request option.
|
|
8587
|
+
* @throws {RequiredError}
|
|
8588
|
+
*/
|
|
8589
|
+
patchCloseAdminNumberPort: function (id, options) {
|
|
8590
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8591
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8592
|
+
var _a, _b, _c;
|
|
8593
|
+
return __generator(this, function (_d) {
|
|
8594
|
+
switch (_d.label) {
|
|
8595
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCloseAdminNumberPort(id, options)];
|
|
8596
|
+
case 1:
|
|
8597
|
+
localVarAxiosArgs = _d.sent();
|
|
8598
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8599
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.patchCloseAdminNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8600
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8601
|
+
}
|
|
8602
|
+
});
|
|
8603
|
+
});
|
|
8604
|
+
},
|
|
8605
|
+
/**
|
|
8606
|
+
*
|
|
8607
|
+
* @param {string | null} [companyName] Company Name
|
|
8608
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
8609
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
8610
|
+
* @param {string | null} [city] City
|
|
8611
|
+
* @param {string | null} [postCode] Post Code
|
|
8612
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
8613
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8614
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8615
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
8616
|
+
* @param {string | null} [comment] Comment
|
|
8617
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
8618
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
8619
|
+
* @param {*} [options] Override http request option.
|
|
8620
|
+
* @throws {RequiredError}
|
|
8621
|
+
*/
|
|
8622
|
+
postCreateNumberPort: function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
8623
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8624
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8625
|
+
var _a, _b, _c;
|
|
8626
|
+
return __generator(this, function (_d) {
|
|
8627
|
+
switch (_d.label) {
|
|
8628
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options)];
|
|
8629
|
+
case 1:
|
|
8630
|
+
localVarAxiosArgs = _d.sent();
|
|
8631
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8632
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.postCreateNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8633
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8634
|
+
}
|
|
8635
|
+
});
|
|
8636
|
+
});
|
|
8637
|
+
},
|
|
8638
|
+
/**
|
|
8639
|
+
*
|
|
8640
|
+
* @param {number} id Number Port ID
|
|
8641
|
+
* @param {string | null} [companyName] Company Name
|
|
8642
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
8643
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
8644
|
+
* @param {string | null} [city] City
|
|
8645
|
+
* @param {string | null} [postCode] Post Code
|
|
8646
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
8647
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8648
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8649
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
8650
|
+
* @param {string | null} [comment] Comment
|
|
8651
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
8652
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
8653
|
+
* @param {*} [options] Override http request option.
|
|
8654
|
+
* @throws {RequiredError}
|
|
8655
|
+
*/
|
|
8656
|
+
postSubmitNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
8657
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8658
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8659
|
+
var _a, _b, _c;
|
|
8660
|
+
return __generator(this, function (_d) {
|
|
8661
|
+
switch (_d.label) {
|
|
8662
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options)];
|
|
8663
|
+
case 1:
|
|
8664
|
+
localVarAxiosArgs = _d.sent();
|
|
8665
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8666
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.postSubmitNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8667
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8668
|
+
}
|
|
8669
|
+
});
|
|
8670
|
+
});
|
|
8671
|
+
},
|
|
8672
|
+
/**
|
|
8673
|
+
*
|
|
8674
|
+
* @param {number} id Number Port ID
|
|
8675
|
+
* @param {string | null} [companyName] Company Name
|
|
8676
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
8677
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
8678
|
+
* @param {string | null} [city] City
|
|
8679
|
+
* @param {string | null} [postCode] Post Code
|
|
8680
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
8681
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8682
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8683
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
8684
|
+
* @param {string | null} [comment] Comment
|
|
8685
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
8686
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
8687
|
+
* @param {*} [options] Override http request option.
|
|
8688
|
+
* @throws {RequiredError}
|
|
8689
|
+
*/
|
|
8690
|
+
postUpdateNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
8691
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8692
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8693
|
+
var _a, _b, _c;
|
|
8694
|
+
return __generator(this, function (_d) {
|
|
8695
|
+
switch (_d.label) {
|
|
8696
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options)];
|
|
8697
|
+
case 1:
|
|
8698
|
+
localVarAxiosArgs = _d.sent();
|
|
8699
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8700
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.postUpdateNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8701
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8702
|
+
}
|
|
8703
|
+
});
|
|
8704
|
+
});
|
|
8705
|
+
},
|
|
8706
|
+
/**
|
|
8707
|
+
*
|
|
8708
|
+
* @param {number} id Number Port ID
|
|
8709
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
8710
|
+
* @param {*} [options] Override http request option.
|
|
8711
|
+
* @throws {RequiredError}
|
|
8712
|
+
*/
|
|
8713
|
+
putGetAdminNumberPort: function (id, numberPortDTO, options) {
|
|
8714
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8715
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8716
|
+
var _a, _b, _c;
|
|
8717
|
+
return __generator(this, function (_d) {
|
|
8718
|
+
switch (_d.label) {
|
|
8719
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putGetAdminNumberPort(id, numberPortDTO, options)];
|
|
8720
|
+
case 1:
|
|
8721
|
+
localVarAxiosArgs = _d.sent();
|
|
8722
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8723
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.putGetAdminNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8724
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8725
|
+
}
|
|
8726
|
+
});
|
|
8727
|
+
});
|
|
8728
|
+
},
|
|
8729
|
+
};
|
|
8730
|
+
};
|
|
8731
|
+
exports.NumberPortingApiFp = NumberPortingApiFp;
|
|
8732
|
+
/**
|
|
8733
|
+
* NumberPortingApi - factory interface
|
|
8734
|
+
* @export
|
|
8735
|
+
*/
|
|
8736
|
+
var NumberPortingApiFactory = function (configuration, basePath, axios) {
|
|
8737
|
+
var localVarFp = (0, exports.NumberPortingApiFp)(configuration);
|
|
8738
|
+
return {
|
|
8739
|
+
/**
|
|
8740
|
+
*
|
|
8741
|
+
* @param {number} id Number Port ID
|
|
8742
|
+
* @param {*} [options] Override http request option.
|
|
8743
|
+
* @throws {RequiredError}
|
|
8744
|
+
*/
|
|
8745
|
+
deleteGetAdminNumberPort: function (id, options) {
|
|
8746
|
+
return localVarFp.deleteGetAdminNumberPort(id, options).then(function (request) { return request(axios, basePath); });
|
|
8747
|
+
},
|
|
8748
|
+
/**
|
|
8749
|
+
*
|
|
8750
|
+
* @param {number} [pageSize] Number Of Results
|
|
8751
|
+
* @param {number} [page] Page Number
|
|
8752
|
+
* @param {string} [search] Search
|
|
8753
|
+
* @param {*} [options] Override http request option.
|
|
8754
|
+
* @throws {RequiredError}
|
|
8755
|
+
*/
|
|
8756
|
+
getCreateNumberPort: function (pageSize, page, search, options) {
|
|
8757
|
+
return localVarFp.getCreateNumberPort(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
8758
|
+
},
|
|
8759
|
+
/**
|
|
8760
|
+
*
|
|
8761
|
+
* @param {number} id Number Port ID
|
|
8762
|
+
* @param {*} [options] Override http request option.
|
|
8763
|
+
* @throws {RequiredError}
|
|
8764
|
+
*/
|
|
8765
|
+
getGetAdminNumberPort: function (id, options) {
|
|
8766
|
+
return localVarFp.getGetAdminNumberPort(id, options).then(function (request) { return request(axios, basePath); });
|
|
8767
|
+
},
|
|
8768
|
+
/**
|
|
8769
|
+
*
|
|
8770
|
+
* @param {number} [pageSize] Number Of Results
|
|
8771
|
+
* @param {number} [page] Page Number
|
|
8772
|
+
* @param {string} [search] Search
|
|
8773
|
+
* @param {*} [options] Override http request option.
|
|
8774
|
+
* @throws {RequiredError}
|
|
8775
|
+
*/
|
|
8776
|
+
getGetAdminNumberPorts: function (pageSize, page, search, options) {
|
|
8777
|
+
return localVarFp.getGetAdminNumberPorts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
8778
|
+
},
|
|
8779
|
+
/**
|
|
8780
|
+
*
|
|
8781
|
+
* @param {number} id Number Port ID
|
|
8782
|
+
* @param {*} [options] Override http request option.
|
|
8783
|
+
* @throws {RequiredError}
|
|
8784
|
+
*/
|
|
8785
|
+
getUpdateNumberPort: function (id, options) {
|
|
8786
|
+
return localVarFp.getUpdateNumberPort(id, options).then(function (request) { return request(axios, basePath); });
|
|
8787
|
+
},
|
|
8788
|
+
/**
|
|
8789
|
+
*
|
|
8790
|
+
* @param {number} id Number Port ID
|
|
8791
|
+
* @param {*} [options] Override http request option.
|
|
8792
|
+
* @throws {RequiredError}
|
|
8793
|
+
*/
|
|
8794
|
+
patchCloseAdminNumberPort: function (id, options) {
|
|
8795
|
+
return localVarFp.patchCloseAdminNumberPort(id, options).then(function (request) { return request(axios, basePath); });
|
|
8796
|
+
},
|
|
8797
|
+
/**
|
|
8798
|
+
*
|
|
8799
|
+
* @param {string | null} [companyName] Company Name
|
|
8800
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
8801
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
8802
|
+
* @param {string | null} [city] City
|
|
8803
|
+
* @param {string | null} [postCode] Post Code
|
|
8804
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
8805
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8806
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8807
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
8808
|
+
* @param {string | null} [comment] Comment
|
|
8809
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
8810
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
8811
|
+
* @param {*} [options] Override http request option.
|
|
8812
|
+
* @throws {RequiredError}
|
|
8813
|
+
*/
|
|
8814
|
+
postCreateNumberPort: function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
8815
|
+
return localVarFp.postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(axios, basePath); });
|
|
8816
|
+
},
|
|
8817
|
+
/**
|
|
8818
|
+
*
|
|
8819
|
+
* @param {number} id Number Port ID
|
|
8820
|
+
* @param {string | null} [companyName] Company Name
|
|
8821
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
8822
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
8823
|
+
* @param {string | null} [city] City
|
|
8824
|
+
* @param {string | null} [postCode] Post Code
|
|
8825
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
8826
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8827
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8828
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
8829
|
+
* @param {string | null} [comment] Comment
|
|
8830
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
8831
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
8832
|
+
* @param {*} [options] Override http request option.
|
|
8833
|
+
* @throws {RequiredError}
|
|
8834
|
+
*/
|
|
8835
|
+
postSubmitNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
8836
|
+
return localVarFp.postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(axios, basePath); });
|
|
8837
|
+
},
|
|
8838
|
+
/**
|
|
8839
|
+
*
|
|
8840
|
+
* @param {number} id Number Port ID
|
|
8841
|
+
* @param {string | null} [companyName] Company Name
|
|
8842
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
8843
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
8844
|
+
* @param {string | null} [city] City
|
|
8845
|
+
* @param {string | null} [postCode] Post Code
|
|
8846
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
8847
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8848
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8849
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
8850
|
+
* @param {string | null} [comment] Comment
|
|
8851
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
8852
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
8853
|
+
* @param {*} [options] Override http request option.
|
|
8854
|
+
* @throws {RequiredError}
|
|
8855
|
+
*/
|
|
8856
|
+
postUpdateNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
8857
|
+
return localVarFp.postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(axios, basePath); });
|
|
7784
8858
|
},
|
|
7785
|
-
};
|
|
7786
|
-
};
|
|
7787
|
-
exports.MyPBXToolsApiFp = MyPBXToolsApiFp;
|
|
7788
|
-
/**
|
|
7789
|
-
* MyPBXToolsApi - factory interface
|
|
7790
|
-
* @export
|
|
7791
|
-
*/
|
|
7792
|
-
var MyPBXToolsApiFactory = function (configuration, basePath, axios) {
|
|
7793
|
-
var localVarFp = (0, exports.MyPBXToolsApiFp)(configuration);
|
|
7794
|
-
return {
|
|
7795
8859
|
/**
|
|
7796
|
-
*
|
|
7797
|
-
* @
|
|
7798
|
-
* @param {
|
|
7799
|
-
* @param {string} fileName File Name
|
|
8860
|
+
*
|
|
8861
|
+
* @param {number} id Number Port ID
|
|
8862
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
7800
8863
|
* @param {*} [options] Override http request option.
|
|
7801
8864
|
* @throws {RequiredError}
|
|
7802
8865
|
*/
|
|
7803
|
-
|
|
7804
|
-
return localVarFp.
|
|
8866
|
+
putGetAdminNumberPort: function (id, numberPortDTO, options) {
|
|
8867
|
+
return localVarFp.putGetAdminNumberPort(id, numberPortDTO, options).then(function (request) { return request(axios, basePath); });
|
|
7805
8868
|
},
|
|
7806
8869
|
};
|
|
7807
8870
|
};
|
|
7808
|
-
exports.
|
|
8871
|
+
exports.NumberPortingApiFactory = NumberPortingApiFactory;
|
|
7809
8872
|
/**
|
|
7810
|
-
*
|
|
8873
|
+
* NumberPortingApi - object-oriented interface
|
|
7811
8874
|
* @export
|
|
7812
|
-
* @class
|
|
8875
|
+
* @class NumberPortingApi
|
|
7813
8876
|
* @extends {BaseAPI}
|
|
7814
8877
|
*/
|
|
7815
|
-
var
|
|
7816
|
-
__extends(
|
|
7817
|
-
function
|
|
8878
|
+
var NumberPortingApi = /** @class */ (function (_super) {
|
|
8879
|
+
__extends(NumberPortingApi, _super);
|
|
8880
|
+
function NumberPortingApi() {
|
|
7818
8881
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7819
8882
|
}
|
|
7820
8883
|
/**
|
|
7821
|
-
*
|
|
7822
|
-
* @
|
|
7823
|
-
* @param {string} licenceKey Licence Key
|
|
7824
|
-
* @param {string} fileName File Name
|
|
8884
|
+
*
|
|
8885
|
+
* @param {number} id Number Port ID
|
|
7825
8886
|
* @param {*} [options] Override http request option.
|
|
7826
8887
|
* @throws {RequiredError}
|
|
7827
|
-
* @memberof
|
|
8888
|
+
* @memberof NumberPortingApi
|
|
7828
8889
|
*/
|
|
7829
|
-
|
|
8890
|
+
NumberPortingApi.prototype.deleteGetAdminNumberPort = function (id, options) {
|
|
7830
8891
|
var _this = this;
|
|
7831
|
-
return (0, exports.
|
|
8892
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).deleteGetAdminNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7832
8893
|
};
|
|
7833
|
-
|
|
8894
|
+
/**
|
|
8895
|
+
*
|
|
8896
|
+
* @param {number} [pageSize] Number Of Results
|
|
8897
|
+
* @param {number} [page] Page Number
|
|
8898
|
+
* @param {string} [search] Search
|
|
8899
|
+
* @param {*} [options] Override http request option.
|
|
8900
|
+
* @throws {RequiredError}
|
|
8901
|
+
* @memberof NumberPortingApi
|
|
8902
|
+
*/
|
|
8903
|
+
NumberPortingApi.prototype.getCreateNumberPort = function (pageSize, page, search, options) {
|
|
8904
|
+
var _this = this;
|
|
8905
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).getCreateNumberPort(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8906
|
+
};
|
|
8907
|
+
/**
|
|
8908
|
+
*
|
|
8909
|
+
* @param {number} id Number Port ID
|
|
8910
|
+
* @param {*} [options] Override http request option.
|
|
8911
|
+
* @throws {RequiredError}
|
|
8912
|
+
* @memberof NumberPortingApi
|
|
8913
|
+
*/
|
|
8914
|
+
NumberPortingApi.prototype.getGetAdminNumberPort = function (id, options) {
|
|
8915
|
+
var _this = this;
|
|
8916
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).getGetAdminNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8917
|
+
};
|
|
8918
|
+
/**
|
|
8919
|
+
*
|
|
8920
|
+
* @param {number} [pageSize] Number Of Results
|
|
8921
|
+
* @param {number} [page] Page Number
|
|
8922
|
+
* @param {string} [search] Search
|
|
8923
|
+
* @param {*} [options] Override http request option.
|
|
8924
|
+
* @throws {RequiredError}
|
|
8925
|
+
* @memberof NumberPortingApi
|
|
8926
|
+
*/
|
|
8927
|
+
NumberPortingApi.prototype.getGetAdminNumberPorts = function (pageSize, page, search, options) {
|
|
8928
|
+
var _this = this;
|
|
8929
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).getGetAdminNumberPorts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8930
|
+
};
|
|
8931
|
+
/**
|
|
8932
|
+
*
|
|
8933
|
+
* @param {number} id Number Port ID
|
|
8934
|
+
* @param {*} [options] Override http request option.
|
|
8935
|
+
* @throws {RequiredError}
|
|
8936
|
+
* @memberof NumberPortingApi
|
|
8937
|
+
*/
|
|
8938
|
+
NumberPortingApi.prototype.getUpdateNumberPort = function (id, options) {
|
|
8939
|
+
var _this = this;
|
|
8940
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).getUpdateNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8941
|
+
};
|
|
8942
|
+
/**
|
|
8943
|
+
*
|
|
8944
|
+
* @param {number} id Number Port ID
|
|
8945
|
+
* @param {*} [options] Override http request option.
|
|
8946
|
+
* @throws {RequiredError}
|
|
8947
|
+
* @memberof NumberPortingApi
|
|
8948
|
+
*/
|
|
8949
|
+
NumberPortingApi.prototype.patchCloseAdminNumberPort = function (id, options) {
|
|
8950
|
+
var _this = this;
|
|
8951
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).patchCloseAdminNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8952
|
+
};
|
|
8953
|
+
/**
|
|
8954
|
+
*
|
|
8955
|
+
* @param {string | null} [companyName] Company Name
|
|
8956
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
8957
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
8958
|
+
* @param {string | null} [city] City
|
|
8959
|
+
* @param {string | null} [postCode] Post Code
|
|
8960
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
8961
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8962
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8963
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
8964
|
+
* @param {string | null} [comment] Comment
|
|
8965
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
8966
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
8967
|
+
* @param {*} [options] Override http request option.
|
|
8968
|
+
* @throws {RequiredError}
|
|
8969
|
+
* @memberof NumberPortingApi
|
|
8970
|
+
*/
|
|
8971
|
+
NumberPortingApi.prototype.postCreateNumberPort = function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
8972
|
+
var _this = this;
|
|
8973
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8974
|
+
};
|
|
8975
|
+
/**
|
|
8976
|
+
*
|
|
8977
|
+
* @param {number} id Number Port ID
|
|
8978
|
+
* @param {string | null} [companyName] Company Name
|
|
8979
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
8980
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
8981
|
+
* @param {string | null} [city] City
|
|
8982
|
+
* @param {string | null} [postCode] Post Code
|
|
8983
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
8984
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
8985
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
8986
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
8987
|
+
* @param {string | null} [comment] Comment
|
|
8988
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
8989
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
8990
|
+
* @param {*} [options] Override http request option.
|
|
8991
|
+
* @throws {RequiredError}
|
|
8992
|
+
* @memberof NumberPortingApi
|
|
8993
|
+
*/
|
|
8994
|
+
NumberPortingApi.prototype.postSubmitNumberPort = function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
8995
|
+
var _this = this;
|
|
8996
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8997
|
+
};
|
|
8998
|
+
/**
|
|
8999
|
+
*
|
|
9000
|
+
* @param {number} id Number Port ID
|
|
9001
|
+
* @param {string | null} [companyName] Company Name
|
|
9002
|
+
* @param {string | null} [addressLine1] Address Line 1
|
|
9003
|
+
* @param {string | null} [addressLine2] Address Line 2
|
|
9004
|
+
* @param {string | null} [city] City
|
|
9005
|
+
* @param {string | null} [postCode] Post Code
|
|
9006
|
+
* @param {number | null} [trunkId] Trunk ID
|
|
9007
|
+
* @param {string | null} [tenantId] Starter Bundle ID
|
|
9008
|
+
* @param {string | null} [requestedPortDate] Requested Port Date
|
|
9009
|
+
* @param {boolean | null} [asap] Port Date ASAP
|
|
9010
|
+
* @param {string | null} [comment] Comment
|
|
9011
|
+
* @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
|
|
9012
|
+
* @param {File} [cloa] CLOA (only provide on submission)
|
|
9013
|
+
* @param {*} [options] Override http request option.
|
|
9014
|
+
* @throws {RequiredError}
|
|
9015
|
+
* @memberof NumberPortingApi
|
|
9016
|
+
*/
|
|
9017
|
+
NumberPortingApi.prototype.postUpdateNumberPort = function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
|
|
9018
|
+
var _this = this;
|
|
9019
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9020
|
+
};
|
|
9021
|
+
/**
|
|
9022
|
+
*
|
|
9023
|
+
* @param {number} id Number Port ID
|
|
9024
|
+
* @param {NumberPortDTO} numberPortDTO
|
|
9025
|
+
* @param {*} [options] Override http request option.
|
|
9026
|
+
* @throws {RequiredError}
|
|
9027
|
+
* @memberof NumberPortingApi
|
|
9028
|
+
*/
|
|
9029
|
+
NumberPortingApi.prototype.putGetAdminNumberPort = function (id, numberPortDTO, options) {
|
|
9030
|
+
var _this = this;
|
|
9031
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).putGetAdminNumberPort(id, numberPortDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9032
|
+
};
|
|
9033
|
+
return NumberPortingApi;
|
|
7834
9034
|
}(base_1.BaseAPI));
|
|
7835
|
-
exports.
|
|
9035
|
+
exports.NumberPortingApi = NumberPortingApi;
|
|
7836
9036
|
/**
|
|
7837
9037
|
* OAuth20Api - axios parameter creator
|
|
7838
9038
|
* @export
|
|
@@ -8498,6 +9698,8 @@ exports.PostAccessTokenScopeEnum = {
|
|
|
8498
9698
|
TcxWizard: 'tcx_wizard',
|
|
8499
9699
|
AccountsRead: 'accounts.read',
|
|
8500
9700
|
AccountsWrite: 'accounts.write',
|
|
9701
|
+
NumberPortingRead: 'number_porting.read',
|
|
9702
|
+
NumberPortingWrite: 'number_porting.write',
|
|
8501
9703
|
PricingRead: 'pricing.read',
|
|
8502
9704
|
OrdersRead: 'orders.read',
|
|
8503
9705
|
OrdersWrite: 'orders.write',
|
|
@@ -8534,6 +9736,8 @@ exports.PostAuthoriseScopeEnum = {
|
|
|
8534
9736
|
TcxWizard: 'tcx_wizard',
|
|
8535
9737
|
AccountsRead: 'accounts.read',
|
|
8536
9738
|
AccountsWrite: 'accounts.write',
|
|
9739
|
+
NumberPortingRead: 'number_porting.read',
|
|
9740
|
+
NumberPortingWrite: 'number_porting.write',
|
|
8537
9741
|
PricingRead: 'pricing.read',
|
|
8538
9742
|
OrdersRead: 'orders.read',
|
|
8539
9743
|
OrdersWrite: 'orders.write',
|
|
@@ -8560,33 +9764,28 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8560
9764
|
var _this = this;
|
|
8561
9765
|
return {
|
|
8562
9766
|
/**
|
|
8563
|
-
* Delete
|
|
8564
|
-
* @summary Delete Shipment (Admin)
|
|
9767
|
+
* Delete Batch (Admin)
|
|
8565
9768
|
* @param {number} id Order ID
|
|
8566
9769
|
* @param {number} batchId Batch ID
|
|
8567
|
-
* @param {number} shipmentId Shipment ID
|
|
8568
9770
|
* @param {*} [options] Override http request option.
|
|
8569
9771
|
* @throws {RequiredError}
|
|
8570
9772
|
*/
|
|
8571
|
-
|
|
9773
|
+
deleteDeleteBatch: function (id_1, batchId_1) {
|
|
8572
9774
|
var args_1 = [];
|
|
8573
|
-
for (var _i =
|
|
8574
|
-
args_1[_i -
|
|
9775
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
9776
|
+
args_1[_i - 2] = arguments[_i];
|
|
8575
9777
|
}
|
|
8576
|
-
return __awaiter(_this, __spreadArray([id_1, batchId_1
|
|
9778
|
+
return __awaiter(_this, __spreadArray([id_1, batchId_1], args_1, true), void 0, function (id, batchId, options) {
|
|
8577
9779
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8578
9780
|
if (options === void 0) { options = {}; }
|
|
8579
9781
|
return __generator(this, function (_a) {
|
|
8580
9782
|
// verify required parameter 'id' is not null or undefined
|
|
8581
|
-
(0, common_1.assertParamExists)('
|
|
9783
|
+
(0, common_1.assertParamExists)('deleteDeleteBatch', 'id', id);
|
|
8582
9784
|
// verify required parameter 'batchId' is not null or undefined
|
|
8583
|
-
(0, common_1.assertParamExists)('
|
|
8584
|
-
|
|
8585
|
-
(0, common_1.assertParamExists)('deleteCreateShipment', 'shipmentId', shipmentId);
|
|
8586
|
-
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments"
|
|
9785
|
+
(0, common_1.assertParamExists)('deleteDeleteBatch', 'batchId', batchId);
|
|
9786
|
+
localVarPath = "/admin/orders/{id}/batches/{batch_id}"
|
|
8587
9787
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
8588
|
-
.replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
|
|
8589
|
-
.replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
|
|
9788
|
+
.replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)));
|
|
8590
9789
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8591
9790
|
if (configuration) {
|
|
8592
9791
|
baseOptions = configuration.baseOptions;
|
|
@@ -8605,28 +9804,33 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8605
9804
|
});
|
|
8606
9805
|
},
|
|
8607
9806
|
/**
|
|
8608
|
-
* Delete
|
|
9807
|
+
* Delete Shipment (Admin)
|
|
9808
|
+
* @summary Delete Shipment (Admin)
|
|
8609
9809
|
* @param {number} id Order ID
|
|
8610
9810
|
* @param {number} batchId Batch ID
|
|
9811
|
+
* @param {number} shipmentId Shipment ID
|
|
8611
9812
|
* @param {*} [options] Override http request option.
|
|
8612
9813
|
* @throws {RequiredError}
|
|
8613
9814
|
*/
|
|
8614
|
-
|
|
9815
|
+
deleteDeleteShipment: function (id_1, batchId_1, shipmentId_1) {
|
|
8615
9816
|
var args_1 = [];
|
|
8616
|
-
for (var _i =
|
|
8617
|
-
args_1[_i -
|
|
9817
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
9818
|
+
args_1[_i - 3] = arguments[_i];
|
|
8618
9819
|
}
|
|
8619
|
-
return __awaiter(_this, __spreadArray([id_1, batchId_1], args_1, true), void 0, function (id, batchId, options) {
|
|
9820
|
+
return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentId_1], args_1, true), void 0, function (id, batchId, shipmentId, options) {
|
|
8620
9821
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8621
9822
|
if (options === void 0) { options = {}; }
|
|
8622
9823
|
return __generator(this, function (_a) {
|
|
8623
9824
|
// verify required parameter 'id' is not null or undefined
|
|
8624
|
-
(0, common_1.assertParamExists)('
|
|
9825
|
+
(0, common_1.assertParamExists)('deleteDeleteShipment', 'id', id);
|
|
8625
9826
|
// verify required parameter 'batchId' is not null or undefined
|
|
8626
|
-
(0, common_1.assertParamExists)('
|
|
8627
|
-
|
|
9827
|
+
(0, common_1.assertParamExists)('deleteDeleteShipment', 'batchId', batchId);
|
|
9828
|
+
// verify required parameter 'shipmentId' is not null or undefined
|
|
9829
|
+
(0, common_1.assertParamExists)('deleteDeleteShipment', 'shipmentId', shipmentId);
|
|
9830
|
+
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}"
|
|
8628
9831
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
8629
|
-
.replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
|
|
9832
|
+
.replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
|
|
9833
|
+
.replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
|
|
8630
9834
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8631
9835
|
if (configuration) {
|
|
8632
9836
|
baseOptions = configuration.baseOptions;
|
|
@@ -9502,48 +10706,48 @@ var OrdersApiFp = function (configuration) {
|
|
|
9502
10706
|
var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
9503
10707
|
return {
|
|
9504
10708
|
/**
|
|
9505
|
-
* Delete
|
|
9506
|
-
* @summary Delete Shipment (Admin)
|
|
10709
|
+
* Delete Batch (Admin)
|
|
9507
10710
|
* @param {number} id Order ID
|
|
9508
10711
|
* @param {number} batchId Batch ID
|
|
9509
|
-
* @param {number} shipmentId Shipment ID
|
|
9510
10712
|
* @param {*} [options] Override http request option.
|
|
9511
10713
|
* @throws {RequiredError}
|
|
9512
10714
|
*/
|
|
9513
|
-
|
|
10715
|
+
deleteDeleteBatch: function (id, batchId, options) {
|
|
9514
10716
|
return __awaiter(this, void 0, void 0, function () {
|
|
9515
10717
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9516
10718
|
var _a, _b, _c;
|
|
9517
10719
|
return __generator(this, function (_d) {
|
|
9518
10720
|
switch (_d.label) {
|
|
9519
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
10721
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteBatch(id, batchId, options)];
|
|
9520
10722
|
case 1:
|
|
9521
10723
|
localVarAxiosArgs = _d.sent();
|
|
9522
10724
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9523
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.
|
|
10725
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteDeleteBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9524
10726
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9525
10727
|
}
|
|
9526
10728
|
});
|
|
9527
10729
|
});
|
|
9528
10730
|
},
|
|
9529
10731
|
/**
|
|
9530
|
-
* Delete
|
|
10732
|
+
* Delete Shipment (Admin)
|
|
10733
|
+
* @summary Delete Shipment (Admin)
|
|
9531
10734
|
* @param {number} id Order ID
|
|
9532
10735
|
* @param {number} batchId Batch ID
|
|
10736
|
+
* @param {number} shipmentId Shipment ID
|
|
9533
10737
|
* @param {*} [options] Override http request option.
|
|
9534
10738
|
* @throws {RequiredError}
|
|
9535
10739
|
*/
|
|
9536
|
-
|
|
10740
|
+
deleteDeleteShipment: function (id, batchId, shipmentId, options) {
|
|
9537
10741
|
return __awaiter(this, void 0, void 0, function () {
|
|
9538
10742
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9539
10743
|
var _a, _b, _c;
|
|
9540
10744
|
return __generator(this, function (_d) {
|
|
9541
10745
|
switch (_d.label) {
|
|
9542
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
10746
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteShipment(id, batchId, shipmentId, options)];
|
|
9543
10747
|
case 1:
|
|
9544
10748
|
localVarAxiosArgs = _d.sent();
|
|
9545
10749
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9546
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.
|
|
10750
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteDeleteShipment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9547
10751
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9548
10752
|
}
|
|
9549
10753
|
});
|
|
@@ -10048,26 +11252,26 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
10048
11252
|
var localVarFp = (0, exports.OrdersApiFp)(configuration);
|
|
10049
11253
|
return {
|
|
10050
11254
|
/**
|
|
10051
|
-
* Delete
|
|
10052
|
-
* @summary Delete Shipment (Admin)
|
|
11255
|
+
* Delete Batch (Admin)
|
|
10053
11256
|
* @param {number} id Order ID
|
|
10054
11257
|
* @param {number} batchId Batch ID
|
|
10055
|
-
* @param {number} shipmentId Shipment ID
|
|
10056
11258
|
* @param {*} [options] Override http request option.
|
|
10057
11259
|
* @throws {RequiredError}
|
|
10058
11260
|
*/
|
|
10059
|
-
|
|
10060
|
-
return localVarFp.
|
|
11261
|
+
deleteDeleteBatch: function (id, batchId, options) {
|
|
11262
|
+
return localVarFp.deleteDeleteBatch(id, batchId, options).then(function (request) { return request(axios, basePath); });
|
|
10061
11263
|
},
|
|
10062
11264
|
/**
|
|
10063
|
-
* Delete
|
|
11265
|
+
* Delete Shipment (Admin)
|
|
11266
|
+
* @summary Delete Shipment (Admin)
|
|
10064
11267
|
* @param {number} id Order ID
|
|
10065
11268
|
* @param {number} batchId Batch ID
|
|
11269
|
+
* @param {number} shipmentId Shipment ID
|
|
10066
11270
|
* @param {*} [options] Override http request option.
|
|
10067
11271
|
* @throws {RequiredError}
|
|
10068
11272
|
*/
|
|
10069
|
-
|
|
10070
|
-
return localVarFp.
|
|
11273
|
+
deleteDeleteShipment: function (id, batchId, shipmentId, options) {
|
|
11274
|
+
return localVarFp.deleteDeleteShipment(id, batchId, shipmentId, options).then(function (request) { return request(axios, basePath); });
|
|
10071
11275
|
},
|
|
10072
11276
|
/**
|
|
10073
11277
|
* Delete Orders (Beta)
|
|
@@ -10312,30 +11516,30 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
10312
11516
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
10313
11517
|
}
|
|
10314
11518
|
/**
|
|
10315
|
-
* Delete
|
|
10316
|
-
* @summary Delete Shipment (Admin)
|
|
11519
|
+
* Delete Batch (Admin)
|
|
10317
11520
|
* @param {number} id Order ID
|
|
10318
11521
|
* @param {number} batchId Batch ID
|
|
10319
|
-
* @param {number} shipmentId Shipment ID
|
|
10320
11522
|
* @param {*} [options] Override http request option.
|
|
10321
11523
|
* @throws {RequiredError}
|
|
10322
11524
|
* @memberof OrdersApi
|
|
10323
11525
|
*/
|
|
10324
|
-
OrdersApi.prototype.
|
|
11526
|
+
OrdersApi.prototype.deleteDeleteBatch = function (id, batchId, options) {
|
|
10325
11527
|
var _this = this;
|
|
10326
|
-
return (0, exports.OrdersApiFp)(this.configuration).
|
|
11528
|
+
return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteBatch(id, batchId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10327
11529
|
};
|
|
10328
11530
|
/**
|
|
10329
|
-
* Delete
|
|
11531
|
+
* Delete Shipment (Admin)
|
|
11532
|
+
* @summary Delete Shipment (Admin)
|
|
10330
11533
|
* @param {number} id Order ID
|
|
10331
11534
|
* @param {number} batchId Batch ID
|
|
11535
|
+
* @param {number} shipmentId Shipment ID
|
|
10332
11536
|
* @param {*} [options] Override http request option.
|
|
10333
11537
|
* @throws {RequiredError}
|
|
10334
11538
|
* @memberof OrdersApi
|
|
10335
11539
|
*/
|
|
10336
|
-
OrdersApi.prototype.
|
|
11540
|
+
OrdersApi.prototype.deleteDeleteShipment = function (id, batchId, shipmentId, options) {
|
|
10337
11541
|
var _this = this;
|
|
10338
|
-
return (0, exports.OrdersApiFp)(this.configuration).
|
|
11542
|
+
return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteShipment(id, batchId, shipmentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10339
11543
|
};
|
|
10340
11544
|
/**
|
|
10341
11545
|
* Delete Orders (Beta)
|
|
@@ -12556,6 +13760,42 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
12556
13760
|
});
|
|
12557
13761
|
});
|
|
12558
13762
|
},
|
|
13763
|
+
/**
|
|
13764
|
+
* Get SIP Trunks
|
|
13765
|
+
* @param {number} [customerId] Customer ID
|
|
13766
|
+
* @param {*} [options] Override http request option.
|
|
13767
|
+
* @throws {RequiredError}
|
|
13768
|
+
*/
|
|
13769
|
+
getGetAdminSipTrunks: function (customerId_1) {
|
|
13770
|
+
var args_1 = [];
|
|
13771
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
13772
|
+
args_1[_i - 1] = arguments[_i];
|
|
13773
|
+
}
|
|
13774
|
+
return __awaiter(_this, __spreadArray([customerId_1], args_1, true), void 0, function (customerId, options) {
|
|
13775
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
13776
|
+
if (options === void 0) { options = {}; }
|
|
13777
|
+
return __generator(this, function (_a) {
|
|
13778
|
+
localVarPath = "/sip/trunks/admin";
|
|
13779
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13780
|
+
if (configuration) {
|
|
13781
|
+
baseOptions = configuration.baseOptions;
|
|
13782
|
+
}
|
|
13783
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
13784
|
+
localVarHeaderParameter = {};
|
|
13785
|
+
localVarQueryParameter = {};
|
|
13786
|
+
if (customerId !== undefined) {
|
|
13787
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
13788
|
+
}
|
|
13789
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13790
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13791
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13792
|
+
return [2 /*return*/, {
|
|
13793
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13794
|
+
options: localVarRequestOptions,
|
|
13795
|
+
}];
|
|
13796
|
+
});
|
|
13797
|
+
});
|
|
13798
|
+
},
|
|
12559
13799
|
/**
|
|
12560
13800
|
* Get UK National Area Codes
|
|
12561
13801
|
* @summary Get UK National Area Codes
|
|
@@ -13398,6 +14638,28 @@ var SIPTrunksApiFp = function (configuration) {
|
|
|
13398
14638
|
});
|
|
13399
14639
|
});
|
|
13400
14640
|
},
|
|
14641
|
+
/**
|
|
14642
|
+
* Get SIP Trunks
|
|
14643
|
+
* @param {number} [customerId] Customer ID
|
|
14644
|
+
* @param {*} [options] Override http request option.
|
|
14645
|
+
* @throws {RequiredError}
|
|
14646
|
+
*/
|
|
14647
|
+
getGetAdminSipTrunks: function (customerId, options) {
|
|
14648
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14649
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
14650
|
+
var _a, _b, _c;
|
|
14651
|
+
return __generator(this, function (_d) {
|
|
14652
|
+
switch (_d.label) {
|
|
14653
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminSipTrunks(customerId, options)];
|
|
14654
|
+
case 1:
|
|
14655
|
+
localVarAxiosArgs = _d.sent();
|
|
14656
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14657
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SIPTrunksApi.getGetAdminSipTrunks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14658
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
14659
|
+
}
|
|
14660
|
+
});
|
|
14661
|
+
});
|
|
14662
|
+
},
|
|
13401
14663
|
/**
|
|
13402
14664
|
* Get UK National Area Codes
|
|
13403
14665
|
* @summary Get UK National Area Codes
|
|
@@ -13888,6 +15150,15 @@ var SIPTrunksApiFactory = function (configuration, basePath, axios) {
|
|
|
13888
15150
|
getGetAddress: function (id, options) {
|
|
13889
15151
|
return localVarFp.getGetAddress(id, options).then(function (request) { return request(axios, basePath); });
|
|
13890
15152
|
},
|
|
15153
|
+
/**
|
|
15154
|
+
* Get SIP Trunks
|
|
15155
|
+
* @param {number} [customerId] Customer ID
|
|
15156
|
+
* @param {*} [options] Override http request option.
|
|
15157
|
+
* @throws {RequiredError}
|
|
15158
|
+
*/
|
|
15159
|
+
getGetAdminSipTrunks: function (customerId, options) {
|
|
15160
|
+
return localVarFp.getGetAdminSipTrunks(customerId, options).then(function (request) { return request(axios, basePath); });
|
|
15161
|
+
},
|
|
13891
15162
|
/**
|
|
13892
15163
|
* Get UK National Area Codes
|
|
13893
15164
|
* @summary Get UK National Area Codes
|
|
@@ -14141,6 +15412,17 @@ var SIPTrunksApi = /** @class */ (function (_super) {
|
|
|
14141
15412
|
var _this = this;
|
|
14142
15413
|
return (0, exports.SIPTrunksApiFp)(this.configuration).getGetAddress(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14143
15414
|
};
|
|
15415
|
+
/**
|
|
15416
|
+
* Get SIP Trunks
|
|
15417
|
+
* @param {number} [customerId] Customer ID
|
|
15418
|
+
* @param {*} [options] Override http request option.
|
|
15419
|
+
* @throws {RequiredError}
|
|
15420
|
+
* @memberof SIPTrunksApi
|
|
15421
|
+
*/
|
|
15422
|
+
SIPTrunksApi.prototype.getGetAdminSipTrunks = function (customerId, options) {
|
|
15423
|
+
var _this = this;
|
|
15424
|
+
return (0, exports.SIPTrunksApiFp)(this.configuration).getGetAdminSipTrunks(customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15425
|
+
};
|
|
14144
15426
|
/**
|
|
14145
15427
|
* Get UK National Area Codes
|
|
14146
15428
|
* @summary Get UK National Area Codes
|