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