yellowgrid-api-ts 3.0.84-dev.0 → 3.0.86-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +3 -2
- package/api.ts +176 -175
- package/dist/api.d.ts +109 -94
- package/dist/api.js +162 -188
- package/docs/AdminOrderRequestDTO.md +2 -0
- package/docs/PostGetProductForCustomerRequest.md +24 -0
- package/docs/ProductsApi.md +79 -89
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -8480,28 +8480,21 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8480
8480
|
});
|
|
8481
8481
|
},
|
|
8482
8482
|
/**
|
|
8483
|
-
* Get
|
|
8484
|
-
* @summary Get
|
|
8485
|
-
* @param {string} sku Product SKU
|
|
8486
|
-
* @param {number} [quantity] Quantity
|
|
8487
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
8488
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
8483
|
+
* Get Products
|
|
8484
|
+
* @summary Get Products
|
|
8489
8485
|
* @param {*} [options] Override http request option.
|
|
8490
8486
|
* @throws {RequiredError}
|
|
8491
8487
|
*/
|
|
8492
|
-
|
|
8488
|
+
getGetProducts: function () {
|
|
8493
8489
|
var args_1 = [];
|
|
8494
|
-
for (var _i =
|
|
8495
|
-
args_1[_i
|
|
8490
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8491
|
+
args_1[_i] = arguments[_i];
|
|
8496
8492
|
}
|
|
8497
|
-
return __awaiter(_this, __spreadArray([
|
|
8493
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
8498
8494
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8499
8495
|
if (options === void 0) { options = {}; }
|
|
8500
8496
|
return __generator(this, function (_a) {
|
|
8501
|
-
|
|
8502
|
-
(0, common_1.assertParamExists)('getGetProduct', 'sku', sku);
|
|
8503
|
-
localVarPath = "/products/{sku}"
|
|
8504
|
-
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8497
|
+
localVarPath = "/products";
|
|
8505
8498
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8506
8499
|
if (configuration) {
|
|
8507
8500
|
baseOptions = configuration.baseOptions;
|
|
@@ -8509,15 +8502,6 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8509
8502
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8510
8503
|
localVarHeaderParameter = {};
|
|
8511
8504
|
localVarQueryParameter = {};
|
|
8512
|
-
if (quantity !== undefined) {
|
|
8513
|
-
localVarQueryParameter['quantity'] = quantity;
|
|
8514
|
-
}
|
|
8515
|
-
if (licenceKey !== undefined) {
|
|
8516
|
-
localVarQueryParameter['licenceKey'] = licenceKey;
|
|
8517
|
-
}
|
|
8518
|
-
if (hosting !== undefined) {
|
|
8519
|
-
localVarQueryParameter['hosting'] = hosting;
|
|
8520
|
-
}
|
|
8521
8505
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8522
8506
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8523
8507
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8529,31 +8513,21 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8529
8513
|
});
|
|
8530
8514
|
},
|
|
8531
8515
|
/**
|
|
8532
|
-
* Get
|
|
8533
|
-
* @summary Get
|
|
8534
|
-
* @param {number} customerId Customer ID
|
|
8535
|
-
* @param {string} sku Product SKU
|
|
8536
|
-
* @param {number} [quantity] Quantity
|
|
8537
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
8538
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
8516
|
+
* Get Current Stock & Pricing
|
|
8517
|
+
* @summary Get Current Stock & Pricing
|
|
8539
8518
|
* @param {*} [options] Override http request option.
|
|
8540
8519
|
* @throws {RequiredError}
|
|
8541
8520
|
*/
|
|
8542
|
-
|
|
8521
|
+
getGetStockList: function () {
|
|
8543
8522
|
var args_1 = [];
|
|
8544
|
-
for (var _i =
|
|
8545
|
-
args_1[_i
|
|
8523
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8524
|
+
args_1[_i] = arguments[_i];
|
|
8546
8525
|
}
|
|
8547
|
-
return __awaiter(_this, __spreadArray([
|
|
8526
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
8548
8527
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8549
8528
|
if (options === void 0) { options = {}; }
|
|
8550
8529
|
return __generator(this, function (_a) {
|
|
8551
|
-
|
|
8552
|
-
(0, common_1.assertParamExists)('getGetProductForCustomer', 'customerId', customerId);
|
|
8553
|
-
// verify required parameter 'sku' is not null or undefined
|
|
8554
|
-
(0, common_1.assertParamExists)('getGetProductForCustomer', 'sku', sku);
|
|
8555
|
-
localVarPath = "/admin/products/{sku}"
|
|
8556
|
-
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8530
|
+
localVarPath = "/products/stock";
|
|
8557
8531
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8558
8532
|
if (configuration) {
|
|
8559
8533
|
baseOptions = configuration.baseOptions;
|
|
@@ -8561,18 +8535,6 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8561
8535
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8562
8536
|
localVarHeaderParameter = {};
|
|
8563
8537
|
localVarQueryParameter = {};
|
|
8564
|
-
if (customerId !== undefined) {
|
|
8565
|
-
localVarQueryParameter['customerId'] = customerId;
|
|
8566
|
-
}
|
|
8567
|
-
if (quantity !== undefined) {
|
|
8568
|
-
localVarQueryParameter['quantity'] = quantity;
|
|
8569
|
-
}
|
|
8570
|
-
if (licenceKey !== undefined) {
|
|
8571
|
-
localVarQueryParameter['licenceKey'] = licenceKey;
|
|
8572
|
-
}
|
|
8573
|
-
if (hosting !== undefined) {
|
|
8574
|
-
localVarQueryParameter['hosting'] = hosting;
|
|
8575
|
-
}
|
|
8576
8538
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8577
8539
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8578
8540
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8584,12 +8546,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8584
8546
|
});
|
|
8585
8547
|
},
|
|
8586
8548
|
/**
|
|
8587
|
-
* Get
|
|
8588
|
-
* @summary Get
|
|
8549
|
+
* Get 3CX Templates
|
|
8550
|
+
* @summary Get 3CX Templates
|
|
8589
8551
|
* @param {*} [options] Override http request option.
|
|
8590
8552
|
* @throws {RequiredError}
|
|
8591
8553
|
*/
|
|
8592
|
-
|
|
8554
|
+
getGetTcxTemplates: function () {
|
|
8593
8555
|
var args_1 = [];
|
|
8594
8556
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8595
8557
|
args_1[_i] = arguments[_i];
|
|
@@ -8598,7 +8560,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8598
8560
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8599
8561
|
if (options === void 0) { options = {}; }
|
|
8600
8562
|
return __generator(this, function (_a) {
|
|
8601
|
-
localVarPath = "/products";
|
|
8563
|
+
localVarPath = "/products/attributes/tcx/templates";
|
|
8602
8564
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8603
8565
|
if (configuration) {
|
|
8604
8566
|
baseOptions = configuration.baseOptions;
|
|
@@ -8617,21 +8579,24 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8617
8579
|
});
|
|
8618
8580
|
},
|
|
8619
8581
|
/**
|
|
8620
|
-
*
|
|
8621
|
-
* @summary
|
|
8582
|
+
* Search Products
|
|
8583
|
+
* @summary Search Products
|
|
8584
|
+
* @param {number} [pageSize] Number Of Results
|
|
8585
|
+
* @param {number} [page] Page Number
|
|
8586
|
+
* @param {string} [search] Search
|
|
8622
8587
|
* @param {*} [options] Override http request option.
|
|
8623
8588
|
* @throws {RequiredError}
|
|
8624
8589
|
*/
|
|
8625
|
-
|
|
8590
|
+
getSearchProducts: function (pageSize_1, page_1, search_1) {
|
|
8626
8591
|
var args_1 = [];
|
|
8627
|
-
for (var _i =
|
|
8628
|
-
args_1[_i] = arguments[_i];
|
|
8592
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8593
|
+
args_1[_i - 3] = arguments[_i];
|
|
8629
8594
|
}
|
|
8630
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
8595
|
+
return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1], args_1, true), void 0, function (pageSize, page, search, options) {
|
|
8631
8596
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8632
8597
|
if (options === void 0) { options = {}; }
|
|
8633
8598
|
return __generator(this, function (_a) {
|
|
8634
|
-
localVarPath = "/products/
|
|
8599
|
+
localVarPath = "/products/search";
|
|
8635
8600
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8636
8601
|
if (configuration) {
|
|
8637
8602
|
baseOptions = configuration.baseOptions;
|
|
@@ -8639,6 +8604,15 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8639
8604
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8640
8605
|
localVarHeaderParameter = {};
|
|
8641
8606
|
localVarQueryParameter = {};
|
|
8607
|
+
if (pageSize !== undefined) {
|
|
8608
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
8609
|
+
}
|
|
8610
|
+
if (page !== undefined) {
|
|
8611
|
+
localVarQueryParameter['page'] = page;
|
|
8612
|
+
}
|
|
8613
|
+
if (search !== undefined) {
|
|
8614
|
+
localVarQueryParameter['search'] = search;
|
|
8615
|
+
}
|
|
8642
8616
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8643
8617
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8644
8618
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8650,31 +8624,40 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8650
8624
|
});
|
|
8651
8625
|
},
|
|
8652
8626
|
/**
|
|
8653
|
-
* Get
|
|
8654
|
-
* @summary Get
|
|
8627
|
+
* Get Product
|
|
8628
|
+
* @summary Get Product
|
|
8629
|
+
* @param {string} sku Product SKU
|
|
8630
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8655
8631
|
* @param {*} [options] Override http request option.
|
|
8656
8632
|
* @throws {RequiredError}
|
|
8657
8633
|
*/
|
|
8658
|
-
|
|
8634
|
+
postGetProduct: function (sku_1, postGetProductForCustomerRequest_1) {
|
|
8659
8635
|
var args_1 = [];
|
|
8660
|
-
for (var _i =
|
|
8661
|
-
args_1[_i] = arguments[_i];
|
|
8636
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8637
|
+
args_1[_i - 2] = arguments[_i];
|
|
8662
8638
|
}
|
|
8663
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
8639
|
+
return __awaiter(_this, __spreadArray([sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (sku, postGetProductForCustomerRequest, options) {
|
|
8664
8640
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8665
8641
|
if (options === void 0) { options = {}; }
|
|
8666
8642
|
return __generator(this, function (_a) {
|
|
8667
|
-
|
|
8643
|
+
// verify required parameter 'sku' is not null or undefined
|
|
8644
|
+
(0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
|
|
8645
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
8646
|
+
(0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
8647
|
+
localVarPath = "/products/{sku}"
|
|
8648
|
+
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8668
8649
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8669
8650
|
if (configuration) {
|
|
8670
8651
|
baseOptions = configuration.baseOptions;
|
|
8671
8652
|
}
|
|
8672
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
8653
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8673
8654
|
localVarHeaderParameter = {};
|
|
8674
8655
|
localVarQueryParameter = {};
|
|
8656
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8675
8657
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8676
8658
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8677
8659
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8660
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
8678
8661
|
return [2 /*return*/, {
|
|
8679
8662
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8680
8663
|
options: localVarRequestOptions,
|
|
@@ -8683,43 +8666,46 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
8683
8666
|
});
|
|
8684
8667
|
},
|
|
8685
8668
|
/**
|
|
8686
|
-
*
|
|
8687
|
-
* @summary
|
|
8688
|
-
* @param {number}
|
|
8689
|
-
* @param {
|
|
8690
|
-
* @param {
|
|
8669
|
+
* Get Product For Customer
|
|
8670
|
+
* @summary Get Product For Customer
|
|
8671
|
+
* @param {number} customerId Customer ID
|
|
8672
|
+
* @param {string} sku Product SKU
|
|
8673
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8691
8674
|
* @param {*} [options] Override http request option.
|
|
8692
8675
|
* @throws {RequiredError}
|
|
8693
8676
|
*/
|
|
8694
|
-
|
|
8677
|
+
postGetProductForCustomer: function (customerId_1, sku_1, postGetProductForCustomerRequest_1) {
|
|
8695
8678
|
var args_1 = [];
|
|
8696
8679
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
8697
8680
|
args_1[_i - 3] = arguments[_i];
|
|
8698
8681
|
}
|
|
8699
|
-
return __awaiter(_this, __spreadArray([
|
|
8682
|
+
return __awaiter(_this, __spreadArray([customerId_1, sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
8700
8683
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8701
8684
|
if (options === void 0) { options = {}; }
|
|
8702
8685
|
return __generator(this, function (_a) {
|
|
8703
|
-
|
|
8686
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
8687
|
+
(0, common_1.assertParamExists)('postGetProductForCustomer', 'customerId', customerId);
|
|
8688
|
+
// verify required parameter 'sku' is not null or undefined
|
|
8689
|
+
(0, common_1.assertParamExists)('postGetProductForCustomer', 'sku', sku);
|
|
8690
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
8691
|
+
(0, common_1.assertParamExists)('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
8692
|
+
localVarPath = "/admin/products/{sku}"
|
|
8693
|
+
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
8704
8694
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8705
8695
|
if (configuration) {
|
|
8706
8696
|
baseOptions = configuration.baseOptions;
|
|
8707
8697
|
}
|
|
8708
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
8698
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8709
8699
|
localVarHeaderParameter = {};
|
|
8710
8700
|
localVarQueryParameter = {};
|
|
8711
|
-
if (
|
|
8712
|
-
localVarQueryParameter['
|
|
8713
|
-
}
|
|
8714
|
-
if (page !== undefined) {
|
|
8715
|
-
localVarQueryParameter['page'] = page;
|
|
8716
|
-
}
|
|
8717
|
-
if (search !== undefined) {
|
|
8718
|
-
localVarQueryParameter['search'] = search;
|
|
8701
|
+
if (customerId !== undefined) {
|
|
8702
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
8719
8703
|
}
|
|
8704
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8720
8705
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8721
8706
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8722
8707
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8708
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
8723
8709
|
return [2 /*return*/, {
|
|
8724
8710
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8725
8711
|
options: localVarRequestOptions,
|
|
@@ -8784,144 +8770,140 @@ var ProductsApiFp = function (configuration) {
|
|
|
8784
8770
|
});
|
|
8785
8771
|
},
|
|
8786
8772
|
/**
|
|
8787
|
-
* Get
|
|
8788
|
-
* @summary Get
|
|
8789
|
-
* @param {string} sku Product SKU
|
|
8790
|
-
* @param {number} [quantity] Quantity
|
|
8791
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
8792
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
8773
|
+
* Get Products
|
|
8774
|
+
* @summary Get Products
|
|
8793
8775
|
* @param {*} [options] Override http request option.
|
|
8794
8776
|
* @throws {RequiredError}
|
|
8795
8777
|
*/
|
|
8796
|
-
|
|
8778
|
+
getGetProducts: function (options) {
|
|
8797
8779
|
return __awaiter(this, void 0, void 0, function () {
|
|
8798
8780
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8799
8781
|
var _a, _b, _c;
|
|
8800
8782
|
return __generator(this, function (_d) {
|
|
8801
8783
|
switch (_d.label) {
|
|
8802
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8784
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProducts(options)];
|
|
8803
8785
|
case 1:
|
|
8804
8786
|
localVarAxiosArgs = _d.sent();
|
|
8805
8787
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8806
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8788
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8807
8789
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8808
8790
|
}
|
|
8809
8791
|
});
|
|
8810
8792
|
});
|
|
8811
8793
|
},
|
|
8812
8794
|
/**
|
|
8813
|
-
* Get
|
|
8814
|
-
* @summary Get
|
|
8815
|
-
* @param {number} customerId Customer ID
|
|
8816
|
-
* @param {string} sku Product SKU
|
|
8817
|
-
* @param {number} [quantity] Quantity
|
|
8818
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
8819
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
8795
|
+
* Get Current Stock & Pricing
|
|
8796
|
+
* @summary Get Current Stock & Pricing
|
|
8820
8797
|
* @param {*} [options] Override http request option.
|
|
8821
8798
|
* @throws {RequiredError}
|
|
8822
8799
|
*/
|
|
8823
|
-
|
|
8800
|
+
getGetStockList: function (options) {
|
|
8824
8801
|
return __awaiter(this, void 0, void 0, function () {
|
|
8825
8802
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8826
8803
|
var _a, _b, _c;
|
|
8827
8804
|
return __generator(this, function (_d) {
|
|
8828
8805
|
switch (_d.label) {
|
|
8829
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8806
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockList(options)];
|
|
8830
8807
|
case 1:
|
|
8831
8808
|
localVarAxiosArgs = _d.sent();
|
|
8832
8809
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8833
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8810
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetStockList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8834
8811
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8835
8812
|
}
|
|
8836
8813
|
});
|
|
8837
8814
|
});
|
|
8838
8815
|
},
|
|
8839
8816
|
/**
|
|
8840
|
-
* Get
|
|
8841
|
-
* @summary Get
|
|
8817
|
+
* Get 3CX Templates
|
|
8818
|
+
* @summary Get 3CX Templates
|
|
8842
8819
|
* @param {*} [options] Override http request option.
|
|
8843
8820
|
* @throws {RequiredError}
|
|
8844
8821
|
*/
|
|
8845
|
-
|
|
8822
|
+
getGetTcxTemplates: function (options) {
|
|
8846
8823
|
return __awaiter(this, void 0, void 0, function () {
|
|
8847
8824
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8848
8825
|
var _a, _b, _c;
|
|
8849
8826
|
return __generator(this, function (_d) {
|
|
8850
8827
|
switch (_d.label) {
|
|
8851
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8828
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxTemplates(options)];
|
|
8852
8829
|
case 1:
|
|
8853
8830
|
localVarAxiosArgs = _d.sent();
|
|
8854
8831
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8855
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8832
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getGetTcxTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8856
8833
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8857
8834
|
}
|
|
8858
8835
|
});
|
|
8859
8836
|
});
|
|
8860
8837
|
},
|
|
8861
8838
|
/**
|
|
8862
|
-
*
|
|
8863
|
-
* @summary
|
|
8839
|
+
* Search Products
|
|
8840
|
+
* @summary Search Products
|
|
8841
|
+
* @param {number} [pageSize] Number Of Results
|
|
8842
|
+
* @param {number} [page] Page Number
|
|
8843
|
+
* @param {string} [search] Search
|
|
8864
8844
|
* @param {*} [options] Override http request option.
|
|
8865
8845
|
* @throws {RequiredError}
|
|
8866
8846
|
*/
|
|
8867
|
-
|
|
8847
|
+
getSearchProducts: function (pageSize, page, search, options) {
|
|
8868
8848
|
return __awaiter(this, void 0, void 0, function () {
|
|
8869
8849
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8870
8850
|
var _a, _b, _c;
|
|
8871
8851
|
return __generator(this, function (_d) {
|
|
8872
8852
|
switch (_d.label) {
|
|
8873
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8853
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options)];
|
|
8874
8854
|
case 1:
|
|
8875
8855
|
localVarAxiosArgs = _d.sent();
|
|
8876
8856
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8877
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8857
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.getSearchProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8878
8858
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8879
8859
|
}
|
|
8880
8860
|
});
|
|
8881
8861
|
});
|
|
8882
8862
|
},
|
|
8883
8863
|
/**
|
|
8884
|
-
* Get
|
|
8885
|
-
* @summary Get
|
|
8864
|
+
* Get Product
|
|
8865
|
+
* @summary Get Product
|
|
8866
|
+
* @param {string} sku Product SKU
|
|
8867
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8886
8868
|
* @param {*} [options] Override http request option.
|
|
8887
8869
|
* @throws {RequiredError}
|
|
8888
8870
|
*/
|
|
8889
|
-
|
|
8871
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
8890
8872
|
return __awaiter(this, void 0, void 0, function () {
|
|
8891
8873
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8892
8874
|
var _a, _b, _c;
|
|
8893
8875
|
return __generator(this, function (_d) {
|
|
8894
8876
|
switch (_d.label) {
|
|
8895
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8877
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options)];
|
|
8896
8878
|
case 1:
|
|
8897
8879
|
localVarAxiosArgs = _d.sent();
|
|
8898
8880
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8899
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8881
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8900
8882
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8901
8883
|
}
|
|
8902
8884
|
});
|
|
8903
8885
|
});
|
|
8904
8886
|
},
|
|
8905
8887
|
/**
|
|
8906
|
-
*
|
|
8907
|
-
* @summary
|
|
8908
|
-
* @param {number}
|
|
8909
|
-
* @param {
|
|
8910
|
-
* @param {
|
|
8888
|
+
* Get Product For Customer
|
|
8889
|
+
* @summary Get Product For Customer
|
|
8890
|
+
* @param {number} customerId Customer ID
|
|
8891
|
+
* @param {string} sku Product SKU
|
|
8892
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8911
8893
|
* @param {*} [options] Override http request option.
|
|
8912
8894
|
* @throws {RequiredError}
|
|
8913
8895
|
*/
|
|
8914
|
-
|
|
8896
|
+
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
8915
8897
|
return __awaiter(this, void 0, void 0, function () {
|
|
8916
8898
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8917
8899
|
var _a, _b, _c;
|
|
8918
8900
|
return __generator(this, function (_d) {
|
|
8919
8901
|
switch (_d.label) {
|
|
8920
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8902
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options)];
|
|
8921
8903
|
case 1:
|
|
8922
8904
|
localVarAxiosArgs = _d.sent();
|
|
8923
8905
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8924
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.
|
|
8906
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.postGetProductForCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8925
8907
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8926
8908
|
}
|
|
8927
8909
|
});
|
|
@@ -8957,33 +8939,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
8957
8939
|
getGetLegacyStockList: function (format, options) {
|
|
8958
8940
|
return localVarFp.getGetLegacyStockList(format, options).then(function (request) { return request(axios, basePath); });
|
|
8959
8941
|
},
|
|
8960
|
-
/**
|
|
8961
|
-
* Get Product
|
|
8962
|
-
* @summary Get Product
|
|
8963
|
-
* @param {string} sku Product SKU
|
|
8964
|
-
* @param {number} [quantity] Quantity
|
|
8965
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
8966
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
8967
|
-
* @param {*} [options] Override http request option.
|
|
8968
|
-
* @throws {RequiredError}
|
|
8969
|
-
*/
|
|
8970
|
-
getGetProduct: function (sku, quantity, licenceKey, hosting, options) {
|
|
8971
|
-
return localVarFp.getGetProduct(sku, quantity, licenceKey, hosting, options).then(function (request) { return request(axios, basePath); });
|
|
8972
|
-
},
|
|
8973
|
-
/**
|
|
8974
|
-
* Get Product For Customer
|
|
8975
|
-
* @summary Get Product For Customer
|
|
8976
|
-
* @param {number} customerId Customer ID
|
|
8977
|
-
* @param {string} sku Product SKU
|
|
8978
|
-
* @param {number} [quantity] Quantity
|
|
8979
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
8980
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
8981
|
-
* @param {*} [options] Override http request option.
|
|
8982
|
-
* @throws {RequiredError}
|
|
8983
|
-
*/
|
|
8984
|
-
getGetProductForCustomer: function (customerId, sku, quantity, licenceKey, hosting, options) {
|
|
8985
|
-
return localVarFp.getGetProductForCustomer(customerId, sku, quantity, licenceKey, hosting, options).then(function (request) { return request(axios, basePath); });
|
|
8986
|
-
},
|
|
8987
8942
|
/**
|
|
8988
8943
|
* Get Products
|
|
8989
8944
|
* @summary Get Products
|
|
@@ -9023,6 +8978,29 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
9023
8978
|
getSearchProducts: function (pageSize, page, search, options) {
|
|
9024
8979
|
return localVarFp.getSearchProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
9025
8980
|
},
|
|
8981
|
+
/**
|
|
8982
|
+
* Get Product
|
|
8983
|
+
* @summary Get Product
|
|
8984
|
+
* @param {string} sku Product SKU
|
|
8985
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8986
|
+
* @param {*} [options] Override http request option.
|
|
8987
|
+
* @throws {RequiredError}
|
|
8988
|
+
*/
|
|
8989
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
8990
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
8991
|
+
},
|
|
8992
|
+
/**
|
|
8993
|
+
* Get Product For Customer
|
|
8994
|
+
* @summary Get Product For Customer
|
|
8995
|
+
* @param {number} customerId Customer ID
|
|
8996
|
+
* @param {string} sku Product SKU
|
|
8997
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
8998
|
+
* @param {*} [options] Override http request option.
|
|
8999
|
+
* @throws {RequiredError}
|
|
9000
|
+
*/
|
|
9001
|
+
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
9002
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
9003
|
+
},
|
|
9026
9004
|
};
|
|
9027
9005
|
};
|
|
9028
9006
|
exports.ProductsApiFactory = ProductsApiFactory;
|
|
@@ -9061,37 +9039,6 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9061
9039
|
var _this = this;
|
|
9062
9040
|
return (0, exports.ProductsApiFp)(this.configuration).getGetLegacyStockList(format, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9063
9041
|
};
|
|
9064
|
-
/**
|
|
9065
|
-
* Get Product
|
|
9066
|
-
* @summary Get Product
|
|
9067
|
-
* @param {string} sku Product SKU
|
|
9068
|
-
* @param {number} [quantity] Quantity
|
|
9069
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
9070
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
9071
|
-
* @param {*} [options] Override http request option.
|
|
9072
|
-
* @throws {RequiredError}
|
|
9073
|
-
* @memberof ProductsApi
|
|
9074
|
-
*/
|
|
9075
|
-
ProductsApi.prototype.getGetProduct = function (sku, quantity, licenceKey, hosting, options) {
|
|
9076
|
-
var _this = this;
|
|
9077
|
-
return (0, exports.ProductsApiFp)(this.configuration).getGetProduct(sku, quantity, licenceKey, hosting, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9078
|
-
};
|
|
9079
|
-
/**
|
|
9080
|
-
* Get Product For Customer
|
|
9081
|
-
* @summary Get Product For Customer
|
|
9082
|
-
* @param {number} customerId Customer ID
|
|
9083
|
-
* @param {string} sku Product SKU
|
|
9084
|
-
* @param {number} [quantity] Quantity
|
|
9085
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
9086
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
9087
|
-
* @param {*} [options] Override http request option.
|
|
9088
|
-
* @throws {RequiredError}
|
|
9089
|
-
* @memberof ProductsApi
|
|
9090
|
-
*/
|
|
9091
|
-
ProductsApi.prototype.getGetProductForCustomer = function (customerId, sku, quantity, licenceKey, hosting, options) {
|
|
9092
|
-
var _this = this;
|
|
9093
|
-
return (0, exports.ProductsApiFp)(this.configuration).getGetProductForCustomer(customerId, sku, quantity, licenceKey, hosting, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9094
|
-
};
|
|
9095
9042
|
/**
|
|
9096
9043
|
* Get Products
|
|
9097
9044
|
* @summary Get Products
|
|
@@ -9139,6 +9086,33 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
9139
9086
|
var _this = this;
|
|
9140
9087
|
return (0, exports.ProductsApiFp)(this.configuration).getSearchProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9141
9088
|
};
|
|
9089
|
+
/**
|
|
9090
|
+
* Get Product
|
|
9091
|
+
* @summary Get Product
|
|
9092
|
+
* @param {string} sku Product SKU
|
|
9093
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9094
|
+
* @param {*} [options] Override http request option.
|
|
9095
|
+
* @throws {RequiredError}
|
|
9096
|
+
* @memberof ProductsApi
|
|
9097
|
+
*/
|
|
9098
|
+
ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
|
|
9099
|
+
var _this = this;
|
|
9100
|
+
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9101
|
+
};
|
|
9102
|
+
/**
|
|
9103
|
+
* Get Product For Customer
|
|
9104
|
+
* @summary Get Product For Customer
|
|
9105
|
+
* @param {number} customerId Customer ID
|
|
9106
|
+
* @param {string} sku Product SKU
|
|
9107
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
9108
|
+
* @param {*} [options] Override http request option.
|
|
9109
|
+
* @throws {RequiredError}
|
|
9110
|
+
* @memberof ProductsApi
|
|
9111
|
+
*/
|
|
9112
|
+
ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
9113
|
+
var _this = this;
|
|
9114
|
+
return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9115
|
+
};
|
|
9142
9116
|
return ProductsApi;
|
|
9143
9117
|
}(base_1.BaseAPI));
|
|
9144
9118
|
exports.ProductsApi = ProductsApi;
|
|
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**ignoreOnHold** | **boolean** | Ignore Customer On Hold | [optional] [default to false]
|
|
18
18
|
**ignoreCreditLimit** | **boolean** | Ignore Customer Credit Limit | [optional] [default to false]
|
|
19
19
|
**includeNfrPromos** | **boolean** | Include NFR Promos | [optional] [default to false]
|
|
20
|
+
**carriageCharge** | **number** | Carriage Charge | [optional] [default to undefined]
|
|
20
21
|
|
|
21
22
|
## Example
|
|
22
23
|
|
|
@@ -35,6 +36,7 @@ const instance: AdminOrderRequestDTO = {
|
|
|
35
36
|
ignoreOnHold,
|
|
36
37
|
ignoreCreditLimit,
|
|
37
38
|
includeNfrPromos,
|
|
39
|
+
carriageCharge,
|
|
38
40
|
};
|
|
39
41
|
```
|
|
40
42
|
|