@lcdp/api-react-rest-client 1.1.1-develop.1 → 1.1.1-develop.10
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/auth/src/models/RestError.d.ts +6 -4
- package/auth/src/models/RestError.js +2 -0
- package/configuration/src/models/RestError.d.ts +6 -4
- package/configuration/src/models/RestError.js +2 -0
- package/content/src/models/RestError.d.ts +6 -4
- package/content/src/models/RestError.js +2 -0
- package/favorite/src/models/RestError.d.ts +6 -4
- package/favorite/src/models/RestError.js +2 -0
- package/inventory/src/models/RestError.d.ts +6 -4
- package/inventory/src/models/RestError.js +2 -0
- package/invoice/src/models/RestError.d.ts +6 -4
- package/invoice/src/models/RestError.js +2 -0
- package/laboratory-store/src/models/RestError.d.ts +6 -4
- package/laboratory-store/src/models/RestError.js +2 -0
- package/lexicon/src/models/RestError.d.ts +6 -4
- package/lexicon/src/models/RestError.js +2 -0
- package/litigation/src/models/RestError.d.ts +6 -4
- package/litigation/src/models/RestError.js +2 -0
- package/mangopay-hook/src/models/RestError.d.ts +6 -4
- package/mangopay-hook/src/models/RestError.js +2 -0
- package/notification/src/models/NotificationTypeId.d.ts +1 -0
- package/notification/src/models/NotificationTypeId.js +1 -0
- package/notification/src/models/RestError.d.ts +6 -4
- package/notification/src/models/RestError.js +2 -0
- package/order/src/models/OrderItemPrices.d.ts +7 -1
- package/order/src/models/OrderItemPrices.js +2 -0
- package/order/src/models/OrderPrices.d.ts +1 -1
- package/order/src/models/ProductLink.d.ts +0 -7
- package/order/src/models/ProductLink.js +2 -3
- package/order/src/models/ProductLinkAllOf.d.ts +0 -7
- package/order/src/models/ProductLinkAllOf.js +0 -3
- package/order/src/models/RestError.d.ts +6 -4
- package/order/src/models/RestError.js +2 -0
- package/order/src/models/index.d.ts +0 -1
- package/order/src/models/index.js +0 -1
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +6 -4
- package/product/src/models/RestError.js +2 -0
- package/pub/src/models/RestError.d.ts +6 -4
- package/pub/src/models/RestError.js +2 -0
- package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.d.ts +45 -0
- package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.js +182 -0
- package/recommendation/src/apis/index.d.ts +1 -0
- package/recommendation/src/apis/index.js +1 -0
- package/recommendation/src/models/FavoriteProductRecommendation.d.ts +53 -0
- package/recommendation/src/models/FavoriteProductRecommendation.js +52 -0
- package/recommendation/src/models/PaginatedFavoriteProductRecommendations.d.ts +29 -0
- package/recommendation/src/models/PaginatedFavoriteProductRecommendations.js +50 -0
- package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.d.ts +28 -0
- package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.js +42 -0
- package/recommendation/src/models/index.d.ts +3 -0
- package/recommendation/src/models/index.js +3 -0
- package/rfx/src/models/RestError.d.ts +6 -4
- package/rfx/src/models/RestError.js +2 -0
- package/sale-offer/src/models/RestError.d.ts +6 -4
- package/sale-offer/src/models/RestError.js +2 -0
- package/servant/src/models/RestError.d.ts +6 -4
- package/servant/src/models/RestError.js +2 -0
- package/shipment/src/models/RestError.d.ts +6 -4
- package/shipment/src/models/RestError.js +2 -0
- package/shopping-cart/src/models/RestError.d.ts +6 -4
- package/shopping-cart/src/models/RestError.js +2 -0
- package/statistic/src/models/RestError.d.ts +6 -4
- package/statistic/src/models/RestError.js +2 -0
- package/subscription/src/models/RestError.d.ts +6 -4
- package/subscription/src/models/RestError.js +2 -0
- package/ubo/src/models/RestError.d.ts +6 -4
- package/ubo/src/models/RestError.js +2 -0
- package/user/src/models/NotificationTypeId.d.ts +1 -0
- package/user/src/models/NotificationTypeId.js +1 -0
- package/user/src/models/RestError.d.ts +6 -4
- package/user/src/models/RestError.js +2 -0
- package/wish/src/models/RestError.d.ts +6 -4
- package/wish/src/models/RestError.js +2 -0
- package/order/src/models/Vat.d.ts +0 -39
- package/order/src/models/Vat.js +0 -46
|
@@ -28,6 +28,7 @@ function OrderItemPricesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'totalExcludingTaxes': !(0, runtime_1.exists)(json, 'totalExcludingTaxes') ? undefined : json['totalExcludingTaxes'],
|
|
29
29
|
'totalTaxes': !(0, runtime_1.exists)(json, 'totalTaxes') ? undefined : json['totalTaxes'],
|
|
30
30
|
'totalIncludingTaxes': !(0, runtime_1.exists)(json, 'totalIncludingTaxes') ? undefined : json['totalIncludingTaxes'],
|
|
31
|
+
'vatRate': !(0, runtime_1.exists)(json, 'vatRate') ? undefined : json['vatRate'],
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
exports.OrderItemPricesFromJSONTyped = OrderItemPricesFromJSONTyped;
|
|
@@ -43,6 +44,7 @@ function OrderItemPricesToJSON(value) {
|
|
|
43
44
|
'totalExcludingTaxes': value.totalExcludingTaxes,
|
|
44
45
|
'totalTaxes': value.totalTaxes,
|
|
45
46
|
'totalIncludingTaxes': value.totalIncludingTaxes,
|
|
47
|
+
'vatRate': value.vatRate,
|
|
46
48
|
};
|
|
47
49
|
}
|
|
48
50
|
exports.OrderItemPricesToJSON = OrderItemPricesToJSON;
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Barcodes } from './Barcodes';
|
|
13
13
|
import { HttpLink } from './HttpLink';
|
|
14
|
-
import { Vat } from './Vat';
|
|
15
14
|
/**
|
|
16
15
|
*
|
|
17
16
|
* @export
|
|
@@ -36,12 +35,6 @@ export interface ProductLink extends HttpLink {
|
|
|
36
35
|
* @memberof ProductLink
|
|
37
36
|
*/
|
|
38
37
|
name?: string;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {Vat}
|
|
42
|
-
* @memberof ProductLink
|
|
43
|
-
*/
|
|
44
|
-
vat?: Vat | null;
|
|
45
38
|
}
|
|
46
39
|
export declare function ProductLinkFromJSON(json: any): ProductLink;
|
|
47
40
|
export declare function ProductLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLink;
|
|
@@ -28,7 +28,6 @@ exports.ProductLinkToJSON = exports.ProductLinkFromJSONTyped = exports.ProductLi
|
|
|
28
28
|
var runtime_1 = require("../runtime");
|
|
29
29
|
var Barcodes_1 = require("./Barcodes");
|
|
30
30
|
var HttpLink_1 = require("./HttpLink");
|
|
31
|
-
var Vat_1 = require("./Vat");
|
|
32
31
|
function ProductLinkFromJSON(json) {
|
|
33
32
|
return ProductLinkFromJSONTyped(json, false);
|
|
34
33
|
}
|
|
@@ -37,7 +36,7 @@ function ProductLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
36
|
if ((json === undefined) || (json === null)) {
|
|
38
37
|
return json;
|
|
39
38
|
}
|
|
40
|
-
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']), 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name']
|
|
39
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']), 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'] });
|
|
41
40
|
}
|
|
42
41
|
exports.ProductLinkFromJSONTyped = ProductLinkFromJSONTyped;
|
|
43
42
|
function ProductLinkToJSON(value) {
|
|
@@ -47,6 +46,6 @@ function ProductLinkToJSON(value) {
|
|
|
47
46
|
if (value === null) {
|
|
48
47
|
return null;
|
|
49
48
|
}
|
|
50
|
-
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name
|
|
49
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name });
|
|
51
50
|
}
|
|
52
51
|
exports.ProductLinkToJSON = ProductLinkToJSON;
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Barcodes } from './Barcodes';
|
|
13
|
-
import { Vat } from './Vat';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -35,12 +34,6 @@ export interface ProductLinkAllOf {
|
|
|
35
34
|
* @memberof ProductLinkAllOf
|
|
36
35
|
*/
|
|
37
36
|
name?: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {Vat}
|
|
41
|
-
* @memberof ProductLinkAllOf
|
|
42
|
-
*/
|
|
43
|
-
vat?: Vat | null;
|
|
44
37
|
}
|
|
45
38
|
export declare function ProductLinkAllOfFromJSON(json: any): ProductLinkAllOf;
|
|
46
39
|
export declare function ProductLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLinkAllOf;
|
|
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ProductLinkAllOfToJSON = exports.ProductLinkAllOfFromJSONTyped = exports.ProductLinkAllOfFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var Barcodes_1 = require("./Barcodes");
|
|
19
|
-
var Vat_1 = require("./Vat");
|
|
20
19
|
function ProductLinkAllOfFromJSON(json) {
|
|
21
20
|
return ProductLinkAllOfFromJSONTyped(json, false);
|
|
22
21
|
}
|
|
@@ -29,7 +28,6 @@ function ProductLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
28
|
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
30
29
|
'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
|
|
31
30
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
32
|
-
'vat': !(0, runtime_1.exists)(json, 'vat') ? json['vat'] : (0, Vat_1.VatFromJSON)(json['vat']),
|
|
33
31
|
};
|
|
34
32
|
}
|
|
35
33
|
exports.ProductLinkAllOfFromJSONTyped = ProductLinkAllOfFromJSONTyped;
|
|
@@ -44,7 +42,6 @@ function ProductLinkAllOfToJSON(value) {
|
|
|
44
42
|
'id': value.id,
|
|
45
43
|
'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
|
|
46
44
|
'name': value.name,
|
|
47
|
-
'vat': (0, Vat_1.VatToJSON)(value.vat),
|
|
48
45
|
};
|
|
49
46
|
}
|
|
50
47
|
exports.ProductLinkAllOfToJSON = ProductLinkAllOfToJSON;
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -53,7 +53,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
53
53
|
CODE014 = "CODE014",
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
|
-
CODE017 = "CODE017"
|
|
56
|
+
CODE017 = "CODE017",
|
|
57
|
+
CODE018 = "CODE018"
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
60
|
* @export
|
|
@@ -77,5 +78,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
77
78
|
MESSAGE014 = "Invalid Meta-Order",
|
|
78
79
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
79
80
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
80
|
-
MESSAGE017 = "Batch is forbidden for sale"
|
|
81
|
+
MESSAGE017 = "Batch is forbidden for sale",
|
|
82
|
+
MESSAGE018 = "Trial already used"
|
|
81
83
|
}
|
|
@@ -65,6 +65,7 @@ var RestErrorCodeEnum;
|
|
|
65
65
|
RestErrorCodeEnum["CODE015"] = "CODE015";
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
|
+
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
68
69
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
69
70
|
/**
|
|
70
71
|
* @export
|
|
@@ -90,4 +91,5 @@ var RestErrorMessageEnum;
|
|
|
90
91
|
RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
|
|
91
92
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
92
93
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
|
+
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
93
95
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -57,4 +57,3 @@ __exportStar(require("./UpdateOrderStatusParameters"), exports);
|
|
|
57
57
|
__exportStar(require("./UserLink"), exports);
|
|
58
58
|
__exportStar(require("./UserLinkAllOf"), exports);
|
|
59
59
|
__exportStar(require("./UserLinkAllOfCompany"), exports);
|
|
60
|
-
__exportStar(require("./Vat"), exports);
|
package/package.json
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -53,7 +53,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
53
53
|
CODE014 = "CODE014",
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
|
-
CODE017 = "CODE017"
|
|
56
|
+
CODE017 = "CODE017",
|
|
57
|
+
CODE018 = "CODE018"
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
60
|
* @export
|
|
@@ -77,5 +78,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
77
78
|
MESSAGE014 = "Invalid Meta-Order",
|
|
78
79
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
79
80
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
80
|
-
MESSAGE017 = "Batch is forbidden for sale"
|
|
81
|
+
MESSAGE017 = "Batch is forbidden for sale",
|
|
82
|
+
MESSAGE018 = "Trial already used"
|
|
81
83
|
}
|
|
@@ -65,6 +65,7 @@ var RestErrorCodeEnum;
|
|
|
65
65
|
RestErrorCodeEnum["CODE015"] = "CODE015";
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
|
+
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
68
69
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
69
70
|
/**
|
|
70
71
|
* @export
|
|
@@ -90,4 +91,5 @@ var RestErrorMessageEnum;
|
|
|
90
91
|
RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
|
|
91
92
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
92
93
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
|
+
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
93
95
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -53,7 +53,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
53
53
|
CODE014 = "CODE014",
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
|
-
CODE017 = "CODE017"
|
|
56
|
+
CODE017 = "CODE017",
|
|
57
|
+
CODE018 = "CODE018"
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
60
|
* @export
|
|
@@ -77,5 +78,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
77
78
|
MESSAGE014 = "Invalid Meta-Order",
|
|
78
79
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
79
80
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
80
|
-
MESSAGE017 = "Batch is forbidden for sale"
|
|
81
|
+
MESSAGE017 = "Batch is forbidden for sale",
|
|
82
|
+
MESSAGE018 = "Trial already used"
|
|
81
83
|
}
|
|
@@ -65,6 +65,7 @@ var RestErrorCodeEnum;
|
|
|
65
65
|
RestErrorCodeEnum["CODE015"] = "CODE015";
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
|
+
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
68
69
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
69
70
|
/**
|
|
70
71
|
* @export
|
|
@@ -90,4 +91,5 @@ var RestErrorMessageEnum;
|
|
|
90
91
|
RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
|
|
91
92
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
92
93
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
|
+
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
93
95
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-data-intelligence
|
|
3
|
+
* This is the REST API of LCDP product recommendation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
|
+
import { PaginatedFavoriteProductRecommendations } from '../models';
|
|
14
|
+
export interface GetFavoriteProductRecommendationsRequest {
|
|
15
|
+
userIdEq?: number;
|
|
16
|
+
userIdPr?: boolean;
|
|
17
|
+
productIdEq?: Array<number>;
|
|
18
|
+
productIdNeq?: Array<number>;
|
|
19
|
+
orderBy?: Array<GetFavoriteProductRecommendationsOrderByEnum>;
|
|
20
|
+
p?: number;
|
|
21
|
+
pp?: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* no description
|
|
25
|
+
*/
|
|
26
|
+
export declare class SearchFavoriteProductRecommendationApi extends BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Get favorite product recommendation
|
|
29
|
+
*/
|
|
30
|
+
getFavoriteProductRecommendationsRaw(requestParameters: GetFavoriteProductRecommendationsRequest): Promise<ApiResponse<PaginatedFavoriteProductRecommendations | BlobWithMeta>>;
|
|
31
|
+
/**
|
|
32
|
+
* Get favorite product recommendation
|
|
33
|
+
*/
|
|
34
|
+
getFavoriteProductRecommendations(requestParameters: GetFavoriteProductRecommendationsRequest): Promise<PaginatedFavoriteProductRecommendations | BlobWithMeta>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
export declare enum GetFavoriteProductRecommendationsOrderByEnum {
|
|
41
|
+
RELEVANCEasc = "RELEVANCE:asc",
|
|
42
|
+
RELEVANCEdesc = "RELEVANCE:desc",
|
|
43
|
+
CREATEDATasc = "CREATED_AT:asc",
|
|
44
|
+
CREATEDATdesc = "CREATED_AT:desc"
|
|
45
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-data-intelligence
|
|
6
|
+
* This is the REST API of LCDP product recommendation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (_) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.GetFavoriteProductRecommendationsOrderByEnum = exports.SearchFavoriteProductRecommendationApi = void 0;
|
|
68
|
+
var runtime_1 = require("../runtime");
|
|
69
|
+
var models_1 = require("../models");
|
|
70
|
+
/**
|
|
71
|
+
* no description
|
|
72
|
+
*/
|
|
73
|
+
var SearchFavoriteProductRecommendationApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(SearchFavoriteProductRecommendationApi, _super);
|
|
75
|
+
function SearchFavoriteProductRecommendationApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get favorite product recommendation
|
|
80
|
+
*/
|
|
81
|
+
SearchFavoriteProductRecommendationApi.prototype.getFavoriteProductRecommendationsRaw = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
if (requestParameters.userIdEq !== undefined) {
|
|
89
|
+
queryParameters['userId[eq]'] = requestParameters.userIdEq;
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters.userIdPr !== undefined) {
|
|
92
|
+
queryParameters['userId[pr]'] = requestParameters.userIdPr;
|
|
93
|
+
}
|
|
94
|
+
if (requestParameters.productIdEq) {
|
|
95
|
+
queryParameters['productId[eq]'] = requestParameters.productIdEq;
|
|
96
|
+
}
|
|
97
|
+
if (requestParameters.productIdNeq) {
|
|
98
|
+
queryParameters['productId[neq]'] = requestParameters.productIdNeq;
|
|
99
|
+
}
|
|
100
|
+
if (requestParameters.orderBy) {
|
|
101
|
+
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
102
|
+
}
|
|
103
|
+
if (requestParameters.p !== undefined) {
|
|
104
|
+
queryParameters['p'] = requestParameters.p;
|
|
105
|
+
}
|
|
106
|
+
if (requestParameters.pp !== undefined) {
|
|
107
|
+
queryParameters['pp'] = requestParameters.pp;
|
|
108
|
+
}
|
|
109
|
+
headerParameters = {};
|
|
110
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
111
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
112
|
+
}
|
|
113
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
114
|
+
token = this.configuration.accessToken;
|
|
115
|
+
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
116
|
+
if (tokenString) {
|
|
117
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
_a.label = 1;
|
|
121
|
+
case 1:
|
|
122
|
+
_a.trys.push([1, 3, , 4]);
|
|
123
|
+
return [4 /*yield*/, this.request({
|
|
124
|
+
path: "/favorite-product-recommendations",
|
|
125
|
+
method: 'GET',
|
|
126
|
+
headers: headerParameters,
|
|
127
|
+
query: queryParameters,
|
|
128
|
+
})];
|
|
129
|
+
case 2:
|
|
130
|
+
response = _a.sent();
|
|
131
|
+
contentType = response.headers.get("content-type");
|
|
132
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
133
|
+
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedFavoriteProductRecommendationsFromJSON)(jsonValue); })];
|
|
134
|
+
}
|
|
135
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
136
|
+
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
// TODO : Better handling of others application types
|
|
140
|
+
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
141
|
+
}
|
|
142
|
+
return [3 /*break*/, 4];
|
|
143
|
+
case 3:
|
|
144
|
+
response_1 = _a.sent();
|
|
145
|
+
console.debug(response_1);
|
|
146
|
+
throw response_1;
|
|
147
|
+
case 4: return [2 /*return*/];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Get favorite product recommendation
|
|
154
|
+
*/
|
|
155
|
+
SearchFavoriteProductRecommendationApi.prototype.getFavoriteProductRecommendations = function (requestParameters) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
157
|
+
var response;
|
|
158
|
+
return __generator(this, function (_a) {
|
|
159
|
+
switch (_a.label) {
|
|
160
|
+
case 0: return [4 /*yield*/, this.getFavoriteProductRecommendationsRaw(requestParameters)];
|
|
161
|
+
case 1:
|
|
162
|
+
response = _a.sent();
|
|
163
|
+
return [4 /*yield*/, response.value()];
|
|
164
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
return SearchFavoriteProductRecommendationApi;
|
|
170
|
+
}(runtime_1.BaseAPI));
|
|
171
|
+
exports.SearchFavoriteProductRecommendationApi = SearchFavoriteProductRecommendationApi;
|
|
172
|
+
/**
|
|
173
|
+
* @export
|
|
174
|
+
* @enum {string}
|
|
175
|
+
*/
|
|
176
|
+
var GetFavoriteProductRecommendationsOrderByEnum;
|
|
177
|
+
(function (GetFavoriteProductRecommendationsOrderByEnum) {
|
|
178
|
+
GetFavoriteProductRecommendationsOrderByEnum["RELEVANCEasc"] = "RELEVANCE:asc";
|
|
179
|
+
GetFavoriteProductRecommendationsOrderByEnum["RELEVANCEdesc"] = "RELEVANCE:desc";
|
|
180
|
+
GetFavoriteProductRecommendationsOrderByEnum["CREATEDATasc"] = "CREATED_AT:asc";
|
|
181
|
+
GetFavoriteProductRecommendationsOrderByEnum["CREATEDATdesc"] = "CREATED_AT:desc";
|
|
182
|
+
})(GetFavoriteProductRecommendationsOrderByEnum = exports.GetFavoriteProductRecommendationsOrderByEnum || (exports.GetFavoriteProductRecommendationsOrderByEnum = {}));
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ManageProductRecommendationFeedbackApi"), exports);
|
|
18
|
+
__exportStar(require("./SearchFavoriteProductRecommendationApi"), exports);
|
|
18
19
|
__exportStar(require("./SearchProductPriceRecommendationApi"), exports);
|
|
19
20
|
__exportStar(require("./SearchProductRecommendationApi"), exports);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-data-intelligence
|
|
3
|
+
* This is the REST API of LCDP product recommendation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ProductLink } from './ProductLink';
|
|
13
|
+
import { UserLink } from './UserLink';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface FavoriteProductRecommendation
|
|
18
|
+
*/
|
|
19
|
+
export interface FavoriteProductRecommendation {
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier of the favorite product recommendation
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof FavoriteProductRecommendation
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The user owner of the recommendation If null : the recommendation is a default recommendation if not null : the recommendation is personnalized for the user
|
|
28
|
+
* @type {UserLink}
|
|
29
|
+
* @memberof FavoriteProductRecommendation
|
|
30
|
+
*/
|
|
31
|
+
user?: UserLink | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ProductLink}
|
|
35
|
+
* @memberof FavoriteProductRecommendation
|
|
36
|
+
*/
|
|
37
|
+
product: ProductLink;
|
|
38
|
+
/**
|
|
39
|
+
* A number who start at 0. Higher the score is, better the recommandation is good
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof FavoriteProductRecommendation
|
|
42
|
+
*/
|
|
43
|
+
score?: number | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof FavoriteProductRecommendation
|
|
48
|
+
*/
|
|
49
|
+
createdAt?: Date;
|
|
50
|
+
}
|
|
51
|
+
export declare function FavoriteProductRecommendationFromJSON(json: any): FavoriteProductRecommendation;
|
|
52
|
+
export declare function FavoriteProductRecommendationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FavoriteProductRecommendation;
|
|
53
|
+
export declare function FavoriteProductRecommendationToJSON(value?: FavoriteProductRecommendation | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-data-intelligence
|
|
6
|
+
* This is the REST API of LCDP product recommendation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FavoriteProductRecommendationToJSON = exports.FavoriteProductRecommendationFromJSONTyped = exports.FavoriteProductRecommendationFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ProductLink_1 = require("./ProductLink");
|
|
19
|
+
var UserLink_1 = require("./UserLink");
|
|
20
|
+
function FavoriteProductRecommendationFromJSON(json) {
|
|
21
|
+
return FavoriteProductRecommendationFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
exports.FavoriteProductRecommendationFromJSON = FavoriteProductRecommendationFromJSON;
|
|
24
|
+
function FavoriteProductRecommendationFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'id': json['id'],
|
|
30
|
+
'user': !(0, runtime_1.exists)(json, 'user') ? json['user'] : (0, UserLink_1.UserLinkFromJSON)(json['user']),
|
|
31
|
+
'product': (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
|
|
32
|
+
'score': !(0, runtime_1.exists)(json, 'score') ? json['score'] : json['score'],
|
|
33
|
+
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.FavoriteProductRecommendationFromJSONTyped = FavoriteProductRecommendationFromJSONTyped;
|
|
37
|
+
function FavoriteProductRecommendationToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': value.id,
|
|
46
|
+
'user': (0, UserLink_1.UserLinkToJSON)(value.user),
|
|
47
|
+
'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
|
|
48
|
+
'score': value.score,
|
|
49
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.FavoriteProductRecommendationToJSON = FavoriteProductRecommendationToJSON;
|