@lcdp/api-react-rest-client 2.9.0-upgrade-codegen-client-react.12586609052 → 2.9.1-develop.13139572022

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.
Files changed (124) hide show
  1. package/auth/src/models/RestError.d.ts +4 -2
  2. package/auth/src/models/RestError.js +4 -2
  3. package/auth/src/runtime.js +11 -2
  4. package/banking-operation/src/runtime.js +11 -2
  5. package/catalog/src/models/RestError.d.ts +4 -2
  6. package/catalog/src/models/RestError.js +4 -2
  7. package/catalog/src/runtime.js +11 -2
  8. package/challenge/src/runtime.js +11 -2
  9. package/configuration/src/models/RestError.d.ts +4 -2
  10. package/configuration/src/models/RestError.js +4 -2
  11. package/configuration/src/runtime.js +11 -2
  12. package/content/src/models/RestError.d.ts +4 -2
  13. package/content/src/models/RestError.js +4 -2
  14. package/content/src/runtime.js +11 -2
  15. package/factory/src/runtime.js +11 -2
  16. package/favorite/src/models/RestError.d.ts +4 -2
  17. package/favorite/src/models/RestError.js +4 -2
  18. package/favorite/src/runtime.js +11 -2
  19. package/geo/src/runtime.js +11 -2
  20. package/inventory/src/apis/ManageInventoryApi.d.ts +5 -17
  21. package/inventory/src/apis/ManageInventoryApi.js +12 -86
  22. package/inventory/src/apis/SearchInventoryApi.d.ts +29 -22
  23. package/inventory/src/apis/SearchInventoryApi.js +106 -87
  24. package/inventory/src/models/ActiveProduct.d.ts +10 -3
  25. package/inventory/src/models/ActiveProduct.js +5 -2
  26. package/inventory/src/models/ActiveProductUpdateParameters.d.ts +4 -3
  27. package/inventory/src/models/ActiveProductUpdateParameters.js +3 -2
  28. package/inventory/src/models/Inventory.d.ts +63 -0
  29. package/inventory/src/models/Inventory.js +57 -0
  30. package/inventory/src/models/InventoryJournal.d.ts +31 -0
  31. package/inventory/src/models/InventoryJournal.js +45 -0
  32. package/inventory/src/models/MisalignedProduct.d.ts +6 -0
  33. package/inventory/src/models/MisalignedProduct.js +2 -0
  34. package/inventory/src/models/OverstockProduct.d.ts +6 -0
  35. package/inventory/src/models/OverstockProduct.js +2 -0
  36. package/inventory/src/models/PaginatedInventories.d.ts +39 -0
  37. package/inventory/src/models/PaginatedInventories.js +53 -0
  38. package/inventory/src/models/RestError.d.ts +4 -2
  39. package/inventory/src/models/RestError.js +4 -2
  40. package/inventory/src/models/SynchronizationMode.d.ts +25 -0
  41. package/inventory/src/models/SynchronizationMode.js +48 -0
  42. package/inventory/src/models/index.d.ts +4 -3
  43. package/inventory/src/models/index.js +4 -3
  44. package/inventory/src/runtime.js +11 -2
  45. package/invoice/src/models/RestError.d.ts +4 -2
  46. package/invoice/src/models/RestError.js +4 -2
  47. package/invoice/src/runtime.js +11 -2
  48. package/laboratory/src/runtime.js +11 -2
  49. package/laboratory-store/src/models/RestError.d.ts +4 -2
  50. package/laboratory-store/src/models/RestError.js +4 -2
  51. package/laboratory-store/src/runtime.js +11 -2
  52. package/laboratory-store-log/src/runtime.js +11 -2
  53. package/lexicon/src/models/RestError.d.ts +4 -2
  54. package/lexicon/src/models/RestError.js +4 -2
  55. package/lexicon/src/runtime.js +11 -2
  56. package/litigation/src/models/RestError.d.ts +4 -2
  57. package/litigation/src/models/RestError.js +4 -2
  58. package/litigation/src/runtime.js +11 -2
  59. package/magic-cart/src/runtime.js +11 -2
  60. package/mandate/src/runtime.js +11 -2
  61. package/mangopay-hook/src/models/RestError.d.ts +4 -2
  62. package/mangopay-hook/src/models/RestError.js +4 -2
  63. package/mangopay-hook/src/runtime.js +11 -2
  64. package/message/src/runtime.js +11 -2
  65. package/notification/src/models/RestError.d.ts +4 -2
  66. package/notification/src/models/RestError.js +4 -2
  67. package/notification/src/runtime.js +11 -2
  68. package/order/src/models/RestError.d.ts +4 -2
  69. package/order/src/models/RestError.js +4 -2
  70. package/order/src/runtime.js +11 -2
  71. package/order-log/src/runtime.js +11 -2
  72. package/outrage-message/src/runtime.js +11 -2
  73. package/package.json +1 -1
  74. package/product/src/models/RestError.d.ts +4 -2
  75. package/product/src/models/RestError.js +4 -2
  76. package/product/src/runtime.js +11 -2
  77. package/pub/src/models/RestError.d.ts +4 -2
  78. package/pub/src/models/RestError.js +4 -2
  79. package/pub/src/runtime.js +11 -2
  80. package/recommendation/src/runtime.js +11 -2
  81. package/rfx/src/models/RestError.d.ts +4 -2
  82. package/rfx/src/models/RestError.js +4 -2
  83. package/rfx/src/runtime.js +11 -2
  84. package/sale-offer/src/models/RestError.d.ts +4 -2
  85. package/sale-offer/src/models/RestError.js +4 -2
  86. package/sale-offer/src/runtime.js +11 -2
  87. package/sale-offer-log/src/runtime.js +11 -2
  88. package/servant/src/models/RestError.d.ts +4 -2
  89. package/servant/src/models/RestError.js +4 -2
  90. package/servant/src/runtime.js +11 -2
  91. package/shipment/src/models/RestError.d.ts +4 -2
  92. package/shipment/src/models/RestError.js +4 -2
  93. package/shipment/src/runtime.js +11 -2
  94. package/shopping-cart/src/models/RestError.d.ts +4 -2
  95. package/shopping-cart/src/models/RestError.js +4 -2
  96. package/shopping-cart/src/runtime.js +11 -2
  97. package/smuggler/src/models/RestError.d.ts +4 -2
  98. package/smuggler/src/models/RestError.js +4 -2
  99. package/smuggler/src/runtime.js +11 -2
  100. package/statistic/src/models/RestError.d.ts +4 -2
  101. package/statistic/src/models/RestError.js +4 -2
  102. package/statistic/src/runtime.js +11 -2
  103. package/subscription/src/models/RestError.d.ts +4 -2
  104. package/subscription/src/models/RestError.js +4 -2
  105. package/subscription/src/runtime.js +11 -2
  106. package/third-party/src/models/RestError.d.ts +4 -2
  107. package/third-party/src/models/RestError.js +4 -2
  108. package/third-party/src/runtime.js +11 -2
  109. package/thread/src/runtime.js +11 -2
  110. package/ubo/src/models/RestError.d.ts +4 -2
  111. package/ubo/src/models/RestError.js +4 -2
  112. package/ubo/src/runtime.js +11 -2
  113. package/user/src/models/RestError.d.ts +4 -2
  114. package/user/src/models/RestError.js +4 -2
  115. package/user/src/runtime.js +11 -2
  116. package/wish/src/models/RestError.d.ts +4 -2
  117. package/wish/src/models/RestError.js +4 -2
  118. package/wish/src/runtime.js +11 -2
  119. package/inventory/src/models/Synchroneity.d.ts +0 -32
  120. package/inventory/src/models/Synchroneity.js +0 -46
  121. package/inventory/src/models/SynchroneityOffisante.d.ts +0 -38
  122. package/inventory/src/models/SynchroneityOffisante.js +0 -48
  123. package/inventory/src/models/SynchroneitySource.d.ts +0 -37
  124. package/inventory/src/models/SynchroneitySource.js +0 -47
