yellowgrid-api-ts 3.2.61-dev.0 → 3.2.62-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/api.ts CHANGED
@@ -18216,11 +18216,10 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18216
18216
  * Delete Batch (Admin)
18217
18217
  * @param {number} id Order ID
18218
18218
  * @param {number} batchId Batch ID
18219
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18220
18219
  * @param {*} [options] Override http request option.
18221
18220
  * @throws {RequiredError}
18222
18221
  */
18223
- deleteDeleteBatch: async (id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18222
+ deleteDeleteBatch: async (id: number, batchId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18224
18223
  // verify required parameter 'id' is not null or undefined
18225
18224
  assertParamExists('deleteDeleteBatch', 'id', id)
18226
18225
  // verify required parameter 'batchId' is not null or undefined
@@ -18241,12 +18240,9 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18241
18240
 
18242
18241
 
18243
18242
 
18244
- localVarHeaderParameter['Content-Type'] = 'application/json';
18245
-
18246
18243
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18247
18244
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18248
18245
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18249
- localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
18250
18246
 
18251
18247
  return {
18252
18248
  url: toPathString(localVarUrlObj),
@@ -19094,12 +19090,11 @@ export const OrdersApiFp = function(configuration?: Configuration) {
19094
19090
  * Delete Batch (Admin)
19095
19091
  * @param {number} id Order ID
19096
19092
  * @param {number} batchId Batch ID
19097
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19098
19093
  * @param {*} [options] Override http request option.
19099
19094
  * @throws {RequiredError}
19100
19095
  */
19101
- async deleteDeleteBatch(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19102
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteBatch(id, batchId, shipmentRequestDTO, options);
19096
+ async deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19097
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteBatch(id, batchId, options);
19103
19098
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19104
19099
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteDeleteBatch']?.[localVarOperationServerIndex]?.url;
19105
19100
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19418,12 +19413,11 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19418
19413
  * Delete Batch (Admin)
19419
19414
  * @param {number} id Order ID
19420
19415
  * @param {number} batchId Batch ID
19421
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19422
19416
  * @param {*} [options] Override http request option.
19423
19417
  * @throws {RequiredError}
19424
19418
  */
19425
- deleteDeleteBatch(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19426
- return localVarFp.deleteDeleteBatch(id, batchId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19419
+ deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19420
+ return localVarFp.deleteDeleteBatch(id, batchId, options).then((request) => request(axios, basePath));
19427
19421
  },
19428
19422
  /**
19429
19423
  * Delete Orders (Beta)
@@ -19681,13 +19675,12 @@ export class OrdersApi extends BaseAPI {
19681
19675
  * Delete Batch (Admin)
19682
19676
  * @param {number} id Order ID
19683
19677
  * @param {number} batchId Batch ID
19684
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19685
19678
  * @param {*} [options] Override http request option.
19686
19679
  * @throws {RequiredError}
19687
19680
  * @memberof OrdersApi
19688
19681
  */
19689
- public deleteDeleteBatch(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19690
- return OrdersApiFp(this.configuration).deleteDeleteBatch(id, batchId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19682
+ public deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig) {
19683
+ return OrdersApiFp(this.configuration).deleteDeleteBatch(id, batchId, options).then((request) => request(this.axios, this.basePath));
19691
19684
  }
19692
19685
 
19693
19686
  /**
package/dist/api.d.ts CHANGED
@@ -14485,11 +14485,10 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
14485
14485
  * Delete Batch (Admin)
14486
14486
  * @param {number} id Order ID
14487
14487
  * @param {number} batchId Batch ID
14488
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
14489
14488
  * @param {*} [options] Override http request option.
14490
14489
  * @throws {RequiredError}
14491
14490
  */
14492
- deleteDeleteBatch: (id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14491
+ deleteDeleteBatch: (id: number, batchId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14493
14492
  /**
14494
14493
  * Delete Orders (Beta)
14495
14494
  * @summary Delete Orders (Beta)
@@ -14698,11 +14697,10 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
14698
14697
  * Delete Batch (Admin)
14699
14698
  * @param {number} id Order ID
14700
14699
  * @param {number} batchId Batch ID
14701
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
14702
14700
  * @param {*} [options] Override http request option.
14703
14701
  * @throws {RequiredError}
14704
14702
  */
14705
- deleteDeleteBatch(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
14703
+ deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
14706
14704
  /**
14707
14705
  * Delete Orders (Beta)
14708
14706
  * @summary Delete Orders (Beta)
@@ -14911,11 +14909,10 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
14911
14909
  * Delete Batch (Admin)
14912
14910
  * @param {number} id Order ID
14913
14911
  * @param {number} batchId Batch ID
14914
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
14915
14912
  * @param {*} [options] Override http request option.
14916
14913
  * @throws {RequiredError}
14917
14914
  */
14918
- deleteDeleteBatch(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<void>;
14915
+ deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
14919
14916
  /**
14920
14917
  * Delete Orders (Beta)
14921
14918
  * @summary Delete Orders (Beta)
@@ -15127,12 +15124,11 @@ export declare class OrdersApi extends BaseAPI {
15127
15124
  * Delete Batch (Admin)
15128
15125
  * @param {number} id Order ID
15129
15126
  * @param {number} batchId Batch ID
15130
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
15131
15127
  * @param {*} [options] Override http request option.
15132
15128
  * @throws {RequiredError}
15133
15129
  * @memberof OrdersApi
15134
15130
  */
15135
- deleteDeleteBatch(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
15131
+ deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
15136
15132
  /**
15137
15133
  * Delete Orders (Beta)
15138
15134
  * @summary Delete Orders (Beta)
package/dist/api.js CHANGED
@@ -8608,16 +8608,15 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8608
8608
  * Delete Batch (Admin)
8609
8609
  * @param {number} id Order ID
8610
8610
  * @param {number} batchId Batch ID
8611
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
8612
8611
  * @param {*} [options] Override http request option.
8613
8612
  * @throws {RequiredError}
8614
8613
  */
8615
- deleteDeleteBatch: function (id_1, batchId_1, shipmentRequestDTO_1) {
8614
+ deleteDeleteBatch: function (id_1, batchId_1) {
8616
8615
  var args_1 = [];
8617
- for (var _i = 3; _i < arguments.length; _i++) {
8618
- args_1[_i - 3] = arguments[_i];
8616
+ for (var _i = 2; _i < arguments.length; _i++) {
8617
+ args_1[_i - 2] = arguments[_i];
8619
8618
  }
8620
- return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentRequestDTO_1], args_1, true), void 0, function (id, batchId, shipmentRequestDTO, options) {
8619
+ return __awaiter(_this, __spreadArray([id_1, batchId_1], args_1, true), void 0, function (id, batchId, options) {
8621
8620
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8622
8621
  if (options === void 0) { options = {}; }
8623
8622
  return __generator(this, function (_a) {
@@ -8635,11 +8634,9 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8635
8634
  localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
8636
8635
  localVarHeaderParameter = {};
8637
8636
  localVarQueryParameter = {};
8638
- localVarHeaderParameter['Content-Type'] = 'application/json';
8639
8637
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8640
8638
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8641
8639
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8642
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shipmentRequestDTO, localVarRequestOptions, configuration);
8643
8640
  return [2 /*return*/, {
8644
8641
  url: (0, common_1.toPathString)(localVarUrlObj),
8645
8642
  options: localVarRequestOptions,
@@ -9533,17 +9530,16 @@ var OrdersApiFp = function (configuration) {
9533
9530
  * Delete Batch (Admin)
9534
9531
  * @param {number} id Order ID
9535
9532
  * @param {number} batchId Batch ID
9536
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
9537
9533
  * @param {*} [options] Override http request option.
9538
9534
  * @throws {RequiredError}
9539
9535
  */
9540
- deleteDeleteBatch: function (id, batchId, shipmentRequestDTO, options) {
9536
+ deleteDeleteBatch: function (id, batchId, options) {
9541
9537
  return __awaiter(this, void 0, void 0, function () {
9542
9538
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9543
9539
  var _a, _b, _c;
9544
9540
  return __generator(this, function (_d) {
9545
9541
  switch (_d.label) {
9546
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteBatch(id, batchId, shipmentRequestDTO, options)];
9542
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteBatch(id, batchId, options)];
9547
9543
  case 1:
9548
9544
  localVarAxiosArgs = _d.sent();
9549
9545
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -10067,12 +10063,11 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10067
10063
  * Delete Batch (Admin)
10068
10064
  * @param {number} id Order ID
10069
10065
  * @param {number} batchId Batch ID
10070
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
10071
10066
  * @param {*} [options] Override http request option.
10072
10067
  * @throws {RequiredError}
10073
10068
  */
10074
- deleteDeleteBatch: function (id, batchId, shipmentRequestDTO, options) {
10075
- return localVarFp.deleteDeleteBatch(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(axios, basePath); });
10069
+ deleteDeleteBatch: function (id, batchId, options) {
10070
+ return localVarFp.deleteDeleteBatch(id, batchId, options).then(function (request) { return request(axios, basePath); });
10076
10071
  },
10077
10072
  /**
10078
10073
  * Delete Orders (Beta)
@@ -10334,14 +10329,13 @@ var OrdersApi = /** @class */ (function (_super) {
10334
10329
  * Delete Batch (Admin)
10335
10330
  * @param {number} id Order ID
10336
10331
  * @param {number} batchId Batch ID
10337
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
10338
10332
  * @param {*} [options] Override http request option.
10339
10333
  * @throws {RequiredError}
10340
10334
  * @memberof OrdersApi
10341
10335
  */
10342
- OrdersApi.prototype.deleteDeleteBatch = function (id, batchId, shipmentRequestDTO, options) {
10336
+ OrdersApi.prototype.deleteDeleteBatch = function (id, batchId, options) {
10343
10337
  var _this = this;
10344
- return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteBatch(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10338
+ return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteBatch(id, batchId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10345
10339
  };
10346
10340
  /**
10347
10341
  * Delete Orders (Beta)
package/docs/OrdersApi.md CHANGED
@@ -97,8 +97,7 @@ Delete Batch (Admin)
97
97
  ```typescript
98
98
  import {
99
99
  OrdersApi,
100
- Configuration,
101
- ShipmentRequestDTO
100
+ Configuration
102
101
  } from 'yellowgrid-api-ts';
103
102
 
104
103
  const configuration = new Configuration();
@@ -106,12 +105,10 @@ const apiInstance = new OrdersApi(configuration);
106
105
 
107
106
  let id: number; //Order ID (default to undefined)
108
107
  let batchId: number; //Batch ID (default to undefined)
109
- let shipmentRequestDTO: ShipmentRequestDTO; //Shipment Request (optional)
110
108
 
111
109
  const { status, data } = await apiInstance.deleteDeleteBatch(
112
110
  id,
113
- batchId,
114
- shipmentRequestDTO
111
+ batchId
115
112
  );
116
113
  ```
117
114
 
@@ -119,7 +116,6 @@ const { status, data } = await apiInstance.deleteDeleteBatch(
119
116
 
120
117
  |Name | Type | Description | Notes|
121
118
  |------------- | ------------- | ------------- | -------------|
122
- | **shipmentRequestDTO** | **ShipmentRequestDTO**| Shipment Request | |
123
119
  | **id** | [**number**] | Order ID | defaults to undefined|
124
120
  | **batchId** | [**number**] | Batch ID | defaults to undefined|
125
121
 
@@ -134,7 +130,7 @@ No authorization required
134
130
 
135
131
  ### HTTP request headers
136
132
 
137
- - **Content-Type**: application/json
133
+ - **Content-Type**: Not defined
138
134
  - **Accept**: Not defined
139
135
 
140
136
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.61-dev.0",
3
+ "version": "3.2.62-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {