yellowgrid-api-ts 3.1.4 → 3.1.5-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 (57) hide show
  1. package/.openapi-generator/FILES +213 -195
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +34 -7
  4. package/api.ts +1865 -254
  5. package/base.ts +1 -1
  6. package/common.ts +5 -5
  7. package/config.json +3 -3
  8. package/configuration.ts +1 -1
  9. package/dist/api.d.ts +1343 -146
  10. package/dist/api.js +1135 -197
  11. package/dist/base.d.ts +1 -1
  12. package/dist/base.js +1 -1
  13. package/dist/common.d.ts +1 -1
  14. package/dist/common.js +1 -1
  15. package/dist/configuration.d.ts +1 -1
  16. package/dist/configuration.js +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +1 -1
  19. package/docs/AbstractOrderRequestDTO.md +33 -0
  20. package/docs/AccountDetailedSummaryDTO.md +39 -0
  21. package/docs/AccountsApi.md +103 -0
  22. package/docs/AddressModel.md +2 -0
  23. package/docs/AdminItemRequestDTO.md +39 -0
  24. package/docs/AdminOrderRequestDTO.md +45 -0
  25. package/docs/AdminUserModel.md +29 -0
  26. package/docs/BasicItemDTO.md +23 -0
  27. package/docs/BasicProductDTO.md +23 -0
  28. package/docs/Class3CXApi.md +0 -55
  29. package/docs/ClientDetailsModel.md +0 -2
  30. package/docs/CourierPriceEntity.md +39 -0
  31. package/docs/CustomerItemRequestDTO.md +35 -0
  32. package/docs/CustomerOrderRequestDTO.md +33 -0
  33. package/docs/ItemDTO.md +12 -4
  34. package/docs/ItemEntity.md +2 -0
  35. package/docs/LinkedOrderEntity.md +23 -0
  36. package/docs/OrderSummaryDTO.md +8 -0
  37. package/docs/OrderTotalModel.md +2 -0
  38. package/docs/OrdersApi.md +356 -4
  39. package/docs/PostGetProductForCustomerRequest.md +24 -0
  40. package/docs/ProductSearchResultsModel.md +1 -1
  41. package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +5 -3
  42. package/docs/ProductsApi.md +164 -43
  43. package/docs/ProvisioningApi.md +4 -4
  44. package/docs/{ProvisioningEntity.md → ProvisioningModel.md} +3 -3
  45. package/docs/ShipmentEntity.md +2 -2
  46. package/docs/ShippingApi.md +63 -0
  47. package/docs/ShippingConsignmentModel.md +26 -0
  48. package/docs/ShippingInformationDTO.md +25 -0
  49. package/docs/ShippingServiceDTO.md +23 -0
  50. package/docs/ShippingServiceModel.md +31 -0
  51. package/docs/{GetGetPasswordHash200Response.md → ShippingServicesModel.md} +5 -5
  52. package/docs/StockManagementApi.md +2 -2
  53. package/docs/TcxSbcDTO.md +31 -0
  54. package/docs/TcxSbcModel.md +1 -1
  55. package/index.ts +1 -1
  56. package/openapitools.json +1 -1
  57. 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.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = void 0;
88
- exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = void 0;
89
- exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = void 0;
87
+ exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = exports.AdminUserModelRoleEnum = void 0;
88
+ exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = void 0;
89
+ exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = void 0;
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
@@ -1770,45 +1944,6 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
1770
1944
  });
1771
1945
  });
1772
1946
  },
