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