@lcdp/api-react-rest-client 2.6.11 → 2.6.12-LDS-3680-api-ajouter-boolean-isunsold.9451438221
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/inventory/src/apis/SearchInventoryApi.d.ts +2 -0
- package/inventory/src/apis/SearchInventoryApi.js +6 -0
- package/inventory/src/models/OverstockProduct.d.ts +13 -7
- package/inventory/src/models/OverstockProduct.js +9 -8
- package/package.json +1 -1
- package/sale-offer/src/models/SaleOfferStatusReason.d.ts +2 -1
- package/sale-offer/src/models/SaleOfferStatusReason.js +1 -0
|
@@ -38,6 +38,7 @@ export interface GetCurrentInventoryOverstockProductsRequest {
|
|
|
38
38
|
orderBy?: GetCurrentInventoryOverstockProductsOrderByEnum;
|
|
39
39
|
p?: number;
|
|
40
40
|
pp?: number;
|
|
41
|
+
isUnsoldEq?: boolean;
|
|
41
42
|
}
|
|
42
43
|
export interface GetInventoryActiveProductsRequest {
|
|
43
44
|
inventoryId: number;
|
|
@@ -69,6 +70,7 @@ export interface GetInventoryOverstockProductsRequest {
|
|
|
69
70
|
orderBy?: GetInventoryOverstockProductsOrderByEnum;
|
|
70
71
|
p?: number;
|
|
71
72
|
pp?: number;
|
|
73
|
+
isUnsoldEq?: boolean;
|
|
72
74
|
}
|
|
73
75
|
export interface GetInventoryStatisticsRequest {
|
|
74
76
|
inventoryId: number;
|
|
@@ -307,6 +307,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
307
307
|
if (requestParameters.pp !== undefined) {
|
|
308
308
|
queryParameters['pp'] = requestParameters.pp;
|
|
309
309
|
}
|
|
310
|
+
if (requestParameters.isUnsoldEq !== undefined) {
|
|
311
|
+
queryParameters['isUnsold[eq]'] = requestParameters.isUnsoldEq;
|
|
312
|
+
}
|
|
310
313
|
headerParameters = {};
|
|
311
314
|
if (this.configuration && this.configuration.apiKey) {
|
|
312
315
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
@@ -774,6 +777,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
774
777
|
if (requestParameters.pp !== undefined) {
|
|
775
778
|
queryParameters['pp'] = requestParameters.pp;
|
|
776
779
|
}
|
|
780
|
+
if (requestParameters.isUnsoldEq !== undefined) {
|
|
781
|
+
queryParameters['isUnsold[eq]'] = requestParameters.isUnsoldEq;
|
|
782
|
+
}
|
|
777
783
|
headerParameters = {};
|
|
778
784
|
if (this.configuration && this.configuration.apiKey) {
|
|
779
785
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
@@ -21,43 +21,49 @@ export interface OverstockProduct {
|
|
|
21
21
|
* @type {ProductLink}
|
|
22
22
|
* @memberof OverstockProduct
|
|
23
23
|
*/
|
|
24
|
-
product
|
|
24
|
+
product: ProductLink;
|
|
25
25
|
/**
|
|
26
26
|
* Details about overstock (in French)
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof OverstockProduct
|
|
29
29
|
*/
|
|
30
|
-
details
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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;
|
|
61
67
|
}
|
|
62
68
|
export declare function OverstockProductFromJSON(json: any): OverstockProduct;
|
|
63
69
|
export declare function OverstockProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): OverstockProduct;
|
|
@@ -14,7 +14,6 @@
|
|
|
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");
|
|
18
17
|
var ProductLink_1 = require("./ProductLink");
|
|
19
18
|
function OverstockProductFromJSON(json) {
|
|
20
19
|
return OverstockProductFromJSONTyped(json, false);
|
|
@@ -25,13 +24,14 @@ function OverstockProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
24
|
return json;
|
|
26
25
|
}
|
|
27
26
|
return {
|
|
28
|
-
'product':
|
|
29
|
-
'details':
|
|
30
|
-
'currentStock':
|
|
31
|
-
'currentOverstock':
|
|
32
|
-
'opportunity':
|
|
33
|
-
'blacklisted':
|
|
34
|
-
'forecast':
|
|
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'],
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
exports.OverstockProductFromJSONTyped = OverstockProductFromJSONTyped;
|
|
@@ -50,6 +50,7 @@ function OverstockProductToJSON(value) {
|
|
|
50
50
|
'opportunity': value.opportunity,
|
|
51
51
|
'blacklisted': value.blacklisted,
|
|
52
52
|
'forecast': value.forecast,
|
|
53
|
+
'isUnsold': value.isUnsold,
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
exports.OverstockProductToJSON = OverstockProductToJSON;
|
package/package.json
CHANGED
|
@@ -19,7 +19,8 @@ export declare enum SaleOfferStatusReason {
|
|
|
19
19
|
SOLDOUT = "SOLD_OUT",
|
|
20
20
|
PRODUCTPROSCRIPTION = "PRODUCT_PROSCRIPTION",
|
|
21
21
|
OWNERSELLINGCAPABILITY = "OWNER_SELLING_CAPABILITY",
|
|
22
|
-
PRODUCTSTATUS = "PRODUCT_STATUS"
|
|
22
|
+
PRODUCTSTATUS = "PRODUCT_STATUS",
|
|
23
|
+
OTHER = "OTHER"
|
|
23
24
|
}
|
|
24
25
|
export declare function SaleOfferStatusReasonFromJSON(json: any): SaleOfferStatusReason;
|
|
25
26
|
export declare function SaleOfferStatusReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferStatusReason;
|
|
@@ -26,6 +26,7 @@ var SaleOfferStatusReason;
|
|
|
26
26
|
SaleOfferStatusReason["PRODUCTPROSCRIPTION"] = "PRODUCT_PROSCRIPTION";
|
|
27
27
|
SaleOfferStatusReason["OWNERSELLINGCAPABILITY"] = "OWNER_SELLING_CAPABILITY";
|
|
28
28
|
SaleOfferStatusReason["PRODUCTSTATUS"] = "PRODUCT_STATUS";
|
|
29
|
+
SaleOfferStatusReason["OTHER"] = "OTHER";
|
|
29
30
|
})(SaleOfferStatusReason = exports.SaleOfferStatusReason || (exports.SaleOfferStatusReason = {}));
|
|
30
31
|
function SaleOfferStatusReasonFromJSON(json) {
|
|
31
32
|
return SaleOfferStatusReasonFromJSONTyped(json, false);
|