yellowgrid-api-ts 3.1.11 → 3.1.13-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/.openapi-generator/FILES +217 -198
  2. package/README.md +34 -7
  3. package/api.ts +1832 -229
  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 +1376 -151
  9. package/dist/api.js +1063 -207
  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/AbstractOrderRequestDTO.md +33 -0
  19. package/docs/AccountDetailedSummaryDTO.md +39 -0
  20. package/docs/AccountsApi.md +103 -0
  21. package/docs/AddressModel.md +2 -0
  22. package/docs/AdminItemRequestDTO.md +43 -0
  23. package/docs/AdminOrderRequestDTO.md +45 -0
  24. package/docs/AdminUserModel.md +29 -0
  25. package/docs/BasicItemDTO.md +23 -0
  26. package/docs/BasicProductDTO.md +23 -0
  27. package/docs/Class3CXApi.md +0 -55
  28. package/docs/ClientDetailsModel.md +0 -2
  29. package/docs/CourierPriceEntity.md +39 -0
  30. package/docs/CustomerItemRequestDTO.md +37 -0
  31. package/docs/CustomerOrderRequestDTO.md +33 -0
  32. package/docs/ItemDTO.md +12 -4
  33. package/docs/ItemDiscountEntity.md +31 -0
  34. package/docs/ItemEntity.md +2 -0
  35. package/docs/LinkedOrderEntity.md +23 -0
  36. package/docs/OrderSummaryDTO.md +8 -0
  37. package/docs/OrderTotalModel.md +2 -0
  38. package/docs/OrdersApi.md +301 -4
  39. package/docs/PostGetProductForCustomerRequest.md +24 -0
  40. package/docs/ProductSearchResultsModel.md +1 -1
  41. package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +5 -3
  42. package/docs/ProductsApi.md +164 -43
  43. package/docs/ProvisioningApi.md +4 -4
  44. package/docs/{ProvisioningEntity.md → ProvisioningModel.md} +3 -3
  45. package/docs/ShipmentEntity.md +2 -2
  46. package/docs/ShippingApi.md +63 -0
  47. package/docs/ShippingConsignmentModel.md +26 -0
  48. package/docs/ShippingInformationDTO.md +25 -0
  49. package/docs/ShippingServiceDTO.md +23 -0
  50. package/docs/ShippingServiceModel.md +31 -0
  51. package/docs/{GetGetPasswordHash200Response.md → ShippingServicesModel.md} +5 -5
  52. package/docs/StockManagementApi.md +2 -2
  53. package/docs/TcxSbcDTO.md +31 -0
  54. package/docs/TcxSbcModel.md +1 -1
  55. package/index.ts +1 -1
  56. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Yellowgrid
6
- * Welcome to the Yellowgrid API documentation. 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,15 +84,22 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = void 0;
88
- exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = void 0;
89
- exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = void 0;
87
+ exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = exports.AdminUserModelRoleEnum = void 0;
88
+ exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = void 0;
89
+ exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = void 0;
90
90
  var axios_1 = require("axios");
91
91
  // Some imports not used depending on template conditions
92
92
  // @ts-ignore
93
93
  var common_1 = require("./common");
94
94
  // @ts-ignore
95
95
  var base_1 = require("./base");
96
+ exports.AdminUserModelRoleEnum = {
97
+ NUMBER_0: 0,
98
+ NUMBER_1: 1,
99
+ NUMBER_2: 2,
100
+ NUMBER_3: 3,
101
+ NUMBER_4: 4
102
+ };
96
103
  exports.DivertResponseModelStatusEnum = {
97
104
  Enabled: 'enabled',
98
105
  Disabled: 'disabled'
@@ -169,6 +176,16 @@ exports.OrderTotalModelCurrencyEnum = {
169
176
  Thb: 'THB',
170
177
  Zar: 'ZAR'
171
178
  };
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
+ };
172
189
  exports.SipTrunkChangeResponseModelTypeEnum = {
173
190
  NewTrunk: 'New Trunk',
174
191
  AvailableTrunk: 'Available Trunk',
@@ -413,6 +430,43 @@ var AccountsApiAxiosParamCreator = function (configuration) {
413
430
  });
414
431
  });
415
432
  },
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
+ },
416
470
  /**
417
471
  * Get Accounts
418
472
  * @summary Get Accounts
@@ -716,6 +770,39 @@ var AccountsApiAxiosParamCreator = function (configuration) {
716
770
  });
717
771
  });
718
772
  },
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
+ },
719
806
  /**
720
807
  * Create client credentials
721
808
  * @summary Create client credentials
@@ -1014,6 +1101,29 @@ var AccountsApiFp = function (configuration) {
1014
1101
  });
1015
1102
  });
1016
1103
  },
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
+ },
1017
1127
  /**
1018
1128
  * Get Accounts
1019
1129
  * @summary Get Accounts
@@ -1199,6 +1309,28 @@ var AccountsApiFp = function (configuration) {
1199
1309
  });
1200
1310
  });
1201
1311
  },
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
+ },
1202
1334
  /**
1203
1335
  * Create client credentials
1204
1336
  * @summary Create client credentials
@@ -1366,6 +1498,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1366
1498
  getGetAccountContacts: function (email, options) {
1367
1499
  return localVarFp.getGetAccountContacts(email, options).then(function (request) { return request(axios, basePath); });
1368
1500
  },
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
+ },
1369
1511
  /**
1370
1512
  * Get Accounts
1371
1513
  * @summary Get Accounts
@@ -1447,6 +1589,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1447
1589
  postGetAccounts: function (accountRequestModel, options) {
1448
1590
  return localVarFp.postGetAccounts(accountRequestModel, options).then(function (request) { return request(axios, basePath); });
1449
1591
  },
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
+ },
1450
1601
  /**
1451
1602
  * Create client credentials
1452
1603
  * @summary Create client credentials
@@ -1561,6 +1712,18 @@ var AccountsApi = /** @class */ (function (_super) {
1561
1712
  var _this = this;
1562
1713
  return (0, exports.AccountsApiFp)(this.configuration).getGetAccountContacts(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
1563
1714
  };
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
+ };
1564
1727
  /**
1565
1728
  * Get Accounts
1566
1729
  * @summary Get Accounts
@@ -1658,6 +1821,17 @@ var AccountsApi = /** @class */ (function (_super) {
1658
1821
  var _this = this;
1659
1822
  return (0, exports.AccountsApiFp)(this.configuration).postGetAccounts(accountRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
1660
1823
  };
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
+ };
1661
1835
  /**
1662
1836
  * Create client credentials
1663
1837
  * @summary Create client credentials
@@ -1885,45 +2059,6 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
1885
2059
  });
1886
2060
  });
1887
2061
  },
1888
- /**
1889
- * Generate a 3CX hashed password for 3CX installation
1890
- * @summary Convert a password to a hashed 3CX password
1891
- * @param {string} password Desired 3CX web access password
1892
- * @param {*} [options] Override http request option.
1893
- * @throws {RequiredError}
1894
- */
1895
- getGetPasswordHash: function (password_1) {
1896
- var args_1 = [];
1897
- for (var _i = 1; _i < arguments.length; _i++) {
1898
- args_1[_i - 1] = arguments[_i];
1899
- }
1900
- return __awaiter(_this, __spreadArray([password_1], args_1, true), void 0, function (password, options) {
1901
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1902
- if (options === void 0) { options = {}; }
1903
- return __generator(this, function (_a) {
1904
- // verify required parameter 'password' is not null or undefined
1905
- (0, common_1.assertParamExists)('getGetPasswordHash', 'password', password);
1906
- localVarPath = "/tcx/pwd2hash";
1907
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1908
- if (configuration) {
1909
- baseOptions = configuration.baseOptions;
1910
- }
1911
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1912
- localVarHeaderParameter = {};
1913
- localVarQueryParameter = {};
1914
- if (password !== undefined) {
1915
- localVarQueryParameter['password'] = password;
1916
- }
1917
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1918
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1919
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1920
- return [2 /*return*/, {
1921
- url: (0, common_1.toPathString)(localVarUrlObj),
1922
- options: localVarRequestOptions,
1923
- }];
1924
- });
1925
- });
1926
- },
1927
2062
  /**
1928
2063
  * Get Bulk 3CX Licence Details
1929
2064
  * @summary Get bulk 3CX Licence Details
@@ -1993,29 +2128,6 @@ var Class3CXApiFp = function (configuration) {
1993
2128
  });
1994
2129
  });
1995
2130
  },
1996
- /**
1997
- * Generate a 3CX hashed password for 3CX installation
1998
- * @summary Convert a password to a hashed 3CX password
1999
- * @param {string} password Desired 3CX web access password
2000
- * @param {*} [options] Override http request option.
2001
- * @throws {RequiredError}
2002
- */
2003
- getGetPasswordHash: function (password, options) {
2004
- return __awaiter(this, void 0, void 0, function () {
2005
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2006
- var _a, _b, _c;
2007
- return __generator(this, function (_d) {
2008
- switch (_d.label) {
2009
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetPasswordHash(password, options)];
2010
- case 1:
2011
- localVarAxiosArgs = _d.sent();
2012
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2013
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.getGetPasswordHash']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2014
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2015
- }
2016
- });
2017
- });
2018
- },
2019
2131
  /**
2020
2132
  * Get Bulk 3CX Licence Details
2021
2133
  * @summary Get bulk 3CX Licence Details
@@ -2059,16 +2171,6 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
2059
2171
  getGetLicenceDetails: function (key, options) {
2060
2172
  return localVarFp.getGetLicenceDetails(key, options).then(function (request) { return request(axios, basePath); });
2061
2173
  },
2062
- /**
2063
- * Generate a 3CX hashed password for 3CX installation
2064
- * @summary Convert a password to a hashed 3CX password
2065
- * @param {string} password Desired 3CX web access password
2066
- * @param {*} [options] Override http request option.
2067
- * @throws {RequiredError}
2068
- */
2069
- getGetPasswordHash: function (password, options) {
2070
- return localVarFp.getGetPasswordHash(password, options).then(function (request) { return request(axios, basePath); });
2071
- },
2072
2174
  /**
2073
2175
  * Get Bulk 3CX Licence Details
2074
2176
  * @summary Get bulk 3CX Licence Details
@@ -2105,18 +2207,6 @@ var Class3CXApi = /** @class */ (function (_super) {
2105
2207
  var _this = this;
2106
2208
  return (0, exports.Class3CXApiFp)(this.configuration).getGetLicenceDetails(key, options).then(function (request) { return request(_this.axios, _this.basePath); });
2107
2209
  };
2108
- /**
2109
- * Generate a 3CX hashed password for 3CX installation
2110
- * @summary Convert a password to a hashed 3CX password
2111
- * @param {string} password Desired 3CX web access password
2112
- * @param {*} [options] Override http request option.
2113
- * @throws {RequiredError}
2114
- * @memberof Class3CXApi
2115
- */
2116
- Class3CXApi.prototype.getGetPasswordHash = function (password, options) {
2117
- var _this = this;
2118
- return (0, exports.Class3CXApiFp)(this.configuration).getGetPasswordHash(password, options).then(function (request) { return request(_this.axios, _this.basePath); });
2119
- };
2120
2210
  /**
2121
2211
  * Get Bulk 3CX Licence Details
2122
2212
  * @summary Get bulk 3CX Licence Details
@@ -8054,11 +8144,12 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8054
8144
  return {
8055
8145
  /**
8056
8146
  * Delete Orders
8147
+ * @summary Delete Orders
8057
8148
  * @param {number} id Order ID
8058
8149
  * @param {*} [options] Override http request option.
8059
8150
  * @throws {RequiredError}
8060
8151
  */
8061
- deleteDeleteOrder: function (id_1) {
8152
+ deleteUpdateOrder: function (id_1) {
8062
8153
  var args_1 = [];
8063
8154
  for (var _i = 1; _i < arguments.length; _i++) {
8064
8155
  args_1[_i - 1] = arguments[_i];
@@ -8068,7 +8159,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8068
8159
  if (options === void 0) { options = {}; }
8069
8160
  return __generator(this, function (_a) {
8070
8161
  // verify required parameter 'id' is not null or undefined
8071
- (0, common_1.assertParamExists)('deleteDeleteOrder', 'id', id);
8162
+ (0, common_1.assertParamExists)('deleteUpdateOrder', 'id', id);
8072
8163
  localVarPath = "/orders/{id}"
8073
8164
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8074
8165
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8088,6 +8179,43 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8088
8179
  });
8089
8180
  });
8090
8181
  },
8182
+ /**
8183
+ * Get Editable Order
8184
+ * @summary Get Editable Order
8185
+ * @param {number} id Order ID
8186
+ * @param {*} [options] Override http request option.
8187
+ * @throws {RequiredError}
8188
+ */
8189
+ getGetEditableOrder: function (id_1) {
8190
+ var args_1 = [];
8191
+ for (var _i = 1; _i < arguments.length; _i++) {
8192
+ args_1[_i - 1] = arguments[_i];
8193
+ }
8194
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8195
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8196
+ if (options === void 0) { options = {}; }
8197
+ return __generator(this, function (_a) {
8198
+ // verify required parameter 'id' is not null or undefined
8199
+ (0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
8200
+ localVarPath = "/orders/{id}/views/editable"
8201
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8202
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8203
+ if (configuration) {
8204
+ baseOptions = configuration.baseOptions;
8205
+ }
8206
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8207
+ localVarHeaderParameter = {};
8208
+ localVarQueryParameter = {};
8209
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8210
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8211
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8212
+ return [2 /*return*/, {
8213
+ url: (0, common_1.toPathString)(localVarUrlObj),
8214
+ options: localVarRequestOptions,
8215
+ }];
8216
+ });
8217
+ });
8218
+ },
8091
8219
  /**
8092
8220
  * Get Orders
8093
8221
  * @summary Get Orders
@@ -8149,34 +8277,226 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8149
8277
  });
8150
8278
  });
8151
8279
  },
8152
- };
8153
- };
8154
- exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
8155
- /**
8156
- * OrdersApi - functional programming interface
8157
- * @export
8158
- */
8159
- var OrdersApiFp = function (configuration) {
8160
- var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
8161
- return {
8162
8280
  /**
8163
- * Delete Orders
8164
- * @param {number} id Order ID
8281
+ * Create An Order (Admin)
8282
+ * @summary Create An Order (Admin)
8283
+ * @param {boolean} [readonly] Readonly Order
8284
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8165
8285
  * @param {*} [options] Override http request option.
8166
8286
  * @throws {RequiredError}
8167
8287
  */
8168
- deleteDeleteOrder: function (id, options) {
8169
- return __awaiter(this, void 0, void 0, function () {
8170
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8171
- var _a, _b, _c;
8172
- return __generator(this, function (_d) {
8173
- switch (_d.label) {
8174
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteOrder(id, options)];
8175
- case 1:
8176
- localVarAxiosArgs = _d.sent();
8177
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8178
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteDeleteOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8179
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8288
+ postCreateAdminOrder: function (readonly_1, adminOrderRequestDTO_1) {
8289
+ var args_1 = [];
8290
+ for (var _i = 2; _i < arguments.length; _i++) {
8291
+ args_1[_i - 2] = arguments[_i];
8292
+ }
8293
+ return __awaiter(_this, __spreadArray([readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (readonly, adminOrderRequestDTO, options) {
8294
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8295
+ if (options === void 0) { options = {}; }
8296
+ return __generator(this, function (_a) {
8297
+ localVarPath = "/admin/orders";
8298
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8299
+ if (configuration) {
8300
+ baseOptions = configuration.baseOptions;
8301
+ }
8302
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8303
+ localVarHeaderParameter = {};
8304
+ localVarQueryParameter = {};
8305
+ if (readonly !== undefined) {
8306
+ localVarQueryParameter['readonly'] = readonly;
8307
+ }
8308
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8309
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8310
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8311
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8312
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
8313
+ return [2 /*return*/, {
8314
+ url: (0, common_1.toPathString)(localVarUrlObj),
8315
+ options: localVarRequestOptions,
8316
+ }];
8317
+ });
8318
+ });
8319
+ },
8320
+ /**
8321
+ * Create An Order
8322
+ * @summary Create An Order
8323
+ * @param {boolean} [readonly] Readonly Order
8324
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8325
+ * @param {*} [options] Override http request option.
8326
+ * @throws {RequiredError}
8327
+ */
8328
+ postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
8329
+ var args_1 = [];
8330
+ for (var _i = 2; _i < arguments.length; _i++) {
8331
+ args_1[_i - 2] = arguments[_i];
8332
+ }
8333
+ return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
8334
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8335
+ if (options === void 0) { options = {}; }
8336
+ return __generator(this, function (_a) {
8337
+ localVarPath = "/orders";
8338
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8339
+ if (configuration) {
8340
+ baseOptions = configuration.baseOptions;
8341
+ }
8342
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8343
+ localVarHeaderParameter = {};
8344
+ localVarQueryParameter = {};
8345
+ if (readonly !== undefined) {
8346
+ localVarQueryParameter['readonly'] = readonly;
8347
+ }
8348
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8349
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8350
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8351
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8352
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
8353
+ return [2 /*return*/, {
8354
+ url: (0, common_1.toPathString)(localVarUrlObj),
8355
+ options: localVarRequestOptions,
8356
+ }];
8357
+ });
8358
+ });
8359
+ },
8360
+ /**
8361
+ * Update An Order (Admin)
8362
+ * @summary Update An Order (Admin)
8363
+ * @param {number} id Order ID
8364
+ * @param {boolean} [readonly] Readonly Order
8365
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8366
+ * @param {*} [options] Override http request option.
8367
+ * @throws {RequiredError}
8368
+ */
8369
+ putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
8370
+ var args_1 = [];
8371
+ for (var _i = 3; _i < arguments.length; _i++) {
8372
+ args_1[_i - 3] = arguments[_i];
8373
+ }
8374
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
8375
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8376
+ if (options === void 0) { options = {}; }
8377
+ return __generator(this, function (_a) {
8378
+ // verify required parameter 'id' is not null or undefined
8379
+ (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
8380
+ localVarPath = "/admin/orders/{id}"
8381
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8382
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8383
+ if (configuration) {
8384
+ baseOptions = configuration.baseOptions;
8385
+ }
8386
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
8387
+ localVarHeaderParameter = {};
8388
+ localVarQueryParameter = {};
8389
+ if (readonly !== undefined) {
8390
+ localVarQueryParameter['readonly'] = readonly;
8391
+ }
8392
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8393
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8394
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8395
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8396
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
8397
+ return [2 /*return*/, {
8398
+ url: (0, common_1.toPathString)(localVarUrlObj),
8399
+ options: localVarRequestOptions,
8400
+ }];
8401
+ });
8402
+ });
8403
+ },
8404
+ /**
8405
+ * Update An Order
8406
+ * @summary Update An Order
8407
+ * @param {number} id Order ID
8408
+ * @param {boolean} [readonly] Readonly Order
8409
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8410
+ * @param {*} [options] Override http request option.
8411
+ * @throws {RequiredError}
8412
+ */
8413
+ putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
8414
+ var args_1 = [];
8415
+ for (var _i = 3; _i < arguments.length; _i++) {
8416
+ args_1[_i - 3] = arguments[_i];
8417
+ }
8418
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
8419
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8420
+ if (options === void 0) { options = {}; }
8421
+ return __generator(this, function (_a) {
8422
+ // verify required parameter 'id' is not null or undefined
8423
+ (0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
8424
+ localVarPath = "/orders/{id}"
8425
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8426
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8427
+ if (configuration) {
8428
+ baseOptions = configuration.baseOptions;
8429
+ }
8430
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
8431
+ localVarHeaderParameter = {};
8432
+ localVarQueryParameter = {};
8433
+ if (readonly !== undefined) {
8434
+ localVarQueryParameter['readonly'] = readonly;
8435
+ }
8436
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8437
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8438
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8439
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8440
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
8441
+ return [2 /*return*/, {
8442
+ url: (0, common_1.toPathString)(localVarUrlObj),
8443
+ options: localVarRequestOptions,
8444
+ }];
8445
+ });
8446
+ });
8447
+ },
8448
+ };
8449
+ };
8450
+ exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
8451
+ /**
8452
+ * OrdersApi - functional programming interface
8453
+ * @export
8454
+ */
8455
+ var OrdersApiFp = function (configuration) {
8456
+ var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
8457
+ return {
8458
+ /**
8459
+ * Delete Orders
8460
+ * @summary Delete Orders
8461
+ * @param {number} id Order ID
8462
+ * @param {*} [options] Override http request option.
8463
+ * @throws {RequiredError}
8464
+ */
8465
+ deleteUpdateOrder: function (id, options) {
8466
+ return __awaiter(this, void 0, void 0, function () {
8467
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8468
+ var _a, _b, _c;
8469
+ return __generator(this, function (_d) {
8470
+ switch (_d.label) {
8471
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
8472
+ case 1:
8473
+ localVarAxiosArgs = _d.sent();
8474
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8475
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8476
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8477
+ }
8478
+ });
8479
+ });
8480
+ },
8481
+ /**
8482
+ * Get Editable Order
8483
+ * @summary Get Editable Order
8484
+ * @param {number} id Order ID
8485
+ * @param {*} [options] Override http request option.
8486
+ * @throws {RequiredError}
8487
+ */
8488
+ getGetEditableOrder: function (id, options) {
8489
+ return __awaiter(this, void 0, void 0, function () {
8490
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8491
+ var _a, _b, _c;
8492
+ return __generator(this, function (_d) {
8493
+ switch (_d.label) {
8494
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
8495
+ case 1:
8496
+ localVarAxiosArgs = _d.sent();
8497
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8498
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8499
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8180
8500
  }
8181
8501
  });
8182
8502
  });
@@ -8210,6 +8530,104 @@ var OrdersApiFp = function (configuration) {
8210
8530
  });
8211
8531
  });
8212
8532
  },