1773
- /**
1774
- * Generate a 3CX hashed password for 3CX installation
1775
- * @summary Convert a password to a hashed 3CX password
1776
- * @param {string} password Desired 3CX web access password
1777
- * @param {*} [options] Override http request option.
1778
- * @throws {RequiredError}
1779
- */
1780
- getGetPasswordHash: function (password_1) {
1781
- var args_1 = [];
1782
- for (var _i = 1; _i < arguments.length; _i++) {
1783
- args_1[_i - 1] = arguments[_i];
1784
- }
1785
- return __awaiter(_this, __spreadArray([password_1], args_1, true), void 0, function (password, options) {
1786
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1787
- if (options === void 0) { options = {}; }
1788
- return __generator(this, function (_a) {
1789
- // verify required parameter 'password' is not null or undefined
1790
- (0, common_1.assertParamExists)('getGetPasswordHash', 'password', password);
1791
- localVarPath = "/tcx/pwd2hash";
1792
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1793
- if (configuration) {
1794
- baseOptions = configuration.baseOptions;
1795
- }
1796
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1797
- localVarHeaderParameter = {};
1798
- localVarQueryParameter = {};
1799
- if (password !== undefined) {
1800
- localVarQueryParameter['password'] = password;
1801
- }
1802
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1803
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1804
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1805
- return [2 /*return*/, {
1806
- url: (0, common_1.toPathString)(localVarUrlObj),
1807
- options: localVarRequestOptions,
1808
- }];
1809
- });
1810
- });
1811
- },
1812
1947
  /**
1813
1948
  * Get Bulk 3CX Licence Details
1814
1949
  * @summary Get bulk 3CX Licence Details
@@ -1878,29 +2013,6 @@ var Class3CXApiFp = function (configuration) {
1878
2013
  });
1879
2014
  });
1880
2015
  },
1881
- /**
1882
- * Generate a 3CX hashed password for 3CX installation
1883
- * @summary Convert a password to a hashed 3CX password
1884
- * @param {string} password Desired 3CX web access password
1885
- * @param {*} [options] Override http request option.
1886
- * @throws {RequiredError}
1887
- */
1888
- getGetPasswordHash: function (password, options) {
1889
- return __awaiter(this, void 0, void 0, function () {
1890
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1891
- var _a, _b, _c;
1892
- return __generator(this, function (_d) {
1893
- switch (_d.label) {
1894
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetPasswordHash(password, options)];
1895
- case 1:
1896
- localVarAxiosArgs = _d.sent();
1897
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1898
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.getGetPasswordHash']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1899
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1900
- }
1901
- });
1902
- });
1903
- },
1904
2016
  /**
1905
2017
  * Get Bulk 3CX Licence Details
1906
2018
  * @summary Get bulk 3CX Licence Details
@@ -1944,16 +2056,6 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
1944
2056
  getGetLicenceDetails: function (key, options) {
1945
2057
  return localVarFp.getGetLicenceDetails(key, options).then(function (request) { return request(axios, basePath); });
1946
2058
  },
1947
- /**
1948
- * Generate a 3CX hashed password for 3CX installation
1949
- * @summary Convert a password to a hashed 3CX password
1950
- * @param {string} password Desired 3CX web access password
1951
- * @param {*} [options] Override http request option.
1952
- * @throws {RequiredError}
1953
- */
1954
- getGetPasswordHash: function (password, options) {
1955
- return localVarFp.getGetPasswordHash(password, options).then(function (request) { return request(axios, basePath); });
1956
- },
1957
2059
  /**
1958
2060
  * Get Bulk 3CX Licence Details
1959
2061
  * @summary Get bulk 3CX Licence Details
@@ -1990,18 +2092,6 @@ var Class3CXApi = /** @class */ (function (_super) {
1990
2092
  var _this = this;
1991
2093
  return (0, exports.Class3CXApiFp)(this.configuration).getGetLicenceDetails(key, options).then(function (request) { return request(_this.axios, _this.basePath); });
1992
2094
  };
1993
- /**
1994
- * Generate a 3CX hashed password for 3CX installation
1995
- * @summary Convert a password to a hashed 3CX password
1996
- * @param {string} password Desired 3CX web access password
1997
- * @param {*} [options] Override http request option.
1998
- * @throws {RequiredError}
1999
- * @memberof Class3CXApi
2000
- */
2001
- Class3CXApi.prototype.getGetPasswordHash = function (password, options) {
2002
- var _this = this;
2003
- return (0, exports.Class3CXApiFp)(this.configuration).getGetPasswordHash(password, options).then(function (request) { return request(_this.axios, _this.basePath); });
2004
- };
2005
2095
  /**
2006
2096
  * Get Bulk 3CX Licence Details
2007
2097
  * @summary Get bulk 3CX Licence Details
@@ -7923,11 +8013,12 @@ var OrdersApiAxiosParamCreator = function (configuration) {
7923
8013
  return {
7924
8014
  /**
7925
8015
  * Delete Orders
8016
+ * @summary Delete Orders
7926
8017
  * @param {number} id Order ID
7927
8018
  * @param {*} [options] Override http request option.
7928
8019
  * @throws {RequiredError}
7929
8020
  */
7930
- deleteDeleteOrder: function (id_1) {
8021
+ deleteUpdateOrder: function (id_1) {
7931
8022
  var args_1 = [];
7932
8023
  for (var _i = 1; _i < arguments.length; _i++) {
7933
8024
  args_1[_i - 1] = arguments[_i];
@@ -7937,7 +8028,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
7937
8028
  if (options === void 0) { options = {}; }
7938
8029
  return __generator(this, function (_a) {
7939
8030
  // verify required parameter 'id' is not null or undefined
7940
- (0, common_1.assertParamExists)('deleteDeleteOrder', 'id', id);
8031
+ (0, common_1.assertParamExists)('deleteUpdateOrder', 'id', id);
7941
8032
  localVarPath = "/orders/{id}"
7942
8033
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
7943
8034
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7957,6 +8048,80 @@ var OrdersApiAxiosParamCreator = function (configuration) {
7957
8048
  });
7958
8049
  });
7959
8050
  },
8051
+ /**
8052
+ * Get Editable Order (Admin)
8053
+ * @summary Get Editable Order (Admin)
8054
+ * @param {number} id Order ID
8055
+ * @param {*} [options] Override http request option.
8056
+ * @throws {RequiredError}
8057
+ */
8058
+ getGetAdminEditableOrder: function (id_1) {
8059
+ var args_1 = [];
8060
+ for (var _i = 1; _i < arguments.length; _i++) {
8061
+ args_1[_i - 1] = arguments[_i];
8062
+ }
8063
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8064
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8065
+ if (options === void 0) { options = {}; }
8066
+ return __generator(this, function (_a) {
8067
+ // verify required parameter 'id' is not null or undefined
8068
+ (0, common_1.assertParamExists)('getGetAdminEditableOrder', 'id', id);
8069
+ localVarPath = "/admin/orders/{id}/views/editable"
8070
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8071
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8072
+ if (configuration) {
8073
+ baseOptions = configuration.baseOptions;
8074
+ }
8075
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8076
+ localVarHeaderParameter = {};
8077
+ localVarQueryParameter = {};
8078
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8079
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8080
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8081
+ return [2 /*return*/, {
8082
+ url: (0, common_1.toPathString)(localVarUrlObj),
8083
+ options: localVarRequestOptions,
8084
+ }];
8085
+ });
8086
+ });
8087
+ },
8088
+ /**
8089
+ * Get Editable Order
8090
+ * @summary Get Editable Order
8091
+ * @param {number} id Order ID
8092
+ * @param {*} [options] Override http request option.
8093
+ * @throws {RequiredError}
8094
+ */
8095
+ getGetEditableOrder: function (id_1) {
8096
+ var args_1 = [];
8097
+ for (var _i = 1; _i < arguments.length; _i++) {
8098
+ args_1[_i - 1] = arguments[_i];
8099
+ }
8100
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8101
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8102
+ if (options === void 0) { options = {}; }
8103
+ return __generator(this, function (_a) {
8104
+ // verify required parameter 'id' is not null or undefined
8105
+ (0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
8106
+ localVarPath = "/orders/{id}/views/editable"
8107
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8108
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8109
+ if (configuration) {
8110
+ baseOptions = configuration.baseOptions;
8111
+ }
8112
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8113
+ localVarHeaderParameter = {};
8114
+ localVarQueryParameter = {};
8115
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8116
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8117
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8118
+ return [2 /*return*/, {
8119
+ url: (0, common_1.toPathString)(localVarUrlObj),
8120
+ options: localVarRequestOptions,
8121
+ }];
8122
+ });
8123
+ });
8124
+ },
7960
8125
  /**
7961
8126
  * Get Orders
7962
8127
  * @summary Get Orders
@@ -8018,33 +8183,248 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8018
8183
  });
8019
8184
  });
8020
8185
  },
8021
- };
8022
- };
8023
- exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
8024
- /**
8025
- * OrdersApi - functional programming interface
8026
- * @export
8027
- */
8028
- var OrdersApiFp = function (configuration) {
8029
- var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
8030
- return {
8031
8186
  /**
8032
- * Delete Orders
8187
+ * Create An Order (Admin)
8188
+ * @summary Create An Order (Admin)
8189
+ * @param {boolean} [readonly] Readonly Order
8190
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8191
+ * @param {*} [options] Override http request option.
8192
+ * @throws {RequiredError}
8193
+ */
8194
+ postCreateAdminOrder: function (readonly_1, adminOrderRequestDTO_1) {
8195
+ var args_1 = [];
8196
+ for (var _i = 2; _i < arguments.length; _i++) {
8197
+ args_1[_i - 2] = arguments[_i];
8198
+ }
8199
+ return __awaiter(_this, __spreadArray([readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (readonly, adminOrderRequestDTO, options) {
8200
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8201
+ if (options === void 0) { options = {}; }
8202
+ return __generator(this, function (_a) {
8203
+ localVarPath = "/admin/orders";
8204
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8205
+ if (configuration) {
8206
+ baseOptions = configuration.baseOptions;
8207
+ }
8208
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8209
+ localVarHeaderParameter = {};
8210
+ localVarQueryParameter = {};
8211
+ if (readonly !== undefined) {
8212
+ localVarQueryParameter['readonly'] = readonly;
8213
+ }
8214
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8215
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8216
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8217
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8218
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
8219
+ return [2 /*return*/, {
8220
+ url: (0, common_1.toPathString)(localVarUrlObj),
8221
+ options: localVarRequestOptions,
8222
+ }];
8223
+ });
8224
+ });
8225
+ },
8226
+ /**
8227
+ * Create An Order
8228
+ * @summary Create An Order
8229
+ * @param {boolean} [readonly] Readonly Order
8230
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8231
+ * @param {*} [options] Override http request option.
8232
+ * @throws {RequiredError}
8233
+ */
8234
+ postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
8235
+ var args_1 = [];
8236
+ for (var _i = 2; _i < arguments.length; _i++) {
8237
+ args_1[_i - 2] = arguments[_i];
8238
+ }
8239
+ return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
8240
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8241
+ if (options === void 0) { options = {}; }
8242
+ return __generator(this, function (_a) {
8243
+ localVarPath = "/orders";
8244
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8245
+ if (configuration) {
8246
+ baseOptions = configuration.baseOptions;
8247
+ }
8248
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8249
+ localVarHeaderParameter = {};
8250
+ localVarQueryParameter = {};
8251
+ if (readonly !== undefined) {
8252
+ localVarQueryParameter['readonly'] = readonly;
8253
+ }
8254
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8255
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8256
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8257
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8258
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
8259
+ return [2 /*return*/, {
8260
+ url: (0, common_1.toPathString)(localVarUrlObj),
8261
+ options: localVarRequestOptions,
8262
+ }];
8263
+ });
8264
+ });
8265
+ },
8266
+ /**
8267
+ * Update An Order (Admin)
8268
+ * @summary Update An Order (Admin)
8269
+ * @param {number} id Order ID
8270
+ * @param {boolean} [readonly] Readonly Order
8271
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8272
+ * @param {*} [options] Override http request option.
8273
+ * @throws {RequiredError}
8274
+ */
8275
+ putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
8276
+ var args_1 = [];
8277
+ for (var _i = 3; _i < arguments.length; _i++) {
8278
+ args_1[_i - 3] = arguments[_i];
8279
+ }
8280
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
8281
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8282
+ if (options === void 0) { options = {}; }
8283
+ return __generator(this, function (_a) {
8284
+ // verify required parameter 'id' is not null or undefined
8285
+ (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
8286
+ localVarPath = "/admin/orders/{id}"
8287
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8288
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8289
+ if (configuration) {
8290
+ baseOptions = configuration.baseOptions;
8291
+ }
8292
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
8293
+ localVarHeaderParameter = {};
8294
+ localVarQueryParameter = {};
8295
+ if (readonly !== undefined) {
8296
+ localVarQueryParameter['readonly'] = readonly;
8297
+ }
8298
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8299
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8300
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8301
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8302
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
8303
+ return [2 /*return*/, {
8304
+ url: (0, common_1.toPathString)(localVarUrlObj),
8305
+ options: localVarRequestOptions,
8306
+ }];
8307
+ });
8308
+ });
8309
+ },
8310
+ /**
8311
+ * Update An Order
8312
+ * @summary Update An Order
8033
8313
  * @param {number} id Order ID
8314
+ * @param {boolean} [readonly] Readonly Order
8315
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8034
8316
  * @param {*} [options] Override http request option.
8035
8317
  * @throws {RequiredError}
8036
8318
  */
8037
- deleteDeleteOrder: function (id, options) {
8319
+ putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
8320
+ var args_1 = [];
8321
+ for (var _i = 3; _i < arguments.length; _i++) {
8322
+ args_1[_i - 3] = arguments[_i];
8323
+ }
8324
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
8325
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8326
+ if (options === void 0) { options = {}; }
8327
+ return __generator(this, function (_a) {
8328
+ // verify required parameter 'id' is not null or undefined
8329
+ (0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
8330
+ localVarPath = "/orders/{id}"
8331
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8332
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8333
+ if (configuration) {
8334
+ baseOptions = configuration.baseOptions;
8335
+ }
8336
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
8337
+ localVarHeaderParameter = {};
8338
+ localVarQueryParameter = {};
8339
+ if (readonly !== undefined) {
8340
+ localVarQueryParameter['readonly'] = readonly;
8341
+ }
8342
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8343
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8344
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8345
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8346
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
8347
+ return [2 /*return*/, {
8348
+ url: (0, common_1.toPathString)(localVarUrlObj),
8349
+ options: localVarRequestOptions,
8350
+ }];
8351
+ });
8352
+ });
8353
+ },
8354
+ };
8355
+ };
8356
+ exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
8357
+ /**
8358
+ * OrdersApi - functional programming interface
8359
+ * @export
8360
+ */
8361
+ var OrdersApiFp = function (configuration) {
8362
+ var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
8363
+ return {
8364
+ /**
8365
+ * Delete Orders
8366
+ * @summary Delete Orders
8367
+ * @param {number} id Order ID
8368
+ * @param {*} [options] Override http request option.
8369
+ * @throws {RequiredError}
8370
+ */
8371
+ deleteUpdateOrder: function (id, options) {
8038
8372
  return __awaiter(this, void 0, void 0, function () {
8039
8373
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8040
8374
  var _a, _b, _c;
8041
8375
  return __generator(this, function (_d) {
8042
8376
  switch (_d.label) {
8043
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteOrder(id, options)];
8377
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
8044
8378
  case 1:
8045
8379
  localVarAxiosArgs = _d.sent();
8046
8380
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8047
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteDeleteOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8381
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8382
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8383
+ }
8384
+ });
8385
+ });
8386
+ },
8387
+ /**
8388
+ * Get Editable Order (Admin)
8389
+ * @summary Get Editable Order (Admin)
8390
+ * @param {number} id Order ID
8391
+ * @param {*} [options] Override http request option.
8392
+ * @throws {RequiredError}
8393
+ */
8394
+ getGetAdminEditableOrder: function (id, options) {
8395
+ return __awaiter(this, void 0, void 0, function () {
8396
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8397
+ var _a, _b, _c;
8398
+ return __generator(this, function (_d) {
8399
+ switch (_d.label) {
8400
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminEditableOrder(id, options)];
8401
+ case 1:
8402
+ localVarAxiosArgs = _d.sent();
8403
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8404
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetAdminEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8405
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8406
+ }
8407
+ });
8408
+ });
8409
+ },
8410
+ /**
8411
+ * Get Editable Order
8412
+ * @summary Get Editable Order
8413
+ * @param {number} id Order ID
8414
+ * @param {*} [options] Override http request option.
8415
+ * @throws {RequiredError}
8416
+ */
8417
+ getGetEditableOrder: function (id, options) {
8418
+ return __awaiter(this, void 0, void 0, function () {
8419
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8420
+ var _a, _b, _c;
8421
+ return __generator(this, function (_d) {
8422
+ switch (_d.label) {
8423
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
8424
+ case 1:
8425
+ localVarAxiosArgs = _d.sent();
8426
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8427
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8048
8428
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8049
8429
  }
8050
8430
  });
@@ -8079,6 +8459,104 @@ var OrdersApiFp = function (configuration) {
8079
8459
  });
8080
8460
  });
8081
8461
  },
8462
+ /**
8463
+ * Create An Order (Admin)
8464
+ * @summary Create An Order (Admin)
8465
+ * @param {boolean} [readonly] Readonly Order
8466
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8467
+ * @param {*} [options] Override http request option.
8468
+ * @throws {RequiredError}
8469
+ */
8470
+ postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
8471
+ return __awaiter(this, void 0, void 0, function () {
8472
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8473
+ var _a, _b, _c;
8474
+ return __generator(this, function (_d) {
8475
+ switch (_d.label) {
8476
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
8477
+ case 1:
8478
+ localVarAxiosArgs = _d.sent();
8479
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8480
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8481
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8482
+ }
8483
+ });
8484
+ });
8485
+ },
8486
+ /**
8487
+ * Create An Order
8488
+ * @summary Create An Order
8489
+ * @param {boolean} [readonly] Readonly Order
8490
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8491
+ * @param {*} [options] Override http request option.
8492
+ * @throws {RequiredError}
8493
+ */
8494
+ postGetOrders: function (readonly, customerOrderRequestDTO, options) {
8495
+ return __awaiter(this, void 0, void 0, function () {
8496
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8497
+ var _a, _b, _c;
8498
+ return __generator(this, function (_d) {
8499
+ switch (_d.label) {
8500
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
8501
+ case 1:
8502
+ localVarAxiosArgs = _d.sent();
8503
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8504
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8505
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8506
+ }
8507
+ });
8508
+ });
8509
+ },
8510
+ /**
8511
+ * Update An Order (Admin)
8512
+ * @summary Update An Order (Admin)
8513
+ * @param {number} id Order ID
8514
+ * @param {boolean} [readonly] Readonly Order
8515
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8516
+ * @param {*} [options] Override http request option.
8517
+ * @throws {RequiredError}
8518
+ */
8519
+ putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
8520
+ return __awaiter(this, void 0, void 0, function () {
8521
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8522
+ var _a, _b, _c;
8523
+ return __generator(this, function (_d) {
8524
+ switch (_d.label) {
8525
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
8526
+ case 1:
8527
+ localVarAxiosArgs = _d.sent();
8528
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8529
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8530
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8531
+ }
8532
+ });
8533
+ });
8534
+ },
8535
+ /**
8536
+ * Update An Order
8537
+ * @summary Update An Order
8538
+ * @param {number} id Order ID
8539
+ * @param {boolean} [readonly] Readonly Order
8540
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8541
+ * @param {*} [options] Override http request option.
8542
+ * @throws {RequiredError}
8543
+ */
8544
+ putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
8545
+ return __awaiter(this, void 0, void 0, function () {
8546
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8547
+ var _a, _b, _c;
8548
+ return __generator(this, function (_d) {
8549
+ switch (_d.label) {
8550
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options)];
8551
+ case 1:
8552
+ localVarAxiosArgs = _d.sent();
8553
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8554
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8555
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8556
+ }
8557
+ });
8558
+ });
8559
+ },
8082
8560
  };