@@ -84,6 +84,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
84
84
  return __generator(this, function (_c) {
85
85
  switch (_c.label) {
86
86
  case 0:
87
+ if (requestParameters['syncModeEq'] == null) {
88
+ throw new runtime.RequiredError('syncModeEq', 'Required parameter "syncModeEq" was null or undefined when calling updateCurrentInventoryActiveProducts().');
89
+ }
87
90
  if (requestParameters['activeProductUpdateParameters'] == null) {
88
91
  throw new runtime.RequiredError('activeProductUpdateParameters', 'Required parameter "activeProductUpdateParameters" was null or undefined when calling updateCurrentInventoryActiveProducts().');
89
92
  }
@@ -91,6 +94,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
91
94
  if (requestParameters['pEq'] != null) {
92
95
  queryParameters['p[eq]'] = requestParameters['pEq'];
93
96
  }
97
+ if (requestParameters['syncModeEq'] != null) {
98
+ queryParameters['syncMode[eq]'] = requestParameters['syncModeEq'];
99
+ }
94
100
  headerParameters = {};
95
101
  headerParameters['Content-Type'] = 'application/json';
96
102
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
@@ -229,6 +235,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
229
235
  if (requestParameters['inventoryId'] == null) {
230
236
  throw new runtime.RequiredError('inventoryId', 'Required parameter "inventoryId" was null or undefined when calling updateInventoryActiveProducts().');
231
237
  }
238
+ if (requestParameters['syncModeEq'] == null) {
239
+ throw new runtime.RequiredError('syncModeEq', 'Required parameter "syncModeEq" was null or undefined when calling updateInventoryActiveProducts().');
240
+ }
232
241
  if (requestParameters['activeProductUpdateParameters'] == null) {
233
242
  throw new runtime.RequiredError('activeProductUpdateParameters', 'Required parameter "activeProductUpdateParameters" was null or undefined when calling updateInventoryActiveProducts().');
234
243
  }
@@ -236,6 +245,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
236
245
  if (requestParameters['pEq'] != null) {
237
246
  queryParameters['p[eq]'] = requestParameters['pEq'];
238
247
  }
248
+ if (requestParameters['syncModeEq'] != null) {
249
+ queryParameters['syncMode[eq]'] = requestParameters['syncModeEq'];
250
+ }
239
251
  headerParameters = {};
240
252
  headerParameters['Content-Type'] = 'application/json';
241
253
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
@@ -365,92 +377,6 @@ var ManageInventoryApi = /** @class */ (function (_super) {
365
377
  });
366
378
  });
367
379
  };
