yellowgrid-api-ts 3.2.71-dev.0 → 3.2.74-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 +2 -1
- package/README.md +5 -3
- package/api.ts +351 -221
- package/dist/api.d.ts +258 -169
- package/dist/api.js +236 -149
- package/docs/AdminNumberPortDTO.md +57 -0
- package/docs/NumberPortNoteDTO.md +29 -0
- package/docs/NumberPortingApi.md +63 -6
- package/docs/OrdersApi.md +55 -55
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -138,6 +138,7 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
138
138
|
PopsLinkedOrders: 'pops_linked_orders',
|
|
139
139
|
NumberPorts: 'number_ports',
|
|
140
140
|
NumberPortRanges: 'number_port_ranges',
|
|
141
|
+
NumberPortNotes: 'number_port_notes',
|
|
141
142
|
PopsOfflineInstances: 'pops_offline_instances',
|
|
142
143
|
PopsOrderedItems: 'pops_ordered_items',
|
|
143
144
|
PopsPrizes: 'pops_prizes',
|
|
@@ -8158,6 +8159,47 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
8158
8159
|
});
|
|
8159
8160
|
});
|
|
8160
8161
|
},
|
|
8162
|
+
/**
|
|
8163
|
+
*
|
|
8164
|
+
* @param {number} id Number Port ID
|
|
8165
|
+
* @param {string} body
|
|
8166
|
+
* @param {*} [options] Override http request option.
|
|
8167
|
+
* @throws {RequiredError}
|
|
8168
|
+
*/
|
|
8169
|
+
postAddAdminNote: function (id_1, body_1) {
|
|
8170
|
+
var args_1 = [];
|
|
8171
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8172
|
+
args_1[_i - 2] = arguments[_i];
|
|
8173
|
+
}
|
|
8174
|
+
return __awaiter(_this, __spreadArray([id_1, body_1], args_1, true), void 0, function (id, body, options) {
|
|
8175
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8176
|
+
if (options === void 0) { options = {}; }
|
|
8177
|
+
return __generator(this, function (_a) {
|
|
8178
|
+
// verify required parameter 'id' is not null or undefined
|
|
8179
|
+
(0, common_1.assertParamExists)('postAddAdminNote', 'id', id);
|
|
8180
|
+
// verify required parameter 'body' is not null or undefined
|
|
8181
|
+
(0, common_1.assertParamExists)('postAddAdminNote', 'body', body);
|
|
8182
|
+
localVarPath = "/admin/sip/numbers/ports/{id}/notes"
|
|
8183
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8184
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8185
|
+
if (configuration) {
|
|
8186
|
+
baseOptions = configuration.baseOptions;
|
|
8187
|
+
}
|
|
8188
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8189
|
+
localVarHeaderParameter = {};
|
|
8190
|
+
localVarQueryParameter = {};
|
|
8191
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8192
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8193
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8194
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8195
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
8196
|
+
return [2 /*return*/, {
|
|
8197
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8198
|
+
options: localVarRequestOptions,
|
|
8199
|
+
}];
|
|
8200
|
+
});
|
|
8201
|
+
});
|
|
8202
|
+
},
|
|
8161
8203
|
/**
|
|
8162
8204
|
*
|
|
8163
8205
|
* @param {string | null} [companyName] Company Name
|
|
@@ -8602,6 +8644,29 @@ var NumberPortingApiFp = function (configuration) {
|
|
|
8602
8644
|
});
|
|
8603
8645
|
});
|
|
8604
8646
|
},
|
|
8647
|
+
/**
|
|
8648
|
+
*
|
|
8649
|
+
* @param {number} id Number Port ID
|
|
8650
|
+
* @param {string} body
|
|
8651
|
+
* @param {*} [options] Override http request option.
|
|
8652
|
+
* @throws {RequiredError}
|
|
8653
|
+
*/
|
|
8654
|
+
postAddAdminNote: function (id, body, options) {
|
|
8655
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8656
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8657
|
+
var _a, _b, _c;
|
|
8658
|
+
return __generator(this, function (_d) {
|
|
8659
|
+
switch (_d.label) {
|
|
8660
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id, body, options)];
|
|
8661
|
+
case 1:
|
|
8662
|
+
localVarAxiosArgs = _d.sent();
|
|
8663
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8664
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.postAddAdminNote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8665
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
8666
|
+
}
|
|
8667
|
+
});
|
|
8668
|
+
});
|
|
8669
|
+
},
|
|
8605
8670
|
/**
|
|
8606
8671
|
*
|
|
8607
8672
|
* @param {string | null} [companyName] Company Name
|
|
@@ -8794,6 +8859,16 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
|
|
|
8794
8859
|
patchCloseAdminNumberPort: function (id, options) {
|
|
8795
8860
|
return localVarFp.patchCloseAdminNumberPort(id, options).then(function (request) { return request(axios, basePath); });
|
|
8796
8861
|
},
|
|
8862
|
+
/**
|
|
8863
|
+
*
|
|
8864
|
+
* @param {number} id Number Port ID
|
|
8865
|
+
* @param {string} body
|
|
8866
|
+
* @param {*} [options] Override http request option.
|
|
8867
|
+
* @throws {RequiredError}
|
|
8868
|
+
*/
|
|
8869
|
+
postAddAdminNote: function (id, body, options) {
|
|
8870
|
+
return localVarFp.postAddAdminNote(id, body, options).then(function (request) { return request(axios, basePath); });
|
|
8871
|
+
},
|
|
8797
8872
|
/**
|
|
8798
8873
|
*
|
|
8799
8874
|
* @param {string | null} [companyName] Company Name
|
|
@@ -8950,6 +9025,18 @@ var NumberPortingApi = /** @class */ (function (_super) {
|
|
|
8950
9025
|
var _this = this;
|
|
8951
9026
|
return (0, exports.NumberPortingApiFp)(this.configuration).patchCloseAdminNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8952
9027
|
};
|
|
9028
|
+
/**
|
|
9029
|
+
*
|
|
9030
|
+
* @param {number} id Number Port ID
|
|
9031
|
+
* @param {string} body
|
|
9032
|
+
* @param {*} [options] Override http request option.
|
|
9033
|
+
* @throws {RequiredError}
|
|
9034
|
+
* @memberof NumberPortingApi
|
|
9035
|
+
*/
|
|
9036
|
+
NumberPortingApi.prototype.postAddAdminNote = function (id, body, options) {
|
|
9037
|
+
var _this = this;
|
|
9038
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id, body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9039
|
+
};
|
|
8953
9040
|
/**
|
|
8954
9041
|
*
|
|
8955
9042
|
* @param {string | null} [companyName] Company Name
|
|
@@ -9804,33 +9891,25 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
9804
9891
|
});
|
|
9805
9892
|
},
|
|
9806
9893
|
/**
|
|
9807
|
-
* Delete
|
|
9808
|
-
* @summary Delete
|
|
9894
|
+
* Delete Orders (Beta)
|
|
9895
|
+
* @summary Delete Orders (Beta)
|
|
9809
9896
|
* @param {number} id Order ID
|
|
9810
|
-
* @param {number} batchId Batch ID
|
|
9811
|
-
* @param {number} shipmentId Shipment ID
|
|
9812
9897
|
* @param {*} [options] Override http request option.
|
|
9813
9898
|
* @throws {RequiredError}
|
|
9814
9899
|
*/
|
|
9815
|
-
|
|
9900
|
+
deleteUpdateOrder: function (id_1) {
|
|
9816
9901
|
var args_1 = [];
|
|
9817
|
-
for (var _i =
|
|
9818
|
-
args_1[_i -
|
|
9902
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9903
|
+
args_1[_i - 1] = arguments[_i];
|
|
9819
9904
|
}
|
|
9820
|
-
return __awaiter(_this, __spreadArray([id_1
|
|
9905
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
9821
9906
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9822
9907
|
if (options === void 0) { options = {}; }
|
|
9823
9908
|
return __generator(this, function (_a) {
|
|
9824
9909
|
// verify required parameter 'id' is not null or undefined
|
|
9825
|
-
(0, common_1.assertParamExists)('
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
// verify required parameter 'shipmentId' is not null or undefined
|
|
9829
|
-
(0, common_1.assertParamExists)('deleteDeleteShipment', 'shipmentId', shipmentId);
|
|
9830
|
-
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}"
|
|
9831
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
9832
|
-
.replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
|
|
9833
|
-
.replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
|
|
9910
|
+
(0, common_1.assertParamExists)('deleteUpdateOrder', 'id', id);
|
|
9911
|
+
localVarPath = "/orders/{id}"
|
|
9912
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
9834
9913
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9835
9914
|
if (configuration) {
|
|
9836
9915
|
baseOptions = configuration.baseOptions;
|
|
@@ -9849,25 +9928,33 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
9849
9928
|
});
|
|
9850
9929
|
},
|
|
9851
9930
|
/**
|
|
9852
|
-
* Delete
|
|
9853
|
-
* @summary Delete
|
|
9931
|
+
* Delete Shipment (Admin)
|
|
9932
|
+
* @summary Delete Shipment (Admin)
|
|
9854
9933
|
* @param {number} id Order ID
|
|
9934
|
+
* @param {number} batchId Batch ID
|
|
9935
|
+
* @param {number} shipmentId Shipment ID
|
|
9855
9936
|
* @param {*} [options] Override http request option.
|
|
9856
9937
|
* @throws {RequiredError}
|
|
9857
9938
|
*/
|
|
9858
|
-
|
|
9939
|
+
deleteUpdateShipment: function (id_1, batchId_1, shipmentId_1) {
|
|
9859
9940
|
var args_1 = [];
|
|
9860
|
-
for (var _i =
|
|
9861
|
-
args_1[_i -
|
|
9941
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
9942
|
+
args_1[_i - 3] = arguments[_i];
|
|
9862
9943
|
}
|
|
9863
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
9944
|
+
return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentId_1], args_1, true), void 0, function (id, batchId, shipmentId, options) {
|
|
9864
9945
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9865
9946
|
if (options === void 0) { options = {}; }
|
|
9866
9947
|
return __generator(this, function (_a) {
|
|
9867
9948
|
// verify required parameter 'id' is not null or undefined
|
|
9868
|
-
(0, common_1.assertParamExists)('
|
|
9869
|
-
|
|
9870
|
-
|
|
9949
|
+
(0, common_1.assertParamExists)('deleteUpdateShipment', 'id', id);
|
|
9950
|
+
// verify required parameter 'batchId' is not null or undefined
|
|
9951
|
+
(0, common_1.assertParamExists)('deleteUpdateShipment', 'batchId', batchId);
|
|
9952
|
+
// verify required parameter 'shipmentId' is not null or undefined
|
|
9953
|
+
(0, common_1.assertParamExists)('deleteUpdateShipment', 'shipmentId', shipmentId);
|
|
9954
|
+
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}"
|
|
9955
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
9956
|
+
.replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
|
|
9957
|
+
.replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
|
|
9871
9958
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9872
9959
|
if (configuration) {
|
|
9873
9960
|
baseOptions = configuration.baseOptions;
|
|
@@ -10560,34 +10647,27 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10560
10647
|
});
|
|
10561
10648
|
},
|
|
10562
10649
|
/**
|
|
10563
|
-
* Update
|
|
10564
|
-
* @summary Update
|
|
10650
|
+
* Update An Order (Admin)
|
|
10651
|
+
* @summary Update An Order (Admin)
|
|
10565
10652
|
* @param {number} id Order ID
|
|
10566
|
-
* @param {
|
|
10567
|
-
* @param {
|
|
10568
|
-
* @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
|
|
10653
|
+
* @param {boolean} [readonly] Readonly Order
|
|
10654
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
10569
10655
|
* @param {*} [options] Override http request option.
|
|
10570
10656
|
* @throws {RequiredError}
|
|
10571
10657
|
*/
|
|
10572
|
-
|
|
10658
|
+
putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
|
|
10573
10659
|
var args_1 = [];
|
|
10574
|
-
for (var _i =
|
|
10575
|
-
args_1[_i -
|
|
10660
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
10661
|
+
args_1[_i - 3] = arguments[_i];
|
|
10576
10662
|
}
|
|
10577
|
-
return __awaiter(_this, __spreadArray([id_1,
|
|
10663
|
+
return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
|
|
10578
10664
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10579
10665
|
if (options === void 0) { options = {}; }
|
|
10580
10666
|
return __generator(this, function (_a) {
|
|
10581
10667
|
// verify required parameter 'id' is not null or undefined
|
|
10582
|
-
(0, common_1.assertParamExists)('
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
// verify required parameter 'shipmentId' is not null or undefined
|
|
10586
|
-
(0, common_1.assertParamExists)('putCreateShipment', 'shipmentId', shipmentId);
|
|
10587
|
-
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments"
|
|
10588
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
10589
|
-
.replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
|
|
10590
|
-
.replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
|
|
10668
|
+
(0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
|
|
10669
|
+
localVarPath = "/admin/orders/{id}"
|
|
10670
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
10591
10671
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10592
10672
|
if (configuration) {
|
|
10593
10673
|
baseOptions = configuration.baseOptions;
|
|
@@ -10595,11 +10675,14 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10595
10675
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
10596
10676
|
localVarHeaderParameter = {};
|
|
10597
10677
|
localVarQueryParameter = {};
|
|
10678
|
+
if (readonly !== undefined) {
|
|
10679
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
10680
|
+
}
|
|
10598
10681
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10599
10682
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10600
10683
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10601
10684
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10602
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
10685
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
|
|
10603
10686
|
return [2 /*return*/, {
|
|
10604
10687
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10605
10688
|
options: localVarRequestOptions,
|
|
@@ -10608,26 +10691,26 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10608
10691
|
});
|
|
10609
10692
|
},
|
|
10610
10693
|
/**
|
|
10611
|
-
* Update An Order (
|
|
10612
|
-
* @summary Update An Order (
|
|
10694
|
+
* Update An Order (Beta)
|
|
10695
|
+
* @summary Update An Order (Beta)
|
|
10613
10696
|
* @param {number} id Order ID
|
|
10614
10697
|
* @param {boolean} [readonly] Readonly Order
|
|
10615
|
-
* @param {
|
|
10698
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
10616
10699
|
* @param {*} [options] Override http request option.
|
|
10617
10700
|
* @throws {RequiredError}
|
|
10618
10701
|
*/
|
|
10619
|
-
|
|
10702
|
+
putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
|
|
10620
10703
|
var args_1 = [];
|
|
10621
10704
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
10622
10705
|
args_1[_i - 3] = arguments[_i];
|
|
10623
10706
|
}
|
|
10624
|
-
return __awaiter(_this, __spreadArray([id_1, readonly_1,
|
|
10707
|
+
return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
|
|
10625
10708
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10626
10709
|
if (options === void 0) { options = {}; }
|
|
10627
10710
|
return __generator(this, function (_a) {
|
|
10628
10711
|
// verify required parameter 'id' is not null or undefined
|
|
10629
|
-
(0, common_1.assertParamExists)('
|
|
10630
|
-
localVarPath = "/
|
|
10712
|
+
(0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
|
|
10713
|
+
localVarPath = "/orders/{id}"
|
|
10631
10714
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
10632
10715
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10633
10716
|
if (configuration) {
|
|
@@ -10643,7 +10726,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10643
10726
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10644
10727
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10645
10728
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10646
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
10729
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
|
|
10647
10730
|
return [2 /*return*/, {
|
|
10648
10731
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10649
10732
|
options: localVarRequestOptions,
|
|
@@ -10652,27 +10735,34 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10652
10735
|
});
|
|
10653
10736
|
},
|
|
10654
10737
|
/**
|
|
10655
|
-
* Update
|
|
10656
|
-
* @summary Update
|
|
10738
|
+
* Update Shipment (Admin)
|
|
10739
|
+
* @summary Update Shipment (Admin)
|
|
10657
10740
|
* @param {number} id Order ID
|
|
10658
|
-
* @param {
|
|
10659
|
-
* @param {
|
|
10741
|
+
* @param {number} batchId Batch ID
|
|
10742
|
+
* @param {number} shipmentId Shipment ID
|
|
10743
|
+
* @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
|
|
10660
10744
|
* @param {*} [options] Override http request option.
|
|
10661
10745
|
* @throws {RequiredError}
|
|
10662
10746
|
*/
|
|
10663
|
-
|
|
10747
|
+
putUpdateShipment: function (id_1, batchId_1, shipmentId_1, shipmentRequestDTO_1) {
|
|
10664
10748
|
var args_1 = [];
|
|
10665
|
-
for (var _i =
|
|
10666
|
-
args_1[_i -
|
|
10749
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
10750
|
+
args_1[_i - 4] = arguments[_i];
|
|
10667
10751
|
}
|
|
10668
|
-
return __awaiter(_this, __spreadArray([id_1,
|
|
10752
|
+
return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentId_1, shipmentRequestDTO_1], args_1, true), void 0, function (id, batchId, shipmentId, shipmentRequestDTO, options) {
|
|
10669
10753
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10670
10754
|
if (options === void 0) { options = {}; }
|
|
10671
10755
|
return __generator(this, function (_a) {
|
|
10672
10756
|
// verify required parameter 'id' is not null or undefined
|
|
10673
|
-
(0, common_1.assertParamExists)('
|
|
10674
|
-
|
|
10675
|
-
|
|
10757
|
+
(0, common_1.assertParamExists)('putUpdateShipment', 'id', id);
|
|
10758
|
+
// verify required parameter 'batchId' is not null or undefined
|
|
10759
|
+
(0, common_1.assertParamExists)('putUpdateShipment', 'batchId', batchId);
|
|
10760
|
+
// verify required parameter 'shipmentId' is not null or undefined
|
|
10761
|
+
(0, common_1.assertParamExists)('putUpdateShipment', 'shipmentId', shipmentId);
|
|
10762
|
+
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}"
|
|
10763
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
10764
|
+
.replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
|
|
10765
|
+
.replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
|
|
10676
10766
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10677
10767
|
if (configuration) {
|
|
10678
10768
|
baseOptions = configuration.baseOptions;
|
|
@@ -10680,14 +10770,11 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10680
10770
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
10681
10771
|
localVarHeaderParameter = {};
|
|
10682
10772
|
localVarQueryParameter = {};
|
|
10683
|
-
if (readonly !== undefined) {
|
|
10684
|
-
localVarQueryParameter['readonly'] = readonly;
|
|
10685
|
-
}
|
|
10686
10773
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10687
10774
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10688
10775
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10689
10776
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10690
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
10777
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shipmentRequestDTO, localVarRequestOptions, configuration);
|
|
10691
10778
|
return [2 /*return*/, {
|
|
10692
10779
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10693
10780
|
options: localVarRequestOptions,
|
|
@@ -10729,48 +10816,48 @@ var OrdersApiFp = function (configuration) {
|
|
|
10729
10816
|
});
|
|
10730
10817
|
},
|
|
10731
10818
|
/**
|
|
10732
|
-
* Delete
|
|
10733
|
-
* @summary Delete
|
|
10819
|
+
* Delete Orders (Beta)
|
|
10820
|
+
* @summary Delete Orders (Beta)
|
|
10734
10821
|
* @param {number} id Order ID
|
|
10735
|
-
* @param {number} batchId Batch ID
|
|
10736
|
-
* @param {number} shipmentId Shipment ID
|
|
10737
10822
|
* @param {*} [options] Override http request option.
|
|
10738
10823
|
* @throws {RequiredError}
|
|
10739
10824
|
*/
|
|
10740
|
-
|
|
10825
|
+
deleteUpdateOrder: function (id, options) {
|
|
10741
10826
|
return __awaiter(this, void 0, void 0, function () {
|
|
10742
10827
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
10743
10828
|
var _a, _b, _c;
|
|
10744
10829
|
return __generator(this, function (_d) {
|
|
10745
10830
|
switch (_d.label) {
|
|
10746
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
10831
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
|
|
10747
10832
|
case 1:
|
|
10748
10833
|
localVarAxiosArgs = _d.sent();
|
|
10749
10834
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10750
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.
|
|
10835
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10751
10836
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
10752
10837
|
}
|
|
10753
10838
|
});
|
|
10754
10839
|
});
|
|
10755
10840
|
},
|
|
10756
10841
|
/**
|
|
10757
|
-
* Delete
|
|
10758
|
-
* @summary Delete
|
|
10842
|
+
* Delete Shipment (Admin)
|
|
10843
|
+
* @summary Delete Shipment (Admin)
|
|
10759
10844
|
* @param {number} id Order ID
|
|
10845
|
+
* @param {number} batchId Batch ID
|
|
10846
|
+
* @param {number} shipmentId Shipment ID
|
|
10760
10847
|
* @param {*} [options] Override http request option.
|
|
10761
10848
|
* @throws {RequiredError}
|
|
10762
10849
|
*/
|
|
10763
|
-
|
|
10850
|
+
deleteUpdateShipment: function (id, batchId, shipmentId, options) {
|
|
10764
10851
|
return __awaiter(this, void 0, void 0, function () {
|
|
10765
10852
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
10766
10853
|
var _a, _b, _c;
|
|
10767
10854
|
return __generator(this, function (_d) {
|
|
10768
10855
|
switch (_d.label) {
|
|
10769
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
10856
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateShipment(id, batchId, shipmentId, options)];
|
|
10770
10857
|
case 1:
|
|
10771
10858
|
localVarAxiosArgs = _d.sent();
|
|
10772
10859
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10773
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.
|
|
10860
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateShipment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10774
10861
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
10775
10862
|
}
|
|
10776
10863
|
});
|
|
@@ -11166,76 +11253,76 @@ var OrdersApiFp = function (configuration) {
|
|
|
11166
11253
|
});
|
|
11167
11254
|
},
|
|
11168
11255
|
/**
|
|
11169
|
-
* Update
|
|
11170
|
-
* @summary Update
|
|
11256
|
+
* Update An Order (Admin)
|
|
11257
|
+
* @summary Update An Order (Admin)
|
|
11171
11258
|
* @param {number} id Order ID
|
|
11172
|
-
* @param {
|
|
11173
|
-
* @param {
|
|
11174
|
-
* @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
|
|
11259
|
+
* @param {boolean} [readonly] Readonly Order
|
|
11260
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
11175
11261
|
* @param {*} [options] Override http request option.
|
|
11176
11262
|
* @throws {RequiredError}
|
|
11177
11263
|
*/
|
|
11178
|
-
|
|
11264
|
+
putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
|
|
11179
11265
|
return __awaiter(this, void 0, void 0, function () {
|
|
11180
11266
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
11181
11267
|
var _a, _b, _c;
|
|
11182
11268
|
return __generator(this, function (_d) {
|
|
11183
11269
|
switch (_d.label) {
|
|
11184
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
11270
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
|
|
11185
11271
|
case 1:
|
|
11186
11272
|
localVarAxiosArgs = _d.sent();
|
|
11187
11273
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11188
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.
|
|
11274
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11189
11275
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
11190
11276
|
}
|
|
11191
11277
|
});
|
|
11192
11278
|
});
|
|
11193
11279
|
},
|
|
11194
11280
|
/**
|
|
11195
|
-
* Update An Order (
|
|
11196
|
-
* @summary Update An Order (
|
|
11281
|
+
* Update An Order (Beta)
|
|
11282
|
+
* @summary Update An Order (Beta)
|
|
11197
11283
|
* @param {number} id Order ID
|
|
11198
11284
|
* @param {boolean} [readonly] Readonly Order
|
|
11199
|
-
* @param {
|
|
11285
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
11200
11286
|
* @param {*} [options] Override http request option.
|
|
11201
11287
|
* @throws {RequiredError}
|
|
11202
11288
|
*/
|
|
11203
|
-
|
|
11289
|
+
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
11204
11290
|
return __awaiter(this, void 0, void 0, function () {
|
|
11205
11291
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
11206
11292
|
var _a, _b, _c;
|
|
11207
11293
|
return __generator(this, function (_d) {
|
|
11208
11294
|
switch (_d.label) {
|
|
11209
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
11295
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options)];
|
|
11210
11296
|
case 1:
|
|
11211
11297
|
localVarAxiosArgs = _d.sent();
|
|
11212
11298
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11213
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.
|
|
11299
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11214
11300
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
11215
11301
|
}
|
|
11216
11302
|
});
|
|
11217
11303
|
});
|
|
11218
11304
|
},
|
|
11219
11305
|
/**
|
|
11220
|
-
* Update
|
|
11221
|
-
* @summary Update
|
|
11306
|
+
* Update Shipment (Admin)
|
|
11307
|
+
* @summary Update Shipment (Admin)
|
|
11222
11308
|
* @param {number} id Order ID
|
|
11223
|
-
* @param {
|
|
11224
|
-
* @param {
|
|
11309
|
+
* @param {number} batchId Batch ID
|
|
11310
|
+
* @param {number} shipmentId Shipment ID
|
|
11311
|
+
* @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
|
|
11225
11312
|
* @param {*} [options] Override http request option.
|
|
11226
11313
|
* @throws {RequiredError}
|
|
11227
11314
|
*/
|
|
11228
|
-
|
|
11315
|
+
putUpdateShipment: function (id, batchId, shipmentId, shipmentRequestDTO, options) {
|
|
11229
11316
|
return __awaiter(this, void 0, void 0, function () {
|
|
11230
11317
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
11231
11318
|
var _a, _b, _c;
|
|
11232
11319
|
return __generator(this, function (_d) {
|
|
11233
11320
|
switch (_d.label) {
|
|
11234
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
11321
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options)];
|
|
11235
11322
|
case 1:
|
|
11236
11323
|
localVarAxiosArgs = _d.sent();
|
|
11237
11324
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11238
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.
|
|
11325
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateShipment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11239
11326
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
11240
11327
|
}
|
|
11241
11328
|
});
|
|
@@ -11262,26 +11349,26 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
11262
11349
|
return localVarFp.deleteDeleteBatch(id, batchId, options).then(function (request) { return request(axios, basePath); });
|
|
11263
11350
|
},
|
|
11264
11351
|
/**
|
|
11265
|
-
* Delete
|
|
11266
|
-
* @summary Delete
|
|
11352
|
+
* Delete Orders (Beta)
|
|
11353
|
+
* @summary Delete Orders (Beta)
|
|
11267
11354
|
* @param {number} id Order ID
|
|
11268
|
-
* @param {number} batchId Batch ID
|
|
11269
|
-
* @param {number} shipmentId Shipment ID
|
|
11270
11355
|
* @param {*} [options] Override http request option.
|
|
11271
11356
|
* @throws {RequiredError}
|
|
11272
11357
|
*/
|
|
11273
|
-
|
|
11274
|
-
return localVarFp.
|
|
11358
|
+
deleteUpdateOrder: function (id, options) {
|
|
11359
|
+
return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
11275
11360
|
},
|
|
11276
11361
|
/**
|
|
11277
|
-
* Delete
|
|
11278
|
-
* @summary Delete
|
|
11362
|
+
* Delete Shipment (Admin)
|
|
11363
|
+
* @summary Delete Shipment (Admin)
|
|
11279
11364
|
* @param {number} id Order ID
|
|
11365
|
+
* @param {number} batchId Batch ID
|
|
11366
|
+
* @param {number} shipmentId Shipment ID
|
|
11280
11367
|
* @param {*} [options] Override http request option.
|
|
11281
11368
|
* @throws {RequiredError}
|
|
11282
11369
|
*/
|
|
11283
|
-
|
|
11284
|
-
return localVarFp.
|
|
11370
|
+
deleteUpdateShipment: function (id, batchId, shipmentId, options) {
|
|
11371
|
+
return localVarFp.deleteUpdateShipment(id, batchId, shipmentId, options).then(function (request) { return request(axios, basePath); });
|
|
11285
11372
|
},
|
|
11286
11373
|
/**
|
|
11287
11374
|
* Get Editable Order (Admin)
|
|
@@ -11464,19 +11551,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
11464
11551
|
putAllocateItems: function (id, supplierId, putAllocateItemsRequest, options) {
|
|
11465
11552
|
return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then(function (request) { return request(axios, basePath); });
|
|
11466
11553
|
},
|
|
11467
|
-
/**
|
|
11468
|
-
* Update Shipment (Admin)
|
|
11469
|
-
* @summary Update Shipment (Admin)
|
|
11470
|
-
* @param {number} id Order ID
|
|
11471
|
-
* @param {number} batchId Batch ID
|
|
11472
|
-
* @param {number} shipmentId Shipment ID
|
|
11473
|
-
* @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
|
|
11474
|
-
* @param {*} [options] Override http request option.
|
|
11475
|
-
* @throws {RequiredError}
|
|
11476
|
-
*/
|
|
11477
|
-
putCreateShipment: function (id, batchId, shipmentId, shipmentRequestDTO, options) {
|
|
11478
|
-
return localVarFp.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
11479
|
-
},
|
|
11480
11554
|
/**
|
|
11481
11555
|
* Update An Order (Admin)
|
|
11482
11556
|
* @summary Update An Order (Admin)
|
|
@@ -11501,6 +11575,19 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
11501
11575
|
putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
|
|
11502
11576
|
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
11503
11577
|
},
|
|
11578
|
+
/**
|
|
11579
|
+
* Update Shipment (Admin)
|
|
11580
|
+
* @summary Update Shipment (Admin)
|
|
11581
|
+
* @param {number} id Order ID
|
|
11582
|
+
* @param {number} batchId Batch ID
|
|
11583
|
+
* @param {number} shipmentId Shipment ID
|
|
11584
|
+
* @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
|
|
11585
|
+
* @param {*} [options] Override http request option.
|
|
11586
|
+
* @throws {RequiredError}
|
|
11587
|
+
*/
|
|
11588
|
+
putUpdateShipment: function (id, batchId, shipmentId, shipmentRequestDTO, options) {
|
|
11589
|
+
return localVarFp.putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
11590
|
+
},
|
|
11504
11591
|
};
|
|
11505
11592
|
};
|
|
11506
11593
|
exports.OrdersApiFactory = OrdersApiFactory;
|
|
@@ -11528,30 +11615,30 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
11528
11615
|
return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteBatch(id, batchId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11529
11616
|
};
|
|
11530
11617
|
/**
|
|
11531
|
-
* Delete
|
|
11532
|
-
* @summary Delete
|
|
11618
|
+
* Delete Orders (Beta)
|
|
11619
|
+
* @summary Delete Orders (Beta)
|
|
11533
11620
|
* @param {number} id Order ID
|
|
11534
|
-
* @param {number} batchId Batch ID
|
|
11535
|
-
* @param {number} shipmentId Shipment ID
|
|
11536
11621
|
* @param {*} [options] Override http request option.
|
|
11537
11622
|
* @throws {RequiredError}
|
|
11538
11623
|
* @memberof OrdersApi
|
|
11539
11624
|
*/
|
|
11540
|
-
OrdersApi.prototype.
|
|
11625
|
+
OrdersApi.prototype.deleteUpdateOrder = function (id, options) {
|
|
11541
11626
|
var _this = this;
|
|
11542
|
-
return (0, exports.OrdersApiFp)(this.configuration).
|
|
11627
|
+
return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11543
11628
|
};
|
|
11544
11629
|
/**
|
|
11545
|
-
* Delete
|
|
11546
|
-
* @summary Delete
|
|
11630
|
+
* Delete Shipment (Admin)
|
|
11631
|
+
* @summary Delete Shipment (Admin)
|
|
11547
11632
|
* @param {number} id Order ID
|
|
11633
|
+
* @param {number} batchId Batch ID
|
|
11634
|
+
* @param {number} shipmentId Shipment ID
|
|
11548
11635
|
* @param {*} [options] Override http request option.
|
|
11549
11636
|
* @throws {RequiredError}
|
|
11550
11637
|
* @memberof OrdersApi
|
|
11551
11638
|
*/
|
|
11552
|
-
OrdersApi.prototype.
|
|
11639
|
+
OrdersApi.prototype.deleteUpdateShipment = function (id, batchId, shipmentId, options) {
|
|
11553
11640
|
var _this = this;
|
|
11554
|
-
return (0, exports.OrdersApiFp)(this.configuration).
|
|
11641
|
+
return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateShipment(id, batchId, shipmentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11555
11642
|
};
|
|
11556
11643
|
/**
|
|
11557
11644
|
* Get Editable Order (Admin)
|
|
@@ -11766,21 +11853,6 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
11766
11853
|
var _this = this;
|
|
11767
11854
|
return (0, exports.OrdersApiFp)(this.configuration).putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11768
11855
|
};
|
|
11769
|
-
/**
|
|
11770
|
-
* Update Shipment (Admin)
|
|
11771
|
-
* @summary Update Shipment (Admin)
|
|
11772
|
-
* @param {number} id Order ID
|
|
11773
|
-
* @param {number} batchId Batch ID
|
|
11774
|
-
* @param {number} shipmentId Shipment ID
|
|
11775
|
-
* @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
|
|
11776
|
-
* @param {*} [options] Override http request option.
|
|
11777
|
-
* @throws {RequiredError}
|
|
11778
|
-
* @memberof OrdersApi
|
|
11779
|
-
*/
|
|
11780
|
-
OrdersApi.prototype.putCreateShipment = function (id, batchId, shipmentId, shipmentRequestDTO, options) {
|
|
11781
|
-
var _this = this;
|
|
11782
|
-
return (0, exports.OrdersApiFp)(this.configuration).putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11783
|
-
};
|
|
11784
11856
|
/**
|
|
11785
11857
|
* Update An Order (Admin)
|
|
11786
11858
|
* @summary Update An Order (Admin)
|
|
@@ -11809,6 +11881,21 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
11809
11881
|
var _this = this;
|
|
11810
11882
|
return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11811
11883
|
};
|
|
11884
|
+
/**
|
|
11885
|
+
* Update Shipment (Admin)
|
|
11886
|
+
* @summary Update Shipment (Admin)
|
|
11887
|
+
* @param {number} id Order ID
|
|
11888
|
+
* @param {number} batchId Batch ID
|
|
11889
|
+
* @param {number} shipmentId Shipment ID
|
|
11890
|
+
* @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
|
|
11891
|
+
* @param {*} [options] Override http request option.
|
|
11892
|
+
* @throws {RequiredError}
|
|
11893
|
+
* @memberof OrdersApi
|
|
11894
|
+
*/
|
|
11895
|
+
OrdersApi.prototype.putUpdateShipment = function (id, batchId, shipmentId, shipmentRequestDTO, options) {
|
|
11896
|
+
var _this = this;
|
|
11897
|
+
return (0, exports.OrdersApiFp)(this.configuration).putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11898
|
+
};
|
|
11812
11899
|
return OrdersApi;
|
|
11813
11900
|
}(base_1.BaseAPI));
|
|
11814
11901
|
exports.OrdersApi = OrdersApi;
|