@lcdp/api-react-rest-client 2.6.12-develop.9562125818 → 2.6.12

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.
@@ -70,12 +70,12 @@ export declare class ManageInventoryApi extends BaseAPI {
70
70
  */
71
71
  updateInventoryOverstockProducts(requestParameters: UpdateInventoryOverstockProductsRequest): Promise<void>;
72
72
  /**
73
- * 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\'
73
+ * Allow to update sycnrhoneity 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\'
74
74
  * Modify synchroneity state of a user
75
75
  */
76
76
  updateInventorySynchroneityRaw(requestParameters: UpdateInventorySynchroneityRequest): Promise<ApiResponse<Synchroneity | BlobWithMeta>>;
77
77
  /**
78
- * 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\'
78
+ * Allow to update sycnrhoneity 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\'
79
79
  * Modify synchroneity state of a user
80
80
  */
81
81
  updateInventorySynchroneity(requestParameters: UpdateInventorySynchroneityRequest): Promise<Synchroneity | BlobWithMeta>;
@@ -374,7 +374,7 @@ var ManageInventoryApi = /** @class */ (function (_super) {
374
374
  });
375
375
  };
376
376
  /**
377
- * 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\'
377
+ * Allow to update sycnrhoneity 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\'
378
378
  * Modify synchroneity state of a user
379
379
  */
380
380
  ManageInventoryApi.prototype.updateInventorySynchroneityRaw = function (requestParameters) {
@@ -444,7 +444,7 @@ var ManageInventoryApi = /** @class */ (function (_super) {
444
444
  });
445
445
  };
446
446
  /**
447
- * 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\'
447
+ * Allow to update sycnrhoneity 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\'
448
448
  * Modify synchroneity state of a user
449
449
  */
