yellowgrid-api-ts 3.1.5-dev.0 → 3.1.5
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 +195 -213
- package/README.md +7 -34
- package/api.ts +254 -1865
- 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 +154 -1351
- package/dist/api.js +197 -1135
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AccountsApi.md +0 -103
- package/docs/AddressModel.md +0 -2
- package/docs/Class3CXApi.md +55 -0
- package/docs/ClientDetailsModel.md +2 -0
- package/docs/{ShippingServicesModel.md → GetGetPasswordHash200Response.md} +5 -5
- package/docs/ItemDTO.md +4 -12
- package/docs/ItemEntity.md +0 -2
- package/docs/OrderSummaryDTO.md +0 -8
- package/docs/OrderTotalModel.md +0 -2
- package/docs/OrdersApi.md +4 -356
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryDTO.md → ProductSummaryModel.md} +3 -5
- package/docs/ProductsApi.md +43 -164
- package/docs/ProvisioningApi.md +4 -4
- package/docs/{ProvisioningModel.md → ProvisioningEntity.md} +3 -3
- package/docs/ShipmentEntity.md +2 -2
- package/docs/StockManagementApi.md +2 -2
- package/docs/TcxSbcModel.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AbstractOrderRequestDTO.md +0 -33
- package/docs/AccountDetailedSummaryDTO.md +0 -39
- package/docs/AdminItemRequestDTO.md +0 -39
- package/docs/AdminOrderRequestDTO.md +0 -45
- package/docs/AdminUserModel.md +0 -29
- package/docs/BasicItemDTO.md +0 -23
- package/docs/BasicProductDTO.md +0 -23
- package/docs/CourierPriceEntity.md +0 -39
- package/docs/CustomerItemRequestDTO.md +0 -35
- package/docs/CustomerOrderRequestDTO.md +0 -33
- package/docs/LinkedOrderEntity.md +0 -23
- package/docs/PostGetProductForCustomerRequest.md +0 -24
- package/docs/ShippingApi.md +0 -63
- package/docs/ShippingConsignmentModel.md +0 -26
- package/docs/ShippingInformationDTO.md +0 -25
- package/docs/ShippingServiceDTO.md +0 -23
- package/docs/ShippingServiceModel.md +0 -31
- package/docs/TcxSbcDTO.md +0 -31
package/dist/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Yellowgrid
|
|
6
|
-
* Welcome to the Yellowgrid API documentation.
|
|
6
|
+
* Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `http://api.yellowgrid.local` For questions or technical support, please contact support@yellowgrid.co.uk.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0
|
|
9
9
|
*
|
|
@@ -84,22 +84,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.
|
|
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 =
|
|
87
|
+
exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = void 0;
|
|
88
|
+
exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = 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 = void 0;
|
|
90
90
|
var axios_1 = require("axios");
|
|
91
91
|
// Some imports not used depending on template conditions
|
|
92
92
|
// @ts-ignore
|
|
93
93
|
var common_1 = require("./common");
|
|
94
94
|
// @ts-ignore
|
|
95
95
|
var base_1 = require("./base");
|
|
96
|
-
exports.AdminUserModelRoleEnum = {
|
|
97
|
-
NUMBER_0: 0,
|
|
98
|
-
NUMBER_1: 1,
|
|
99
|
-
NUMBER_2: 2,
|
|
100
|
-
NUMBER_3: 3,
|
|
101
|
-
NUMBER_4: 4
|
|
102
|
-
};
|
|
103
96
|
exports.DivertResponseModelStatusEnum = {
|
|
104
97
|
Enabled: 'enabled',
|
|
105
98
|
Disabled: 'disabled'
|
|
@@ -176,16 +169,6 @@ exports.OrderTotalModelCurrencyEnum = {
|
|
|
176
169
|
Thb: 'THB',
|
|
177
170
|
Zar: 'ZAR'
|
|
178
171
|
};
|
|
179
|
-
exports.ShippingServiceDTOCourierEnum = {
|
|
180
|
-
Dpd: 'DPD',
|
|
181
|
-
ChorltonPallet: 'Chorlton Pallet',
|
|
182
|
-
Pops: 'POPS'
|
|
183
|
-
};
|
|
184
|
-
exports.ShippingServiceModelCourierEnum = {
|
|
185
|
-
Dpd: 'DPD',
|
|
186
|
-
ChorltonPallet: 'Chorlton Pallet',
|
|
187
|
-
Pops: 'POPS'
|
|
188
|
-
};
|
|
189
172
|
exports.SipTrunkChangeResponseModelTypeEnum = {
|
|
190
173
|
NewTrunk: 'New Trunk',
|
|
191
174
|
AvailableTrunk: 'Available Trunk',
|
|
@@ -430,43 +413,6 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
430
413
|
});
|
|
431
414
|
});
|
|
432
415
|
},
|
|
433
|
-
/**
|
|
434
|
-
* Get Account Detailed Summary
|
|
435
|
-
* @summary Get Account Detailed Summary
|
|
436
|
-
* @param {number} id Customer ID
|
|
437
|
-
* @param {*} [options] Override http request option.
|
|
438
|
-
* @throws {RequiredError}
|
|
439
|
-
*/
|
|
440
|
-
getGetAccountDetailedSummary: function (id_1) {
|
|
441
|
-
var args_1 = [];
|
|
442
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
443
|
-
args_1[_i - 1] = arguments[_i];
|
|
444
|
-
}
|
|
445
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
446
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
447
|
-
if (options === void 0) { options = {}; }
|
|
448
|
-
return __generator(this, function (_a) {
|
|
449
|
-
// verify required parameter 'id' is not null or undefined
|
|
450
|
-
(0, common_1.assertParamExists)('getGetAccountDetailedSummary', 'id', id);
|
|
451
|
-
localVarPath = "/accounts/{id}/summary"
|
|
452
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
453
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
454
|
-
if (configuration) {
|
|
455
|
-
baseOptions = configuration.baseOptions;
|
|
456
|
-
}
|
|
457
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
458
|
-
localVarHeaderParameter = {};
|
|
459
|
-
localVarQueryParameter = {};
|
|
460
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
461
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
462
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
463
|
-
return [2 /*return*/, {
|
|
464
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
465
|
-
options: localVarRequestOptions,
|
|
466
|
-
}];
|
|
467
|
-
});
|
|
468
|
-
});
|
|
469
|
-
},
|
|
470
416
|
/**
|
|
471
417
|
* Get Accounts
|
|
472
418
|
* @summary Get Accounts
|
|
@@ -770,39 +716,6 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
770
716
|
});
|
|
771
717
|
});
|
|
772
718
|
},
|
|
773
|
-
/**
|
|
774
|
-
* Get Admin Account
|
|
775
|
-
* @summary Get Admin Account
|
|
776
|
-
* @param {*} [options] Override http request option.
|
|
777
|
-
* @throws {RequiredError}
|
|
778
|
-
*/
|
|
779
|
-
postGetAdminAccount: function () {
|
|
780
|
-
var args_1 = [];
|
|
781
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
782
|
-
args_1[_i] = arguments[_i];
|
|
783
|
-
}
|
|
784
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
785
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
786
|
-
if (options === void 0) { options = {}; }
|
|
787
|
-
return __generator(this, function (_a) {
|
|
788
|
-
localVarPath = "/admin/me";
|
|
789
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
790
|
-
if (configuration) {
|
|
791
|
-
baseOptions = configuration.baseOptions;
|
|
792
|
-
}
|
|
793
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
794
|
-
localVarHeaderParameter = {};
|
|
795
|
-
localVarQueryParameter = {};
|
|
796
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
797
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
798
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
799
|
-
return [2 /*return*/, {
|
|
800
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
801
|
-
options: localVarRequestOptions,
|
|
802
|
-
}];
|
|
803
|
-
});
|
|
804
|
-
});
|
|
805
|
-
},
|
|
806
719
|
/**
|
|
807
720
|
* Create client credentials
|
|
808
721
|
* @summary Create client credentials
|
|
@@ -1101,29 +1014,6 @@ var AccountsApiFp = function (configuration) {
|
|
|
1101
1014
|
});
|
|
1102
1015
|
});
|
|
1103
1016
|
},
|
|
1104
|
-
/**
|
|
1105
|
-
* Get Account Detailed Summary
|
|
1106
|
-
* @summary Get Account Detailed Summary
|
|
1107
|
-
* @param {number} id Customer ID
|
|
1108
|
-
* @param {*} [options] Override http request option.
|
|
1109
|
-
* @throws {RequiredError}
|
|
1110
|
-
*/
|
|
1111
|
-
getGetAccountDetailedSummary: function (id, options) {
|
|
1112
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1113
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1114
|
-
var _a, _b, _c;
|
|
1115
|
-
return __generator(this, function (_d) {
|
|
1116
|
-
switch (_d.label) {
|
|
1117
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options)];
|
|
1118
|
-
case 1:
|
|
1119
|
-
localVarAxiosArgs = _d.sent();
|
|
1120
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1121
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountDetailedSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1122
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1123
|
-
}
|
|
1124
|
-
});
|
|
1125
|
-
});
|
|
1126
|
-
},
|
|
1127
1017
|
/**
|
|
1128
1018
|
* Get Accounts
|
|
1129
1019
|
* @summary Get Accounts
|
|
@@ -1309,28 +1199,6 @@ var AccountsApiFp = function (configuration) {
|
|
|
1309
1199
|
});
|
|
1310
1200
|
});
|
|
1311
1201
|
},
|
|
1312
|
-
/**
|
|
1313
|
-
* Get Admin Account
|
|
1314
|
-
* @summary Get Admin Account
|
|
1315
|
-
* @param {*} [options] Override http request option.
|
|
1316
|
-
* @throws {RequiredError}
|
|
1317
|
-
*/
|
|
1318
|
-
postGetAdminAccount: function (options) {
|
|
1319
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1320
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1321
|
-
var _a, _b, _c;
|
|
1322
|
-
return __generator(this, function (_d) {
|
|
1323
|
-
switch (_d.label) {
|
|
1324
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAdminAccount(options)];
|
|
1325
|
-
case 1:
|
|
1326
|
-
localVarAxiosArgs = _d.sent();
|
|
1327
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1328
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postGetAdminAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1329
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1330
|
-
}
|
|
1331
|
-
});
|
|
1332
|
-
});
|
|
1333
|
-
},
|
|
1334
1202
|
/**
|
|
1335
1203
|
* Create client credentials
|
|
1336
1204
|
* @summary Create client credentials
|
|
@@ -1498,16 +1366,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1498
1366
|
getGetAccountContacts: function (email, options) {
|
|
1499
1367
|
return localVarFp.getGetAccountContacts(email, options).then(function (request) { return request(axios, basePath); });
|
|
1500
1368
|
},
|
|
1501
|
-
/**
|
|
1502
|
-
* Get Account Detailed Summary
|
|
1503
|
-
* @summary Get Account Detailed Summary
|
|
1504
|
-
* @param {number} id Customer ID
|
|
1505
|
-
* @param {*} [options] Override http request option.
|
|
1506
|
-
* @throws {RequiredError}
|
|
1507
|
-
*/
|
|
1508
|
-
getGetAccountDetailedSummary: function (id, options) {
|
|
1509
|
-
return localVarFp.getGetAccountDetailedSummary(id, options).then(function (request) { return request(axios, basePath); });
|
|
1510
|
-
},
|
|
1511
1369
|
/**
|
|
1512
1370
|
* Get Accounts
|
|
1513
1371
|
* @summary Get Accounts
|
|
@@ -1589,15 +1447,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1589
1447
|
postGetAccounts: function (accountRequestModel, options) {
|
|
1590
1448
|
return localVarFp.postGetAccounts(accountRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
1591
1449
|
},
|
|
1592
|
-
/**
|
|
1593
|
-
* Get Admin Account
|
|
1594
|
-
* @summary Get Admin Account
|
|
1595
|
-
* @param {*} [options] Override http request option.
|
|
1596
|
-
* @throws {RequiredError}
|
|
1597
|
-
*/
|
|
1598
|
-
postGetAdminAccount: function (options) {
|
|
1599
|
-
return localVarFp.postGetAdminAccount(options).then(function (request) { return request(axios, basePath); });
|
|
1600
|
-
},
|
|
1601
1450
|
/**
|
|
1602
1451
|
* Create client credentials
|
|
1603
1452
|
* @summary Create client credentials
|
|
@@ -1712,18 +1561,6 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1712
1561
|
var _this = this;
|
|
1713
1562
|
return (0, exports.AccountsApiFp)(this.configuration).getGetAccountContacts(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1714
1563
|
};
|
|
1715
|
-
/**
|
|
1716
|
-
* Get Account Detailed Summary
|
|
1717
|
-
* @summary Get Account Detailed Summary
|
|
1718
|
-
* @param {number} id Customer ID
|
|
1719
|
-
* @param {*} [options] Override http request option.
|
|
1720
|
-
* @throws {RequiredError}
|
|
1721
|
-
* @memberof AccountsApi
|
|
1722
|
-
*/
|
|
1723
|
-
AccountsApi.prototype.getGetAccountDetailedSummary = function (id, options) {
|
|
1724
|
-
var _this = this;
|
|
1725
|
-
return (0, exports.AccountsApiFp)(this.configuration).getGetAccountDetailedSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1726
|
-
};
|
|
1727
1564
|
/**
|
|
1728
1565
|
* Get Accounts
|
|
1729
1566
|
* @summary Get Accounts
|
|
@@ -1821,17 +1658,6 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1821
1658
|
var _this = this;
|
|
1822
1659
|
return (0, exports.AccountsApiFp)(this.configuration).postGetAccounts(accountRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1823
1660
|
};
|
|
1824
|
-
/**
|
|
1825
|
-
* Get Admin Account
|
|
1826
|
-
* @summary Get Admin Account
|
|
1827
|
-
* @param {*} [options] Override http request option.
|
|
1828
|
-
* @throws {RequiredError}
|
|
1829
|
-
* @memberof AccountsApi
|
|
1830
|
-
*/
|
|
1831
|
-
AccountsApi.prototype.postGetAdminAccount = function (options) {
|
|
1832
|
-
var _this = this;
|
|
1833
|
-
return (0, exports.AccountsApiFp)(this.configuration).postGetAdminAccount(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1834
|
-
};
|
|
1835
1661
|
/**
|
|
1836
1662
|
* Create client credentials
|
|
1837
1663
|
* @summary Create client credentials
|
|
@@ -1944,6 +1770,45 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
|
|
|
1944
1770
|
});
|
|
1945
1771
|
});
|
|
1946
1772
|
},
|
|
1773
|
+
/**
|
|
1774
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
1775
|
+
* @summary Convert a password to a hashed 3CX password
|
|
1776
|
+
* @param {string} password Desired 3CX web access password
|
|
1777
|
+
* @param {*} [options] Override http request option.
|
|
1778
|
+
* @throws {RequiredError}
|
|
1779
|
+
*/
|
|
1780
|
+
getGetPasswordHash: function (password_1) {
|
|
1781
|
+
var args_1 = [];
|
|
1782
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1783
|
+
args_1[_i - 1] = arguments[_i];
|
|
1784
|
+
}
|
|
1785
|
+
return __awaiter(_this, __spreadArray([password_1], args_1, true), void 0, function (password, options) {
|
|
1786
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1787
|
+
if (options === void 0) { options = {}; }
|
|
1788
|
+
return __generator(this, function (_a) {
|
|
1789
|
+
// verify required parameter 'password' is not null or undefined
|
|
1790
|
+
(0, common_1.assertParamExists)('getGetPasswordHash', 'password', password);
|
|
1791
|
+
localVarPath = "/tcx/pwd2hash";
|
|
1792
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1793
|
+
if (configuration) {
|
|
1794
|
+
baseOptions = configuration.baseOptions;
|
|
1795
|
+
}
|
|
1796
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1797
|
+
localVarHeaderParameter = {};
|
|
1798
|
+
localVarQueryParameter = {};
|
|
1799
|
+
if (password !== undefined) {
|
|
1800
|
+
localVarQueryParameter['password'] = password;
|
|
1801
|
+
}
|
|
1802
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1803
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1804
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1805
|
+
return [2 /*return*/, {
|
|
1806
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1807
|
+
options: localVarRequestOptions,
|
|
1808
|
+
}];
|
|
1809
|
+
});
|
|
1810
|
+
});
|
|
1811
|
+
},
|
|
1947
1812
|
/**
|
|
1948
1813
|
* Get Bulk 3CX Licence Details
|
|
1949
1814
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -2013,6 +1878,29 @@ var Class3CXApiFp = function (configuration) {
|
|
|
2013
1878
|
});
|
|
2014
1879
|
});
|
|
2015
1880
|
},
|
|
1881
|
+
/**
|
|
1882
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
1883
|
+
* @summary Convert a password to a hashed 3CX password
|
|
1884
|
+
* @param {string} password Desired 3CX web access password
|
|
1885
|
+
* @param {*} [options] Override http request option.
|
|
1886
|
+
* @throws {RequiredError}
|
|
1887
|
+
*/
|
|
1888
|
+
getGetPasswordHash: function (password, options) {
|
|
1889
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1890
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1891
|
+
var _a, _b, _c;
|
|
1892
|
+
return __generator(this, function (_d) {
|
|
1893
|
+
switch (_d.label) {
|
|
1894
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetPasswordHash(password, options)];
|
|
1895
|
+
case 1:
|
|
1896
|
+
localVarAxiosArgs = _d.sent();
|
|
1897
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1898
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.getGetPasswordHash']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1899
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1900
|
+
}
|
|
1901
|
+
});
|
|
1902
|
+
});
|
|
1903
|
+
},
|
|
2016
1904
|
/**
|
|
2017
1905
|
* Get Bulk 3CX Licence Details
|
|
2018
1906
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -2056,6 +1944,16 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
|
|
|
2056
1944
|
getGetLicenceDetails: function (key, options) {
|
|
2057
1945
|
return localVarFp.getGetLicenceDetails(key, options).then(function (request) { return request(axios, basePath); });
|
|
2058
1946
|
},
|
|
1947
|
+
/**
|
|
1948
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
1949
|
+
* @summary Convert a password to a hashed 3CX password
|
|
1950
|
+
* @param {string} password Desired 3CX web access password
|
|
1951
|
+
* @param {*} [options] Override http request option.
|
|
1952
|
+
* @throws {RequiredError}
|
|
1953
|
+
*/
|
|
1954
|
+
getGetPasswordHash: function (password, options) {
|
|
1955
|
+
return localVarFp.getGetPasswordHash(password, options).then(function (request) { return request(axios, basePath); });
|
|
1956
|
+
},
|
|
2059
1957
|
/**
|
|
2060
1958
|
* Get Bulk 3CX Licence Details
|
|
2061
1959
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -2092,6 +1990,18 @@ var Class3CXApi = /** @class */ (function (_super) {
|
|
|
2092
1990
|
var _this = this;
|
|
2093
1991
|
return (0, exports.Class3CXApiFp)(this.configuration).getGetLicenceDetails(key, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2094
1992
|
};
|
|
1993
|
+
/**
|
|
1994
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
1995
|
+
* @summary Convert a password to a hashed 3CX password
|
|
1996
|
+
* @param {string} password Desired 3CX web access password
|
|
1997
|
+
* @param {*} [options] Override http request option.
|
|
1998
|
+
* @throws {RequiredError}
|
|
1999
|
+
* @memberof Class3CXApi
|
|
2000
|
+
*/
|
|
2001
|
+
Class3CXApi.prototype.getGetPasswordHash = function (password, options) {
|
|
2002
|
+
var _this = this;
|
|
2003
|
+
return (0, exports.Class3CXApiFp)(this.configuration).getGetPasswordHash(password, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2004
|
+
};
|
|
2095
2005
|
/**
|
|
2096
2006
|
* Get Bulk 3CX Licence Details
|
|
2097
2007
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -8013,12 +7923,11 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8013
7923
|
return {
|
|
8014
7924
|
/**
|
|
8015
7925
|
* Delete Orders
|
|
8016
|
-
* @summary Delete Orders
|
|
8017
7926
|
* @param {number} id Order ID
|
|
8018
7927
|
* @param {*} [options] Override http request option.
|
|
8019
7928
|
* @throws {RequiredError}
|
|
8020
7929
|
*/
|
|
8021
|
-
|
|
7930
|
+
deleteDeleteOrder: function (id_1) {
|
|
8022
7931
|
var args_1 = [];
|
|
8023
7932
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8024
7933
|
args_1[_i - 1] = arguments[_i];
|
|
@@ -8028,7 +7937,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8028
7937
|
if (options === void 0) { options = {}; }
|
|
8029
7938
|
return __generator(this, function (_a) {
|
|
8030
7939
|
// verify required parameter 'id' is not null or undefined
|
|
8031
|
-
(0, common_1.assertParamExists)('
|
|
7940
|
+
(0, common_1.assertParamExists)('deleteDeleteOrder', 'id', id);
|
|
8032
7941
|
localVarPath = "/orders/{id}"
|
|
8033
7942
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8034
7943
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8048,80 +7957,6 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8048
7957
|
});
|
|
8049
7958
|
});
|
|
8050
7959
|
},
|
|
8051
|
-
/**
|
|
8052
|
-
* Get Editable Order (Admin)
|
|
8053
|
-
* @summary Get Editable Order (Admin)
|
|
8054
|
-
* @param {number} id Order ID
|
|
8055
|
-
* @param {*} [options] Override http request option.
|
|
8056
|
-
* @throws {RequiredError}
|
|
8057
|
-
*/
|
|
8058
|
-
getGetAdminEditableOrder: function (id_1) {
|
|
8059
|
-
var args_1 = [];
|
|
8060
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8061
|
-
args_1[_i - 1] = arguments[_i];
|
|
8062
|
-
}
|
|
8063
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
8064
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8065
|
-
if (options === void 0) { options = {}; }
|
|
8066
|
-
return __generator(this, function (_a) {
|
|
8067
|
-
// verify required parameter 'id' is not null or undefined
|
|
8068
|
-
(0, common_1.assertParamExists)('getGetAdminEditableOrder', 'id', id);
|
|
8069
|
-
localVarPath = "/admin/orders/{id}/views/editable"
|
|
8070
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8071
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8072
|
-
if (configuration) {
|
|
8073
|
-
baseOptions = configuration.baseOptions;
|
|
8074
|
-
}
|
|
8075
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8076
|
-
localVarHeaderParameter = {};
|
|
8077
|
-
localVarQueryParameter = {};
|
|
8078
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8079
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8080
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8081
|
-
return [2 /*return*/, {
|
|
8082
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8083
|
-
options: localVarRequestOptions,
|
|
8084
|
-
}];
|
|
8085
|
-
});
|
|
8086
|
-
});
|
|
8087
|
-
},
|
|
8088
|
-
/**
|
|
8089
|
-
* Get Editable Order
|
|
8090
|
-
* @summary Get Editable Order
|
|
8091
|
-
* @param {number} id Order ID
|
|
8092
|
-
* @param {*} [options] Override http request option.
|
|
8093
|
-
* @throws {RequiredError}
|
|
8094
|
-
*/
|
|
8095
|
-
getGetEditableOrder: function (id_1) {
|
|
8096
|
-
var args_1 = [];
|
|
8097
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8098
|
-
args_1[_i - 1] = arguments[_i];
|
|
8099
|
-
}
|
|
8100
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
8101
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8102
|
-
if (options === void 0) { options = {}; }
|
|
8103
|
-
return __generator(this, function (_a) {
|
|
8104
|
-
// verify required parameter 'id' is not null or undefined
|
|
8105
|
-
(0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
|
|
8106
|
-
localVarPath = "/orders/{id}/views/editable"
|
|
8107
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8108
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8109
|
-
if (configuration) {
|
|
8110
|
-
baseOptions = configuration.baseOptions;
|
|
8111
|
-
}
|
|
8112
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8113
|
-
localVarHeaderParameter = {};
|
|
8114
|
-
localVarQueryParameter = {};
|
|
8115
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8116
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8117
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8118
|
-
return [2 /*return*/, {
|
|
8119
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8120
|
-
options: localVarRequestOptions,
|
|
8121
|
-
}];
|
|
8122
|
-
});
|
|
8123
|
-
});
|
|
8124
|
-
},
|
|
8125
7960
|
/**
|
|
8126
7961
|
* Get Orders
|
|
8127
7962
|
* @summary Get Orders
|
|
@@ -8183,248 +8018,33 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8183
8018
|
});
|
|
8184
8019
|
});
|
|
8185
8020
|
},
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8197
|
-
args_1[_i - 2] = arguments[_i];
|
|
8198
|
-
}
|
|
8199
|
-
return __awaiter(_this, __spreadArray([readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (readonly, adminOrderRequestDTO, options) {
|
|
8200
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8201
|
-
if (options === void 0) { options = {}; }
|
|
8202
|
-
return __generator(this, function (_a) {
|
|
8203
|
-
localVarPath = "/admin/orders";
|
|
8204
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8205
|
-
if (configuration) {
|
|
8206
|
-
baseOptions = configuration.baseOptions;
|
|
8207
|
-
}
|
|
8208
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8209
|
-
localVarHeaderParameter = {};
|
|
8210
|
-
localVarQueryParameter = {};
|
|
8211
|
-
if (readonly !== undefined) {
|
|
8212
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
8213
|
-
}
|
|
8214
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8215
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8216
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8217
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8218
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8219
|
-
return [2 /*return*/, {
|
|
8220
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8221
|
-
options: localVarRequestOptions,
|
|
8222
|
-
}];
|
|
8223
|
-
});
|
|
8224
|
-
});
|
|
8225
|
-
},
|
|
8226
|
-
/**
|
|
8227
|
-
* Create An Order
|
|
8228
|
-
* @summary Create An Order
|
|
8229
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8230
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8231
|
-
* @param {*} [options] Override http request option.
|
|
8232
|
-
* @throws {RequiredError}
|
|
8233
|
-
*/
|
|
8234
|
-
postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
|
|
8235
|
-
var args_1 = [];
|
|
8236
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8237
|
-
args_1[_i - 2] = arguments[_i];
|
|
8238
|
-
}
|
|
8239
|
-
return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
|
|
8240
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8241
|
-
if (options === void 0) { options = {}; }
|
|
8242
|
-
return __generator(this, function (_a) {
|
|
8243
|
-
localVarPath = "/orders";
|
|
8244
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8245
|
-
if (configuration) {
|
|
8246
|
-
baseOptions = configuration.baseOptions;
|
|
8247
|
-
}
|
|
8248
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8249
|
-
localVarHeaderParameter = {};
|
|
8250
|
-
localVarQueryParameter = {};
|
|
8251
|
-
if (readonly !== undefined) {
|
|
8252
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
8253
|
-
}
|
|
8254
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8255
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8256
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8257
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8258
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8259
|
-
return [2 /*return*/, {
|
|
8260
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8261
|
-
options: localVarRequestOptions,
|
|
8262
|
-
}];
|
|
8263
|
-
});
|
|
8264
|
-
});
|
|
8265
|
-
},
|
|
8266
|
-
/**
|
|
8267
|
-
* Update An Order (Admin)
|
|
8268
|
-
* @summary Update An Order (Admin)
|
|
8269
|
-
* @param {number} id Order ID
|
|
8270
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8271
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8272
|
-
* @param {*} [options] Override http request option.
|
|
8273
|
-
* @throws {RequiredError}
|
|
8274
|
-
*/
|
|
8275
|
-
putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
|
|
8276
|
-
var args_1 = [];
|
|
8277
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8278
|
-
args_1[_i - 3] = arguments[_i];
|
|
8279
|
-
}
|
|
8280
|
-
return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
|
|
8281
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8282
|
-
if (options === void 0) { options = {}; }
|
|
8283
|
-
return __generator(this, function (_a) {
|
|
8284
|
-
// verify required parameter 'id' is not null or undefined
|
|
8285
|
-
(0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
|
|
8286
|
-
localVarPath = "/admin/orders/{id}"
|
|
8287
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8288
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8289
|
-
if (configuration) {
|
|
8290
|
-
baseOptions = configuration.baseOptions;
|
|
8291
|
-
}
|
|
8292
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
8293
|
-
localVarHeaderParameter = {};
|
|
8294
|
-
localVarQueryParameter = {};
|
|
8295
|
-
if (readonly !== undefined) {
|
|
8296
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
8297
|
-
}
|
|
8298
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8299
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8300
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8301
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8302
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8303
|
-
return [2 /*return*/, {
|
|
8304
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8305
|
-
options: localVarRequestOptions,
|
|
8306
|
-
}];
|
|
8307
|
-
});
|
|
8308
|
-
});
|
|
8309
|
-
},
|
|
8310
|
-
/**
|
|
8311
|
-
* Update An Order
|
|
8312
|
-
* @summary Update An Order
|
|
8313
|
-
* @param {number} id Order ID
|
|
8314
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8315
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8316
|
-
* @param {*} [options] Override http request option.
|
|
8317
|
-
* @throws {RequiredError}
|
|
8318
|
-
*/
|
|
8319
|
-
putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
|
|
8320
|
-
var args_1 = [];
|
|
8321
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8322
|
-
args_1[_i - 3] = arguments[_i];
|
|
8323
|
-
}
|
|
8324
|
-
return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
|
|
8325
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8326
|
-
if (options === void 0) { options = {}; }
|
|
8327
|
-
return __generator(this, function (_a) {
|
|
8328
|
-
// verify required parameter 'id' is not null or undefined
|
|
8329
|
-
(0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
|
|
8330
|
-
localVarPath = "/orders/{id}"
|
|
8331
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8332
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8333
|
-
if (configuration) {
|
|
8334
|
-
baseOptions = configuration.baseOptions;
|
|
8335
|
-
}
|
|
8336
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
8337
|
-
localVarHeaderParameter = {};
|
|
8338
|
-
localVarQueryParameter = {};
|
|
8339
|
-
if (readonly !== undefined) {
|
|
8340
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
8341
|
-
}
|
|
8342
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8343
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8344
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8345
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8346
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8347
|
-
return [2 /*return*/, {
|
|
8348
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8349
|
-
options: localVarRequestOptions,
|
|
8350
|
-
}];
|
|
8351
|
-
});
|
|
8352
|
-
});
|
|
8353
|
-
},
|
|
8354
|
-
};
|
|
8355
|
-
};
|
|
8356
|
-
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
8357
|
-
/**
|
|
8358
|
-
* OrdersApi - functional programming interface
|
|
8359
|
-
* @export
|
|
8360
|
-
*/
|
|
8361
|
-
var OrdersApiFp = function (configuration) {
|
|
8362
|
-
var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
8363
|
-
return {
|
|
8021
|
+
};
|
|
8022
|
+
};
|
|
8023
|
+
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
8024
|
+
/**
|
|
8025
|
+
* OrdersApi - functional programming interface
|
|
8026
|
+
* @export
|
|
8027
|
+
*/
|
|
8028
|
+
var OrdersApiFp = function (configuration) {
|
|
8029
|
+
var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
8030
|
+
return {
|
|
8364
8031
|
/**
|
|
8365
8032
|
* Delete Orders
|
|
8366
|
-
* @summary Delete Orders
|
|
8367
|
-
* @param {number} id Order ID
|
|
8368
|
-
* @param {*} [options] Override http request option.
|
|
8369
|
-
* @throws {RequiredError}
|
|
8370
|
-
*/
|
|
8371
|
-
deleteUpdateOrder: function (id, options) {
|
|
8372
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8373
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8374
|
-
var _a, _b, _c;
|
|
8375
|
-
return __generator(this, function (_d) {
|
|
8376
|
-
switch (_d.label) {
|
|
8377
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
|
|
8378
|
-
case 1:
|
|
8379
|
-
localVarAxiosArgs = _d.sent();
|
|
8380
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8381
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8382
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8383
|
-
}
|
|
8384
|
-
});
|
|
8385
|
-
});
|
|
8386
|
-
},
|
|
8387
|
-
/**
|
|
8388
|
-
* Get Editable Order (Admin)
|
|
8389
|
-
* @summary Get Editable Order (Admin)
|
|
8390
8033
|
* @param {number} id Order ID
|
|
8391
8034
|
* @param {*} [options] Override http request option.
|
|
8392
8035
|
* @throws {RequiredError}
|
|
8393
8036
|
*/
|
|
8394
|
-
|
|
8037
|
+
deleteDeleteOrder: function (id, options) {
|
|
8395
8038
|
return __awaiter(this, void 0, void 0, function () {
|
|
8396
8039
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8397
8040
|
var _a, _b, _c;
|
|
8398
8041
|
return __generator(this, function (_d) {
|
|
8399
8042
|
switch (_d.label) {
|
|
8400
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8043
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteOrder(id, options)];
|
|
8401
8044
|
case 1:
|
|
8402
8045
|
localVarAxiosArgs = _d.sent();
|
|
8403
8046
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8404
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.
|
|
8405
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8406
|
-
}
|
|
8407
|
-
});
|
|
8408
|
-
});
|
|
8409
|
-
},
|
|
8410
|
-
/**
|
|
8411
|
-
* Get Editable Order
|
|
8412
|
-
* @summary Get Editable Order
|
|
8413
|
-
* @param {number} id Order ID
|
|
8414
|
-
* @param {*} [options] Override http request option.
|
|
8415
|
-
* @throws {RequiredError}
|
|
8416
|
-
*/
|
|
8417
|
-
getGetEditableOrder: function (id, options) {
|
|
8418
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8419
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8420
|
-
var _a, _b, _c;
|
|
8421
|
-
return __generator(this, function (_d) {
|
|
8422
|
-
switch (_d.label) {
|
|
8423
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
|
|
8424
|
-
case 1:
|
|
8425
|
-
localVarAxiosArgs = _d.sent();
|
|
8426
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8427
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8047
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteDeleteOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8428
8048
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8429
8049
|
}
|
|
8430
8050
|
});
|
|
@@ -8459,104 +8079,6 @@ var OrdersApiFp = function (configuration) {
|
|
|
8459
8079
|
});
|
|
8460
8080
|
});
|
|
8461
8081
|
},
|
|
8462
|
-
/**
|
|
8463
|
-
* Create An Order (Admin)
|
|
8464
|
-
* @summary Create An Order (Admin)
|
|
8465
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8466
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8467
|
-
* @param {*} [options] Override http request option.
|
|
8468
|
-
* @throws {RequiredError}
|
|
8469
|
-
*/
|
|
8470
|
-
postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
|
|
8471
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8472
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8473
|
-
var _a, _b, _c;
|
|
8474
|
-
return __generator(this, function (_d) {
|
|
8475
|
-
switch (_d.label) {
|
|
8476
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
|
|
8477
|
-
case 1:
|
|
8478
|
-
localVarAxiosArgs = _d.sent();
|
|
8479
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8480
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8481
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8482
|
-
}
|
|
8483
|
-
});
|
|
8484
|
-
});
|
|
8485
|
-
},
|
|
8486
|
-
/**
|
|
8487
|
-
* Create An Order
|
|
8488
|
-
* @summary Create An Order
|
|
8489
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8490
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8491
|
-
* @param {*} [options] Override http request option.
|
|
8492
|
-
* @throws {RequiredError}
|
|
8493
|
-
*/
|
|
8494
|
-
postGetOrders: function (readonly, customerOrderRequestDTO, options) {
|
|
8495
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8496
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8497
|
-
var _a, _b, _c;
|
|
8498
|
-
return __generator(this, function (_d) {
|
|
8499
|
-
switch (_d.label) {
|
|
8500
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
|
|
8501
|
-
case 1:
|
|
8502
|
-
localVarAxiosArgs = _d.sent();
|
|
8503
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8504
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8505
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8506
|
-
}
|
|
8507
|
-
});
|
|
8508
|
-
});
|
|
8509
|
-
},
|
|
8510
|
-
/**
|
|
8511
|
-
* Update An Order (Admin)
|
|
8512
|
-
* @summary Update An Order (Admin)
|
|
8513
|
-
* @param {number} id Order ID
|
|
8514
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8515
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8516
|
-
* @param {*} [options] Override http request option.
|
|
8517
|
-
* @throws {RequiredError}
|
|
8518
|
-
*/
|
|
8519
|
-
putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
|
|
8520
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8521
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8522
|
-
var _a, _b, _c;
|
|
8523
|
-
return __generator(this, function (_d) {
|
|
8524
|
-
switch (_d.label) {
|
|
8525
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
|
|
8526
|
-
case 1:
|
|
8527
|
-
localVarAxiosArgs = _d.sent();
|
|
8528
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8529
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8530
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8531
|
-
}
|
|
8532
|
-
});
|
|
8533
|
-
});
|
|
8534
|
-
},
|
|
8535
|
-
/**
|
|
8536
|
-
* Update An Order
|
|
8537
|
-
* @summary Update An Order
|
|
8538
|
-
* @param {number} id Order ID
|
|
8539
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8540
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8541
|
-
* @param {*} [options] Override http request option.
|
|
8542
|
-
* @throws {RequiredError}
|
|
8543
|
-
*/
|
|
8544
|
-
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
8545
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8546
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8547
|
-
var _a, _b, _c;
|
|
8548
|
-
return __generator(this, function (_d) {
|
|
8549
|
-
switch (_d.label) {
|
|
8550
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options)];
|
|
8551
|
-
case 1:
|
|
8552
|
-
localVarAxiosArgs = _d.sent();
|
|
8553
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8554
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8555
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8556
|
-
}
|
|
8557
|
-
});
|
|
8558
|
-
});
|
|
8559
|
-
},
|
|
8560
8082
|
};
|
|
8561
8083
|
};
|
|
8562
8084
|
exports.OrdersApiFp = OrdersApiFp;
|
|
@@ -8569,33 +8091,12 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
8569
8091
|
return {
|
|
8570
8092
|
/**
|
|
8571
8093
|
* Delete Orders
|
|
8572
|
-
* @summary Delete Orders
|
|
8573
|
-
* @param {number} id Order ID
|
|
8574
|
-
* @param {*} [options] Override http request option.
|
|
8575
|
-
* @throws {RequiredError}
|
|
8576
|
-
*/
|
|
8577
|
-
deleteUpdateOrder: function (id, options) {
|
|
8578
|
-
return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
8579
|
-
},
|
|
8580
|
-
/**
|
|
8581
|
-
* Get Editable Order (Admin)
|
|
8582
|
-
* @summary Get Editable Order (Admin)
|
|
8583
8094
|
* @param {number} id Order ID
|
|
8584
8095
|
* @param {*} [options] Override http request option.
|
|
8585
8096
|
* @throws {RequiredError}
|
|
8586
8097
|
*/
|
|
8587
|
-
|
|
8588
|
-
return localVarFp.
|
|
8589
|
-
},
|
|
8590
|
-
/**
|
|
8591
|
-
* Get Editable Order
|
|
8592
|
-
* @summary Get Editable Order
|
|
8593
|
-
* @param {number} id Order ID
|
|
8594
|
-
* @param {*} [options] Override http request option.
|
|
8595
|
-
* @throws {RequiredError}
|
|
8596
|
-
*/
|
|
8597
|
-
getGetEditableOrder: function (id, options) {
|
|
8598
|
-
return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
8098
|
+
deleteDeleteOrder: function (id, options) {
|
|
8099
|
+
return localVarFp.deleteDeleteOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
8599
8100
|
},
|
|
8600
8101
|
/**
|
|
8601
8102
|
* Get Orders
|
|
@@ -8613,52 +8114,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
8613
8114
|
getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
|
|
8614
8115
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
8615
8116
|
},
|
|
8616
|
-
/**
|
|
8617
|
-
* Create An Order (Admin)
|
|
8618
|
-
* @summary Create An Order (Admin)
|
|
8619
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8620
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8621
|
-
* @param {*} [options] Override http request option.
|
|
8622
|
-
* @throws {RequiredError}
|
|
8623
|
-
*/
|
|
8624
|
-
postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
|
|
8625
|
-
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8626
|
-
},
|
|
8627
|
-
/**
|
|
8628
|
-
* Create An Order
|
|
8629
|
-
* @summary Create An Order
|
|
8630
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8631
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8632
|
-
* @param {*} [options] Override http request option.
|
|
8633
|
-
* @throws {RequiredError}
|
|
8634
|
-
*/
|
|
8635
|
-
postGetOrders: function (readonly, customerOrderRequestDTO, options) {
|
|
8636
|
-
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8637
|
-
},
|
|
8638
|
-
/**
|
|
8639
|
-
* Update An Order (Admin)
|
|
8640
|
-
* @summary Update An Order (Admin)
|
|
8641
|
-
* @param {number} id Order ID
|
|
8642
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8643
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8644
|
-
* @param {*} [options] Override http request option.
|
|
8645
|
-
* @throws {RequiredError}
|
|
8646
|
-
*/
|
|
8647
|
-
putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
|
|
8648
|
-
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8649
|
-
},
|
|
8650
|
-
/**
|
|
8651
|
-
* Update An Order
|
|
8652
|
-
* @summary Update An Order
|
|
8653
|
-
* @param {number} id Order ID
|
|
8654
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8655
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8656
|
-
* @param {*} [options] Override http request option.
|
|
8657
|
-
* @throws {RequiredError}
|
|
8658
|
-
*/
|
|
8659
|
-
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
8660
|
-
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8661
|
-
},
|
|
8662
8117
|
};
|
|
8663
8118
|
};
|
|
8664
8119
|
exports.OrdersApiFactory = OrdersApiFactory;
|
|
@@ -8675,39 +8130,14 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
8675
8130
|
}
|
|
8676
8131
|
/**
|
|
8677
8132
|
* Delete Orders
|
|
8678
|
-
* @summary Delete Orders
|
|
8679
|
-
* @param {number} id Order ID
|
|
8680
|
-
* @param {*} [options] Override http request option.
|
|
8681
|
-
* @throws {RequiredError}
|
|
8682
|
-
* @memberof OrdersApi
|
|
8683
|
-
*/
|
|
8684
|
-
OrdersApi.prototype.deleteUpdateOrder = function (id, options) {
|
|
8685
|
-
var _this = this;
|
|
8686
|
-
return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8687
|
-
};
|
|
8688
|
-
/**
|
|
8689
|
-
* Get Editable Order (Admin)
|
|
8690
|
-
* @summary Get Editable Order (Admin)
|
|
8691
8133
|
* @param {number} id Order ID
|
|
8692
8134
|
* @param {*} [options] Override http request option.
|
|
8693
8135
|
* @throws {RequiredError}
|
|
8694
8136
|
* @memberof OrdersApi
|
|
8695
8137
|
*/
|
|
8696
|
-
OrdersApi.prototype.
|
|
8138
|
+
OrdersApi.prototype.deleteDeleteOrder = function (id, options) {
|
|
8697
8139
|
var _this = this;
|
|
8698
|
-
return (0, exports.OrdersApiFp)(this.configuration).
|
|
8699
|
-
};
|
|
8700
|
-
/**
|
|
8701
|
-
* Get Editable Order
|
|
8702
|
-
* @summary Get Editable Order
|
|
8703
|
-
* @param {number} id Order ID
|
|
8704
|
-
* @param {*} [options] Override http request option.
|
|
8705
|
-
* @throws {RequiredError}
|
|
8706
|
-
* @memberof OrdersApi
|
|
8707
|
-
*/
|
|
8708
|
-
OrdersApi.prototype.getGetEditableOrder = function (id, options) {
|
|
8709
|
-
var _this = this;
|
|
8710
|
-
return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8140
|
+
return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8711
8141
|
};
|
|
8712
8142
|
/**
|
|
8713
8143
|
* Get Orders
|
|
@@ -8727,60 +8157,6 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
8727
8157
|
var _this = this;
|
|
8728
8158
|
return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8729
8159
|
};
|
|
8730
|
-
/**
|
|
8731
|
-
* Create An Order (Admin)
|
|
8732
|
-
* @summary Create An Order (Admin)
|
|
8733
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8734
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8735
|
-
* @param {*} [options] Override http request option.
|
|
8736
|
-
* @throws {RequiredError}
|
|
8737
|
-
* @memberof OrdersApi
|
|
8738
|
-
*/
|
|
8739
|
-
OrdersApi.prototype.postCreateAdminOrder = function (readonly, adminOrderRequestDTO, options) {
|
|
8740
|
-
var _this = this;
|
|
8741
|
-
return (0, exports.OrdersApiFp)(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8742
|
-
};
|
|
8743
|
-
/**
|
|
8744
|
-
* Create An Order
|
|
8745
|
-
* @summary Create An Order
|
|
8746
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8747
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8748
|
-
* @param {*} [options] Override http request option.
|
|
8749
|
-
* @throws {RequiredError}
|
|
8750
|
-
* @memberof OrdersApi
|
|
8751
|
-
*/
|
|
8752
|
-
OrdersApi.prototype.postGetOrders = function (readonly, customerOrderRequestDTO, options) {
|
|
8753
|
-
var _this = this;
|
|
8754
|
-
return (0, exports.OrdersApiFp)(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8755
|
-
};
|
|
8756
|
-
/**
|
|
8757
|
-
* Update An Order (Admin)
|
|
8758
|
-
* @summary Update An Order (Admin)
|
|
8759
|
-
* @param {number} id Order ID
|
|
8760
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8761
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8762
|
-
* @param {*} [options] Override http request option.
|
|
8763
|
-
* @throws {RequiredError}
|
|
8764
|
-
* @memberof OrdersApi
|
|
8765
|
-
*/
|
|
8766
|
-
OrdersApi.prototype.putUpdateAdminOrder = function (id, readonly, adminOrderRequestDTO, options) {
|
|
8767
|
-
var _this = this;
|
|
8768
|
-
return (0, exports.OrdersApiFp)(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8769
|
-
};
|
|
8770
|
-
/**
|
|
8771
|
-
* Update An Order
|
|
8772
|
-
* @summary Update An Order
|
|
8773
|
-
* @param {number} id Order ID
|
|
8774
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8775
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8776
|
-
* @param {*} [options] Override http request option.
|
|
8777
|
-
* @throws {RequiredError}
|
|
8778
|
-
* @memberof OrdersApi
|
|
8779
|
-
*/
|
|
8780
|
-
OrdersApi.prototype.putUpdateOrder = function (id, readonly, customerOrderRequestDTO, options) {
|
|
8781
|
-
var _this = this;
|
|
8782
|
-
return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8783
|
-
};
|
|
8784
8160
|
return OrdersApi;
|
|
8785
8161
|
}(base_1.BaseAPI));
|
|
8786
8162
|
exports.OrdersApi = OrdersApi;
|
|
@@ -9208,52 +8584,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9208
8584
|
});
|
|
9209
8585
|
},
|
|
9210
8586
|
/**
|
|
9211
|
-
* Get
|
|
9212
|
-
* @summary Get
|
|
9213
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
8587
|
+
* Get Customer Price Lists
|
|
8588
|
+
* @summary Get Customer Price Lists
|
|
9214
8589
|
* @param {*} [options] Override http request option.
|
|
9215
|
-
* @deprecated
|
|
9216
8590
|
* @throws {RequiredError}
|
|
9217
8591
|
*/
|
|
9218
|
-
|
|
9219
|
-
var args_1 = [];
|
|
9220
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9221
|
-
args_1[_i - 1] = arguments[_i];
|
|
9222
|
-
}
|
|
9223
|
-
return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
|
|
9224
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9225
|
-
if (options === void 0) { options = {}; }
|
|
9226
|
-
return __generator(this, function (_a) {
|
|
9227
|
-
// verify required parameter 'format' is not null or undefined
|
|
9228
|
-
(0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
|
|
9229
|
-
localVarPath = "/products/stock/legacy";
|
|
9230
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9231
|
-
if (configuration) {
|
|
9232
|
-
baseOptions = configuration.baseOptions;
|
|
9233
|
-
}
|
|
9234
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9235
|
-
localVarHeaderParameter = {};
|
|
9236
|
-
localVarQueryParameter = {};
|
|
9237
|
-
if (format !== undefined) {
|
|
9238
|
-
localVarQueryParameter['format'] = format;
|
|
9239
|
-
}
|
|
9240
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9241
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9242
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9243
|
-
return [2 /*return*/, {
|
|
9244
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9245
|
-
options: localVarRequestOptions,
|
|
9246
|
-
}];
|
|
9247
|
-
});
|
|
9248
|
-
});
|
|
9249
|
-
},
|
|
9250
|
-
/**
|
|
9251
|
-
* Get Products
|
|
9252
|
-
* @summary Get Products
|
|
9253
|
-
* @param {*} [options] Override http request option.
|
|
9254
|
-
* @throws {RequiredError}
|
|
9255
|
-
*/
|
|
9256
|
-
getGetProducts: function () {
|
|
8592
|
+
getGetCustomerPriceLists: function () {
|
|
9257
8593
|
var args_1 = [];
|
|
9258
8594
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9259
8595
|
args_1[_i] = arguments[_i];
|
|
@@ -9262,7 +8598,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9262
8598
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9263
8599
|
if (options === void 0) { options = {}; }
|
|
9264
8600
|
return __generator(this, function (_a) {
|
|
9265
|
-
localVarPath = "/products";
|
|
8601
|
+
localVarPath = "/products/prices/lists";
|
|
9266
8602
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9267
8603
|
if (configuration) {
|
|
9268
8604
|
baseOptions = configuration.baseOptions;
|
|
@@ -9283,52 +8619,23 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9283
8619
|
/**
|
|
9284
8620
|
* Get Current Stock & Pricing
|
|
9285
8621
|
* @summary Get Current Stock & Pricing
|
|
8622
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
9286
8623
|
* @param {*} [options] Override http request option.
|
|
8624
|
+
* @deprecated
|
|
9287
8625
|
* @throws {RequiredError}
|
|
9288
8626
|
*/
|
|
9289
|
-
|
|
9290
|
-
var args_1 = [];
|
|
9291
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9292
|
-
args_1[_i] = arguments[_i];
|
|
9293
|
-
}
|
|
9294
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9295
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9296
|
-
if (options === void 0) { options = {}; }
|
|
9297
|
-
return __generator(this, function (_a) {
|
|
9298
|
-
localVarPath = "/products/stock";
|
|
9299
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9300
|
-
if (configuration) {
|
|
9301
|
-
baseOptions = configuration.baseOptions;
|
|
9302
|
-
}
|
|
9303
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9304
|
-
localVarHeaderParameter = {};
|
|
9305
|
-
localVarQueryParameter = {};
|
|
9306
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9307
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9308
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9309
|
-
return [2 /*return*/, {
|
|
9310
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9311
|
-
options: localVarRequestOptions,
|
|
9312
|
-
}];
|
|
9313
|
-
});
|
|
9314
|
-
});
|
|
9315
|
-
},
|
|
9316
|
-
/**
|
|
9317
|
-
* Get 3CX Templates
|
|
9318
|
-
* @summary Get 3CX Templates
|
|
9319
|
-
* @param {*} [options] Override http request option.
|
|
9320
|
-
* @throws {RequiredError}
|
|
9321
|
-
*/
|
|
9322
|
-
getGetTcxTemplates: function () {
|
|
8627
|
+
getGetLegacyStockList: function (format_1) {
|
|
9323
8628
|
var args_1 = [];
|
|
9324
|
-
for (var _i =
|
|
9325
|
-
args_1[_i] = arguments[_i];
|
|
8629
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8630
|
+
args_1[_i - 1] = arguments[_i];
|
|
9326
8631
|
}
|
|
9327
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
8632
|
+
return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
|
|
9328
8633
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9329
8634
|
if (options === void 0) { options = {}; }
|
|
9330
8635
|
return __generator(this, function (_a) {
|
|
9331
|
-
|
|
8636
|
+
// verify required parameter 'format' is not null or undefined
|
|
8637
|
+
(0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
|
|
8638
|
+
localVarPath = "/products/stock/legacy";
|
|
9332
8639
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9333
8640
|
if (configuration) {
|
|
9334
8641
|
baseOptions = configuration.baseOptions;
|
|
@@ -9336,6 +8643,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9336
8643
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9337
8644
|
localVarHeaderParameter = {};
|
|
9338
8645
|
localVarQueryParameter = {};
|
|
8646
|
+
if (format !== undefined) {
|
|
8647
|
+
localVarQueryParameter['format'] = format;
|
|
8648
|
+
}
|
|
9339
8649
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9340
8650
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9341
8651
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -9347,15 +8657,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9347
8657
|
});
|
|
9348
8658
|
},
|
|
9349
8659
|
/**
|
|
9350
|
-
*
|
|
9351
|
-
* @summary
|
|
8660
|
+
* Get Products
|
|
8661
|
+
* @summary Get Products
|
|
9352
8662
|
* @param {number} [pageSize] Number Of Results
|
|
9353
8663
|
* @param {number} [page] Page Number
|
|
9354
8664
|
* @param {string} [search] Search
|
|
9355
8665
|
* @param {*} [options] Override http request option.
|
|
9356
8666
|
* @throws {RequiredError}
|
|
9357
8667
|
*/
|
|
9358
|
-
|
|
8668
|
+
getGetProducts: function (pageSize_1, page_1, search_1) {
|
|
9359
8669
|
var args_1 = [];
|
|
9360
8670
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
9361
8671
|
args_1[_i - 3] = arguments[_i];
|
|
@@ -9392,40 +8702,31 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9392
8702
|
});
|
|
9393
8703
|
},
|
|
9394
8704
|
/**
|
|
9395
|
-
* Get
|
|
9396
|
-
* @summary Get
|
|
9397
|
-
* @param {string} sku Product SKU
|
|
9398
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8705
|
+
* Get Current Stock & Pricing
|
|
8706
|
+
* @summary Get Current Stock & Pricing
|
|
9399
8707
|
* @param {*} [options] Override http request option.
|
|
9400
8708
|
* @throws {RequiredError}
|
|
9401
8709
|
*/
|
|
9402
|
-
|
|
8710
|
+
getGetStockList: function () {
|
|
9403
8711
|
var args_1 = [];
|
|
9404
|
-
for (var _i =
|
|
9405
|
-
args_1[_i
|
|
8712
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8713
|
+
args_1[_i] = arguments[_i];
|
|
9406
8714
|
}
|
|
9407
|
-
return __awaiter(_this, __spreadArray([
|
|
8715
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9408
8716
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9409
8717
|
if (options === void 0) { options = {}; }
|
|
9410
8718
|
return __generator(this, function (_a) {
|
|
9411
|
-
|
|
9412
|
-
(0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
|
|
9413
|
-
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
9414
|
-
(0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
9415
|
-
localVarPath = "/products/{sku}"
|
|
9416
|
-
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8719
|
+
localVarPath = "/products/stock";
|
|
9417
8720
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9418
8721
|
if (configuration) {
|
|
9419
8722
|
baseOptions = configuration.baseOptions;
|
|
9420
8723
|
}
|
|
9421
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
8724
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9422
8725
|
localVarHeaderParameter = {};
|
|
9423
8726
|
localVarQueryParameter = {};
|
|
9424
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9425
8727
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9426
8728
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9427
8729
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9428
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
9429
8730
|
return [2 /*return*/, {
|
|
9430
8731
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9431
8732
|
options: localVarRequestOptions,
|
|
@@ -9434,46 +8735,31 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9434
8735
|
});
|
|
9435
8736
|
},
|
|
9436
8737
|
/**
|
|
9437
|
-
* Get
|
|
9438
|
-
* @summary Get
|
|
9439
|
-
* @param {number} customerId Customer ID
|
|
9440
|
-
* @param {string} sku Product SKU
|
|
9441
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8738
|
+
* Get 3CX Templates
|
|
8739
|
+
* @summary Get 3CX Templates
|
|
9442
8740
|
* @param {*} [options] Override http request option.
|
|
9443
8741
|
* @throws {RequiredError}
|
|
9444
8742
|
*/
|
|
9445
|
-
|
|
8743
|
+
getGetTcxTemplates: function () {
|
|
9446
8744
|
var args_1 = [];
|
|
9447
|
-
for (var _i =
|
|
9448
|
-
args_1[_i
|
|
8745
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8746
|
+
args_1[_i] = arguments[_i];
|
|
9449
8747
|
}
|
|
9450
|
-
return __awaiter(_this, __spreadArray([
|
|
8748
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9451
8749
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9452
8750
|
if (options === void 0) { options = {}; }
|
|
9453
8751
|
return __generator(this, function (_a) {
|
|
9454
|
-
|
|
9455
|
-
(0, common_1.assertParamExists)('postGetProductForCustomer', 'customerId', customerId);
|
|
9456
|
-
// verify required parameter 'sku' is not null or undefined
|
|
9457
|
-
(0, common_1.assertParamExists)('postGetProductForCustomer', 'sku', sku);
|
|
9458
|
-
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
9459
|
-
(0, common_1.assertParamExists)('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
9460
|
-
localVarPath = "/admin/products/{sku}"
|
|
9461
|
-
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8752
|
+
localVarPath = "/products/attributes/tcx/templates";
|
|
9462
8753
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9463
8754
|
if (configuration) {
|
|
9464
8755
|
baseOptions = configuration.baseOptions;
|
|
9465
8756
|
}
|
|
9466
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
8757
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9467
8758
|
localVarHeaderParameter = {};
|
|
9468
8759
|
localVarQueryParameter = {};
|
|
9469
|
-
if (customerId !== undefined) {
|
|
9470
|
-
localVarQueryParameter['customerId'] = customerId;
|
|
9471
|
-
}
|
|
9472
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9473
8760
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9474
8761
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9475
8762
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9476
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
9477
8763
|
return [2 /*return*/, {
|
|
9478
8764
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9479
8765
|
options: localVarRequestOptions,
|
|
@@ -9514,46 +8800,22 @@ var ProductsApiFp = function (configuration) {
|
|
|
9514
8800
|
});
|
|
9515
8801
|
},
|
|
9516
8802
|
/**
|
|
9517
|
-
* Get
|
|
9518
|
-
* @summary Get
|
|
9519
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
9520
|
-
* @param {*} [options] Override http request option.
|
|
9521
|
-
* @deprecated
|
|
9522
|
-
* @throws {RequiredError}
|
|
9523
|
-
*/
|
|
9524
|
-
getGetLegacyStockList: function (format, options) {
|
|
9525
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
9526
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9527
|
-
var _a, _b, _c;
|
|
9528
|
-
return __generator(this, function (_d) {
|
|
9529
|
-
switch (_d.label) {
|
|
9530
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
|
|
9531
|
-
case 1:
|
|
9532
|
-
localVarAxiosArgs = _d.sent();
|
|
9533
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9534
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9535
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9536
|
-
}
|
|
9537
|
-
});
|
|
9538
|
-
});
|
|
9539
|
-
},
|
|
9540
|
-
/**
|
|
9541
|
-
* Get Products
|
|
9542
|
-
* @summary Get Products
|
|
8803
|
+
* Get Customer Price Lists
|
|
8804
|
+
* @summary Get Customer Price Lists
|
|
9543
8805
|
* @param {*} [options] Override http request option.
|
|
9544
8806
|
* @throws {RequiredError}
|
|
9545
8807
|
*/
|
|
9546
|
-
|
|
8808
|
+
getGetCustomerPriceLists: function (options) {
|
|
9547
8809
|
return __awaiter(this, void 0, void 0, function () {
|
|
9548
8810
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9549
8811
|
var _a, _b, _c;
|
|
9550
8812
|
return __generator(this, function (_d) {
|
|
9551
8813
|
switch (_d.label) {
|
|
9552
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8814
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerPriceLists(options)];
|
|
9553
8815
|
case 1:
|
|
9554
8816
|
localVarAxiosArgs = _d.sent();
|
|
9555
8817
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9556
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8818
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetCustomerPriceLists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9557
8819
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9558
8820
|
}
|
|
9559
8821
|
});
|
|
@@ -9562,116 +8824,91 @@ var ProductsApiFp = function (configuration) {
|
|
|
9562
8824
|
/**
|
|
9563
8825
|
* Get Current Stock & Pricing
|
|
9564
8826
|
* @summary Get Current Stock & Pricing
|
|
8827
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
9565
8828
|
* @param {*} [options] Override http request option.
|
|
8829
|
+
* @deprecated
|
|
9566
8830
|
* @throws {RequiredError}
|
|
9567
8831
|
*/
|
|
9568
|
-
|
|
9569
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
9570
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9571
|
-
var _a, _b, _c;
|
|
9572
|
-
return __generator(this, function (_d) {
|
|
9573
|
-
switch (_d.label) {
|
|
9574
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
|
|
9575
|
-
case 1:
|
|
9576
|
-
localVarAxiosArgs = _d.sent();
|
|
9577
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9578
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9579
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9580
|
-
}
|
|
9581
|
-
});
|
|
9582
|
-
});
|
|
9583
|
-
},
|
|
9584
|
-
/**
|
|
9585
|
-
* Get 3CX Templates
|
|
9586
|
-
* @summary Get 3CX Templates
|
|
9587
|
-
* @param {*} [options] Override http request option.
|
|
9588
|
-
* @throws {RequiredError}
|
|
9589
|
-
*/
|
|
9590
|
-
getGetTcxTemplates: function (options) {
|
|
8832
|
+
getGetLegacyStockList: function (format, options) {
|
|
9591
8833
|
return __awaiter(this, void 0, void 0, function () {
|
|
9592
8834
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9593
8835
|
var _a, _b, _c;
|
|
9594
8836
|
return __generator(this, function (_d) {
|
|
9595
8837
|
switch (_d.label) {
|
|
9596
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8838
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
|
|
9597
8839
|
case 1:
|
|
9598
8840
|
localVarAxiosArgs = _d.sent();
|
|
9599
8841
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9600
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8842
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9601
8843
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9602
8844
|
}
|
|
9603
8845
|
});
|
|
9604
8846
|
});
|
|
9605
8847
|
},
|
|
9606
8848
|
/**
|
|
9607
|
-
*
|
|
9608
|
-
* @summary
|
|
8849
|
+
* Get Products
|
|
8850
|
+
* @summary Get Products
|
|
9609
8851
|
* @param {number} [pageSize] Number Of Results
|
|
9610
8852
|
* @param {number} [page] Page Number
|
|
9611
8853
|
* @param {string} [search] Search
|
|
9612
8854
|
* @param {*} [options] Override http request option.
|
|
9613
8855
|
* @throws {RequiredError}
|
|
9614
8856
|
*/
|
|
9615
|
-
|
|
8857
|
+
getGetProducts: function (pageSize, page, search, options) {
|
|
9616
8858
|
return __awaiter(this, void 0, void 0, function () {
|
|
9617
8859
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9618
8860
|
var _a, _b, _c;
|
|
9619
8861
|
return __generator(this, function (_d) {
|
|
9620
8862
|
switch (_d.label) {
|
|
9621
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8863
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(pageSize, page, search, options)];
|
|
9622
8864
|
case 1:
|
|
9623
8865
|
localVarAxiosArgs = _d.sent();
|
|
9624
8866
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9625
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8867
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9626
8868
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9627
8869
|
}
|
|
9628
8870
|
});
|
|
9629
8871
|
});
|
|
9630
8872
|
},
|
|
9631
8873
|
/**
|
|
9632
|
-
* Get
|
|
9633
|
-
* @summary Get
|
|
9634
|
-
* @param {string} sku Product SKU
|
|
9635
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8874
|
+
* Get Current Stock & Pricing
|
|
8875
|
+
* @summary Get Current Stock & Pricing
|
|
9636
8876
|
* @param {*} [options] Override http request option.
|
|
9637
8877
|
* @throws {RequiredError}
|
|
9638
8878
|
*/
|
|
9639
|
-
|
|
8879
|
+
getGetStockList: function (options) {
|
|
9640
8880
|
return __awaiter(this, void 0, void 0, function () {
|
|
9641
8881
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9642
8882
|
var _a, _b, _c;
|
|
9643
8883
|
return __generator(this, function (_d) {
|
|
9644
8884
|
switch (_d.label) {
|
|
9645
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8885
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
|
|
9646
8886
|
case 1:
|
|
9647
8887
|
localVarAxiosArgs = _d.sent();
|
|
9648
8888
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9649
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8889
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9650
8890
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9651
8891
|
}
|
|
9652
8892
|
});
|
|
9653
8893
|
});
|
|
9654
8894
|
},
|
|
9655
8895
|
/**
|
|
9656
|
-
* Get
|
|
9657
|
-
* @summary Get
|
|
9658
|
-
* @param {number} customerId Customer ID
|
|
9659
|
-
* @param {string} sku Product SKU
|
|
9660
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8896
|
+
* Get 3CX Templates
|
|
8897
|
+
* @summary Get 3CX Templates
|
|
9661
8898
|
* @param {*} [options] Override http request option.
|
|
9662
8899
|
* @throws {RequiredError}
|
|
9663
8900
|
*/
|
|
9664
|
-
|
|
8901
|
+
getGetTcxTemplates: function (options) {
|
|
9665
8902
|
return __awaiter(this, void 0, void 0, function () {
|
|
9666
8903
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9667
8904
|
var _a, _b, _c;
|
|
9668
8905
|
return __generator(this, function (_d) {
|
|
9669
8906
|
switch (_d.label) {
|
|
9670
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8907
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
|
|
9671
8908
|
case 1:
|
|
9672
8909
|
localVarAxiosArgs = _d.sent();
|
|
9673
8910
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9674
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8911
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9675
8912
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9676
8913
|
}
|
|
9677
8914
|
});
|
|
@@ -9696,6 +8933,15 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
9696
8933
|
getGetAttributeSets: function (options) {
|
|
9697
8934
|
return localVarFp.getGetAttributeSets(options).then(function (request) { return request(axios, basePath); });
|
|
9698
8935
|
},
|
|
8936
|
+
/**
|
|
8937
|
+
* Get Customer Price Lists
|
|
8938
|
+
* @summary Get Customer Price Lists
|
|
8939
|
+
* @param {*} [options] Override http request option.
|
|
8940
|
+
* @throws {RequiredError}
|
|
8941
|
+
*/
|
|
8942
|
+
getGetCustomerPriceLists: function (options) {
|
|
8943
|
+
return localVarFp.getGetCustomerPriceLists(options).then(function (request) { return request(axios, basePath); });
|
|
8944
|
+
},
|
|
9699
8945
|
/**
|
|
9700
8946
|
* Get Current Stock & Pricing
|
|
9701
8947
|
* @summary Get Current Stock & Pricing
|
|
@@ -9710,11 +8956,14 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
9710
8956
|
/**
|
|
9711
8957
|
* Get Products
|
|
9712
8958
|
* @summary Get Products
|
|
8959
|
+
* @param {number} [pageSize] Number Of Results
|
|
8960
|
+
* @param {number} [page] Page Number
|
|
8961
|
+
* @param {string} [search] Search
|
|
9713
8962
|
* @param {*} [options] Override http request option.
|
|
9714
8963
|
* @throws {RequiredError}
|
|
9715
8964
|
*/
|
|
9716
|
-
getGetProducts: function (options) {
|
|
9717
|
-
return localVarFp.getGetProducts(options).then(function (request) { return request(axios, basePath); });
|
|
8965
|
+
getGetProducts: function (pageSize, page, search, options) {
|
|
8966
|
+
return localVarFp.getGetProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
9718
8967
|
},
|
|
9719
8968
|
/**
|
|
9720
8969
|
* Get Current Stock & Pricing
|
|
@@ -9734,41 +8983,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
9734
8983
|
getGetTcxTemplates: function (options) {
|
|
9735
8984
|
return localVarFp.getGetTcxTemplates(options).then(function (request) { return request(axios, basePath); });
|
|
9736
8985
|
},
|
|
9737
|
-
/**
|
|
9738
|
-
* Search Products
|
|
9739
|
-
* @summary Search Products
|
|
9740
|
-
* @param {number} [pageSize] Number Of Results
|
|
9741
|
-
* @param {number} [page] Page Number
|
|
9742
|
-
* @param {string} [search] Search
|
|
9743
|
-
* @param {*} [options] Override http request option.
|
|
9744
|
-
* @throws {RequiredError}
|
|
9745
|
-
*/
|
|
9746
|
-
getSearchProducts: function (pageSize, page, search, options) {
|
|
9747
|
-
return localVarFp.getSearchProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
9748
|
-
},
|
|
9749
|
-
/**
|
|
9750
|
-
* Get Product
|
|
9751
|
-
* @summary Get Product
|
|
9752
|
-
* @param {string} sku Product SKU
|
|
9753
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9754
|
-
* @param {*} [options] Override http request option.
|
|
9755
|
-
* @throws {RequiredError}
|
|
9756
|
-
*/
|
|
9757
|
-
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
9758
|
-
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
9759
|
-
},
|
|
9760
|
-
/**
|
|
9761
|
-
* Get Product For Customer
|
|
9762
|
-
* @summary Get Product For Customer
|
|
9763
|
-
* @param {number} customerId Customer ID
|
|
9764
|
-
* @param {string} sku Product SKU
|
|
9765
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9766
|
-
* @param {*} [options] Override http request option.
|
|
9767
|
-
* @throws {RequiredError}
|
|
9768
|
-
*/
|
|
9769
|
-
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
9770
|
-
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
9771
|
-
},
|
|
9772
8986
|
};
|
|
9773
8987
|
};
|
|
9774
8988
|
exports.ProductsApiFactory = ProductsApiFactory;
|
|
@@ -9794,6 +9008,17 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9794
9008
|
var _this = this;
|
|
9795
9009
|
return (0, exports.ProductsApiFp)(this.configuration).getGetAttributeSets(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9796
9010
|
};
|
|
9011
|
+
/**
|
|
9012
|
+
* Get Customer Price Lists
|
|
9013
|
+
* @summary Get Customer Price Lists
|
|
9014
|
+
* @param {*} [options] Override http request option.
|
|
9015
|
+
* @throws {RequiredError}
|
|
9016
|
+
* @memberof ProductsApi
|
|
9017
|
+
*/
|
|
9018
|
+
ProductsApi.prototype.getGetCustomerPriceLists = function (options) {
|
|
9019
|
+
var _this = this;
|
|
9020
|
+
return (0, exports.ProductsApiFp)(this.configuration).getGetCustomerPriceLists(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9021
|
+
};
|
|
9797
9022
|
/**
|
|
9798
9023
|
* Get Current Stock & Pricing
|
|
9799
9024
|
* @summary Get Current Stock & Pricing
|
|
@@ -9810,13 +9035,16 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9810
9035
|
/**
|
|
9811
9036
|
* Get Products
|
|
9812
9037
|
* @summary Get Products
|
|
9038
|
+
* @param {number} [pageSize] Number Of Results
|
|
9039
|
+
* @param {number} [page] Page Number
|
|
9040
|
+
* @param {string} [search] Search
|
|
9813
9041
|
* @param {*} [options] Override http request option.
|
|
9814
9042
|
* @throws {RequiredError}
|
|
9815
9043
|
* @memberof ProductsApi
|
|
9816
9044
|
*/
|
|
9817
|
-
ProductsApi.prototype.getGetProducts = function (options) {
|
|
9045
|
+
ProductsApi.prototype.getGetProducts = function (pageSize, page, search, options) {
|
|
9818
9046
|
var _this = this;
|
|
9819
|
-
return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9047
|
+
return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9820
9048
|
};
|
|
9821
9049
|
/**
|
|
9822
9050
|
* Get Current Stock & Pricing
|
|
@@ -9840,47 +9068,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9840
9068
|
var _this = this;
|
|
9841
9069
|
return (0, exports.ProductsApiFp)(this.configuration).getGetTcxTemplates(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9842
9070
|
};
|
|
9843
|
-
/**
|
|
9844
|
-
* Search Products
|
|
9845
|
-
* @summary Search Products
|
|
9846
|
-
* @param {number} [pageSize] Number Of Results
|
|
9847
|
-
* @param {number} [page] Page Number
|
|
9848
|
-
* @param {string} [search] Search
|
|
9849
|
-
* @param {*} [options] Override http request option.
|
|
9850
|
-
* @throws {RequiredError}
|
|
9851
|
-
* @memberof ProductsApi
|
|
9852
|
-
*/
|
|
9853
|
-
ProductsApi.prototype.getSearchProducts = function (pageSize, page, search, options) {
|
|
9854
|
-
var _this = this;
|
|
9855
|
-
return (0, exports.ProductsApiFp)(this.configuration).getSearchProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9856
|
-
};
|
|
9857
|
-
/**
|
|
9858
|
-
* Get Product
|
|
9859
|
-
* @summary Get Product
|
|
9860
|
-
* @param {string} sku Product SKU
|
|
9861
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9862
|
-
* @param {*} [options] Override http request option.
|
|
9863
|
-
* @throws {RequiredError}
|
|
9864
|
-
* @memberof ProductsApi
|
|
9865
|
-
*/
|
|
9866
|
-
ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
|
|
9867
|
-
var _this = this;
|
|
9868
|
-
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9869
|
-
};
|
|
9870
|
-
/**
|
|
9871
|
-
* Get Product For Customer
|
|
9872
|
-
* @summary Get Product For Customer
|
|
9873
|
-
* @param {number} customerId Customer ID
|
|
9874
|
-
* @param {string} sku Product SKU
|
|
9875
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9876
|
-
* @param {*} [options] Override http request option.
|
|
9877
|
-
* @throws {RequiredError}
|
|
9878
|
-
* @memberof ProductsApi
|
|
9879
|
-
*/
|
|
9880
|
-
ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
9881
|
-
var _this = this;
|
|
9882
|
-
return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9883
|
-
};
|
|
9884
9071
|
return ProductsApi;
|
|
9885
9072
|
}(base_1.BaseAPI));
|
|
9886
9073
|
exports.ProductsApi = ProductsApi;
|
|
@@ -12606,131 +11793,6 @@ var SMSApi = /** @class */ (function (_super) {
|
|
|
12606
11793
|
return SMSApi;
|
|
12607
11794
|
}(base_1.BaseAPI));
|
|
12608
11795
|
exports.SMSApi = SMSApi;
|
|
12609
|
-
/**
|
|
12610
|
-
* ShippingApi - axios parameter creator
|
|
12611
|
-
* @export
|
|
12612
|
-
*/
|
|
12613
|
-
var ShippingApiAxiosParamCreator = function (configuration) {
|
|
12614
|
-
var _this = this;
|
|
12615
|
-
return {
|
|
12616
|
-
/**
|
|
12617
|
-
* Get Shipping Services
|
|
12618
|
-
* @summary Get Shipping Services
|
|
12619
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12620
|
-
* @param {*} [options] Override http request option.
|
|
12621
|
-
* @throws {RequiredError}
|
|
12622
|
-
*/
|
|
12623
|
-
postGetShippingServices: function (shippingInformationDTO_1) {
|
|
12624
|
-
var args_1 = [];
|
|
12625
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
12626
|
-
args_1[_i - 1] = arguments[_i];
|
|
12627
|
-
}
|
|
12628
|
-
return __awaiter(_this, __spreadArray([shippingInformationDTO_1], args_1, true), void 0, function (shippingInformationDTO, options) {
|
|
12629
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12630
|
-
if (options === void 0) { options = {}; }
|
|
12631
|
-
return __generator(this, function (_a) {
|
|
12632
|
-
localVarPath = "/shipping/services";
|
|
12633
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12634
|
-
if (configuration) {
|
|
12635
|
-
baseOptions = configuration.baseOptions;
|
|
12636
|
-
}
|
|
12637
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
12638
|
-
localVarHeaderParameter = {};
|
|
12639
|
-
localVarQueryParameter = {};
|
|
12640
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12641
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12642
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12643
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12644
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingInformationDTO, localVarRequestOptions, configuration);
|
|
12645
|
-
return [2 /*return*/, {
|
|
12646
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12647
|
-
options: localVarRequestOptions,
|
|
12648
|
-
}];
|
|
12649
|
-
});
|
|
12650
|
-
});
|
|
12651
|
-
},
|
|
12652
|
-
};
|
|
12653
|
-
};
|
|
12654
|
-
exports.ShippingApiAxiosParamCreator = ShippingApiAxiosParamCreator;
|
|
12655
|
-
/**
|
|
12656
|
-
* ShippingApi - functional programming interface
|
|
12657
|
-
* @export
|
|
12658
|
-
*/
|
|
12659
|
-
var ShippingApiFp = function (configuration) {
|
|
12660
|
-
var localVarAxiosParamCreator = (0, exports.ShippingApiAxiosParamCreator)(configuration);
|
|
12661
|
-
return {
|
|
12662
|
-
/**
|
|
12663
|
-
* Get Shipping Services
|
|
12664
|
-
* @summary Get Shipping Services
|
|
12665
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12666
|
-
* @param {*} [options] Override http request option.
|
|
12667
|
-
* @throws {RequiredError}
|
|
12668
|
-
*/
|
|
12669
|
-
postGetShippingServices: function (shippingInformationDTO, options) {
|
|
12670
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
12671
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
12672
|
-
var _a, _b, _c;
|
|
12673
|
-
return __generator(this, function (_d) {
|
|
12674
|
-
switch (_d.label) {
|
|
12675
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options)];
|
|
12676
|
-
case 1:
|
|
12677
|
-
localVarAxiosArgs = _d.sent();
|
|
12678
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12679
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShippingApi.postGetShippingServices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12680
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
12681
|
-
}
|
|
12682
|
-
});
|
|
12683
|
-
});
|
|
12684
|
-
},
|
|
12685
|
-
};
|
|
12686
|
-
};
|
|
12687
|
-
exports.ShippingApiFp = ShippingApiFp;
|
|
12688
|
-
/**
|
|
12689
|
-
* ShippingApi - factory interface
|
|
12690
|
-
* @export
|
|
12691
|
-
*/
|
|
12692
|
-
var ShippingApiFactory = function (configuration, basePath, axios) {
|
|
12693
|
-
var localVarFp = (0, exports.ShippingApiFp)(configuration);
|
|
12694
|
-
return {
|
|
12695
|
-
/**
|
|
12696
|
-
* Get Shipping Services
|
|
12697
|
-
* @summary Get Shipping Services
|
|
12698
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12699
|
-
* @param {*} [options] Override http request option.
|
|
12700
|
-
* @throws {RequiredError}
|
|
12701
|
-
*/
|
|
12702
|
-
postGetShippingServices: function (shippingInformationDTO, options) {
|
|
12703
|
-
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(axios, basePath); });
|
|
12704
|
-
},
|
|
12705
|
-
};
|
|
12706
|
-
};
|
|
12707
|
-
exports.ShippingApiFactory = ShippingApiFactory;
|
|
12708
|
-
/**
|
|
12709
|
-
* ShippingApi - object-oriented interface
|
|
12710
|
-
* @export
|
|
12711
|
-
* @class ShippingApi
|
|
12712
|
-
* @extends {BaseAPI}
|
|
12713
|
-
*/
|
|
12714
|
-
var ShippingApi = /** @class */ (function (_super) {
|
|
12715
|
-
__extends(ShippingApi, _super);
|
|
12716
|
-
function ShippingApi() {
|
|
12717
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
12718
|
-
}
|
|
12719
|
-
/**
|
|
12720
|
-
* Get Shipping Services
|
|
12721
|
-
* @summary Get Shipping Services
|
|
12722
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12723
|
-
* @param {*} [options] Override http request option.
|
|
12724
|
-
* @throws {RequiredError}
|
|
12725
|
-
* @memberof ShippingApi
|
|
12726
|
-
*/
|
|
12727
|
-
ShippingApi.prototype.postGetShippingServices = function (shippingInformationDTO, options) {
|
|
12728
|
-
var _this = this;
|
|
12729
|
-
return (0, exports.ShippingApiFp)(this.configuration).postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12730
|
-
};
|
|
12731
|
-
return ShippingApi;
|
|
12732
|
-
}(base_1.BaseAPI));
|
|
12733
|
-
exports.ShippingApi = ShippingApi;
|
|
12734
11796
|
/**
|
|
12735
11797
|
* StockManagementApi - axios parameter creator
|
|
12736
11798
|
* @export
|