yellowgrid-api-ts 3.1.6 → 3.1.8-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +214 -197
  2. package/README.md +34 -7
  3. package/api.ts +1899 -252
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/config.json +3 -3
  7. package/configuration.ts +1 -1
  8. package/dist/api.d.ts +1384 -155
  9. package/dist/api.js +1150 -196
  10. package/dist/base.d.ts +1 -1
  11. package/dist/base.js +1 -1
  12. package/dist/common.d.ts +1 -1
  13. package/dist/common.js +1 -1
  14. package/dist/configuration.d.ts +1 -1
  15. package/dist/configuration.js +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +1 -1
  18. package/docs/AbstractOrderRequestDTO.md +33 -0
  19. package/docs/AccountDetailedSummaryDTO.md +39 -0
  20. package/docs/AccountsApi.md +103 -0
  21. package/docs/AddressModel.md +2 -0
  22. package/docs/AdminItemRequestDTO.md +41 -0
  23. package/docs/AdminOrderRequestDTO.md +45 -0
  24. package/docs/AdminUserModel.md +29 -0
  25. package/docs/BasicItemDTO.md +23 -0
  26. package/docs/BasicProductDTO.md +23 -0
  27. package/docs/Class3CXApi.md +0 -55
  28. package/docs/Class3CXInstallationsApi.md +4 -1
  29. package/docs/ClientDetailsModel.md +0 -2
  30. package/docs/CourierPriceEntity.md +39 -0
  31. package/docs/CrmContactDTO.md +4 -2
  32. package/docs/CustomerItemRequestDTO.md +37 -0
  33. package/docs/CustomerOrderRequestDTO.md +33 -0
  34. package/docs/ItemDTO.md +12 -4
  35. package/docs/ItemEntity.md +2 -0
  36. package/docs/LinkedOrderEntity.md +23 -0
  37. package/docs/OrderSummaryDTO.md +8 -0
  38. package/docs/OrderTotalModel.md +2 -0
  39. package/docs/OrdersApi.md +356 -4
  40. package/docs/PostGetProductForCustomerRequest.md +24 -0
  41. package/docs/ProductSearchResultsModel.md +1 -1
  42. package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +5 -3
  43. package/docs/ProductsApi.md +164 -43
  44. package/docs/ProvisioningApi.md +4 -4
  45. package/docs/{ProvisioningEntity.md → ProvisioningModel.md} +3 -3
  46. package/docs/ShipmentEntity.md +2 -2
  47. package/docs/ShippingApi.md +63 -0
  48. package/docs/ShippingConsignmentModel.md +26 -0
  49. package/docs/ShippingInformationDTO.md +25 -0
  50. package/docs/ShippingServiceDTO.md +23 -0
  51. package/docs/ShippingServiceModel.md +31 -0
  52. package/docs/{GetGetPasswordHash200Response.md → ShippingServicesModel.md} +5 -5
  53. package/docs/StockManagementApi.md +2 -2
  54. package/docs/TcxSbcDTO.md +31 -0
  55. package/docs/TcxSbcModel.md +1 -1
  56. package/index.ts +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.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.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = void 0;
88
- exports.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 = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = 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 = void 0;
87
+ exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = exports.AdminUserModelRoleEnum = void 0;
88
+ exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = void 0;
89
+ exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = void 0;
90
90
  var axios_1 = require("axios");
91
91
  // Some imports not used depending on template conditions
92
92
  // @ts-ignore
93
93
  var common_1 = require("./common");
94
94
  // @ts-ignore
95
95
  var base_1 = require("./base");
96
+ exports.AdminUserModelRoleEnum = {
97
+ NUMBER_0: 0,
98
+ NUMBER_1: 1,
99
+ NUMBER_2: 2,
100
+ NUMBER_3: 3,
101
+ NUMBER_4: 4
102
+ };
96
103
  exports.DivertResponseModelStatusEnum = {
97
104
  Enabled: 'enabled',
98
105
  Disabled: 'disabled'
@@ -169,6 +176,16 @@ exports.OrderTotalModelCurrencyEnum = {
169
176
  Thb: 'THB',
170
177
  Zar: 'ZAR'
171
178
  };
179
+ exports.ShippingServiceDTOCourierEnum = {
180
+ Dpd: 'DPD',
181
+ ChorltonPallet: 'Chorlton Pallet',
182
+ Pops: 'POPS'
183
+ };
184
+ exports.ShippingServiceModelCourierEnum = {
185
+ Dpd: 'DPD',
186
+ ChorltonPallet: 'Chorlton Pallet',
187
+ Pops: 'POPS'
188
+ };
172
189
  exports.SipTrunkChangeResponseModelTypeEnum = {
173
190
  NewTrunk: 'New Trunk',
174
191
  AvailableTrunk: 'Available Trunk',
@@ -413,6 +430,43 @@ var AccountsApiAxiosParamCreator = function (configuration) {
413
430
  });
414
431
  });
415
432
  },
433
+ /**
434
+ * Get Account Detailed Summary
435
+ * @summary Get Account Detailed Summary
436
+ * @param {number} id Customer ID
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ getGetAccountDetailedSummary: function (id_1) {
441
+ var args_1 = [];
442
+ for (var _i = 1; _i < arguments.length; _i++) {
443
+ args_1[_i - 1] = arguments[_i];
444
+ }
445
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
446
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
447
+ if (options === void 0) { options = {}; }
448
+ return __generator(this, function (_a) {
449
+ // verify required parameter 'id' is not null or undefined
450
+ (0, common_1.assertParamExists)('getGetAccountDetailedSummary', 'id', id);
451
+ localVarPath = "/accounts/{id}/summary"
452
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
453
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
454
+ if (configuration) {
455
+ baseOptions = configuration.baseOptions;
456
+ }
457
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
458
+ localVarHeaderParameter = {};
459
+ localVarQueryParameter = {};
460
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
461
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
462
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
463
+ return [2 /*return*/, {
464
+ url: (0, common_1.toPathString)(localVarUrlObj),
465
+ options: localVarRequestOptions,
466
+ }];
467
+ });
468
+ });
469
+ },
416
470
  /**
417
471
  * Get Accounts
418
472
  * @summary Get Accounts
@@ -716,6 +770,39 @@ var AccountsApiAxiosParamCreator = function (configuration) {
716
770
  });
717
771
  });
718
772
  },
773
+ /**
774
+ * Get Admin Account
775
+ * @summary Get Admin Account
776
+ * @param {*} [options] Override http request option.
777
+ * @throws {RequiredError}
778
+ */
779
+ postGetAdminAccount: function () {
780
+ var args_1 = [];
781
+ for (var _i = 0; _i < arguments.length; _i++) {
782
+ args_1[_i] = arguments[_i];
783
+ }
784
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
785
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
786
+ if (options === void 0) { options = {}; }
787
+ return __generator(this, function (_a) {
788
+ localVarPath = "/admin/me";
789
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
790
+ if (configuration) {
791
+ baseOptions = configuration.baseOptions;
792
+ }
793
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
794
+ localVarHeaderParameter = {};
795
+ localVarQueryParameter = {};
796
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
797
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
798
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
799
+ return [2 /*return*/, {
800
+ url: (0, common_1.toPathString)(localVarUrlObj),
801
+ options: localVarRequestOptions,
802
+ }];
803
+ });
804
+ });
805
+ },
719
806
  /**
720
807
  * Create client credentials
721
808
  * @summary Create client credentials
@@ -1014,6 +1101,29 @@ var AccountsApiFp = function (configuration) {
1014
1101
  });
1015
1102
  });
1016
1103
  },
1104
+ /**
1105
+ * Get Account Detailed Summary
1106
+ * @summary Get Account Detailed Summary
1107
+ * @param {number} id Customer ID
1108
+ * @param {*} [options] Override http request option.
1109
+ * @throws {RequiredError}
1110
+ */
1111
+ getGetAccountDetailedSummary: function (id, options) {
1112
+ return __awaiter(this, void 0, void 0, function () {
1113
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1114
+ var _a, _b, _c;
1115
+ return __generator(this, function (_d) {
1116
+ switch (_d.label) {
1117
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options)];
1118
+ case 1:
1119
+ localVarAxiosArgs = _d.sent();
1120
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1121
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountDetailedSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1122
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1123
+ }
1124
+ });
1125
+ });
1126
+ },
1017
1127
  /**
1018
1128
  * Get Accounts
1019
1129
  * @summary Get Accounts
@@ -1199,6 +1309,28 @@ var AccountsApiFp = function (configuration) {
1199
1309
  });
1200
1310
  });
1201
1311
  },
1312
+ /**
1313
+ * Get Admin Account
1314
+ * @summary Get Admin Account
1315
+ * @param {*} [options] Override http request option.
1316
+ * @throws {RequiredError}
1317
+ */
1318
+ postGetAdminAccount: function (options) {
1319
+ return __awaiter(this, void 0, void 0, function () {
1320
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1321
+ var _a, _b, _c;
1322
+ return __generator(this, function (_d) {
1323
+ switch (_d.label) {
1324
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAdminAccount(options)];
1325
+ case 1:
1326
+ localVarAxiosArgs = _d.sent();
1327
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1328
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postGetAdminAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1329
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1330
+ }
1331
+ });
1332
+ });
1333
+ },
1202
1334
  /**
1203
1335
  * Create client credentials
1204
1336
  * @summary Create client credentials
@@ -1366,6 +1498,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1366
1498
  getGetAccountContacts: function (email, options) {
1367
1499
  return localVarFp.getGetAccountContacts(email, options).then(function (request) { return request(axios, basePath); });
1368
1500
  },
1501
+ /**
1502
+ * Get Account Detailed Summary
1503
+ * @summary Get Account Detailed Summary
1504
+ * @param {number} id Customer ID
1505
+ * @param {*} [options] Override http request option.
1506
+ * @throws {RequiredError}
1507
+ */
1508
+ getGetAccountDetailedSummary: function (id, options) {
1509
+ return localVarFp.getGetAccountDetailedSummary(id, options).then(function (request) { return request(axios, basePath); });
1510
+ },
1369
1511
  /**
1370
1512
  * Get Accounts
1371
1513
  * @summary Get Accounts
@@ -1447,6 +1589,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1447
1589
  postGetAccounts: function (accountRequestModel, options) {
1448
1590
  return localVarFp.postGetAccounts(accountRequestModel, options).then(function (request) { return request(axios, basePath); });
1449
1591
  },
1592
+ /**
1593
+ * Get Admin Account
1594
+ * @summary Get Admin Account
1595
+ * @param {*} [options] Override http request option.
1596
+ * @throws {RequiredError}
1597
+ */
1598
+ postGetAdminAccount: function (options) {
1599
+ return localVarFp.postGetAdminAccount(options).then(function (request) { return request(axios, basePath); });
1600
+ },
1450
1601
  /**
1451
1602
  * Create client credentials
1452
1603
  * @summary Create client credentials
@@ -1561,6 +1712,18 @@ var AccountsApi = /** @class */ (function (_super) {
1561
1712
  var _this = this;
1562
1713
  return (0, exports.AccountsApiFp)(this.configuration).getGetAccountContacts(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
1563
1714
  };
1715
+ /**
1716
+ * Get Account Detailed Summary
1717
+ * @summary Get Account Detailed Summary
1718
+ * @param {number} id Customer ID
1719
+ * @param {*} [options] Override http request option.
1720
+ * @throws {RequiredError}
1721
+ * @memberof AccountsApi
1722
+ */
1723
+ AccountsApi.prototype.getGetAccountDetailedSummary = function (id, options) {
1724
+ var _this = this;
1725
+ return (0, exports.AccountsApiFp)(this.configuration).getGetAccountDetailedSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
1726
+ };
1564
1727
  /**
1565
1728
  * Get Accounts
1566
1729
  * @summary Get Accounts
@@ -1658,6 +1821,17 @@ var AccountsApi = /** @class */ (function (_super) {
1658
1821
  var _this = this;
1659
1822
  return (0, exports.AccountsApiFp)(this.configuration).postGetAccounts(accountRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
1660
1823
  };
1824
+ /**
1825
+ * Get Admin Account
1826
+ * @summary Get Admin Account
1827
+ * @param {*} [options] Override http request option.
1828
+ * @throws {RequiredError}
1829
+ * @memberof AccountsApi
1830
+ */
1831
+ AccountsApi.prototype.postGetAdminAccount = function (options) {
1832
+ var _this = this;
1833
+ return (0, exports.AccountsApiFp)(this.configuration).postGetAdminAccount(options).then(function (request) { return request(_this.axios, _this.basePath); });
1834
+ };
1661
1835
  /**
1662
1836
  * Create client credentials
1663
1837
  * @summary Create client credentials
@@ -1885,45 +2059,6 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
1885
2059
  });
1886
2060
  });
1887
2061
  },
1888
- /**
1889
- * Generate a 3CX hashed password for 3CX installation
1890
- * @summary Convert a password to a hashed 3CX password
1891
- * @param {string} password Desired 3CX web access password
1892
- * @param {*} [options] Override http request option.
1893
- * @throws {RequiredError}
1894
- */
1895
- getGetPasswordHash: function (password_1) {
1896
- var args_1 = [];
1897
- for (var _i = 1; _i < arguments.length; _i++) {
1898
- args_1[_i - 1] = arguments[_i];
1899
- }
1900
- return __awaiter(_this, __spreadArray([password_1], args_1, true), void 0, function (password, options) {
1901
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1902
- if (options === void 0) { options = {}; }
1903
- return __generator(this, function (_a) {
1904
- // verify required parameter 'password' is not null or undefined
1905
- (0, common_1.assertParamExists)('getGetPasswordHash', 'password', password);
1906
- localVarPath = "/tcx/pwd2hash";
1907
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1908
- if (configuration) {
1909
- baseOptions = configuration.baseOptions;
1910
- }
1911
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1912
- localVarHeaderParameter = {};
1913
- localVarQueryParameter = {};
1914
- if (password !== undefined) {
1915
- localVarQueryParameter['password'] = password;
1916
- }
1917
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1918
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1919
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1920
- return [2 /*return*/, {
1921
- url: (0, common_1.toPathString)(localVarUrlObj),
1922
- options: localVarRequestOptions,
1923
- }];
1924
- });
1925
- });
1926
- },
1927
2062
  /**
1928
2063
  * Get Bulk 3CX Licence Details
1929
2064
  * @summary Get bulk 3CX Licence Details
@@ -1993,29 +2128,6 @@ var Class3CXApiFp = function (configuration) {
1993
2128
  });
1994
2129
  });
1995
2130
  },
1996
- /**
1997
- * Generate a 3CX hashed password for 3CX installation
1998
- * @summary Convert a password to a hashed 3CX password
1999
- * @param {string} password Desired 3CX web access password
2000
- * @param {*} [options] Override http request option.
2001
- * @throws {RequiredError}
2002
- */
2003
- getGetPasswordHash: function (password, options) {
2004
- return __awaiter(this, void 0, void 0, function () {
2005
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2006
- var _a, _b, _c;
2007
- return __generator(this, function (_d) {
2008
- switch (_d.label) {
2009
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetPasswordHash(password, options)];
2010
- case 1:
2011
- localVarAxiosArgs = _d.sent();
2012
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2013
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.getGetPasswordHash']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2014
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2015
- }
2016
- });
2017
- });
2018
- },
2019
2131
  /**
2020
2132
  * Get Bulk 3CX Licence Details
2021
2133
  * @summary Get bulk 3CX Licence Details
@@ -2059,16 +2171,6 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
2059
2171
  getGetLicenceDetails: function (key, options) {
2060
2172
  return localVarFp.getGetLicenceDetails(key, options).then(function (request) { return request(axios, basePath); });
2061
2173
  },
2062
- /**
2063
- * Generate a 3CX hashed password for 3CX installation
2064
- * @summary Convert a password to a hashed 3CX password
2065
- * @param {string} password Desired 3CX web access password
2066
- * @param {*} [options] Override http request option.
2067
- * @throws {RequiredError}
2068
- */
2069
- getGetPasswordHash: function (password, options) {
2070
- return localVarFp.getGetPasswordHash(password, options).then(function (request) { return request(axios, basePath); });
2071
- },
2072
2174
  /**
2073
2175
  * Get Bulk 3CX Licence Details
2074
2176
  * @summary Get bulk 3CX Licence Details
@@ -2105,18 +2207,6 @@ var Class3CXApi = /** @class */ (function (_super) {
2105
2207
  var _this = this;
2106
2208
  return (0, exports.Class3CXApiFp)(this.configuration).getGetLicenceDetails(key, options).then(function (request) { return request(_this.axios, _this.basePath); });
2107
2209
  };
2108
- /**
2109
- * Generate a 3CX hashed password for 3CX installation
2110
- * @summary Convert a password to a hashed 3CX password
2111
- * @param {string} password Desired 3CX web access password
2112
- * @param {*} [options] Override http request option.
2113
- * @throws {RequiredError}
2114
- * @memberof Class3CXApi
2115
- */
2116
- Class3CXApi.prototype.getGetPasswordHash = function (password, options) {
2117
- var _this = this;
2118
- return (0, exports.Class3CXApiFp)(this.configuration).getGetPasswordHash(password, options).then(function (request) { return request(_this.axios, _this.basePath); });
2119
- };
2120
2210
  /**
2121
2211
  * Get Bulk 3CX Licence Details
2122
2212
  * @summary Get bulk 3CX Licence Details
@@ -4966,15 +5056,16 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
4966
5056
  * @param {string} [search] Search
4967
5057
  * @param {GetGetInstallationsStatusEnum} [status] Status
4968
5058
  * @param {GetGetInstallationsHostingEnum} [hosting] Hosting
5059
+ * @param {GetGetInstallationsInstallTypeEnum} [installType] Install Type
4969
5060
  * @param {*} [options] Override http request option.
4970
5061
  * @throws {RequiredError}
4971
5062
  */
4972
- getGetInstallations: function (pageSize_1, page_1, customerId_1, search_1, status_1, hosting_1) {
5063
+ getGetInstallations: function (pageSize_1, page_1, customerId_1, search_1, status_1, hosting_1, installType_1) {
4973
5064
  var args_1 = [];
4974
- for (var _i = 6; _i < arguments.length; _i++) {
4975
- args_1[_i - 6] = arguments[_i];
5065
+ for (var _i = 7; _i < arguments.length; _i++) {
5066
+ args_1[_i - 7] = arguments[_i];
4976
5067
  }
4977
- return __awaiter(_this, __spreadArray([pageSize_1, page_1, customerId_1, search_1, status_1, hosting_1], args_1, true), void 0, function (pageSize, page, customerId, search, status, hosting, options) {
5068
+ return __awaiter(_this, __spreadArray([pageSize_1, page_1, customerId_1, search_1, status_1, hosting_1, installType_1], args_1, true), void 0, function (pageSize, page, customerId, search, status, hosting, installType, options) {
4978
5069
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4979
5070
  if (options === void 0) { options = {}; }
4980
5071
  return __generator(this, function (_a) {
@@ -5004,6 +5095,9 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
5004
5095
  if (hosting !== undefined) {
5005
5096
  localVarQueryParameter['hosting'] = hosting;
5006
5097
  }
5098
+ if (installType !== undefined) {
5099
+ localVarQueryParameter['installType'] = installType;
5100
+ }
5007
5101
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5008
5102
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5009
5103
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5439,16 +5533,17 @@ var Class3CXInstallationsApiFp = function (configuration) {
5439
5533
  * @param {string} [search] Search
5440
5534
  * @param {GetGetInstallationsStatusEnum} [status] Status
5441
5535
  * @param {GetGetInstallationsHostingEnum} [hosting] Hosting
5536
+ * @param {GetGetInstallationsInstallTypeEnum} [installType] Install Type
5442
5537
  * @param {*} [options] Override http request option.
5443
5538
  * @throws {RequiredError}
5444
5539
  */
5445
- getGetInstallations: function (pageSize, page, customerId, search, status, hosting, options) {
5540
+ getGetInstallations: function (pageSize, page, customerId, search, status, hosting, installType, options) {
5446
5541
  return __awaiter(this, void 0, void 0, function () {
5447
5542
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
5448
5543
  var _a, _b, _c;
5449
5544
  return __generator(this, function (_d) {
5450
5545
  switch (_d.label) {
5451
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetInstallations(pageSize, page, customerId, search, status, hosting, options)];
5546
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options)];
5452
5547
  case 1:
5453
5548
  localVarAxiosArgs = _d.sent();
5454
5549
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -5703,11 +5798,12 @@ var Class3CXInstallationsApiFactory = function (configuration, basePath, axios)
5703
5798
  * @param {string} [search] Search
5704
5799
  * @param {GetGetInstallationsStatusEnum} [status] Status
5705
5800
  * @param {GetGetInstallationsHostingEnum} [hosting] Hosting
5801
+ * @param {GetGetInstallationsInstallTypeEnum} [installType] Install Type
5706
5802
  * @param {*} [options] Override http request option.
5707
5803
  * @throws {RequiredError}
5708
5804
  */
5709
- getGetInstallations: function (pageSize, page, customerId, search, status, hosting, options) {
5710
- return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, options).then(function (request) { return request(axios, basePath); });
5805
+ getGetInstallations: function (pageSize, page, customerId, search, status, hosting, installType, options) {
5806
+ return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then(function (request) { return request(axios, basePath); });
5711
5807
  },
5712
5808
  /**
5713
5809
  * Create a root user
@@ -5843,13 +5939,14 @@ var Class3CXInstallationsApi = /** @class */ (function (_super) {
5843
5939
  * @param {string} [search] Search
5844
5940
  * @param {GetGetInstallationsStatusEnum} [status] Status
5845
5941
  * @param {GetGetInstallationsHostingEnum} [hosting] Hosting
5942
+ * @param {GetGetInstallationsInstallTypeEnum} [installType] Install Type
5846
5943
  * @param {*} [options] Override http request option.
5847
5944
  * @throws {RequiredError}
5848
5945
  * @memberof Class3CXInstallationsApi
5849
5946
  */
5850
- Class3CXInstallationsApi.prototype.getGetInstallations = function (pageSize, page, customerId, search, status, hosting, options) {
5947
+ Class3CXInstallationsApi.prototype.getGetInstallations = function (pageSize, page, customerId, search, status, hosting, installType, options) {
5851
5948
  var _this = this;
5852
- return (0, exports.Class3CXInstallationsApiFp)(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, options).then(function (request) { return request(_this.axios, _this.basePath); });
5949
+ return (0, exports.Class3CXInstallationsApiFp)(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then(function (request) { return request(_this.axios, _this.basePath); });
5853
5950
  };
5854
5951
  /**
5855
5952
  * Create a root user
@@ -5989,6 +6086,15 @@ exports.GetGetInstallationsHostingEnum = {
5989
6086
  Onprem: 'onprem',
5990
6087
  All: 'all'
5991
6088
  };
6089
+ /**
6090
+ * @export
6091
+ */
6092
+ exports.GetGetInstallationsInstallTypeEnum = {
6093
+ New: 'new',
6094
+ Restore: 'restore',
6095
+ Failover: 'failover',
6096
+ MultiTenant: 'multi-tenant'
6097
+ };
5992
6098
  /**
5993
6099
  * @export
5994
6100
  */
@@ -8038,11 +8144,12 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8038
8144
  return {
8039
8145
  /**
8040
8146
  * Delete Orders
8147
+ * @summary Delete Orders
8041
8148
  * @param {number} id Order ID
8042
8149
  * @param {*} [options] Override http request option.
8043
8150
  * @throws {RequiredError}
8044
8151
  */
8045
- deleteDeleteOrder: function (id_1) {
8152
+ deleteUpdateOrder: function (id_1) {
8046
8153
  var args_1 = [];
8047
8154
  for (var _i = 1; _i < arguments.length; _i++) {
8048
8155
  args_1[_i - 1] = arguments[_i];
@@ -8052,7 +8159,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8052
8159
  if (options === void 0) { options = {}; }
8053
8160
  return __generator(this, function (_a) {
8054
8161
  // verify required parameter 'id' is not null or undefined
8055
- (0, common_1.assertParamExists)('deleteDeleteOrder', 'id', id);
8162
+ (0, common_1.assertParamExists)('deleteUpdateOrder', 'id', id);
8056
8163
  localVarPath = "/orders/{id}"
8057
8164
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8058
8165
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8072,6 +8179,80 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8072
8179
  });
8073
8180
  });
8074
8181
  },
8182
+ /**
8183
+ * Get Editable Order (Admin)
8184
+ * @summary Get Editable Order (Admin)
8185
+ * @param {number} id Order ID
8186
+ * @param {*} [options] Override http request option.
8187
+ * @throws {RequiredError}
8188
+ */
8189
+ getGetAdminEditableOrder: function (id_1) {
8190
+ var args_1 = [];
8191
+ for (var _i = 1; _i < arguments.length; _i++) {
8192
+ args_1[_i - 1] = arguments[_i];
8193
+ }
8194
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8195
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8196
+ if (options === void 0) { options = {}; }
8197
+ return __generator(this, function (_a) {
8198
+ // verify required parameter 'id' is not null or undefined
8199
+ (0, common_1.assertParamExists)('getGetAdminEditableOrder', 'id', id);
8200
+ localVarPath = "/admin/orders/{id}/views/editable"
8201
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8202
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8203
+ if (configuration) {
8204
+ baseOptions = configuration.baseOptions;
8205
+ }
8206
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8207
+ localVarHeaderParameter = {};
8208
+ localVarQueryParameter = {};
8209
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8210
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8211
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8212
+ return [2 /*return*/, {
8213
+ url: (0, common_1.toPathString)(localVarUrlObj),
8214
+ options: localVarRequestOptions,
8215
+ }];
8216
+ });
8217
+ });
8218
+ },
8219
+ /**
8220
+ * Get Editable Order
8221
+ * @summary Get Editable Order
8222
+ * @param {number} id Order ID
8223
+ * @param {*} [options] Override http request option.
8224
+ * @throws {RequiredError}
8225
+ */
8226
+ getGetEditableOrder: function (id_1) {
8227
+ var args_1 = [];
8228
+ for (var _i = 1; _i < arguments.length; _i++) {
8229
+ args_1[_i - 1] = arguments[_i];
8230
+ }
8231
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8232
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8233
+ if (options === void 0) { options = {}; }
8234
+ return __generator(this, function (_a) {
8235
+ // verify required parameter 'id' is not null or undefined
8236
+ (0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
8237
+ localVarPath = "/orders/{id}/views/editable"
8238
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8239
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8240
+ if (configuration) {
8241
+ baseOptions = configuration.baseOptions;
8242
+ }
8243
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8244
+ localVarHeaderParameter = {};
8245
+ localVarQueryParameter = {};
8246
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8247
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8248
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8249
+ return [2 /*return*/, {
8250
+ url: (0, common_1.toPathString)(localVarUrlObj),
8251
+ options: localVarRequestOptions,
8252
+ }];
8253
+ });
8254
+ });
8255
+ },
8075
8256
  /**
8076
8257
  * Get Orders
8077
8258
  * @summary Get Orders
@@ -8133,6 +8314,174 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8133
8314
  });
8134
8315
  });
8135
8316
  },
8317
+ /**
8318
+ * Create An Order (Admin)
8319
+ * @summary Create An Order (Admin)
8320
+ * @param {boolean} [readonly] Readonly Order
8321
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8322
+ * @param {*} [options] Override http request option.
8323
+ * @throws {RequiredError}
8324
+ */
8325
+ postCreateAdminOrder: function (readonly_1, adminOrderRequestDTO_1) {
8326
+ var args_1 = [];
8327
+ for (var _i = 2; _i < arguments.length; _i++) {
8328
+ args_1[_i - 2] = arguments[_i];
8329
+ }
8330
+ return __awaiter(_this, __spreadArray([readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (readonly, adminOrderRequestDTO, options) {
8331
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8332
+ if (options === void 0) { options = {}; }
8333
+ return __generator(this, function (_a) {
8334
+ localVarPath = "/admin/orders";
8335
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8336
+ if (configuration) {
8337
+ baseOptions = configuration.baseOptions;
8338
+ }
8339
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8340
+ localVarHeaderParameter = {};
8341
+ localVarQueryParameter = {};
8342
+ if (readonly !== undefined) {
8343
+ localVarQueryParameter['readonly'] = readonly;
8344
+ }
8345
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8346
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8347
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8348
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8349
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
8350
+ return [2 /*return*/, {
8351
+ url: (0, common_1.toPathString)(localVarUrlObj),
8352
+ options: localVarRequestOptions,
8353
+ }];
8354
+ });
8355
+ });
8356
+ },
8357
+ /**
8358
+ * Create An Order
8359
+ * @summary Create An Order
8360
+ * @param {boolean} [readonly] Readonly Order
8361
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8362
+ * @param {*} [options] Override http request option.
8363
+ * @throws {RequiredError}
8364
+ */
8365
+ postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
8366
+ var args_1 = [];
8367
+ for (var _i = 2; _i < arguments.length; _i++) {
8368
+ args_1[_i - 2] = arguments[_i];
8369
+ }
8370
+ return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
8371
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8372
+ if (options === void 0) { options = {}; }
8373
+ return __generator(this, function (_a) {
8374
+ localVarPath = "/orders";
8375
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8376
+ if (configuration) {
8377
+ baseOptions = configuration.baseOptions;
8378
+ }
8379
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8380
+ localVarHeaderParameter = {};
8381
+ localVarQueryParameter = {};
8382
+ if (readonly !== undefined) {
8383
+ localVarQueryParameter['readonly'] = readonly;
8384
+ }
8385
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8386
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8387
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8388
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8389
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
8390
+ return [2 /*return*/, {
8391
+ url: (0, common_1.toPathString)(localVarUrlObj),
8392
+ options: localVarRequestOptions,
8393
+ }];
8394
+ });
8395
+ });
8396
+ },
8397
+ /**
8398
+ * Update An Order (Admin)
8399
+ * @summary Update An Order (Admin)
8400
+ * @param {number} id Order ID
8401
+ * @param {boolean} [readonly] Readonly Order
8402
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8403
+ * @param {*} [options] Override http request option.
8404
+ * @throws {RequiredError}
8405
+ */
8406
+ putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
8407
+ var args_1 = [];
8408
+ for (var _i = 3; _i < arguments.length; _i++) {
8409
+ args_1[_i - 3] = arguments[_i];
8410
+ }
8411
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
8412
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8413
+ if (options === void 0) { options = {}; }
8414
+ return __generator(this, function (_a) {
8415
+ // verify required parameter 'id' is not null or undefined
8416
+ (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
8417
+ localVarPath = "/admin/orders/{id}"
8418
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8419
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8420
+ if (configuration) {
8421
+ baseOptions = configuration.baseOptions;
8422
+ }
8423
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
8424
+ localVarHeaderParameter = {};
8425
+ localVarQueryParameter = {};
8426
+ if (readonly !== undefined) {
8427
+ localVarQueryParameter['readonly'] = readonly;
8428
+ }
8429
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8430
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8431
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8432
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8433
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
8434
+ return [2 /*return*/, {
8435
+ url: (0, common_1.toPathString)(localVarUrlObj),
8436
+ options: localVarRequestOptions,
8437
+ }];
8438
+ });
8439
+ });
8440
+ },
8441
+ /**
8442
+ * Update An Order
8443
+ * @summary Update An Order
8444
+ * @param {number} id Order ID
8445
+ * @param {boolean} [readonly] Readonly Order
8446
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8447
+ * @param {*} [options] Override http request option.
8448
+ * @throws {RequiredError}
8449
+ */
8450
+ putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
8451
+ var args_1 = [];
8452
+ for (var _i = 3; _i < arguments.length; _i++) {
8453
+ args_1[_i - 3] = arguments[_i];
8454
+ }
8455
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
8456
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8457
+ if (options === void 0) { options = {}; }
8458
+ return __generator(this, function (_a) {
8459
+ // verify required parameter 'id' is not null or undefined
8460
+ (0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
8461
+ localVarPath = "/orders/{id}"
8462
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8463
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8464
+ if (configuration) {
8465
+ baseOptions = configuration.baseOptions;
8466
+ }
8467
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
8468
+ localVarHeaderParameter = {};
8469
+ localVarQueryParameter = {};
8470
+ if (readonly !== undefined) {
8471
+ localVarQueryParameter['readonly'] = readonly;
8472
+ }
8473
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8474
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8475
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8476
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8477
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
8478
+ return [2 /*return*/, {
8479
+ url: (0, common_1.toPathString)(localVarUrlObj),
8480
+ options: localVarRequestOptions,
8481
+ }];
8482
+ });
8483
+ });
8484
+ },
8136
8485
  };
8137
8486
  };
8138
8487
  exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
@@ -8145,21 +8494,68 @@ var OrdersApiFp = function (configuration) {
8145
8494
  return {
8146
8495
  /**
8147
8496
  * Delete Orders
8497
+ * @summary Delete Orders
8148
8498
  * @param {number} id Order ID
8149
8499
  * @param {*} [options] Override http request option.
8150
8500
  * @throws {RequiredError}
8151
8501
  */
8152
- deleteDeleteOrder: function (id, options) {
8502
+ deleteUpdateOrder: function (id, options) {
8153
8503
  return __awaiter(this, void 0, void 0, function () {
8154
8504
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8155
8505
  var _a, _b, _c;
8156
8506
  return __generator(this, function (_d) {
8157
8507
  switch (_d.label) {
8158
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteOrder(id, options)];
8508
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
8159
8509
  case 1:
8160
8510
  localVarAxiosArgs = _d.sent();
8161
8511
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8162
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteDeleteOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8512
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8513
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8514
+ }
8515
+ });
8516
+ });
8517
+ },
8518
+ /**
8519
+ * Get Editable Order (Admin)
8520
+ * @summary Get Editable Order (Admin)
8521
+ * @param {number} id Order ID
8522
+ * @param {*} [options] Override http request option.
8523
+ * @throws {RequiredError}
8524
+ */
8525
+ getGetAdminEditableOrder: function (id, options) {
8526
+ return __awaiter(this, void 0, void 0, function () {
8527
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8528
+ var _a, _b, _c;
8529
+ return __generator(this, function (_d) {
8530
+ switch (_d.label) {
8531
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminEditableOrder(id, options)];
8532
+ case 1:
8533
+ localVarAxiosArgs = _d.sent();
8534
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8535
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetAdminEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8536
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8537
+ }
8538
+ });
8539
+ });
8540
+ },
8541
+ /**
8542
+ * Get Editable Order
8543
+ * @summary Get Editable Order
8544
+ * @param {number} id Order ID
8545
+ * @param {*} [options] Override http request option.
8546
+ * @throws {RequiredError}
8547
+ */
8548
+ getGetEditableOrder: function (id, options) {
8549
+ return __awaiter(this, void 0, void 0, function () {
8550
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8551
+ var _a, _b, _c;
8552
+ return __generator(this, function (_d) {
8553
+ switch (_d.label) {
8554
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
8555
+ case 1:
8556
+ localVarAxiosArgs = _d.sent();
8557
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8558
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8163
8559
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8164
8560
  }
8165
8561
  });
@@ -8194,6 +8590,104 @@ var OrdersApiFp = function (configuration) {
8194
8590
  });
8195
8591
  });
8196
8592
  },
8593
+ /**
8594
+ * Create An Order (Admin)
8595
+ * @summary Create An Order (Admin)
8596
+ * @param {boolean} [readonly] Readonly Order
8597
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8598
+ * @param {*} [options] Override http request option.
8599
+ * @throws {RequiredError}
8600
+ */
8601
+ postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
8602
+ return __awaiter(this, void 0, void 0, function () {
8603
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8604
+ var _a, _b, _c;
8605
+ return __generator(this, function (_d) {
8606
+ switch (_d.label) {
8607
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
8608
+ case 1:
8609
+ localVarAxiosArgs = _d.sent();
8610
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8611
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8612
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8613
+ }
8614
+ });
8615
+ });
8616
+ },
8617
+ /**
8618
+ * Create An Order
8619
+ * @summary Create An Order
8620
+ * @param {boolean} [readonly] Readonly Order
8621
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8622
+ * @param {*} [options] Override http request option.
8623
+ * @throws {RequiredError}
8624
+ */
8625
+ postGetOrders: function (readonly, customerOrderRequestDTO, options) {
8626
+ return __awaiter(this, void 0, void 0, function () {
8627
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8628
+ var _a, _b, _c;
8629
+ return __generator(this, function (_d) {
8630
+ switch (_d.label) {
8631
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
8632
+ case 1:
8633
+ localVarAxiosArgs = _d.sent();
8634
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8635
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8636
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8637
+ }
8638
+ });
8639
+ });
8640
+ },
8641
+ /**
8642
+ * Update An Order (Admin)
8643
+ * @summary Update An Order (Admin)
8644
+ * @param {number} id Order ID
8645
+ * @param {boolean} [readonly] Readonly Order
8646
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8647
+ * @param {*} [options] Override http request option.
8648
+ * @throws {RequiredError}
8649
+ */
8650
+ putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
8651
+ return __awaiter(this, void 0, void 0, function () {
8652
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8653
+ var _a, _b, _c;
8654
+ return __generator(this, function (_d) {
8655
+ switch (_d.label) {
8656
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
8657
+ case 1:
8658
+ localVarAxiosArgs = _d.sent();
8659
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8660
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8661
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8662
+ }
8663
+ });
8664
+ });
8665
+ },
8666
+ /**
8667
+ * Update An Order
8668
+ * @summary Update An Order
8669
+ * @param {number} id Order ID
8670
+ * @param {boolean} [readonly] Readonly Order
8671
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8672
+ * @param {*} [options] Override http request option.
8673
+ * @throws {RequiredError}
8674
+ */
8675
+ putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
8676
+ return __awaiter(this, void 0, void 0, function () {
8677
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8678
+ var _a, _b, _c;
8679
+ return __generator(this, function (_d) {
8680
+ switch (_d.label) {
8681
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options)];
8682
+ case 1:
8683
+ localVarAxiosArgs = _d.sent();
8684
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8685
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8686
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8687
+ }
8688
+ });
8689
+ });
8690
+ },
8197
8691
  };
8198
8692
  };
8199
8693
  exports.OrdersApiFp = OrdersApiFp;
@@ -8206,12 +8700,33 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
8206
8700
  return {
8207
8701
  /**
8208
8702
  * Delete Orders
8703
+ * @summary Delete Orders
8209
8704
  * @param {number} id Order ID
8210
8705
  * @param {*} [options] Override http request option.
8211
8706
  * @throws {RequiredError}
8212
8707
  */
8213
- deleteDeleteOrder: function (id, options) {
8214
- return localVarFp.deleteDeleteOrder(id, options).then(function (request) { return request(axios, basePath); });
8708
+ deleteUpdateOrder: function (id, options) {
8709
+ return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
8710
+ },
8711
+ /**
8712
+ * Get Editable Order (Admin)
8713
+ * @summary Get Editable Order (Admin)
8714
+ * @param {number} id Order ID
8715
+ * @param {*} [options] Override http request option.
8716
+ * @throws {RequiredError}
8717
+ */
8718
+ getGetAdminEditableOrder: function (id, options) {
8719
+ return localVarFp.getGetAdminEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
8720
+ },
8721
+ /**
8722
+ * Get Editable Order
8723
+ * @summary Get Editable Order
8724
+ * @param {number} id Order ID
8725
+ * @param {*} [options] Override http request option.
8726
+ * @throws {RequiredError}
8727
+ */
8728
+ getGetEditableOrder: function (id, options) {
8729
+ return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
8215
8730
  },
8216
8731
  /**
8217
8732
  * Get Orders
@@ -8229,6 +8744,52 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
8229
8744
  getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
8230
8745
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
8231
8746
  },
8747
+ /**
8748
+ * Create An Order (Admin)
8749
+ * @summary Create An Order (Admin)
8750
+ * @param {boolean} [readonly] Readonly Order
8751
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8752
+ * @param {*} [options] Override http request option.
8753
+ * @throws {RequiredError}
8754
+ */
8755
+ postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
8756
+ return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8757
+ },
8758
+ /**
8759
+ * Create An Order
8760
+ * @summary Create An Order
8761
+ * @param {boolean} [readonly] Readonly Order
8762
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8763
+ * @param {*} [options] Override http request option.
8764
+ * @throws {RequiredError}
8765
+ */
8766
+ postGetOrders: function (readonly, customerOrderRequestDTO, options) {
8767
+ return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8768
+ },
8769
+ /**
8770
+ * Update An Order (Admin)
8771
+ * @summary Update An Order (Admin)
8772
+ * @param {number} id Order ID
8773
+ * @param {boolean} [readonly] Readonly Order
8774
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8775
+ * @param {*} [options] Override http request option.
8776
+ * @throws {RequiredError}
8777
+ */
8778
+ putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
8779
+ return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8780
+ },
8781
+ /**
8782
+ * Update An Order
8783
+ * @summary Update An Order
8784
+ * @param {number} id Order ID
8785
+ * @param {boolean} [readonly] Readonly Order
8786
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8787
+ * @param {*} [options] Override http request option.
8788
+ * @throws {RequiredError}
8789
+ */
8790
+ putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
8791
+ return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
8792
+ },
8232
8793
  };
8233
8794
  };
8234
8795
  exports.OrdersApiFactory = OrdersApiFactory;
@@ -8245,14 +8806,39 @@ var OrdersApi = /** @class */ (function (_super) {
8245
8806
  }
8246
8807
  /**
8247
8808
  * Delete Orders
8809
+ * @summary Delete Orders
8810
+ * @param {number} id Order ID
8811
+ * @param {*} [options] Override http request option.
8812
+ * @throws {RequiredError}
8813
+ * @memberof OrdersApi
8814
+ */
8815
+ OrdersApi.prototype.deleteUpdateOrder = function (id, options) {
8816
+ var _this = this;
8817
+ return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8818
+ };
8819
+ /**
8820
+ * Get Editable Order (Admin)
8821
+ * @summary Get Editable Order (Admin)
8822
+ * @param {number} id Order ID
8823
+ * @param {*} [options] Override http request option.
8824
+ * @throws {RequiredError}
8825
+ * @memberof OrdersApi
8826
+ */
8827
+ OrdersApi.prototype.getGetAdminEditableOrder = function (id, options) {
8828
+ var _this = this;
8829
+ return (0, exports.OrdersApiFp)(this.configuration).getGetAdminEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8830
+ };
8831
+ /**
8832
+ * Get Editable Order
8833
+ * @summary Get Editable Order
8248
8834
  * @param {number} id Order ID
8249
8835
  * @param {*} [options] Override http request option.
8250
8836
  * @throws {RequiredError}
8251
8837
  * @memberof OrdersApi
8252
8838
  */
8253
- OrdersApi.prototype.deleteDeleteOrder = function (id, options) {
8839
+ OrdersApi.prototype.getGetEditableOrder = function (id, options) {
8254
8840
  var _this = this;
8255
- return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8841
+ return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8256
8842
  };
8257
8843
  /**
8258
8844
  * Get Orders
@@ -8272,6 +8858,60 @@ var OrdersApi = /** @class */ (function (_super) {
8272
8858
  var _this = this;
8273
8859
  return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8274
8860
  };
8861
+ /**
8862
+ * Create An Order (Admin)
8863
+ * @summary Create An Order (Admin)
8864
+ * @param {boolean} [readonly] Readonly Order
8865
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8866
+ * @param {*} [options] Override http request option.
8867
+ * @throws {RequiredError}
8868
+ * @memberof OrdersApi
8869
+ */
8870
+ OrdersApi.prototype.postCreateAdminOrder = function (readonly, adminOrderRequestDTO, options) {
8871
+ var _this = this;
8872
+ return (0, exports.OrdersApiFp)(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8873
+ };
8874
+ /**
8875
+ * Create An Order
8876
+ * @summary Create An Order
8877
+ * @param {boolean} [readonly] Readonly Order
8878
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8879
+ * @param {*} [options] Override http request option.
8880
+ * @throws {RequiredError}
8881
+ * @memberof OrdersApi
8882
+ */
8883
+ OrdersApi.prototype.postGetOrders = function (readonly, customerOrderRequestDTO, options) {
8884
+ var _this = this;
8885
+ return (0, exports.OrdersApiFp)(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8886
+ };
8887
+ /**
8888
+ * Update An Order (Admin)
8889
+ * @summary Update An Order (Admin)
8890
+ * @param {number} id Order ID
8891
+ * @param {boolean} [readonly] Readonly Order
8892
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8893
+ * @param {*} [options] Override http request option.
8894
+ * @throws {RequiredError}
8895
+ * @memberof OrdersApi
8896
+ */
8897
+ OrdersApi.prototype.putUpdateAdminOrder = function (id, readonly, adminOrderRequestDTO, options) {
8898
+ var _this = this;
8899
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8900
+ };
8901
+ /**
8902
+ * Update An Order
8903
+ * @summary Update An Order
8904
+ * @param {number} id Order ID
8905
+ * @param {boolean} [readonly] Readonly Order
8906
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8907
+ * @param {*} [options] Override http request option.
8908
+ * @throws {RequiredError}
8909
+ * @memberof OrdersApi
8910
+ */
8911
+ OrdersApi.prototype.putUpdateOrder = function (id, readonly, customerOrderRequestDTO, options) {
8912
+ var _this = this;
8913
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
8914
+ };
8275
8915
  return OrdersApi;
8276
8916
  }(base_1.BaseAPI));
8277
8917
  exports.OrdersApi = OrdersApi;
@@ -8699,12 +9339,52 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8699
9339
  });
8700
9340
  },
8701
9341
  /**
8702
- * Get Customer Price Lists
8703
- * @summary Get Customer Price Lists
9342
+ * Get Current Stock & Pricing
9343
+ * @summary Get Current Stock & Pricing
9344
+ * @param {GetGetLegacyStockListFormatEnum} format File Format
9345
+ * @param {*} [options] Override http request option.
9346
+ * @deprecated
9347
+ * @throws {RequiredError}
9348
+ */
9349
+ getGetLegacyStockList: function (format_1) {
9350
+ var args_1 = [];
9351
+ for (var _i = 1; _i < arguments.length; _i++) {
9352
+ args_1[_i - 1] = arguments[_i];
9353
+ }
9354
+ return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
9355
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9356
+ if (options === void 0) { options = {}; }
9357
+ return __generator(this, function (_a) {
9358
+ // verify required parameter 'format' is not null or undefined
9359
+ (0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
9360
+ localVarPath = "/products/stock/legacy";
9361
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9362
+ if (configuration) {
9363
+ baseOptions = configuration.baseOptions;
9364
+ }
9365
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9366
+ localVarHeaderParameter = {};
9367
+ localVarQueryParameter = {};
9368
+ if (format !== undefined) {
9369
+ localVarQueryParameter['format'] = format;
9370
+ }
9371
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9372
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9373
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9374
+ return [2 /*return*/, {
9375
+ url: (0, common_1.toPathString)(localVarUrlObj),
9376
+ options: localVarRequestOptions,
9377
+ }];
9378
+ });
9379
+ });
9380
+ },
9381
+ /**
9382
+ * Get Products
9383
+ * @summary Get Products
8704
9384
  * @param {*} [options] Override http request option.
8705
9385
  * @throws {RequiredError}
8706
9386
  */
8707
- getGetCustomerPriceLists: function () {
9387
+ getGetProducts: function () {
8708
9388
  var args_1 = [];
8709
9389
  for (var _i = 0; _i < arguments.length; _i++) {
8710
9390
  args_1[_i] = arguments[_i];
@@ -8713,7 +9393,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8713
9393
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8714
9394
  if (options === void 0) { options = {}; }
8715
9395
  return __generator(this, function (_a) {
8716
- localVarPath = "/products/prices/lists";
9396
+ localVarPath = "/products";
8717
9397
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8718
9398
  if (configuration) {
8719
9399
  baseOptions = configuration.baseOptions;
@@ -8734,23 +9414,19 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8734
9414
  /**
8735
9415
  * Get Current Stock & Pricing
8736
9416
  * @summary Get Current Stock & Pricing
8737
- * @param {GetGetLegacyStockListFormatEnum} format File Format
8738
9417
  * @param {*} [options] Override http request option.
8739
- * @deprecated
8740
9418
  * @throws {RequiredError}
8741
9419
  */
8742
- getGetLegacyStockList: function (format_1) {
9420
+ getGetStockList: function () {
8743
9421
  var args_1 = [];
8744
- for (var _i = 1; _i < arguments.length; _i++) {
8745
- args_1[_i - 1] = arguments[_i];
9422
+ for (var _i = 0; _i < arguments.length; _i++) {
9423
+ args_1[_i] = arguments[_i];
8746
9424
  }
8747
- return __awaiter(_this, __spreadArray([format_1], args_1, true), void 0, function (format, options) {
9425
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
8748
9426
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8749
9427
  if (options === void 0) { options = {}; }
8750
9428
  return __generator(this, function (_a) {
8751
- // verify required parameter 'format' is not null or undefined
8752
- (0, common_1.assertParamExists)('getGetLegacyStockList', 'format', format);
8753
- localVarPath = "/products/stock/legacy";
9429
+ localVarPath = "/products/stock";
8754
9430
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8755
9431
  if (configuration) {
8756
9432
  baseOptions = configuration.baseOptions;
@@ -8758,9 +9434,39 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8758
9434
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8759
9435
  localVarHeaderParameter = {};
8760
9436
  localVarQueryParameter = {};
8761
- if (format !== undefined) {
8762
- localVarQueryParameter['format'] = format;
9437
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9438
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9439
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9440
+ return [2 /*return*/, {
9441
+ url: (0, common_1.toPathString)(localVarUrlObj),
9442
+ options: localVarRequestOptions,
9443
+ }];
9444
+ });
9445
+ });
9446
+ },
9447
+ /**
9448
+ * Get 3CX Templates
9449
+ * @summary Get 3CX Templates
9450
+ * @param {*} [options] Override http request option.
9451
+ * @throws {RequiredError}
9452
+ */
9453
+ getGetTcxTemplates: function () {
9454
+ var args_1 = [];
9455
+ for (var _i = 0; _i < arguments.length; _i++) {
9456
+ args_1[_i] = arguments[_i];
9457
+ }
9458
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
9459
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9460
+ if (options === void 0) { options = {}; }
9461
+ return __generator(this, function (_a) {
9462
+ localVarPath = "/products/attributes/tcx/templates";
9463
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9464
+ if (configuration) {
9465
+ baseOptions = configuration.baseOptions;
8763
9466
  }
9467
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9468
+ localVarHeaderParameter = {};
9469
+ localVarQueryParameter = {};
8764
9470
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8765
9471
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8766
9472
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8772,15 +9478,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8772
9478
  });
8773
9479
  },
8774
9480
  /**
8775
- * Get Products
8776
- * @summary Get Products
9481
+ * Search Products
9482
+ * @summary Search Products
8777
9483
  * @param {number} [pageSize] Number Of Results
8778
9484
  * @param {number} [page] Page Number
8779
9485
  * @param {string} [search] Search
8780
9486
  * @param {*} [options] Override http request option.
8781
9487
  * @throws {RequiredError}
8782
9488
  */
8783
- getGetProducts: function (pageSize_1, page_1, search_1) {
9489
+ getSearchProducts: function (pageSize_1, page_1, search_1) {
8784
9490
  var args_1 = [];
8785
9491
  for (var _i = 3; _i < arguments.length; _i++) {
8786
9492
  args_1[_i - 3] = arguments[_i];
@@ -8817,31 +9523,40 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8817
9523
  });
8818
9524
  },
8819
9525
  /**
8820
- * Get Current Stock & Pricing
8821
- * @summary Get Current Stock & Pricing
9526
+ * Get Product
9527
+ * @summary Get Product
9528
+ * @param {string} sku Product SKU
9529
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
8822
9530
  * @param {*} [options] Override http request option.
8823
9531
  * @throws {RequiredError}
8824
9532
  */
8825
- getGetStockList: function () {
9533
+ postGetProduct: function (sku_1, postGetProductForCustomerRequest_1) {
8826
9534
  var args_1 = [];
8827
- for (var _i = 0; _i < arguments.length; _i++) {
8828
- args_1[_i] = arguments[_i];
9535
+ for (var _i = 2; _i < arguments.length; _i++) {
9536
+ args_1[_i - 2] = arguments[_i];
8829
9537
  }
8830
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
9538
+ return __awaiter(_this, __spreadArray([sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (sku, postGetProductForCustomerRequest, options) {
8831
9539
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8832
9540
  if (options === void 0) { options = {}; }
8833
9541
  return __generator(this, function (_a) {
8834
- localVarPath = "/products/stock";
9542
+ // verify required parameter 'sku' is not null or undefined
9543
+ (0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
9544
+ // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
9545
+ (0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
9546
+ localVarPath = "/products/{sku}"
9547
+ .replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
8835
9548
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8836
9549
  if (configuration) {
8837
9550
  baseOptions = configuration.baseOptions;
8838
9551
  }
8839
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9552
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8840
9553
  localVarHeaderParameter = {};
8841
9554
  localVarQueryParameter = {};
9555
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8842
9556
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8843
9557
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8844
9558
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9559
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
8845
9560
  return [2 /*return*/, {
8846
9561
  url: (0, common_1.toPathString)(localVarUrlObj),
8847
9562
  options: localVarRequestOptions,
@@ -8850,31 +9565,46 @@ var ProductsApiAxiosParamCreator = function (configuration) {
8850
9565
  });
8851
9566
  },
8852
9567
  /**
8853
- * Get 3CX Templates
8854
- * @summary Get 3CX Templates
9568
+ * Get Product For Customer
9569
+ * @summary Get Product For Customer
9570
+ * @param {number} customerId Customer ID
9571
+ * @param {string} sku Product SKU
9572
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
8855
9573
  * @param {*} [options] Override http request option.
8856
9574
  * @throws {RequiredError}
8857
9575
  */
8858
- getGetTcxTemplates: function () {
9576
+ postGetProductForCustomer: function (customerId_1, sku_1, postGetProductForCustomerRequest_1) {
8859
9577
  var args_1 = [];
8860
- for (var _i = 0; _i < arguments.length; _i++) {
8861
- args_1[_i] = arguments[_i];
9578
+ for (var _i = 3; _i < arguments.length; _i++) {
9579
+ args_1[_i - 3] = arguments[_i];
8862
9580
  }
8863
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
9581
+ return __awaiter(_this, __spreadArray([customerId_1, sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (customerId, sku, postGetProductForCustomerRequest, options) {
8864
9582
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8865
9583
  if (options === void 0) { options = {}; }
8866
9584
  return __generator(this, function (_a) {
8867
- localVarPath = "/products/attributes/tcx/templates";
9585
+ // verify required parameter 'customerId' is not null or undefined
9586
+ (0, common_1.assertParamExists)('postGetProductForCustomer', 'customerId', customerId);
9587
+ // verify required parameter 'sku' is not null or undefined
9588
+ (0, common_1.assertParamExists)('postGetProductForCustomer', 'sku', sku);
9589
+ // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
9590
+ (0, common_1.assertParamExists)('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
9591
+ localVarPath = "/admin/products/{sku}"
9592
+ .replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
8868
9593
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8869
9594
  if (configuration) {
8870
9595
  baseOptions = configuration.baseOptions;
8871
9596
  }
8872
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9597
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8873
9598
  localVarHeaderParameter = {};
8874
9599
  localVarQueryParameter = {};
9600
+ if (customerId !== undefined) {
9601
+ localVarQueryParameter['customerId'] = customerId;
9602
+ }
9603
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8875
9604
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8876
9605
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8877
9606
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9607
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
8878
9608
  return [2 /*return*/, {
8879
9609
  url: (0, common_1.toPathString)(localVarUrlObj),
8880
9610
  options: localVarRequestOptions,
@@ -8915,22 +9645,46 @@ var ProductsApiFp = function (configuration) {
8915
9645
  });
8916
9646
  },
8917
9647
  /**
8918
- * Get Customer Price Lists
8919
- * @summary Get Customer Price Lists
9648
+ * Get Current Stock & Pricing
9649
+ * @summary Get Current Stock & Pricing
9650
+ * @param {GetGetLegacyStockListFormatEnum} format File Format
9651
+ * @param {*} [options] Override http request option.
9652
+ * @deprecated
9653
+ * @throws {RequiredError}
9654
+ */
9655
+ getGetLegacyStockList: function (format, options) {
9656
+ return __awaiter(this, void 0, void 0, function () {
9657
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9658
+ var _a, _b, _c;
9659
+ return __generator(this, function (_d) {
9660
+ switch (_d.label) {
9661
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
9662
+ case 1:
9663
+ localVarAxiosArgs = _d.sent();
9664
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9665
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9666
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9667
+ }
9668
+ });
9669
+ });
9670
+ },
9671
+ /**
9672
+ * Get Products
9673
+ * @summary Get Products
8920
9674
  * @param {*} [options] Override http request option.
8921
9675
  * @throws {RequiredError}
8922
9676
  */
8923
- getGetCustomerPriceLists: function (options) {
9677
+ getGetProducts: function (options) {
8924
9678
  return __awaiter(this, void 0, void 0, function () {
8925
9679
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8926
9680
  var _a, _b, _c;
8927
9681
  return __generator(this, function (_d) {
8928
9682
  switch (_d.label) {
8929
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerPriceLists(options)];
9683
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(options)];
8930
9684
  case 1:
8931
9685
  localVarAxiosArgs = _d.sent();
8932
9686
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8933
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetCustomerPriceLists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9687
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8934
9688
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8935
9689
  }
8936
9690
  });
@@ -8939,91 +9693,116 @@ var ProductsApiFp = function (configuration) {
8939
9693
  /**
8940
9694
  * Get Current Stock & Pricing
8941
9695
  * @summary Get Current Stock & Pricing
8942
- * @param {GetGetLegacyStockListFormatEnum} format File Format
8943
9696
  * @param {*} [options] Override http request option.
8944
- * @deprecated
8945
9697
  * @throws {RequiredError}
8946
9698
  */
8947
- getGetLegacyStockList: function (format, options) {
9699
+ getGetStockList: function (options) {
8948
9700
  return __awaiter(this, void 0, void 0, function () {
8949
9701
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8950
9702
  var _a, _b, _c;
8951
9703
  return __generator(this, function (_d) {
8952
9704
  switch (_d.label) {
8953
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLegacyStockList(format, options)];
9705
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
8954
9706
  case 1:
8955
9707
  localVarAxiosArgs = _d.sent();
8956
9708
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8957
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetLegacyStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9709
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8958
9710
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8959
9711
  }
8960
9712
  });
8961
9713
  });
8962
9714
  },
8963
9715
  /**
8964
- * Get Products
8965
- * @summary Get Products
9716
+ * Get 3CX Templates
9717
+ * @summary Get 3CX Templates
9718
+ * @param {*} [options] Override http request option.
9719
+ * @throws {RequiredError}
9720
+ */
9721
+ getGetTcxTemplates: function (options) {
9722
+ return __awaiter(this, void 0, void 0, function () {
9723
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9724
+ var _a, _b, _c;
9725
+ return __generator(this, function (_d) {
9726
+ switch (_d.label) {
9727
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
9728
+ case 1:
9729
+ localVarAxiosArgs = _d.sent();
9730
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9731
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9732
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9733
+ }
9734
+ });
9735
+ });
9736
+ },
9737
+ /**
9738
+ * Search Products
9739
+ * @summary Search Products
8966
9740
  * @param {number} [pageSize] Number Of Results
8967
9741
  * @param {number} [page] Page Number
8968
9742
  * @param {string} [search] Search
8969
9743
  * @param {*} [options] Override http request option.
8970
9744
  * @throws {RequiredError}
8971
9745
  */
8972
- getGetProducts: function (pageSize, page, search, options) {
9746
+ getSearchProducts: function (pageSize, page, search, options) {
8973
9747
  return __awaiter(this, void 0, void 0, function () {
8974
9748
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8975
9749
  var _a, _b, _c;
8976
9750
  return __generator(this, function (_d) {
8977
9751
  switch (_d.label) {
8978
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(pageSize, page, search, options)];
9752
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options)];
8979
9753
  case 1:
8980
9754
  localVarAxiosArgs = _d.sent();
8981
9755
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8982
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9756
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getSearchProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8983
9757
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8984
9758
  }
8985
9759
  });
8986
9760
  });
8987
9761
  },
8988
9762
  /**
8989
- * Get Current Stock & Pricing
8990
- * @summary Get Current Stock & Pricing
9763
+ * Get Product
9764
+ * @summary Get Product
9765
+ * @param {string} sku Product SKU
9766
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
8991
9767
  * @param {*} [options] Override http request option.
8992
9768
  * @throws {RequiredError}
8993
9769
  */
8994
- getGetStockList: function (options) {
9770
+ postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
8995
9771
  return __awaiter(this, void 0, void 0, function () {
8996
9772
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8997
9773
  var _a, _b, _c;
8998
9774
  return __generator(this, function (_d) {
8999
9775
  switch (_d.label) {
9000
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
9776
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options)];
9001
9777
  case 1:
9002
9778
  localVarAxiosArgs = _d.sent();
9003
9779
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9004
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9780
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9005
9781
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9006
9782
  }
9007
9783
  });
9008
9784
  });
9009
9785
  },
9010
9786
  /**
9011
- * Get 3CX Templates
9012
- * @summary Get 3CX Templates
9787
+ * Get Product For Customer
9788
+ * @summary Get Product For Customer
9789
+ * @param {number} customerId Customer ID
9790
+ * @param {string} sku Product SKU
9791
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9013
9792
  * @param {*} [options] Override http request option.
9014
9793
  * @throws {RequiredError}
9015
9794
  */
9016
- getGetTcxTemplates: function (options) {
9795
+ postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
9017
9796
  return __awaiter(this, void 0, void 0, function () {
9018
9797
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9019
9798
  var _a, _b, _c;
9020
9799
  return __generator(this, function (_d) {
9021
9800
  switch (_d.label) {
9022
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
9801
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options)];
9023
9802
  case 1:
9024
9803
  localVarAxiosArgs = _d.sent();
9025
9804
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9026
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9805
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProductForCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9027
9806
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9028
9807
  }
9029
9808
  });
@@ -9048,15 +9827,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
9048
9827
  getGetAttributeSets: function (options) {
9049
9828
  return localVarFp.getGetAttributeSets(options).then(function (request) { return request(axios, basePath); });
9050
9829
  },
9051
- /**
9052
- * Get Customer Price Lists
9053
- * @summary Get Customer Price Lists
9054
- * @param {*} [options] Override http request option.
9055
- * @throws {RequiredError}
9056
- */
9057
- getGetCustomerPriceLists: function (options) {
9058
- return localVarFp.getGetCustomerPriceLists(options).then(function (request) { return request(axios, basePath); });
9059
- },
9060
9830
  /**
9061
9831
  * Get Current Stock & Pricing
9062
9832
  * @summary Get Current Stock & Pricing
@@ -9071,14 +9841,11 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
9071
9841
  /**
9072
9842
  * Get Products
9073
9843
  * @summary Get Products
9074
- * @param {number} [pageSize] Number Of Results
9075
- * @param {number} [page] Page Number
9076
- * @param {string} [search] Search
9077
9844
  * @param {*} [options] Override http request option.
9078
9845
  * @throws {RequiredError}
9079
9846
  */
9080
- getGetProducts: function (pageSize, page, search, options) {
9081
- return localVarFp.getGetProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
9847
+ getGetProducts: function (options) {
9848
+ return localVarFp.getGetProducts(options).then(function (request) { return request(axios, basePath); });
9082
9849
  },
9083
9850
  /**
9084
9851
  * Get Current Stock & Pricing
@@ -9098,6 +9865,41 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
9098
9865
  getGetTcxTemplates: function (options) {
9099
9866
  return localVarFp.getGetTcxTemplates(options).then(function (request) { return request(axios, basePath); });
9100
9867
  },
9868
+ /**
9869
+ * Search Products
9870
+ * @summary Search Products
9871
+ * @param {number} [pageSize] Number Of Results
9872
+ * @param {number} [page] Page Number
9873
+ * @param {string} [search] Search
9874
+ * @param {*} [options] Override http request option.
9875
+ * @throws {RequiredError}
9876
+ */
9877
+ getSearchProducts: function (pageSize, page, search, options) {
9878
+ return localVarFp.getSearchProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
9879
+ },
9880
+ /**
9881
+ * Get Product
9882
+ * @summary Get Product
9883
+ * @param {string} sku Product SKU
9884
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9885
+ * @param {*} [options] Override http request option.
9886
+ * @throws {RequiredError}
9887
+ */
9888
+ postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
9889
+ return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
9890
+ },
9891
+ /**
9892
+ * Get Product For Customer
9893
+ * @summary Get Product For Customer
9894
+ * @param {number} customerId Customer ID
9895
+ * @param {string} sku Product SKU
9896
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9897
+ * @param {*} [options] Override http request option.
9898
+ * @throws {RequiredError}
9899
+ */
9900
+ postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
9901
+ return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
9902
+ },
9101
9903
  };
9102
9904
  };
9103
9905
  exports.ProductsApiFactory = ProductsApiFactory;
@@ -9123,17 +9925,6 @@ var ProductsApi = /** @class */ (function (_super) {
9123
9925
  var _this = this;
9124
9926
  return (0, exports.ProductsApiFp)(this.configuration).getGetAttributeSets(options).then(function (request) { return request(_this.axios, _this.basePath); });
9125
9927
  };
9126
- /**
9127
- * Get Customer Price Lists
9128
- * @summary Get Customer Price Lists
9129
- * @param {*} [options] Override http request option.
9130
- * @throws {RequiredError}
9131
- * @memberof ProductsApi
9132
- */
9133
- ProductsApi.prototype.getGetCustomerPriceLists = function (options) {
9134
- var _this = this;
9135
- return (0, exports.ProductsApiFp)(this.configuration).getGetCustomerPriceLists(options).then(function (request) { return request(_this.axios, _this.basePath); });
9136
- };
9137
9928
  /**
9138
9929
  * Get Current Stock & Pricing
9139
9930
  * @summary Get Current Stock & Pricing
@@ -9150,16 +9941,13 @@ var ProductsApi = /** @class */ (function (_super) {
9150
9941
  /**
9151
9942
  * Get Products
9152
9943
  * @summary Get Products
9153
- * @param {number} [pageSize] Number Of Results
9154
- * @param {number} [page] Page Number
9155
- * @param {string} [search] Search
9156
9944
  * @param {*} [options] Override http request option.
9157
9945
  * @throws {RequiredError}
9158
9946
  * @memberof ProductsApi
9159
9947
  */
9160
- ProductsApi.prototype.getGetProducts = function (pageSize, page, search, options) {
9948
+ ProductsApi.prototype.getGetProducts = function (options) {
9161
9949
  var _this = this;
9162
- return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
9950
+ return (0, exports.ProductsApiFp)(this.configuration).getGetProducts(options).then(function (request) { return request(_this.axios, _this.basePath); });
9163
9951
  };
9164
9952
  /**
9165
9953
  * Get Current Stock & Pricing
@@ -9183,6 +9971,47 @@ var ProductsApi = /** @class */ (function (_super) {
9183
9971
  var _this = this;
9184
9972
  return (0, exports.ProductsApiFp)(this.configuration).getGetTcxTemplates(options).then(function (request) { return request(_this.axios, _this.basePath); });
9185
9973
  };
9974
+ /**
9975
+ * Search Products
9976
+ * @summary Search Products
9977
+ * @param {number} [pageSize] Number Of Results
9978
+ * @param {number} [page] Page Number
9979
+ * @param {string} [search] Search
9980
+ * @param {*} [options] Override http request option.
9981
+ * @throws {RequiredError}
9982
+ * @memberof ProductsApi
9983
+ */
9984
+ ProductsApi.prototype.getSearchProducts = function (pageSize, page, search, options) {
9985
+ var _this = this;
9986
+ return (0, exports.ProductsApiFp)(this.configuration).getSearchProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
9987
+ };
9988
+ /**
9989
+ * Get Product
9990
+ * @summary Get Product
9991
+ * @param {string} sku Product SKU
9992
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
9993
+ * @param {*} [options] Override http request option.
9994
+ * @throws {RequiredError}
9995
+ * @memberof ProductsApi
9996
+ */
9997
+ ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
9998
+ var _this = this;
9999
+ return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
10000
+ };
10001
+ /**
10002
+ * Get Product For Customer
10003
+ * @summary Get Product For Customer
10004
+ * @param {number} customerId Customer ID
10005
+ * @param {string} sku Product SKU
10006
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
10007
+ * @param {*} [options] Override http request option.
10008
+ * @throws {RequiredError}
10009
+ * @memberof ProductsApi
10010
+ */
10011
+ ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, options) {
10012
+ var _this = this;
10013
+ return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
10014
+ };
9186
10015
  return ProductsApi;
9187
10016
  }(base_1.BaseAPI));
9188
10017
  exports.ProductsApi = ProductsApi;
@@ -11908,6 +12737,131 @@ var SMSApi = /** @class */ (function (_super) {
11908
12737
  return SMSApi;
11909
12738
  }(base_1.BaseAPI));
11910
12739
  exports.SMSApi = SMSApi;
12740
+ /**
12741
+ * ShippingApi - axios parameter creator
12742
+ * @export
12743
+ */
12744
+ var ShippingApiAxiosParamCreator = function (configuration) {
12745
+ var _this = this;
12746
+ return {
12747
+ /**
12748
+ * Get Shipping Services
12749
+ * @summary Get Shipping Services
12750
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12751
+ * @param {*} [options] Override http request option.
12752
+ * @throws {RequiredError}
12753
+ */
12754
+ postGetShippingServices: function (shippingInformationDTO_1) {
12755
+ var args_1 = [];
12756
+ for (var _i = 1; _i < arguments.length; _i++) {
12757
+ args_1[_i - 1] = arguments[_i];
12758
+ }
12759
+ return __awaiter(_this, __spreadArray([shippingInformationDTO_1], args_1, true), void 0, function (shippingInformationDTO, options) {
12760
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12761
+ if (options === void 0) { options = {}; }
12762
+ return __generator(this, function (_a) {
12763
+ localVarPath = "/shipping/services";
12764
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12765
+ if (configuration) {
12766
+ baseOptions = configuration.baseOptions;
12767
+ }
12768
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
12769
+ localVarHeaderParameter = {};
12770
+ localVarQueryParameter = {};
12771
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12772
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12773
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12774
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12775
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingInformationDTO, localVarRequestOptions, configuration);
12776
+ return [2 /*return*/, {
12777
+ url: (0, common_1.toPathString)(localVarUrlObj),
12778
+ options: localVarRequestOptions,
12779
+ }];
12780
+ });
12781
+ });
12782
+ },
12783
+ };
12784
+ };
12785
+ exports.ShippingApiAxiosParamCreator = ShippingApiAxiosParamCreator;
12786
+ /**
12787
+ * ShippingApi - functional programming interface
12788
+ * @export
12789
+ */
12790
+ var ShippingApiFp = function (configuration) {
12791
+ var localVarAxiosParamCreator = (0, exports.ShippingApiAxiosParamCreator)(configuration);
12792
+ return {
12793
+ /**
12794
+ * Get Shipping Services
12795
+ * @summary Get Shipping Services
12796
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12797
+ * @param {*} [options] Override http request option.
12798
+ * @throws {RequiredError}
12799
+ */
12800
+ postGetShippingServices: function (shippingInformationDTO, options) {
12801
+ return __awaiter(this, void 0, void 0, function () {
12802
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12803
+ var _a, _b, _c;
12804
+ return __generator(this, function (_d) {
12805
+ switch (_d.label) {
12806
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options)];
12807
+ case 1:
12808
+ localVarAxiosArgs = _d.sent();
12809
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12810
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShippingApi.postGetShippingServices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12811
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12812
+ }
12813
+ });
12814
+ });
12815
+ },
12816
+ };
12817
+ };
12818
+ exports.ShippingApiFp = ShippingApiFp;
12819
+ /**
12820
+ * ShippingApi - factory interface
12821
+ * @export
12822
+ */
12823
+ var ShippingApiFactory = function (configuration, basePath, axios) {
12824
+ var localVarFp = (0, exports.ShippingApiFp)(configuration);
12825
+ return {
12826
+ /**
12827
+ * Get Shipping Services
12828
+ * @summary Get Shipping Services
12829
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12830
+ * @param {*} [options] Override http request option.
12831
+ * @throws {RequiredError}
12832
+ */
12833
+ postGetShippingServices: function (shippingInformationDTO, options) {
12834
+ return localVarFp.postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(axios, basePath); });
12835
+ },
12836
+ };
12837
+ };
12838
+ exports.ShippingApiFactory = ShippingApiFactory;
12839
+ /**
12840
+ * ShippingApi - object-oriented interface
12841
+ * @export
12842
+ * @class ShippingApi
12843
+ * @extends {BaseAPI}
12844
+ */
12845
+ var ShippingApi = /** @class */ (function (_super) {
12846
+ __extends(ShippingApi, _super);
12847
+ function ShippingApi() {
12848
+ return _super !== null && _super.apply(this, arguments) || this;
12849
+ }
12850
+ /**
12851
+ * Get Shipping Services
12852
+ * @summary Get Shipping Services
12853
+ * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
12854
+ * @param {*} [options] Override http request option.
12855
+ * @throws {RequiredError}
12856
+ * @memberof ShippingApi
12857
+ */
12858
+ ShippingApi.prototype.postGetShippingServices = function (shippingInformationDTO, options) {
12859
+ var _this = this;
12860
+ return (0, exports.ShippingApiFp)(this.configuration).postGetShippingServices(shippingInformationDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
12861
+ };
12862
+ return ShippingApi;
12863
+ }(base_1.BaseAPI));
12864
+ exports.ShippingApi = ShippingApi;
11911
12865
  /**
11912
12866
  * StockManagementApi - axios parameter creator
11913
12867
  * @export