yellowgrid-api-ts 3.0.86-dev.0 → 3.0.86
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 +190 -209
- package/README.md +7 -35
- package/api.ts +276 -1822
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/config.json +3 -3
- package/configuration.ts +1 -1
- package/dist/api.d.ts +156 -1324
- package/dist/api.js +208 -1060
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AccountsApi.md +0 -103
- package/docs/Class3CXApi.md +55 -0
- package/docs/ClientDetailsModel.md +2 -0
- package/docs/{ShippingServicesModel.md → GetGetPasswordHash200Response.md} +5 -5
- package/docs/ItemDTO.md +4 -10
- package/docs/OrderSummaryDTO.md +0 -8
- package/docs/OrderTotalModel.md +0 -2
- package/docs/OrdersApi.md +4 -301
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryDTO.md → ProductSummaryModel.md} +3 -5
- package/docs/ProductsApi.md +43 -164
- package/docs/ProvisioningApi.md +4 -4
- package/docs/{ProvisioningModel.md → ProvisioningEntity.md} +3 -3
- package/docs/ShipmentEntity.md +2 -2
- package/docs/StockManagementApi.md +2 -2
- package/docs/TcxBackupModel.md +2 -0
- package/docs/TcxSbcModel.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AbstractOrderRequestDTO.md +0 -33
- package/docs/AccountDetailedSummaryDTO.md +0 -35
- package/docs/AdminItemRequestDTO.md +0 -37
- package/docs/AdminOrderRequestDTO.md +0 -43
- package/docs/AdminUserModel.md +0 -31
- package/docs/BasicItemDTO.md +0 -23
- package/docs/BasicProductDTO.md +0 -23
- package/docs/CourierPriceEntity.md +0 -39
- package/docs/CustomerItemRequestDTO.md +0 -33
- package/docs/CustomerOrderRequestDTO.md +0 -33
- package/docs/LinkedOrderEntity.md +0 -23
- package/docs/NavigationItemModel.md +0 -27
- package/docs/PostGetProductForCustomerRequest.md +0 -24
- package/docs/ShippingApi.md +0 -63
- package/docs/ShippingConsignmentModel.md +0 -26
- package/docs/ShippingInformationDTO.md +0 -25
- package/docs/ShippingServiceDTO.md +0 -23
- package/docs/ShippingServiceModel.md +0 -31
- package/docs/SubNavigationItemModel.md +0 -25
- package/docs/TcxSbcDTO.md +0 -31
package/dist/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Yellowgrid
|
|
6
|
-
* Welcome to the Yellowgrid API documentation.
|
|
6
|
+
* Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `http://api.yellowgrid.local` For questions or technical support, please contact support@yellowgrid.co.uk.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0
|
|
9
9
|
*
|
|
@@ -84,22 +84,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
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.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi =
|
|
87
|
+
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.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = void 0;
|
|
88
|
+
exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = 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 = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = 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.MyPBXToolsApi = exports.MyPBXToolsApiFactory = void 0;
|
|
89
|
+
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = void 0;
|
|
90
90
|
var axios_1 = require("axios");
|
|
91
91
|
// Some imports not used depending on template conditions
|
|
92
92
|
// @ts-ignore
|
|
93
93
|
var common_1 = require("./common");
|
|
94
94
|
// @ts-ignore
|
|
95
95
|
var base_1 = require("./base");
|
|
96
|
-
exports.AdminUserModelRoleEnum = {
|
|
97
|
-
NUMBER_0: 0,
|
|
98
|
-
NUMBER_1: 1,
|
|
99
|
-
NUMBER_2: 2,
|
|
100
|
-
NUMBER_3: 3,
|
|
101
|
-
NUMBER_4: 4
|
|
102
|
-
};
|
|
103
96
|
exports.DivertResponseModelStatusEnum = {
|
|
104
97
|
Enabled: 'enabled',
|
|
105
98
|
Disabled: 'disabled'
|
|
@@ -165,16 +158,6 @@ exports.OrderTotalModelCurrencyEnum = {
|
|
|
165
158
|
Thb: 'THB',
|
|
166
159
|
Zar: 'ZAR'
|
|
167
160
|
};
|
|
168
|
-
exports.ShippingServiceDTOCourierEnum = {
|
|
169
|
-
Dpd: 'DPD',
|
|
170
|
-
ChorltonPallet: 'Chorlton Pallet',
|
|
171
|
-
Pops: 'POPS'
|
|
172
|
-
};
|
|
173
|
-
exports.ShippingServiceModelCourierEnum = {
|
|
174
|
-
Dpd: 'DPD',
|
|
175
|
-
ChorltonPallet: 'Chorlton Pallet',
|
|
176
|
-
Pops: 'POPS'
|
|
177
|
-
};
|
|
178
161
|
exports.SipTrunkChangeResponseModelTypeEnum = {
|
|
179
162
|
NewTrunk: 'New Trunk',
|
|
180
163
|
AvailableTrunk: 'Available Trunk',
|
|
@@ -408,43 +391,6 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
408
391
|
});
|
|
409
392
|
});
|
|
410
393
|
},
|
|
411
|
-
/**
|
|
412
|
-
* Get Account Detailed Summary
|
|
413
|
-
* @summary Get Account Detailed Summary
|
|
414
|
-
* @param {number} id Customer ID
|
|
415
|
-
* @param {*} [options] Override http request option.
|
|
416
|
-
* @throws {RequiredError}
|
|
417
|
-
*/
|
|
418
|
-
getGetAccountDetailedSummary: function (id_1) {
|
|
419
|
-
var args_1 = [];
|
|
420
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
421
|
-
args_1[_i - 1] = arguments[_i];
|
|
422
|
-
}
|
|
423
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
424
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
425
|
-
if (options === void 0) { options = {}; }
|
|
426
|
-
return __generator(this, function (_a) {
|
|
427
|
-
// verify required parameter 'id' is not null or undefined
|
|
428
|
-
(0, common_1.assertParamExists)('getGetAccountDetailedSummary', 'id', id);
|
|
429
|
-
localVarPath = "/accounts/{id}/summary"
|
|
430
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
431
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
432
|
-
if (configuration) {
|
|
433
|
-
baseOptions = configuration.baseOptions;
|
|
434
|
-
}
|
|
435
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
436
|
-
localVarHeaderParameter = {};
|
|
437
|
-
localVarQueryParameter = {};
|
|
438
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
439
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
440
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
441
|
-
return [2 /*return*/, {
|
|
442
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
443
|
-
options: localVarRequestOptions,
|
|
444
|
-
}];
|
|
445
|
-
});
|
|
446
|
-
});
|
|
447
|
-
},
|
|
448
394
|
/**
|
|
449
395
|
* Get Accounts
|
|
450
396
|
* @summary Get Accounts
|
|
@@ -748,39 +694,6 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
748
694
|
});
|
|
749
695
|
});
|
|
750
696
|
},
|
|
751
|
-
/**
|
|
752
|
-
* Get Admin Account
|
|
753
|
-
* @summary Get Admin Account
|
|
754
|
-
* @param {*} [options] Override http request option.
|
|
755
|
-
* @throws {RequiredError}
|
|
756
|
-
*/
|
|
757
|
-
postGetAdminAccount: function () {
|
|
758
|
-
var args_1 = [];
|
|
759
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
760
|
-
args_1[_i] = arguments[_i];
|
|
761
|
-
}
|
|
762
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
763
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
764
|
-
if (options === void 0) { options = {}; }
|
|
765
|
-
return __generator(this, function (_a) {
|
|
766
|
-
localVarPath = "/admin/me";
|
|
767
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
768
|
-
if (configuration) {
|
|
769
|
-
baseOptions = configuration.baseOptions;
|
|
770
|
-
}
|
|
771
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
772
|
-
localVarHeaderParameter = {};
|
|
773
|
-
localVarQueryParameter = {};
|
|
774
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
775
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
776
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
777
|
-
return [2 /*return*/, {
|
|
778
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
779
|
-
options: localVarRequestOptions,
|
|
780
|
-
}];
|
|
781
|
-
});
|
|
782
|
-
});
|
|
783
|
-
},
|
|
784
697
|
/**
|
|
785
698
|
* Create client credentials
|
|
786
699
|
* @summary Create client credentials
|
|
@@ -1079,29 +992,6 @@ var AccountsApiFp = function (configuration) {
|
|
|
1079
992
|
});
|
|
1080
993
|
});
|
|
1081
994
|
},
|
|
1082
|
-
/**
|
|
1083
|
-
* Get Account Detailed Summary
|
|
1084
|
-
* @summary Get Account Detailed Summary
|
|
1085
|
-
* @param {number} id Customer ID
|
|
1086
|
-
* @param {*} [options] Override http request option.
|
|
1087
|
-
* @throws {RequiredError}
|
|
1088
|
-
*/
|
|
1089
|
-
getGetAccountDetailedSummary: function (id, options) {
|
|
1090
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1091
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1092
|
-
var _a, _b, _c;
|
|
1093
|
-
return __generator(this, function (_d) {
|
|
1094
|
-
switch (_d.label) {
|
|
1095
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options)];
|
|
1096
|
-
case 1:
|
|
1097
|
-
localVarAxiosArgs = _d.sent();
|
|
1098
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1099
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountDetailedSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1100
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1101
|
-
}
|
|
1102
|
-
});
|
|
1103
|
-
});
|
|
1104
|
-
},
|
|
1105
995
|
/**
|
|
1106
996
|
* Get Accounts
|
|
1107
997
|
* @summary Get Accounts
|
|
@@ -1287,28 +1177,6 @@ var AccountsApiFp = function (configuration) {
|
|
|
1287
1177
|
});
|
|
1288
1178
|
});
|
|
1289
1179
|
},
|
|
1290
|
-
/**
|
|
1291
|
-
* Get Admin Account
|
|
1292
|
-
* @summary Get Admin Account
|
|
1293
|
-
* @param {*} [options] Override http request option.
|
|
1294
|
-
* @throws {RequiredError}
|
|
1295
|
-
*/
|
|
1296
|
-
postGetAdminAccount: function (options) {
|
|
1297
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1298
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1299
|
-
var _a, _b, _c;
|
|
1300
|
-
return __generator(this, function (_d) {
|
|
1301
|
-
switch (_d.label) {
|
|
1302
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAdminAccount(options)];
|
|
1303
|
-
case 1:
|
|
1304
|
-
localVarAxiosArgs = _d.sent();
|
|
1305
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1306
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postGetAdminAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1307
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1308
|
-
}
|
|
1309
|
-
});
|
|
1310
|
-
});
|
|
1311
|
-
},
|
|
1312
1180
|
/**
|
|
1313
1181
|
* Create client credentials
|
|
1314
1182
|
* @summary Create client credentials
|
|
@@ -1476,16 +1344,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1476
1344
|
getGetAccountContacts: function (email, options) {
|
|
1477
1345
|
return localVarFp.getGetAccountContacts(email, options).then(function (request) { return request(axios, basePath); });
|
|
1478
1346
|
},
|
|
1479
|
-
/**
|
|
1480
|
-
* Get Account Detailed Summary
|
|
1481
|
-
* @summary Get Account Detailed Summary
|
|
1482
|
-
* @param {number} id Customer ID
|
|
1483
|
-
* @param {*} [options] Override http request option.
|
|
1484
|
-
* @throws {RequiredError}
|
|
1485
|
-
*/
|
|
1486
|
-
getGetAccountDetailedSummary: function (id, options) {
|
|
1487
|
-
return localVarFp.getGetAccountDetailedSummary(id, options).then(function (request) { return request(axios, basePath); });
|
|
1488
|
-
},
|
|
1489
1347
|
/**
|
|
1490
1348
|
* Get Accounts
|
|
1491
1349
|
* @summary Get Accounts
|
|
@@ -1567,15 +1425,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1567
1425
|
postGetAccounts: function (accountRequestModel, options) {
|
|
1568
1426
|
return localVarFp.postGetAccounts(accountRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
1569
1427
|
},
|
|
1570
|
-
/**
|
|
1571
|
-
* Get Admin Account
|
|
1572
|
-
* @summary Get Admin Account
|
|
1573
|
-
* @param {*} [options] Override http request option.
|
|
1574
|
-
* @throws {RequiredError}
|
|
1575
|
-
*/
|
|
1576
|
-
postGetAdminAccount: function (options) {
|
|
1577
|
-
return localVarFp.postGetAdminAccount(options).then(function (request) { return request(axios, basePath); });
|
|
1578
|
-
},
|
|
1579
1428
|
/**
|
|
1580
1429
|
* Create client credentials
|
|
1581
1430
|
* @summary Create client credentials
|
|
@@ -1690,18 +1539,6 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1690
1539
|
var _this = this;
|
|
1691
1540
|
return (0, exports.AccountsApiFp)(this.configuration).getGetAccountContacts(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1692
1541
|
};
|
|
1693
|
-
/**
|
|
1694
|
-
* Get Account Detailed Summary
|
|
1695
|
-
* @summary Get Account Detailed Summary
|
|
1696
|
-
* @param {number} id Customer ID
|
|
1697
|
-
* @param {*} [options] Override http request option.
|
|
1698
|
-
* @throws {RequiredError}
|
|
1699
|
-
* @memberof AccountsApi
|
|
1700
|
-
*/
|
|
1701
|
-
AccountsApi.prototype.getGetAccountDetailedSummary = function (id, options) {
|
|
1702
|
-
var _this = this;
|
|
1703
|
-
return (0, exports.AccountsApiFp)(this.configuration).getGetAccountDetailedSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1704
|
-
};
|
|
1705
1542
|
/**
|
|
1706
1543
|
* Get Accounts
|
|
1707
1544
|
* @summary Get Accounts
|
|
@@ -1799,17 +1636,6 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1799
1636
|
var _this = this;
|
|
1800
1637
|
return (0, exports.AccountsApiFp)(this.configuration).postGetAccounts(accountRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1801
1638
|
};
|
|
1802
|
-
/**
|
|
1803
|
-
* Get Admin Account
|
|
1804
|
-
* @summary Get Admin Account
|
|
1805
|
-
* @param {*} [options] Override http request option.
|
|
1806
|
-
* @throws {RequiredError}
|
|
1807
|
-
* @memberof AccountsApi
|
|
1808
|
-
*/
|
|
1809
|
-
AccountsApi.prototype.postGetAdminAccount = function (options) {
|
|
1810
|
-
var _this = this;
|
|
1811
|
-
return (0, exports.AccountsApiFp)(this.configuration).postGetAdminAccount(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1812
|
-
};
|
|
1813
1639
|
/**
|
|
1814
1640
|
* Create client credentials
|
|
1815
1641
|
* @summary Create client credentials
|
|
@@ -1922,6 +1748,45 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
|
|
|
1922
1748
|
});
|
|
1923
1749
|
});
|
|
1924
1750
|
},
|
|
1751
|
+
/**
|
|
1752
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
1753
|
+
* @summary Convert a password to a hashed 3CX password
|
|
1754
|
+
* @param {string} password Desired 3CX web access password
|
|
1755
|
+
* @param {*} [options] Override http request option.
|
|
1756
|
+
* @throws {RequiredError}
|
|
1757
|
+
*/
|
|
1758
|
+
getGetPasswordHash: function (password_1) {
|
|
1759
|
+
var args_1 = [];
|
|
1760
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1761
|
+
args_1[_i - 1] = arguments[_i];
|
|
1762
|
+
}
|
|
1763
|
+
return __awaiter(_this, __spreadArray([password_1], args_1, true), void 0, function (password, options) {
|
|
1764
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1765
|
+
if (options === void 0) { options = {}; }
|
|
1766
|
+
return __generator(this, function (_a) {
|
|
1767
|
+
// verify required parameter 'password' is not null or undefined
|
|
1768
|
+
(0, common_1.assertParamExists)('getGetPasswordHash', 'password', password);
|
|
1769
|
+
localVarPath = "/tcx/pwd2hash";
|
|
1770
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1771
|
+
if (configuration) {
|
|
1772
|
+
baseOptions = configuration.baseOptions;
|
|
1773
|
+
}
|
|
1774
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1775
|
+
localVarHeaderParameter = {};
|
|
1776
|
+
localVarQueryParameter = {};
|
|
1777
|
+
if (password !== undefined) {
|
|
1778
|
+
localVarQueryParameter['password'] = password;
|
|
1779
|
+
}
|
|
1780
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1781
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1782
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1783
|
+
return [2 /*return*/, {
|
|
1784
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1785
|
+
options: localVarRequestOptions,
|
|
1786
|
+
}];
|
|
1787
|
+
});
|
|
1788
|
+
});
|
|
1789
|
+
},
|
|
1925
1790
|
/**
|
|
1926
1791
|
* Get Bulk 3CX Licence Details
|
|
1927
1792
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -1991,6 +1856,29 @@ var Class3CXApiFp = function (configuration) {
|
|
|
1991
1856
|
});
|
|
1992
1857
|
});
|
|
1993
1858
|
},
|
|
1859
|
+
/**
|
|
1860
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
1861
|
+
* @summary Convert a password to a hashed 3CX password
|
|
1862
|
+
* @param {string} password Desired 3CX web access password
|
|
1863
|
+
* @param {*} [options] Override http request option.
|
|
1864
|
+
* @throws {RequiredError}
|
|
1865
|
+
*/
|
|
1866
|
+
getGetPasswordHash: function (password, options) {
|
|
1867
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1868
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1869
|
+
var _a, _b, _c;
|
|
1870
|
+
return __generator(this, function (_d) {
|
|
1871
|
+
switch (_d.label) {
|
|
1872
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetPasswordHash(password, options)];
|
|
1873
|
+
case 1:
|
|
1874
|
+
localVarAxiosArgs = _d.sent();
|
|
1875
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1876
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.getGetPasswordHash']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1877
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1878
|
+
}
|
|
1879
|
+
});
|
|
1880
|
+
});
|
|
1881
|
+
},
|
|
1994
1882
|
/**
|
|
1995
1883
|
* Get Bulk 3CX Licence Details
|
|
1996
1884
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -2034,6 +1922,16 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
|
|
|
2034
1922
|
getGetLicenceDetails: function (key, options) {
|
|
2035
1923
|
return localVarFp.getGetLicenceDetails(key, options).then(function (request) { return request(axios, basePath); });
|
|
2036
1924
|
},
|
|
1925
|
+
/**
|
|
1926
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
1927
|
+
* @summary Convert a password to a hashed 3CX password
|
|
1928
|
+
* @param {string} password Desired 3CX web access password
|
|
1929
|
+
* @param {*} [options] Override http request option.
|
|
1930
|
+
* @throws {RequiredError}
|
|
1931
|
+
*/
|
|
1932
|
+
getGetPasswordHash: function (password, options) {
|
|
1933
|
+
return localVarFp.getGetPasswordHash(password, options).then(function (request) { return request(axios, basePath); });
|
|
1934
|
+
},
|
|
2037
1935
|
/**
|
|
2038
1936
|
* Get Bulk 3CX Licence Details
|
|
2039
1937
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -2070,6 +1968,18 @@ var Class3CXApi = /** @class */ (function (_super) {
|
|
|
2070
1968
|
var _this = this;
|
|
2071
1969
|
return (0, exports.Class3CXApiFp)(this.configuration).getGetLicenceDetails(key, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2072
1970
|
};
|
|
1971
|
+
/**
|
|
1972
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
1973
|
+
* @summary Convert a password to a hashed 3CX password
|
|
1974
|
+
* @param {string} password Desired 3CX web access password
|
|
1975
|
+
* @param {*} [options] Override http request option.
|
|
1976
|
+
* @throws {RequiredError}
|
|
1977
|
+
* @memberof Class3CXApi
|
|
1978
|
+
*/
|
|
1979
|
+
Class3CXApi.prototype.getGetPasswordHash = function (password, options) {
|
|
1980
|
+
var _this = this;
|
|
1981
|
+
return (0, exports.Class3CXApiFp)(this.configuration).getGetPasswordHash(password, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1982
|
+
};
|
|
2073
1983
|
/**
|
|
2074
1984
|
* Get Bulk 3CX Licence Details
|
|
2075
1985
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -7331,12 +7241,11 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
7331
7241
|
return {
|
|
7332
7242
|
/**
|
|
7333
7243
|
* Delete Orders
|
|
7334
|
-
* @summary Delete Orders
|
|
7335
7244
|
* @param {number} id Order ID
|
|
7336
7245
|
* @param {*} [options] Override http request option.
|
|
7337
7246
|
* @throws {RequiredError}
|
|
7338
7247
|
*/
|
|
7339
|
-
|
|
7248
|
+
deleteDeleteOrder: function (id_1) {
|
|
7340
7249
|
var args_1 = [];
|
|
7341
7250
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
7342
7251
|
args_1[_i - 1] = arguments[_i];
|
|
@@ -7346,7 +7255,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
7346
7255
|
if (options === void 0) { options = {}; }
|
|
7347
7256
|
return __generator(this, function (_a) {
|
|
7348
7257
|
// verify required parameter 'id' is not null or undefined
|
|
7349
|
-
(0, common_1.assertParamExists)('
|
|
7258
|
+
(0, common_1.assertParamExists)('deleteDeleteOrder', 'id', id);
|
|
7350
7259
|
localVarPath = "/orders/{id}"
|
|
7351
7260
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
7352
7261
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7366,42 +7275,6 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
7366
7275
|
});
|
|
7367
7276
|
});
|
|
7368
7277
|
},
|
|
7369
|
-
/**
|
|
7370
|
-
* Get Editable Order
|
|
7371
|
-
* @param {number} id Order ID
|
|
7372
|
-
* @param {*} [options] Override http request option.
|
|
7373
|
-
* @throws {RequiredError}
|
|
7374
|
-
*/
|
|
7375
|
-
getGetEditableOrder: function (id_1) {
|
|
7376
|
-
var args_1 = [];
|
|
7377
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
7378
|
-
args_1[_i - 1] = arguments[_i];
|
|
7379
|
-
}
|
|
7380
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
7381
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
7382
|
-
if (options === void 0) { options = {}; }
|
|
7383
|
-
return __generator(this, function (_a) {
|
|
7384
|
-
// verify required parameter 'id' is not null or undefined
|
|
7385
|
-
(0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
|
|
7386
|
-
localVarPath = "/orders/{id}/views/editable"
|
|
7387
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
7388
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7389
|
-
if (configuration) {
|
|
7390
|
-
baseOptions = configuration.baseOptions;
|
|
7391
|
-
}
|
|
7392
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
7393
|
-
localVarHeaderParameter = {};
|
|
7394
|
-
localVarQueryParameter = {};
|
|
7395
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7396
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7397
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7398
|
-
return [2 /*return*/, {
|
|
7399
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7400
|
-
options: localVarRequestOptions,
|
|
7401
|
-
}];
|
|
7402
|
-
});
|
|
7403
|
-
});
|
|
7404
|
-
},
|
|
7405
7278
|
/**
|
|
7406
7279
|
* Get Orders
|
|
7407
7280
|
* @summary Get Orders
|
|
@@ -7463,225 +7336,34 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
7463
7336
|
});
|
|
7464
7337
|
});
|
|
7465
7338
|
},
|
|
7339
|
+
};
|
|
7340
|
+
};
|
|
7341
|
+
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
7342
|
+
/**
|
|
7343
|
+
* OrdersApi - functional programming interface
|
|
7344
|
+
* @export
|
|
7345
|
+
*/
|
|
7346
|
+
var OrdersApiFp = function (configuration) {
|
|
7347
|
+
var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
7348
|
+
return {
|
|
7466
7349
|
/**
|
|
7467
|
-
*
|
|
7468
|
-
* @
|
|
7469
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7470
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
7350
|
+
* Delete Orders
|
|
7351
|
+
* @param {number} id Order ID
|
|
7471
7352
|
* @param {*} [options] Override http request option.
|
|
7472
7353
|
* @throws {RequiredError}
|
|
7473
7354
|
*/
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
baseOptions = configuration.baseOptions;
|
|
7487
|
-
}
|
|
7488
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
7489
|
-
localVarHeaderParameter = {};
|
|
7490
|
-
localVarQueryParameter = {};
|
|
7491
|
-
if (readonly !== undefined) {
|
|
7492
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
7493
|
-
}
|
|
7494
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7495
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7496
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7497
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7498
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
|
|
7499
|
-
return [2 /*return*/, {
|
|
7500
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7501
|
-
options: localVarRequestOptions,
|
|
7502
|
-
}];
|
|
7503
|
-
});
|
|
7504
|
-
});
|
|
7505
|
-
},
|
|
7506
|
-
/**
|
|
7507
|
-
* Create An Order
|
|
7508
|
-
* @summary Create An Order
|
|
7509
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7510
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
7511
|
-
* @param {*} [options] Override http request option.
|
|
7512
|
-
* @throws {RequiredError}
|
|
7513
|
-
*/
|
|
7514
|
-
postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
|
|
7515
|
-
var args_1 = [];
|
|
7516
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
7517
|
-
args_1[_i - 2] = arguments[_i];
|
|
7518
|
-
}
|
|
7519
|
-
return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
|
|
7520
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
7521
|
-
if (options === void 0) { options = {}; }
|
|
7522
|
-
return __generator(this, function (_a) {
|
|
7523
|
-
localVarPath = "/orders";
|
|
7524
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7525
|
-
if (configuration) {
|
|
7526
|
-
baseOptions = configuration.baseOptions;
|
|
7527
|
-
}
|
|
7528
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
7529
|
-
localVarHeaderParameter = {};
|
|
7530
|
-
localVarQueryParameter = {};
|
|
7531
|
-
if (readonly !== undefined) {
|
|
7532
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
7533
|
-
}
|
|
7534
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7535
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7536
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7537
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7538
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
|
|
7539
|
-
return [2 /*return*/, {
|
|
7540
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7541
|
-
options: localVarRequestOptions,
|
|
7542
|
-
}];
|
|
7543
|
-
});
|
|
7544
|
-
});
|
|
7545
|
-
},
|
|
7546
|
-
/**
|
|
7547
|
-
* Update An Order (Admin)
|
|
7548
|
-
* @summary Update An Order (Admin)
|
|
7549
|
-
* @param {number} id Order ID
|
|
7550
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7551
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
7552
|
-
* @param {*} [options] Override http request option.
|
|
7553
|
-
* @throws {RequiredError}
|
|
7554
|
-
*/
|
|
7555
|
-
putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
|
|
7556
|
-
var args_1 = [];
|
|
7557
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
7558
|
-
args_1[_i - 3] = arguments[_i];
|
|
7559
|
-
}
|
|
7560
|
-
return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
|
|
7561
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
7562
|
-
if (options === void 0) { options = {}; }
|
|
7563
|
-
return __generator(this, function (_a) {
|
|
7564
|
-
// verify required parameter 'id' is not null or undefined
|
|
7565
|
-
(0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
|
|
7566
|
-
localVarPath = "/admin/orders/{id}"
|
|
7567
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
7568
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7569
|
-
if (configuration) {
|
|
7570
|
-
baseOptions = configuration.baseOptions;
|
|
7571
|
-
}
|
|
7572
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
7573
|
-
localVarHeaderParameter = {};
|
|
7574
|
-
localVarQueryParameter = {};
|
|
7575
|
-
if (readonly !== undefined) {
|
|
7576
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
7577
|
-
}
|
|
7578
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7579
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7580
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7581
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7582
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
|
|
7583
|
-
return [2 /*return*/, {
|
|
7584
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7585
|
-
options: localVarRequestOptions,
|
|
7586
|
-
}];
|
|
7587
|
-
});
|
|
7588
|
-
});
|
|
7589
|
-
},
|
|
7590
|
-
/**
|
|
7591
|
-
* Update An Order
|
|
7592
|
-
* @summary Update An Order
|
|
7593
|
-
* @param {number} id Order ID
|
|
7594
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7595
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
7596
|
-
* @param {*} [options] Override http request option.
|
|
7597
|
-
* @throws {RequiredError}
|
|
7598
|
-
*/
|
|
7599
|
-
putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
|
|
7600
|
-
var args_1 = [];
|
|
7601
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
7602
|
-
args_1[_i - 3] = arguments[_i];
|
|
7603
|
-
}
|
|
7604
|
-
return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
|
|
7605
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
7606
|
-
if (options === void 0) { options = {}; }
|
|
7607
|
-
return __generator(this, function (_a) {
|
|
7608
|
-
// verify required parameter 'id' is not null or undefined
|
|
7609
|
-
(0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
|
|
7610
|
-
localVarPath = "/orders/{id}"
|
|
7611
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
7612
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7613
|
-
if (configuration) {
|
|
7614
|
-
baseOptions = configuration.baseOptions;
|
|
7615
|
-
}
|
|
7616
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
7617
|
-
localVarHeaderParameter = {};
|
|
7618
|
-
localVarQueryParameter = {};
|
|
7619
|
-
if (readonly !== undefined) {
|
|
7620
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
7621
|
-
}
|
|
7622
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7623
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7624
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7625
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7626
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
|
|
7627
|
-
return [2 /*return*/, {
|
|
7628
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7629
|
-
options: localVarRequestOptions,
|
|
7630
|
-
}];
|
|
7631
|
-
});
|
|
7632
|
-
});
|
|
7633
|
-
},
|
|
7634
|
-
};
|
|
7635
|
-
};
|
|
7636
|
-
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
7637
|
-
/**
|
|
7638
|
-
* OrdersApi - functional programming interface
|
|
7639
|
-
* @export
|
|
7640
|
-
*/
|
|
7641
|
-
var OrdersApiFp = function (configuration) {
|
|
7642
|
-
var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
7643
|
-
return {
|
|
7644
|
-
/**
|
|
7645
|
-
* Delete Orders
|
|
7646
|
-
* @summary Delete Orders
|
|
7647
|
-
* @param {number} id Order ID
|
|
7648
|
-
* @param {*} [options] Override http request option.
|
|
7649
|
-
* @throws {RequiredError}
|
|
7650
|
-
*/
|
|
7651
|
-
deleteUpdateOrder: function (id, options) {
|
|
7652
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7653
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7654
|
-
var _a, _b, _c;
|
|
7655
|
-
return __generator(this, function (_d) {
|
|
7656
|
-
switch (_d.label) {
|
|
7657
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
|
|
7658
|
-
case 1:
|
|
7659
|
-
localVarAxiosArgs = _d.sent();
|
|
7660
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7661
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7662
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7663
|
-
}
|
|
7664
|
-
});
|
|
7665
|
-
});
|
|
7666
|
-
},
|
|
7667
|
-
/**
|
|
7668
|
-
* Get Editable Order
|
|
7669
|
-
* @param {number} id Order ID
|
|
7670
|
-
* @param {*} [options] Override http request option.
|
|
7671
|
-
* @throws {RequiredError}
|
|
7672
|
-
*/
|
|
7673
|
-
getGetEditableOrder: function (id, options) {
|
|
7674
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7675
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7676
|
-
var _a, _b, _c;
|
|
7677
|
-
return __generator(this, function (_d) {
|
|
7678
|
-
switch (_d.label) {
|
|
7679
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
|
|
7680
|
-
case 1:
|
|
7681
|
-
localVarAxiosArgs = _d.sent();
|
|
7682
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7683
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7684
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7355
|
+
deleteDeleteOrder: function (id, options) {
|
|
7356
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7357
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7358
|
+
var _a, _b, _c;
|
|
7359
|
+
return __generator(this, function (_d) {
|
|
7360
|
+
switch (_d.label) {
|
|
7361
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteOrder(id, options)];
|
|
7362
|
+
case 1:
|
|
7363
|
+
localVarAxiosArgs = _d.sent();
|
|
7364
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7365
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteDeleteOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7366
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7685
7367
|
}
|
|
7686
7368
|
});
|
|
7687
7369
|
});
|
|
@@ -7715,104 +7397,6 @@ var OrdersApiFp = function (configuration) {
|
|
|
7715
7397
|
});
|
|
7716
7398
|
});
|
|
7717
7399
|
},
|
|
7718
|
-
/**
|
|
7719
|
-
* Create An Order (Admin)
|
|
7720
|
-
* @summary Create An Order (Admin)
|
|
7721
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7722
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
7723
|
-
* @param {*} [options] Override http request option.
|
|
7724
|
-
* @throws {RequiredError}
|
|
7725
|
-
*/
|
|
7726
|
-
postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
|
|
7727
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7728
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7729
|
-
var _a, _b, _c;
|
|
7730
|
-
return __generator(this, function (_d) {
|
|
7731
|
-
switch (_d.label) {
|
|
7732
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
|
|
7733
|
-
case 1:
|
|
7734
|
-
localVarAxiosArgs = _d.sent();
|
|
7735
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7736
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7737
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7738
|
-
}
|
|
7739
|
-
});
|
|
7740
|
-
});
|
|
7741
|
-
},
|
|
7742
|
-
/**
|
|
7743
|
-
* Create An Order
|
|
7744
|
-
* @summary Create An Order
|
|
7745
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7746
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
7747
|
-
* @param {*} [options] Override http request option.
|
|
7748
|
-
* @throws {RequiredError}
|
|
7749
|
-
*/
|
|
7750
|
-
postGetOrders: function (readonly, customerOrderRequestDTO, options) {
|
|
7751
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7752
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7753
|
-
var _a, _b, _c;
|
|
7754
|
-
return __generator(this, function (_d) {
|
|
7755
|
-
switch (_d.label) {
|
|
7756
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
|
|
7757
|
-
case 1:
|
|
7758
|
-
localVarAxiosArgs = _d.sent();
|
|
7759
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7760
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7761
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7762
|
-
}
|
|
7763
|
-
});
|
|
7764
|
-
});
|
|
7765
|
-
},
|
|
7766
|
-
/**
|
|
7767
|
-
* Update An Order (Admin)
|
|
7768
|
-
* @summary Update An Order (Admin)
|
|
7769
|
-
* @param {number} id Order ID
|
|
7770
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7771
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
7772
|
-
* @param {*} [options] Override http request option.
|
|
7773
|
-
* @throws {RequiredError}
|
|
7774
|
-
*/
|
|
7775
|
-
putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
|
|
7776
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7777
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7778
|
-
var _a, _b, _c;
|
|
7779
|
-
return __generator(this, function (_d) {
|
|
7780
|
-
switch (_d.label) {
|
|
7781
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
|
|
7782
|
-
case 1:
|
|
7783
|
-
localVarAxiosArgs = _d.sent();
|
|
7784
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7785
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7786
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7787
|
-
}
|
|
7788
|
-
});
|
|
7789
|
-
});
|
|
7790
|
-
},
|
|
7791
|
-
/**
|
|
7792
|
-
* Update An Order
|
|
7793
|
-
* @summary Update An Order
|
|
7794
|
-
* @param {number} id Order ID
|
|
7795
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7796
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
7797
|
-
* @param {*} [options] Override http request option.
|
|
7798
|
-
* @throws {RequiredError}
|
|
7799
|
-
*/
|
|
7800
|
-
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
7801
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7802
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7803
|
-
var _a, _b, _c;
|
|
7804
|
-
return __generator(this, function (_d) {
|
|
7805
|
-
switch (_d.label) {
|
|
7806
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options)];
|
|
7807
|
-
case 1:
|
|
7808
|
-
localVarAxiosArgs = _d.sent();
|
|
7809
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7810
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7811
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7812
|
-
}
|
|
7813
|
-
});
|
|
7814
|
-
});
|
|
7815
|
-
},
|
|
7816
7400
|
};
|
|
7817
7401
|
};
|
|
7818
7402
|
exports.OrdersApiFp = OrdersApiFp;
|
|
@@ -7825,22 +7409,12 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
7825
7409
|
return {
|
|
7826
7410
|
/**
|
|
7827
7411
|
* Delete Orders
|
|
7828
|
-
* @summary Delete Orders
|
|
7829
|
-
* @param {number} id Order ID
|
|
7830
|
-
* @param {*} [options] Override http request option.
|
|
7831
|
-
* @throws {RequiredError}
|
|
7832
|
-
*/
|
|
7833
|
-
deleteUpdateOrder: function (id, options) {
|
|
7834
|
-
return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
7835
|
-
},
|
|
7836
|
-
/**
|
|
7837
|
-
* Get Editable Order
|
|
7838
7412
|
* @param {number} id Order ID
|
|
7839
7413
|
* @param {*} [options] Override http request option.
|
|
7840
7414
|
* @throws {RequiredError}
|
|
7841
7415
|
*/
|
|
7842
|
-
|
|
7843
|
-
return localVarFp.
|
|
7416
|
+
deleteDeleteOrder: function (id, options) {
|
|
7417
|
+
return localVarFp.deleteDeleteOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
7844
7418
|
},
|
|
7845
7419
|
/**
|
|
7846
7420
|
* Get Orders
|
|
@@ -7858,52 +7432,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
7858
7432
|
getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
|
|
7859
7433
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
7860
7434
|
},
|
|
7861
|
-
/**
|
|
7862
|
-
* Create An Order (Admin)
|
|
7863
|
-
* @summary Create An Order (Admin)
|
|
7864
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7865
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
7866
|
-
* @param {*} [options] Override http request option.
|
|
7867
|
-
* @throws {RequiredError}
|
|
7868
|
-
*/
|
|
7869
|
-
postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
|
|
7870
|
-
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
7871
|
-
},
|
|
7872
|
-
/**
|
|
7873
|
-
* Create An Order
|
|
7874
|
-
* @summary Create An Order
|
|
7875
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7876
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
7877
|
-
* @param {*} [options] Override http request option.
|
|
7878
|
-
* @throws {RequiredError}
|
|
7879
|
-
*/
|
|
7880
|
-
postGetOrders: function (readonly, customerOrderRequestDTO, options) {
|
|
7881
|
-
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
7882
|
-
},
|
|
7883
|
-
/**
|
|
7884
|
-
* Update An Order (Admin)
|
|
7885
|
-
* @summary Update An Order (Admin)
|
|
7886
|
-
* @param {number} id Order ID
|
|
7887
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7888
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
7889
|
-
* @param {*} [options] Override http request option.
|
|
7890
|
-
* @throws {RequiredError}
|
|
7891
|
-
*/
|
|
7892
|
-
putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
|
|
7893
|
-
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
7894
|
-
},
|
|
7895
|
-
/**
|
|
7896
|
-
* Update An Order
|
|
7897
|
-
* @summary Update An Order
|
|
7898
|
-
* @param {number} id Order ID
|
|
7899
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7900
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
7901
|
-
* @param {*} [options] Override http request option.
|
|
7902
|
-
* @throws {RequiredError}
|
|
7903
|
-
*/
|
|
7904
|
-
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
7905
|
-
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
7906
|
-
},
|
|
7907
7435
|
};
|
|
7908
7436
|
};
|
|
7909
7437
|
exports.OrdersApiFactory = OrdersApiFactory;
|
|
@@ -7920,26 +7448,14 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
7920
7448
|
}
|
|
7921
7449
|
/**
|
|
7922
7450
|
* Delete Orders
|
|
7923
|
-
* @summary Delete Orders
|
|
7924
7451
|
* @param {number} id Order ID
|
|
7925
7452
|
* @param {*} [options] Override http request option.
|
|
7926
7453
|
* @throws {RequiredError}
|
|
7927
7454
|
* @memberof OrdersApi
|
|
7928
7455
|
*/
|
|
7929
|
-
OrdersApi.prototype.
|
|
7456
|
+
OrdersApi.prototype.deleteDeleteOrder = function (id, options) {
|
|
7930
7457
|
var _this = this;
|
|
7931
|
-
return (0, exports.OrdersApiFp)(this.configuration).
|
|
7932
|
-
};
|
|
7933
|
-
/**
|
|
7934
|
-
* Get Editable Order
|
|
7935
|
-
* @param {number} id Order ID
|
|
7936
|
-
* @param {*} [options] Override http request option.
|
|
7937
|
-
* @throws {RequiredError}
|
|
7938
|
-
* @memberof OrdersApi
|
|
7939
|
-
*/
|
|
7940
|
-
OrdersApi.prototype.getGetEditableOrder = function (id, options) {
|
|
7941
|
-
var _this = this;
|
|
7942
|
-
return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7458
|
+
return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7943
7459
|
};
|
|
7944
7460
|
/**
|
|
7945
7461
|
* Get Orders
|
|
@@ -7959,60 +7475,6 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
7959
7475
|
var _this = this;
|
|
7960
7476
|
return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7961
7477
|
};
|
|
7962
|
-
/**
|
|
7963
|
-
* Create An Order (Admin)
|
|
7964
|
-
* @summary Create An Order (Admin)
|
|
7965
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7966
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
7967
|
-
* @param {*} [options] Override http request option.
|
|
7968
|
-
* @throws {RequiredError}
|
|
7969
|
-
* @memberof OrdersApi
|
|
7970
|
-
*/
|
|
7971
|
-
OrdersApi.prototype.postCreateAdminOrder = function (readonly, adminOrderRequestDTO, options) {
|
|
7972
|
-
var _this = this;
|
|
7973
|
-
return (0, exports.OrdersApiFp)(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7974
|
-
};
|
|
7975
|
-
/**
|
|
7976
|
-
* Create An Order
|
|
7977
|
-
* @summary Create An Order
|
|
7978
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7979
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
7980
|
-
* @param {*} [options] Override http request option.
|
|
7981
|
-
* @throws {RequiredError}
|
|
7982
|
-
* @memberof OrdersApi
|
|
7983
|
-
*/
|
|
7984
|
-
OrdersApi.prototype.postGetOrders = function (readonly, customerOrderRequestDTO, options) {
|
|
7985
|
-
var _this = this;
|
|
7986
|
-
return (0, exports.OrdersApiFp)(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7987
|
-
};
|
|
7988
|
-
/**
|
|
7989
|
-
* Update An Order (Admin)
|
|
7990
|
-
* @summary Update An Order (Admin)
|
|
7991
|
-
* @param {number} id Order ID
|
|
7992
|
-
* @param {boolean} [readonly] Readonly Order
|
|
7993
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
7994
|
-
* @param {*} [options] Override http request option.
|
|
7995
|
-
* @throws {RequiredError}
|
|
7996
|
-
* @memberof OrdersApi
|
|
7997
|
-
*/
|
|
7998
|
-
OrdersApi.prototype.putUpdateAdminOrder = function (id, readonly, adminOrderRequestDTO, options) {
|
|
7999
|
-
var _this = this;
|
|
8000
|
-
return (0, exports.OrdersApiFp)(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8001
|
-
};
|
|
8002
|
-
/**
|
|
8003
|
-
* Update An Order
|
|
8004
|
-
* @summary Update An Order
|
|
8005
|
-
* @param {number} id Order ID
|
|
8006
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8007
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8008
|
-
* @param {*} [options] Override http request option.
|
|
8009
|
-
* @throws {RequiredError}
|
|
8010
|
-
* @memberof OrdersApi
|
|
8011
|
-
*/
|
|
8012
|
-
OrdersApi.prototype.putUpdateOrder = function (id, readonly, customerOrderRequestDTO, options) {
|
|
8013
|
-
var _this = this;
|
|
8014
|
-
return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8015
|
-
};
|
|
8016
7478
|
return OrdersApi;
|
|
8017
7479
|
}(base_1.BaseAPI));
|
|
8018
7480
|
exports.OrdersApi = OrdersApi;
|
|
@@ -8440,52 +7902,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8440
7902
|
});
|
|
8441
7903
|
},
|
|
8442
7904
|
/**
|
|
8443
|
-
* Get
|
|
8444
|
-
* @summary Get
|
|
8445
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
7905
|
+
* Get Customer Price Lists
|
|
7906
|
+
* @summary Get Customer Price Lists
|
|
8446
7907
|
* @param {*} [options] Override http request option.
|
|
8447
|
-
* @deprecated
|
|
8448
7908
|
* @throws {RequiredError}
|
|
8449
7909
|
*/
|
|
8450
|
-
|
|
8451
|
-
var args_1 = [];
|
|
8452
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8453
|
-
args_1[_i - 1] = arguments[_i];
|
|
8454
|
-
}
|
|
8455
|
-
return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
|
|
8456
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8457
|
-
if (options === void 0) { options = {}; }
|
|
8458
|
-
return __generator(this, function (_a) {
|
|
8459
|
-
// verify required parameter 'format' is not null or undefined
|
|
8460
|
-
(0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
|
|
8461
|
-
localVarPath = "/products/stock/legacy";
|
|
8462
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8463
|
-
if (configuration) {
|
|
8464
|
-
baseOptions = configuration.baseOptions;
|
|
8465
|
-
}
|
|
8466
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8467
|
-
localVarHeaderParameter = {};
|
|
8468
|
-
localVarQueryParameter = {};
|
|
8469
|
-
if (format !== undefined) {
|
|
8470
|
-
localVarQueryParameter['format'] = format;
|
|
8471
|
-
}
|
|
8472
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8473
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8474
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8475
|
-
return [2 /*return*/, {
|
|
8476
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8477
|
-
options: localVarRequestOptions,
|
|
8478
|
-
}];
|
|
8479
|
-
});
|
|
8480
|
-
});
|
|
8481
|
-
},
|
|
8482
|
-
/**
|
|
8483
|
-
* Get Products
|
|
8484
|
-
* @summary Get Products
|
|
8485
|
-
* @param {*} [options] Override http request option.
|
|
8486
|
-
* @throws {RequiredError}
|
|
8487
|
-
*/
|
|
8488
|
-
getGetProducts: function () {
|
|
7910
|
+
getGetCustomerPriceLists: function () {
|
|
8489
7911
|
var args_1 = [];
|
|
8490
7912
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8491
7913
|
args_1[_i] = arguments[_i];
|
|
@@ -8494,7 +7916,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8494
7916
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8495
7917
|
if (options === void 0) { options = {}; }
|
|
8496
7918
|
return __generator(this, function (_a) {
|
|
8497
|
-
localVarPath = "/products";
|
|
7919
|
+
localVarPath = "/products/prices/lists";
|
|
8498
7920
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8499
7921
|
if (configuration) {
|
|
8500
7922
|
baseOptions = configuration.baseOptions;
|
|
@@ -8515,52 +7937,23 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8515
7937
|
/**
|
|
8516
7938
|
* Get Current Stock & Pricing
|
|
8517
7939
|
* @summary Get Current Stock & Pricing
|
|
7940
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
8518
7941
|
* @param {*} [options] Override http request option.
|
|
7942
|
+
* @deprecated
|
|
8519
7943
|
* @throws {RequiredError}
|
|
8520
7944
|
*/
|
|
8521
|
-
|
|
8522
|
-
var args_1 = [];
|
|
8523
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8524
|
-
args_1[_i] = arguments[_i];
|
|
8525
|
-
}
|
|
8526
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
8527
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8528
|
-
if (options === void 0) { options = {}; }
|
|
8529
|
-
return __generator(this, function (_a) {
|
|
8530
|
-
localVarPath = "/products/stock";
|
|
8531
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8532
|
-
if (configuration) {
|
|
8533
|
-
baseOptions = configuration.baseOptions;
|
|
8534
|
-
}
|
|
8535
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8536
|
-
localVarHeaderParameter = {};
|
|
8537
|
-
localVarQueryParameter = {};
|
|
8538
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8539
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8540
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8541
|
-
return [2 /*return*/, {
|
|
8542
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8543
|
-
options: localVarRequestOptions,
|
|
8544
|
-
}];
|
|
8545
|
-
});
|
|
8546
|
-
});
|
|
8547
|
-
},
|
|
8548
|
-
/**
|
|
8549
|
-
* Get 3CX Templates
|
|
8550
|
-
* @summary Get 3CX Templates
|
|
8551
|
-
* @param {*} [options] Override http request option.
|
|
8552
|
-
* @throws {RequiredError}
|
|
8553
|
-
*/
|
|
8554
|
-
getGetTcxTemplates: function () {
|
|
7945
|
+
getGetLegacyStockList: function (format_1) {
|
|
8555
7946
|
var args_1 = [];
|
|
8556
|
-
for (var _i =
|
|
8557
|
-
args_1[_i] = arguments[_i];
|
|
7947
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
7948
|
+
args_1[_i - 1] = arguments[_i];
|
|
8558
7949
|
}
|
|
8559
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
7950
|
+
return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
|
|
8560
7951
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8561
7952
|
if (options === void 0) { options = {}; }
|
|
8562
7953
|
return __generator(this, function (_a) {
|
|
8563
|
-
|
|
7954
|
+
// verify required parameter 'format' is not null or undefined
|
|
7955
|
+
(0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
|
|
7956
|
+
localVarPath = "/products/stock/legacy";
|
|
8564
7957
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8565
7958
|
if (configuration) {
|
|
8566
7959
|
baseOptions = configuration.baseOptions;
|
|
@@ -8568,6 +7961,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8568
7961
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8569
7962
|
localVarHeaderParameter = {};
|
|
8570
7963
|
localVarQueryParameter = {};
|
|
7964
|
+
if (format !== undefined) {
|
|
7965
|
+
localVarQueryParameter['format'] = format;
|
|
7966
|
+
}
|
|
8571
7967
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8572
7968
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8573
7969
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8579,15 +7975,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8579
7975
|
});
|
|
8580
7976
|
},
|
|
8581
7977
|
/**
|
|
8582
|
-
*
|
|
8583
|
-
* @summary
|
|
7978
|
+
* Get Products
|
|
7979
|
+
* @summary Get Products
|
|
8584
7980
|
* @param {number} [pageSize] Number Of Results
|
|
8585
7981
|
* @param {number} [page] Page Number
|
|
8586
7982
|
* @param {string} [search] Search
|
|
8587
7983
|
* @param {*} [options] Override http request option.
|
|
8588
7984
|
* @throws {RequiredError}
|
|
8589
7985
|
*/
|
|
8590
|
-
|
|
7986
|
+
getGetProducts: function (pageSize_1, page_1, search_1) {
|
|
8591
7987
|
var args_1 = [];
|
|
8592
7988
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8593
7989
|
args_1[_i - 3] = arguments[_i];
|
|
@@ -8624,40 +8020,31 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8624
8020
|
});
|
|
8625
8021
|
},
|
|
8626
8022
|
/**
|
|
8627
|
-
* Get
|
|
8628
|
-
* @summary Get
|
|
8629
|
-
* @param {string} sku Product SKU
|
|
8630
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8023
|
+
* Get Current Stock & Pricing
|
|
8024
|
+
* @summary Get Current Stock & Pricing
|
|
8631
8025
|
* @param {*} [options] Override http request option.
|
|
8632
8026
|
* @throws {RequiredError}
|
|
8633
8027
|
*/
|
|
8634
|
-
|
|
8028
|
+
getGetStockList: function () {
|
|
8635
8029
|
var args_1 = [];
|
|
8636
|
-
for (var _i =
|
|
8637
|
-
args_1[_i
|
|
8030
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8031
|
+
args_1[_i] = arguments[_i];
|
|
8638
8032
|
}
|
|
8639
|
-
return __awaiter(_this, __spreadArray([
|
|
8033
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
8640
8034
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8641
8035
|
if (options === void 0) { options = {}; }
|
|
8642
8036
|
return __generator(this, function (_a) {
|
|
8643
|
-
|
|
8644
|
-
(0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
|
|
8645
|
-
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
8646
|
-
(0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
8647
|
-
localVarPath = "/products/{sku}"
|
|
8648
|
-
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8037
|
+
localVarPath = "/products/stock";
|
|
8649
8038
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8650
8039
|
if (configuration) {
|
|
8651
8040
|
baseOptions = configuration.baseOptions;
|
|
8652
8041
|
}
|
|
8653
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
8042
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8654
8043
|
localVarHeaderParameter = {};
|
|
8655
8044
|
localVarQueryParameter = {};
|
|
8656
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8657
8045
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8658
8046
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8659
8047
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8660
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
8661
8048
|
return [2 /*return*/, {
|
|
8662
8049
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8663
8050
|
options: localVarRequestOptions,
|
|
@@ -8666,46 +8053,31 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8666
8053
|
});
|
|
8667
8054
|
},
|
|
8668
8055
|
/**
|
|
8669
|
-
* Get
|
|
8670
|
-
* @summary Get
|
|
8671
|
-
* @param {number} customerId Customer ID
|
|
8672
|
-
* @param {string} sku Product SKU
|
|
8673
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8056
|
+
* Get 3CX Templates
|
|
8057
|
+
* @summary Get 3CX Templates
|
|
8674
8058
|
* @param {*} [options] Override http request option.
|
|
8675
8059
|
* @throws {RequiredError}
|
|
8676
8060
|
*/
|
|
8677
|
-
|
|
8061
|
+
getGetTcxTemplates: function () {
|
|
8678
8062
|
var args_1 = [];
|
|
8679
|
-
for (var _i =
|
|
8680
|
-
args_1[_i
|
|
8063
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8064
|
+
args_1[_i] = arguments[_i];
|
|
8681
8065
|
}
|
|
8682
|
-
return __awaiter(_this, __spreadArray([
|
|
8066
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
8683
8067
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8684
8068
|
if (options === void 0) { options = {}; }
|
|
8685
8069
|
return __generator(this, function (_a) {
|
|
8686
|
-
|
|
8687
|
-
(0, common_1.assertParamExists)('postGetProductForCustomer', 'customerId', customerId);
|
|
8688
|
-
// verify required parameter 'sku' is not null or undefined
|
|
8689
|
-
(0, common_1.assertParamExists)('postGetProductForCustomer', 'sku', sku);
|
|
8690
|
-
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
8691
|
-
(0, common_1.assertParamExists)('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
8692
|
-
localVarPath = "/admin/products/{sku}"
|
|
8693
|
-
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8070
|
+
localVarPath = "/products/attributes/tcx/templates";
|
|
8694
8071
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8695
8072
|
if (configuration) {
|
|
8696
8073
|
baseOptions = configuration.baseOptions;
|
|
8697
8074
|
}
|
|
8698
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
8075
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8699
8076
|
localVarHeaderParameter = {};
|
|
8700
8077
|
localVarQueryParameter = {};
|
|
8701
|
-
if (customerId !== undefined) {
|
|
8702
|
-
localVarQueryParameter['customerId'] = customerId;
|
|
8703
|
-
}
|
|
8704
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8705
8078
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8706
8079
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8707
8080
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8708
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
8709
8081
|
return [2 /*return*/, {
|
|
8710
8082
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8711
8083
|
options: localVarRequestOptions,
|
|
@@ -8746,46 +8118,22 @@ var ProductsApiFp = function (configuration) {
|
|
|
8746
8118
|
});
|
|
8747
8119
|
},
|
|
8748
8120
|
/**
|
|
8749
|
-
* Get
|
|
8750
|
-
* @summary Get
|
|
8751
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
8752
|
-
* @param {*} [options] Override http request option.
|
|
8753
|
-
* @deprecated
|
|
8754
|
-
* @throws {RequiredError}
|
|
8755
|
-
*/
|
|
8756
|
-
getGetLegacyStockList: function (format, options) {
|
|
8757
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8758
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8759
|
-
var _a, _b, _c;
|
|
8760
|
-
return __generator(this, function (_d) {
|
|
8761
|
-
switch (_d.label) {
|
|
8762
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
|
|
8763
|
-
case 1:
|
|
8764
|
-
localVarAxiosArgs = _d.sent();
|
|
8765
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8766
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8767
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8768
|
-
}
|
|
8769
|
-
});
|
|
8770
|
-
});
|
|
8771
|
-
},
|
|
8772
|
-
/**
|
|
8773
|
-
* Get Products
|
|
8774
|
-
* @summary Get Products
|
|
8121
|
+
* Get Customer Price Lists
|
|
8122
|
+
* @summary Get Customer Price Lists
|
|
8775
8123
|
* @param {*} [options] Override http request option.
|
|
8776
8124
|
* @throws {RequiredError}
|
|
8777
8125
|
*/
|
|
8778
|
-
|
|
8126
|
+
getGetCustomerPriceLists: function (options) {
|
|
8779
8127
|
return __awaiter(this, void 0, void 0, function () {
|
|
8780
8128
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8781
8129
|
var _a, _b, _c;
|
|
8782
8130
|
return __generator(this, function (_d) {
|
|
8783
8131
|
switch (_d.label) {
|
|
8784
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8132
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerPriceLists(options)];
|
|
8785
8133
|
case 1:
|
|
8786
8134
|
localVarAxiosArgs = _d.sent();
|
|
8787
8135
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8788
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8136
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetCustomerPriceLists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8789
8137
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8790
8138
|
}
|
|
8791
8139
|
});
|
|
@@ -8794,116 +8142,91 @@ var ProductsApiFp = function (configuration) {
|
|
|
8794
8142
|
/**
|
|
8795
8143
|
* Get Current Stock & Pricing
|
|
8796
8144
|
* @summary Get Current Stock & Pricing
|
|
8145
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
8797
8146
|
* @param {*} [options] Override http request option.
|
|
8147
|
+
* @deprecated
|
|
8798
8148
|
* @throws {RequiredError}
|
|
8799
8149
|
*/
|
|
8800
|
-
|
|
8801
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8802
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8803
|
-
var _a, _b, _c;
|
|
8804
|
-
return __generator(this, function (_d) {
|
|
8805
|
-
switch (_d.label) {
|
|
8806
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
|
|
8807
|
-
case 1:
|
|
8808
|
-
localVarAxiosArgs = _d.sent();
|
|
8809
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8810
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8811
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8812
|
-
}
|
|
8813
|
-
});
|
|
8814
|
-
});
|
|
8815
|
-
},
|
|
8816
|
-
/**
|
|
8817
|
-
* Get 3CX Templates
|
|
8818
|
-
* @summary Get 3CX Templates
|
|
8819
|
-
* @param {*} [options] Override http request option.
|
|
8820
|
-
* @throws {RequiredError}
|
|
8821
|
-
*/
|
|
8822
|
-
getGetTcxTemplates: function (options) {
|
|
8150
|
+
getGetLegacyStockList: function (format, options) {
|
|
8823
8151
|
return __awaiter(this, void 0, void 0, function () {
|
|
8824
8152
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8825
8153
|
var _a, _b, _c;
|
|
8826
8154
|
return __generator(this, function (_d) {
|
|
8827
8155
|
switch (_d.label) {
|
|
8828
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8156
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
|
|
8829
8157
|
case 1:
|
|
8830
8158
|
localVarAxiosArgs = _d.sent();
|
|
8831
8159
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8832
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8160
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8833
8161
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8834
8162
|
}
|
|
8835
8163
|
});
|
|
8836
8164
|
});
|
|
8837
8165
|
},
|
|
8838
8166
|
/**
|
|
8839
|
-
*
|
|
8840
|
-
* @summary
|
|
8167
|
+
* Get Products
|
|
8168
|
+
* @summary Get Products
|
|
8841
8169
|
* @param {number} [pageSize] Number Of Results
|
|
8842
8170
|
* @param {number} [page] Page Number
|
|
8843
8171
|
* @param {string} [search] Search
|
|
8844
8172
|
* @param {*} [options] Override http request option.
|
|
8845
8173
|
* @throws {RequiredError}
|
|
8846
8174
|
*/
|
|
8847
|
-
|
|
8175
|
+
getGetProducts: function (pageSize, page, search, options) {
|
|
8848
8176
|
return __awaiter(this, void 0, void 0, function () {
|
|
8849
8177
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8850
8178
|
var _a, _b, _c;
|
|
8851
8179
|
return __generator(this, function (_d) {
|
|
8852
8180
|
switch (_d.label) {
|
|
8853
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8181
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(pageSize, page, search, options)];
|
|
8854
8182
|
case 1:
|
|
8855
8183
|
localVarAxiosArgs = _d.sent();
|
|
8856
8184
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8857
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8185
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8858
8186
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8859
8187
|
}
|
|
8860
8188
|
});
|
|
8861
8189
|
});
|
|
8862
8190
|
},
|
|
8863
8191
|
/**
|
|
8864
|
-
* Get
|
|
8865
|
-
* @summary Get
|
|
8866
|
-
* @param {string} sku Product SKU
|
|
8867
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8192
|
+
* Get Current Stock & Pricing
|
|
8193
|
+
* @summary Get Current Stock & Pricing
|
|
8868
8194
|
* @param {*} [options] Override http request option.
|
|
8869
8195
|
* @throws {RequiredError}
|
|
8870
8196
|
*/
|
|
8871
|
-
|
|
8197
|
+
getGetStockList: function (options) {
|
|
8872
8198
|
return __awaiter(this, void 0, void 0, function () {
|
|
8873
8199
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8874
8200
|
var _a, _b, _c;
|
|
8875
8201
|
return __generator(this, function (_d) {
|
|
8876
8202
|
switch (_d.label) {
|
|
8877
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8203
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
|
|
8878
8204
|
case 1:
|
|
8879
8205
|
localVarAxiosArgs = _d.sent();
|
|
8880
8206
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8881
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8207
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8882
8208
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8883
8209
|
}
|
|
8884
8210
|
});
|
|
8885
8211
|
});
|
|
8886
8212
|
},
|
|
8887
8213
|
/**
|
|
8888
|
-
* Get
|
|
8889
|
-
* @summary Get
|
|
8890
|
-
* @param {number} customerId Customer ID
|
|
8891
|
-
* @param {string} sku Product SKU
|
|
8892
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8214
|
+
* Get 3CX Templates
|
|
8215
|
+
* @summary Get 3CX Templates
|
|
8893
8216
|
* @param {*} [options] Override http request option.
|
|
8894
8217
|
* @throws {RequiredError}
|
|
8895
8218
|
*/
|
|
8896
|
-
|
|
8219
|
+
getGetTcxTemplates: function (options) {
|
|
8897
8220
|
return __awaiter(this, void 0, void 0, function () {
|
|
8898
8221
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8899
8222
|
var _a, _b, _c;
|
|
8900
8223
|
return __generator(this, function (_d) {
|
|
8901
8224
|
switch (_d.label) {
|
|
8902
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8225
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
|
|
8903
8226
|
case 1:
|
|
8904
8227
|
localVarAxiosArgs = _d.sent();
|
|
8905
8228
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8906
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8229
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8907
8230
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8908
8231
|
}
|
|
8909
8232
|
});
|
|
@@ -8928,6 +8251,15 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
8928
8251
|
getGetAttributeSets: function (options) {
|
|
8929
8252
|
return localVarFp.getGetAttributeSets(options).then(function (request) { return request(axios, basePath); });
|
|
8930
8253
|
},
|
|
8254
|
+
/**
|
|
8255
|
+
* Get Customer Price Lists
|
|
8256
|
+
* @summary Get Customer Price Lists
|
|
8257
|
+
* @param {*} [options] Override http request option.
|
|
8258
|
+
* @throws {RequiredError}
|
|
8259
|
+
*/
|
|
8260
|
+
getGetCustomerPriceLists: function (options) {
|
|
8261
|
+
return localVarFp.getGetCustomerPriceLists(options).then(function (request) { return request(axios, basePath); });
|
|
8262
|
+
},
|
|
8931
8263
|
/**
|
|
8932
8264
|
* Get Current Stock & Pricing
|
|
8933
8265
|
* @summary Get Current Stock & Pricing
|
|
@@ -8942,11 +8274,14 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
8942
8274
|
/**
|
|
8943
8275
|
* Get Products
|
|
8944
8276
|
* @summary Get Products
|
|
8277
|
+
* @param {number} [pageSize] Number Of Results
|
|
8278
|
+
* @param {number} [page] Page Number
|
|
8279
|
+
* @param {string} [search] Search
|
|
8945
8280
|
* @param {*} [options] Override http request option.
|
|
8946
8281
|
* @throws {RequiredError}
|
|
8947
8282
|
*/
|
|
8948
|
-
getGetProducts: function (options) {
|
|
8949
|
-
return localVarFp.getGetProducts(options).then(function (request) { return request(axios, basePath); });
|
|
8283
|
+
getGetProducts: function (pageSize, page, search, options) {
|
|
8284
|
+
return localVarFp.getGetProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
8950
8285
|
},
|
|
8951
8286
|
/**
|
|
8952
8287
|
* Get Current Stock & Pricing
|
|
@@ -8966,41 +8301,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
8966
8301
|
getGetTcxTemplates: function (options) {
|
|
8967
8302
|
return localVarFp.getGetTcxTemplates(options).then(function (request) { return request(axios, basePath); });
|
|
8968
8303
|
},
|
|
8969
|
-
/**
|
|
8970
|
-
* Search Products
|
|
8971
|
-
* @summary Search Products
|
|
8972
|
-
* @param {number} [pageSize] Number Of Results
|
|
8973
|
-
* @param {number} [page] Page Number
|
|
8974
|
-
* @param {string} [search] Search
|
|
8975
|
-
* @param {*} [options] Override http request option.
|
|
8976
|
-
* @throws {RequiredError}
|
|
8977
|
-
*/
|
|
8978
|
-
getSearchProducts: function (pageSize, page, search, options) {
|
|
8979
|
-
return localVarFp.getSearchProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
8980
|
-
},
|
|
8981
|
-
/**
|
|
8982
|
-
* Get Product
|
|
8983
|
-
* @summary Get Product
|
|
8984
|
-
* @param {string} sku Product SKU
|
|
8985
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8986
|
-
* @param {*} [options] Override http request option.
|
|
8987
|
-
* @throws {RequiredError}
|
|
8988
|
-
*/
|
|
8989
|
-
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
8990
|
-
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
8991
|
-
},
|
|
8992
|
-
/**
|
|
8993
|
-
* Get Product For Customer
|
|
8994
|
-
* @summary Get Product For Customer
|
|
8995
|
-
* @param {number} customerId Customer ID
|
|
8996
|
-
* @param {string} sku Product SKU
|
|
8997
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8998
|
-
* @param {*} [options] Override http request option.
|
|
8999
|
-
* @throws {RequiredError}
|
|
9000
|
-
*/
|
|
9001
|
-
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
9002
|
-
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
9003
|
-
},
|
|
9004
8304
|
};
|
|
9005
8305
|
};
|
|
9006
8306
|
exports.ProductsApiFactory = ProductsApiFactory;
|
|
@@ -9026,6 +8326,17 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9026
8326
|
var _this = this;
|
|
9027
8327
|
return (0, exports.ProductsApiFp)(this.configuration).getGetAttributeSets(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9028
8328
|
};
|
|
8329
|
+
/**
|
|
8330
|
+
* Get Customer Price Lists
|
|
8331
|
+
* @summary Get Customer Price Lists
|
|
8332
|
+
* @param {*} [options] Override http request option.
|
|
8333
|
+
* @throws {RequiredError}
|
|
8334
|
+
* @memberof ProductsApi
|
|
8335
|
+
*/
|
|
8336
|
+
ProductsApi.prototype.getGetCustomerPriceLists = function (options) {
|
|
8337
|
+
var _this = this;
|
|
8338
|
+
return (0, exports.ProductsApiFp)(this.configuration).getGetCustomerPriceLists(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8339
|
+
};
|
|
9029
8340
|
/**
|
|
9030
8341
|
* Get Current Stock & Pricing
|
|
9031
8342
|
* @summary Get Current Stock & Pricing
|
|
@@ -9042,13 +8353,16 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9042
8353
|
/**
|
|
9043
8354
|
* Get Products
|
|
9044
8355
|
* @summary Get Products
|
|
8356
|
+
* @param {number} [pageSize] Number Of Results
|
|
8357
|
+
* @param {number} [page] Page Number
|
|
8358
|
+
* @param {string} [search] Search
|
|
9045
8359
|
* @param {*} [options] Override http request option.
|
|
9046
8360
|
* @throws {RequiredError}
|
|
9047
8361
|
* @memberof ProductsApi
|
|
9048
8362
|
*/
|
|
9049
|
-
ProductsApi.prototype.getGetProducts = function (options) {
|
|
8363
|
+
ProductsApi.prototype.getGetProducts = function (pageSize, page, search, options) {
|
|
9050
8364
|
var _this = this;
|
|
9051
|
-
return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8365
|
+
return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9052
8366
|
};
|
|
9053
8367
|
/**
|
|
9054
8368
|
* Get Current Stock & Pricing
|
|
@@ -9072,47 +8386,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9072
8386
|
var _this = this;
|
|
9073
8387
|
return (0, exports.ProductsApiFp)(this.configuration).getGetTcxTemplates(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9074
8388
|
};
|
|
9075
|
-
/**
|
|
9076
|
-
* Search Products
|
|
9077
|
-
* @summary Search Products
|
|
9078
|
-
* @param {number} [pageSize] Number Of Results
|
|
9079
|
-
* @param {number} [page] Page Number
|
|
9080
|
-
* @param {string} [search] Search
|
|
9081
|
-
* @param {*} [options] Override http request option.
|
|
9082
|
-
* @throws {RequiredError}
|
|
9083
|
-
* @memberof ProductsApi
|
|
9084
|
-
*/
|
|
9085
|
-
ProductsApi.prototype.getSearchProducts = function (pageSize, page, search, options) {
|
|
9086
|
-
var _this = this;
|
|
9087
|
-
return (0, exports.ProductsApiFp)(this.configuration).getSearchProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9088
|
-
};
|
|
9089
|
-
/**
|
|
9090
|
-
* Get Product
|
|
9091
|
-
* @summary Get Product
|
|
9092
|
-
* @param {string} sku Product SKU
|
|
9093
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9094
|
-
* @param {*} [options] Override http request option.
|
|
9095
|
-
* @throws {RequiredError}
|
|
9096
|
-
* @memberof ProductsApi
|
|
9097
|
-
*/
|
|
9098
|
-
ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
|
|
9099
|
-
var _this = this;
|
|
9100
|
-
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9101
|
-
};
|
|
9102
|
-
/**
|
|
9103
|
-
* Get Product For Customer
|
|
9104
|
-
* @summary Get Product For Customer
|
|
9105
|
-
* @param {number} customerId Customer ID
|
|
9106
|
-
* @param {string} sku Product SKU
|
|
9107
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9108
|
-
* @param {*} [options] Override http request option.
|
|
9109
|
-
* @throws {RequiredError}
|
|
9110
|
-
* @memberof ProductsApi
|
|
9111
|
-
*/
|
|
9112
|
-
ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
9113
|
-
var _this = this;
|
|
9114
|
-
return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9115
|
-
};
|
|
9116
8389
|
return ProductsApi;
|
|
9117
8390
|
}(base_1.BaseAPI));
|
|
9118
8391
|
exports.ProductsApi = ProductsApi;
|
|
@@ -11838,131 +11111,6 @@ var SMSApi = /** @class */ (function (_super) {
|
|
|
11838
11111
|
return SMSApi;
|
|
11839
11112
|
}(base_1.BaseAPI));
|
|
11840
11113
|
exports.SMSApi = SMSApi;
|
|
11841
|
-
/**
|
|
11842
|
-
* ShippingApi - axios parameter creator
|
|
11843
|
-
* @export
|
|
11844
|
-
*/
|
|
11845
|
-
var ShippingApiAxiosParamCreator = function (configuration) {
|
|
11846
|
-
var _this = this;
|
|
11847
|
-
return {
|
|
11848
|
-
/**
|
|
11849
|
-
* Get Shipping Services
|
|
11850
|
-
* @summary Get Shipping Services
|
|
11851
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
11852
|
-
* @param {*} [options] Override http request option.
|
|
11853
|
-
* @throws {RequiredError}
|
|
11854
|
-
*/
|
|
11855
|
-
postGetShippingServices: function (shippingInformationDTO_1) {
|
|
11856
|
-
var args_1 = [];
|
|
11857
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
11858
|
-
args_1[_i - 1] = arguments[_i];
|
|
11859
|
-
}
|
|
11860
|
-
return __awaiter(_this, __spreadArray([shippingInformationDTO_1], args_1, true), void 0, function (shippingInformationDTO, options) {
|
|
11861
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11862
|
-
if (options === void 0) { options = {}; }
|
|
11863
|
-
return __generator(this, function (_a) {
|
|
11864
|
-
localVarPath = "/shipping/services";
|
|
11865
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11866
|
-
if (configuration) {
|
|
11867
|
-
baseOptions = configuration.baseOptions;
|
|
11868
|
-
}
|
|
11869
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
11870
|
-
localVarHeaderParameter = {};
|
|
11871
|
-
localVarQueryParameter = {};
|
|
11872
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11873
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11874
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11875
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11876
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingInformationDTO, localVarRequestOptions, configuration);
|
|
11877
|
-
return [2 /*return*/, {
|
|
11878
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11879
|
-
options: localVarRequestOptions,
|
|
11880
|
-
}];
|
|
11881
|
-
});
|
|
11882
|
-
});
|
|
11883
|
-
},
|
|
11884
|
-
};
|
|
11885
|
-
};
|
|
11886
|
-
exports.ShippingApiAxiosParamCreator = ShippingApiAxiosParamCreator;
|
|
11887
|
-
/**
|
|
11888
|
-
* ShippingApi - functional programming interface
|
|
11889
|
-
* @export
|
|
11890
|
-
*/
|
|
11891
|
-
var ShippingApiFp = function (configuration) {
|
|
11892
|
-
var localVarAxiosParamCreator = (0, exports.ShippingApiAxiosParamCreator)(configuration);
|
|
11893
|
-
return {
|
|
11894
|
-
/**
|
|
11895
|
-
* Get Shipping Services
|
|
11896
|
-
* @summary Get Shipping Services
|
|
11897
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
11898
|
-
* @param {*} [options] Override http request option.
|
|
11899
|
-
* @throws {RequiredError}
|
|
11900
|
-
*/
|
|
11901
|
-
postGetShippingServices: function (shippingInformationDTO, options) {
|
|
11902
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
11903
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
11904
|
-
var _a, _b, _c;
|
|
11905
|
-
return __generator(this, function (_d) {
|
|
11906
|
-
switch (_d.label) {
|
|
11907
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options)];
|
|
11908
|
-
case 1:
|
|
11909
|
-
localVarAxiosArgs = _d.sent();
|
|
11910
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11911
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShippingApi.postGetShippingServices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11912
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
11913
|
-
}
|
|
11914
|
-
});
|
|
11915
|
-
});
|
|
11916
|
-
},
|
|
11917
|
-
};
|
|
11918
|
-
};
|
|
11919
|
-
exports.ShippingApiFp = ShippingApiFp;
|
|
11920
|
-
/**
|
|
11921
|
-
* ShippingApi - factory interface
|
|
11922
|
-
* @export
|
|
11923
|
-
*/
|
|
11924
|
-
var ShippingApiFactory = function (configuration, basePath, axios) {
|
|
11925
|
-
var localVarFp = (0, exports.ShippingApiFp)(configuration);
|
|
11926
|
-
return {
|
|
11927
|
-
/**
|
|
11928
|
-
* Get Shipping Services
|
|
11929
|
-
* @summary Get Shipping Services
|
|
11930
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
11931
|
-
* @param {*} [options] Override http request option.
|
|
11932
|
-
* @throws {RequiredError}
|
|
11933
|
-
*/
|
|
11934
|
-
postGetShippingServices: function (shippingInformationDTO, options) {
|
|
11935
|
-
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(axios, basePath); });
|
|
11936
|
-
},
|
|
11937
|
-
};
|
|
11938
|
-
};
|
|
11939
|
-
exports.ShippingApiFactory = ShippingApiFactory;
|
|
11940
|
-
/**
|
|
11941
|
-
* ShippingApi - object-oriented interface
|
|
11942
|
-
* @export
|
|
11943
|
-
* @class ShippingApi
|
|
11944
|
-
* @extends {BaseAPI}
|
|
11945
|
-
*/
|
|
11946
|
-
var ShippingApi = /** @class */ (function (_super) {
|
|
11947
|
-
__extends(ShippingApi, _super);
|
|
11948
|
-
function ShippingApi() {
|
|
11949
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
11950
|
-
}
|
|
11951
|
-
/**
|
|
11952
|
-
* Get Shipping Services
|
|
11953
|
-
* @summary Get Shipping Services
|
|
11954
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
11955
|
-
* @param {*} [options] Override http request option.
|
|
11956
|
-
* @throws {RequiredError}
|
|
11957
|
-
* @memberof ShippingApi
|
|
11958
|
-
*/
|
|
11959
|
-
ShippingApi.prototype.postGetShippingServices = function (shippingInformationDTO, options) {
|
|
11960
|
-
var _this = this;
|
|
11961
|
-
return (0, exports.ShippingApiFp)(this.configuration).postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11962
|
-
};
|
|
11963
|
-
return ShippingApi;
|
|
11964
|
-
}(base_1.BaseAPI));
|
|
11965
|
-
exports.ShippingApi = ShippingApi;
|
|
11966
11114
|
/**
|
|
11967
11115
|
* StockManagementApi - axios parameter creator
|
|
11968
11116
|
* @export
|