yellowgrid-api-ts 3.0.108 → 3.0.110-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +212 -195
- package/README.md +33 -7
- package/api.ts +1789 -257
- 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 +1304 -150
- package/dist/api.js +1059 -207
- 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/AbstractOrderRequestDTO.md +33 -0
- package/docs/AccountDetailedSummaryDTO.md +39 -0
- package/docs/AccountsApi.md +103 -0
- package/docs/AdminItemRequestDTO.md +39 -0
- package/docs/AdminOrderRequestDTO.md +45 -0
- package/docs/AdminUserModel.md +29 -0
- package/docs/BasicItemDTO.md +23 -0
- package/docs/BasicProductDTO.md +23 -0
- package/docs/Class3CXApi.md +0 -55
- package/docs/ClientDetailsModel.md +0 -2
- package/docs/CourierPriceEntity.md +39 -0
- package/docs/CustomerItemRequestDTO.md +35 -0
- package/docs/CustomerOrderRequestDTO.md +33 -0
- package/docs/ItemDTO.md +12 -4
- package/docs/ItemEntity.md +2 -0
- package/docs/LinkedOrderEntity.md +23 -0
- package/docs/OrderSummaryDTO.md +8 -0
- package/docs/OrderTotalModel.md +2 -0
- package/docs/OrdersApi.md +301 -4
- package/docs/PostGetProductForCustomerRequest.md +24 -0
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +5 -3
- package/docs/ProductsApi.md +164 -43
- package/docs/ProvisioningApi.md +4 -4
- package/docs/{ProvisioningEntity.md → ProvisioningModel.md} +3 -3
- package/docs/ShipmentEntity.md +2 -2
- package/docs/ShippingApi.md +63 -0
- package/docs/ShippingConsignmentModel.md +26 -0
- package/docs/ShippingInformationDTO.md +25 -0
- package/docs/ShippingServiceDTO.md +23 -0
- package/docs/ShippingServiceModel.md +31 -0
- package/docs/{GetGetPasswordHash200Response.md → ShippingServicesModel.md} +5 -5
- package/docs/StockManagementApi.md +2 -2
- package/docs/TcxSbcDTO.md +31 -0
- package/docs/TcxSbcModel.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
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,15 +84,22 @@ 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.
|
|
88
|
-
exports.
|
|
89
|
-
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = void 0;
|
|
87
|
+
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.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = exports.AdminUserModelRoleEnum = void 0;
|
|
88
|
+
exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = 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 = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = void 0;
|
|
89
|
+
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = 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
|
+
};
|
|
96
103
|
exports.DivertResponseModelStatusEnum = {
|
|
97
104
|
Enabled: 'enabled',
|
|
98
105
|
Disabled: 'disabled'
|
|
@@ -169,6 +176,16 @@ exports.OrderTotalModelCurrencyEnum = {
|
|
|
169
176
|
Thb: 'THB',
|
|
170
177
|
Zar: 'ZAR'
|
|
171
178
|
};
|
|
179
|
+
exports.ShippingServiceDTOCourierEnum = {
|
|
180
|
+
Dpd: 'DPD',
|
|
181
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
182
|
+
Pops: 'POPS'
|
|
183
|
+
};
|
|
184
|
+
exports.ShippingServiceModelCourierEnum = {
|
|
185
|
+
Dpd: 'DPD',
|
|
186
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
187
|
+
Pops: 'POPS'
|
|
188
|
+
};
|
|
172
189
|
exports.SipTrunkChangeResponseModelTypeEnum = {
|
|
173
190
|
NewTrunk: 'New Trunk',
|
|
174
191
|
AvailableTrunk: 'Available Trunk',
|
|
@@ -413,6 +430,43 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
413
430
|
});
|
|
414
431
|
});
|
|
415
432
|
},
|
|
433
|
+
/**
|
|
434
|
+
* Get Account Detailed Summary
|
|
435
|
+
* @summary Get Account Detailed Summary
|
|
436
|
+
* @param {number} id Customer ID
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
*/
|
|
440
|
+
getGetAccountDetailedSummary: function (id_1) {
|
|
441
|
+
var args_1 = [];
|
|
442
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
443
|
+
args_1[_i - 1] = arguments[_i];
|
|
444
|
+
}
|
|
445
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
446
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
447
|
+
if (options === void 0) { options = {}; }
|
|
448
|
+
return __generator(this, function (_a) {
|
|
449
|
+
// verify required parameter 'id' is not null or undefined
|
|
450
|
+
(0, common_1.assertParamExists)('getGetAccountDetailedSummary', 'id', id);
|
|
451
|
+
localVarPath = "/accounts/{id}/summary"
|
|
452
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
453
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
454
|
+
if (configuration) {
|
|
455
|
+
baseOptions = configuration.baseOptions;
|
|
456
|
+
}
|
|
457
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
458
|
+
localVarHeaderParameter = {};
|
|
459
|
+
localVarQueryParameter = {};
|
|
460
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
461
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
462
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
463
|
+
return [2 /*return*/, {
|
|
464
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
465
|
+
options: localVarRequestOptions,
|
|
466
|
+
}];
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
},
|
|
416
470
|
/**
|
|
417
471
|
* Get Accounts
|
|
418
472
|
* @summary Get Accounts
|
|
@@ -716,6 +770,39 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
716
770
|
});
|
|
717
771
|
});
|
|
718
772
|
},
|
|
773
|
+
/**
|
|
774
|
+
* Get Admin Account
|
|
775
|
+
* @summary Get Admin Account
|
|
776
|
+
* @param {*} [options] Override http request option.
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
*/
|
|
779
|
+
postGetAdminAccount: function () {
|
|
780
|
+
var args_1 = [];
|
|
781
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
782
|
+
args_1[_i] = arguments[_i];
|
|
783
|
+
}
|
|
784
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
785
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
786
|
+
if (options === void 0) { options = {}; }
|
|
787
|
+
return __generator(this, function (_a) {
|
|
788
|
+
localVarPath = "/admin/me";
|
|
789
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
790
|
+
if (configuration) {
|
|
791
|
+
baseOptions = configuration.baseOptions;
|
|
792
|
+
}
|
|
793
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
794
|
+
localVarHeaderParameter = {};
|
|
795
|
+
localVarQueryParameter = {};
|
|
796
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
797
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
798
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
799
|
+
return [2 /*return*/, {
|
|
800
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
801
|
+
options: localVarRequestOptions,
|
|
802
|
+
}];
|
|
803
|
+
});
|
|
804
|
+
});
|
|
805
|
+
},
|
|
719
806
|
/**
|
|
720
807
|
* Create client credentials
|
|
721
808
|
* @summary Create client credentials
|
|
@@ -1014,6 +1101,29 @@ var AccountsApiFp = function (configuration) {
|
|
|
1014
1101
|
});
|
|
1015
1102
|
});
|
|
1016
1103
|
},
|
|
1104
|
+
/**
|
|
1105
|
+
* Get Account Detailed Summary
|
|
1106
|
+
* @summary Get Account Detailed Summary
|
|
1107
|
+
* @param {number} id Customer ID
|
|
1108
|
+
* @param {*} [options] Override http request option.
|
|
1109
|
+
* @throws {RequiredError}
|
|
1110
|
+
*/
|
|
1111
|
+
getGetAccountDetailedSummary: function (id, options) {
|
|
1112
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1113
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1114
|
+
var _a, _b, _c;
|
|
1115
|
+
return __generator(this, function (_d) {
|
|
1116
|
+
switch (_d.label) {
|
|
1117
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options)];
|
|
1118
|
+
case 1:
|
|
1119
|
+
localVarAxiosArgs = _d.sent();
|
|
1120
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1121
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountDetailedSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1122
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1123
|
+
}
|
|
1124
|
+
});
|
|
1125
|
+
});
|
|
1126
|
+
},
|
|
1017
1127
|
/**
|
|
1018
1128
|
* Get Accounts
|
|
1019
1129
|
* @summary Get Accounts
|
|
@@ -1199,6 +1309,28 @@ var AccountsApiFp = function (configuration) {
|
|
|
1199
1309
|
});
|
|
1200
1310
|
});
|
|
1201
1311
|
},
|
|
1312
|
+
/**
|
|
1313
|
+
* Get Admin Account
|
|
1314
|
+
* @summary Get Admin Account
|
|
1315
|
+
* @param {*} [options] Override http request option.
|
|
1316
|
+
* @throws {RequiredError}
|
|
1317
|
+
*/
|
|
1318
|
+
postGetAdminAccount: function (options) {
|
|
1319
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1320
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1321
|
+
var _a, _b, _c;
|
|
1322
|
+
return __generator(this, function (_d) {
|
|
1323
|
+
switch (_d.label) {
|
|
1324
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAdminAccount(options)];
|
|
1325
|
+
case 1:
|
|
1326
|
+
localVarAxiosArgs = _d.sent();
|
|
1327
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1328
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postGetAdminAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1329
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1330
|
+
}
|
|
1331
|
+
});
|
|
1332
|
+
});
|
|
1333
|
+
},
|
|
1202
1334
|
/**
|
|
1203
1335
|
* Create client credentials
|
|
1204
1336
|
* @summary Create client credentials
|
|
@@ -1366,6 +1498,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1366
1498
|
getGetAccountContacts: function (email, options) {
|
|
1367
1499
|
return localVarFp.getGetAccountContacts(email, options).then(function (request) { return request(axios, basePath); });
|
|
1368
1500
|
},
|
|
1501
|
+
/**
|
|
1502
|
+
* Get Account Detailed Summary
|
|
1503
|
+
* @summary Get Account Detailed Summary
|
|
1504
|
+
* @param {number} id Customer ID
|
|
1505
|
+
* @param {*} [options] Override http request option.
|
|
1506
|
+
* @throws {RequiredError}
|
|
1507
|
+
*/
|
|
1508
|
+
getGetAccountDetailedSummary: function (id, options) {
|
|
1509
|
+
return localVarFp.getGetAccountDetailedSummary(id, options).then(function (request) { return request(axios, basePath); });
|
|
1510
|
+
},
|
|
1369
1511
|
/**
|
|
1370
1512
|
* Get Accounts
|
|
1371
1513
|
* @summary Get Accounts
|
|
@@ -1447,6 +1589,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1447
1589
|
postGetAccounts: function (accountRequestModel, options) {
|
|
1448
1590
|
return localVarFp.postGetAccounts(accountRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
1449
1591
|
},
|
|
1592
|
+
/**
|
|
1593
|
+
* Get Admin Account
|
|
1594
|
+
* @summary Get Admin Account
|
|
1595
|
+
* @param {*} [options] Override http request option.
|
|
1596
|
+
* @throws {RequiredError}
|
|
1597
|
+
*/
|
|
1598
|
+
postGetAdminAccount: function (options) {
|
|
1599
|
+
return localVarFp.postGetAdminAccount(options).then(function (request) { return request(axios, basePath); });
|
|
1600
|
+
},
|
|
1450
1601
|
/**
|
|
1451
1602
|
* Create client credentials
|
|
1452
1603
|
* @summary Create client credentials
|
|
@@ -1561,6 +1712,18 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1561
1712
|
var _this = this;
|
|
1562
1713
|
return (0, exports.AccountsApiFp)(this.configuration).getGetAccountContacts(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1563
1714
|
};
|
|
1715
|
+
/**
|
|
1716
|
+
* Get Account Detailed Summary
|
|
1717
|
+
* @summary Get Account Detailed Summary
|
|
1718
|
+
* @param {number} id Customer ID
|
|
1719
|
+
* @param {*} [options] Override http request option.
|
|
1720
|
+
* @throws {RequiredError}
|
|
1721
|
+
* @memberof AccountsApi
|
|
1722
|
+
*/
|
|
1723
|
+
AccountsApi.prototype.getGetAccountDetailedSummary = function (id, options) {
|
|
1724
|
+
var _this = this;
|
|
1725
|
+
return (0, exports.AccountsApiFp)(this.configuration).getGetAccountDetailedSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1726
|
+
};
|
|
1564
1727
|
/**
|
|
1565
1728
|
* Get Accounts
|
|
1566
1729
|
* @summary Get Accounts
|
|
@@ -1658,6 +1821,17 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1658
1821
|
var _this = this;
|
|
1659
1822
|
return (0, exports.AccountsApiFp)(this.configuration).postGetAccounts(accountRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1660
1823
|
};
|
|
1824
|
+
/**
|
|
1825
|
+
* Get Admin Account
|
|
1826
|
+
* @summary Get Admin Account
|
|
1827
|
+
* @param {*} [options] Override http request option.
|
|
1828
|
+
* @throws {RequiredError}
|
|
1829
|
+
* @memberof AccountsApi
|
|
1830
|
+
*/
|
|
1831
|
+
AccountsApi.prototype.postGetAdminAccount = function (options) {
|
|
1832
|
+
var _this = this;
|
|
1833
|
+
return (0, exports.AccountsApiFp)(this.configuration).postGetAdminAccount(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1834
|
+
};
|
|
1661
1835
|
/**
|
|
1662
1836
|
* Create client credentials
|
|
1663
1837
|
* @summary Create client credentials
|
|
@@ -1770,45 +1944,6 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
|
|
|
1770
1944
|
});
|
|
1771
1945
|
});
|
|
1772
1946
|
},
|
|
1773
|
-
/**
|
|
1774
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
1775
|
-
* @summary Convert a password to a hashed 3CX password
|
|
1776
|
-
* @param {string} password Desired 3CX web access password
|
|
1777
|
-
* @param {*} [options] Override http request option.
|
|
1778
|
-
* @throws {RequiredError}
|
|
1779
|
-
*/
|
|
1780
|
-
getGetPasswordHash: function (password_1) {
|
|
1781
|
-
var args_1 = [];
|
|
1782
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1783
|
-
args_1[_i - 1] = arguments[_i];
|
|
1784
|
-
}
|
|
1785
|
-
return __awaiter(_this, __spreadArray([password_1], args_1, true), void 0, function (password, options) {
|
|
1786
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1787
|
-
if (options === void 0) { options = {}; }
|
|
1788
|
-
return __generator(this, function (_a) {
|
|
1789
|
-
// verify required parameter 'password' is not null or undefined
|
|
1790
|
-
(0, common_1.assertParamExists)('getGetPasswordHash', 'password', password);
|
|
1791
|
-
localVarPath = "/tcx/pwd2hash";
|
|
1792
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1793
|
-
if (configuration) {
|
|
1794
|
-
baseOptions = configuration.baseOptions;
|
|
1795
|
-
}
|
|
1796
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1797
|
-
localVarHeaderParameter = {};
|
|
1798
|
-
localVarQueryParameter = {};
|
|
1799
|
-
if (password !== undefined) {
|
|
1800
|
-
localVarQueryParameter['password'] = password;
|
|
1801
|
-
}
|
|
1802
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1803
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1804
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1805
|
-
return [2 /*return*/, {
|
|
1806
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1807
|
-
options: localVarRequestOptions,
|
|
1808
|
-
}];
|
|
1809
|
-
});
|
|
1810
|
-
});
|
|
1811
|
-
},
|
|
1812
1947
|
/**
|
|
1813
1948
|
* Get Bulk 3CX Licence Details
|
|
1814
1949
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -1878,29 +2013,6 @@ var Class3CXApiFp = function (configuration) {
|
|
|
1878
2013
|
});
|
|
1879
2014
|
});
|
|
1880
2015
|
},
|
|
1881
|
-
/**
|
|
1882
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
1883
|
-
* @summary Convert a password to a hashed 3CX password
|
|
1884
|
-
* @param {string} password Desired 3CX web access password
|
|
1885
|
-
* @param {*} [options] Override http request option.
|
|
1886
|
-
* @throws {RequiredError}
|
|
1887
|
-
*/
|
|
1888
|
-
getGetPasswordHash: function (password, options) {
|
|
1889
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1890
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1891
|
-
var _a, _b, _c;
|
|
1892
|
-
return __generator(this, function (_d) {
|
|
1893
|
-
switch (_d.label) {
|
|
1894
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetPasswordHash(password, options)];
|
|
1895
|
-
case 1:
|
|
1896
|
-
localVarAxiosArgs = _d.sent();
|
|
1897
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1898
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.getGetPasswordHash']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1899
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1900
|
-
}
|
|
1901
|
-
});
|
|
1902
|
-
});
|
|
1903
|
-
},
|
|
1904
2016
|
/**
|
|
1905
2017
|
* Get Bulk 3CX Licence Details
|
|
1906
2018
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -1944,16 +2056,6 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
|
|
|
1944
2056
|
getGetLicenceDetails: function (key, options) {
|
|
1945
2057
|
return localVarFp.getGetLicenceDetails(key, options).then(function (request) { return request(axios, basePath); });
|
|
1946
2058
|
},
|
|
1947
|
-
/**
|
|
1948
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
1949
|
-
* @summary Convert a password to a hashed 3CX password
|
|
1950
|
-
* @param {string} password Desired 3CX web access password
|
|
1951
|
-
* @param {*} [options] Override http request option.
|
|
1952
|
-
* @throws {RequiredError}
|
|
1953
|
-
*/
|
|
1954
|
-
getGetPasswordHash: function (password, options) {
|
|
1955
|
-
return localVarFp.getGetPasswordHash(password, options).then(function (request) { return request(axios, basePath); });
|
|
1956
|
-
},
|
|
1957
2059
|
/**
|
|
1958
2060
|
* Get Bulk 3CX Licence Details
|
|
1959
2061
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -1990,18 +2092,6 @@ var Class3CXApi = /** @class */ (function (_super) {
|
|
|
1990
2092
|
var _this = this;
|
|
1991
2093
|
return (0, exports.Class3CXApiFp)(this.configuration).getGetLicenceDetails(key, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1992
2094
|
};
|
|
1993
|
-
/**
|
|
1994
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
1995
|
-
* @summary Convert a password to a hashed 3CX password
|
|
1996
|
-
* @param {string} password Desired 3CX web access password
|
|
1997
|
-
* @param {*} [options] Override http request option.
|
|
1998
|
-
* @throws {RequiredError}
|
|
1999
|
-
* @memberof Class3CXApi
|
|
2000
|
-
*/
|
|
2001
|
-
Class3CXApi.prototype.getGetPasswordHash = function (password, options) {
|
|
2002
|
-
var _this = this;
|
|
2003
|
-
return (0, exports.Class3CXApiFp)(this.configuration).getGetPasswordHash(password, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2004
|
-
};
|
|
2005
2095
|
/**
|
|
2006
2096
|
* Get Bulk 3CX Licence Details
|
|
2007
2097
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -7923,11 +8013,12 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
7923
8013
|
return {
|
|
7924
8014
|
/**
|
|
7925
8015
|
* Delete Orders
|
|
8016
|
+
* @summary Delete Orders
|
|
7926
8017
|
* @param {number} id Order ID
|
|
7927
8018
|
* @param {*} [options] Override http request option.
|
|
7928
8019
|
* @throws {RequiredError}
|
|
7929
8020
|
*/
|
|
7930
|
-
|
|
8021
|
+
deleteUpdateOrder: function (id_1) {
|
|
7931
8022
|
var args_1 = [];
|
|
7932
8023
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
7933
8024
|
args_1[_i - 1] = arguments[_i];
|
|
@@ -7937,7 +8028,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
7937
8028
|
if (options === void 0) { options = {}; }
|
|
7938
8029
|
return __generator(this, function (_a) {
|
|
7939
8030
|
// verify required parameter 'id' is not null or undefined
|
|
7940
|
-
(0, common_1.assertParamExists)('
|
|
8031
|
+
(0, common_1.assertParamExists)('deleteUpdateOrder', 'id', id);
|
|
7941
8032
|
localVarPath = "/orders/{id}"
|
|
7942
8033
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
7943
8034
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7957,6 +8048,42 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
7957
8048
|
});
|
|
7958
8049
|
});
|
|
7959
8050
|
},
|
|
8051
|
+
/**
|
|
8052
|
+
* Get Editable Order
|
|
8053
|
+
* @param {number} id Order ID
|
|
8054
|
+
* @param {*} [options] Override http request option.
|
|
8055
|
+
* @throws {RequiredError}
|
|
8056
|
+
*/
|
|
8057
|
+
getGetEditableOrder: function (id_1) {
|
|
8058
|
+
var args_1 = [];
|
|
8059
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8060
|
+
args_1[_i - 1] = arguments[_i];
|
|
8061
|
+
}
|
|
8062
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
8063
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8064
|
+
if (options === void 0) { options = {}; }
|
|
8065
|
+
return __generator(this, function (_a) {
|
|
8066
|
+
// verify required parameter 'id' is not null or undefined
|
|
8067
|
+
(0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
|
|
8068
|
+
localVarPath = "/orders/{id}/views/editable"
|
|
8069
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8070
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8071
|
+
if (configuration) {
|
|
8072
|
+
baseOptions = configuration.baseOptions;
|
|
8073
|
+
}
|
|
8074
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8075
|
+
localVarHeaderParameter = {};
|
|
8076
|
+
localVarQueryParameter = {};
|
|
8077
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8078
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8079
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8080
|
+
return [2 /*return*/, {
|
|
8081
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8082
|
+
options: localVarRequestOptions,
|
|
8083
|
+
}];
|
|
8084
|
+
});
|
|
8085
|
+
});
|
|
8086
|
+
},
|
|
7960
8087
|
/**
|
|
7961
8088
|
* Get Orders
|
|
7962
8089
|
* @summary Get Orders
|
|
@@ -8018,34 +8145,225 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8018
8145
|
});
|
|
8019
8146
|
});
|
|
8020
8147
|
},
|
|
8021
|
-
};
|
|
8022
|
-
};
|
|
8023
|
-
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
8024
|
-
/**
|
|
8025
|
-
* OrdersApi - functional programming interface
|
|
8026
|
-
* @export
|
|
8027
|
-
*/
|
|
8028
|
-
var OrdersApiFp = function (configuration) {
|
|
8029
|
-
var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
8030
|
-
return {
|
|
8031
8148
|
/**
|
|
8032
|
-
*
|
|
8033
|
-
* @
|
|
8149
|
+
* Create An Order (Admin)
|
|
8150
|
+
* @summary Create An Order (Admin)
|
|
8151
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8152
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8034
8153
|
* @param {*} [options] Override http request option.
|
|
8035
8154
|
* @throws {RequiredError}
|
|
8036
8155
|
*/
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
|
|
8156
|
+
postCreateAdminOrder: function (readonly_1, adminOrderRequestDTO_1) {
|
|
8157
|
+
var args_1 = [];
|
|
8158
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8159
|
+
args_1[_i - 2] = arguments[_i];
|
|
8160
|
+
}
|
|
8161
|
+
return __awaiter(_this, __spreadArray([readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (readonly, adminOrderRequestDTO, options) {
|
|
8162
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8163
|
+
if (options === void 0) { options = {}; }
|
|
8164
|
+
return __generator(this, function (_a) {
|
|
8165
|
+
localVarPath = "/admin/orders";
|
|
8166
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8167
|
+
if (configuration) {
|
|
8168
|
+
baseOptions = configuration.baseOptions;
|
|
8169
|
+
}
|
|
8170
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8171
|
+
localVarHeaderParameter = {};
|
|
8172
|
+
localVarQueryParameter = {};
|
|
8173
|
+
if (readonly !== undefined) {
|
|
8174
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
8175
|
+
}
|
|
8176
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8177
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8178
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8179
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8180
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8181
|
+
return [2 /*return*/, {
|
|
8182
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8183
|
+
options: localVarRequestOptions,
|
|
8184
|
+
}];
|
|
8185
|
+
});
|
|
8186
|
+
});
|
|
8187
|
+
},
|
|
8188
|
+
/**
|
|
8189
|
+
* Create An Order
|
|
8190
|
+
* @summary Create An Order
|
|
8191
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8192
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8193
|
+
* @param {*} [options] Override http request option.
|
|
8194
|
+
* @throws {RequiredError}
|
|
8195
|
+
*/
|
|
8196
|
+
postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
|
|
8197
|
+
var args_1 = [];
|
|
8198
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8199
|
+
args_1[_i - 2] = arguments[_i];
|
|
8200
|
+
}
|
|
8201
|
+
return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
|
|
8202
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8203
|
+
if (options === void 0) { options = {}; }
|
|
8204
|
+
return __generator(this, function (_a) {
|
|
8205
|
+
localVarPath = "/orders";
|
|
8206
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8207
|
+
if (configuration) {
|
|
8208
|
+
baseOptions = configuration.baseOptions;
|
|
8209
|
+
}
|
|
8210
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8211
|
+
localVarHeaderParameter = {};
|
|
8212
|
+
localVarQueryParameter = {};
|
|
8213
|
+
if (readonly !== undefined) {
|
|
8214
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
8215
|
+
}
|
|
8216
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8217
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8218
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8219
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8220
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8221
|
+
return [2 /*return*/, {
|
|
8222
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8223
|
+
options: localVarRequestOptions,
|
|
8224
|
+
}];
|
|
8225
|
+
});
|
|
8226
|
+
});
|
|
8227
|
+
},
|
|
8228
|
+
/**
|
|
8229
|
+
* Update An Order (Admin)
|
|
8230
|
+
* @summary Update An Order (Admin)
|
|
8231
|
+
* @param {number} id Order ID
|
|
8232
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8233
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8234
|
+
* @param {*} [options] Override http request option.
|
|
8235
|
+
* @throws {RequiredError}
|
|
8236
|
+
*/
|
|
8237
|
+
putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
|
|
8238
|
+
var args_1 = [];
|
|
8239
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8240
|
+
args_1[_i - 3] = arguments[_i];
|
|
8241
|
+
}
|
|
8242
|
+
return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
|
|
8243
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8244
|
+
if (options === void 0) { options = {}; }
|
|
8245
|
+
return __generator(this, function (_a) {
|
|
8246
|
+
// verify required parameter 'id' is not null or undefined
|
|
8247
|
+
(0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
|
|
8248
|
+
localVarPath = "/admin/orders/{id}"
|
|
8249
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8250
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8251
|
+
if (configuration) {
|
|
8252
|
+
baseOptions = configuration.baseOptions;
|
|
8253
|
+
}
|
|
8254
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
8255
|
+
localVarHeaderParameter = {};
|
|
8256
|
+
localVarQueryParameter = {};
|
|
8257
|
+
if (readonly !== undefined) {
|
|
8258
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
8259
|
+
}
|
|
8260
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8261
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8262
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8263
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8264
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8265
|
+
return [2 /*return*/, {
|
|
8266
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8267
|
+
options: localVarRequestOptions,
|
|
8268
|
+
}];
|
|
8269
|
+
});
|
|
8270
|
+
});
|
|
8271
|
+
},
|
|
8272
|
+
/**
|
|
8273
|
+
* Update An Order
|
|
8274
|
+
* @summary Update An Order
|
|
8275
|
+
* @param {number} id Order ID
|
|
8276
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8277
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8278
|
+
* @param {*} [options] Override http request option.
|
|
8279
|
+
* @throws {RequiredError}
|
|
8280
|
+
*/
|
|
8281
|
+
putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
|
|
8282
|
+
var args_1 = [];
|
|
8283
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8284
|
+
args_1[_i - 3] = arguments[_i];
|
|
8285
|
+
}
|
|
8286
|
+
return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
|
|
8287
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8288
|
+
if (options === void 0) { options = {}; }
|
|
8289
|
+
return __generator(this, function (_a) {
|
|
8290
|
+
// verify required parameter 'id' is not null or undefined
|
|
8291
|
+
(0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
|
|
8292
|
+
localVarPath = "/orders/{id}"
|
|
8293
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8294
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8295
|
+
if (configuration) {
|
|
8296
|
+
baseOptions = configuration.baseOptions;
|
|
8297
|
+
}
|
|
8298
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
8299
|
+
localVarHeaderParameter = {};
|
|
8300
|
+
localVarQueryParameter = {};
|
|
8301
|
+
if (readonly !== undefined) {
|
|
8302
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
8303
|
+
}
|
|
8304
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8305
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8306
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8307
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8308
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8309
|
+
return [2 /*return*/, {
|
|
8310
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8311
|
+
options: localVarRequestOptions,
|
|
8312
|
+
}];
|
|
8313
|
+
});
|
|
8314
|
+
});
|
|
8315
|
+
},
|
|
8316
|
+
};
|
|
8317
|
+
};
|
|
8318
|
+
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
8319
|
+
/**
|
|
8320
|
+
* OrdersApi - functional programming interface
|
|
8321
|
+
* @export
|
|
8322
|
+
*/
|
|
8323
|
+
var OrdersApiFp = function (configuration) {
|
|
8324
|
+
var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
8325
|
+
return {
|
|
8326
|
+
/**
|
|
8327
|
+
* Delete Orders
|
|
8328
|
+
* @summary Delete Orders
|
|
8329
|
+
* @param {number} id Order ID
|
|
8330
|
+
* @param {*} [options] Override http request option.
|
|
8331
|
+
* @throws {RequiredError}
|
|
8332
|
+
*/
|
|
8333
|
+
deleteUpdateOrder: function (id, options) {
|
|
8334
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8335
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8336
|
+
var _a, _b, _c;
|
|
8337
|
+
return __generator(this, function (_d) {
|
|
8338
|
+
switch (_d.label) {
|
|
8339
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
|
|
8340
|
+
case 1:
|
|
8341
|
+
localVarAxiosArgs = _d.sent();
|
|
8342
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8343
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8344
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8345
|
+
}
|
|
8346
|
+
});
|
|
8347
|
+
});
|
|
8348
|
+
},
|
|
8349
|
+
/**
|
|
8350
|
+
* Get Editable Order
|
|
8351
|
+
* @param {number} id Order ID
|
|
8352
|
+
* @param {*} [options] Override http request option.
|
|
8353
|
+
* @throws {RequiredError}
|
|
8354
|
+
*/
|
|
8355
|
+
getGetEditableOrder: function (id, options) {
|
|
8356
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8357
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8358
|
+
var _a, _b, _c;
|
|
8359
|
+
return __generator(this, function (_d) {
|
|
8360
|
+
switch (_d.label) {
|
|
8361
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
|
|
8362
|
+
case 1:
|
|
8363
|
+
localVarAxiosArgs = _d.sent();
|
|
8364
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8365
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8366
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8049
8367
|
}
|
|
8050
8368
|
});
|
|
8051
8369
|
});
|
|
@@ -8079,6 +8397,104 @@ var OrdersApiFp = function (configuration) {
|
|
|
8079
8397
|
});
|
|
8080
8398
|
});
|
|
8081
8399
|
},
|
|
8400
|
+
/**
|
|
8401
|
+
* Create An Order (Admin)
|
|
8402
|
+
* @summary Create An Order (Admin)
|
|
8403
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8404
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8405
|
+
* @param {*} [options] Override http request option.
|
|
8406
|
+
* @throws {RequiredError}
|
|
8407
|
+
*/
|
|
8408
|
+
postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
|
|
8409
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8410
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8411
|
+
var _a, _b, _c;
|
|
8412
|
+
return __generator(this, function (_d) {
|
|
8413
|
+
switch (_d.label) {
|
|
8414
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
|
|
8415
|
+
case 1:
|
|
8416
|
+
localVarAxiosArgs = _d.sent();
|
|
8417
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8418
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8419
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8420
|
+
}
|
|
8421
|
+
});
|
|
8422
|
+
});
|
|
8423
|
+
},
|
|
8424
|
+
/**
|
|
8425
|
+
* Create An Order
|
|
8426
|
+
* @summary Create An Order
|
|
8427
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8428
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8429
|
+
* @param {*} [options] Override http request option.
|
|
8430
|
+
* @throws {RequiredError}
|
|
8431
|
+
*/
|
|
8432
|
+
postGetOrders: function (readonly, customerOrderRequestDTO, options) {
|
|
8433
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8434
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8435
|
+
var _a, _b, _c;
|
|
8436
|
+
return __generator(this, function (_d) {
|
|
8437
|
+
switch (_d.label) {
|
|
8438
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
|
|
8439
|
+
case 1:
|
|
8440
|
+
localVarAxiosArgs = _d.sent();
|
|
8441
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8442
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8443
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8444
|
+
}
|
|
8445
|
+
});
|
|
8446
|
+
});
|
|
8447
|
+
},
|
|
8448
|
+
/**
|
|
8449
|
+
* Update An Order (Admin)
|
|
8450
|
+
* @summary Update An Order (Admin)
|
|
8451
|
+
* @param {number} id Order ID
|
|
8452
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8453
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8454
|
+
* @param {*} [options] Override http request option.
|
|
8455
|
+
* @throws {RequiredError}
|
|
8456
|
+
*/
|
|
8457
|
+
putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
|
|
8458
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8459
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8460
|
+
var _a, _b, _c;
|
|
8461
|
+
return __generator(this, function (_d) {
|
|
8462
|
+
switch (_d.label) {
|
|
8463
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
|
|
8464
|
+
case 1:
|
|
8465
|
+
localVarAxiosArgs = _d.sent();
|
|
8466
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8467
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8468
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8469
|
+
}
|
|
8470
|
+
});
|
|
8471
|
+
});
|
|
8472
|
+
},
|
|
8473
|
+
/**
|
|
8474
|
+
* Update An Order
|
|
8475
|
+
* @summary Update An Order
|
|
8476
|
+
* @param {number} id Order ID
|
|
8477
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8478
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8479
|
+
* @param {*} [options] Override http request option.
|
|
8480
|
+
* @throws {RequiredError}
|
|
8481
|
+
*/
|
|
8482
|
+
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
8483
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8484
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8485
|
+
var _a, _b, _c;
|
|
8486
|
+
return __generator(this, function (_d) {
|
|
8487
|
+
switch (_d.label) {
|
|
8488
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options)];
|
|
8489
|
+
case 1:
|
|
8490
|
+
localVarAxiosArgs = _d.sent();
|
|
8491
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8492
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8493
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8494
|
+
}
|
|
8495
|
+
});
|
|
8496
|
+
});
|
|
8497
|
+
},
|
|
8082
8498
|
};
|
|
8083
8499
|
};
|
|
8084
8500
|
exports.OrdersApiFp = OrdersApiFp;
|
|
@@ -8091,12 +8507,22 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
8091
8507
|
return {
|
|
8092
8508
|
/**
|
|
8093
8509
|
* Delete Orders
|
|
8510
|
+
* @summary Delete Orders
|
|
8511
|
+
* @param {number} id Order ID
|
|
8512
|
+
* @param {*} [options] Override http request option.
|
|
8513
|
+
* @throws {RequiredError}
|
|
8514
|
+
*/
|
|
8515
|
+
deleteUpdateOrder: function (id, options) {
|
|
8516
|
+
return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
8517
|
+
},
|
|
8518
|
+
/**
|
|
8519
|
+
* Get Editable Order
|
|
8094
8520
|
* @param {number} id Order ID
|
|
8095
8521
|
* @param {*} [options] Override http request option.
|
|
8096
8522
|
* @throws {RequiredError}
|
|
8097
8523
|
*/
|
|
8098
|
-
|
|
8099
|
-
return localVarFp.
|
|
8524
|
+
getGetEditableOrder: function (id, options) {
|
|
8525
|
+
return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
8100
8526
|
},
|
|
8101
8527
|
/**
|
|
8102
8528
|
* Get Orders
|
|
@@ -8114,6 +8540,52 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
8114
8540
|
getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
|
|
8115
8541
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
8116
8542
|
},
|
|
8543
|
+
/**
|
|
8544
|
+
* Create An Order (Admin)
|
|
8545
|
+
* @summary Create An Order (Admin)
|
|
8546
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8547
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8548
|
+
* @param {*} [options] Override http request option.
|
|
8549
|
+
* @throws {RequiredError}
|
|
8550
|
+
*/
|
|
8551
|
+
postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
|
|
8552
|
+
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8553
|
+
},
|
|
8554
|
+
/**
|
|
8555
|
+
* Create An Order
|
|
8556
|
+
* @summary Create An Order
|
|
8557
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8558
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8559
|
+
* @param {*} [options] Override http request option.
|
|
8560
|
+
* @throws {RequiredError}
|
|
8561
|
+
*/
|
|
8562
|
+
postGetOrders: function (readonly, customerOrderRequestDTO, options) {
|
|
8563
|
+
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8564
|
+
},
|
|
8565
|
+
/**
|
|
8566
|
+
* Update An Order (Admin)
|
|
8567
|
+
* @summary Update An Order (Admin)
|
|
8568
|
+
* @param {number} id Order ID
|
|
8569
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8570
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8571
|
+
* @param {*} [options] Override http request option.
|
|
8572
|
+
* @throws {RequiredError}
|
|
8573
|
+
*/
|
|
8574
|
+
putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
|
|
8575
|
+
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8576
|
+
},
|
|
8577
|
+
/**
|
|
8578
|
+
* Update An Order
|
|
8579
|
+
* @summary Update An Order
|
|
8580
|
+
* @param {number} id Order ID
|
|
8581
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8582
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8583
|
+
* @param {*} [options] Override http request option.
|
|
8584
|
+
* @throws {RequiredError}
|
|
8585
|
+
*/
|
|
8586
|
+
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
8587
|
+
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8588
|
+
},
|
|
8117
8589
|
};
|
|
8118
8590
|
};
|
|
8119
8591
|
exports.OrdersApiFactory = OrdersApiFactory;
|
|
@@ -8130,14 +8602,26 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
8130
8602
|
}
|
|
8131
8603
|
/**
|
|
8132
8604
|
* Delete Orders
|
|
8605
|
+
* @summary Delete Orders
|
|
8133
8606
|
* @param {number} id Order ID
|
|
8134
8607
|
* @param {*} [options] Override http request option.
|
|
8135
8608
|
* @throws {RequiredError}
|
|
8136
8609
|
* @memberof OrdersApi
|
|
8137
8610
|
*/
|
|
8138
|
-
OrdersApi.prototype.
|
|
8611
|
+
OrdersApi.prototype.deleteUpdateOrder = function (id, options) {
|
|
8139
8612
|
var _this = this;
|
|
8140
|
-
return (0, exports.OrdersApiFp)(this.configuration).
|
|
8613
|
+
return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8614
|
+
};
|
|
8615
|
+
/**
|
|
8616
|
+
* Get Editable Order
|
|
8617
|
+
* @param {number} id Order ID
|
|
8618
|
+
* @param {*} [options] Override http request option.
|
|
8619
|
+
* @throws {RequiredError}
|
|
8620
|
+
* @memberof OrdersApi
|
|
8621
|
+
*/
|
|
8622
|
+
OrdersApi.prototype.getGetEditableOrder = function (id, options) {
|
|
8623
|
+
var _this = this;
|
|
8624
|
+
return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8141
8625
|
};
|
|
8142
8626
|
/**
|
|
8143
8627
|
* Get Orders
|
|
@@ -8157,6 +8641,60 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
8157
8641
|
var _this = this;
|
|
8158
8642
|
return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8159
8643
|
};
|
|
8644
|
+
/**
|
|
8645
|
+
* Create An Order (Admin)
|
|
8646
|
+
* @summary Create An Order (Admin)
|
|
8647
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8648
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8649
|
+
* @param {*} [options] Override http request option.
|
|
8650
|
+
* @throws {RequiredError}
|
|
8651
|
+
* @memberof OrdersApi
|
|
8652
|
+
*/
|
|
8653
|
+
OrdersApi.prototype.postCreateAdminOrder = function (readonly, adminOrderRequestDTO, options) {
|
|
8654
|
+
var _this = this;
|
|
8655
|
+
return (0, exports.OrdersApiFp)(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8656
|
+
};
|
|
8657
|
+
/**
|
|
8658
|
+
* Create An Order
|
|
8659
|
+
* @summary Create An Order
|
|
8660
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8661
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8662
|
+
* @param {*} [options] Override http request option.
|
|
8663
|
+
* @throws {RequiredError}
|
|
8664
|
+
* @memberof OrdersApi
|
|
8665
|
+
*/
|
|
8666
|
+
OrdersApi.prototype.postGetOrders = function (readonly, customerOrderRequestDTO, options) {
|
|
8667
|
+
var _this = this;
|
|
8668
|
+
return (0, exports.OrdersApiFp)(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8669
|
+
};
|
|
8670
|
+
/**
|
|
8671
|
+
* Update An Order (Admin)
|
|
8672
|
+
* @summary Update An Order (Admin)
|
|
8673
|
+
* @param {number} id Order ID
|
|
8674
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8675
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8676
|
+
* @param {*} [options] Override http request option.
|
|
8677
|
+
* @throws {RequiredError}
|
|
8678
|
+
* @memberof OrdersApi
|
|
8679
|
+
*/
|
|
8680
|
+
OrdersApi.prototype.putUpdateAdminOrder = function (id, readonly, adminOrderRequestDTO, options) {
|
|
8681
|
+
var _this = this;
|
|
8682
|
+
return (0, exports.OrdersApiFp)(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8683
|
+
};
|
|
8684
|
+
/**
|
|
8685
|
+
* Update An Order
|
|
8686
|
+
* @summary Update An Order
|
|
8687
|
+
* @param {number} id Order ID
|
|
8688
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8689
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8690
|
+
* @param {*} [options] Override http request option.
|
|
8691
|
+
* @throws {RequiredError}
|
|
8692
|
+
* @memberof OrdersApi
|
|
8693
|
+
*/
|
|
8694
|
+
OrdersApi.prototype.putUpdateOrder = function (id, readonly, customerOrderRequestDTO, options) {
|
|
8695
|
+
var _this = this;
|
|
8696
|
+
return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8697
|
+
};
|
|
8160
8698
|
return OrdersApi;
|
|
8161
8699
|
}(base_1.BaseAPI));
|
|
8162
8700
|
exports.OrdersApi = OrdersApi;
|
|
@@ -8584,12 +9122,52 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8584
9122
|
});
|
|
8585
9123
|
},
|
|
8586
9124
|
/**
|
|
8587
|
-
* Get
|
|
8588
|
-
* @summary Get
|
|
9125
|
+
* Get Current Stock & Pricing
|
|
9126
|
+
* @summary Get Current Stock & Pricing
|
|
9127
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
9128
|
+
* @param {*} [options] Override http request option.
|
|
9129
|
+
* @deprecated
|
|
9130
|
+
* @throws {RequiredError}
|
|
9131
|
+
*/
|
|
9132
|
+
getGetLegacyStockList: function (format_1) {
|
|
9133
|
+
var args_1 = [];
|
|
9134
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9135
|
+
args_1[_i - 1] = arguments[_i];
|
|
9136
|
+
}
|
|
9137
|
+
return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
|
|
9138
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9139
|
+
if (options === void 0) { options = {}; }
|
|
9140
|
+
return __generator(this, function (_a) {
|
|
9141
|
+
// verify required parameter 'format' is not null or undefined
|
|
9142
|
+
(0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
|
|
9143
|
+
localVarPath = "/products/stock/legacy";
|
|
9144
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9145
|
+
if (configuration) {
|
|
9146
|
+
baseOptions = configuration.baseOptions;
|
|
9147
|
+
}
|
|
9148
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9149
|
+
localVarHeaderParameter = {};
|
|
9150
|
+
localVarQueryParameter = {};
|
|
9151
|
+
if (format !== undefined) {
|
|
9152
|
+
localVarQueryParameter['format'] = format;
|
|
9153
|
+
}
|
|
9154
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9155
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9156
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9157
|
+
return [2 /*return*/, {
|
|
9158
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9159
|
+
options: localVarRequestOptions,
|
|
9160
|
+
}];
|
|
9161
|
+
});
|
|
9162
|
+
});
|
|
9163
|
+
},
|
|
9164
|
+
/**
|
|
9165
|
+
* Get Products
|
|
9166
|
+
* @summary Get Products
|
|
8589
9167
|
* @param {*} [options] Override http request option.
|
|
8590
9168
|
* @throws {RequiredError}
|
|
8591
9169
|
*/
|
|
8592
|
-
|
|
9170
|
+
getGetProducts: function () {
|
|
8593
9171
|
var args_1 = [];
|
|
8594
9172
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8595
9173
|
args_1[_i] = arguments[_i];
|
|
@@ -8598,7 +9176,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8598
9176
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8599
9177
|
if (options === void 0) { options = {}; }
|
|
8600
9178
|
return __generator(this, function (_a) {
|
|
8601
|
-
localVarPath = "/products
|
|
9179
|
+
localVarPath = "/products";
|
|
8602
9180
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8603
9181
|
if (configuration) {
|
|
8604
9182
|
baseOptions = configuration.baseOptions;
|
|
@@ -8619,23 +9197,19 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8619
9197
|
/**
|
|
8620
9198
|
* Get Current Stock & Pricing
|
|
8621
9199
|
* @summary Get Current Stock & Pricing
|
|
8622
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
8623
9200
|
* @param {*} [options] Override http request option.
|
|
8624
|
-
* @deprecated
|
|
8625
9201
|
* @throws {RequiredError}
|
|
8626
9202
|
*/
|
|
8627
|
-
|
|
9203
|
+
getGetStockList: function () {
|
|
8628
9204
|
var args_1 = [];
|
|
8629
|
-
for (var _i =
|
|
8630
|
-
args_1[_i
|
|
9205
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9206
|
+
args_1[_i] = arguments[_i];
|
|
8631
9207
|
}
|
|
8632
|
-
return __awaiter(_this, __spreadArray([
|
|
9208
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
8633
9209
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8634
9210
|
if (options === void 0) { options = {}; }
|
|
8635
9211
|
return __generator(this, function (_a) {
|
|
8636
|
-
|
|
8637
|
-
(0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
|
|
8638
|
-
localVarPath = "/products/stock/legacy";
|
|
9212
|
+
localVarPath = "/products/stock";
|
|
8639
9213
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8640
9214
|
if (configuration) {
|
|
8641
9215
|
baseOptions = configuration.baseOptions;
|
|
@@ -8643,9 +9217,39 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8643
9217
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8644
9218
|
localVarHeaderParameter = {};
|
|
8645
9219
|
localVarQueryParameter = {};
|
|
8646
|
-
|
|
8647
|
-
|
|
9220
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9221
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9222
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9223
|
+
return [2 /*return*/, {
|
|
9224
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9225
|
+
options: localVarRequestOptions,
|
|
9226
|
+
}];
|
|
9227
|
+
});
|
|
9228
|
+
});
|
|
9229
|
+
},
|
|
9230
|
+
/**
|
|
9231
|
+
* Get 3CX Templates
|
|
9232
|
+
* @summary Get 3CX Templates
|
|
9233
|
+
* @param {*} [options] Override http request option.
|
|
9234
|
+
* @throws {RequiredError}
|
|
9235
|
+
*/
|
|
9236
|
+
getGetTcxTemplates: function () {
|
|
9237
|
+
var args_1 = [];
|
|
9238
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9239
|
+
args_1[_i] = arguments[_i];
|
|
9240
|
+
}
|
|
9241
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9242
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9243
|
+
if (options === void 0) { options = {}; }
|
|
9244
|
+
return __generator(this, function (_a) {
|
|
9245
|
+
localVarPath = "/products/attributes/tcx/templates";
|
|
9246
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9247
|
+
if (configuration) {
|
|
9248
|
+
baseOptions = configuration.baseOptions;
|
|
8648
9249
|
}
|
|
9250
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9251
|
+
localVarHeaderParameter = {};
|
|
9252
|
+
localVarQueryParameter = {};
|
|
8649
9253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8650
9254
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8651
9255
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8657,15 +9261,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8657
9261
|
});
|
|
8658
9262
|
},
|
|
8659
9263
|
/**
|
|
8660
|
-
*
|
|
8661
|
-
* @summary
|
|
9264
|
+
* Search Products
|
|
9265
|
+
* @summary Search Products
|
|
8662
9266
|
* @param {number} [pageSize] Number Of Results
|
|
8663
9267
|
* @param {number} [page] Page Number
|
|
8664
9268
|
* @param {string} [search] Search
|
|
8665
9269
|
* @param {*} [options] Override http request option.
|
|
8666
9270
|
* @throws {RequiredError}
|
|
8667
9271
|
*/
|
|
8668
|
-
|
|
9272
|
+
getSearchProducts: function (pageSize_1, page_1, search_1) {
|
|
8669
9273
|
var args_1 = [];
|
|
8670
9274
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8671
9275
|
args_1[_i - 3] = arguments[_i];
|
|
@@ -8702,31 +9306,40 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8702
9306
|
});
|
|
8703
9307
|
},
|
|
8704
9308
|
/**
|
|
8705
|
-
* Get
|
|
8706
|
-
* @summary Get
|
|
9309
|
+
* Get Product
|
|
9310
|
+
* @summary Get Product
|
|
9311
|
+
* @param {string} sku Product SKU
|
|
9312
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8707
9313
|
* @param {*} [options] Override http request option.
|
|
8708
9314
|
* @throws {RequiredError}
|
|
8709
9315
|
*/
|
|
8710
|
-
|
|
9316
|
+
postGetProduct: function (sku_1, postGetProductForCustomerRequest_1) {
|
|
8711
9317
|
var args_1 = [];
|
|
8712
|
-
for (var _i =
|
|
8713
|
-
args_1[_i] = arguments[_i];
|
|
9318
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
9319
|
+
args_1[_i - 2] = arguments[_i];
|
|
8714
9320
|
}
|
|
8715
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9321
|
+
return __awaiter(_this, __spreadArray([sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (sku, postGetProductForCustomerRequest, options) {
|
|
8716
9322
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8717
9323
|
if (options === void 0) { options = {}; }
|
|
8718
9324
|
return __generator(this, function (_a) {
|
|
8719
|
-
|
|
9325
|
+
// verify required parameter 'sku' is not null or undefined
|
|
9326
|
+
(0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
|
|
9327
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
9328
|
+
(0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
9329
|
+
localVarPath = "/products/{sku}"
|
|
9330
|
+
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8720
9331
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8721
9332
|
if (configuration) {
|
|
8722
9333
|
baseOptions = configuration.baseOptions;
|
|
8723
9334
|
}
|
|
8724
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
9335
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8725
9336
|
localVarHeaderParameter = {};
|
|
8726
9337
|
localVarQueryParameter = {};
|
|
9338
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8727
9339
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8728
9340
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8729
9341
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9342
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
8730
9343
|
return [2 /*return*/, {
|
|
8731
9344
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8732
9345
|
options: localVarRequestOptions,
|
|
@@ -8735,31 +9348,46 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8735
9348
|
});
|
|
8736
9349
|
},
|
|
8737
9350
|
/**
|
|
8738
|
-
* Get
|
|
8739
|
-
* @summary Get
|
|
9351
|
+
* Get Product For Customer
|
|
9352
|
+
* @summary Get Product For Customer
|
|
9353
|
+
* @param {number} customerId Customer ID
|
|
9354
|
+
* @param {string} sku Product SKU
|
|
9355
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8740
9356
|
* @param {*} [options] Override http request option.
|
|
8741
9357
|
* @throws {RequiredError}
|
|
8742
9358
|
*/
|
|
8743
|
-
|
|
9359
|
+
postGetProductForCustomer: function (customerId_1, sku_1, postGetProductForCustomerRequest_1) {
|
|
8744
9360
|
var args_1 = [];
|
|
8745
|
-
for (var _i =
|
|
8746
|
-
args_1[_i] = arguments[_i];
|
|
9361
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
9362
|
+
args_1[_i - 3] = arguments[_i];
|
|
8747
9363
|
}
|
|
8748
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9364
|
+
return __awaiter(_this, __spreadArray([customerId_1, sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
8749
9365
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8750
9366
|
if (options === void 0) { options = {}; }
|
|
8751
9367
|
return __generator(this, function (_a) {
|
|
8752
|
-
|
|
9368
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
9369
|
+
(0, common_1.assertParamExists)('postGetProductForCustomer', 'customerId', customerId);
|
|
9370
|
+
// verify required parameter 'sku' is not null or undefined
|
|
9371
|
+
(0, common_1.assertParamExists)('postGetProductForCustomer', 'sku', sku);
|
|
9372
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
9373
|
+
(0, common_1.assertParamExists)('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
9374
|
+
localVarPath = "/admin/products/{sku}"
|
|
9375
|
+
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8753
9376
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8754
9377
|
if (configuration) {
|
|
8755
9378
|
baseOptions = configuration.baseOptions;
|
|
8756
9379
|
}
|
|
8757
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
9380
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8758
9381
|
localVarHeaderParameter = {};
|
|
8759
9382
|
localVarQueryParameter = {};
|
|
9383
|
+
if (customerId !== undefined) {
|
|
9384
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
9385
|
+
}
|
|
9386
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8760
9387
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8761
9388
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8762
9389
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9390
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
8763
9391
|
return [2 /*return*/, {
|
|
8764
9392
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8765
9393
|
options: localVarRequestOptions,
|
|
@@ -8800,22 +9428,46 @@ var ProductsApiFp = function (configuration) {
|
|
|
8800
9428
|
});
|
|
8801
9429
|
},
|
|
8802
9430
|
/**
|
|
8803
|
-
* Get
|
|
8804
|
-
* @summary Get
|
|
9431
|
+
* Get Current Stock & Pricing
|
|
9432
|
+
* @summary Get Current Stock & Pricing
|
|
9433
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
9434
|
+
* @param {*} [options] Override http request option.
|
|
9435
|
+
* @deprecated
|
|
9436
|
+
* @throws {RequiredError}
|
|
9437
|
+
*/
|
|
9438
|
+
getGetLegacyStockList: function (format, options) {
|
|
9439
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9440
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9441
|
+
var _a, _b, _c;
|
|
9442
|
+
return __generator(this, function (_d) {
|
|
9443
|
+
switch (_d.label) {
|
|
9444
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
|
|
9445
|
+
case 1:
|
|
9446
|
+
localVarAxiosArgs = _d.sent();
|
|
9447
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9448
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9449
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9450
|
+
}
|
|
9451
|
+
});
|
|
9452
|
+
});
|
|
9453
|
+
},
|
|
9454
|
+
/**
|
|
9455
|
+
* Get Products
|
|
9456
|
+
* @summary Get Products
|
|
8805
9457
|
* @param {*} [options] Override http request option.
|
|
8806
9458
|
* @throws {RequiredError}
|
|
8807
9459
|
*/
|
|
8808
|
-
|
|
9460
|
+
getGetProducts: function (options) {
|
|
8809
9461
|
return __awaiter(this, void 0, void 0, function () {
|
|
8810
9462
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8811
9463
|
var _a, _b, _c;
|
|
8812
9464
|
return __generator(this, function (_d) {
|
|
8813
9465
|
switch (_d.label) {
|
|
8814
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9466
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(options)];
|
|
8815
9467
|
case 1:
|
|
8816
9468
|
localVarAxiosArgs = _d.sent();
|
|
8817
9469
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8818
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9470
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8819
9471
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8820
9472
|
}
|
|
8821
9473
|
});
|
|
@@ -8824,91 +9476,116 @@ var ProductsApiFp = function (configuration) {
|
|
|
8824
9476
|
/**
|
|
8825
9477
|
* Get Current Stock & Pricing
|
|
8826
9478
|
* @summary Get Current Stock & Pricing
|
|
8827
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
8828
9479
|
* @param {*} [options] Override http request option.
|
|
8829
|
-
* @deprecated
|
|
8830
9480
|
* @throws {RequiredError}
|
|
8831
9481
|
*/
|
|
8832
|
-
|
|
9482
|
+
getGetStockList: function (options) {
|
|
8833
9483
|
return __awaiter(this, void 0, void 0, function () {
|
|
8834
9484
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8835
9485
|
var _a, _b, _c;
|
|
8836
9486
|
return __generator(this, function (_d) {
|
|
8837
9487
|
switch (_d.label) {
|
|
8838
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9488
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
|
|
8839
9489
|
case 1:
|
|
8840
9490
|
localVarAxiosArgs = _d.sent();
|
|
8841
9491
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8842
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9492
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8843
9493
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8844
9494
|
}
|
|
8845
9495
|
});
|
|
8846
9496
|
});
|
|
8847
9497
|
},
|
|
8848
9498
|
/**
|
|
8849
|
-
* Get
|
|
8850
|
-
* @summary Get
|
|
9499
|
+
* Get 3CX Templates
|
|
9500
|
+
* @summary Get 3CX Templates
|
|
9501
|
+
* @param {*} [options] Override http request option.
|
|
9502
|
+
* @throws {RequiredError}
|
|
9503
|
+
*/
|
|
9504
|
+
getGetTcxTemplates: function (options) {
|
|
9505
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9506
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9507
|
+
var _a, _b, _c;
|
|
9508
|
+
return __generator(this, function (_d) {
|
|
9509
|
+
switch (_d.label) {
|
|
9510
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
|
|
9511
|
+
case 1:
|
|
9512
|
+
localVarAxiosArgs = _d.sent();
|
|
9513
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9514
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9515
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9516
|
+
}
|
|
9517
|
+
});
|
|
9518
|
+
});
|
|
9519
|
+
},
|
|
9520
|
+
/**
|
|
9521
|
+
* Search Products
|
|
9522
|
+
* @summary Search Products
|
|
8851
9523
|
* @param {number} [pageSize] Number Of Results
|
|
8852
9524
|
* @param {number} [page] Page Number
|
|
8853
9525
|
* @param {string} [search] Search
|
|
8854
9526
|
* @param {*} [options] Override http request option.
|
|
8855
9527
|
* @throws {RequiredError}
|
|
8856
9528
|
*/
|
|
8857
|
-
|
|
9529
|
+
getSearchProducts: function (pageSize, page, search, options) {
|
|
8858
9530
|
return __awaiter(this, void 0, void 0, function () {
|
|
8859
9531
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8860
9532
|
var _a, _b, _c;
|
|
8861
9533
|
return __generator(this, function (_d) {
|
|
8862
9534
|
switch (_d.label) {
|
|
8863
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9535
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options)];
|
|
8864
9536
|
case 1:
|
|
8865
9537
|
localVarAxiosArgs = _d.sent();
|
|
8866
9538
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8867
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9539
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getSearchProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8868
9540
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8869
9541
|
}
|
|
8870
9542
|
});
|
|
8871
9543
|
});
|
|
8872
9544
|
},
|
|
8873
9545
|
/**
|
|
8874
|
-
* Get
|
|
8875
|
-
* @summary Get
|
|
9546
|
+
* Get Product
|
|
9547
|
+
* @summary Get Product
|
|
9548
|
+
* @param {string} sku Product SKU
|
|
9549
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8876
9550
|
* @param {*} [options] Override http request option.
|
|
8877
9551
|
* @throws {RequiredError}
|
|
8878
9552
|
*/
|
|
8879
|
-
|
|
9553
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
8880
9554
|
return __awaiter(this, void 0, void 0, function () {
|
|
8881
9555
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8882
9556
|
var _a, _b, _c;
|
|
8883
9557
|
return __generator(this, function (_d) {
|
|
8884
9558
|
switch (_d.label) {
|
|
8885
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9559
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options)];
|
|
8886
9560
|
case 1:
|
|
8887
9561
|
localVarAxiosArgs = _d.sent();
|
|
8888
9562
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8889
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9563
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8890
9564
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8891
9565
|
}
|
|
8892
9566
|
});
|
|
8893
9567
|
});
|
|
8894
9568
|
},
|
|
8895
9569
|
/**
|
|
8896
|
-
* Get
|
|
8897
|
-
* @summary Get
|
|
9570
|
+
* Get Product For Customer
|
|
9571
|
+
* @summary Get Product For Customer
|
|
9572
|
+
* @param {number} customerId Customer ID
|
|
9573
|
+
* @param {string} sku Product SKU
|
|
9574
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8898
9575
|
* @param {*} [options] Override http request option.
|
|
8899
9576
|
* @throws {RequiredError}
|
|
8900
9577
|
*/
|
|
8901
|
-
|
|
9578
|
+
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
8902
9579
|
return __awaiter(this, void 0, void 0, function () {
|
|
8903
9580
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8904
9581
|
var _a, _b, _c;
|
|
8905
9582
|
return __generator(this, function (_d) {
|
|
8906
9583
|
switch (_d.label) {
|
|
8907
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9584
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options)];
|
|
8908
9585
|
case 1:
|
|
8909
9586
|
localVarAxiosArgs = _d.sent();
|
|
8910
9587
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8911
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9588
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProductForCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8912
9589
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8913
9590
|
}
|
|
8914
9591
|
});
|
|
@@ -8933,15 +9610,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
8933
9610
|
getGetAttributeSets: function (options) {
|
|
8934
9611
|
return localVarFp.getGetAttributeSets(options).then(function (request) { return request(axios, basePath); });
|
|
8935
9612
|
},
|
|
8936
|
-
/**
|
|
8937
|
-
* Get Customer Price Lists
|
|
8938
|
-
* @summary Get Customer Price Lists
|
|
8939
|
-
* @param {*} [options] Override http request option.
|
|
8940
|
-
* @throws {RequiredError}
|
|
8941
|
-
*/
|
|
8942
|
-
getGetCustomerPriceLists: function (options) {
|
|
8943
|
-
return localVarFp.getGetCustomerPriceLists(options).then(function (request) { return request(axios, basePath); });
|
|
8944
|
-
},
|
|
8945
9613
|
/**
|
|
8946
9614
|
* Get Current Stock & Pricing
|
|
8947
9615
|
* @summary Get Current Stock & Pricing
|
|
@@ -8956,14 +9624,11 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
8956
9624
|
/**
|
|
8957
9625
|
* Get Products
|
|
8958
9626
|
* @summary Get Products
|
|
8959
|
-
* @param {number} [pageSize] Number Of Results
|
|
8960
|
-
* @param {number} [page] Page Number
|
|
8961
|
-
* @param {string} [search] Search
|
|
8962
9627
|
* @param {*} [options] Override http request option.
|
|
8963
9628
|
* @throws {RequiredError}
|
|
8964
9629
|
*/
|
|
8965
|
-
getGetProducts: function (
|
|
8966
|
-
return localVarFp.getGetProducts(
|
|
9630
|
+
getGetProducts: function (options) {
|
|
9631
|
+
return localVarFp.getGetProducts(options).then(function (request) { return request(axios, basePath); });
|
|
8967
9632
|
},
|
|
8968
9633
|
/**
|
|
8969
9634
|
* Get Current Stock & Pricing
|
|
@@ -8983,6 +9648,41 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
8983
9648
|
getGetTcxTemplates: function (options) {
|
|
8984
9649
|
return localVarFp.getGetTcxTemplates(options).then(function (request) { return request(axios, basePath); });
|
|
8985
9650
|
},
|
|
9651
|
+
/**
|
|
9652
|
+
* Search Products
|
|
9653
|
+
* @summary Search Products
|
|
9654
|
+
* @param {number} [pageSize] Number Of Results
|
|
9655
|
+
* @param {number} [page] Page Number
|
|
9656
|
+
* @param {string} [search] Search
|
|
9657
|
+
* @param {*} [options] Override http request option.
|
|
9658
|
+
* @throws {RequiredError}
|
|
9659
|
+
*/
|
|
9660
|
+
getSearchProducts: function (pageSize, page, search, options) {
|
|
9661
|
+
return localVarFp.getSearchProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
9662
|
+
},
|
|
9663
|
+
/**
|
|
9664
|
+
* Get Product
|
|
9665
|
+
* @summary Get Product
|
|
9666
|
+
* @param {string} sku Product SKU
|
|
9667
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9668
|
+
* @param {*} [options] Override http request option.
|
|
9669
|
+
* @throws {RequiredError}
|
|
9670
|
+
*/
|
|
9671
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
9672
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
9673
|
+
},
|
|
9674
|
+
/**
|
|
9675
|
+
* Get Product For Customer
|
|
9676
|
+
* @summary Get Product For Customer
|
|
9677
|
+
* @param {number} customerId Customer ID
|
|
9678
|
+
* @param {string} sku Product SKU
|
|
9679
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9680
|
+
* @param {*} [options] Override http request option.
|
|
9681
|
+
* @throws {RequiredError}
|
|
9682
|
+
*/
|
|
9683
|
+
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
9684
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
9685
|
+
},
|
|
8986
9686
|
};
|
|
8987
9687
|
};
|
|
8988
9688
|
exports.ProductsApiFactory = ProductsApiFactory;
|
|
@@ -9008,17 +9708,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9008
9708
|
var _this = this;
|
|
9009
9709
|
return (0, exports.ProductsApiFp)(this.configuration).getGetAttributeSets(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9010
9710
|
};
|
|
9011
|
-
/**
|
|
9012
|
-
* Get Customer Price Lists
|
|
9013
|
-
* @summary Get Customer Price Lists
|
|
9014
|
-
* @param {*} [options] Override http request option.
|
|
9015
|
-
* @throws {RequiredError}
|
|
9016
|
-
* @memberof ProductsApi
|
|
9017
|
-
*/
|
|
9018
|
-
ProductsApi.prototype.getGetCustomerPriceLists = function (options) {
|
|
9019
|
-
var _this = this;
|
|
9020
|
-
return (0, exports.ProductsApiFp)(this.configuration).getGetCustomerPriceLists(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9021
|
-
};
|
|
9022
9711
|
/**
|
|
9023
9712
|
* Get Current Stock & Pricing
|
|
9024
9713
|
* @summary Get Current Stock & Pricing
|
|
@@ -9035,16 +9724,13 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9035
9724
|
/**
|
|
9036
9725
|
* Get Products
|
|
9037
9726
|
* @summary Get Products
|
|
9038
|
-
* @param {number} [pageSize] Number Of Results
|
|
9039
|
-
* @param {number} [page] Page Number
|
|
9040
|
-
* @param {string} [search] Search
|
|
9041
9727
|
* @param {*} [options] Override http request option.
|
|
9042
9728
|
* @throws {RequiredError}
|
|
9043
9729
|
* @memberof ProductsApi
|
|
9044
9730
|
*/
|
|
9045
|
-
ProductsApi.prototype.getGetProducts = function (
|
|
9731
|
+
ProductsApi.prototype.getGetProducts = function (options) {
|
|
9046
9732
|
var _this = this;
|
|
9047
|
-
return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(
|
|
9733
|
+
return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9048
9734
|
};
|
|
9049
9735
|
/**
|
|
9050
9736
|
* Get Current Stock & Pricing
|
|
@@ -9068,6 +9754,47 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9068
9754
|
var _this = this;
|
|
9069
9755
|
return (0, exports.ProductsApiFp)(this.configuration).getGetTcxTemplates(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9070
9756
|
};
|
|
9757
|
+
/**
|
|
9758
|
+
* Search Products
|
|
9759
|
+
* @summary Search Products
|
|
9760
|
+
* @param {number} [pageSize] Number Of Results
|
|
9761
|
+
* @param {number} [page] Page Number
|
|
9762
|
+
* @param {string} [search] Search
|
|
9763
|
+
* @param {*} [options] Override http request option.
|
|
9764
|
+
* @throws {RequiredError}
|
|
9765
|
+
* @memberof ProductsApi
|
|
9766
|
+
*/
|
|
9767
|
+
ProductsApi.prototype.getSearchProducts = function (pageSize, page, search, options) {
|
|
9768
|
+
var _this = this;
|
|
9769
|
+
return (0, exports.ProductsApiFp)(this.configuration).getSearchProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9770
|
+
};
|
|
9771
|
+
/**
|
|
9772
|
+
* Get Product
|
|
9773
|
+
* @summary Get Product
|
|
9774
|
+
* @param {string} sku Product SKU
|
|
9775
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9776
|
+
* @param {*} [options] Override http request option.
|
|
9777
|
+
* @throws {RequiredError}
|
|
9778
|
+
* @memberof ProductsApi
|
|
9779
|
+
*/
|
|
9780
|
+
ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
|
|
9781
|
+
var _this = this;
|
|
9782
|
+
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9783
|
+
};
|
|
9784
|
+
/**
|
|
9785
|
+
* Get Product For Customer
|
|
9786
|
+
* @summary Get Product For Customer
|
|
9787
|
+
* @param {number} customerId Customer ID
|
|
9788
|
+
* @param {string} sku Product SKU
|
|
9789
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9790
|
+
* @param {*} [options] Override http request option.
|
|
9791
|
+
* @throws {RequiredError}
|
|
9792
|
+
* @memberof ProductsApi
|
|
9793
|
+
*/
|
|
9794
|
+
ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
9795
|
+
var _this = this;
|
|
9796
|
+
return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9797
|
+
};
|
|
9071
9798
|
return ProductsApi;
|
|
9072
9799
|
}(base_1.BaseAPI));
|
|
9073
9800
|
exports.ProductsApi = ProductsApi;
|
|
@@ -11793,6 +12520,131 @@ var SMSApi = /** @class */ (function (_super) {
|
|
|
11793
12520
|
return SMSApi;
|
|
11794
12521
|
}(base_1.BaseAPI));
|
|
11795
12522
|
exports.SMSApi = SMSApi;
|
|
12523
|
+
/**
|
|
12524
|
+
* ShippingApi - axios parameter creator
|
|
12525
|
+
* @export
|
|
12526
|
+
*/
|
|
12527
|
+
var ShippingApiAxiosParamCreator = function (configuration) {
|
|
12528
|
+
var _this = this;
|
|
12529
|
+
return {
|
|
12530
|
+
/**
|
|
12531
|
+
* Get Shipping Services
|
|
12532
|
+
* @summary Get Shipping Services
|
|
12533
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12534
|
+
* @param {*} [options] Override http request option.
|
|
12535
|
+
* @throws {RequiredError}
|
|
12536
|
+
*/
|
|
12537
|
+
postGetShippingServices: function (shippingInformationDTO_1) {
|
|
12538
|
+
var args_1 = [];
|
|
12539
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
12540
|
+
args_1[_i - 1] = arguments[_i];
|
|
12541
|
+
}
|
|
12542
|
+
return __awaiter(_this, __spreadArray([shippingInformationDTO_1], args_1, true), void 0, function (shippingInformationDTO, options) {
|
|
12543
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12544
|
+
if (options === void 0) { options = {}; }
|
|
12545
|
+
return __generator(this, function (_a) {
|
|
12546
|
+
localVarPath = "/shipping/services";
|
|
12547
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12548
|
+
if (configuration) {
|
|
12549
|
+
baseOptions = configuration.baseOptions;
|
|
12550
|
+
}
|
|
12551
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
12552
|
+
localVarHeaderParameter = {};
|
|
12553
|
+
localVarQueryParameter = {};
|
|
12554
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12555
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12556
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12557
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12558
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingInformationDTO, localVarRequestOptions, configuration);
|
|
12559
|
+
return [2 /*return*/, {
|
|
12560
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12561
|
+
options: localVarRequestOptions,
|
|
12562
|
+
}];
|
|
12563
|
+
});
|
|
12564
|
+
});
|
|
12565
|
+
},
|
|
12566
|
+
};
|
|
12567
|
+
};
|
|
12568
|
+
exports.ShippingApiAxiosParamCreator = ShippingApiAxiosParamCreator;
|
|
12569
|
+
/**
|
|
12570
|
+
* ShippingApi - functional programming interface
|
|
12571
|
+
* @export
|
|
12572
|
+
*/
|
|
12573
|
+
var ShippingApiFp = function (configuration) {
|
|
12574
|
+
var localVarAxiosParamCreator = (0, exports.ShippingApiAxiosParamCreator)(configuration);
|
|
12575
|
+
return {
|
|
12576
|
+
/**
|
|
12577
|
+
* Get Shipping Services
|
|
12578
|
+
* @summary Get Shipping Services
|
|
12579
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12580
|
+
* @param {*} [options] Override http request option.
|
|
12581
|
+
* @throws {RequiredError}
|
|
12582
|
+
*/
|
|
12583
|
+
postGetShippingServices: function (shippingInformationDTO, options) {
|
|
12584
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12585
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
12586
|
+
var _a, _b, _c;
|
|
12587
|
+
return __generator(this, function (_d) {
|
|
12588
|
+
switch (_d.label) {
|
|
12589
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options)];
|
|
12590
|
+
case 1:
|
|
12591
|
+
localVarAxiosArgs = _d.sent();
|
|
12592
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12593
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShippingApi.postGetShippingServices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12594
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
12595
|
+
}
|
|
12596
|
+
});
|
|
12597
|
+
});
|
|
12598
|
+
},
|
|
12599
|
+
};
|
|
12600
|
+
};
|
|
12601
|
+
exports.ShippingApiFp = ShippingApiFp;
|
|
12602
|
+
/**
|
|
12603
|
+
* ShippingApi - factory interface
|
|
12604
|
+
* @export
|
|
12605
|
+
*/
|
|
12606
|
+
var ShippingApiFactory = function (configuration, basePath, axios) {
|
|
12607
|
+
var localVarFp = (0, exports.ShippingApiFp)(configuration);
|
|
12608
|
+
return {
|
|
12609
|
+
/**
|
|
12610
|
+
* Get Shipping Services
|
|
12611
|
+
* @summary Get Shipping Services
|
|
12612
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12613
|
+
* @param {*} [options] Override http request option.
|
|
12614
|
+
* @throws {RequiredError}
|
|
12615
|
+
*/
|
|
12616
|
+
postGetShippingServices: function (shippingInformationDTO, options) {
|
|
12617
|
+
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(axios, basePath); });
|
|
12618
|
+
},
|
|
12619
|
+
};
|
|
12620
|
+
};
|
|
12621
|
+
exports.ShippingApiFactory = ShippingApiFactory;
|
|
12622
|
+
/**
|
|
12623
|
+
* ShippingApi - object-oriented interface
|
|
12624
|
+
* @export
|
|
12625
|
+
* @class ShippingApi
|
|
12626
|
+
* @extends {BaseAPI}
|
|
12627
|
+
*/
|
|
12628
|
+
var ShippingApi = /** @class */ (function (_super) {
|
|
12629
|
+
__extends(ShippingApi, _super);
|
|
12630
|
+
function ShippingApi() {
|
|
12631
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
12632
|
+
}
|
|
12633
|
+
/**
|
|
12634
|
+
* Get Shipping Services
|
|
12635
|
+
* @summary Get Shipping Services
|
|
12636
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12637
|
+
* @param {*} [options] Override http request option.
|
|
12638
|
+
* @throws {RequiredError}
|
|
12639
|
+
* @memberof ShippingApi
|
|
12640
|
+
*/
|
|
12641
|
+
ShippingApi.prototype.postGetShippingServices = function (shippingInformationDTO, options) {
|
|
12642
|
+
var _this = this;
|
|
12643
|
+
return (0, exports.ShippingApiFp)(this.configuration).postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12644
|
+
};
|
|
12645
|
+
return ShippingApi;
|
|
12646
|
+
}(base_1.BaseAPI));
|
|
12647
|
+
exports.ShippingApi = ShippingApi;
|
|
11796
12648
|
/**
|
|
11797
12649
|
* StockManagementApi - axios parameter creator
|
|
11798
12650
|
* @export
|