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