8083
8561
  };
8084
8562
  exports.OrdersApiFp = OrdersApiFp;
@@ -8091,12 +8569,33 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
8091
8569
  return {
8092
8570
  /**
8093
8571
  * Delete Orders
8572
+ * @summary Delete Orders
8573
+ * @param {number} id Order ID
8574
+ * @param {*} [options] Override http request option.
8575
+ * @throws {RequiredError}
8576
+ */
8577
+ deleteUpdateOrder: function (id, options) {
8578
+ return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
8579
+ },
8580
+ /**
8581
+ * Get Editable Order (Admin)
8582
+ * @summary Get Editable Order (Admin)
8094
8583
  * @param {number} id Order ID
8095
8584
  * @param {*} [options] Override http request option.
8096
8585
  * @throws {RequiredError}
8097
8586
  */
8098
- deleteDeleteOrder: function (id, options) {
8099
- return localVarFp.deleteDeleteOrder(id, options).then(function (request) { return request(axios, basePath); });
8587
+ getGetAdminEditableOrder: function (id, options) {
8588
+ return localVarFp.getGetAdminEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
8589
+ },
8590
+ /**
8591
+ * Get Editable Order
8592
+ * @summary Get Editable Order
8593
+ * @param {number} id Order ID
8594
+ * @param {*} [options] Override http request option.
8595
+ * @throws {RequiredError}
8596
+ */
8597
+ getGetEditableOrder: function (id, options) {
8598
+ return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
8100
8599
  },
8101
8600
  /**
8102
8601
  * Get Orders
@@ -8114,6 +8613,52 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
8114
8613
  getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
8115
8614
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
8116
8615
  },
8616
+ /**
8617
+ * Create An Order (Admin)
8618
+ * @summary Create An Order (Admin)
8619
+ * @param {boolean} [readonly] Readonly Order
8620
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8621
+ * @param {*} [options] Override http request option.
8622
+ * @throws {RequiredError}
8623
+ */
8624
+ postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
8625
+ return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8626
+ },
8627
+ /**
8628
+ * Create An Order
8629
+ * @summary Create An Order
8630
+ * @param {boolean} [readonly] Readonly Order
8631
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8632
+ * @param {*} [options] Override http request option.
8633
+ * @throws {RequiredError}
8634
+ */
8635
+ postGetOrders: function (readonly, customerOrderRequestDTO, options) {
8636
+ return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8637
+ },
8638
+ /**
8639
+ * Update An Order (Admin)
8640
+ * @summary Update An Order (Admin)
8641
+ * @param {number} id Order ID
8642
+ * @param {boolean} [readonly] Readonly Order
8643
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8644
+ * @param {*} [options] Override http request option.
8645
+ * @throws {RequiredError}
8646
+ */
8647
+ putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
8648
+ return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8649
+ },
8650
+ /**
8651
+ * Update An Order
8652
+ * @summary Update An Order
8653
+ * @param {number} id Order ID
8654
+ * @param {boolean} [readonly] Readonly Order
8655
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8656
+ * @param {*} [options] Override http request option.
8657
+ * @throws {RequiredError}
8658
+ */
8659
+ putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
8660
+ return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8661
+ },
8117
8662
  };
8118
8663
  };
8119
8664
  exports.OrdersApiFactory = OrdersApiFactory;
@@ -8130,14 +8675,39 @@ var OrdersApi = /** @class */ (function (_super) {
8130
8675
  }
8131
8676
  /**
8132
8677
  * Delete Orders
8678
+ * @summary Delete Orders
8679
+ * @param {number} id Order ID
8680
+ * @param {*} [options] Override http request option.
8681
+ * @throws {RequiredError}
8682
+ * @memberof OrdersApi
8683
+ */
8684
+ OrdersApi.prototype.deleteUpdateOrder = function (id, options) {
8685
+ var _this = this;
8686
+ return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8687
+ };
8688
+ /**
8689
+ * Get Editable Order (Admin)
8690
+ * @summary Get Editable Order (Admin)
8133
8691
  * @param {number} id Order ID
8134
8692
  * @param {*} [options] Override http request option.
8135
8693
  * @throws {RequiredError}
8136
8694
  * @memberof OrdersApi
8137
8695
  */
8138
- OrdersApi.prototype.deleteDeleteOrder = function (id, options) {
8696
+ OrdersApi.prototype.getGetAdminEditableOrder = function (id, options) {
8139
8697
  var _this = this;
8140
- return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8698
+ return (0, exports.OrdersApiFp)(this.configuration).getGetAdminEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8699
+ };
8700
+ /**
8701
+ * Get Editable Order
8702
+ * @summary Get Editable Order
8703
+ * @param {number} id Order ID
8704
+ * @param {*} [options] Override http request option.
8705
+ * @throws {RequiredError}
8706
+ * @memberof OrdersApi
8707
+ */
8708
+ OrdersApi.prototype.getGetEditableOrder = function (id, options) {
8709
+ var _this = this;
8710
+ return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8141
8711
  };
8142
8712
  /**
8143
8713
  * Get Orders
@@ -8157,6 +8727,60 @@ var OrdersApi = /** @class */ (function (_super) {
8157
8727
  var _this = this;
8158
8728
  return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8159
8729
  };
8730
+ /**
8731
+ * Create An Order (Admin)
8732
+ * @summary Create An Order (Admin)
8733
+ * @param {boolean} [readonly] Readonly Order
8734
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8735
+ * @param {*} [options] Override http request option.
8736
+ * @throws {RequiredError}
8737
+ * @memberof OrdersApi
8738
+ */
8739
+ OrdersApi.prototype.postCreateAdminOrder = function (readonly, adminOrderRequestDTO, options) {
8740
+ var _this = this;
8741
+ return (0, exports.OrdersApiFp)(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8742
+ };
8743
+ /**
8744
+ * Create An Order
8745
+ * @summary Create An Order
8746
+ * @param {boolean} [readonly] Readonly Order
8747
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8748
+ * @param {*} [options] Override http request option.
8749
+ * @throws {RequiredError}
8750
+ * @memberof OrdersApi
8751
+ */
8752
+ OrdersApi.prototype.postGetOrders = function (readonly, customerOrderRequestDTO, options) {
8753
+ var _this = this;
8754
+ return (0, exports.OrdersApiFp)(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8755
+ };
8756
+ /**
8757
+ * Update An Order (Admin)
8758
+ * @summary Update An Order (Admin)
8759
+ * @param {number} id Order ID
8760
+ * @param {boolean} [readonly] Readonly Order
8761
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8762
+ * @param {*} [options] Override http request option.
8763
+ * @throws {RequiredError}
8764
+ * @memberof OrdersApi
8765
+ */
8766
+ OrdersApi.prototype.putUpdateAdminOrder = function (id, readonly, adminOrderRequestDTO, options) {
8767
+ var _this = this;
8768
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8769
+ };
8770
+ /**
8771
+ * Update An Order
8772
+ * @summary Update An Order
8773
+ * @param {number} id Order ID
8774
+ * @param {boolean} [readonly] Readonly Order
8775
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8776
+ * @param {*} [options] Override http request option.
8777
+ * @throws {RequiredError}
8778
+ * @memberof OrdersApi
8779
+ */
8780
+ OrdersApi.prototype.putUpdateOrder = function (id, readonly, customerOrderRequestDTO, options) {
8781
+ var _this = this;
8782
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8783
+ };
8160
8784
  return OrdersApi;
8161
8785
  }(base_1.BaseAPI));
8162
8786
  exports.OrdersApi = OrdersApi;
@@ -8584,12 +9208,52 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8584
9208
  });
8585
9209
  },
8586
9210
  /**
8587
- * Get Customer Price Lists
8588
- * @summary Get Customer Price Lists
9211
+ * Get Current Stock & Pricing
9212
+ * @summary Get Current Stock & Pricing
9213
+ * @param {GetGetLegacyStockListFormatEnum} format File Format
8589
9214
  * @param {*} [options] Override http request option.
9215
+ * @deprecated
8590
9216
  * @throws {RequiredError}
8591
9217
  */
8592
- getGetCustomerPriceLists: function () {
9218
+ getGetLegacyStockList: function (format_1) {
9219
+ var args_1 = [];
9220
+ for (var _i = 1; _i < arguments.length; _i++) {
9221
+ args_1[_i - 1] = arguments[_i];
9222
+ }
9223
+ return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
9224
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9225
+ if (options === void 0) { options = {}; }
9226
+ return __generator(this, function (_a) {
9227
+ // verify required parameter 'format' is not null or undefined
9228
+ (0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
9229
+ localVarPath = "/products/stock/legacy";
9230
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9231
+ if (configuration) {
9232
+ baseOptions = configuration.baseOptions;
9233
+ }
9234
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9235
+ localVarHeaderParameter = {};
9236
+ localVarQueryParameter = {};
9237
+ if (format !== undefined) {
9238
+ localVarQueryParameter['format'] = format;
9239
+ }
9240
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9241
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9242
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9243
+ return [2 /*return*/, {
9244
+ url: (0, common_1.toPathString)(localVarUrlObj),
9245
+ options: localVarRequestOptions,
9246
+ }];
9247
+ });
9248
+ });
9249
+ },
9250
+ /**
9251
+ * Get Products
9252
+ * @summary Get Products
9253
+ * @param {*} [options] Override http request option.
9254
+ * @throws {RequiredError}
9255
+ */
9256
+ getGetProducts: function () {
8593
9257
  var args_1 = [];
8594
9258
  for (var _i = 0; _i < arguments.length; _i++) {
8595
9259
  args_1[_i] = arguments[_i];
@@ -8598,7 +9262,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8598
9262
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8599
9263
  if (options === void 0) { options = {}; }
8600
9264
  return __generator(this, function (_a) {
8601
- localVarPath = "/products/prices/lists";
9265
+ localVarPath = "/products";
8602
9266
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8603
9267
  if (configuration) {
8604
9268
  baseOptions = configuration.baseOptions;
@@ -8619,23 +9283,19 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8619
9283
  /**
8620
9284
  * Get Current Stock & Pricing
8621
9285
  * @summary Get Current Stock & Pricing
8622
- * @param {GetGetLegacyStockListFormatEnum} format File Format
8623
9286
  * @param {*} [options] Override http request option.
8624
- * @deprecated
8625
9287
  * @throws {RequiredError}
8626
9288
  */
8627
- getGetLegacyStockList: function (format_1) {
9289
+ getGetStockList: function () {
8628
9290
  var args_1 = [];
8629
- for (var _i = 1; _i < arguments.length; _i++) {
8630
- args_1[_i - 1] = arguments[_i];
9291
+ for (var _i = 0; _i < arguments.length; _i++) {
9292
+ args_1[_i] = arguments[_i];
8631
9293
  }
8632
- return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
9294
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
8633
9295
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8634
9296
  if (options === void 0) { options = {}; }
8635
9297
  return __generator(this, function (_a) {
8636
- // verify required parameter 'format' is not null or undefined
8637
- (0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
8638
- localVarPath = "/products/stock/legacy";
9298
+ localVarPath = "/products/stock";
8639
9299
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8640
9300
  if (configuration) {
8641
9301
  baseOptions = configuration.baseOptions;
@@ -8643,9 +9303,39 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8643
9303
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8644
9304
  localVarHeaderParameter = {};
8645
9305
  localVarQueryParameter = {};
8646
- if (format !== undefined) {
8647
- localVarQueryParameter['format'] = format;
9306
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9307
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9308
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9309
+ return [2 /*return*/, {
9310
+ url: (0, common_1.toPathString)(localVarUrlObj),
9311
+ options: localVarRequestOptions,
9312
+ }];
9313
+ });
9314
+ });
9315
+ },
9316
+ /**
9317
+ * Get 3CX Templates
9318
+ * @summary Get 3CX Templates
9319
+ * @param {*} [options] Override http request option.
9320
+ * @throws {RequiredError}
9321
+ */
9322
+ getGetTcxTemplates: function () {
9323
+ var args_1 = [];
9324
+ for (var _i = 0; _i < arguments.length; _i++) {
9325
+ args_1[_i] = arguments[_i];
9326
+ }
9327
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
9328
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9329
+ if (options === void 0) { options = {}; }
9330
+ return __generator(this, function (_a) {
9331
+ localVarPath = "/products/attributes/tcx/templates";
9332
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9333
+ if (configuration) {
9334
+ baseOptions = configuration.baseOptions;
8648
9335
  }
9336
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9337
+ localVarHeaderParameter = {};
9338
+ localVarQueryParameter = {};
8649
9339
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8650
9340
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8651
9341
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8657,15 +9347,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8657
9347
  });
8658
9348
  },
8659
9349
  /**
8660
- * Get Products
8661
- * @summary Get Products
9350
+ * Search Products
9351
+ * @summary Search Products
8662
9352
  * @param {number} [pageSize] Number Of Results
8663
9353
  * @param {number} [page] Page Number
8664
9354
  * @param {string} [search] Search
8665
9355
  * @param {*} [options] Override http request option.
8666
9356
  * @throws {RequiredError}
8667
9357
  */
8668
- getGetProducts: function (pageSize_1, page_1, search_1) {
9358
+ getSearchProducts: function (pageSize_1, page_1, search_1) {
8669
9359
  var args_1 = [];
8670
9360
  for (var _i = 3; _i < arguments.length; _i++) {
8671
9361
  args_1[_i - 3] = arguments[_i];
@@ -8702,31 +9392,40 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8702
9392
  });
8703
9393
  },
8704
9394
  /**
8705
- * Get Current Stock & Pricing
8706
- * @summary Get Current Stock & Pricing
9395
+ * Get Product
9396
+ * @summary Get Product
9397
+ * @param {string} sku Product SKU
9398
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
8707
9399
  * @param {*} [options] Override http request option.
8708
9400
  * @throws {RequiredError}
8709
9401
  */
8710
- getGetStockList: function () {
9402
+ postGetProduct: function (sku_1, postGetProductForCustomerRequest_1) {
8711
9403
  var args_1 = [];
8712
- for (var _i = 0; _i < arguments.length; _i++) {
8713
- args_1[_i] = arguments[_i];
9404
+ for (var _i = 2; _i < arguments.length; _i++) {
9405
+ args_1[_i - 2] = arguments[_i];
8714
9406
  }
8715
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
9407
+ return __awaiter(_this, __spreadArray([sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (sku, postGetProductForCustomerRequest, options) {
8716
9408
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8717
9409
  if (options === void 0) { options = {}; }
8718
9410
  return __generator(this, function (_a) {
8719
- localVarPath = "/products/stock";
9411
+ // verify required parameter 'sku' is not null or undefined
9412
+ (0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
9413
+ // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
9414
+ (0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
9415
+ localVarPath = "/products/{sku}"
9416
+ .replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
8720
9417
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8721
9418
  if (configuration) {
8722
9419
  baseOptions = configuration.baseOptions;
8723
9420
  }
8724
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9421
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8725
9422
  localVarHeaderParameter = {};
8726
9423
  localVarQueryParameter = {};
9424
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8727
9425
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8728
9426
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8729
9427
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9428
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
8730
9429
  return [2 /*return*/, {
8731
9430
  url: (0, common_1.toPathString)(localVarUrlObj),
8732
9431
  options: localVarRequestOptions,
@@ -8735,31 +9434,46 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8735
9434
  });
8736
9435
  },
8737
9436
  /**
8738
- * Get 3CX Templates
8739
- * @summary Get 3CX Templates
9437
+ * Get Product For Customer
9438
+ * @summary Get Product For Customer
9439
+ * @param {number} customerId Customer ID
9440
+ * @param {string} sku Product SKU
9441
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
8740
9442
  * @param {*} [options] Override http request option.
8741
9443
  * @throws {RequiredError}
8742
9444
  */
8743
- getGetTcxTemplates: function () {
9445
+ postGetProductForCustomer: function (customerId_1, sku_1, postGetProductForCustomerRequest_1) {
8744
9446
  var args_1 = [];
8745
- for (var _i = 0; _i < arguments.length; _i++) {
8746
- args_1[_i] = arguments[_i];
9447
+ for (var _i = 3; _i < arguments.length; _i++) {
9448
+ args_1[_i - 3] = arguments[_i];
8747
9449
  }
8748
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
9450
+ return __awaiter(_this, __spreadArray([customerId_1, sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (customerId, sku, postGetProductForCustomerRequest, options) {
8749
9451
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8750
9452
  if (options === void 0) { options = {}; }
8751
9453
  return __generator(this, function (_a) {
8752
- localVarPath = "/products/attributes/tcx/templates";
9454
+ // verify required parameter 'customerId' is not null or undefined
9455
+ (0, common_1.assertParamExists)('postGetProductForCustomer', 'customerId', customerId);
9456
+ // verify required parameter 'sku' is not null or undefined
9457
+ (0, common_1.assertParamExists)('postGetProductForCustomer', 'sku', sku);
9458
+ // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
9459
+ (0, common_1.assertParamExists)('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
9460
+ localVarPath = "/admin/products/{sku}"
9461
+ .replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
8753
9462
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8754
9463
  if (configuration) {
8755
9464
  baseOptions = configuration.baseOptions;
8756
9465
  }
8757
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9466
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8758
9467
  localVarHeaderParameter = {};
8759
9468
  localVarQueryParameter = {};
9469
+ if (customerId !== undefined) {
9470
+ localVarQueryParameter['customerId'] = customerId;
9471
+ }
9472
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8760
9473
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8761
9474
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8762
9475
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9476
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
8763
9477
  return [2 /*return*/, {
8764
9478
  url: (0, common_1.toPathString)(localVarUrlObj),
8765
9479
  options: localVarRequestOptions,
@@ -8800,22 +9514,46 @@ var ProductsApiFp = function (configuration) {
8800
9514
  });
8801
9515
  },
8802
9516
  /**
8803
- * Get Customer Price Lists
8804
- * @summary Get Customer Price Lists
9517
+ * Get Current Stock & Pricing
9518
+ * @summary Get Current Stock & Pricing
9519
+ * @param {GetGetLegacyStockListFormatEnum} format File Format
9520
+ * @param {*} [options] Override http request option.
9521
+ * @deprecated
9522
+ * @throws {RequiredError}
9523
+ */
9524
+ getGetLegacyStockList: function (format, options) {
9525
+ return __awaiter(this, void 0, void 0, function () {
9526
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9527
+ var _a, _b, _c;
9528
+ return __generator(this, function (_d) {
9529
+ switch (_d.label) {
9530
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
9531
+ case 1:
9532
+ localVarAxiosArgs = _d.sent();
9533
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9534
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9535
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9536
+ }
9537
+ });
9538
+ });
9539
+ },
9540
+ /**
9541
+ * Get Products
9542
+ * @summary Get Products
8805
9543
  * @param {*} [options] Override http request option.
8806
9544
  * @throws {RequiredError}
8807
9545
  */
8808
- getGetCustomerPriceLists: function (options) {
9546
+ getGetProducts: function (options) {
8809
9547
  return __awaiter(this, void 0, void 0, function () {
8810
9548
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8811
9549
  var _a, _b, _c;
8812
9550
  return __generator(this, function (_d) {
8813
9551
  switch (_d.label) {
8814
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerPriceLists(options)];
9552
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(options)];
8815
9553
  case 1:
8816
9554
  localVarAxiosArgs = _d.sent();
8817
9555
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8818
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetCustomerPriceLists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9556
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8819
9557
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8820
9558
  }
8821
9559
  });
@@ -8824,91 +9562,116 @@ var ProductsApiFp = function (configuration) {
8824
9562
  /**
8825
9563
  * Get Current Stock & Pricing
8826
9564
  * @summary Get Current Stock & Pricing
8827
- * @param {GetGetLegacyStockListFormatEnum} format File Format
8828
9565
  * @param {*} [options] Override http request option.
8829
- * @deprecated
8830
9566
  * @throws {RequiredError}
8831
9567
  */
8832
- getGetLegacyStockList: function (format, options) {
9568
+ getGetStockList: function (options) {
8833
9569
  return __awaiter(this, void 0, void 0, function () {
8834
9570
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8835
9571
  var _a, _b, _c;
8836
9572
  return __generator(this, function (_d) {
8837
9573
  switch (_d.label) {
8838
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
9574
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
8839
9575
  case 1:
8840
9576
  localVarAxiosArgs = _d.sent();
8841
9577
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8842
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9578
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8843
9579
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8844
9580
  }
8845
9581
  });
8846
9582
  });
8847
9583
  },
8848
9584
  /**
8849
- * Get Products
8850
- * @summary Get Products
9585
+ * Get 3CX Templates
9586
+ * @summary Get 3CX Templates
9587
+ * @param {*} [options] Override http request option.
9588
+ * @throws {RequiredError}
9589
+ */
9590
+ getGetTcxTemplates: function (options) {
9591
+ return __awaiter(this, void 0, void 0, function () {
9592
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9593
+ var _a, _b, _c;
9594
+ return __generator(this, function (_d) {
9595
+ switch (_d.label) {
9596
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
9597
+ case 1:
9598
+ localVarAxiosArgs = _d.sent();
9599
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9600
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9601
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9602
+ }
9603
+ });
9604
+ });
9605
+ },
9606
+ /**
9607
+ * Search Products
9608
+ * @summary Search Products
8851
9609
  * @param {number} [pageSize] Number Of Results
8852
9610
  * @param {number} [page] Page Number
8853
9611
  * @param {string} [search] Search
8854
9612
  * @param {*} [options] Override http request option.
8855
9613
  * @throws {RequiredError}
8856
9614
  */
8857
- getGetProducts: function (pageSize, page, search, options) {
9615
+ getSearchProducts: function (pageSize, page, search, options) {
8858
9616
  return __awaiter(this, void 0, void 0, function () {
8859
9617
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8860
9618
  var _a, _b, _c;
8861
9619
  return __generator(this, function (_d) {
8862
9620
  switch (_d.label) {
8863
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(pageSize, page, search, options)];
9621
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options)];
8864
9622
  case 1:
8865
9623
  localVarAxiosArgs = _d.sent();
8866
9624
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8867
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9625
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getSearchProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8868
9626
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8869
9627
  }
8870
9628
  });
8871
9629
  });
8872
9630
  },
8873
9631
  /**
8874
- * Get Current Stock & Pricing
8875
- * @summary Get Current Stock & Pricing
9632
+ * Get Product
9633
+ * @summary Get Product
9634
+ * @param {string} sku Product SKU
9635
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
8876
9636
  * @param {*} [options] Override http request option.
8877
9637
  * @throws {RequiredError}
8878
9638
  */
8879
- getGetStockList: function (options) {
9639
+ postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
8880
9640
  return __awaiter(this, void 0, void 0, function () {
8881
9641
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8882
9642
  var _a, _b, _c;
8883
9643
  return __generator(this, function (_d) {
8884
9644
  switch (_d.label) {
8885
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
9645
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options)];
8886
9646
  case 1:
8887
9647
  localVarAxiosArgs = _d.sent();
8888
9648
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8889
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9649
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8890
9650
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8891
9651
  }
8892
9652
  });
8893
9653
  });
8894
9654
  },
8895
9655
  /**
8896
- * Get 3CX Templates
8897
- * @summary Get 3CX Templates
9656
+ * Get Product For Customer
9657
+ * @summary Get Product For Customer
9658
+ * @param {number} customerId Customer ID
9659
+ * @param {string} sku Product SKU
9660
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
8898
9661
  * @param {*} [options] Override http request option.
8899
9662
  * @throws {RequiredError}
8900
9663
  */
8901
- getGetTcxTemplates: function (options) {
9664
+ postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
8902
9665
  return __awaiter(this, void 0, void 0, function () {
8903
9666
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8904
9667
  var _a, _b, _c;
8905
9668
  return __generator(this, function (_d) {
8906
9669
  switch (_d.label) {
8907
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
9670
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options)];
8908
9671
  case 1:
8909
9672
  localVarAxiosArgs = _d.sent();
8910
9673
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8911
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9674
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProductForCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8912
9675
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8913
9676
  }
8914
9677
  });
@@ -8933,15 +9696,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
8933
9696
  getGetAttributeSets: function (options) {
8934
9697
  return localVarFp.getGetAttributeSets(options).then(function (request) { return request(axios, basePath); });
8935
9698
  },
8936
- /**
8937
- * Get Customer Price Lists
8938
- * @summary Get Customer Price Lists
8939
- * @param {*} [options] Override http request option.
8940
- * @throws {RequiredError}
8941
- */
8942
- getGetCustomerPriceLists: function (options) {
8943
- return localVarFp.getGetCustomerPriceLists(options).then(function (request) { return request(axios, basePath); });
8944
- },
8945
9699
  /**
8946
9700
  * Get Current Stock & Pricing
8947
9701
  * @summary Get Current Stock & Pricing
@@ -8956,14 +9710,11 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
8956
9710
  /**
8957
9711
  * Get Products
8958
9712
  * @summary Get Products
8959
- * @param {number} [pageSize] Number Of Results
8960
- * @param {number} [page] Page Number
8961
- * @param {string} [search] Search
8962
9713
  * @param {*} [options] Override http request option.
8963
9714
  * @throws {RequiredError}
8964
9715
  */
8965
- getGetProducts: function (pageSize, page, search, options) {
8966
- return localVarFp.getGetProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
9716
+ getGetProducts: function (options) {
9717
+ return localVarFp.getGetProducts(options).then(function (request) { return request(axios, basePath); });
8967
9718
  },
8968
9719
  /**
8969
9720
  * Get Current Stock & Pricing
@@ -8983,6 +9734,41 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
8983
9734
  getGetTcxTemplates: function (options) {
8984
9735
  return localVarFp.getGetTcxTemplates(options).then(function (request) { return request(axios, basePath); });
8985
9736
  },
9737
+ /**
9738
+ * Search Products
9739
+ * @summary Search Products
9740
+ * @param {number} [pageSize] Number Of Results
9741
+ * @param {number} [page] Page Number
9742
+ * @param {string} [search] Search
9743
+ * @param {*} [options] Override http request option.
9744
+ * @throws {RequiredError}
9745
+ */
9746
+ getSearchProducts: function (pageSize, page, search, options) {
9747
+ return localVarFp.getSearchProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
9748
+ },
9749
+ /**
9750
+ * Get Product
9751
+ * @summary Get Product
9752
+ * @param {string} sku Product SKU
9753
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9754
+ * @param {*} [options] Override http request option.
9755
+ * @throws {RequiredError}
9756
+ */
9757
+ postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
9758
+ return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
9759
+ },
9760
+ /**
9761
+ * Get Product For Customer
9762
+ * @summary Get Product For Customer
9763
+ * @param {number} customerId Customer ID
9764
+ * @param {string} sku Product SKU
9765
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9766
+ * @param {*} [options] Override http request option.
9767
+ * @throws {RequiredError}
9768
+ */
9769
+ postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
9770
+ return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
9771
+ },
8986
9772
  };
8987
9773
  };
8988
9774
  exports.ProductsApiFactory = ProductsApiFactory;
@@ -9008,17 +9794,6 @@ var ProductsApi = /** @class */ (function (_super) {
9008
9794
  var _this = this;
9009
9795
  return (0, exports.ProductsApiFp)(this.configuration).getGetAttributeSets(options).then(function (request) { return request(_this.axios, _this.basePath); });
9010
9796
  };
9011
- /**
9012
- * Get Customer Price Lists
9013
- * @summary Get Customer Price Lists
9014
- * @param {*} [options] Override http request option.
9015
- * @throws {RequiredError}
9016
- * @memberof ProductsApi
9017
- */
9018
- ProductsApi.prototype.getGetCustomerPriceLists = function (options) {
9019
- var _this = this;
9020
- return (0, exports.ProductsApiFp)(this.configuration).getGetCustomerPriceLists(options).then(function (request) { return request(_this.axios, _this.basePath); });
9021
- };
9022
9797
  /**
9023
9798
  * Get Current Stock & Pricing
9024
9799
  * @summary Get Current Stock & Pricing
@@ -9035,16 +9810,13 @@ var ProductsApi = /** @class */ (function (_super) {
9035
9810
  /**
9036
9811
  * Get Products
9037
9812
  * @summary Get Products
9038
- * @param {number} [pageSize] Number Of Results
9039
- * @param {number} [page] Page Number
9040
- * @param {string} [search] Search
9041
9813
  * @param {*} [options] Override http request option.
9042
9814
  * @throws {RequiredError}
9043
9815
  * @memberof ProductsApi
9044
9816
  */
9045
- ProductsApi.prototype.getGetProducts = function (pageSize, page, search, options) {
9817
+ ProductsApi.prototype.getGetProducts = function (options) {
9046
9818
  var _this = this;
9047
- return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
9819
+ return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(options).then(function (request) { return request(_this.axios, _this.basePath); });
9048
9820
  };
9049
9821
  /**
9050
9822
  * Get Current Stock & Pricing
@@ -9068,6 +9840,47 @@ var ProductsApi = /** @class */ (function (_super) {
9068
9840
  var _this = this;
9069
9841
  return (0, exports.ProductsApiFp)(this.configuration).getGetTcxTemplates(options).then(function (request) { return request(_this.axios, _this.basePath); });
9070
9842
  };
9843
+ /**
9844
+ * Search Products
9845
+ * @summary Search Products
9846
+ * @param {number} [pageSize] Number Of Results
9847
+ * @param {number} [page] Page Number
9848
+ * @param {string} [search] Search
9849
+ * @param {*} [options] Override http request option.
9850
+ * @throws {RequiredError}
9851
+ * @memberof ProductsApi
9852
+ */
9853
+ ProductsApi.prototype.getSearchProducts = function (pageSize, page, search, options) {
9854
+ var _this = this;
9855
+ return (0, exports.ProductsApiFp)(this.configuration).getSearchProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
9856
+ };
9857
+ /**
9858
+ * Get Product
9859
+ * @summary Get Product
9860
+ * @param {string} sku Product SKU
9861
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9862
+ * @param {*} [options] Override http request option.
9863
+ * @throws {RequiredError}
9864
+ * @memberof ProductsApi
9865
+ */
9866
+ ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
9867
+ var _this = this;
9868
+ return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
9869
+ };
9870
+ /**
9871
+ * Get Product For Customer
9872
+ * @summary Get Product For Customer
9873
+ * @param {number} customerId Customer ID
9874
+ * @param {string} sku Product SKU
9875
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9876
+ * @param {*} [options] Override http request option.
9877
+ * @throws {RequiredError}
9878
+ * @memberof ProductsApi
9879
+ */
9880
+ ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, options) {
9881
+ var _this = this;
9882
+ return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
9883
+ };
9071
9884
  return ProductsApi;
9072
9885
  }(base_1.BaseAPI));
9073
9886
  exports.ProductsApi = ProductsApi;
@@ -11793,6 +12606,131 @@ var SMSApi = /** @class */ (function (_super) {
11793
12606
  return SMSApi;
11794
12607
  }(base_1.BaseAPI));
11795
12608
  exports.SMSApi = SMSApi;
12609
+ /**
12610
+ * ShippingApi - axios parameter creator
12611
+ * @export
12612
+ */
12613
+ var ShippingApiAxiosParamCreator = function (configuration) {
12614
+ var _this = this;
12615
+ return {
12616
+ /**
12617
+ * Get Shipping Services
12618
+ * @summary Get Shipping Services
12619
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12620
+ * @param {*} [options] Override http request option.
12621
+ * @throws {RequiredError}
12622
+ */
12623
+ postGetShippingServices: function (shippingInformationDTO_1) {
12624
+ var args_1 = [];
12625
+ for (var _i = 1; _i < arguments.length; _i++) {
12626
+ args_1[_i - 1] = arguments[_i];
12627
+ }
12628
+ return __awaiter(_this, __spreadArray([shippingInformationDTO_1], args_1, true), void 0, function (shippingInformationDTO, options) {
12629
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12630
+ if (options === void 0) { options = {}; }
12631
+ return __generator(this, function (_a) {
12632
+ localVarPath = "/shipping/services";
12633
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12634
+ if (configuration) {
12635
+ baseOptions = configuration.baseOptions;
12636
+ }
12637
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
12638
+ localVarHeaderParameter = {};
12639
+ localVarQueryParameter = {};
12640
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12641
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12642
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12643
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12644
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingInformationDTO, localVarRequestOptions, configuration);
12645
+ return [2 /*return*/, {
12646
+ url: (0, common_1.toPathString)(localVarUrlObj),
12647
+ options: localVarRequestOptions,
12648
+ }];
12649
+ });
12650
+ });
12651
+ },
12652
+ };
12653
+ };
12654
+ exports.ShippingApiAxiosParamCreator = ShippingApiAxiosParamCreator;
12655
+ /**
12656
+ * ShippingApi - functional programming interface
12657
+ * @export
12658
+ */
12659
+ var ShippingApiFp = function (configuration) {
12660
+ var localVarAxiosParamCreator = (0, exports.ShippingApiAxiosParamCreator)(configuration);
12661
+ return {
12662
+ /**
12663
+ * Get Shipping Services
12664
+ * @summary Get Shipping Services
12665
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12666
+ * @param {*} [options] Override http request option.
12667
+ * @throws {RequiredError}
12668
+ */
12669
+ postGetShippingServices: function (shippingInformationDTO, options) {
12670
+ return __awaiter(this, void 0, void 0, function () {
12671
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12672
+ var _a, _b, _c;
12673
+ return __generator(this, function (_d) {
12674
+ switch (_d.label) {
12675
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options)];
12676
+ case 1:
12677
+ localVarAxiosArgs = _d.sent();
12678
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12679
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShippingApi.postGetShippingServices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12680
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12681
+ }
12682
+ });
12683
+ });
12684
+ },
12685
+ };
12686
+ };
12687
+ exports.ShippingApiFp = ShippingApiFp;
12688
+ /**
12689
+ * ShippingApi - factory interface
12690
+ * @export
12691
+ */
12692
+ var ShippingApiFactory = function (configuration, basePath, axios) {
12693
+ var localVarFp = (0, exports.ShippingApiFp)(configuration);
12694
+ return {
12695
+ /**
12696
+ * Get Shipping Services
12697
+ * @summary Get Shipping Services
12698
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12699
+ * @param {*} [options] Override http request option.
12700
+ * @throws {RequiredError}
12701
+ */
12702
+ postGetShippingServices: function (shippingInformationDTO, options) {
12703
+ return localVarFp.postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(axios, basePath); });
12704
+ },
12705
+ };
12706
+ };
12707
+ exports.ShippingApiFactory = ShippingApiFactory;
12708
+ /**
12709
+ * ShippingApi - object-oriented interface
12710
+ * @export
12711
+ * @class ShippingApi
12712
+ * @extends {BaseAPI}
12713
+ */
12714
+ var ShippingApi = /** @class */ (function (_super) {
12715
+ __extends(ShippingApi, _super);
12716
+ function ShippingApi() {
12717
+ return _super !== null && _super.apply(this, arguments) || this;
12718
+ }
12719
+ /**
12720
+ * Get Shipping Services
12721
+ * @summary Get Shipping Services
12722
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12723
+ * @param {*} [options] Override http request option.
12724
+ * @throws {RequiredError}
12725
+ * @memberof ShippingApi
12726
+ */
12727
+ ShippingApi.prototype.postGetShippingServices = function (shippingInformationDTO, options) {
12728
+ var _this = this;
12729
+ return (0, exports.ShippingApiFp)(this.configuration).postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
12730
+ };
12731
+ return ShippingApi;
12732
+ }(base_1.BaseAPI));
12733
+ exports.ShippingApi = ShippingApi;
11796
12734
  /**
11797
12735
  * StockManagementApi - axios parameter creator
11798
12736
  * @export