@lcdp/api-react-rest-client 2.5.3 → 2.5.4-develop.6390182412
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/magic-cart/src/models/ExpressOrderNeed.d.ts +14 -2
- package/magic-cart/src/models/ExpressOrderNeed.js +5 -0
- package/package.json +1 -1
- package/recommendation/src/apis/SearchProductPriceRecommendationApi.d.ts +2 -2
- package/recommendation/src/apis/SearchProductPriceRecommendationApi.js +2 -2
- package/recommendation/src/apis/index.d.ts +0 -1
- package/recommendation/src/apis/index.js +0 -1
- package/recommendation/src/models/ProductPriceRecommendation.d.ts +1 -1
- package/recommendation/src/models/ProductPriceRecommendation.js +2 -2
- package/recommendation/src/models/index.d.ts +0 -2
- package/recommendation/src/models/index.js +0 -2
- package/recommendation/src/apis/ManageProductRecommendationFeedbackApi.d.ts +0 -30
- package/recommendation/src/apis/ManageProductRecommendationFeedbackApi.js +0 -155
- package/recommendation/src/models/ProductRecommendationFeedback.d.ts +0 -53
- package/recommendation/src/models/ProductRecommendationFeedback.js +0 -52
- package/recommendation/src/models/RecommendationFeedbackCreationParameters.d.ts +0 -33
- package/recommendation/src/models/RecommendationFeedbackCreationParameters.js +0 -43
|
@@ -16,17 +16,29 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ExpressOrderNeed {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Concerned product
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof ExpressOrderNeed
|
|
22
22
|
*/
|
|
23
23
|
productId: number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Minimal quantity needed
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof ExpressOrderNeed
|
|
28
28
|
*/
|
|
29
29
|
quantity: number;
|
|
30
|
+
/**
|
|
31
|
+
* minimalDiscount can be negative cause discount can be negative
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ExpressOrderNeed
|
|
34
|
+
*/
|
|
35
|
+
minimalDiscount?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
* The lapsing date must be reached after this date. (see ISO-8601 https://tc39.es/proposal-temporal/docs/duration.html)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ExpressOrderNeed
|
|
40
|
+
*/
|
|
41
|
+
minimalLapsingDuration?: string | null;
|
|
30
42
|
}
|
|
31
43
|
export declare function ExpressOrderNeedFromJSON(json: any): ExpressOrderNeed;
|
|
32
44
|
export declare function ExpressOrderNeedFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExpressOrderNeed;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ExpressOrderNeedToJSON = exports.ExpressOrderNeedFromJSONTyped = exports.ExpressOrderNeedFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
function ExpressOrderNeedFromJSON(json) {
|
|
18
19
|
return ExpressOrderNeedFromJSONTyped(json, false);
|
|
19
20
|
}
|
|
@@ -25,6 +26,8 @@ function ExpressOrderNeedFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
26
|
return {
|
|
26
27
|
'productId': json['productId'],
|
|
27
28
|
'quantity': json['quantity'],
|
|
29
|
+
'minimalDiscount': !(0, runtime_1.exists)(json, 'minimalDiscount') ? json['minimalDiscount'] : json['minimalDiscount'],
|
|
30
|
+
'minimalLapsingDuration': !(0, runtime_1.exists)(json, 'minimalLapsingDuration') ? json['minimalLapsingDuration'] : json['minimalLapsingDuration'],
|
|
28
31
|
};
|
|
29
32
|
}
|
|
30
33
|
exports.ExpressOrderNeedFromJSONTyped = ExpressOrderNeedFromJSONTyped;
|
|
@@ -38,6 +41,8 @@ function ExpressOrderNeedToJSON(value) {
|
|
|
38
41
|
return {
|
|
39
42
|
'productId': value.productId,
|
|
40
43
|
'quantity': value.quantity,
|
|
44
|
+
'minimalDiscount': value.minimalDiscount,
|
|
45
|
+
'minimalLapsingDuration': value.minimalLapsingDuration,
|
|
41
46
|
};
|
|
42
47
|
}
|
|
43
48
|
exports.ExpressOrderNeedToJSON = ExpressOrderNeedToJSON;
|
package/package.json
CHANGED
|
@@ -37,6 +37,6 @@ export declare class SearchProductPriceRecommendationApi extends BaseAPI {
|
|
|
37
37
|
export declare enum GetProductPriceRecommendationsOrderByEnum {
|
|
38
38
|
PRICEasc = "PRICE:asc",
|
|
39
39
|
PRICEdesc = "PRICE:desc",
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
CREATEDATasc = "CREATED_AT:asc",
|
|
41
|
+
CREATEDATdesc = "CREATED_AT:desc"
|
|
42
42
|
}
|
|
@@ -168,6 +168,6 @@ var GetProductPriceRecommendationsOrderByEnum;
|
|
|
168
168
|
(function (GetProductPriceRecommendationsOrderByEnum) {
|
|
169
169
|
GetProductPriceRecommendationsOrderByEnum["PRICEasc"] = "PRICE:asc";
|
|
170
170
|
GetProductPriceRecommendationsOrderByEnum["PRICEdesc"] = "PRICE:desc";
|
|
171
|
-
GetProductPriceRecommendationsOrderByEnum["
|
|
172
|
-
GetProductPriceRecommendationsOrderByEnum["
|
|
171
|
+
GetProductPriceRecommendationsOrderByEnum["CREATEDATasc"] = "CREATED_AT:asc";
|
|
172
|
+
GetProductPriceRecommendationsOrderByEnum["CREATEDATdesc"] = "CREATED_AT:desc";
|
|
173
173
|
})(GetProductPriceRecommendationsOrderByEnum = exports.GetProductPriceRecommendationsOrderByEnum || (exports.GetProductPriceRecommendationsOrderByEnum = {}));
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ManageProductRecommendationFeedbackApi"), exports);
|
|
18
17
|
__exportStar(require("./SearchFavoriteProductRecommendationApi"), exports);
|
|
19
18
|
__exportStar(require("./SearchProductPriceRecommendationApi"), exports);
|
|
20
19
|
__exportStar(require("./SearchProductRecommendationApi"), exports);
|
|
@@ -39,7 +39,7 @@ export interface ProductPriceRecommendation {
|
|
|
39
39
|
* @type {Date}
|
|
40
40
|
* @memberof ProductPriceRecommendation
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
createdAt?: Date;
|
|
43
43
|
}
|
|
44
44
|
export declare function ProductPriceRecommendationFromJSON(json: any): ProductPriceRecommendation;
|
|
45
45
|
export declare function ProductPriceRecommendationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductPriceRecommendation;
|
|
@@ -28,7 +28,7 @@ function ProductPriceRecommendationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'id': json['id'],
|
|
29
29
|
'product': (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
|
|
30
30
|
'price': json['price'],
|
|
31
|
-
'
|
|
31
|
+
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
exports.ProductPriceRecommendationFromJSONTyped = ProductPriceRecommendationFromJSONTyped;
|
|
@@ -43,7 +43,7 @@ function ProductPriceRecommendationToJSON(value) {
|
|
|
43
43
|
'id': value.id,
|
|
44
44
|
'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
|
|
45
45
|
'price': value.price,
|
|
46
|
-
'
|
|
46
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
exports.ProductPriceRecommendationToJSON = ProductPriceRecommendationToJSON;
|
|
@@ -12,8 +12,6 @@ export * from './ProductLink';
|
|
|
12
12
|
export * from './ProductLinkAllOf';
|
|
13
13
|
export * from './ProductPriceRecommendation';
|
|
14
14
|
export * from './ProductRecommendation';
|
|
15
|
-
export * from './ProductRecommendationFeedback';
|
|
16
15
|
export * from './ProductRecommendationType';
|
|
17
|
-
export * from './RecommendationFeedbackCreationParameters';
|
|
18
16
|
export * from './UserLink';
|
|
19
17
|
export * from './UserLinkAllOf';
|
|
@@ -28,8 +28,6 @@ __exportStar(require("./ProductLink"), exports);
|
|
|
28
28
|
__exportStar(require("./ProductLinkAllOf"), exports);
|
|
29
29
|
__exportStar(require("./ProductPriceRecommendation"), exports);
|
|
30
30
|
__exportStar(require("./ProductRecommendation"), exports);
|
|
31
|
-
__exportStar(require("./ProductRecommendationFeedback"), exports);
|
|
32
31
|
__exportStar(require("./ProductRecommendationType"), exports);
|
|
33
|
-
__exportStar(require("./RecommendationFeedbackCreationParameters"), exports);
|
|
34
32
|
__exportStar(require("./UserLink"), exports);
|
|
35
33
|
__exportStar(require("./UserLinkAllOf"), exports);
|
|
@@ -1,30 +0,0 @@
|
|
|
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 { ProductRecommendationFeedback, RecommendationFeedbackCreationParameters } from '../models';
|
|
14
|
-
export interface CreateProductRecommendationFeedbackRequest {
|
|
15
|
-
productRecommendationId: string;
|
|
16
|
-
recommendationFeedbackCreationParameters?: RecommendationFeedbackCreationParameters;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* no description
|
|
20
|
-
*/
|
|
21
|
-
export declare class ManageProductRecommendationFeedbackApi extends BaseAPI {
|
|
22
|
-
/**
|
|
23
|
-
* Create product recommendation feedback
|
|
24
|
-
*/
|
|
25
|
-
createProductRecommendationFeedbackRaw(requestParameters: CreateProductRecommendationFeedbackRequest): Promise<ApiResponse<ProductRecommendationFeedback | BlobWithMeta>>;
|
|
26
|
-
/**
|
|
27
|
-
* Create product recommendation feedback
|
|
28
|
-
*/
|
|
29
|
-
createProductRecommendationFeedback(requestParameters: CreateProductRecommendationFeedbackRequest): Promise<ProductRecommendationFeedback | BlobWithMeta>;
|
|
30
|
-
}
|
|
@@ -1,155 +0,0 @@
|
|
|
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.ManageProductRecommendationFeedbackApi = void 0;
|
|
68
|
-
var runtime_1 = require("../runtime");
|
|
69
|
-
var models_1 = require("../models");
|
|
70
|
-
/**
|
|
71
|
-
* no description
|
|
72
|
-
*/
|
|
73
|
-
var ManageProductRecommendationFeedbackApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(ManageProductRecommendationFeedbackApi, _super);
|
|
75
|
-
function ManageProductRecommendationFeedbackApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Create product recommendation feedback
|
|
80
|
-
*/
|
|
81
|
-
ManageProductRecommendationFeedbackApi.prototype.createProductRecommendationFeedbackRaw = 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
|
-
if (requestParameters.productRecommendationId === null || requestParameters.productRecommendationId === undefined) {
|
|
88
|
-
throw new runtime_1.RequiredError('productRecommendationId', 'Required parameter requestParameters.productRecommendationId was null or undefined when calling createProductRecommendationFeedback.');
|
|
89
|
-
}
|
|
90
|
-
queryParameters = {};
|
|
91
|
-
headerParameters = {};
|
|
92
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
94
|
-
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
95
|
-
}
|
|
96
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
97
|
-
token = this.configuration.accessToken;
|
|
98
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
99
|
-
if (tokenString) {
|
|
100
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
_a.label = 1;
|
|
104
|
-
case 1:
|
|
105
|
-
_a.trys.push([1, 3, , 4]);
|
|
106
|
-
return [4 /*yield*/, this.request({
|
|
107
|
-
path: "/product-recommendations/{productRecommendationId}/feedbacks".replace("{".concat("productRecommendationId", "}"), encodeURIComponent(String(requestParameters.productRecommendationId))),
|
|
108
|
-
method: 'POST',
|
|
109
|
-
headers: headerParameters,
|
|
110
|
-
query: queryParameters,
|
|
111
|
-
body: (0, models_1.RecommendationFeedbackCreationParametersToJSON)(requestParameters.recommendationFeedbackCreationParameters),
|
|
112
|
-
})];
|
|
113
|
-
case 2:
|
|
114
|
-
response = _a.sent();
|
|
115
|
-
contentType = response.headers.get("content-type");
|
|
116
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
117
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProductRecommendationFeedbackFromJSON)(jsonValue); })];
|
|
118
|
-
}
|
|
119
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
120
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
// TODO : Better handling of others application types
|
|
124
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
125
|
-
}
|
|
126
|
-
return [3 /*break*/, 4];
|
|
127
|
-
case 3:
|
|
128
|
-
response_1 = _a.sent();
|
|
129
|
-
console.debug(response_1);
|
|
130
|
-
throw response_1;
|
|
131
|
-
case 4: return [2 /*return*/];
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* Create product recommendation feedback
|
|
138
|
-
*/
|
|
139
|
-
ManageProductRecommendationFeedbackApi.prototype.createProductRecommendationFeedback = function (requestParameters) {
|
|
140
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
-
var response;
|
|
142
|
-
return __generator(this, function (_a) {
|
|
143
|
-
switch (_a.label) {
|
|
144
|
-
case 0: return [4 /*yield*/, this.createProductRecommendationFeedbackRaw(requestParameters)];
|
|
145
|
-
case 1:
|
|
146
|
-
response = _a.sent();
|
|
147
|
-
return [4 /*yield*/, response.value()];
|
|
148
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
};
|
|
153
|
-
return ManageProductRecommendationFeedbackApi;
|
|
154
|
-
}(runtime_1.BaseAPI));
|
|
155
|
-
exports.ManageProductRecommendationFeedbackApi = ManageProductRecommendationFeedbackApi;
|
|
@@ -1,53 +0,0 @@
|
|
|
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 ProductRecommendationFeedback
|
|
18
|
-
*/
|
|
19
|
-
export interface ProductRecommendationFeedback {
|
|
20
|
-
/**
|
|
21
|
-
* Unique identifier of the product recommendation feedback
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof ProductRecommendationFeedback
|
|
24
|
-
*/
|
|
25
|
-
id?: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {UserLink}
|
|
29
|
-
* @memberof ProductRecommendationFeedback
|
|
30
|
-
*/
|
|
31
|
-
user?: UserLink;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {ProductLink}
|
|
35
|
-
* @memberof ProductRecommendationFeedback
|
|
36
|
-
*/
|
|
37
|
-
product?: ProductLink;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {boolean}
|
|
41
|
-
* @memberof ProductRecommendationFeedback
|
|
42
|
-
*/
|
|
43
|
-
isRelevant?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {Date}
|
|
47
|
-
* @memberof ProductRecommendationFeedback
|
|
48
|
-
*/
|
|
49
|
-
createdAt?: Date;
|
|
50
|
-
}
|
|
51
|
-
export declare function ProductRecommendationFeedbackFromJSON(json: any): ProductRecommendationFeedback;
|
|
52
|
-
export declare function ProductRecommendationFeedbackFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRecommendationFeedback;
|
|
53
|
-
export declare function ProductRecommendationFeedbackToJSON(value?: ProductRecommendationFeedback | null): any;
|
|
@@ -1,52 +0,0 @@
|
|
|
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.ProductRecommendationFeedbackToJSON = exports.ProductRecommendationFeedbackFromJSONTyped = exports.ProductRecommendationFeedbackFromJSON = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
var ProductLink_1 = require("./ProductLink");
|
|
19
|
-
var UserLink_1 = require("./UserLink");
|
|
20
|
-
function ProductRecommendationFeedbackFromJSON(json) {
|
|
21
|
-
return ProductRecommendationFeedbackFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
exports.ProductRecommendationFeedbackFromJSON = ProductRecommendationFeedbackFromJSON;
|
|
24
|
-
function ProductRecommendationFeedbackFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
-
if ((json === undefined) || (json === null)) {
|
|
26
|
-
return json;
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
30
|
-
'user': !(0, runtime_1.exists)(json, 'user') ? undefined : (0, UserLink_1.UserLinkFromJSON)(json['user']),
|
|
31
|
-
'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
|
|
32
|
-
'isRelevant': !(0, runtime_1.exists)(json, 'isRelevant') ? undefined : json['isRelevant'],
|
|
33
|
-
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
exports.ProductRecommendationFeedbackFromJSONTyped = ProductRecommendationFeedbackFromJSONTyped;
|
|
37
|
-
function ProductRecommendationFeedbackToJSON(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
|
-
'isRelevant': value.isRelevant,
|
|
49
|
-
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
exports.ProductRecommendationFeedbackToJSON = ProductRecommendationFeedbackToJSON;
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface RecommendationFeedbackCreationParameters
|
|
16
|
-
*/
|
|
17
|
-
export interface RecommendationFeedbackCreationParameters {
|
|
18
|
-
/**
|
|
19
|
-
* Identifier of the user who send the feedback
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof RecommendationFeedbackCreationParameters
|
|
22
|
-
*/
|
|
23
|
-
userId: number;
|
|
24
|
-
/**
|
|
25
|
-
* Feedback to determine if the recommendation was relevant - \"false\" the recommendation is not relevante - \"true\" the recommendation is relevante
|
|
26
|
-
* @type {boolean}
|
|
27
|
-
* @memberof RecommendationFeedbackCreationParameters
|
|
28
|
-
*/
|
|
29
|
-
isRelevant: boolean;
|
|
30
|
-
}
|
|
31
|
-
export declare function RecommendationFeedbackCreationParametersFromJSON(json: any): RecommendationFeedbackCreationParameters;
|
|
32
|
-
export declare function RecommendationFeedbackCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecommendationFeedbackCreationParameters;
|
|
33
|
-
export declare function RecommendationFeedbackCreationParametersToJSON(value?: RecommendationFeedbackCreationParameters | null): any;
|
|
@@ -1,43 +0,0 @@
|
|
|
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.RecommendationFeedbackCreationParametersToJSON = exports.RecommendationFeedbackCreationParametersFromJSONTyped = exports.RecommendationFeedbackCreationParametersFromJSON = void 0;
|
|
17
|
-
function RecommendationFeedbackCreationParametersFromJSON(json) {
|
|
18
|
-
return RecommendationFeedbackCreationParametersFromJSONTyped(json, false);
|
|
19
|
-
}
|
|
20
|
-
exports.RecommendationFeedbackCreationParametersFromJSON = RecommendationFeedbackCreationParametersFromJSON;
|
|
21
|
-
function RecommendationFeedbackCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if ((json === undefined) || (json === null)) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'userId': json['userId'],
|
|
27
|
-
'isRelevant': json['isRelevant'],
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
exports.RecommendationFeedbackCreationParametersFromJSONTyped = RecommendationFeedbackCreationParametersFromJSONTyped;
|
|
31
|
-
function RecommendationFeedbackCreationParametersToJSON(value) {
|
|
32
|
-
if (value === undefined) {
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
if (value === null) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'userId': value.userId,
|
|
40
|
-
'isRelevant': value.isRelevant,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
exports.RecommendationFeedbackCreationParametersToJSON = RecommendationFeedbackCreationParametersToJSON;
|