@lcdp/api-react-rest-client 2.9.0-develop.12986406125 → 2.9.0-develop.13112067963

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.
@@ -40,6 +40,10 @@ export interface GetCurrentInventoryOverstockProductsRequest {
40
40
  p?: number;
41
41
  pp?: number;
42
42
  }
43
+ export interface GetCurrentInventoryStatisticsRequest {
44
+ overstockBlEq?: boolean;
45
+ overstockForecastGte?: number;
46
+ }
43
47
  export interface GetInventoriesRequest {
44
48
  idEq?: Array<number>;
45
49
  p?: number;
@@ -82,6 +86,8 @@ export interface GetInventoryOverstockProductsRequest {
82
86
  }
83
87
  export interface GetInventoryStatisticsRequest {
84
88
  inventoryId: number;
89
+ overstockBlEq?: boolean;
90
+ overstockForecastGte?: number;
85
91
  }
86
92
  /**
87
93
  *
@@ -114,11 +120,11 @@ export declare class SearchInventoryApi extends runtime.BaseAPI {
114
120
  /**
115
121
  * Get advices statistics
116
122
  */
117
- getCurrentInventoryStatisticsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Statistics | runtime.BlobWithMeta>>;
123
+ getCurrentInventoryStatisticsRaw(requestParameters: GetCurrentInventoryStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Statistics | runtime.BlobWithMeta>>;
118
124
  /**
119
125
  * Get advices statistics
120
126
  */
121
- getCurrentInventoryStatistics(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Statistics | runtime.BlobWithMeta>;
127
+ getCurrentInventoryStatistics(requestParameters?: GetCurrentInventoryStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Statistics | runtime.BlobWithMeta>;
122
128
  /**
123
129
  * Get all inventories
124
130
  */
@@ -378,13 +378,19 @@ var SearchInventoryApi = /** @class */ (function (_super) {
378
378
  /**
379
379
  * Get advices statistics
380
380
  */
381
- SearchInventoryApi.prototype.getCurrentInventoryStatisticsRaw = function (initOverrides) {
381
+ SearchInventoryApi.prototype.getCurrentInventoryStatisticsRaw = function (requestParameters, initOverrides) {
382
382
  return __awaiter(this, void 0, void 0, function () {
383
383
  var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
384
384
  return __generator(this, function (_c) {
385
385
  switch (_c.label) {
386
386
  case 0:
387
387
  queryParameters = {};
388
+ if (requestParameters['overstockBlEq'] != null) {
389
+ queryParameters['overstockBl[eq]'] = requestParameters['overstockBlEq'];
390
+ }
391
+ if (requestParameters['overstockForecastGte'] != null) {
392
+ queryParameters['overstockForecast[gte]'] = requestParameters['overstockForecastGte'];
393
+ }
388
394
  headerParameters = {};
389
395
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
390
396
  _a = headerParameters;
@@ -437,12 +443,13 @@ var SearchInventoryApi = /** @class */ (function (_super) {
437
443
  /**
438
444
  * Get advices statistics
439
445
  */
440
- SearchInventoryApi.prototype.getCurrentInventoryStatistics = function (initOverrides) {
446
+ SearchInventoryApi.prototype.getCurrentInventoryStatistics = function (requestParameters, initOverrides) {
447
+ if (requestParameters === void 0) { requestParameters = {}; }
441
448
  return __awaiter(this, void 0, void 0, function () {
442
449
  var response;
443
450
  return __generator(this, function (_a) {
444
451
  switch (_a.label) {
445
- case 0: return [4 /*yield*/, this.getCurrentInventoryStatisticsRaw(initOverrides)];
452
+ case 0: return [4 /*yield*/, this.getCurrentInventoryStatisticsRaw(requestParameters, initOverrides)];
446
453
  case 1:
447
454
  response = _a.sent();
448
455
  return [4 /*yield*/, response.value()];
@@ -935,6 +942,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
935
942
  throw new runtime.RequiredError('inventoryId', 'Required parameter "inventoryId" was null or undefined when calling getInventoryStatistics().');
936
943
  }
937
944
  queryParameters = {};
945
+ if (requestParameters['overstockBlEq'] != null) {
946
+ queryParameters['overstockBl[eq]'] = requestParameters['overstockBlEq'];
947
+ }
948
+ if (requestParameters['overstockForecastGte'] != null) {
949
+ queryParameters['overstockForecast[gte]'] = requestParameters['overstockForecastGte'];
950
+ }
938
951
  headerParameters = {};
939
952
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
940
953
  _a = headerParameters;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.9.0-develop.12986406125",
3
+ "version": "2.9.0-develop.13112067963",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },