yellowgrid-api-ts 3.1.8-dev.0 → 3.1.8
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 +197 -214
- package/README.md +7 -34
- package/api.ts +252 -1875
- 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 -1363
- 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 -41
- 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 -37
- 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.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.
|
|
88
|
-
exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator =
|
|
89
|
-
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator =
|
|
87
|
+
exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = void 0;
|
|
88
|
+
exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = void 0;
|
|
89
|
+
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = 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
|
|
@@ -2059,6 +1885,45 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
|
|
|
2059
1885
|
});
|
|
2060
1886
|
});
|
|
2061
1887
|
},
|
|
1888
|
+
/**
|
|
1889
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
1890
|
+
* @summary Convert a password to a hashed 3CX password
|
|
1891
|
+
* @param {string} password Desired 3CX web access password
|
|
1892
|
+
* @param {*} [options] Override http request option.
|
|
1893
|
+
* @throws {RequiredError}
|
|
1894
|
+
*/
|
|
1895
|
+
getGetPasswordHash: function (password_1) {
|
|
1896
|
+
var args_1 = [];
|
|
1897
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1898
|
+
args_1[_i - 1] = arguments[_i];
|
|
1899
|
+
}
|
|
1900
|
+
return __awaiter(_this, __spreadArray([password_1], args_1, true), void 0, function (password, options) {
|
|
1901
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1902
|
+
if (options === void 0) { options = {}; }
|
|
1903
|
+
return __generator(this, function (_a) {
|
|
1904
|
+
// verify required parameter 'password' is not null or undefined
|
|
1905
|
+
(0, common_1.assertParamExists)('getGetPasswordHash', 'password', password);
|
|
1906
|
+
localVarPath = "/tcx/pwd2hash";
|
|
1907
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1908
|
+
if (configuration) {
|
|
1909
|
+
baseOptions = configuration.baseOptions;
|
|
1910
|
+
}
|
|
1911
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1912
|
+
localVarHeaderParameter = {};
|
|
1913
|
+
localVarQueryParameter = {};
|
|
1914
|
+
if (password !== undefined) {
|
|
1915
|
+
localVarQueryParameter['password'] = password;
|
|
1916
|
+
}
|
|
1917
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1918
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1919
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1920
|
+
return [2 /*return*/, {
|
|
1921
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1922
|
+
options: localVarRequestOptions,
|
|
1923
|
+
}];
|
|
1924
|
+
});
|
|
1925
|
+
});
|
|
1926
|
+
},
|
|
2062
1927
|
/**
|
|
2063
1928
|
* Get Bulk 3CX Licence Details
|
|
2064
1929
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -2128,6 +1993,29 @@ var Class3CXApiFp = function (configuration) {
|
|
|
2128
1993
|
});
|
|
2129
1994
|
});
|
|
2130
1995
|
},
|
|
1996
|
+
/**
|
|
1997
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
1998
|
+
* @summary Convert a password to a hashed 3CX password
|
|
1999
|
+
* @param {string} password Desired 3CX web access password
|
|
2000
|
+
* @param {*} [options] Override http request option.
|
|
2001
|
+
* @throws {RequiredError}
|
|
2002
|
+
*/
|
|
2003
|
+
getGetPasswordHash: function (password, options) {
|
|
2004
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2005
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2006
|
+
var _a, _b, _c;
|
|
2007
|
+
return __generator(this, function (_d) {
|
|
2008
|
+
switch (_d.label) {
|
|
2009
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetPasswordHash(password, options)];
|
|
2010
|
+
case 1:
|
|
2011
|
+
localVarAxiosArgs = _d.sent();
|
|
2012
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2013
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.getGetPasswordHash']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2014
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2015
|
+
}
|
|
2016
|
+
});
|
|
2017
|
+
});
|
|
2018
|
+
},
|
|
2131
2019
|
/**
|
|
2132
2020
|
* Get Bulk 3CX Licence Details
|
|
2133
2021
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -2171,6 +2059,16 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
|
|
|
2171
2059
|
getGetLicenceDetails: function (key, options) {
|
|
2172
2060
|
return localVarFp.getGetLicenceDetails(key, options).then(function (request) { return request(axios, basePath); });
|
|
2173
2061
|
},
|
|
2062
|
+
/**
|
|
2063
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
2064
|
+
* @summary Convert a password to a hashed 3CX password
|
|
2065
|
+
* @param {string} password Desired 3CX web access password
|
|
2066
|
+
* @param {*} [options] Override http request option.
|
|
2067
|
+
* @throws {RequiredError}
|
|
2068
|
+
*/
|
|
2069
|
+
getGetPasswordHash: function (password, options) {
|
|
2070
|
+
return localVarFp.getGetPasswordHash(password, options).then(function (request) { return request(axios, basePath); });
|
|
2071
|
+
},
|
|
2174
2072
|
/**
|
|
2175
2073
|
* Get Bulk 3CX Licence Details
|
|
2176
2074
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -2207,6 +2105,18 @@ var Class3CXApi = /** @class */ (function (_super) {
|
|
|
2207
2105
|
var _this = this;
|
|
2208
2106
|
return (0, exports.Class3CXApiFp)(this.configuration).getGetLicenceDetails(key, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2209
2107
|
};
|
|
2108
|
+
/**
|
|
2109
|
+
* Generate a 3CX hashed password for 3CX installation
|
|
2110
|
+
* @summary Convert a password to a hashed 3CX password
|
|
2111
|
+
* @param {string} password Desired 3CX web access password
|
|
2112
|
+
* @param {*} [options] Override http request option.
|
|
2113
|
+
* @throws {RequiredError}
|
|
2114
|
+
* @memberof Class3CXApi
|
|
2115
|
+
*/
|
|
2116
|
+
Class3CXApi.prototype.getGetPasswordHash = function (password, options) {
|
|
2117
|
+
var _this = this;
|
|
2118
|
+
return (0, exports.Class3CXApiFp)(this.configuration).getGetPasswordHash(password, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2119
|
+
};
|
|
2210
2120
|
/**
|
|
2211
2121
|
* Get Bulk 3CX Licence Details
|
|
2212
2122
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -8144,12 +8054,11 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8144
8054
|
return {
|
|
8145
8055
|
/**
|
|
8146
8056
|
* Delete Orders
|
|
8147
|
-
* @summary Delete Orders
|
|
8148
8057
|
* @param {number} id Order ID
|
|
8149
8058
|
* @param {*} [options] Override http request option.
|
|
8150
8059
|
* @throws {RequiredError}
|
|
8151
8060
|
*/
|
|
8152
|
-
|
|
8061
|
+
deleteDeleteOrder: function (id_1) {
|
|
8153
8062
|
var args_1 = [];
|
|
8154
8063
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8155
8064
|
args_1[_i - 1] = arguments[_i];
|
|
@@ -8159,7 +8068,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8159
8068
|
if (options === void 0) { options = {}; }
|
|
8160
8069
|
return __generator(this, function (_a) {
|
|
8161
8070
|
// verify required parameter 'id' is not null or undefined
|
|
8162
|
-
(0, common_1.assertParamExists)('
|
|
8071
|
+
(0, common_1.assertParamExists)('deleteDeleteOrder', 'id', id);
|
|
8163
8072
|
localVarPath = "/orders/{id}"
|
|
8164
8073
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8165
8074
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8179,80 +8088,6 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8179
8088
|
});
|
|
8180
8089
|
});
|
|
8181
8090
|
},
|
|
8182
|
-
/**
|
|
8183
|
-
* Get Editable Order (Admin)
|
|
8184
|
-
* @summary Get Editable Order (Admin)
|
|
8185
|
-
* @param {number} id Order ID
|
|
8186
|
-
* @param {*} [options] Override http request option.
|
|
8187
|
-
* @throws {RequiredError}
|
|
8188
|
-
*/
|
|
8189
|
-
getGetAdminEditableOrder: function (id_1) {
|
|
8190
|
-
var args_1 = [];
|
|
8191
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8192
|
-
args_1[_i - 1] = arguments[_i];
|
|
8193
|
-
}
|
|
8194
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
8195
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8196
|
-
if (options === void 0) { options = {}; }
|
|
8197
|
-
return __generator(this, function (_a) {
|
|
8198
|
-
// verify required parameter 'id' is not null or undefined
|
|
8199
|
-
(0, common_1.assertParamExists)('getGetAdminEditableOrder', 'id', id);
|
|
8200
|
-
localVarPath = "/admin/orders/{id}/views/editable"
|
|
8201
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8202
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8203
|
-
if (configuration) {
|
|
8204
|
-
baseOptions = configuration.baseOptions;
|
|
8205
|
-
}
|
|
8206
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8207
|
-
localVarHeaderParameter = {};
|
|
8208
|
-
localVarQueryParameter = {};
|
|
8209
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8210
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8211
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8212
|
-
return [2 /*return*/, {
|
|
8213
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8214
|
-
options: localVarRequestOptions,
|
|
8215
|
-
}];
|
|
8216
|
-
});
|
|
8217
|
-
});
|
|
8218
|
-
},
|
|
8219
|
-
/**
|
|
8220
|
-
* Get Editable Order
|
|
8221
|
-
* @summary Get Editable Order
|
|
8222
|
-
* @param {number} id Order ID
|
|
8223
|
-
* @param {*} [options] Override http request option.
|
|
8224
|
-
* @throws {RequiredError}
|
|
8225
|
-
*/
|
|
8226
|
-
getGetEditableOrder: function (id_1) {
|
|
8227
|
-
var args_1 = [];
|
|
8228
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8229
|
-
args_1[_i - 1] = arguments[_i];
|
|
8230
|
-
}
|
|
8231
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
8232
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8233
|
-
if (options === void 0) { options = {}; }
|
|
8234
|
-
return __generator(this, function (_a) {
|
|
8235
|
-
// verify required parameter 'id' is not null or undefined
|
|
8236
|
-
(0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
|
|
8237
|
-
localVarPath = "/orders/{id}/views/editable"
|
|
8238
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8239
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8240
|
-
if (configuration) {
|
|
8241
|
-
baseOptions = configuration.baseOptions;
|
|
8242
|
-
}
|
|
8243
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8244
|
-
localVarHeaderParameter = {};
|
|
8245
|
-
localVarQueryParameter = {};
|
|
8246
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8247
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8248
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8249
|
-
return [2 /*return*/, {
|
|
8250
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8251
|
-
options: localVarRequestOptions,
|
|
8252
|
-
}];
|
|
8253
|
-
});
|
|
8254
|
-
});
|
|
8255
|
-
},
|
|
8256
8091
|
/**
|
|
8257
8092
|
* Get Orders
|
|
8258
8093
|
* @summary Get Orders
|
|
@@ -8314,248 +8149,33 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
8314
8149
|
});
|
|
8315
8150
|
});
|
|
8316
8151
|
},
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8328
|
-
args_1[_i - 2] = arguments[_i];
|
|
8329
|
-
}
|
|
8330
|
-
return __awaiter(_this, __spreadArray([readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (readonly, adminOrderRequestDTO, options) {
|
|
8331
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8332
|
-
if (options === void 0) { options = {}; }
|
|
8333
|
-
return __generator(this, function (_a) {
|
|
8334
|
-
localVarPath = "/admin/orders";
|
|
8335
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8336
|
-
if (configuration) {
|
|
8337
|
-
baseOptions = configuration.baseOptions;
|
|
8338
|
-
}
|
|
8339
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8340
|
-
localVarHeaderParameter = {};
|
|
8341
|
-
localVarQueryParameter = {};
|
|
8342
|
-
if (readonly !== undefined) {
|
|
8343
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
8344
|
-
}
|
|
8345
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8346
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8347
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8348
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8349
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8350
|
-
return [2 /*return*/, {
|
|
8351
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8352
|
-
options: localVarRequestOptions,
|
|
8353
|
-
}];
|
|
8354
|
-
});
|
|
8355
|
-
});
|
|
8356
|
-
},
|
|
8357
|
-
/**
|
|
8358
|
-
* Create An Order
|
|
8359
|
-
* @summary Create An Order
|
|
8360
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8361
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8362
|
-
* @param {*} [options] Override http request option.
|
|
8363
|
-
* @throws {RequiredError}
|
|
8364
|
-
*/
|
|
8365
|
-
postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
|
|
8366
|
-
var args_1 = [];
|
|
8367
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8368
|
-
args_1[_i - 2] = arguments[_i];
|
|
8369
|
-
}
|
|
8370
|
-
return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
|
|
8371
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8372
|
-
if (options === void 0) { options = {}; }
|
|
8373
|
-
return __generator(this, function (_a) {
|
|
8374
|
-
localVarPath = "/orders";
|
|
8375
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8376
|
-
if (configuration) {
|
|
8377
|
-
baseOptions = configuration.baseOptions;
|
|
8378
|
-
}
|
|
8379
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8380
|
-
localVarHeaderParameter = {};
|
|
8381
|
-
localVarQueryParameter = {};
|
|
8382
|
-
if (readonly !== undefined) {
|
|
8383
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
8384
|
-
}
|
|
8385
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8386
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8387
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8388
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8389
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8390
|
-
return [2 /*return*/, {
|
|
8391
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8392
|
-
options: localVarRequestOptions,
|
|
8393
|
-
}];
|
|
8394
|
-
});
|
|
8395
|
-
});
|
|
8396
|
-
},
|
|
8397
|
-
/**
|
|
8398
|
-
* Update An Order (Admin)
|
|
8399
|
-
* @summary Update An Order (Admin)
|
|
8400
|
-
* @param {number} id Order ID
|
|
8401
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8402
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8403
|
-
* @param {*} [options] Override http request option.
|
|
8404
|
-
* @throws {RequiredError}
|
|
8405
|
-
*/
|
|
8406
|
-
putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
|
|
8407
|
-
var args_1 = [];
|
|
8408
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8409
|
-
args_1[_i - 3] = arguments[_i];
|
|
8410
|
-
}
|
|
8411
|
-
return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
|
|
8412
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8413
|
-
if (options === void 0) { options = {}; }
|
|
8414
|
-
return __generator(this, function (_a) {
|
|
8415
|
-
// verify required parameter 'id' is not null or undefined
|
|
8416
|
-
(0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
|
|
8417
|
-
localVarPath = "/admin/orders/{id}"
|
|
8418
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8419
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8420
|
-
if (configuration) {
|
|
8421
|
-
baseOptions = configuration.baseOptions;
|
|
8422
|
-
}
|
|
8423
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
8424
|
-
localVarHeaderParameter = {};
|
|
8425
|
-
localVarQueryParameter = {};
|
|
8426
|
-
if (readonly !== undefined) {
|
|
8427
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
8428
|
-
}
|
|
8429
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8430
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8431
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8432
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8433
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8434
|
-
return [2 /*return*/, {
|
|
8435
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8436
|
-
options: localVarRequestOptions,
|
|
8437
|
-
}];
|
|
8438
|
-
});
|
|
8439
|
-
});
|
|
8440
|
-
},
|
|
8441
|
-
/**
|
|
8442
|
-
* Update An Order
|
|
8443
|
-
* @summary Update An Order
|
|
8444
|
-
* @param {number} id Order ID
|
|
8445
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8446
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8447
|
-
* @param {*} [options] Override http request option.
|
|
8448
|
-
* @throws {RequiredError}
|
|
8449
|
-
*/
|
|
8450
|
-
putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
|
|
8451
|
-
var args_1 = [];
|
|
8452
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8453
|
-
args_1[_i - 3] = arguments[_i];
|
|
8454
|
-
}
|
|
8455
|
-
return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
|
|
8456
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8457
|
-
if (options === void 0) { options = {}; }
|
|
8458
|
-
return __generator(this, function (_a) {
|
|
8459
|
-
// verify required parameter 'id' is not null or undefined
|
|
8460
|
-
(0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
|
|
8461
|
-
localVarPath = "/orders/{id}"
|
|
8462
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8463
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8464
|
-
if (configuration) {
|
|
8465
|
-
baseOptions = configuration.baseOptions;
|
|
8466
|
-
}
|
|
8467
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
8468
|
-
localVarHeaderParameter = {};
|
|
8469
|
-
localVarQueryParameter = {};
|
|
8470
|
-
if (readonly !== undefined) {
|
|
8471
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
8472
|
-
}
|
|
8473
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8474
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8475
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8476
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8477
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
|
|
8478
|
-
return [2 /*return*/, {
|
|
8479
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8480
|
-
options: localVarRequestOptions,
|
|
8481
|
-
}];
|
|
8482
|
-
});
|
|
8483
|
-
});
|
|
8484
|
-
},
|
|
8485
|
-
};
|
|
8486
|
-
};
|
|
8487
|
-
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
8488
|
-
/**
|
|
8489
|
-
* OrdersApi - functional programming interface
|
|
8490
|
-
* @export
|
|
8491
|
-
*/
|
|
8492
|
-
var OrdersApiFp = function (configuration) {
|
|
8493
|
-
var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
8494
|
-
return {
|
|
8152
|
+
};
|
|
8153
|
+
};
|
|
8154
|
+
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
8155
|
+
/**
|
|
8156
|
+
* OrdersApi - functional programming interface
|
|
8157
|
+
* @export
|
|
8158
|
+
*/
|
|
8159
|
+
var OrdersApiFp = function (configuration) {
|
|
8160
|
+
var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
8161
|
+
return {
|
|
8495
8162
|
/**
|
|
8496
8163
|
* Delete Orders
|
|
8497
|
-
* @summary Delete Orders
|
|
8498
|
-
* @param {number} id Order ID
|
|
8499
|
-
* @param {*} [options] Override http request option.
|
|
8500
|
-
* @throws {RequiredError}
|
|
8501
|
-
*/
|
|
8502
|
-
deleteUpdateOrder: function (id, options) {
|
|
8503
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8504
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8505
|
-
var _a, _b, _c;
|
|
8506
|
-
return __generator(this, function (_d) {
|
|
8507
|
-
switch (_d.label) {
|
|
8508
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
|
|
8509
|
-
case 1:
|
|
8510
|
-
localVarAxiosArgs = _d.sent();
|
|
8511
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8512
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8513
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8514
|
-
}
|
|
8515
|
-
});
|
|
8516
|
-
});
|
|
8517
|
-
},
|
|
8518
|
-
/**
|
|
8519
|
-
* Get Editable Order (Admin)
|
|
8520
|
-
* @summary Get Editable Order (Admin)
|
|
8521
8164
|
* @param {number} id Order ID
|
|
8522
8165
|
* @param {*} [options] Override http request option.
|
|
8523
8166
|
* @throws {RequiredError}
|
|
8524
8167
|
*/
|
|
8525
|
-
|
|
8168
|
+
deleteDeleteOrder: function (id, options) {
|
|
8526
8169
|
return __awaiter(this, void 0, void 0, function () {
|
|
8527
8170
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8528
8171
|
var _a, _b, _c;
|
|
8529
8172
|
return __generator(this, function (_d) {
|
|
8530
8173
|
switch (_d.label) {
|
|
8531
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8174
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteOrder(id, options)];
|
|
8532
8175
|
case 1:
|
|
8533
8176
|
localVarAxiosArgs = _d.sent();
|
|
8534
8177
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8535
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.
|
|
8536
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8537
|
-
}
|
|
8538
|
-
});
|
|
8539
|
-
});
|
|
8540
|
-
},
|
|
8541
|
-
/**
|
|
8542
|
-
* Get Editable Order
|
|
8543
|
-
* @summary Get Editable Order
|
|
8544
|
-
* @param {number} id Order ID
|
|
8545
|
-
* @param {*} [options] Override http request option.
|
|
8546
|
-
* @throws {RequiredError}
|
|
8547
|
-
*/
|
|
8548
|
-
getGetEditableOrder: function (id, options) {
|
|
8549
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8550
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8551
|
-
var _a, _b, _c;
|
|
8552
|
-
return __generator(this, function (_d) {
|
|
8553
|
-
switch (_d.label) {
|
|
8554
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
|
|
8555
|
-
case 1:
|
|
8556
|
-
localVarAxiosArgs = _d.sent();
|
|
8557
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8558
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8178
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteDeleteOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8559
8179
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8560
8180
|
}
|
|
8561
8181
|
});
|
|
@@ -8590,104 +8210,6 @@ var OrdersApiFp = function (configuration) {
|
|
|
8590
8210
|
});
|
|
8591
8211
|
});
|
|
8592
8212
|
},
|
|
8593
|
-
/**
|
|
8594
|
-
* Create An Order (Admin)
|
|
8595
|
-
* @summary Create An Order (Admin)
|
|
8596
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8597
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8598
|
-
* @param {*} [options] Override http request option.
|
|
8599
|
-
* @throws {RequiredError}
|
|
8600
|
-
*/
|
|
8601
|
-
postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
|
|
8602
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8603
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8604
|
-
var _a, _b, _c;
|
|
8605
|
-
return __generator(this, function (_d) {
|
|
8606
|
-
switch (_d.label) {
|
|
8607
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
|
|
8608
|
-
case 1:
|
|
8609
|
-
localVarAxiosArgs = _d.sent();
|
|
8610
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8611
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8612
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8613
|
-
}
|
|
8614
|
-
});
|
|
8615
|
-
});
|
|
8616
|
-
},
|
|
8617
|
-
/**
|
|
8618
|
-
* Create An Order
|
|
8619
|
-
* @summary Create An Order
|
|
8620
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8621
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8622
|
-
* @param {*} [options] Override http request option.
|
|
8623
|
-
* @throws {RequiredError}
|
|
8624
|
-
*/
|
|
8625
|
-
postGetOrders: function (readonly, customerOrderRequestDTO, options) {
|
|
8626
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8627
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8628
|
-
var _a, _b, _c;
|
|
8629
|
-
return __generator(this, function (_d) {
|
|
8630
|
-
switch (_d.label) {
|
|
8631
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
|
|
8632
|
-
case 1:
|
|
8633
|
-
localVarAxiosArgs = _d.sent();
|
|
8634
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8635
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8636
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8637
|
-
}
|
|
8638
|
-
});
|
|
8639
|
-
});
|
|
8640
|
-
},
|
|
8641
|
-
/**
|
|
8642
|
-
* Update An Order (Admin)
|
|
8643
|
-
* @summary Update An Order (Admin)
|
|
8644
|
-
* @param {number} id Order ID
|
|
8645
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8646
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8647
|
-
* @param {*} [options] Override http request option.
|
|
8648
|
-
* @throws {RequiredError}
|
|
8649
|
-
*/
|
|
8650
|
-
putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
|
|
8651
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8652
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8653
|
-
var _a, _b, _c;
|
|
8654
|
-
return __generator(this, function (_d) {
|
|
8655
|
-
switch (_d.label) {
|
|
8656
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
|
|
8657
|
-
case 1:
|
|
8658
|
-
localVarAxiosArgs = _d.sent();
|
|
8659
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8660
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8661
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8662
|
-
}
|
|
8663
|
-
});
|
|
8664
|
-
});
|
|
8665
|
-
},
|
|
8666
|
-
/**
|
|
8667
|
-
* Update An Order
|
|
8668
|
-
* @summary Update An Order
|
|
8669
|
-
* @param {number} id Order ID
|
|
8670
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8671
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8672
|
-
* @param {*} [options] Override http request option.
|
|
8673
|
-
* @throws {RequiredError}
|
|
8674
|
-
*/
|
|
8675
|
-
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
8676
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8677
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8678
|
-
var _a, _b, _c;
|
|
8679
|
-
return __generator(this, function (_d) {
|
|
8680
|
-
switch (_d.label) {
|
|
8681
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options)];
|
|
8682
|
-
case 1:
|
|
8683
|
-
localVarAxiosArgs = _d.sent();
|
|
8684
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8685
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8686
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8687
|
-
}
|
|
8688
|
-
});
|
|
8689
|
-
});
|
|
8690
|
-
},
|
|
8691
8213
|
};
|
|
8692
8214
|
};
|
|
8693
8215
|
exports.OrdersApiFp = OrdersApiFp;
|
|
@@ -8700,33 +8222,12 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
8700
8222
|
return {
|
|
8701
8223
|
/**
|
|
8702
8224
|
* Delete Orders
|
|
8703
|
-
* @summary Delete Orders
|
|
8704
|
-
* @param {number} id Order ID
|
|
8705
|
-
* @param {*} [options] Override http request option.
|
|
8706
|
-
* @throws {RequiredError}
|
|
8707
|
-
*/
|
|
8708
|
-
deleteUpdateOrder: function (id, options) {
|
|
8709
|
-
return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
8710
|
-
},
|
|
8711
|
-
/**
|
|
8712
|
-
* Get Editable Order (Admin)
|
|
8713
|
-
* @summary Get Editable Order (Admin)
|
|
8714
8225
|
* @param {number} id Order ID
|
|
8715
8226
|
* @param {*} [options] Override http request option.
|
|
8716
8227
|
* @throws {RequiredError}
|
|
8717
8228
|
*/
|
|
8718
|
-
|
|
8719
|
-
return localVarFp.
|
|
8720
|
-
},
|
|
8721
|
-
/**
|
|
8722
|
-
* Get Editable Order
|
|
8723
|
-
* @summary Get Editable Order
|
|
8724
|
-
* @param {number} id Order ID
|
|
8725
|
-
* @param {*} [options] Override http request option.
|
|
8726
|
-
* @throws {RequiredError}
|
|
8727
|
-
*/
|
|
8728
|
-
getGetEditableOrder: function (id, options) {
|
|
8729
|
-
return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
8229
|
+
deleteDeleteOrder: function (id, options) {
|
|
8230
|
+
return localVarFp.deleteDeleteOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
8730
8231
|
},
|
|
8731
8232
|
/**
|
|
8732
8233
|
* Get Orders
|
|
@@ -8744,52 +8245,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
8744
8245
|
getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
|
|
8745
8246
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
8746
8247
|
},
|
|
8747
|
-
/**
|
|
8748
|
-
* Create An Order (Admin)
|
|
8749
|
-
* @summary Create An Order (Admin)
|
|
8750
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8751
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8752
|
-
* @param {*} [options] Override http request option.
|
|
8753
|
-
* @throws {RequiredError}
|
|
8754
|
-
*/
|
|
8755
|
-
postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
|
|
8756
|
-
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8757
|
-
},
|
|
8758
|
-
/**
|
|
8759
|
-
* Create An Order
|
|
8760
|
-
* @summary Create An Order
|
|
8761
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8762
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8763
|
-
* @param {*} [options] Override http request option.
|
|
8764
|
-
* @throws {RequiredError}
|
|
8765
|
-
*/
|
|
8766
|
-
postGetOrders: function (readonly, customerOrderRequestDTO, options) {
|
|
8767
|
-
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8768
|
-
},
|
|
8769
|
-
/**
|
|
8770
|
-
* Update An Order (Admin)
|
|
8771
|
-
* @summary Update An Order (Admin)
|
|
8772
|
-
* @param {number} id Order ID
|
|
8773
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8774
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8775
|
-
* @param {*} [options] Override http request option.
|
|
8776
|
-
* @throws {RequiredError}
|
|
8777
|
-
*/
|
|
8778
|
-
putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
|
|
8779
|
-
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8780
|
-
},
|
|
8781
|
-
/**
|
|
8782
|
-
* Update An Order
|
|
8783
|
-
* @summary Update An Order
|
|
8784
|
-
* @param {number} id Order ID
|
|
8785
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8786
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8787
|
-
* @param {*} [options] Override http request option.
|
|
8788
|
-
* @throws {RequiredError}
|
|
8789
|
-
*/
|
|
8790
|
-
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
8791
|
-
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
8792
|
-
},
|
|
8793
8248
|
};
|
|
8794
8249
|
};
|
|
8795
8250
|
exports.OrdersApiFactory = OrdersApiFactory;
|
|
@@ -8806,39 +8261,14 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
8806
8261
|
}
|
|
8807
8262
|
/**
|
|
8808
8263
|
* Delete Orders
|
|
8809
|
-
* @summary Delete Orders
|
|
8810
|
-
* @param {number} id Order ID
|
|
8811
|
-
* @param {*} [options] Override http request option.
|
|
8812
|
-
* @throws {RequiredError}
|
|
8813
|
-
* @memberof OrdersApi
|
|
8814
|
-
*/
|
|
8815
|
-
OrdersApi.prototype.deleteUpdateOrder = function (id, options) {
|
|
8816
|
-
var _this = this;
|
|
8817
|
-
return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8818
|
-
};
|
|
8819
|
-
/**
|
|
8820
|
-
* Get Editable Order (Admin)
|
|
8821
|
-
* @summary Get Editable Order (Admin)
|
|
8822
8264
|
* @param {number} id Order ID
|
|
8823
8265
|
* @param {*} [options] Override http request option.
|
|
8824
8266
|
* @throws {RequiredError}
|
|
8825
8267
|
* @memberof OrdersApi
|
|
8826
8268
|
*/
|
|
8827
|
-
OrdersApi.prototype.
|
|
8269
|
+
OrdersApi.prototype.deleteDeleteOrder = function (id, options) {
|
|
8828
8270
|
var _this = this;
|
|
8829
|
-
return (0, exports.OrdersApiFp)(this.configuration).
|
|
8830
|
-
};
|
|
8831
|
-
/**
|
|
8832
|
-
* Get Editable Order
|
|
8833
|
-
* @summary Get Editable Order
|
|
8834
|
-
* @param {number} id Order ID
|
|
8835
|
-
* @param {*} [options] Override http request option.
|
|
8836
|
-
* @throws {RequiredError}
|
|
8837
|
-
* @memberof OrdersApi
|
|
8838
|
-
*/
|
|
8839
|
-
OrdersApi.prototype.getGetEditableOrder = function (id, options) {
|
|
8840
|
-
var _this = this;
|
|
8841
|
-
return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8271
|
+
return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8842
8272
|
};
|
|
8843
8273
|
/**
|
|
8844
8274
|
* Get Orders
|
|
@@ -8858,60 +8288,6 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
8858
8288
|
var _this = this;
|
|
8859
8289
|
return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8860
8290
|
};
|
|
8861
|
-
/**
|
|
8862
|
-
* Create An Order (Admin)
|
|
8863
|
-
* @summary Create An Order (Admin)
|
|
8864
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8865
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
8866
|
-
* @param {*} [options] Override http request option.
|
|
8867
|
-
* @throws {RequiredError}
|
|
8868
|
-
* @memberof OrdersApi
|
|
8869
|
-
*/
|
|
8870
|
-
OrdersApi.prototype.postCreateAdminOrder = function (readonly, adminOrderRequestDTO, options) {
|
|
8871
|
-
var _this = this;
|
|
8872
|
-
return (0, exports.OrdersApiFp)(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8873
|
-
};
|
|
8874
|
-
/**
|
|
8875
|
-
* Create An Order
|
|
8876
|
-
* @summary Create An Order
|
|
8877
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8878
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8879
|
-
* @param {*} [options] Override http request option.
|
|
8880
|
-
* @throws {RequiredError}
|
|
8881
|
-
* @memberof OrdersApi
|
|
8882
|
-
*/
|
|
8883
|
-
OrdersApi.prototype.postGetOrders = function (readonly, customerOrderRequestDTO, options) {
|
|
8884
|
-
var _this = this;
|
|
8885
|
-
return (0, exports.OrdersApiFp)(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8886
|
-
};
|
|
8887
|
-
/**
|
|
8888
|
-
* Update An Order (Admin)
|
|
8889
|
-
* @summary Update An Order (Admin)
|
|
8890
|
-
* @param {number} id Order ID
|
|
8891
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8892
|
-
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
8893
|
-
* @param {*} [options] Override http request option.
|
|
8894
|
-
* @throws {RequiredError}
|
|
8895
|
-
* @memberof OrdersApi
|
|
8896
|
-
*/
|
|
8897
|
-
OrdersApi.prototype.putUpdateAdminOrder = function (id, readonly, adminOrderRequestDTO, options) {
|
|
8898
|
-
var _this = this;
|
|
8899
|
-
return (0, exports.OrdersApiFp)(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8900
|
-
};
|
|
8901
|
-
/**
|
|
8902
|
-
* Update An Order
|
|
8903
|
-
* @summary Update An Order
|
|
8904
|
-
* @param {number} id Order ID
|
|
8905
|
-
* @param {boolean} [readonly] Readonly Order
|
|
8906
|
-
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
8907
|
-
* @param {*} [options] Override http request option.
|
|
8908
|
-
* @throws {RequiredError}
|
|
8909
|
-
* @memberof OrdersApi
|
|
8910
|
-
*/
|
|
8911
|
-
OrdersApi.prototype.putUpdateOrder = function (id, readonly, customerOrderRequestDTO, options) {
|
|
8912
|
-
var _this = this;
|
|
8913
|
-
return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8914
|
-
};
|
|
8915
8291
|
return OrdersApi;
|
|
8916
8292
|
}(base_1.BaseAPI));
|
|
8917
8293
|
exports.OrdersApi = OrdersApi;
|
|
@@ -9339,52 +8715,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9339
8715
|
});
|
|
9340
8716
|
},
|
|
9341
8717
|
/**
|
|
9342
|
-
* Get
|
|
9343
|
-
* @summary Get
|
|
9344
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
8718
|
+
* Get Customer Price Lists
|
|
8719
|
+
* @summary Get Customer Price Lists
|
|
9345
8720
|
* @param {*} [options] Override http request option.
|
|
9346
|
-
* @deprecated
|
|
9347
8721
|
* @throws {RequiredError}
|
|
9348
8722
|
*/
|
|
9349
|
-
|
|
9350
|
-
var args_1 = [];
|
|
9351
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9352
|
-
args_1[_i - 1] = arguments[_i];
|
|
9353
|
-
}
|
|
9354
|
-
return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
|
|
9355
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9356
|
-
if (options === void 0) { options = {}; }
|
|
9357
|
-
return __generator(this, function (_a) {
|
|
9358
|
-
// verify required parameter 'format' is not null or undefined
|
|
9359
|
-
(0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
|
|
9360
|
-
localVarPath = "/products/stock/legacy";
|
|
9361
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9362
|
-
if (configuration) {
|
|
9363
|
-
baseOptions = configuration.baseOptions;
|
|
9364
|
-
}
|
|
9365
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9366
|
-
localVarHeaderParameter = {};
|
|
9367
|
-
localVarQueryParameter = {};
|
|
9368
|
-
if (format !== undefined) {
|
|
9369
|
-
localVarQueryParameter['format'] = format;
|
|
9370
|
-
}
|
|
9371
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9372
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9373
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9374
|
-
return [2 /*return*/, {
|
|
9375
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9376
|
-
options: localVarRequestOptions,
|
|
9377
|
-
}];
|
|
9378
|
-
});
|
|
9379
|
-
});
|
|
9380
|
-
},
|
|
9381
|
-
/**
|
|
9382
|
-
* Get Products
|
|
9383
|
-
* @summary Get Products
|
|
9384
|
-
* @param {*} [options] Override http request option.
|
|
9385
|
-
* @throws {RequiredError}
|
|
9386
|
-
*/
|
|
9387
|
-
getGetProducts: function () {
|
|
8723
|
+
getGetCustomerPriceLists: function () {
|
|
9388
8724
|
var args_1 = [];
|
|
9389
8725
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9390
8726
|
args_1[_i] = arguments[_i];
|
|
@@ -9393,7 +8729,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9393
8729
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9394
8730
|
if (options === void 0) { options = {}; }
|
|
9395
8731
|
return __generator(this, function (_a) {
|
|
9396
|
-
localVarPath = "/products";
|
|
8732
|
+
localVarPath = "/products/prices/lists";
|
|
9397
8733
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9398
8734
|
if (configuration) {
|
|
9399
8735
|
baseOptions = configuration.baseOptions;
|
|
@@ -9414,52 +8750,23 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9414
8750
|
/**
|
|
9415
8751
|
* Get Current Stock & Pricing
|
|
9416
8752
|
* @summary Get Current Stock & Pricing
|
|
8753
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
9417
8754
|
* @param {*} [options] Override http request option.
|
|
8755
|
+
* @deprecated
|
|
9418
8756
|
* @throws {RequiredError}
|
|
9419
8757
|
*/
|
|
9420
|
-
|
|
9421
|
-
var args_1 = [];
|
|
9422
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9423
|
-
args_1[_i] = arguments[_i];
|
|
9424
|
-
}
|
|
9425
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9426
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9427
|
-
if (options === void 0) { options = {}; }
|
|
9428
|
-
return __generator(this, function (_a) {
|
|
9429
|
-
localVarPath = "/products/stock";
|
|
9430
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9431
|
-
if (configuration) {
|
|
9432
|
-
baseOptions = configuration.baseOptions;
|
|
9433
|
-
}
|
|
9434
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9435
|
-
localVarHeaderParameter = {};
|
|
9436
|
-
localVarQueryParameter = {};
|
|
9437
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9438
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9439
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9440
|
-
return [2 /*return*/, {
|
|
9441
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9442
|
-
options: localVarRequestOptions,
|
|
9443
|
-
}];
|
|
9444
|
-
});
|
|
9445
|
-
});
|
|
9446
|
-
},
|
|
9447
|
-
/**
|
|
9448
|
-
* Get 3CX Templates
|
|
9449
|
-
* @summary Get 3CX Templates
|
|
9450
|
-
* @param {*} [options] Override http request option.
|
|
9451
|
-
* @throws {RequiredError}
|
|
9452
|
-
*/
|
|
9453
|
-
getGetTcxTemplates: function () {
|
|
8758
|
+
getGetLegacyStockList: function (format_1) {
|
|
9454
8759
|
var args_1 = [];
|
|
9455
|
-
for (var _i =
|
|
9456
|
-
args_1[_i] = arguments[_i];
|
|
8760
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8761
|
+
args_1[_i - 1] = arguments[_i];
|
|
9457
8762
|
}
|
|
9458
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
8763
|
+
return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
|
|
9459
8764
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9460
8765
|
if (options === void 0) { options = {}; }
|
|
9461
8766
|
return __generator(this, function (_a) {
|
|
9462
|
-
|
|
8767
|
+
// verify required parameter 'format' is not null or undefined
|
|
8768
|
+
(0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
|
|
8769
|
+
localVarPath = "/products/stock/legacy";
|
|
9463
8770
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9464
8771
|
if (configuration) {
|
|
9465
8772
|
baseOptions = configuration.baseOptions;
|
|
@@ -9467,6 +8774,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9467
8774
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9468
8775
|
localVarHeaderParameter = {};
|
|
9469
8776
|
localVarQueryParameter = {};
|
|
8777
|
+
if (format !== undefined) {
|
|
8778
|
+
localVarQueryParameter['format'] = format;
|
|
8779
|
+
}
|
|
9470
8780
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9471
8781
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9472
8782
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -9478,15 +8788,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9478
8788
|
});
|
|
9479
8789
|
},
|
|
9480
8790
|
/**
|
|
9481
|
-
*
|
|
9482
|
-
* @summary
|
|
8791
|
+
* Get Products
|
|
8792
|
+
* @summary Get Products
|
|
9483
8793
|
* @param {number} [pageSize] Number Of Results
|
|
9484
8794
|
* @param {number} [page] Page Number
|
|
9485
8795
|
* @param {string} [search] Search
|
|
9486
8796
|
* @param {*} [options] Override http request option.
|
|
9487
8797
|
* @throws {RequiredError}
|
|
9488
8798
|
*/
|
|
9489
|
-
|
|
8799
|
+
getGetProducts: function (pageSize_1, page_1, search_1) {
|
|
9490
8800
|
var args_1 = [];
|
|
9491
8801
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
9492
8802
|
args_1[_i - 3] = arguments[_i];
|
|
@@ -9523,40 +8833,31 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9523
8833
|
});
|
|
9524
8834
|
},
|
|
9525
8835
|
/**
|
|
9526
|
-
* Get
|
|
9527
|
-
* @summary Get
|
|
9528
|
-
* @param {string} sku Product SKU
|
|
9529
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8836
|
+
* Get Current Stock & Pricing
|
|
8837
|
+
* @summary Get Current Stock & Pricing
|
|
9530
8838
|
* @param {*} [options] Override http request option.
|
|
9531
8839
|
* @throws {RequiredError}
|
|
9532
8840
|
*/
|
|
9533
|
-
|
|
8841
|
+
getGetStockList: function () {
|
|
9534
8842
|
var args_1 = [];
|
|
9535
|
-
for (var _i =
|
|
9536
|
-
args_1[_i
|
|
8843
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8844
|
+
args_1[_i] = arguments[_i];
|
|
9537
8845
|
}
|
|
9538
|
-
return __awaiter(_this, __spreadArray([
|
|
8846
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9539
8847
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9540
8848
|
if (options === void 0) { options = {}; }
|
|
9541
8849
|
return __generator(this, function (_a) {
|
|
9542
|
-
|
|
9543
|
-
(0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
|
|
9544
|
-
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
9545
|
-
(0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
9546
|
-
localVarPath = "/products/{sku}"
|
|
9547
|
-
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8850
|
+
localVarPath = "/products/stock";
|
|
9548
8851
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9549
8852
|
if (configuration) {
|
|
9550
8853
|
baseOptions = configuration.baseOptions;
|
|
9551
8854
|
}
|
|
9552
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
8855
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9553
8856
|
localVarHeaderParameter = {};
|
|
9554
8857
|
localVarQueryParameter = {};
|
|
9555
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9556
8858
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9557
8859
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9558
8860
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9559
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
9560
8861
|
return [2 /*return*/, {
|
|
9561
8862
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9562
8863
|
options: localVarRequestOptions,
|
|
@@ -9565,46 +8866,31 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
9565
8866
|
});
|
|
9566
8867
|
},
|
|
9567
8868
|
/**
|
|
9568
|
-
* Get
|
|
9569
|
-
* @summary Get
|
|
9570
|
-
* @param {number} customerId Customer ID
|
|
9571
|
-
* @param {string} sku Product SKU
|
|
9572
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8869
|
+
* Get 3CX Templates
|
|
8870
|
+
* @summary Get 3CX Templates
|
|
9573
8871
|
* @param {*} [options] Override http request option.
|
|
9574
8872
|
* @throws {RequiredError}
|
|
9575
8873
|
*/
|
|
9576
|
-
|
|
8874
|
+
getGetTcxTemplates: function () {
|
|
9577
8875
|
var args_1 = [];
|
|
9578
|
-
for (var _i =
|
|
9579
|
-
args_1[_i
|
|
8876
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8877
|
+
args_1[_i] = arguments[_i];
|
|
9580
8878
|
}
|
|
9581
|
-
return __awaiter(_this, __spreadArray([
|
|
8879
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
9582
8880
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9583
8881
|
if (options === void 0) { options = {}; }
|
|
9584
8882
|
return __generator(this, function (_a) {
|
|
9585
|
-
|
|
9586
|
-
(0, common_1.assertParamExists)('postGetProductForCustomer', 'customerId', customerId);
|
|
9587
|
-
// verify required parameter 'sku' is not null or undefined
|
|
9588
|
-
(0, common_1.assertParamExists)('postGetProductForCustomer', 'sku', sku);
|
|
9589
|
-
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
9590
|
-
(0, common_1.assertParamExists)('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
9591
|
-
localVarPath = "/admin/products/{sku}"
|
|
9592
|
-
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8883
|
+
localVarPath = "/products/attributes/tcx/templates";
|
|
9593
8884
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9594
8885
|
if (configuration) {
|
|
9595
8886
|
baseOptions = configuration.baseOptions;
|
|
9596
8887
|
}
|
|
9597
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
8888
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9598
8889
|
localVarHeaderParameter = {};
|
|
9599
8890
|
localVarQueryParameter = {};
|
|
9600
|
-
if (customerId !== undefined) {
|
|
9601
|
-
localVarQueryParameter['customerId'] = customerId;
|
|
9602
|
-
}
|
|
9603
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9604
8891
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9605
8892
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9606
8893
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9607
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
9608
8894
|
return [2 /*return*/, {
|
|
9609
8895
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9610
8896
|
options: localVarRequestOptions,
|
|
@@ -9645,46 +8931,22 @@ var ProductsApiFp = function (configuration) {
|
|
|
9645
8931
|
});
|
|
9646
8932
|
},
|
|
9647
8933
|
/**
|
|
9648
|
-
* Get
|
|
9649
|
-
* @summary Get
|
|
9650
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
9651
|
-
* @param {*} [options] Override http request option.
|
|
9652
|
-
* @deprecated
|
|
9653
|
-
* @throws {RequiredError}
|
|
9654
|
-
*/
|
|
9655
|
-
getGetLegacyStockList: function (format, options) {
|
|
9656
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
9657
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9658
|
-
var _a, _b, _c;
|
|
9659
|
-
return __generator(this, function (_d) {
|
|
9660
|
-
switch (_d.label) {
|
|
9661
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
|
|
9662
|
-
case 1:
|
|
9663
|
-
localVarAxiosArgs = _d.sent();
|
|
9664
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9665
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9666
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9667
|
-
}
|
|
9668
|
-
});
|
|
9669
|
-
});
|
|
9670
|
-
},
|
|
9671
|
-
/**
|
|
9672
|
-
* Get Products
|
|
9673
|
-
* @summary Get Products
|
|
8934
|
+
* Get Customer Price Lists
|
|
8935
|
+
* @summary Get Customer Price Lists
|
|
9674
8936
|
* @param {*} [options] Override http request option.
|
|
9675
8937
|
* @throws {RequiredError}
|
|
9676
8938
|
*/
|
|
9677
|
-
|
|
8939
|
+
getGetCustomerPriceLists: function (options) {
|
|
9678
8940
|
return __awaiter(this, void 0, void 0, function () {
|
|
9679
8941
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9680
8942
|
var _a, _b, _c;
|
|
9681
8943
|
return __generator(this, function (_d) {
|
|
9682
8944
|
switch (_d.label) {
|
|
9683
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8945
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerPriceLists(options)];
|
|
9684
8946
|
case 1:
|
|
9685
8947
|
localVarAxiosArgs = _d.sent();
|
|
9686
8948
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9687
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8949
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetCustomerPriceLists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9688
8950
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9689
8951
|
}
|
|
9690
8952
|
});
|
|
@@ -9693,116 +8955,91 @@ var ProductsApiFp = function (configuration) {
|
|
|
9693
8955
|
/**
|
|
9694
8956
|
* Get Current Stock & Pricing
|
|
9695
8957
|
* @summary Get Current Stock & Pricing
|
|
8958
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
9696
8959
|
* @param {*} [options] Override http request option.
|
|
8960
|
+
* @deprecated
|
|
9697
8961
|
* @throws {RequiredError}
|
|
9698
8962
|
*/
|
|
9699
|
-
|
|
9700
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
9701
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9702
|
-
var _a, _b, _c;
|
|
9703
|
-
return __generator(this, function (_d) {
|
|
9704
|
-
switch (_d.label) {
|
|
9705
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
|
|
9706
|
-
case 1:
|
|
9707
|
-
localVarAxiosArgs = _d.sent();
|
|
9708
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9709
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9710
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9711
|
-
}
|
|
9712
|
-
});
|
|
9713
|
-
});
|
|
9714
|
-
},
|
|
9715
|
-
/**
|
|
9716
|
-
* Get 3CX Templates
|
|
9717
|
-
* @summary Get 3CX Templates
|
|
9718
|
-
* @param {*} [options] Override http request option.
|
|
9719
|
-
* @throws {RequiredError}
|
|
9720
|
-
*/
|
|
9721
|
-
getGetTcxTemplates: function (options) {
|
|
8963
|
+
getGetLegacyStockList: function (format, options) {
|
|
9722
8964
|
return __awaiter(this, void 0, void 0, function () {
|
|
9723
8965
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9724
8966
|
var _a, _b, _c;
|
|
9725
8967
|
return __generator(this, function (_d) {
|
|
9726
8968
|
switch (_d.label) {
|
|
9727
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8969
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
|
|
9728
8970
|
case 1:
|
|
9729
8971
|
localVarAxiosArgs = _d.sent();
|
|
9730
8972
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9731
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8973
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9732
8974
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9733
8975
|
}
|
|
9734
8976
|
});
|
|
9735
8977
|
});
|
|
9736
8978
|
},
|
|
9737
8979
|
/**
|
|
9738
|
-
*
|
|
9739
|
-
* @summary
|
|
8980
|
+
* Get Products
|
|
8981
|
+
* @summary Get Products
|
|
9740
8982
|
* @param {number} [pageSize] Number Of Results
|
|
9741
8983
|
* @param {number} [page] Page Number
|
|
9742
8984
|
* @param {string} [search] Search
|
|
9743
8985
|
* @param {*} [options] Override http request option.
|
|
9744
8986
|
* @throws {RequiredError}
|
|
9745
8987
|
*/
|
|
9746
|
-
|
|
8988
|
+
getGetProducts: function (pageSize, page, search, options) {
|
|
9747
8989
|
return __awaiter(this, void 0, void 0, function () {
|
|
9748
8990
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9749
8991
|
var _a, _b, _c;
|
|
9750
8992
|
return __generator(this, function (_d) {
|
|
9751
8993
|
switch (_d.label) {
|
|
9752
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8994
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(pageSize, page, search, options)];
|
|
9753
8995
|
case 1:
|
|
9754
8996
|
localVarAxiosArgs = _d.sent();
|
|
9755
8997
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9756
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8998
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9757
8999
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9758
9000
|
}
|
|
9759
9001
|
});
|
|
9760
9002
|
});
|
|
9761
9003
|
},
|
|
9762
9004
|
/**
|
|
9763
|
-
* Get
|
|
9764
|
-
* @summary Get
|
|
9765
|
-
* @param {string} sku Product SKU
|
|
9766
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9005
|
+
* Get Current Stock & Pricing
|
|
9006
|
+
* @summary Get Current Stock & Pricing
|
|
9767
9007
|
* @param {*} [options] Override http request option.
|
|
9768
9008
|
* @throws {RequiredError}
|
|
9769
9009
|
*/
|
|
9770
|
-
|
|
9010
|
+
getGetStockList: function (options) {
|
|
9771
9011
|
return __awaiter(this, void 0, void 0, function () {
|
|
9772
9012
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9773
9013
|
var _a, _b, _c;
|
|
9774
9014
|
return __generator(this, function (_d) {
|
|
9775
9015
|
switch (_d.label) {
|
|
9776
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9016
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
|
|
9777
9017
|
case 1:
|
|
9778
9018
|
localVarAxiosArgs = _d.sent();
|
|
9779
9019
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9780
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9020
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9781
9021
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9782
9022
|
}
|
|
9783
9023
|
});
|
|
9784
9024
|
});
|
|
9785
9025
|
},
|
|
9786
9026
|
/**
|
|
9787
|
-
* Get
|
|
9788
|
-
* @summary Get
|
|
9789
|
-
* @param {number} customerId Customer ID
|
|
9790
|
-
* @param {string} sku Product SKU
|
|
9791
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9027
|
+
* Get 3CX Templates
|
|
9028
|
+
* @summary Get 3CX Templates
|
|
9792
9029
|
* @param {*} [options] Override http request option.
|
|
9793
9030
|
* @throws {RequiredError}
|
|
9794
9031
|
*/
|
|
9795
|
-
|
|
9032
|
+
getGetTcxTemplates: function (options) {
|
|
9796
9033
|
return __awaiter(this, void 0, void 0, function () {
|
|
9797
9034
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9798
9035
|
var _a, _b, _c;
|
|
9799
9036
|
return __generator(this, function (_d) {
|
|
9800
9037
|
switch (_d.label) {
|
|
9801
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
9038
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
|
|
9802
9039
|
case 1:
|
|
9803
9040
|
localVarAxiosArgs = _d.sent();
|
|
9804
9041
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9805
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
9042
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9806
9043
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
9807
9044
|
}
|
|
9808
9045
|
});
|
|
@@ -9827,6 +9064,15 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
9827
9064
|
getGetAttributeSets: function (options) {
|
|
9828
9065
|
return localVarFp.getGetAttributeSets(options).then(function (request) { return request(axios, basePath); });
|
|
9829
9066
|
},
|
|
9067
|
+
/**
|
|
9068
|
+
* Get Customer Price Lists
|
|
9069
|
+
* @summary Get Customer Price Lists
|
|
9070
|
+
* @param {*} [options] Override http request option.
|
|
9071
|
+
* @throws {RequiredError}
|
|
9072
|
+
*/
|
|
9073
|
+
getGetCustomerPriceLists: function (options) {
|
|
9074
|
+
return localVarFp.getGetCustomerPriceLists(options).then(function (request) { return request(axios, basePath); });
|
|
9075
|
+
},
|
|
9830
9076
|
/**
|
|
9831
9077
|
* Get Current Stock & Pricing
|
|
9832
9078
|
* @summary Get Current Stock & Pricing
|
|
@@ -9841,11 +9087,14 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
9841
9087
|
/**
|
|
9842
9088
|
* Get Products
|
|
9843
9089
|
* @summary Get Products
|
|
9090
|
+
* @param {number} [pageSize] Number Of Results
|
|
9091
|
+
* @param {number} [page] Page Number
|
|
9092
|
+
* @param {string} [search] Search
|
|
9844
9093
|
* @param {*} [options] Override http request option.
|
|
9845
9094
|
* @throws {RequiredError}
|
|
9846
9095
|
*/
|
|
9847
|
-
getGetProducts: function (options) {
|
|
9848
|
-
return localVarFp.getGetProducts(options).then(function (request) { return request(axios, basePath); });
|
|
9096
|
+
getGetProducts: function (pageSize, page, search, options) {
|
|
9097
|
+
return localVarFp.getGetProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
9849
9098
|
},
|
|
9850
9099
|
/**
|
|
9851
9100
|
* Get Current Stock & Pricing
|
|
@@ -9865,41 +9114,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
9865
9114
|
getGetTcxTemplates: function (options) {
|
|
9866
9115
|
return localVarFp.getGetTcxTemplates(options).then(function (request) { return request(axios, basePath); });
|
|
9867
9116
|
},
|
|
9868
|
-
/**
|
|
9869
|
-
* Search Products
|
|
9870
|
-
* @summary Search Products
|
|
9871
|
-
* @param {number} [pageSize] Number Of Results
|
|
9872
|
-
* @param {number} [page] Page Number
|
|
9873
|
-
* @param {string} [search] Search
|
|
9874
|
-
* @param {*} [options] Override http request option.
|
|
9875
|
-
* @throws {RequiredError}
|
|
9876
|
-
*/
|
|
9877
|
-
getSearchProducts: function (pageSize, page, search, options) {
|
|
9878
|
-
return localVarFp.getSearchProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
9879
|
-
},
|
|
9880
|
-
/**
|
|
9881
|
-
* Get Product
|
|
9882
|
-
* @summary Get Product
|
|
9883
|
-
* @param {string} sku Product SKU
|
|
9884
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9885
|
-
* @param {*} [options] Override http request option.
|
|
9886
|
-
* @throws {RequiredError}
|
|
9887
|
-
*/
|
|
9888
|
-
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
9889
|
-
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
9890
|
-
},
|
|
9891
|
-
/**
|
|
9892
|
-
* Get Product For Customer
|
|
9893
|
-
* @summary Get Product For Customer
|
|
9894
|
-
* @param {number} customerId Customer ID
|
|
9895
|
-
* @param {string} sku Product SKU
|
|
9896
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9897
|
-
* @param {*} [options] Override http request option.
|
|
9898
|
-
* @throws {RequiredError}
|
|
9899
|
-
*/
|
|
9900
|
-
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
9901
|
-
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
9902
|
-
},
|
|
9903
9117
|
};
|
|
9904
9118
|
};
|
|
9905
9119
|
exports.ProductsApiFactory = ProductsApiFactory;
|
|
@@ -9925,6 +9139,17 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9925
9139
|
var _this = this;
|
|
9926
9140
|
return (0, exports.ProductsApiFp)(this.configuration).getGetAttributeSets(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9927
9141
|
};
|
|
9142
|
+
/**
|
|
9143
|
+
* Get Customer Price Lists
|
|
9144
|
+
* @summary Get Customer Price Lists
|
|
9145
|
+
* @param {*} [options] Override http request option.
|
|
9146
|
+
* @throws {RequiredError}
|
|
9147
|
+
* @memberof ProductsApi
|
|
9148
|
+
*/
|
|
9149
|
+
ProductsApi.prototype.getGetCustomerPriceLists = function (options) {
|
|
9150
|
+
var _this = this;
|
|
9151
|
+
return (0, exports.ProductsApiFp)(this.configuration).getGetCustomerPriceLists(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9152
|
+
};
|
|
9928
9153
|
/**
|
|
9929
9154
|
* Get Current Stock & Pricing
|
|
9930
9155
|
* @summary Get Current Stock & Pricing
|
|
@@ -9941,13 +9166,16 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9941
9166
|
/**
|
|
9942
9167
|
* Get Products
|
|
9943
9168
|
* @summary Get Products
|
|
9169
|
+
* @param {number} [pageSize] Number Of Results
|
|
9170
|
+
* @param {number} [page] Page Number
|
|
9171
|
+
* @param {string} [search] Search
|
|
9944
9172
|
* @param {*} [options] Override http request option.
|
|
9945
9173
|
* @throws {RequiredError}
|
|
9946
9174
|
* @memberof ProductsApi
|
|
9947
9175
|
*/
|
|
9948
|
-
ProductsApi.prototype.getGetProducts = function (options) {
|
|
9176
|
+
ProductsApi.prototype.getGetProducts = function (pageSize, page, search, options) {
|
|
9949
9177
|
var _this = this;
|
|
9950
|
-
return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9178
|
+
return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9951
9179
|
};
|
|
9952
9180
|
/**
|
|
9953
9181
|
* Get Current Stock & Pricing
|
|
@@ -9971,47 +9199,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9971
9199
|
var _this = this;
|
|
9972
9200
|
return (0, exports.ProductsApiFp)(this.configuration).getGetTcxTemplates(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9973
9201
|
};
|
|
9974
|
-
/**
|
|
9975
|
-
* Search Products
|
|
9976
|
-
* @summary Search Products
|
|
9977
|
-
* @param {number} [pageSize] Number Of Results
|
|
9978
|
-
* @param {number} [page] Page Number
|
|
9979
|
-
* @param {string} [search] Search
|
|
9980
|
-
* @param {*} [options] Override http request option.
|
|
9981
|
-
* @throws {RequiredError}
|
|
9982
|
-
* @memberof ProductsApi
|
|
9983
|
-
*/
|
|
9984
|
-
ProductsApi.prototype.getSearchProducts = function (pageSize, page, search, options) {
|
|
9985
|
-
var _this = this;
|
|
9986
|
-
return (0, exports.ProductsApiFp)(this.configuration).getSearchProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9987
|
-
};
|
|
9988
|
-
/**
|
|
9989
|
-
* Get Product
|
|
9990
|
-
* @summary Get Product
|
|
9991
|
-
* @param {string} sku Product SKU
|
|
9992
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9993
|
-
* @param {*} [options] Override http request option.
|
|
9994
|
-
* @throws {RequiredError}
|
|
9995
|
-
* @memberof ProductsApi
|
|
9996
|
-
*/
|
|
9997
|
-
ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
|
|
9998
|
-
var _this = this;
|
|
9999
|
-
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10000
|
-
};
|
|
10001
|
-
/**
|
|
10002
|
-
* Get Product For Customer
|
|
10003
|
-
* @summary Get Product For Customer
|
|
10004
|
-
* @param {number} customerId Customer ID
|
|
10005
|
-
* @param {string} sku Product SKU
|
|
10006
|
-
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
10007
|
-
* @param {*} [options] Override http request option.
|
|
10008
|
-
* @throws {RequiredError}
|
|
10009
|
-
* @memberof ProductsApi
|
|
10010
|
-
*/
|
|
10011
|
-
ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
10012
|
-
var _this = this;
|
|
10013
|
-
return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10014
|
-
};
|
|
10015
9202
|
return ProductsApi;
|
|
10016
9203
|
}(base_1.BaseAPI));
|
|
10017
9204
|
exports.ProductsApi = ProductsApi;
|
|
@@ -12737,131 +11924,6 @@ var SMSApi = /** @class */ (function (_super) {
|
|
|
12737
11924
|
return SMSApi;
|
|
12738
11925
|
}(base_1.BaseAPI));
|
|
12739
11926
|
exports.SMSApi = SMSApi;
|
|
12740
|
-
/**
|
|
12741
|
-
* ShippingApi - axios parameter creator
|
|
12742
|
-
* @export
|
|
12743
|
-
*/
|
|
12744
|
-
var ShippingApiAxiosParamCreator = function (configuration) {
|
|
12745
|
-
var _this = this;
|
|
12746
|
-
return {
|
|
12747
|
-
/**
|
|
12748
|
-
* Get Shipping Services
|
|
12749
|
-
* @summary Get Shipping Services
|
|
12750
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12751
|
-
* @param {*} [options] Override http request option.
|
|
12752
|
-
* @throws {RequiredError}
|
|
12753
|
-
*/
|
|
12754
|
-
postGetShippingServices: function (shippingInformationDTO_1) {
|
|
12755
|
-
var args_1 = [];
|
|
12756
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
12757
|
-
args_1[_i - 1] = arguments[_i];
|
|
12758
|
-
}
|
|
12759
|
-
return __awaiter(_this, __spreadArray([shippingInformationDTO_1], args_1, true), void 0, function (shippingInformationDTO, options) {
|
|
12760
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12761
|
-
if (options === void 0) { options = {}; }
|
|
12762
|
-
return __generator(this, function (_a) {
|
|
12763
|
-
localVarPath = "/shipping/services";
|
|
12764
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12765
|
-
if (configuration) {
|
|
12766
|
-
baseOptions = configuration.baseOptions;
|
|
12767
|
-
}
|
|
12768
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
12769
|
-
localVarHeaderParameter = {};
|
|
12770
|
-
localVarQueryParameter = {};
|
|
12771
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12772
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12773
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12774
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12775
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingInformationDTO, localVarRequestOptions, configuration);
|
|
12776
|
-
return [2 /*return*/, {
|
|
12777
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12778
|
-
options: localVarRequestOptions,
|
|
12779
|
-
}];
|
|
12780
|
-
});
|
|
12781
|
-
});
|
|
12782
|
-
},
|
|
12783
|
-
};
|
|
12784
|
-
};
|
|
12785
|
-
exports.ShippingApiAxiosParamCreator = ShippingApiAxiosParamCreator;
|
|
12786
|
-
/**
|
|
12787
|
-
* ShippingApi - functional programming interface
|
|
12788
|
-
* @export
|
|
12789
|
-
*/
|
|
12790
|
-
var ShippingApiFp = function (configuration) {
|
|
12791
|
-
var localVarAxiosParamCreator = (0, exports.ShippingApiAxiosParamCreator)(configuration);
|
|
12792
|
-
return {
|
|
12793
|
-
/**
|
|
12794
|
-
* Get Shipping Services
|
|
12795
|
-
* @summary Get Shipping Services
|
|
12796
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12797
|
-
* @param {*} [options] Override http request option.
|
|
12798
|
-
* @throws {RequiredError}
|
|
12799
|
-
*/
|
|
12800
|
-
postGetShippingServices: function (shippingInformationDTO, options) {
|
|
12801
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
12802
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
12803
|
-
var _a, _b, _c;
|
|
12804
|
-
return __generator(this, function (_d) {
|
|
12805
|
-
switch (_d.label) {
|
|
12806
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options)];
|
|
12807
|
-
case 1:
|
|
12808
|
-
localVarAxiosArgs = _d.sent();
|
|
12809
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12810
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShippingApi.postGetShippingServices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12811
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
12812
|
-
}
|
|
12813
|
-
});
|
|
12814
|
-
});
|
|
12815
|
-
},
|
|
12816
|
-
};
|
|
12817
|
-
};
|
|
12818
|
-
exports.ShippingApiFp = ShippingApiFp;
|
|
12819
|
-
/**
|
|
12820
|
-
* ShippingApi - factory interface
|
|
12821
|
-
* @export
|
|
12822
|
-
*/
|
|
12823
|
-
var ShippingApiFactory = function (configuration, basePath, axios) {
|
|
12824
|
-
var localVarFp = (0, exports.ShippingApiFp)(configuration);
|
|
12825
|
-
return {
|
|
12826
|
-
/**
|
|
12827
|
-
* Get Shipping Services
|
|
12828
|
-
* @summary Get Shipping Services
|
|
12829
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12830
|
-
* @param {*} [options] Override http request option.
|
|
12831
|
-
* @throws {RequiredError}
|
|
12832
|
-
*/
|
|
12833
|
-
postGetShippingServices: function (shippingInformationDTO, options) {
|
|
12834
|
-
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(axios, basePath); });
|
|
12835
|
-
},
|
|
12836
|
-
};
|
|
12837
|
-
};
|
|
12838
|
-
exports.ShippingApiFactory = ShippingApiFactory;
|
|
12839
|
-
/**
|
|
12840
|
-
* ShippingApi - object-oriented interface
|
|
12841
|
-
* @export
|
|
12842
|
-
* @class ShippingApi
|
|
12843
|
-
* @extends {BaseAPI}
|
|
12844
|
-
*/
|
|
12845
|
-
var ShippingApi = /** @class */ (function (_super) {
|
|
12846
|
-
__extends(ShippingApi, _super);
|
|
12847
|
-
function ShippingApi() {
|
|
12848
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
12849
|
-
}
|
|
12850
|
-
/**
|
|
12851
|
-
* Get Shipping Services
|
|
12852
|
-
* @summary Get Shipping Services
|
|
12853
|
-
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12854
|
-
* @param {*} [options] Override http request option.
|
|
12855
|
-
* @throws {RequiredError}
|
|
12856
|
-
* @memberof ShippingApi
|
|
12857
|
-
*/
|
|
12858
|
-
ShippingApi.prototype.postGetShippingServices = function (shippingInformationDTO, options) {
|
|
12859
|
-
var _this = this;
|
|
12860
|
-
return (0, exports.ShippingApiFp)(this.configuration).postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12861
|
-
};
|
|
12862
|
-
return ShippingApi;
|
|
12863
|
-
}(base_1.BaseAPI));
|
|
12864
|
-
exports.ShippingApi = ShippingApi;
|
|
12865
11927
|
/**
|
|
12866
11928
|
* StockManagementApi - axios parameter creator
|
|
12867
11929
|
* @export
|