yellowgrid-api-ts 3.1.15 → 3.1.17-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 +218 -198
- package/README.md +39 -8
- package/api.ts +2183 -289
- 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 +1609 -174
- package/dist/api.js +1248 -215
- 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/AddressModel.md +2 -0
- package/docs/AdminItemRequestDTO.md +43 -0
- package/docs/AdminOrderRequestDTO.md +45 -0
- package/docs/AdminUserModel.md +29 -0
- package/docs/AuditLogEntity.md +37 -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 +37 -0
- package/docs/CustomerOrderRequestDTO.md +33 -0
- package/docs/DetailedItemRequestDTO.md +43 -0
- package/docs/DetailedOrderRequestDTO.md +33 -0
- package/docs/ItemDTO.md +12 -4
- package/docs/ItemDiscountEntity.md +33 -0
- package/docs/ItemEntity.md +4 -2
- package/docs/LinkedOrderEntity.md +23 -0
- package/docs/OrderSummaryDTO.md +8 -0
- package/docs/OrderTotalModel.md +2 -0
- package/docs/OrdersApi.md +359 -7
- package/docs/PostGetProductForCustomerRequest.md +24 -0
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +7 -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 +122 -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/docs/UserEntity.md +4 -0
- package/hs_err_pid58424.log +247 -0
- 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 = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = void 0;
|
|
87
|
+
exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = 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.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = exports.AdminUserModelRoleEnum = void 0;
|
|
88
|
+
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 = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = void 0;
|
|
89
|
+
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = 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'
|
|
@@ -112,6 +119,11 @@ exports.HostingRegionDTOCodeEnum = {
|
|
|
112
119
|
UsEastVa1: 'US-EAST-VA-1',
|
|
113
120
|
UsWestOr1: 'US-WEST-OR-1'
|
|
114
121
|
};
|
|
122
|
+
exports.ItemDiscountEntityTypeEnum = {
|
|
123
|
+
TcxPhones: 'TCX_PHONES',
|
|
124
|
+
PhoneBulk: 'PHONE_BULK',
|
|
125
|
+
Additional: 'ADDITIONAL'
|
|
126
|
+
};
|
|
115
127
|
exports.MultiTenantChangeResponseModelTypeEnum = {
|
|
116
128
|
NewTrunk: 'New Trunk',
|
|
117
129
|
AvailableTrunk: 'Available Trunk',
|
|
@@ -169,6 +181,16 @@ exports.OrderTotalModelCurrencyEnum = {
|
|
|
169
181
|
Thb: 'THB',
|
|
170
182
|
Zar: 'ZAR'
|
|
171
183
|
};
|
|
184
|
+
exports.ShippingServiceDTOCourierEnum = {
|
|
185
|
+
Dpd: 'DPD',
|
|
186
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
187
|
+
Pops: 'POPS'
|
|
188
|
+
};
|
|
189
|
+
exports.ShippingServiceModelCourierEnum = {
|
|
190
|
+
Dpd: 'DPD',
|
|
191
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
192
|
+
Pops: 'POPS'
|
|
193
|
+
};
|
|
172
194
|
exports.SipTrunkChangeResponseModelTypeEnum = {
|
|
173
195
|
NewTrunk: 'New Trunk',
|
|
174
196
|
AvailableTrunk: 'Available Trunk',
|
|
@@ -413,6 +435,43 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
413
435
|
});
|
|
414
436
|
});
|
|
415
437
|
},
|
|
438
|
+
/**
|
|
439
|
+
* Get Account Detailed Summary
|
|
440
|
+
* @summary Get Account Detailed Summary
|
|
441
|
+
* @param {number} id Customer ID
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
getGetAccountDetailedSummary: function (id_1) {
|
|
446
|
+
var args_1 = [];
|
|
447
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
448
|
+
args_1[_i - 1] = arguments[_i];
|
|
449
|
+
}
|
|
450
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
451
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
452
|
+
if (options === void 0) { options = {}; }
|
|
453
|
+
return __generator(this, function (_a) {
|
|
454
|
+
// verify required parameter 'id' is not null or undefined
|
|
455
|
+
(0, common_1.assertParamExists)('getGetAccountDetailedSummary', 'id', id);
|
|
456
|
+
localVarPath = "/accounts/{id}/summary"
|
|
457
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
458
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
459
|
+
if (configuration) {
|
|
460
|
+
baseOptions = configuration.baseOptions;
|
|
461
|
+
}
|
|
462
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
463
|
+
localVarHeaderParameter = {};
|
|
464
|
+
localVarQueryParameter = {};
|
|
465
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
466
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
467
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
468
|
+
return [2 /*return*/, {
|
|
469
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
470
|
+
options: localVarRequestOptions,
|
|
471
|
+
}];
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
},
|
|
416
475
|
/**
|
|
417
476
|
* Get Accounts
|
|
418
477
|
* @summary Get Accounts
|
|
@@ -716,6 +775,39 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
716
775
|
});
|
|
717
776
|
});
|
|
718
777
|
},
|
|
778
|
+
/**
|
|
779
|
+
* Get Admin Account
|
|
780
|
+
* @summary Get Admin Account
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
*/
|
|
784
|
+
postGetAdminAccount: function () {
|
|
785
|
+
var args_1 = [];
|
|
786
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
787
|
+
args_1[_i] = arguments[_i];
|
|
788
|
+
}
|
|
789
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
790
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
791
|
+
if (options === void 0) { options = {}; }
|
|
792
|
+
return __generator(this, function (_a) {
|
|
793
|
+
localVarPath = "/admin/me";
|
|
794
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
795
|
+
if (configuration) {
|
|
796
|
+
baseOptions = configuration.baseOptions;
|
|
797
|
+
}
|
|
798
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
799
|
+
localVarHeaderParameter = {};
|
|
800
|
+
localVarQueryParameter = {};
|
|
801
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
802
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
803
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
804
|
+
return [2 /*return*/, {
|
|
805
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
806
|
+
options: localVarRequestOptions,
|
|
807
|
+
}];
|
|
808
|
+
});
|
|
809
|
+
});
|
|
810
|
+
},
|
|
719
811
|
/**
|
|
720
812
|
* Create client credentials
|
|
721
813
|
* @summary Create client credentials
|
|
@@ -1014,6 +1106,29 @@ var AccountsApiFp = function (configuration) {
|
|
|
1014
1106
|
});
|
|
1015
1107
|
});
|
|
1016
1108
|
},
|
|
1109
|
+
/**
|
|
1110
|
+
* Get Account Detailed Summary
|
|
1111
|
+
* @summary Get Account Detailed Summary
|
|
1112
|
+
* @param {number} id Customer ID
|
|
1113
|
+
* @param {*} [options] Override http request option.
|
|
1114
|
+
* @throws {RequiredError}
|
|
1115
|
+
*/
|
|
1116
|
+
getGetAccountDetailedSummary: function (id, options) {
|
|
1117
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1118
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1119
|
+
var _a, _b, _c;
|
|
1120
|
+
return __generator(this, function (_d) {
|
|
1121
|
+
switch (_d.label) {
|
|
1122
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options)];
|
|
1123
|
+
case 1:
|
|
1124
|
+
localVarAxiosArgs = _d.sent();
|
|
1125
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1126
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountDetailedSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1127
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1128
|
+
}
|
|
1129
|
+
});
|
|
1130
|
+
});
|
|
1131
|
+
},
|
|
1017
1132
|
/**
|
|
1018
1133
|
* Get Accounts
|
|
1019
1134
|
* @summary Get Accounts
|
|
@@ -1199,6 +1314,28 @@ var AccountsApiFp = function (configuration) {
|
|
|
1199
1314
|
});
|
|
1200
1315
|
});
|
|
1201
1316
|
},
|
|
1317
|
+
/**
|
|
1318
|
+
* Get Admin Account
|
|
1319
|
+
* @summary Get Admin Account
|
|
1320
|
+
* @param {*} [options] Override http request option.
|
|
1321
|
+
* @throws {RequiredError}
|
|
1322
|
+
*/
|
|
1323
|
+
postGetAdminAccount: function (options) {
|
|
1324
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1325
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1326
|
+
var _a, _b, _c;
|
|
1327
|
+
return __generator(this, function (_d) {
|
|
1328
|
+
switch (_d.label) {
|
|
1329
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAdminAccount(options)];
|
|
1330
|
+
case 1:
|
|
1331
|
+
localVarAxiosArgs = _d.sent();
|
|
1332
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1333
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postGetAdminAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1334
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1335
|
+
}
|
|
1336
|
+
});
|
|
1337
|
+
});
|
|
1338
|
+
},
|
|
1202
1339
|
/**
|
|
1203
1340
|
* Create client credentials
|
|
1204
1341
|
* @summary Create client credentials
|
|
@@ -1366,6 +1503,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1366
1503
|
getGetAccountContacts: function (email, options) {
|
|
1367
1504
|
return localVarFp.getGetAccountContacts(email, options).then(function (request) { return request(axios, basePath); });
|
|
1368
1505
|
},
|
|
1506
|
+
/**
|
|
1507
|
+
* Get Account Detailed Summary
|
|
1508
|
+
* @summary Get Account Detailed Summary
|
|
1509
|
+
* @param {number} id Customer ID
|
|
1510
|
+
* @param {*} [options] Override http request option.
|
|
1511
|
+
* @throws {RequiredError}
|
|
1512
|
+
*/
|
|
1513
|
+
getGetAccountDetailedSummary: function (id, options) {
|
|
1514
|
+
return localVarFp.getGetAccountDetailedSummary(id, options).then(function (request) { return request(axios, basePath); });
|
|
1515
|
+
},
|
|
1369
1516
|
/**
|
|
1370
1517
|
* Get Accounts
|
|
1371
1518
|
* @summary Get Accounts
|
|
@@ -1447,6 +1594,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1447
1594
|
postGetAccounts: function (accountRequestModel, options) {
|
|
1448
1595
|
return localVarFp.postGetAccounts(accountRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
1449
1596
|
},
|
|
1597
|
+
/**
|
|
1598
|
+
* Get Admin Account
|
|
1599
|
+
* @summary Get Admin Account
|
|
1600
|
+
* @param {*} [options] Override http request option.
|
|
1601
|
+
* @throws {RequiredError}
|
|
1602
|
+
*/
|
|
1603
|
+
postGetAdminAccount: function (options) {
|
|
1604
|
+
return localVarFp.postGetAdminAccount(options).then(function (request) { return request(axios, basePath); });
|
|
1605
|
+
},
|
|
1450
1606
|
/**
|
|
1451
1607
|
* Create client credentials
|
|
1452
1608
|
* @summary Create client credentials
|
|
@@ -1561,6 +1717,18 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1561
1717
|
var _this = this;
|
|
1562
1718
|
return (0, exports.AccountsApiFp)(this.configuration).getGetAccountContacts(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1563
1719
|
};
|
|
1720
|
+
/**
|
|
1721
|
+
* Get Account Detailed Summary
|
|
1722
|
+
* @summary Get Account Detailed Summary
|
|
1723
|
+
* @param {number} id Customer ID
|
|
1724
|
+
* @param {*} [options] Override http request option.
|
|
1725
|
+
* @throws {RequiredError}
|
|
1726
|
+
* @memberof AccountsApi
|
|
1727
|
+
*/
|
|
1728
|
+
AccountsApi.prototype.getGetAccountDetailedSummary = function (id, options) {
|
|
1729
|
+
var _this = this;
|
|
1730
|
+
return (0, exports.AccountsApiFp)(this.configuration).getGetAccountDetailedSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1731
|
+
};
|
|
1564
1732
|
/**
|
|
1565
1733
|
* Get Accounts
|
|
1566
1734
|
* @summary Get Accounts
|
|
@@ -1658,6 +1826,17 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1658
1826
|
var _this = this;
|
|
1659
1827
|
return (0, exports.AccountsApiFp)(this.configuration).postGetAccounts(accountRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1660
1828
|
};
|
|
1829
|
+
/**
|
|
1830
|
+
* Get Admin Account
|
|
1831
|
+
* @summary Get Admin Account
|
|
1832
|
+
* @param {*} [options] Override http request option.
|
|
1833
|
+
* @throws {RequiredError}
|
|
1834
|
+
* @memberof AccountsApi
|
|
1835
|
+
*/
|
|
1836
|
+
AccountsApi.prototype.postGetAdminAccount = function (options) {
|
|
1837
|
+
var _this = this;
|
|
1838
|
+
return (0, exports.AccountsApiFp)(this.configuration).postGetAdminAccount(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1839
|
+
};
|
|
1661
1840
|
/**
|
|
1662
1841
|
* Create client credentials
|
|
1663
1842
|
* @summary Create client credentials
|
|
@@ -1885,45 +2064,6 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
|
|
|
1885
2064
|
});
|
|
1886
2065
|
});
|
|
1887
2066
|
},
|
|
1888
|
-
/**
|
|
1889
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
1890
|
-
* @summary Convert a password to a hashed 3CX password
|
|
1891
|
-
* @param {string} password Desired 3CX web access password
|
|
1892
|
-
* @param {*} [options] Override http request option.
|
|
1893
|
-
* @throws {RequiredError}
|
|
1894
|
-
*/
|
|
1895
|
-
getGetPasswordHash: function (password_1) {
|
|
1896
|
-
var args_1 = [];
|
|
1897
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1898
|
-
args_1[_i - 1] = arguments[_i];
|
|
1899
|
-
}
|
|
1900
|
-
return __awaiter(_this, __spreadArray([password_1], args_1, true), void 0, function (password, options) {
|
|
1901
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1902
|
-
if (options === void 0) { options = {}; }
|
|
1903
|
-
return __generator(this, function (_a) {
|
|
1904
|
-
// verify required parameter 'password' is not null or undefined
|
|
1905
|
-
(0, common_1.assertParamExists)('getGetPasswordHash', 'password', password);
|
|
1906
|
-
localVarPath = "/tcx/pwd2hash";
|
|
1907
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1908
|
-
if (configuration) {
|
|
1909
|
-
baseOptions = configuration.baseOptions;
|
|
1910
|
-
}
|
|
1911
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1912
|
-
localVarHeaderParameter = {};
|
|
1913
|
-
localVarQueryParameter = {};
|
|
1914
|
-
if (password !== undefined) {
|
|
1915
|
-
localVarQueryParameter['password'] = password;
|
|
1916
|
-
}
|
|
1917
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1918
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1919
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1920
|
-
return [2 /*return*/, {
|
|
1921
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1922
|
-
options: localVarRequestOptions,
|
|
1923
|
-
}];
|
|
1924
|
-
});
|
|
1925
|
-
});
|
|
1926
|
-
},
|
|
1927
2067
|
/**
|
|
1928
2068
|
* Get Bulk 3CX Licence Details
|
|
1929
2069
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -1993,29 +2133,6 @@ var Class3CXApiFp = function (configuration) {
|
|
|
1993
2133
|
});
|
|
1994
2134
|
});
|
|
1995
2135
|
},
|
|
1996
|
-
/**
|
|
1997
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
1998
|
-
* @summary Convert a password to a hashed 3CX password
|
|
1999
|
-
* @param {string} password Desired 3CX web access password
|
|
2000
|
-
* @param {*} [options] Override http request option.
|
|
2001
|
-
* @throws {RequiredError}
|
|
2002
|
-
*/
|
|
2003
|
-
getGetPasswordHash: function (password, options) {
|
|
2004
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2005
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2006
|
-
var _a, _b, _c;
|
|
2007
|
-
return __generator(this, function (_d) {
|
|
2008
|
-
switch (_d.label) {
|
|
2009
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetPasswordHash(password, options)];
|
|
2010
|
-
case 1:
|
|
2011
|
-
localVarAxiosArgs = _d.sent();
|
|
2012
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2013
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.getGetPasswordHash']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2014
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2015
|
-
}
|
|
2016
|
-
});
|
|
2017
|
-
});
|
|
2018
|
-
},
|
|
2019
2136
|
/**
|
|
2020
2137
|
* Get Bulk 3CX Licence Details
|
|
2021
2138
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -2059,16 +2176,6 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
|
|
|
2059
2176
|
getGetLicenceDetails: function (key, options) {
|
|
2060
2177
|
return localVarFp.getGetLicenceDetails(key, options).then(function (request) { return request(axios, basePath); });
|
|
2061
2178
|
},
|
|
2062
|
-
/**
|
|
2063
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
2064
|
-
* @summary Convert a password to a hashed 3CX password
|
|
2065
|
-
* @param {string} password Desired 3CX web access password
|
|
2066
|
-
* @param {*} [options] Override http request option.
|
|
2067
|
-
* @throws {RequiredError}
|
|
2068
|
-
*/
|
|
2069
|
-
getGetPasswordHash: function (password, options) {
|
|
2070
|
-
return localVarFp.getGetPasswordHash(password, options).then(function (request) { return request(axios, basePath); });
|
|
2071
|
-
},
|
|
2072
2179
|
/**
|
|
2073
2180
|
* Get Bulk 3CX Licence Details
|
|
2074
2181
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -2105,18 +2212,6 @@ var Class3CXApi = /** @class */ (function (_super) {
|
|
|
2105
2212
|
var _this = this;
|
|
2106
2213
|
return (0, exports.Class3CXApiFp)(this.configuration).getGetLicenceDetails(key, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2107
2214
|
};
|
|
2108
|
-
/**
|
|
2109
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
2110
|
-
* @summary Convert a password to a hashed 3CX password
|
|
2111
|
-
* @param {string} password Desired 3CX web access password
|
|
2112
|
-
* @param {*} [options] Override http request option.
|
|
2113
|
-
* @throws {RequiredError}
|
|
2114
|
-
* @memberof Class3CXApi
|
|
2115
|
-
*/
|
|
2116
|
-
Class3CXApi.prototype.getGetPasswordHash = function (password, options) {
|
|
2117
|
-
var _this = this;
|
|
2118
|
-
return (0, exports.Class3CXApiFp)(this.configuration).getGetPasswordHash(password, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2119
|
-
};
|
|
2120
2215
|
/**
|
|
2121
2216
|
* Get Bulk 3CX Licence Details
|
|
2122
2217
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -8053,12 +8148,13 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8053
8148
|
var _this = this;
|
|
8054
8149
|
return {
|
|
8055
8150
|
/**
|
|
8056
|
-
* Delete Orders
|
|
8151
|
+
* Delete Orders (Beta)
|
|
8152
|
+
* @summary Delete Orders (Beta)
|
|
8057
8153
|
* @param {number} id Order ID
|
|
8058
8154
|
* @param {*} [options] Override http request option.
|
|
8059
8155
|
* @throws {RequiredError}
|
|
8060
8156
|
*/
|
|
8061
|
-
|
|
8157
|
+
deleteUpdateOrder: function (id_1) {
|
|
8062
8158
|
var args_1 = [];
|
|
8063
8159
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8064
8160
|
args_1[_i - 1] = arguments[_i];
|
|
@@ -8068,7 +8164,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8068
8164
|
if (options === void 0) { options = {}; }
|
|
8069
8165
|
return __generator(this, function (_a) {
|
|
8070
8166
|
// verify required parameter 'id' is not null or undefined
|
|
8071
|
-
(0, common_1.assertParamExists)('
|
|
8167
|
+
(0, common_1.assertParamExists)('deleteUpdateOrder', 'id', id);
|
|
8072
8168
|
localVarPath = "/orders/{id}"
|
|
8073
8169
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8074
8170
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8089,8 +8185,82 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8089
8185
|
});
|
|
8090
8186
|
},
|
|
8091
8187
|
/**
|
|
8092
|
-
* Get
|
|
8093
|
-
* @summary Get
|
|
8188
|
+
* Get Editable Order (Admin)
|
|
8189
|
+
* @summary Get Editable Order (Admin)
|
|
8190
|
+
* @param {number} id Order ID
|
|
8191
|
+
* @param {*} [options] Override http request option.
|
|
8192
|
+
* @throws {RequiredError}
|
|
8193
|
+
*/
|
|
8194
|
+
getGetAdminEditableOrder: function (id_1) {
|
|
8195
|
+
var args_1 = [];
|
|
8196
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8197
|
+
args_1[_i - 1] = arguments[_i];
|
|
8198
|
+
}
|
|
8199
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
8200
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8201
|
+
if (options === void 0) { options = {}; }
|
|
8202
|
+
return __generator(this, function (_a) {
|
|
8203
|
+
// verify required parameter 'id' is not null or undefined
|
|
8204
|
+
(0, common_1.assertParamExists)('getGetAdminEditableOrder', 'id', id);
|
|
8205
|
+
localVarPath = "/admin/orders/{id}/views/editable"
|
|
8206
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8207
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8208
|
+
if (configuration) {
|
|
8209
|
+
baseOptions = configuration.baseOptions;
|
|
8210
|
+
}
|
|
8211
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8212
|
+
localVarHeaderParameter = {};
|
|
8213
|
+
localVarQueryParameter = {};
|
|
8214
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8215
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8216
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8217
|
+
return [2 /*return*/, {
|
|
8218
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8219
|
+
options: localVarRequestOptions,
|
|
8220
|
+
}];
|
|
8221
|
+
});
|
|
8222
|
+
});
|
|
8223
|
+
},
|
|
8224
|
+
/**
|
|
8225
|
+
* Get Editable Order (Beta)
|
|
8226
|
+
* @summary Get Editable Order (Beta)
|
|
8227
|
+
* @param {number} id Order ID
|
|
8228
|
+
* @param {*} [options] Override http request option.
|
|
8229
|
+
* @throws {RequiredError}
|
|
8230
|
+
*/
|
|
8231
|
+
getGetEditableOrder: function (id_1) {
|
|
8232
|
+
var args_1 = [];
|
|
8233
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8234
|
+
args_1[_i - 1] = arguments[_i];
|
|
8235
|
+
}
|
|
8236
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
8237
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8238
|
+
if (options === void 0) { options = {}; }
|
|
8239
|
+
return __generator(this, function (_a) {
|
|
8240
|
+
// verify required parameter 'id' is not null or undefined
|
|
8241
|
+
(0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
|
|
8242
|
+
localVarPath = "/orders/{id}/views/editable"
|
|
8243
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8244
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8245
|
+
if (configuration) {
|
|
8246
|
+
baseOptions = configuration.baseOptions;
|
|
8247
|
+
}
|
|
8248
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8249
|
+
localVarHeaderParameter = {};
|
|
8250
|
+
localVarQueryParameter = {};
|
|
8251
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8252
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8253
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8254
|
+
return [2 /*return*/, {
|
|
8255
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8256
|
+
options: localVarRequestOptions,
|
|
8257
|
+
}];
|
|
8258
|
+
});
|
|
8259
|
+
});
|
|
8260
|
+
},
|
|
8261
|
+
/**
|
|
8262
|
+
* Get Orders (Beta)
|
|
8263
|
+
* @summary Get Orders (Beta)
|
|
8094
8264
|
* @param {number} [pageSize] Number Of Results
|
|
8095
8265
|
* @param {number} [page] Page Number
|
|
8096
8266
|
* @param {string} [search] Search
|
|
@@ -8149,41 +8319,256 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8149
8319
|
});
|
|
8150
8320
|
});
|
|
8151
8321
|
},
|
|
8152
|
-
};
|
|
8153
|
-
};
|
|
8154
|
-
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
8155
|
-
/**
|
|
8156
|
-
* OrdersApi - functional programming interface
|
|
8157
|
-
* @export
|
|
8158
|
-
*/
|
|
8159
|
-
var OrdersApiFp = function (configuration) {
|
|
8160
|
-
var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
8161
|
-
return {
|
|
8162
8322
|
/**
|
|
8163
|
-
*
|
|
8323
|
+
* Create An Order (Admin)
|
|
8324
|
+
* @summary Create An Order (Admin)
|
|
8325
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8326
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8327
|
+
* @param {*} [options] Override http request option.
|
|
8328
|
+
* @throws {RequiredError}
|
|
8329
|
+
*/
|
|
8330
|
+
postCreateAdminOrder: function (readonly_1, adminOrderRequestDTO_1) {
|
|
8331
|
+
var args_1 = [];
|
|
8332
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8333
|
+
args_1[_i - 2] = arguments[_i];
|
|
8334
|
+
}
|
|
8335
|
+
return __awaiter(_this, __spreadArray([readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (readonly, adminOrderRequestDTO, options) {
|
|
8336
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8337
|
+
if (options === void 0) { options = {}; }
|
|
8338
|
+
return __generator(this, function (_a) {
|
|
8339
|
+
localVarPath = "/admin/orders";
|
|
8340
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8341
|
+
if (configuration) {
|
|
8342
|
+
baseOptions = configuration.baseOptions;
|
|
8343
|
+
}
|
|
8344
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8345
|
+
localVarHeaderParameter = {};
|
|
8346
|
+
localVarQueryParameter = {};
|
|
8347
|
+
if (readonly !== undefined) {
|
|
8348
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
8349
|
+
}
|
|
8350
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8351
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8352
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8353
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8354
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8355
|
+
return [2 /*return*/, {
|
|
8356
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8357
|
+
options: localVarRequestOptions,
|
|
8358
|
+
}];
|
|
8359
|
+
});
|
|
8360
|
+
});
|
|
8361
|
+
},
|
|
8362
|
+
/**
|
|
8363
|
+
* Create An Order (Beta)
|
|
8364
|
+
* @summary Create An Order (Beta)
|
|
8365
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8366
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8367
|
+
* @param {*} [options] Override http request option.
|
|
8368
|
+
* @throws {RequiredError}
|
|
8369
|
+
*/
|
|
8370
|
+
postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
|
|
8371
|
+
var args_1 = [];
|
|
8372
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8373
|
+
args_1[_i - 2] = arguments[_i];
|
|
8374
|
+
}
|
|
8375
|
+
return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
|
|
8376
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8377
|
+
if (options === void 0) { options = {}; }
|
|
8378
|
+
return __generator(this, function (_a) {
|
|
8379
|
+
localVarPath = "/orders";
|
|
8380
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8381
|
+
if (configuration) {
|
|
8382
|
+
baseOptions = configuration.baseOptions;
|
|
8383
|
+
}
|
|
8384
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8385
|
+
localVarHeaderParameter = {};
|
|
8386
|
+
localVarQueryParameter = {};
|
|
8387
|
+
if (readonly !== undefined) {
|
|
8388
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
8389
|
+
}
|
|
8390
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8391
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8392
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8393
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8394
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8395
|
+
return [2 /*return*/, {
|
|
8396
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8397
|
+
options: localVarRequestOptions,
|
|
8398
|
+
}];
|
|
8399
|
+
});
|
|
8400
|
+
});
|
|
8401
|
+
},
|
|
8402
|
+
/**
|
|
8403
|
+
* Update An Order (Admin)
|
|
8404
|
+
* @summary Update An Order (Admin)
|
|
8405
|
+
* @param {number} id Order ID
|
|
8406
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8407
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8408
|
+
* @param {*} [options] Override http request option.
|
|
8409
|
+
* @throws {RequiredError}
|
|
8410
|
+
*/
|
|
8411
|
+
putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
|
|
8412
|
+
var args_1 = [];
|
|
8413
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8414
|
+
args_1[_i - 3] = arguments[_i];
|
|
8415
|
+
}
|
|
8416
|
+
return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
|
|
8417
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8418
|
+
if (options === void 0) { options = {}; }
|
|
8419
|
+
return __generator(this, function (_a) {
|
|
8420
|
+
// verify required parameter 'id' is not null or undefined
|
|
8421
|
+
(0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
|
|
8422
|
+
localVarPath = "/admin/orders/{id}"
|
|
8423
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8424
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8425
|
+
if (configuration) {
|
|
8426
|
+
baseOptions = configuration.baseOptions;
|
|
8427
|
+
}
|
|
8428
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
8429
|
+
localVarHeaderParameter = {};
|
|
8430
|
+
localVarQueryParameter = {};
|
|
8431
|
+
if (readonly !== undefined) {
|
|
8432
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
8433
|
+
}
|
|
8434
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8435
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8436
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8437
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8438
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8439
|
+
return [2 /*return*/, {
|
|
8440
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8441
|
+
options: localVarRequestOptions,
|
|
8442
|
+
}];
|
|
8443
|
+
});
|
|
8444
|
+
});
|
|
8445
|
+
},
|
|
8446
|
+
/**
|
|
8447
|
+
* Update An Order (Beta)
|
|
8448
|
+
* @summary Update An Order (Beta)
|
|
8449
|
+
* @param {number} id Order ID
|
|
8450
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8451
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8452
|
+
* @param {*} [options] Override http request option.
|
|
8453
|
+
* @throws {RequiredError}
|
|
8454
|
+
*/
|
|
8455
|
+
putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
|
|
8456
|
+
var args_1 = [];
|
|
8457
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8458
|
+
args_1[_i - 3] = arguments[_i];
|
|
8459
|
+
}
|
|
8460
|
+
return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
|
|
8461
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8462
|
+
if (options === void 0) { options = {}; }
|
|
8463
|
+
return __generator(this, function (_a) {
|
|
8464
|
+
// verify required parameter 'id' is not null or undefined
|
|
8465
|
+
(0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
|
|
8466
|
+
localVarPath = "/orders/{id}"
|
|
8467
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8468
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8469
|
+
if (configuration) {
|
|
8470
|
+
baseOptions = configuration.baseOptions;
|
|
8471
|
+
}
|
|
8472
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
8473
|
+
localVarHeaderParameter = {};
|
|
8474
|
+
localVarQueryParameter = {};
|
|
8475
|
+
if (readonly !== undefined) {
|
|
8476
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
8477
|
+
}
|
|
8478
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8479
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8480
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8481
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8482
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8483
|
+
return [2 /*return*/, {
|
|
8484
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8485
|
+
options: localVarRequestOptions,
|
|
8486
|
+
}];
|
|
8487
|
+
});
|
|
8488
|
+
});
|
|
8489
|
+
},
|
|
8490
|
+
};
|
|
8491
|
+
};
|
|
8492
|
+
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
8493
|
+
/**
|
|
8494
|
+
* OrdersApi - functional programming interface
|
|
8495
|
+
* @export
|
|
8496
|
+
*/
|
|
8497
|
+
var OrdersApiFp = function (configuration) {
|
|
8498
|
+
var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
8499
|
+
return {
|
|
8500
|
+
/**
|
|
8501
|
+
* Delete Orders (Beta)
|
|
8502
|
+
* @summary Delete Orders (Beta)
|
|
8164
8503
|
* @param {number} id Order ID
|
|
8165
8504
|
* @param {*} [options] Override http request option.
|
|
8166
8505
|
* @throws {RequiredError}
|
|
8167
8506
|
*/
|
|
8168
|
-
|
|
8507
|
+
deleteUpdateOrder: function (id, options) {
|
|
8169
8508
|
return __awaiter(this, void 0, void 0, function () {
|
|
8170
8509
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8171
8510
|
var _a, _b, _c;
|
|
8172
8511
|
return __generator(this, function (_d) {
|
|
8173
8512
|
switch (_d.label) {
|
|
8174
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8513
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
|
|
8175
8514
|
case 1:
|
|
8176
8515
|
localVarAxiosArgs = _d.sent();
|
|
8177
8516
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8178
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.
|
|
8517
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8179
8518
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8180
8519
|
}
|
|
8181
8520
|
});
|
|
8182
8521
|
});
|
|
8183
8522
|
},
|
|
8184
8523
|
/**
|
|
8185
|
-
* Get
|
|
8186
|
-
* @summary Get
|
|
8524
|
+
* Get Editable Order (Admin)
|
|
8525
|
+
* @summary Get Editable Order (Admin)
|
|
8526
|
+
* @param {number} id Order ID
|
|
8527
|
+
* @param {*} [options] Override http request option.
|
|
8528
|
+
* @throws {RequiredError}
|
|
8529
|
+
*/
|
|
8530
|
+
getGetAdminEditableOrder: function (id, options) {
|
|
8531
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8532
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8533
|
+
var _a, _b, _c;
|
|
8534
|
+
return __generator(this, function (_d) {
|
|
8535
|
+
switch (_d.label) {
|
|
8536
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminEditableOrder(id, options)];
|
|
8537
|
+
case 1:
|
|
8538
|
+
localVarAxiosArgs = _d.sent();
|
|
8539
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8540
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetAdminEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8541
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8542
|
+
}
|
|
8543
|
+
});
|
|
8544
|
+
});
|
|
8545
|
+
},
|
|
8546
|
+
/**
|
|
8547
|
+
* Get Editable Order (Beta)
|
|
8548
|
+
* @summary Get Editable Order (Beta)
|
|
8549
|
+
* @param {number} id Order ID
|
|
8550
|
+
* @param {*} [options] Override http request option.
|
|
8551
|
+
* @throws {RequiredError}
|
|
8552
|
+
*/
|
|
8553
|
+
getGetEditableOrder: function (id, options) {
|
|
8554
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8555
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8556
|
+
var _a, _b, _c;
|
|
8557
|
+
return __generator(this, function (_d) {
|
|
8558
|
+
switch (_d.label) {
|
|
8559
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
|
|
8560
|
+
case 1:
|
|
8561
|
+
localVarAxiosArgs = _d.sent();
|
|
8562
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8563
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8564
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8565
|
+
}
|
|
8566
|
+
});
|
|
8567
|
+
});
|
|
8568
|
+
},
|
|
8569
|
+
/**
|
|
8570
|
+
* Get Orders (Beta)
|
|
8571
|
+
* @summary Get Orders (Beta)
|
|
8187
8572
|
* @param {number} [pageSize] Number Of Results
|
|
8188
8573
|
* @param {number} [page] Page Number
|
|
8189
8574
|
* @param {string} [search] Search
|
|
@@ -8210,6 +8595,104 @@ var OrdersApiFp = function (configuration) {
|
|
|
8210
8595
|
});
|
|
8211
8596
|
});
|
|
8212
8597
|
},
|
|
8598
|
+
/**
|
|
8599
|
+
* Create An Order (Admin)
|
|
8600
|
+
* @summary Create An Order (Admin)
|
|
8601
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8602
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8603
|
+
* @param {*} [options] Override http request option.
|
|
8604
|
+
* @throws {RequiredError}
|
|
8605
|
+
*/
|
|
8606
|
+
postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
|
|
8607
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8608
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8609
|
+
var _a, _b, _c;
|
|
8610
|
+
return __generator(this, function (_d) {
|
|
8611
|
+
switch (_d.label) {
|
|
8612
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
|
|
8613
|
+
case 1:
|
|
8614
|
+
localVarAxiosArgs = _d.sent();
|
|
8615
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8616
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8617
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8618
|
+
}
|
|
8619
|
+
});
|
|
8620
|
+
});
|
|
8621
|
+
},
|
|
8622
|
+
/**
|
|
8623
|
+
* Create An Order (Beta)
|
|
8624
|
+
* @summary Create An Order (Beta)
|
|
8625
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8626
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8627
|
+
* @param {*} [options] Override http request option.
|
|
8628
|
+
* @throws {RequiredError}
|
|
8629
|
+
*/
|
|
8630
|
+
postGetOrders: function (readonly, customerOrderRequestDTO, options) {
|
|
8631
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8632
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8633
|
+
var _a, _b, _c;
|
|
8634
|
+
return __generator(this, function (_d) {
|
|
8635
|
+
switch (_d.label) {
|
|
8636
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
|
|
8637
|
+
case 1:
|
|
8638
|
+
localVarAxiosArgs = _d.sent();
|
|
8639
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8640
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8641
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8642
|
+
}
|
|
8643
|
+
});
|
|
8644
|
+
});
|
|
8645
|
+
},
|
|
8646
|
+
/**
|
|
8647
|
+
* Update An Order (Admin)
|
|
8648
|
+
* @summary Update An Order (Admin)
|
|
8649
|
+
* @param {number} id Order ID
|
|
8650
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8651
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8652
|
+
* @param {*} [options] Override http request option.
|
|
8653
|
+
* @throws {RequiredError}
|
|
8654
|
+
*/
|
|
8655
|
+
putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
|
|
8656
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8657
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8658
|
+
var _a, _b, _c;
|
|
8659
|
+
return __generator(this, function (_d) {
|
|
8660
|
+
switch (_d.label) {
|
|
8661
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
|
|
8662
|
+
case 1:
|
|
8663
|
+
localVarAxiosArgs = _d.sent();
|
|
8664
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8665
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8666
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8667
|
+
}
|
|
8668
|
+
});
|
|
8669
|
+
});
|
|
8670
|
+
},
|
|
8671
|
+
/**
|
|
8672
|
+
* Update An Order (Beta)
|
|
8673
|
+
* @summary Update An Order (Beta)
|
|
8674
|
+
* @param {number} id Order ID
|
|
8675
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8676
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8677
|
+
* @param {*} [options] Override http request option.
|
|
8678
|
+
* @throws {RequiredError}
|
|
8679
|
+
*/
|
|
8680
|
+
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
8681
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8682
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8683
|
+
var _a, _b, _c;
|
|
8684
|
+
return __generator(this, function (_d) {
|
|
8685
|
+
switch (_d.label) {
|
|
8686
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options)];
|
|
8687
|
+
case 1:
|
|
8688
|
+
localVarAxiosArgs = _d.sent();
|
|
8689
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8690
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8691
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8692
|
+
}
|
|
8693
|
+
});
|
|
8694
|
+
});
|
|
8695
|
+
},
|
|
8213
8696
|
};
|
|
8214
8697
|
};
|
|
8215
8698
|
exports.OrdersApiFp = OrdersApiFp;
|
|
@@ -8221,17 +8704,38 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
8221
8704
|
var localVarFp = (0, exports.OrdersApiFp)(configuration);
|
|
8222
8705
|
return {
|
|
8223
8706
|
/**
|
|
8224
|
-
* Delete Orders
|
|
8707
|
+
* Delete Orders (Beta)
|
|
8708
|
+
* @summary Delete Orders (Beta)
|
|
8225
8709
|
* @param {number} id Order ID
|
|
8226
8710
|
* @param {*} [options] Override http request option.
|
|
8227
8711
|
* @throws {RequiredError}
|
|
8228
8712
|
*/
|
|
8229
|
-
|
|
8230
|
-
return localVarFp.
|
|
8713
|
+
deleteUpdateOrder: function (id, options) {
|
|
8714
|
+
return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
8231
8715
|
},
|
|
8232
8716
|
/**
|
|
8233
|
-
* Get
|
|
8234
|
-
* @summary Get
|
|
8717
|
+
* Get Editable Order (Admin)
|
|
8718
|
+
* @summary Get Editable Order (Admin)
|
|
8719
|
+
* @param {number} id Order ID
|
|
8720
|
+
* @param {*} [options] Override http request option.
|
|
8721
|
+
* @throws {RequiredError}
|
|
8722
|
+
*/
|
|
8723
|
+
getGetAdminEditableOrder: function (id, options) {
|
|
8724
|
+
return localVarFp.getGetAdminEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
8725
|
+
},
|
|
8726
|
+
/**
|
|
8727
|
+
* Get Editable Order (Beta)
|
|
8728
|
+
* @summary Get Editable Order (Beta)
|
|
8729
|
+
* @param {number} id Order ID
|
|
8730
|
+
* @param {*} [options] Override http request option.
|
|
8731
|
+
* @throws {RequiredError}
|
|
8732
|
+
*/
|
|
8733
|
+
getGetEditableOrder: function (id, options) {
|
|
8734
|
+
return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
8735
|
+
},
|
|
8736
|
+
/**
|
|
8737
|
+
* Get Orders (Beta)
|
|
8738
|
+
* @summary Get Orders (Beta)
|
|
8235
8739
|
* @param {number} [pageSize] Number Of Results
|
|
8236
8740
|
* @param {number} [page] Page Number
|
|
8237
8741
|
* @param {string} [search] Search
|
|
@@ -8245,6 +8749,52 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
8245
8749
|
getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
|
|
8246
8750
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
8247
8751
|
},
|
|
8752
|
+
/**
|
|
8753
|
+
* Create An Order (Admin)
|
|
8754
|
+
* @summary Create An Order (Admin)
|
|
8755
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8756
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8757
|
+
* @param {*} [options] Override http request option.
|
|
8758
|
+
* @throws {RequiredError}
|
|
8759
|
+
*/
|
|
8760
|
+
postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
|
|
8761
|
+
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8762
|
+
},
|
|
8763
|
+
/**
|
|
8764
|
+
* Create An Order (Beta)
|
|
8765
|
+
* @summary Create An Order (Beta)
|
|
8766
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8767
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8768
|
+
* @param {*} [options] Override http request option.
|
|
8769
|
+
* @throws {RequiredError}
|
|
8770
|
+
*/
|
|
8771
|
+
postGetOrders: function (readonly, customerOrderRequestDTO, options) {
|
|
8772
|
+
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8773
|
+
},
|
|
8774
|
+
/**
|
|
8775
|
+
* Update An Order (Admin)
|
|
8776
|
+
* @summary Update An Order (Admin)
|
|
8777
|
+
* @param {number} id Order ID
|
|
8778
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8779
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8780
|
+
* @param {*} [options] Override http request option.
|
|
8781
|
+
* @throws {RequiredError}
|
|
8782
|
+
*/
|
|
8783
|
+
putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
|
|
8784
|
+
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8785
|
+
},
|
|
8786
|
+
/**
|
|
8787
|
+
* Update An Order (Beta)
|
|
8788
|
+
* @summary Update An Order (Beta)
|
|
8789
|
+
* @param {number} id Order ID
|
|
8790
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8791
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8792
|
+
* @param {*} [options] Override http request option.
|
|
8793
|
+
* @throws {RequiredError}
|
|
8794
|
+
*/
|
|
8795
|
+
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
8796
|
+
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8797
|
+
},
|
|
8248
8798
|
};
|
|
8249
8799
|
};
|
|
8250
8800
|
exports.OrdersApiFactory = OrdersApiFactory;
|
|
@@ -8260,19 +8810,44 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
8260
8810
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
8261
8811
|
}
|
|
8262
8812
|
/**
|
|
8263
|
-
* Delete Orders
|
|
8813
|
+
* Delete Orders (Beta)
|
|
8814
|
+
* @summary Delete Orders (Beta)
|
|
8815
|
+
* @param {number} id Order ID
|
|
8816
|
+
* @param {*} [options] Override http request option.
|
|
8817
|
+
* @throws {RequiredError}
|
|
8818
|
+
* @memberof OrdersApi
|
|
8819
|
+
*/
|
|
8820
|
+
OrdersApi.prototype.deleteUpdateOrder = function (id, options) {
|
|
8821
|
+
var _this = this;
|
|
8822
|
+
return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8823
|
+
};
|
|
8824
|
+
/**
|
|
8825
|
+
* Get Editable Order (Admin)
|
|
8826
|
+
* @summary Get Editable Order (Admin)
|
|
8827
|
+
* @param {number} id Order ID
|
|
8828
|
+
* @param {*} [options] Override http request option.
|
|
8829
|
+
* @throws {RequiredError}
|
|
8830
|
+
* @memberof OrdersApi
|
|
8831
|
+
*/
|
|
8832
|
+
OrdersApi.prototype.getGetAdminEditableOrder = function (id, options) {
|
|
8833
|
+
var _this = this;
|
|
8834
|
+
return (0, exports.OrdersApiFp)(this.configuration).getGetAdminEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8835
|
+
};
|
|
8836
|
+
/**
|
|
8837
|
+
* Get Editable Order (Beta)
|
|
8838
|
+
* @summary Get Editable Order (Beta)
|
|
8264
8839
|
* @param {number} id Order ID
|
|
8265
8840
|
* @param {*} [options] Override http request option.
|
|
8266
8841
|
* @throws {RequiredError}
|
|
8267
8842
|
* @memberof OrdersApi
|
|
8268
8843
|
*/
|
|
8269
|
-
OrdersApi.prototype.
|
|
8844
|
+
OrdersApi.prototype.getGetEditableOrder = function (id, options) {
|
|
8270
8845
|
var _this = this;
|
|
8271
|
-
return (0, exports.OrdersApiFp)(this.configuration).
|
|
8846
|
+
return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8272
8847
|
};
|
|
8273
8848
|
/**
|
|
8274
|
-
* Get Orders
|
|
8275
|
-
* @summary Get Orders
|
|
8849
|
+
* Get Orders (Beta)
|
|
8850
|
+
* @summary Get Orders (Beta)
|
|
8276
8851
|
* @param {number} [pageSize] Number Of Results
|
|
8277
8852
|
* @param {number} [page] Page Number
|
|
8278
8853
|
* @param {string} [search] Search
|
|
@@ -8288,6 +8863,60 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
8288
8863
|
var _this = this;
|
|
8289
8864
|
return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8290
8865
|
};
|
|
8866
|
+
/**
|
|
8867
|
+
* Create An Order (Admin)
|
|
8868
|
+
* @summary Create An Order (Admin)
|
|
8869
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8870
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8871
|
+
* @param {*} [options] Override http request option.
|
|
8872
|
+
* @throws {RequiredError}
|
|
8873
|
+
* @memberof OrdersApi
|
|
8874
|
+
*/
|
|
8875
|
+
OrdersApi.prototype.postCreateAdminOrder = function (readonly, adminOrderRequestDTO, options) {
|
|
8876
|
+
var _this = this;
|
|
8877
|
+
return (0, exports.OrdersApiFp)(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8878
|
+
};
|
|
8879
|
+
/**
|
|
8880
|
+
* Create An Order (Beta)
|
|
8881
|
+
* @summary Create An Order (Beta)
|
|
8882
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8883
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8884
|
+
* @param {*} [options] Override http request option.
|
|
8885
|
+
* @throws {RequiredError}
|
|
8886
|
+
* @memberof OrdersApi
|
|
8887
|
+
*/
|
|
8888
|
+
OrdersApi.prototype.postGetOrders = function (readonly, customerOrderRequestDTO, options) {
|
|
8889
|
+
var _this = this;
|
|
8890
|
+
return (0, exports.OrdersApiFp)(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8891
|
+
};
|
|
8892
|
+
/**
|
|
8893
|
+
* Update An Order (Admin)
|
|
8894
|
+
* @summary Update An Order (Admin)
|
|
8895
|
+
* @param {number} id Order ID
|
|
8896
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8897
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8898
|
+
* @param {*} [options] Override http request option.
|
|
8899
|
+
* @throws {RequiredError}
|
|
8900
|
+
* @memberof OrdersApi
|
|
8901
|
+
*/
|
|
8902
|
+
OrdersApi.prototype.putUpdateAdminOrder = function (id, readonly, adminOrderRequestDTO, options) {
|
|
8903
|
+
var _this = this;
|
|
8904
|
+
return (0, exports.OrdersApiFp)(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8905
|
+
};
|
|
8906
|
+
/**
|
|
8907
|
+
* Update An Order (Beta)
|
|
8908
|
+
* @summary Update An Order (Beta)
|
|
8909
|
+
* @param {number} id Order ID
|
|
8910
|
+
* @param {boolean} [readonly] Readonly Order
|
|
8911
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8912
|
+
* @param {*} [options] Override http request option.
|
|
8913
|
+
* @throws {RequiredError}
|
|
8914
|
+
* @memberof OrdersApi
|
|
8915
|
+
*/
|
|
8916
|
+
OrdersApi.prototype.putUpdateOrder = function (id, readonly, customerOrderRequestDTO, options) {
|
|
8917
|
+
var _this = this;
|
|
8918
|
+
return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8919
|
+
};
|
|
8291
8920
|
return OrdersApi;
|
|
8292
8921
|
}(base_1.BaseAPI));
|
|
8293
8922
|
exports.OrdersApi = OrdersApi;
|
|
@@ -8715,12 +9344,52 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8715
9344
|
});
|
|
8716
9345
|
},
|
|
8717
9346
|
/**
|
|
8718
|
-
* Get
|
|
8719
|
-
* @summary Get
|
|
9347
|
+
* Get Current Stock & Pricing
|
|
9348
|
+
* @summary Get Current Stock & Pricing
|
|
9349
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
9350
|
+
* @param {*} [options] Override http request option.
|
|
9351
|
+
* @deprecated
|
|
9352
|
+
* @throws {RequiredError}
|
|
9353
|
+
*/
|
|
9354
|
+
getGetLegacyStockList: function (format_1) {
|
|
9355
|
+
var args_1 = [];
|
|
9356
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9357
|
+
args_1[_i - 1] = arguments[_i];
|
|
9358
|
+
}
|
|
9359
|
+
return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
|
|
9360
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9361
|
+
if (options === void 0) { options = {}; }
|
|
9362
|
+
return __generator(this, function (_a) {
|
|
9363
|
+
// verify required parameter 'format' is not null or undefined
|
|
9364
|
+
(0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
|
|
9365
|
+
localVarPath = "/products/stock/legacy";
|
|
9366
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9367
|
+
if (configuration) {
|
|
9368
|
+
baseOptions = configuration.baseOptions;
|
|
9369
|
+
}
|
|
9370
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9371
|
+
localVarHeaderParameter = {};
|
|
9372
|
+
localVarQueryParameter = {};
|
|
9373
|
+
if (format !== undefined) {
|
|
9374
|
+
localVarQueryParameter['format'] = format;
|
|
9375
|
+
}
|
|
9376
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9377
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9378
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9379
|
+
return [2 /*return*/, {
|
|
9380
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9381
|
+
options: localVarRequestOptions,
|
|
9382
|
+
}];
|
|
9383
|
+
});
|
|
9384
|
+
});
|
|
9385
|
+
},
|
|
9386
|
+
/**
|
|
9387
|
+
* Get Products
|
|
9388
|
+
* @summary Get Products
|
|
8720
9389
|
* @param {*} [options] Override http request option.
|
|
8721
9390
|
* @throws {RequiredError}
|
|
8722
9391
|
*/
|
|
8723
|
-
|
|
9392
|
+
getGetProducts: function () {
|
|
8724
9393
|
var args_1 = [];
|
|
8725
9394
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8726
9395
|
args_1[_i] = arguments[_i];
|
|
@@ -8729,7 +9398,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8729
9398
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8730
9399
|
if (options === void 0) { options = {}; }
|
|
8731
9400
|
return __generator(this, function (_a) {
|
|
8732
|
-
localVarPath = "/products
|
|
9401
|
+
localVarPath = "/products";
|
|
8733
9402
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8734
9403
|
if (configuration) {
|
|
8735
9404
|
baseOptions = configuration.baseOptions;
|
|
@@ -8750,23 +9419,19 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8750
9419
|
/**
|
|
8751
9420
|
* Get Current Stock & Pricing
|
|
8752
9421
|
* @summary Get Current Stock & Pricing
|
|
8753
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
8754
9422
|
* @param {*} [options] Override http request option.
|
|
8755
|
-
* @deprecated
|
|
8756
9423
|
* @throws {RequiredError}
|
|
8757
9424
|
*/
|
|
8758
|
-
|
|
9425
|
+
getGetStockList: function () {
|
|
8759
9426
|
var args_1 = [];
|
|
8760
|
-
for (var _i =
|
|
8761
|
-
args_1[_i
|
|
9427
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9428
|
+
args_1[_i] = arguments[_i];
|
|
8762
9429
|
}
|
|
8763
|
-
return __awaiter(_this, __spreadArray([
|
|
9430
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
8764
9431
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8765
9432
|
if (options === void 0) { options = {}; }
|
|
8766
9433
|
return __generator(this, function (_a) {
|
|
8767
|
-
|
|
8768
|
-
(0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
|
|
8769
|
-
localVarPath = "/products/stock/legacy";
|
|
9434
|
+
localVarPath = "/products/stock";
|
|
8770
9435
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8771
9436
|
if (configuration) {
|
|
8772
9437
|
baseOptions = configuration.baseOptions;
|
|
@@ -8774,9 +9439,39 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8774
9439
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8775
9440
|
localVarHeaderParameter = {};
|
|
8776
9441
|
localVarQueryParameter = {};
|
|
8777
|
-
|
|
8778
|
-
|
|
9442
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9443
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9444
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9445
|
+
return [2 /*return*/, {
|
|
9446
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9447
|
+
options: localVarRequestOptions,
|
|
9448
|
+
}];
|
|
9449
|
+
});
|
|
9450
|
+
});
|
|
9451
|
+
},
|
|
9452
|
+
/**
|
|
9453
|
+
* Get 3CX Templates
|
|
9454
|
+
* @summary Get 3CX Templates
|
|
9455
|
+
* @param {*} [options] Override http request option.
|
|
9456
|
+
* @throws {RequiredError}
|
|
9457
|
+
*/
|
|
9458
|
+
getGetTcxTemplates: function () {
|
|
9459
|
+
var args_1 = [];
|
|
9460
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9461
|
+
args_1[_i] = arguments[_i];
|
|
9462
|
+
}
|
|
9463
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9464
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9465
|
+
if (options === void 0) { options = {}; }
|
|
9466
|
+
return __generator(this, function (_a) {
|
|
9467
|
+
localVarPath = "/products/attributes/tcx/templates";
|
|
9468
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9469
|
+
if (configuration) {
|
|
9470
|
+
baseOptions = configuration.baseOptions;
|
|
8779
9471
|
}
|
|
9472
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9473
|
+
localVarHeaderParameter = {};
|
|
9474
|
+
localVarQueryParameter = {};
|
|
8780
9475
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8781
9476
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8782
9477
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8788,15 +9483,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8788
9483
|
});
|
|
8789
9484
|
},
|
|
8790
9485
|
/**
|
|
8791
|
-
*
|
|
8792
|
-
* @summary
|
|
9486
|
+
* Search Products
|
|
9487
|
+
* @summary Search Products
|
|
8793
9488
|
* @param {number} [pageSize] Number Of Results
|
|
8794
9489
|
* @param {number} [page] Page Number
|
|
8795
9490
|
* @param {string} [search] Search
|
|
8796
9491
|
* @param {*} [options] Override http request option.
|
|
8797
9492
|
* @throws {RequiredError}
|
|
8798
9493
|
*/
|
|
8799
|
-
|
|
9494
|
+
getSearchProducts: function (pageSize_1, page_1, search_1) {
|
|
8800
9495
|
var args_1 = [];
|
|
8801
9496
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8802
9497
|
args_1[_i - 3] = arguments[_i];
|
|
@@ -8833,31 +9528,40 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8833
9528
|
});
|
|
8834
9529
|
},
|
|
8835
9530
|
/**
|
|
8836
|
-
* Get
|
|
8837
|
-
* @summary Get
|
|
9531
|
+
* Get Product
|
|
9532
|
+
* @summary Get Product
|
|
9533
|
+
* @param {string} sku Product SKU
|
|
9534
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8838
9535
|
* @param {*} [options] Override http request option.
|
|
8839
9536
|
* @throws {RequiredError}
|
|
8840
9537
|
*/
|
|
8841
|
-
|
|
9538
|
+
postGetProduct: function (sku_1, postGetProductForCustomerRequest_1) {
|
|
8842
9539
|
var args_1 = [];
|
|
8843
|
-
for (var _i =
|
|
8844
|
-
args_1[_i] = arguments[_i];
|
|
9540
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
9541
|
+
args_1[_i - 2] = arguments[_i];
|
|
8845
9542
|
}
|
|
8846
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9543
|
+
return __awaiter(_this, __spreadArray([sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (sku, postGetProductForCustomerRequest, options) {
|
|
8847
9544
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8848
9545
|
if (options === void 0) { options = {}; }
|
|
8849
9546
|
return __generator(this, function (_a) {
|
|
8850
|
-
|
|
9547
|
+
// verify required parameter 'sku' is not null or undefined
|
|
9548
|
+
(0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
|
|
9549
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
9550
|
+
(0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
9551
|
+
localVarPath = "/products/{sku}"
|
|
9552
|
+
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8851
9553
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8852
9554
|
if (configuration) {
|
|
8853
9555
|
baseOptions = configuration.baseOptions;
|
|
8854
9556
|
}
|
|
8855
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
9557
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8856
9558
|
localVarHeaderParameter = {};
|
|
8857
9559
|
localVarQueryParameter = {};
|
|
9560
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8858
9561
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8859
9562
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8860
9563
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9564
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
8861
9565
|
return [2 /*return*/, {
|
|
8862
9566
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8863
9567
|
options: localVarRequestOptions,
|
|
@@ -8866,31 +9570,46 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8866
9570
|
});
|
|
8867
9571
|
},
|
|
8868
9572
|
/**
|
|
8869
|
-
* Get
|
|
8870
|
-
* @summary Get
|
|
9573
|
+
* Get Product For Customer
|
|
9574
|
+
* @summary Get Product For Customer
|
|
9575
|
+
* @param {number} customerId Customer ID
|
|
9576
|
+
* @param {string} sku Product SKU
|
|
9577
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8871
9578
|
* @param {*} [options] Override http request option.
|
|
8872
9579
|
* @throws {RequiredError}
|
|
8873
9580
|
*/
|
|
8874
|
-
|
|
9581
|
+
postGetProductForCustomer: function (customerId_1, sku_1, postGetProductForCustomerRequest_1) {
|
|
8875
9582
|
var args_1 = [];
|
|
8876
|
-
for (var _i =
|
|
8877
|
-
args_1[_i] = arguments[_i];
|
|
9583
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
9584
|
+
args_1[_i - 3] = arguments[_i];
|
|
8878
9585
|
}
|
|
8879
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9586
|
+
return __awaiter(_this, __spreadArray([customerId_1, sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
8880
9587
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8881
9588
|
if (options === void 0) { options = {}; }
|
|
8882
9589
|
return __generator(this, function (_a) {
|
|
8883
|
-
|
|
9590
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
9591
|
+
(0, common_1.assertParamExists)('postGetProductForCustomer', 'customerId', customerId);
|
|
9592
|
+
// verify required parameter 'sku' is not null or undefined
|
|
9593
|
+
(0, common_1.assertParamExists)('postGetProductForCustomer', 'sku', sku);
|
|
9594
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
9595
|
+
(0, common_1.assertParamExists)('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
9596
|
+
localVarPath = "/admin/products/{sku}"
|
|
9597
|
+
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8884
9598
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8885
9599
|
if (configuration) {
|
|
8886
9600
|
baseOptions = configuration.baseOptions;
|
|
8887
9601
|
}
|
|
8888
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
9602
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8889
9603
|
localVarHeaderParameter = {};
|
|
8890
9604
|
localVarQueryParameter = {};
|
|
9605
|
+
if (customerId !== undefined) {
|
|
9606
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
9607
|
+
}
|
|
9608
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8891
9609
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8892
9610
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8893
9611
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9612
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
8894
9613
|
return [2 /*return*/, {
|
|
8895
9614
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8896
9615
|
options: localVarRequestOptions,
|
|
@@ -8909,137 +9628,186 @@ var ProductsApiFp = function (configuration) {
|
|
|
8909
9628
|
var localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
|
|
8910
9629
|
return {
|
|
8911
9630
|
/**
|
|
8912
|
-
* Get Attribute Sets
|
|
8913
|
-
* @summary Get Attribute Sets
|
|
9631
|
+
* Get Attribute Sets
|
|
9632
|
+
* @summary Get Attribute Sets
|
|
9633
|
+
* @param {*} [options] Override http request option.
|
|
9634
|
+
* @throws {RequiredError}
|
|
9635
|
+
*/
|
|
9636
|
+
getGetAttributeSets: function (options) {
|
|
9637
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9638
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9639
|
+
var _a, _b, _c;
|
|
9640
|
+
return __generator(this, function (_d) {
|
|
9641
|
+
switch (_d.label) {
|
|
9642
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAttributeSets(options)];
|
|
9643
|
+
case 1:
|
|
9644
|
+
localVarAxiosArgs = _d.sent();
|
|
9645
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9646
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetAttributeSets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9647
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9648
|
+
}
|
|
9649
|
+
});
|
|
9650
|
+
});
|
|
9651
|
+
},
|
|
9652
|
+
/**
|
|
9653
|
+
* Get Current Stock & Pricing
|
|
9654
|
+
* @summary Get Current Stock & Pricing
|
|
9655
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
9656
|
+
* @param {*} [options] Override http request option.
|
|
9657
|
+
* @deprecated
|
|
9658
|
+
* @throws {RequiredError}
|
|
9659
|
+
*/
|
|
9660
|
+
getGetLegacyStockList: function (format, options) {
|
|
9661
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9662
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9663
|
+
var _a, _b, _c;
|
|
9664
|
+
return __generator(this, function (_d) {
|
|
9665
|
+
switch (_d.label) {
|
|
9666
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
|
|
9667
|
+
case 1:
|
|
9668
|
+
localVarAxiosArgs = _d.sent();
|
|
9669
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9670
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9671
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9672
|
+
}
|
|
9673
|
+
});
|
|
9674
|
+
});
|
|
9675
|
+
},
|
|
9676
|
+
/**
|
|
9677
|
+
* Get Products
|
|
9678
|
+
* @summary Get Products
|
|
8914
9679
|
* @param {*} [options] Override http request option.
|
|
8915
9680
|
* @throws {RequiredError}
|
|
8916
9681
|
*/
|
|
8917
|
-
|
|
9682
|
+
getGetProducts: function (options) {
|
|
8918
9683
|
return __awaiter(this, void 0, void 0, function () {
|
|
8919
9684
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8920
9685
|
var _a, _b, _c;
|
|
8921
9686
|
return __generator(this, function (_d) {
|
|
8922
9687
|
switch (_d.label) {
|
|
8923
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9688
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(options)];
|
|
8924
9689
|
case 1:
|
|
8925
9690
|
localVarAxiosArgs = _d.sent();
|
|
8926
9691
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8927
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9692
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8928
9693
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8929
9694
|
}
|
|
8930
9695
|
});
|
|
8931
9696
|
});
|
|
8932
9697
|
},
|
|
8933
9698
|
/**
|
|
8934
|
-
* Get
|
|
8935
|
-
* @summary Get
|
|
9699
|
+
* Get Current Stock & Pricing
|
|
9700
|
+
* @summary Get Current Stock & Pricing
|
|
8936
9701
|
* @param {*} [options] Override http request option.
|
|
8937
9702
|
* @throws {RequiredError}
|
|
8938
9703
|
*/
|
|
8939
|
-
|
|
9704
|
+
getGetStockList: function (options) {
|
|
8940
9705
|
return __awaiter(this, void 0, void 0, function () {
|
|
8941
9706
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8942
9707
|
var _a, _b, _c;
|
|
8943
9708
|
return __generator(this, function (_d) {
|
|
8944
9709
|
switch (_d.label) {
|
|
8945
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9710
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
|
|
8946
9711
|
case 1:
|
|
8947
9712
|
localVarAxiosArgs = _d.sent();
|
|
8948
9713
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8949
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9714
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8950
9715
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8951
9716
|
}
|
|
8952
9717
|
});
|
|
8953
9718
|
});
|
|
8954
9719
|
},
|
|
8955
9720
|
/**
|
|
8956
|
-
* Get
|
|
8957
|
-
* @summary Get
|
|
8958
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
9721
|
+
* Get 3CX Templates
|
|
9722
|
+
* @summary Get 3CX Templates
|
|
8959
9723
|
* @param {*} [options] Override http request option.
|
|
8960
|
-
* @deprecated
|
|
8961
9724
|
* @throws {RequiredError}
|
|
8962
9725
|
*/
|
|
8963
|
-
|
|
9726
|
+
getGetTcxTemplates: function (options) {
|
|
8964
9727
|
return __awaiter(this, void 0, void 0, function () {
|
|
8965
9728
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8966
9729
|
var _a, _b, _c;
|
|
8967
9730
|
return __generator(this, function (_d) {
|
|
8968
9731
|
switch (_d.label) {
|
|
8969
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9732
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
|
|
8970
9733
|
case 1:
|
|
8971
9734
|
localVarAxiosArgs = _d.sent();
|
|
8972
9735
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8973
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9736
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8974
9737
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8975
9738
|
}
|
|
8976
9739
|
});
|
|
8977
9740
|
});
|
|
8978
9741
|
},
|
|
8979
9742
|
/**
|
|
8980
|
-
*
|
|
8981
|
-
* @summary
|
|
9743
|
+
* Search Products
|
|
9744
|
+
* @summary Search Products
|
|
8982
9745
|
* @param {number} [pageSize] Number Of Results
|
|
8983
9746
|
* @param {number} [page] Page Number
|
|
8984
9747
|
* @param {string} [search] Search
|
|
8985
9748
|
* @param {*} [options] Override http request option.
|
|
8986
9749
|
* @throws {RequiredError}
|
|
8987
9750
|
*/
|
|
8988
|
-
|
|
9751
|
+
getSearchProducts: function (pageSize, page, search, options) {
|
|
8989
9752
|
return __awaiter(this, void 0, void 0, function () {
|
|
8990
9753
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8991
9754
|
var _a, _b, _c;
|
|
8992
9755
|
return __generator(this, function (_d) {
|
|
8993
9756
|
switch (_d.label) {
|
|
8994
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9757
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options)];
|
|
8995
9758
|
case 1:
|
|
8996
9759
|
localVarAxiosArgs = _d.sent();
|
|
8997
9760
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8998
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9761
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getSearchProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8999
9762
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9000
9763
|
}
|
|
9001
9764
|
});
|
|
9002
9765
|
});
|
|
9003
9766
|
},
|
|
9004
9767
|
/**
|
|
9005
|
-
* Get
|
|
9006
|
-
* @summary Get
|
|
9768
|
+
* Get Product
|
|
9769
|
+
* @summary Get Product
|
|
9770
|
+
* @param {string} sku Product SKU
|
|
9771
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9007
9772
|
* @param {*} [options] Override http request option.
|
|
9008
9773
|
* @throws {RequiredError}
|
|
9009
9774
|
*/
|
|
9010
|
-
|
|
9775
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
9011
9776
|
return __awaiter(this, void 0, void 0, function () {
|
|
9012
9777
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9013
9778
|
var _a, _b, _c;
|
|
9014
9779
|
return __generator(this, function (_d) {
|
|
9015
9780
|
switch (_d.label) {
|
|
9016
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9781
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options)];
|
|
9017
9782
|
case 1:
|
|
9018
9783
|
localVarAxiosArgs = _d.sent();
|
|
9019
9784
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9020
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9785
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9021
9786
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9022
9787
|
}
|
|
9023
9788
|
});
|
|
9024
9789
|
});
|
|
9025
9790
|
},
|
|
9026
9791
|
/**
|
|
9027
|
-
* Get
|
|
9028
|
-
* @summary Get
|
|
9792
|
+
* Get Product For Customer
|
|
9793
|
+
* @summary Get Product For Customer
|
|
9794
|
+
* @param {number} customerId Customer ID
|
|
9795
|
+
* @param {string} sku Product SKU
|
|
9796
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9029
9797
|
* @param {*} [options] Override http request option.
|
|
9030
9798
|
* @throws {RequiredError}
|
|
9031
9799
|
*/
|
|
9032
|
-
|
|
9800
|
+
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
9033
9801
|
return __awaiter(this, void 0, void 0, function () {
|
|
9034
9802
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9035
9803
|
var _a, _b, _c;
|
|
9036
9804
|
return __generator(this, function (_d) {
|
|
9037
9805
|
switch (_d.label) {
|
|
9038
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9806
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options)];
|
|
9039
9807
|
case 1:
|
|
9040
9808
|
localVarAxiosArgs = _d.sent();
|
|
9041
9809
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9042
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9810
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProductForCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9043
9811
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9044
9812
|
}
|
|
9045
9813
|
});
|
|
@@ -9064,15 +9832,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
9064
9832
|
getGetAttributeSets: function (options) {
|
|
9065
9833
|
return localVarFp.getGetAttributeSets(options).then(function (request) { return request(axios, basePath); });
|
|
9066
9834
|
},
|
|
9067
|
-
/**
|
|
9068
|
-
* Get Customer Price Lists
|
|
9069
|
-
* @summary Get Customer Price Lists
|
|
9070
|
-
* @param {*} [options] Override http request option.
|
|
9071
|
-
* @throws {RequiredError}
|
|
9072
|
-
*/
|
|
9073
|
-
getGetCustomerPriceLists: function (options) {
|
|
9074
|
-
return localVarFp.getGetCustomerPriceLists(options).then(function (request) { return request(axios, basePath); });
|
|
9075
|
-
},
|
|
9076
9835
|
/**
|
|
9077
9836
|
* Get Current Stock & Pricing
|
|
9078
9837
|
* @summary Get Current Stock & Pricing
|
|
@@ -9087,14 +9846,11 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
9087
9846
|
/**
|
|
9088
9847
|
* Get Products
|
|
9089
9848
|
* @summary Get Products
|
|
9090
|
-
* @param {number} [pageSize] Number Of Results
|
|
9091
|
-
* @param {number} [page] Page Number
|
|
9092
|
-
* @param {string} [search] Search
|
|
9093
9849
|
* @param {*} [options] Override http request option.
|
|
9094
9850
|
* @throws {RequiredError}
|
|
9095
9851
|
*/
|
|
9096
|
-
getGetProducts: function (
|
|
9097
|
-
return localVarFp.getGetProducts(
|
|
9852
|
+
getGetProducts: function (options) {
|
|
9853
|
+
return localVarFp.getGetProducts(options).then(function (request) { return request(axios, basePath); });
|
|
9098
9854
|
},
|
|
9099
9855
|
/**
|
|
9100
9856
|
* Get Current Stock & Pricing
|
|
@@ -9114,6 +9870,41 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
9114
9870
|
getGetTcxTemplates: function (options) {
|
|
9115
9871
|
return localVarFp.getGetTcxTemplates(options).then(function (request) { return request(axios, basePath); });
|
|
9116
9872
|
},
|
|
9873
|
+
/**
|
|
9874
|
+
* Search Products
|
|
9875
|
+
* @summary Search Products
|
|
9876
|
+
* @param {number} [pageSize] Number Of Results
|
|
9877
|
+
* @param {number} [page] Page Number
|
|
9878
|
+
* @param {string} [search] Search
|
|
9879
|
+
* @param {*} [options] Override http request option.
|
|
9880
|
+
* @throws {RequiredError}
|
|
9881
|
+
*/
|
|
9882
|
+
getSearchProducts: function (pageSize, page, search, options) {
|
|
9883
|
+
return localVarFp.getSearchProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
9884
|
+
},
|
|
9885
|
+
/**
|
|
9886
|
+
* Get Product
|
|
9887
|
+
* @summary Get Product
|
|
9888
|
+
* @param {string} sku Product SKU
|
|
9889
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9890
|
+
* @param {*} [options] Override http request option.
|
|
9891
|
+
* @throws {RequiredError}
|
|
9892
|
+
*/
|
|
9893
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
9894
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
9895
|
+
},
|
|
9896
|
+
/**
|
|
9897
|
+
* Get Product For Customer
|
|
9898
|
+
* @summary Get Product For Customer
|
|
9899
|
+
* @param {number} customerId Customer ID
|
|
9900
|
+
* @param {string} sku Product SKU
|
|
9901
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9902
|
+
* @param {*} [options] Override http request option.
|
|
9903
|
+
* @throws {RequiredError}
|
|
9904
|
+
*/
|
|
9905
|
+
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
9906
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
9907
|
+
},
|
|
9117
9908
|
};
|
|
9118
9909
|
};
|
|
9119
9910
|
exports.ProductsApiFactory = ProductsApiFactory;
|
|
@@ -9139,17 +9930,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9139
9930
|
var _this = this;
|
|
9140
9931
|
return (0, exports.ProductsApiFp)(this.configuration).getGetAttributeSets(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9141
9932
|
};
|
|
9142
|
-
/**
|
|
9143
|
-
* Get Customer Price Lists
|
|
9144
|
-
* @summary Get Customer Price Lists
|
|
9145
|
-
* @param {*} [options] Override http request option.
|
|
9146
|
-
* @throws {RequiredError}
|
|
9147
|
-
* @memberof ProductsApi
|
|
9148
|
-
*/
|
|
9149
|
-
ProductsApi.prototype.getGetCustomerPriceLists = function (options) {
|
|
9150
|
-
var _this = this;
|
|
9151
|
-
return (0, exports.ProductsApiFp)(this.configuration).getGetCustomerPriceLists(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9152
|
-
};
|
|
9153
9933
|
/**
|
|
9154
9934
|
* Get Current Stock & Pricing
|
|
9155
9935
|
* @summary Get Current Stock & Pricing
|
|
@@ -9166,16 +9946,13 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9166
9946
|
/**
|
|
9167
9947
|
* Get Products
|
|
9168
9948
|
* @summary Get Products
|
|
9169
|
-
* @param {number} [pageSize] Number Of Results
|
|
9170
|
-
* @param {number} [page] Page Number
|
|
9171
|
-
* @param {string} [search] Search
|
|
9172
9949
|
* @param {*} [options] Override http request option.
|
|
9173
9950
|
* @throws {RequiredError}
|
|
9174
9951
|
* @memberof ProductsApi
|
|
9175
9952
|
*/
|
|
9176
|
-
ProductsApi.prototype.getGetProducts = function (
|
|
9953
|
+
ProductsApi.prototype.getGetProducts = function (options) {
|
|
9177
9954
|
var _this = this;
|
|
9178
|
-
return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(
|
|
9955
|
+
return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9179
9956
|
};
|
|
9180
9957
|
/**
|
|
9181
9958
|
* Get Current Stock & Pricing
|
|
@@ -9199,6 +9976,47 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9199
9976
|
var _this = this;
|
|
9200
9977
|
return (0, exports.ProductsApiFp)(this.configuration).getGetTcxTemplates(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9201
9978
|
};
|
|
9979
|
+
/**
|
|
9980
|
+
* Search Products
|
|
9981
|
+
* @summary Search Products
|
|
9982
|
+
* @param {number} [pageSize] Number Of Results
|
|
9983
|
+
* @param {number} [page] Page Number
|
|
9984
|
+
* @param {string} [search] Search
|
|
9985
|
+
* @param {*} [options] Override http request option.
|
|
9986
|
+
* @throws {RequiredError}
|
|
9987
|
+
* @memberof ProductsApi
|
|
9988
|
+
*/
|
|
9989
|
+
ProductsApi.prototype.getSearchProducts = function (pageSize, page, search, options) {
|
|
9990
|
+
var _this = this;
|
|
9991
|
+
return (0, exports.ProductsApiFp)(this.configuration).getSearchProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9992
|
+
};
|
|
9993
|
+
/**
|
|
9994
|
+
* Get Product
|
|
9995
|
+
* @summary Get Product
|
|
9996
|
+
* @param {string} sku Product SKU
|
|
9997
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9998
|
+
* @param {*} [options] Override http request option.
|
|
9999
|
+
* @throws {RequiredError}
|
|
10000
|
+
* @memberof ProductsApi
|
|
10001
|
+
*/
|
|
10002
|
+
ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
|
|
10003
|
+
var _this = this;
|
|
10004
|
+
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10005
|
+
};
|
|
10006
|
+
/**
|
|
10007
|
+
* Get Product For Customer
|
|
10008
|
+
* @summary Get Product For Customer
|
|
10009
|
+
* @param {number} customerId Customer ID
|
|
10010
|
+
* @param {string} sku Product SKU
|
|
10011
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
10012
|
+
* @param {*} [options] Override http request option.
|
|
10013
|
+
* @throws {RequiredError}
|
|
10014
|
+
* @memberof ProductsApi
|
|
10015
|
+
*/
|
|
10016
|
+
ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
10017
|
+
var _this = this;
|
|
10018
|
+
return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10019
|
+
};
|
|
9202
10020
|
return ProductsApi;
|
|
9203
10021
|
}(base_1.BaseAPI));
|
|
9204
10022
|
exports.ProductsApi = ProductsApi;
|
|
@@ -11924,6 +12742,221 @@ var SMSApi = /** @class */ (function (_super) {
|
|
|
11924
12742
|
return SMSApi;
|
|
11925
12743
|
}(base_1.BaseAPI));
|
|
11926
12744
|
exports.SMSApi = SMSApi;
|
|
12745
|
+
/**
|
|
12746
|
+
* ShippingApi - axios parameter creator
|
|
12747
|
+
* @export
|
|
12748
|
+
*/
|
|
12749
|
+
var ShippingApiAxiosParamCreator = function (configuration) {
|
|
12750
|
+
var _this = this;
|
|
12751
|
+
return {
|
|
12752
|
+
/**
|
|
12753
|
+
* Get Shipping Services (Admin)
|
|
12754
|
+
* @summary Get Shipping Services
|
|
12755
|
+
* @param {number} customerId Customer ID
|
|
12756
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12757
|
+
* @param {*} [options] Override http request option.
|
|
12758
|
+
* @throws {RequiredError}
|
|
12759
|
+
*/
|
|
12760
|
+
postGetAdminShippingServices: function (customerId_1, shippingInformationDTO_1) {
|
|
12761
|
+
var args_1 = [];
|
|
12762
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
12763
|
+
args_1[_i - 2] = arguments[_i];
|
|
12764
|
+
}
|
|
12765
|
+
return __awaiter(_this, __spreadArray([customerId_1, shippingInformationDTO_1], args_1, true), void 0, function (customerId, shippingInformationDTO, options) {
|
|
12766
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12767
|
+
if (options === void 0) { options = {}; }
|
|
12768
|
+
return __generator(this, function (_a) {
|
|
12769
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
12770
|
+
(0, common_1.assertParamExists)('postGetAdminShippingServices', 'customerId', customerId);
|
|
12771
|
+
localVarPath = "/admin/shipping/services";
|
|
12772
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12773
|
+
if (configuration) {
|
|
12774
|
+
baseOptions = configuration.baseOptions;
|
|
12775
|
+
}
|
|
12776
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
12777
|
+
localVarHeaderParameter = {};
|
|
12778
|
+
localVarQueryParameter = {};
|
|
12779
|
+
if (customerId !== undefined) {
|
|
12780
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
12781
|
+
}
|
|
12782
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12783
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12784
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12785
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12786
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingInformationDTO, localVarRequestOptions, configuration);
|
|
12787
|
+
return [2 /*return*/, {
|
|
12788
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12789
|
+
options: localVarRequestOptions,
|
|
12790
|
+
}];
|
|
12791
|
+
});
|
|
12792
|
+
});
|
|
12793
|
+
},
|
|
12794
|
+
/**
|
|
12795
|
+
* Get Shipping Services
|
|
12796
|
+
* @summary Get Shipping Services
|
|
12797
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12798
|
+
* @param {*} [options] Override http request option.
|
|
12799
|
+
* @throws {RequiredError}
|
|
12800
|
+
*/
|
|
12801
|
+
postGetShippingServices: function (shippingInformationDTO_1) {
|
|
12802
|
+
var args_1 = [];
|
|
12803
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
12804
|
+
args_1[_i - 1] = arguments[_i];
|
|
12805
|
+
}
|
|
12806
|
+
return __awaiter(_this, __spreadArray([shippingInformationDTO_1], args_1, true), void 0, function (shippingInformationDTO, options) {
|
|
12807
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12808
|
+
if (options === void 0) { options = {}; }
|
|
12809
|
+
return __generator(this, function (_a) {
|
|
12810
|
+
localVarPath = "/shipping/services";
|
|
12811
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12812
|
+
if (configuration) {
|
|
12813
|
+
baseOptions = configuration.baseOptions;
|
|
12814
|
+
}
|
|
12815
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
12816
|
+
localVarHeaderParameter = {};
|
|
12817
|
+
localVarQueryParameter = {};
|
|
12818
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12819
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12820
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12821
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12822
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingInformationDTO, localVarRequestOptions, configuration);
|
|
12823
|
+
return [2 /*return*/, {
|
|
12824
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12825
|
+
options: localVarRequestOptions,
|
|
12826
|
+
}];
|
|
12827
|
+
});
|
|
12828
|
+
});
|
|
12829
|
+
},
|
|
12830
|
+
};
|
|
12831
|
+
};
|
|
12832
|
+
exports.ShippingApiAxiosParamCreator = ShippingApiAxiosParamCreator;
|
|
12833
|
+
/**
|
|
12834
|
+
* ShippingApi - functional programming interface
|
|
12835
|
+
* @export
|
|
12836
|
+
*/
|
|
12837
|
+
var ShippingApiFp = function (configuration) {
|
|
12838
|
+
var localVarAxiosParamCreator = (0, exports.ShippingApiAxiosParamCreator)(configuration);
|
|
12839
|
+
return {
|
|
12840
|
+
/**
|
|
12841
|
+
* Get Shipping Services (Admin)
|
|
12842
|
+
* @summary Get Shipping Services
|
|
12843
|
+
* @param {number} customerId Customer ID
|
|
12844
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12845
|
+
* @param {*} [options] Override http request option.
|
|
12846
|
+
* @throws {RequiredError}
|
|
12847
|
+
*/
|
|
12848
|
+
postGetAdminShippingServices: function (customerId, shippingInformationDTO, options) {
|
|
12849
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12850
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
12851
|
+
var _a, _b, _c;
|
|
12852
|
+
return __generator(this, function (_d) {
|
|
12853
|
+
switch (_d.label) {
|
|
12854
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAdminShippingServices(customerId, shippingInformationDTO, options)];
|
|
12855
|
+
case 1:
|
|
12856
|
+
localVarAxiosArgs = _d.sent();
|
|
12857
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12858
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShippingApi.postGetAdminShippingServices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12859
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
12860
|
+
}
|
|
12861
|
+
});
|
|
12862
|
+
});
|
|
12863
|
+
},
|
|
12864
|
+
/**
|
|
12865
|
+
* Get Shipping Services
|
|
12866
|
+
* @summary Get Shipping Services
|
|
12867
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12868
|
+
* @param {*} [options] Override http request option.
|
|
12869
|
+
* @throws {RequiredError}
|
|
12870
|
+
*/
|
|
12871
|
+
postGetShippingServices: function (shippingInformationDTO, options) {
|
|
12872
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12873
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
12874
|
+
var _a, _b, _c;
|
|
12875
|
+
return __generator(this, function (_d) {
|
|
12876
|
+
switch (_d.label) {
|
|
12877
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options)];
|
|
12878
|
+
case 1:
|
|
12879
|
+
localVarAxiosArgs = _d.sent();
|
|
12880
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12881
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShippingApi.postGetShippingServices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12882
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
12883
|
+
}
|
|
12884
|
+
});
|
|
12885
|
+
});
|
|
12886
|
+
},
|
|
12887
|
+
};
|
|
12888
|
+
};
|
|
12889
|
+
exports.ShippingApiFp = ShippingApiFp;
|
|
12890
|
+
/**
|
|
12891
|
+
* ShippingApi - factory interface
|
|
12892
|
+
* @export
|
|
12893
|
+
*/
|
|
12894
|
+
var ShippingApiFactory = function (configuration, basePath, axios) {
|
|
12895
|
+
var localVarFp = (0, exports.ShippingApiFp)(configuration);
|
|
12896
|
+
return {
|
|
12897
|
+
/**
|
|
12898
|
+
* Get Shipping Services (Admin)
|
|
12899
|
+
* @summary Get Shipping Services
|
|
12900
|
+
* @param {number} customerId Customer ID
|
|
12901
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12902
|
+
* @param {*} [options] Override http request option.
|
|
12903
|
+
* @throws {RequiredError}
|
|
12904
|
+
*/
|
|
12905
|
+
postGetAdminShippingServices: function (customerId, shippingInformationDTO, options) {
|
|
12906
|
+
return localVarFp.postGetAdminShippingServices(customerId, shippingInformationDTO, options).then(function (request) { return request(axios, basePath); });
|
|
12907
|
+
},
|
|
12908
|
+
/**
|
|
12909
|
+
* Get Shipping Services
|
|
12910
|
+
* @summary Get Shipping Services
|
|
12911
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12912
|
+
* @param {*} [options] Override http request option.
|
|
12913
|
+
* @throws {RequiredError}
|
|
12914
|
+
*/
|
|
12915
|
+
postGetShippingServices: function (shippingInformationDTO, options) {
|
|
12916
|
+
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(axios, basePath); });
|
|
12917
|
+
},
|
|
12918
|
+
};
|
|
12919
|
+
};
|
|
12920
|
+
exports.ShippingApiFactory = ShippingApiFactory;
|
|
12921
|
+
/**
|
|
12922
|
+
* ShippingApi - object-oriented interface
|
|
12923
|
+
* @export
|
|
12924
|
+
* @class ShippingApi
|
|
12925
|
+
* @extends {BaseAPI}
|
|
12926
|
+
*/
|
|
12927
|
+
var ShippingApi = /** @class */ (function (_super) {
|
|
12928
|
+
__extends(ShippingApi, _super);
|
|
12929
|
+
function ShippingApi() {
|
|
12930
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
12931
|
+
}
|
|
12932
|
+
/**
|
|
12933
|
+
* Get Shipping Services (Admin)
|
|
12934
|
+
* @summary Get Shipping Services
|
|
12935
|
+
* @param {number} customerId Customer ID
|
|
12936
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12937
|
+
* @param {*} [options] Override http request option.
|
|
12938
|
+
* @throws {RequiredError}
|
|
12939
|
+
* @memberof ShippingApi
|
|
12940
|
+
*/
|
|
12941
|
+
ShippingApi.prototype.postGetAdminShippingServices = function (customerId, shippingInformationDTO, options) {
|
|
12942
|
+
var _this = this;
|
|
12943
|
+
return (0, exports.ShippingApiFp)(this.configuration).postGetAdminShippingServices(customerId, shippingInformationDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12944
|
+
};
|
|
12945
|
+
/**
|
|
12946
|
+
* Get Shipping Services
|
|
12947
|
+
* @summary Get Shipping Services
|
|
12948
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12949
|
+
* @param {*} [options] Override http request option.
|
|
12950
|
+
* @throws {RequiredError}
|
|
12951
|
+
* @memberof ShippingApi
|
|
12952
|
+
*/
|
|
12953
|
+
ShippingApi.prototype.postGetShippingServices = function (shippingInformationDTO, options) {
|
|
12954
|
+
var _this = this;
|
|
12955
|
+
return (0, exports.ShippingApiFp)(this.configuration).postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12956
|
+
};
|
|
12957
|
+
return ShippingApi;
|
|
12958
|
+
}(base_1.BaseAPI));
|
|
12959
|
+
exports.ShippingApi = ShippingApi;
|
|
11927
12960
|
/**
|
|
11928
12961
|
* StockManagementApi - axios parameter creator
|
|
11929
12962
|
* @export
|