368
- /**
369
- * Allow to update synchroneity of an inventory. For example to force resynchronize of a source, you can send source synchronizationScheduled to \'True\'. If you want to restart synchronization from the beginning of human life, you can send souyrce lastSynchronizationDate to \'0\'
370
- * Modify synchroneity state of a user
371
- */
372
- ManageInventoryApi.prototype.updateInventorySynchroneityRaw = function (requestParameters, initOverrides) {
373
- return __awaiter(this, void 0, void 0, function () {
374
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_5;
375
- return __generator(this, function (_c) {
376
- switch (_c.label) {
377
- case 0:
378
- if (requestParameters['inventoryId'] == null) {
379
- throw new runtime.RequiredError('inventoryId', 'Required parameter "inventoryId" was null or undefined when calling updateInventorySynchroneity().');
380
- }
381
- if (requestParameters['synchroneity'] == null) {
382
- throw new runtime.RequiredError('synchroneity', 'Required parameter "synchroneity" was null or undefined when calling updateInventorySynchroneity().');
383
- }
384
- queryParameters = {};
385
- headerParameters = {};
386
- headerParameters['Content-Type'] = 'application/merge-patch+json';
387
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
388
- _a = headerParameters;
389
- _b = "x-api-key";
390
- return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
391
- case 1:
392
- _a[_b] = _c.sent(); // apiKeyAuth authentication
393
- _c.label = 2;
394
- case 2:
395
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
396
- token = this.configuration.accessToken;
397
- return [4 /*yield*/, token("bearerAuth", [])];
398
- case 3:
399
- tokenString = _c.sent();
400
- if (tokenString) {
401
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
402
- }
403
- _c.label = 4;
404
- case 4:
405
- _c.trys.push([4, 6, , 7]);
406
- return [4 /*yield*/, this.request({
407
- path: "/inventories/{inventoryId}/synchroneity".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters['inventoryId']))),
408
- method: 'PATCH',
409
- headers: headerParameters,
410
- query: queryParameters,
411
- body: (0, index_1.SynchroneityToJSON)(requestParameters['synchroneity']),
412
- }, initOverrides)];
413
- case 5:
414
- response = _c.sent();
415
- contentType = response.headers.get("content-type");
416
- if (contentType && contentType.indexOf("application/json") !== -1) {
417
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SynchroneityFromJSON)(jsonValue); })];
418
- }
419
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
420
- return [2 /*return*/, new runtime.TextApiResponse(response)];
421
- }
422
- else {
423
- // TODO : Better handling of others application types
424
- return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
425
- }
426
- return [3 /*break*/, 7];
427
- case 6:
428
- response_5 = _c.sent();
429
- console.debug(response_5);
430
- throw response_5;
431
- case 7: return [2 /*return*/];
432
- }
433
- });
434
- });
435
- };
436
- /**
437
- * Allow to update synchroneity of an inventory. For example to force resynchronize of a source, you can send source synchronizationScheduled to \'True\'. If you want to restart synchronization from the beginning of human life, you can send souyrce lastSynchronizationDate to \'0\'
438
- * Modify synchroneity state of a user
439
- */
440
- ManageInventoryApi.prototype.updateInventorySynchroneity = function (requestParameters, initOverrides) {
441
- return __awaiter(this, void 0, void 0, function () {
442
- var response;
443
- return __generator(this, function (_a) {
444
- switch (_a.label) {
445
- case 0: return [4 /*yield*/, this.updateInventorySynchroneityRaw(requestParameters, initOverrides)];
446
- case 1:
447
- response = _a.sent();
448
- return [4 /*yield*/, response.value()];
449
- case 2: return [2 /*return*/, _a.sent()];
450
- }
451
- });
452
- });
453
- };
454
380
  return ManageInventoryApi;