8533
+ /**
8534
+ * Create An Order (Admin)
8535
+ * @summary Create An Order (Admin)
8536
+ * @param {boolean} [readonly] Readonly Order
8537
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8538
+ * @param {*} [options] Override http request option.
8539
+ * @throws {RequiredError}
8540
+ */
8541
+ postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
8542
+ return __awaiter(this, void 0, void 0, function () {
8543
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8544
+ var _a, _b, _c;
8545
+ return __generator(this, function (_d) {
8546
+ switch (_d.label) {
8547
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
8548
+ case 1:
8549
+ localVarAxiosArgs = _d.sent();
8550
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8551
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8552
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8553
+ }
8554
+ });
8555
+ });
8556
+ },
8557
+ /**
8558
+ * Create An Order
8559
+ * @summary Create An Order
8560
+ * @param {boolean} [readonly] Readonly Order
8561
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8562
+ * @param {*} [options] Override http request option.
8563
+ * @throws {RequiredError}
8564
+ */
8565
+ postGetOrders: function (readonly, customerOrderRequestDTO, options) {
8566
+ return __awaiter(this, void 0, void 0, function () {
8567
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8568
+ var _a, _b, _c;
8569
+ return __generator(this, function (_d) {
8570
+ switch (_d.label) {
8571
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
8572
+ case 1:
8573
+ localVarAxiosArgs = _d.sent();
8574
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8575
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8576
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8577
+ }
8578
+ });
8579
+ });
8580
+ },
8581
+ /**
8582
+ * Update An Order (Admin)
8583
+ * @summary Update An Order (Admin)
8584
+ * @param {number} id Order ID
8585
+ * @param {boolean} [readonly] Readonly Order
8586
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8587
+ * @param {*} [options] Override http request option.
8588
+ * @throws {RequiredError}
8589
+ */
8590
+ putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
8591
+ return __awaiter(this, void 0, void 0, function () {
8592
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8593
+ var _a, _b, _c;
8594
+ return __generator(this, function (_d) {
8595
+ switch (_d.label) {
8596
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
8597
+ case 1:
8598
+ localVarAxiosArgs = _d.sent();
8599
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8600
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8601
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8602
+ }
8603
+ });
8604
+ });
8605
+ },
8606
+ /**
8607
+ * Update An Order
8608
+ * @summary Update An Order
8609
+ * @param {number} id Order ID
8610
+ * @param {boolean} [readonly] Readonly Order
8611
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8612
+ * @param {*} [options] Override http request option.
8613
+ * @throws {RequiredError}
8614
+ */
8615
+ putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
8616
+ return __awaiter(this, void 0, void 0, function () {
8617
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8618
+ var _a, _b, _c;
8619
+ return __generator(this, function (_d) {
8620
+ switch (_d.label) {
8621
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options)];
8622
+ case 1:
8623
+ localVarAxiosArgs = _d.sent();
8624
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8625
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8626
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8627
+ }
8628
+ });
8629
+ });
8630
+ },
8213
8631
  };
8214
8632
  };
8215
8633
  exports.OrdersApiFp = OrdersApiFp;
@@ -8222,12 +8640,23 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
8222
8640
  return {
8223
8641
  /**
8224
8642
  * Delete Orders
8643
+ * @summary Delete Orders
8644
+ * @param {number} id Order ID
8645
+ * @param {*} [options] Override http request option.
8646
+ * @throws {RequiredError}
8647
+ */
8648
+ deleteUpdateOrder: function (id, options) {
8649
+ return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
8650
+ },
8651
+ /**
8652
+ * Get Editable Order
8653
+ * @summary Get Editable Order
8225
8654
  * @param {number} id Order ID
8226
8655
  * @param {*} [options] Override http request option.
8227
8656
  * @throws {RequiredError}
8228
8657
  */
8229
- deleteDeleteOrder: function (id, options) {
8230
- return localVarFp.deleteDeleteOrder(id, options).then(function (request) { return request(axios, basePath); });
8658
+ getGetEditableOrder: function (id, options) {
8659
+ return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
8231
8660
  },
8232
8661
  /**
8233
8662
  * Get Orders
@@ -8245,6 +8674,52 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
8245
8674
  getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
8246
8675
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
8247
8676
  },
8677
+ /**
8678
+ * Create An Order (Admin)
8679
+ * @summary Create An Order (Admin)
8680
+ * @param {boolean} [readonly] Readonly Order
8681
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8682
+ * @param {*} [options] Override http request option.
8683
+ * @throws {RequiredError}
8684
+ */
8685
+ postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
8686
+ return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8687
+ },
8688
+ /**
8689
+ * Create An Order
8690
+ * @summary Create An Order
8691
+ * @param {boolean} [readonly] Readonly Order
8692
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8693
+ * @param {*} [options] Override http request option.
8694
+ * @throws {RequiredError}
8695
+ */
8696
+ postGetOrders: function (readonly, customerOrderRequestDTO, options) {
8697
+ return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8698
+ },
8699
+ /**
8700
+ * Update An Order (Admin)
8701
+ * @summary Update An Order (Admin)
8702
+ * @param {number} id Order ID
8703
+ * @param {boolean} [readonly] Readonly Order
8704
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8705
+ * @param {*} [options] Override http request option.
8706
+ * @throws {RequiredError}
8707
+ */
8708
+ putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
8709
+ return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8710
+ },
8711
+ /**
8712
+ * Update An Order
8713
+ * @summary Update An Order
8714
+ * @param {number} id Order ID
8715
+ * @param {boolean} [readonly] Readonly Order
8716
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8717
+ * @param {*} [options] Override http request option.
8718
+ * @throws {RequiredError}
8719
+ */
8720
+ putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
8721
+ return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8722
+ },
8248
8723
  };
8249
8724
  };
8250
8725
  exports.OrdersApiFactory = OrdersApiFactory;
@@ -8261,14 +8736,27 @@ var OrdersApi = /** @class */ (function (_super) {
8261
8736
  }
8262
8737
  /**
8263
8738
  * Delete Orders
8739
+ * @summary Delete Orders
8264
8740
  * @param {number} id Order ID
8265
8741
  * @param {*} [options] Override http request option.
8266
8742
  * @throws {RequiredError}
8267
8743
  * @memberof OrdersApi
8268
8744
  */
8269
- OrdersApi.prototype.deleteDeleteOrder = function (id, options) {
8745
+ OrdersApi.prototype.deleteUpdateOrder = function (id, options) {
8270
8746
  var _this = this;
8271
- return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8747
+ return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8748
+ };
8749
+ /**
8750
+ * Get Editable Order
8751
+ * @summary Get Editable Order
8752
+ * @param {number} id Order ID
8753
+ * @param {*} [options] Override http request option.
8754
+ * @throws {RequiredError}
8755
+ * @memberof OrdersApi
8756
+ */
8757
+ OrdersApi.prototype.getGetEditableOrder = function (id, options) {
8758
+ var _this = this;
8759
+ return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8272
8760
  };
8273
8761
  /**
8274
8762
  * Get Orders
@@ -8288,6 +8776,60 @@ var OrdersApi = /** @class */ (function (_super) {
8288
8776
  var _this = this;
8289
8777
  return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8290
8778
  };
8779
+ /**
8780
+ * Create An Order (Admin)
8781
+ * @summary Create An Order (Admin)
8782
+ * @param {boolean} [readonly] Readonly Order
8783
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8784
+ * @param {*} [options] Override http request option.
8785
+ * @throws {RequiredError}
8786
+ * @memberof OrdersApi
8787
+ */
8788
+ OrdersApi.prototype.postCreateAdminOrder = function (readonly, adminOrderRequestDTO, options) {
8789
+ var _this = this;
8790
+ return (0, exports.OrdersApiFp)(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8791
+ };
8792
+ /**
8793
+ * Create An Order
8794
+ * @summary Create An Order
8795
+ * @param {boolean} [readonly] Readonly Order
8796
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8797
+ * @param {*} [options] Override http request option.
8798
+ * @throws {RequiredError}
8799
+ * @memberof OrdersApi
8800
+ */
8801
+ OrdersApi.prototype.postGetOrders = function (readonly, customerOrderRequestDTO, options) {
8802
+ var _this = this;
8803
+ return (0, exports.OrdersApiFp)(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8804
+ };
8805
+ /**
8806
+ * Update An Order (Admin)
8807
+ * @summary Update An Order (Admin)
8808
+ * @param {number} id Order ID
8809
+ * @param {boolean} [readonly] Readonly Order
8810
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8811
+ * @param {*} [options] Override http request option.
8812
+ * @throws {RequiredError}
8813
+ * @memberof OrdersApi
8814
+ */
8815
+ OrdersApi.prototype.putUpdateAdminOrder = function (id, readonly, adminOrderRequestDTO, options) {
8816
+ var _this = this;
8817
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8818
+ };
8819
+ /**
8820
+ * Update An Order
8821
+ * @summary Update An Order
8822
+ * @param {number} id Order ID
8823
+ * @param {boolean} [readonly] Readonly Order
8824
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8825
+ * @param {*} [options] Override http request option.
8826
+ * @throws {RequiredError}
8827
+ * @memberof OrdersApi
8828
+ */
8829
+ OrdersApi.prototype.putUpdateOrder = function (id, readonly, customerOrderRequestDTO, options) {
8830
+ var _this = this;
8831
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8832
+ };
8291
8833
  return OrdersApi;
8292
8834
  }(base_1.BaseAPI));
8293
8835
  exports.OrdersApi = OrdersApi;
@@ -8715,12 +9257,52 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8715
9257
  });
8716
9258
  },
8717
9259
  /**
8718
- * Get Customer Price Lists
8719
- * @summary Get Customer Price Lists
9260
+ * Get Current Stock & Pricing
9261
+ * @summary Get Current Stock & Pricing
9262
+ * @param {GetGetLegacyStockListFormatEnum} format File Format
9263
+ * @param {*} [options] Override http request option.
9264
+ * @deprecated
9265
+ * @throws {RequiredError}
9266
+ */
9267
+ getGetLegacyStockList: function (format_1) {
9268
+ var args_1 = [];
9269
+ for (var _i = 1; _i < arguments.length; _i++) {
9270
+ args_1[_i - 1] = arguments[_i];
9271
+ }
9272
+ return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
9273
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9274
+ if (options === void 0) { options = {}; }
9275
+ return __generator(this, function (_a) {
9276
+ // verify required parameter 'format' is not null or undefined
9277
+ (0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
9278
+ localVarPath = "/products/stock/legacy";
9279
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9280
+ if (configuration) {
9281
+ baseOptions = configuration.baseOptions;
9282
+ }
9283
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9284
+ localVarHeaderParameter = {};
9285
+ localVarQueryParameter = {};
9286
+ if (format !== undefined) {
9287
+ localVarQueryParameter['format'] = format;
9288
+ }
9289
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9290
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9291
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9292
+ return [2 /*return*/, {
9293
+ url: (0, common_1.toPathString)(localVarUrlObj),
9294
+ options: localVarRequestOptions,
9295
+ }];
9296
+ });
9297
+ });
9298
+ },
9299
+ /**
9300
+ * Get Products
9301
+ * @summary Get Products
8720
9302
  * @param {*} [options] Override http request option.
8721
9303
  * @throws {RequiredError}
8722
9304
  */
8723
- getGetCustomerPriceLists: function () {
9305
+ getGetProducts: function () {
8724
9306
  var args_1 = [];
8725
9307
  for (var _i = 0; _i < arguments.length; _i++) {
8726
9308
  args_1[_i] = arguments[_i];
@@ -8729,7 +9311,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8729
9311
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8730
9312
  if (options === void 0) { options = {}; }
8731
9313
  return __generator(this, function (_a) {
8732
- localVarPath = "/products/prices/lists";
9314
+ localVarPath = "/products";
8733
9315
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8734
9316
  if (configuration) {
8735
9317
  baseOptions = configuration.baseOptions;
@@ -8750,23 +9332,19 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8750
9332
  /**
8751
9333
  * Get Current Stock & Pricing
8752
9334
  * @summary Get Current Stock & Pricing
8753
- * @param {GetGetLegacyStockListFormatEnum} format File Format
8754
9335
  * @param {*} [options] Override http request option.
8755
- * @deprecated
8756
9336
  * @throws {RequiredError}
8757
9337
  */
8758
- getGetLegacyStockList: function (format_1) {
9338
+ getGetStockList: function () {
8759
9339
  var args_1 = [];
8760
- for (var _i = 1; _i < arguments.length; _i++) {
8761
- args_1[_i - 1] = arguments[_i];
9340
+ for (var _i = 0; _i < arguments.length; _i++) {
9341
+ args_1[_i] = arguments[_i];
8762
9342
  }
8763
- return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
9343
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
8764
9344
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8765
9345
  if (options === void 0) { options = {}; }
8766
9346
  return __generator(this, function (_a) {
8767
- // verify required parameter 'format' is not null or undefined
8768
- (0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
8769
- localVarPath = "/products/stock/legacy";
9347
+ localVarPath = "/products/stock";
8770
9348
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8771
9349
  if (configuration) {
8772
9350
  baseOptions = configuration.baseOptions;
@@ -8774,9 +9352,39 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8774
9352
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8775
9353
  localVarHeaderParameter = {};
8776
9354
  localVarQueryParameter = {};
8777
- if (format !== undefined) {
8778
- localVarQueryParameter['format'] = format;
9355
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9356
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9357
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9358
+ return [2 /*return*/, {
9359
+ url: (0, common_1.toPathString)(localVarUrlObj),
9360
+ options: localVarRequestOptions,
9361
+ }];
9362
+ });
9363
+ });
9364
+ },
9365
+ /**
9366
+ * Get 3CX Templates
9367
+ * @summary Get 3CX Templates
9368
+ * @param {*} [options] Override http request option.
9369
+ * @throws {RequiredError}
9370
+ */
9371
+ getGetTcxTemplates: function () {
9372
+ var args_1 = [];
9373
+ for (var _i = 0; _i < arguments.length; _i++) {
9374
+ args_1[_i] = arguments[_i];
9375
+ }
9376
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
9377
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9378
+ if (options === void 0) { options = {}; }
9379
+ return __generator(this, function (_a) {
9380
+ localVarPath = "/products/attributes/tcx/templates";
9381
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9382
+ if (configuration) {
9383
+ baseOptions = configuration.baseOptions;
8779
9384
  }
9385
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9386
+ localVarHeaderParameter = {};
9387
+ localVarQueryParameter = {};
8780
9388
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8781
9389
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8782
9390
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8788,15 +9396,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8788
9396
  });
8789
9397
  },
8790
9398
  /**
8791
- * Get Products
8792
- * @summary Get Products
9399
+ * Search Products
9400
+ * @summary Search Products
8793
9401
  * @param {number} [pageSize] Number Of Results
8794
9402
  * @param {number} [page] Page Number
8795
9403
  * @param {string} [search] Search
8796
9404
  * @param {*} [options] Override http request option.
8797
9405
  * @throws {RequiredError}
8798
9406
  */
8799
- getGetProducts: function (pageSize_1, page_1, search_1) {
9407
+ getSearchProducts: function (pageSize_1, page_1, search_1) {
8800
9408
  var args_1 = [];
8801
9409
  for (var _i = 3; _i < arguments.length; _i++) {
8802
9410
  args_1[_i - 3] = arguments[_i];
@@ -8833,31 +9441,40 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8833
9441
  });
8834
9442
  },
8835
9443
  /**
8836
- * Get Current Stock & Pricing
8837
- * @summary Get Current Stock & Pricing
9444
+ * Get Product
9445
+ * @summary Get Product
9446
+ * @param {string} sku Product SKU
9447
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
8838
9448
  * @param {*} [options] Override http request option.
8839
9449
  * @throws {RequiredError}
8840
9450
  */
8841
- getGetStockList: function () {
9451
+ postGetProduct: function (sku_1, postGetProductForCustomerRequest_1) {
8842
9452
  var args_1 = [];
8843
- for (var _i = 0; _i < arguments.length; _i++) {
8844
- args_1[_i] = arguments[_i];
9453
+ for (var _i = 2; _i < arguments.length; _i++) {
9454
+ args_1[_i - 2] = arguments[_i];
8845
9455
  }
8846
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
9456
+ return __awaiter(_this, __spreadArray([sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (sku, postGetProductForCustomerRequest, options) {
8847
9457
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8848
9458
  if (options === void 0) { options = {}; }
8849
9459
  return __generator(this, function (_a) {
8850
- localVarPath = "/products/stock";
9460
+ // verify required parameter 'sku' is not null or undefined
9461
+ (0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
9462
+ // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
9463
+ (0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
9464
+ localVarPath = "/products/{sku}"
9465
+ .replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
8851
9466
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8852
9467
  if (configuration) {
8853
9468
  baseOptions = configuration.baseOptions;
8854
9469
  }
8855
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9470
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8856
9471
  localVarHeaderParameter = {};
8857
9472
  localVarQueryParameter = {};
9473
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8858
9474
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8859
9475
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8860
9476
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9477
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
8861
9478
  return [2 /*return*/, {
8862
9479
  url: (0, common_1.toPathString)(localVarUrlObj),
8863
9480
  options: localVarRequestOptions,
@@ -8866,31 +9483,46 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8866
9483
  });
8867
9484
  },
8868
9485
  /**
8869
- * Get 3CX Templates
8870
- * @summary Get 3CX Templates
9486
+ * Get Product For Customer
9487
+ * @summary Get Product For Customer
9488
+ * @param {number} customerId Customer ID
9489
+ * @param {string} sku Product SKU
9490
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
8871
9491
  * @param {*} [options] Override http request option.
8872
9492
  * @throws {RequiredError}
8873
9493
  */
8874
- getGetTcxTemplates: function () {
9494
+ postGetProductForCustomer: function (customerId_1, sku_1, postGetProductForCustomerRequest_1) {
8875
9495
  var args_1 = [];
8876
- for (var _i = 0; _i < arguments.length; _i++) {
8877
- args_1[_i] = arguments[_i];
9496
+ for (var _i = 3; _i < arguments.length; _i++) {
9497
+ args_1[_i - 3] = arguments[_i];
8878
9498
  }
8879
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
9499
+ return __awaiter(_this, __spreadArray([customerId_1, sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (customerId, sku, postGetProductForCustomerRequest, options) {
8880
9500
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8881
9501
  if (options === void 0) { options = {}; }
8882
9502
  return __generator(this, function (_a) {
8883
- localVarPath = "/products/attributes/tcx/templates";
9503
+ // verify required parameter 'customerId' is not null or undefined
9504
+ (0, common_1.assertParamExists)('postGetProductForCustomer', 'customerId', customerId);
9505
+ // verify required parameter 'sku' is not null or undefined
9506
+ (0, common_1.assertParamExists)('postGetProductForCustomer', 'sku', sku);
9507
+ // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
9508
+ (0, common_1.assertParamExists)('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
9509
+ localVarPath = "/admin/products/{sku}"
9510
+ .replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
8884
9511
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8885
9512
  if (configuration) {
8886
9513
  baseOptions = configuration.baseOptions;
8887
9514
  }
8888
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9515
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8889
9516
  localVarHeaderParameter = {};
8890
9517
  localVarQueryParameter = {};
9518
+ if (customerId !== undefined) {
9519
+ localVarQueryParameter['customerId'] = customerId;
9520
+ }
9521
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8891
9522
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8892
9523
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8893
9524
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9525
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
8894
9526
  return [2 /*return*/, {
8895
9527
  url: (0, common_1.toPathString)(localVarUrlObj),
8896
9528
  options: localVarRequestOptions,
@@ -8931,22 +9563,46 @@ var ProductsApiFp = function (configuration) {
8931
9563
  });
8932
9564
  },
8933
9565
  /**
8934
- * Get Customer Price Lists
8935
- * @summary Get Customer Price Lists
9566
+ * Get Current Stock & Pricing
9567
+ * @summary Get Current Stock & Pricing
9568
+ * @param {GetGetLegacyStockListFormatEnum} format File Format
9569
+ * @param {*} [options] Override http request option.
9570
+ * @deprecated
9571
+ * @throws {RequiredError}
9572
+ */
9573
+ getGetLegacyStockList: function (format, options) {
9574
+ return __awaiter(this, void 0, void 0, function () {
9575
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9576
+ var _a, _b, _c;
9577
+ return __generator(this, function (_d) {
9578
+ switch (_d.label) {
9579
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
9580
+ case 1:
9581
+ localVarAxiosArgs = _d.sent();
9582
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9583
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9584
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9585
+ }
9586
+ });
9587
+ });
9588
+ },
9589
+ /**
9590
+ * Get Products
9591
+ * @summary Get Products
8936
9592
  * @param {*} [options] Override http request option.
8937
9593
  * @throws {RequiredError}
8938
9594
  */
8939
- getGetCustomerPriceLists: function (options) {
9595
+ getGetProducts: function (options) {
8940
9596
  return __awaiter(this, void 0, void 0, function () {
8941
9597
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8942
9598
  var _a, _b, _c;
8943
9599
  return __generator(this, function (_d) {
8944
9600
  switch (_d.label) {
8945
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerPriceLists(options)];
9601
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(options)];
8946
9602
  case 1:
8947
9603
  localVarAxiosArgs = _d.sent();
8948
9604
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8949
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetCustomerPriceLists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9605
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8950
9606
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8951
9607
  }
8952
9608
  });
@@ -8955,91 +9611,116 @@ var ProductsApiFp = function (configuration) {
8955
9611
  /**
8956
9612
  * Get Current Stock & Pricing
8957
9613
  * @summary Get Current Stock & Pricing
8958
- * @param {GetGetLegacyStockListFormatEnum} format File Format
8959
9614
  * @param {*} [options] Override http request option.
8960
- * @deprecated
8961
9615
  * @throws {RequiredError}
8962
9616
  */
8963
- getGetLegacyStockList: function (format, options) {
9617
+ getGetStockList: function (options) {
8964
9618
  return __awaiter(this, void 0, void 0, function () {
8965
9619
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8966
9620
  var _a, _b, _c;
8967
9621
  return __generator(this, function (_d) {
8968
9622
  switch (_d.label) {
8969
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
9623
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
8970
9624
  case 1:
8971
9625
  localVarAxiosArgs = _d.sent();
8972
9626
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8973
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9627
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8974
9628
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8975
9629
  }
8976
9630
  });
8977
9631
  });
8978
9632
  },
8979
9633
  /**
8980
- * Get Products
8981
- * @summary Get Products
9634
+ * Get 3CX Templates
9635
+ * @summary Get 3CX Templates
9636
+ * @param {*} [options] Override http request option.
9637
+ * @throws {RequiredError}
9638
+ */
9639
+ getGetTcxTemplates: function (options) {
9640
+ return __awaiter(this, void 0, void 0, function () {
9641
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9642
+ var _a, _b, _c;
9643
+ return __generator(this, function (_d) {
9644
+ switch (_d.label) {
9645
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
9646
+ case 1:
9647
+ localVarAxiosArgs = _d.sent();
9648
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9649
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9650
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9651
+ }
9652
+ });
9653
+ });
9654
+ },
9655
+ /**
9656
+ * Search Products
9657
+ * @summary Search Products
8982
9658
  * @param {number} [pageSize] Number Of Results
8983
9659
  * @param {number} [page] Page Number
8984
9660
  * @param {string} [search] Search
8985
9661
  * @param {*} [options] Override http request option.
8986
9662
  * @throws {RequiredError}
8987
9663
  */
8988
- getGetProducts: function (pageSize, page, search, options) {
9664
+ getSearchProducts: function (pageSize, page, search, options) {
8989
9665
  return __awaiter(this, void 0, void 0, function () {
8990
9666
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8991
9667
  var _a, _b, _c;
8992
9668
  return __generator(this, function (_d) {
8993
9669
  switch (_d.label) {
8994
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(pageSize, page, search, options)];
9670
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options)];
8995
9671
  case 1:
8996
9672
  localVarAxiosArgs = _d.sent();
8997
9673
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8998
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9674
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getSearchProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8999
9675
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9000
9676
  }
9001
9677
  });
9002
9678
  });
9003
9679
  },
9004
9680
  /**
9005
- * Get Current Stock & Pricing
9006
- * @summary Get Current Stock & Pricing
9681
+ * Get Product
9682
+ * @summary Get Product
9683
+ * @param {string} sku Product SKU
9684
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9007
9685
  * @param {*} [options] Override http request option.
9008
9686
  * @throws {RequiredError}
9009
9687
  */
9010
- getGetStockList: function (options) {
9688
+ postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
9011
9689
  return __awaiter(this, void 0, void 0, function () {
9012
9690
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9013
9691
  var _a, _b, _c;
9014
9692
  return __generator(this, function (_d) {
9015
9693
  switch (_d.label) {
9016
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
9694
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options)];
9017
9695
  case 1:
9018
9696
  localVarAxiosArgs = _d.sent();
9019
9697
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9020
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9698
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9021
9699
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9022
9700
  }
9023
9701
  });
9024
9702
  });
9025
9703
  },
9026
9704
  /**
9027
- * Get 3CX Templates
9028
- * @summary Get 3CX Templates
9705
+ * Get Product For Customer
9706
+ * @summary Get Product For Customer
9707
+ * @param {number} customerId Customer ID
9708
+ * @param {string} sku Product SKU
9709
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9029
9710
  * @param {*} [options] Override http request option.
9030
9711
  * @throws {RequiredError}
9031
9712
  */
9032
- getGetTcxTemplates: function (options) {
9713
+ postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
9033
9714
  return __awaiter(this, void 0, void 0, function () {
9034
9715
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9035
9716
  var _a, _b, _c;
9036
9717
  return __generator(this, function (_d) {
9037
9718
  switch (_d.label) {
9038
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
9719
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options)];
9039
9720
  case 1:
9040
9721
  localVarAxiosArgs = _d.sent();
9041
9722
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9042
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9723
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProductForCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9043
9724
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9044
9725
  }
9045
9726
  });
@@ -9064,15 +9745,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
9064
9745
  getGetAttributeSets: function (options) {
9065
9746
  return localVarFp.getGetAttributeSets(options).then(function (request) { return request(axios, basePath); });
9066
9747
  },
9067
- /**
9068
- * Get Customer Price Lists
9069
- * @summary Get Customer Price Lists
9070
- * @param {*} [options] Override http request option.
9071
- * @throws {RequiredError}
9072
- */
9073
- getGetCustomerPriceLists: function (options) {
9074
- return localVarFp.getGetCustomerPriceLists(options).then(function (request) { return request(axios, basePath); });
9075
- },
9076
9748
  /**
9077
9749
  * Get Current Stock & Pricing
9078
9750
  * @summary Get Current Stock & Pricing
@@ -9087,14 +9759,11 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
9087
9759
  /**
9088
9760
  * Get Products
9089
9761
  * @summary Get Products
9090
- * @param {number} [pageSize] Number Of Results
9091
- * @param {number} [page] Page Number
9092
- * @param {string} [search] Search
9093
9762
  * @param {*} [options] Override http request option.
9094
9763
  * @throws {RequiredError}
9095
9764
  */
9096
- getGetProducts: function (pageSize, page, search, options) {
9097
- return localVarFp.getGetProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
9765
+ getGetProducts: function (options) {
9766
+ return localVarFp.getGetProducts(options).then(function (request) { return request(axios, basePath); });
9098
9767
  },
9099
9768
  /**
9100
9769
  * Get Current Stock & Pricing
@@ -9114,6 +9783,41 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
9114
9783
  getGetTcxTemplates: function (options) {
9115
9784
  return localVarFp.getGetTcxTemplates(options).then(function (request) { return request(axios, basePath); });
9116
9785
  },
9786
+ /**
9787
+ * Search Products
9788
+ * @summary Search Products
9789
+ * @param {number} [pageSize] Number Of Results
9790
+ * @param {number} [page] Page Number
9791
+ * @param {string} [search] Search
9792
+ * @param {*} [options] Override http request option.
9793
+ * @throws {RequiredError}
9794
+ */
9795
+ getSearchProducts: function (pageSize, page, search, options) {
9796
+ return localVarFp.getSearchProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
9797
+ },
9798
+ /**
9799
+ * Get Product
9800
+ * @summary Get Product
9801
+ * @param {string} sku Product SKU
9802
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9803
+ * @param {*} [options] Override http request option.
9804
+ * @throws {RequiredError}
9805
+ */
9806
+ postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
9807
+ return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
9808
+ },
9809
+ /**
9810
+ * Get Product For Customer
9811
+ * @summary Get Product For Customer
9812
+ * @param {number} customerId Customer ID
9813
+ * @param {string} sku Product SKU
9814
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9815
+ * @param {*} [options] Override http request option.
9816
+ * @throws {RequiredError}
9817
+ */
9818
+ postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
9819
+ return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
9820
+ },
9117
9821
  };
9118
9822
  };
9119
9823
  exports.ProductsApiFactory = ProductsApiFactory;
@@ -9139,17 +9843,6 @@ var ProductsApi = /** @class */ (function (_super) {
9139
9843
  var _this = this;
9140
9844
  return (0, exports.ProductsApiFp)(this.configuration).getGetAttributeSets(options).then(function (request) { return request(_this.axios, _this.basePath); });
9141
9845
  };
9142
- /**
9143
- * Get Customer Price Lists
9144
- * @summary Get Customer Price Lists
9145
- * @param {*} [options] Override http request option.
9146
- * @throws {RequiredError}
9147
- * @memberof ProductsApi
9148
- */
9149
- ProductsApi.prototype.getGetCustomerPriceLists = function (options) {
9150
- var _this = this;
9151
- return (0, exports.ProductsApiFp)(this.configuration).getGetCustomerPriceLists(options).then(function (request) { return request(_this.axios, _this.basePath); });
9152
- };
9153
9846
  /**
9154
9847
  * Get Current Stock & Pricing
9155
9848
  * @summary Get Current Stock & Pricing
@@ -9166,16 +9859,13 @@ var ProductsApi = /** @class */ (function (_super) {
9166
9859
  /**
9167
9860
  * Get Products
9168
9861
  * @summary Get Products
9169
- * @param {number} [pageSize] Number Of Results
9170
- * @param {number} [page] Page Number
9171
- * @param {string} [search] Search
9172
9862
  * @param {*} [options] Override http request option.
9173
9863
  * @throws {RequiredError}
9174
9864
  * @memberof ProductsApi
9175
9865
  */
9176
- ProductsApi.prototype.getGetProducts = function (pageSize, page, search, options) {
9866
+ ProductsApi.prototype.getGetProducts = function (options) {
9177
9867
  var _this = this;
9178
- return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
9868
+ return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(options).then(function (request) { return request(_this.axios, _this.basePath); });
9179
9869
  };
9180
9870
  /**
9181
9871
  * Get Current Stock & Pricing
@@ -9199,6 +9889,47 @@ var ProductsApi = /** @class */ (function (_super) {
9199
9889
  var _this = this;
9200
9890
  return (0, exports.ProductsApiFp)(this.configuration).getGetTcxTemplates(options).then(function (request) { return request(_this.axios, _this.basePath); });
9201
9891
  };
9892
+ /**
9893
+ * Search Products
9894
+ * @summary Search Products
9895
+ * @param {number} [pageSize] Number Of Results
9896
+ * @param {number} [page] Page Number
9897
+ * @param {string} [search] Search
9898
+ * @param {*} [options] Override http request option.
9899
+ * @throws {RequiredError}
9900
+ * @memberof ProductsApi
9901
+ */
9902
+ ProductsApi.prototype.getSearchProducts = function (pageSize, page, search, options) {
9903
+ var _this = this;
9904
+ return (0, exports.ProductsApiFp)(this.configuration).getSearchProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
9905
+ };
9906
+ /**
9907
+ * Get Product
9908
+ * @summary Get Product
9909
+ * @param {string} sku Product SKU
9910
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9911
+ * @param {*} [options] Override http request option.
9912
+ * @throws {RequiredError}
9913
+ * @memberof ProductsApi
9914
+ */
9915
+ ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
9916
+ var _this = this;
9917
+ return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
9918
+ };
9919
+ /**
9920
+ * Get Product For Customer
9921
+ * @summary Get Product For Customer
9922
+ * @param {number} customerId Customer ID
9923
+ * @param {string} sku Product SKU
9924
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9925
+ * @param {*} [options] Override http request option.
9926
+ * @throws {RequiredError}
9927
+ * @memberof ProductsApi
9928
+ */
9929
+ ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, options) {
9930
+ var _this = this;
9931
+ return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
9932
+ };
9202
9933
  return ProductsApi;
9203
9934
  }(base_1.BaseAPI));
9204
9935
  exports.ProductsApi = ProductsApi;
@@ -11924,6 +12655,131 @@ var SMSApi = /** @class */ (function (_super) {
11924
12655
  return SMSApi;
11925
12656
  }(base_1.BaseAPI));
11926
12657
  exports.SMSApi = SMSApi;
12658
+ /**
12659
+ * ShippingApi - axios parameter creator
12660
+ * @export
12661
+ */
12662
+ var ShippingApiAxiosParamCreator = function (configuration) {
12663
+ var _this = this;
12664
+ return {
12665
+ /**
12666
+ * Get Shipping Services
12667
+ * @summary Get Shipping Services
12668
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12669
+ * @param {*} [options] Override http request option.
12670
+ * @throws {RequiredError}
12671
+ */
12672
+ postGetShippingServices: function (shippingInformationDTO_1) {
12673
+ var args_1 = [];
12674
+ for (var _i = 1; _i < arguments.length; _i++) {
12675
+ args_1[_i - 1] = arguments[_i];
12676
+ }
12677
+ return __awaiter(_this, __spreadArray([shippingInformationDTO_1], args_1, true), void 0, function (shippingInformationDTO, options) {
12678
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12679
+ if (options === void 0) { options = {}; }
12680
+ return __generator(this, function (_a) {
12681
+ localVarPath = "/shipping/services";
12682
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12683
+ if (configuration) {
12684
+ baseOptions = configuration.baseOptions;
12685
+ }
12686
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
12687
+ localVarHeaderParameter = {};
12688
+ localVarQueryParameter = {};
12689
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12690
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12691
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12692
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12693
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingInformationDTO, localVarRequestOptions, configuration);
12694
+ return [2 /*return*/, {
12695
+ url: (0, common_1.toPathString)(localVarUrlObj),
12696
+ options: localVarRequestOptions,
12697
+ }];
12698
+ });
12699
+ });
12700
+ },
12701
+ };
12702
+ };
12703
+ exports.ShippingApiAxiosParamCreator = ShippingApiAxiosParamCreator;
12704
+ /**
12705
+ * ShippingApi - functional programming interface
12706
+ * @export
12707
+ */
12708
+ var ShippingApiFp = function (configuration) {
12709
+ var localVarAxiosParamCreator = (0, exports.ShippingApiAxiosParamCreator)(configuration);
12710
+ return {
12711
+ /**
12712
+ * Get Shipping Services
12713
+ * @summary Get Shipping Services
12714
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12715
+ * @param {*} [options] Override http request option.
12716
+ * @throws {RequiredError}
12717
+ */
12718
+ postGetShippingServices: function (shippingInformationDTO, options) {
12719
+ return __awaiter(this, void 0, void 0, function () {
12720
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12721
+ var _a, _b, _c;
12722
+ return __generator(this, function (_d) {
12723
+ switch (_d.label) {
12724
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options)];
12725
+ case 1:
12726
+ localVarAxiosArgs = _d.sent();
12727
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12728
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShippingApi.postGetShippingServices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12729
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12730
+ }
12731
+ });
12732
+ });
12733
+ },
12734
+ };
12735
+ };
12736
+ exports.ShippingApiFp = ShippingApiFp;
12737
+ /**
12738
+ * ShippingApi - factory interface
12739
+ * @export
12740
+ */
12741
+ var ShippingApiFactory = function (configuration, basePath, axios) {
12742
+ var localVarFp = (0, exports.ShippingApiFp)(configuration);
12743
+ return {
12744
+ /**
12745
+ * Get Shipping Services
12746
+ * @summary Get Shipping Services
12747
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12748
+ * @param {*} [options] Override http request option.
12749
+ * @throws {RequiredError}
12750
+ */
12751
+ postGetShippingServices: function (shippingInformationDTO, options) {
12752
+ return localVarFp.postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(axios, basePath); });
12753
+ },
12754
+ };
12755
+ };
12756
+ exports.ShippingApiFactory = ShippingApiFactory;
12757
+ /**
12758
+ * ShippingApi - object-oriented interface
12759
+ * @export
12760
+ * @class ShippingApi
12761
+ * @extends {BaseAPI}
12762
+ */
12763
+ var ShippingApi = /** @class */ (function (_super) {
12764
+ __extends(ShippingApi, _super);
12765
+ function ShippingApi() {
12766
+ return _super !== null && _super.apply(this, arguments) || this;
12767
+ }
12768
+ /**
12769
+ * Get Shipping Services
12770
+ * @summary Get Shipping Services
12771
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12772
+ * @param {*} [options] Override http request option.
12773
+ * @throws {RequiredError}
12774
+ * @memberof ShippingApi
12775
+ */
12776
+ ShippingApi.prototype.postGetShippingServices = function (shippingInformationDTO, options) {
12777
+ var _this = this;
12778
+ return (0, exports.ShippingApiFp)(this.configuration).postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
12779
+ };
12780
+ return ShippingApi;
12781
+ }(base_1.BaseAPI));
12782
+ exports.ShippingApi = ShippingApi;
11927
12783
  /**
11928
12784
  * StockManagementApi - axios parameter creator
11929
12785
  * @export