450
450
  ManageInventoryApi.prototype.updateInventorySynchroneity = function (requestParameters) {
@@ -35,7 +35,6 @@ export interface GetCurrentInventoryOverstockProductsRequest {
35
35
  forecastGte?: number;
36
36
  forecastLte?: number;
37
37
  forecastPr?: boolean;
38
- isUnsoldEq?: boolean;
39
38
  orderBy?: GetCurrentInventoryOverstockProductsOrderByEnum;
40
39
  p?: number;
41
40
  pp?: number;
@@ -67,7 +66,6 @@ export interface GetInventoryOverstockProductsRequest {
67
66
  forecastGte?: number;
68
67
  forecastLte?: number;
69
68
  forecastPr?: boolean;
70
- isUnsoldEq?: boolean;
71
69
  orderBy?: GetInventoryOverstockProductsOrderByEnum;
72
70
  p?: number;
73
71
  pp?: number;
@@ -298,9 +298,6 @@ var SearchInventoryApi = /** @class */ (function (_super) {
298
298
  if (requestParameters.forecastPr !== undefined) {
299
299
  queryParameters['forecast[pr]'] = requestParameters.forecastPr;
300
300
  }
301
- if (requestParameters.isUnsoldEq !== undefined) {
302
- queryParameters['isUnsold[eq]'] = requestParameters.isUnsoldEq;
303
- }
304
301
  if (requestParameters.orderBy !== undefined) {
305
302
  queryParameters['orderBy'] = requestParameters.orderBy;
306
303
  }
@@ -768,9 +765,6 @@ var SearchInventoryApi = /** @class */ (function (_super) {
768
765
  if (requestParameters.forecastPr !== undefined) {
769
766
  queryParameters['forecast[pr]'] = requestParameters.forecastPr;
770
767
  }
771
- if (requestParameters.isUnsoldEq !== undefined) {
772
- queryParameters['isUnsold[eq]'] = requestParameters.isUnsoldEq;
773
- }
774
768
  if (requestParameters.orderBy !== undefined) {
775
769
  queryParameters['orderBy'] = requestParameters.orderBy;
776
770
  }
@@ -21,49 +21,43 @@ export interface OverstockProduct {
21
21
  * @type {ProductLink}
22
22
  * @memberof OverstockProduct
23
23
  */
24
- product: ProductLink;
24
+ product?: ProductLink;
25
25
  /**
26
26
  * Details about overstock (in French)
27
27
  * @type {string}
28
28
  * @memberof OverstockProduct
29
29
  */
30
- details: string;
30
+ details?: string;
31
31
  /**
32
32
  * Quantity of product currently available in user stock
33
33
  * @type {number}
34
34
  * @memberof OverstockProduct
35
35
  */
36
- currentStock: number;
36
+ currentStock?: number;
37
37
  /**
38
38
  * Stock the user should take out of stock
39
39
  * @type {number}
40
40
  * @memberof OverstockProduct
41
41
  */
42
- currentOverstock: number;
42
+ currentOverstock?: number;
43
43
  /**
44
44
  * Retail value of the overstock ( overstock quantity * product price )
45
45
  * @type {number}
46
46
  * @memberof OverstockProduct
47
47
  */
48
- opportunity: number;
48
+ opportunity?: number;
49
49
  /**
50
50
  * If product is in the black listed product
51
51
  * @type {boolean}
52
52
  * @memberof OverstockProduct
53
53
  */
54
- blacklisted: boolean;
54
+ blacklisted?: boolean;
55
55
  /**
56
56
  * The forecast is the number of days client will take to get rid of all his product stock. Important note : If forecast is \'null\', it means that we can not compute this value as product was unsold since more than one year.
57
57
  * @type {number}
58
58
  * @memberof OverstockProduct
59
59
  */
60
- forecast: number | null;
61
- /**
62
- * True if the product has not been sold by the pharmacist within a year.
63
- * @type {boolean}
64
- * @memberof OverstockProduct
65
- */
66
- isUnsold: boolean;
60
+ forecast?: number | null;
67
61
  }
68
62
  export declare function OverstockProductFromJSON(json: any): OverstockProduct;
69
63
  export declare function OverstockProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): OverstockProduct;
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.OverstockProductToJSON = exports.OverstockProductFromJSONTyped = exports.OverstockProductFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  var ProductLink_1 = require("./ProductLink");
18
19
  function OverstockProductFromJSON(json) {
19
20
  return OverstockProductFromJSONTyped(json, false);
@@ -24,14 +25,13 @@ function OverstockProductFromJSONTyped(json, ignoreDiscriminator) {
24
25
  return json;
25
26
  }
26
27
  return {
27
- 'product': (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
28
- 'details': json['details'],
29
- 'currentStock': json['currentStock'],
30
- 'currentOverstock': json['currentOverstock'],
31
- 'opportunity': json['opportunity'],
32
- 'blacklisted': json['blacklisted'],
33
- 'forecast': json['forecast'],
34
- 'isUnsold': json['isUnsold'],
28
+ 'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
29
+ 'details': !(0, runtime_1.exists)(json, 'details') ? undefined : json['details'],
30
+ 'currentStock': !(0, runtime_1.exists)(json, 'currentStock') ? undefined : json['currentStock'],
31
+ 'currentOverstock': !(0, runtime_1.exists)(json, 'currentOverstock') ? undefined : json['currentOverstock'],
32
+ 'opportunity': !(0, runtime_1.exists)(json, 'opportunity') ? undefined : json['opportunity'],
33
+ 'blacklisted': !(0, runtime_1.exists)(json, 'blacklisted') ? undefined : json['blacklisted'],
34
+ 'forecast': !(0, runtime_1.exists)(json, 'forecast') ? json['forecast'] : json['forecast'],
35
35
  };
36
36
  }
37
37
  exports.OverstockProductFromJSONTyped = OverstockProductFromJSONTyped;
@@ -50,7 +50,6 @@ function OverstockProductToJSON(value) {
50
50
  'opportunity': value.opportunity,
51
51
  'blacklisted': value.blacklisted,
52
52
  'forecast': value.forecast,
53
- 'isUnsold': value.isUnsold,
54
53
  };
55
54
  }
56
55
  exports.OverstockProductToJSON = OverstockProductToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.6.12-develop.9562125818",
3
+ "version": "2.6.12",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },