yellowgrid-api-ts 3.0.109-dev.0 → 3.0.109

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