455
381
  }(runtime.BaseAPI));
456
382
  exports.ManageInventoryApi = ManageInventoryApi;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { PaginatedActiveProducts, PaginatedMisalignedProducts, PaginatedOverstockProducts, Statistics, Synchroneity } from '../models/index';
13
+ import type { Inventory, PaginatedActiveProducts, PaginatedInventories, PaginatedMisalignedProducts, PaginatedOverstockProducts, Statistics } from '../models/index';
14
14
  export interface GetCurrentInventoryActiveProductsRequest {
15
15
  q?: string;
16
16
  labEq?: Array<number>;
@@ -40,6 +40,18 @@ export interface GetCurrentInventoryOverstockProductsRequest {
40
40
  p?: number;
41
41
  pp?: number;
42
42
  }
43
+ export interface GetCurrentInventoryStatisticsRequest {
44
+ overstockBlEq?: boolean;
45
+ overstockForecastGte?: number;
46
+ }
47
+ export interface GetInventoriesRequest {
48
+ idEq?: Array<number>;
49
+ p?: number;
50
+ pp?: number;
51
+ }
52
+ export interface GetInventoryRequest {
53
+ inventoryId: number;
54
+ }
43
55
  export interface GetInventoryActiveProductsRequest {
44
56
  inventoryId: number;
45
57
  q?: string;
@@ -74,9 +86,8 @@ export interface GetInventoryOverstockProductsRequest {
74
86
  }
75
87
  export interface GetInventoryStatisticsRequest {
76
88
  inventoryId: number;
77
- }
78
- export interface GetInventorySynchroneityRequest {
79
- inventoryId: number;
89
+ overstockBlEq?: boolean;
90
+ overstockForecastGte?: number;
80
91
  }
81
92
  /**
82
93
  *
@@ -109,21 +120,27 @@ export declare class SearchInventoryApi extends runtime.BaseAPI {
109
120
  /**
110
121
  * Get advices statistics
111
122
  */
112
- 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>>;
113
124
  /**
114
125
  * Get advices statistics
115
126
  */
116
- getCurrentInventoryStatistics(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Statistics | runtime.BlobWithMeta>;
127
+ getCurrentInventoryStatistics(requestParameters?: GetCurrentInventoryStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Statistics | runtime.BlobWithMeta>;
117
128
  /**
118
- * Allow to retrieve informations about synchronization between the inventory and its sources. Theses informations (such as last successful synchronization) can be used to monitor the freshness of data computed. Note : \'synchroneity\' is not mispelled !
119
- * Get synchronization state of inventory
129
+ * Get all inventories
120
130
  */
121
- getCurrentInventorySynchroneityRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Synchroneity | runtime.BlobWithMeta>>;
131
+ getInventoriesRaw(requestParameters: GetInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedInventories | runtime.BlobWithMeta>>;
122
132
  /**
123
- * Allow to retrieve informations about synchronization between the inventory and its sources. Theses informations (such as last successful synchronization) can be used to monitor the freshness of data computed. Note : \'synchroneity\' is not mispelled !
124
- * Get synchronization state of inventory
133
+ * Get all inventories
125
134
  */
126
- getCurrentInventorySynchroneity(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Synchroneity | runtime.BlobWithMeta>;
135
+ getInventories(requestParameters?: GetInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedInventories | runtime.BlobWithMeta>;
136
+ /**
137
+ * Get inventory by id
138
+ */
139
+ getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory | runtime.BlobWithMeta>>;
140
+ /**
141
+ * Get inventory by id
142
+ */
143
+ getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory | runtime.BlobWithMeta>;
127
144
  /**
128
145
  * Search products with params for an inventory
129
146
  */
@@ -156,16 +173,6 @@ export declare class SearchInventoryApi extends runtime.BaseAPI {
156
173
  * Get advices statistics
157
174
  */
158
175
  getInventoryStatistics(requestParameters: GetInventoryStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Statistics | runtime.BlobWithMeta>;
159
- /**
160
- * Allow to retrieve informations about synchronization between the inventory and its sources. Theses informations (such as last successful synchronization) can be used to monitor the freshness of data computed. Note : \'synchroneity\' is not mispelled !
161
- * Get synchronization state of inventory
162
- */
163
- getInventorySynchroneityRaw(requestParameters: GetInventorySynchroneityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Synchroneity | runtime.BlobWithMeta>>;
164
- /**
165
- * Allow to retrieve informations about synchronization between the inventory and its sources. Theses informations (such as last successful synchronization) can be used to monitor the freshness of data computed. Note : \'synchroneity\' is not mispelled !
166
- * Get synchronization state of inventory
167
- */
168
- getInventorySynchroneity(requestParameters: GetInventorySynchroneityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Synchroneity | runtime.BlobWithMeta>;
169
176
  }
170
177
  /**
171
178
  * @export