@lcdp/api-react-rest-client 1.6.1-json-test-62.0 → 1.8.0

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 (38) hide show
  1. package/notification/src/models/NotificationTypeId.d.ts +1 -0
  2. package/notification/src/models/NotificationTypeId.js +1 -0
  3. package/order/src/apis/ManageMetaOrderApi.js +1 -1
  4. package/order/src/models/Order.d.ts +14 -1
  5. package/order/src/models/Order.js +5 -0
  6. package/package.json +1 -1
  7. package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.d.ts +45 -0
  8. package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.js +182 -0
  9. package/recommendation/src/apis/index.d.ts +1 -0
  10. package/recommendation/src/apis/index.js +1 -0
  11. package/recommendation/src/models/FavoriteProductRecommendation.d.ts +53 -0
  12. package/recommendation/src/models/FavoriteProductRecommendation.js +52 -0
  13. package/recommendation/src/models/PaginatedFavoriteProductRecommendations.d.ts +29 -0
  14. package/recommendation/src/models/PaginatedFavoriteProductRecommendations.js +50 -0
  15. package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.d.ts +28 -0
  16. package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.js +42 -0
  17. package/recommendation/src/models/index.d.ts +3 -0
  18. package/recommendation/src/models/index.js +3 -0
  19. package/user/src/models/NotificationTypeId.d.ts +1 -0
  20. package/user/src/models/NotificationTypeId.js +1 -0
  21. package/user/src/models/UserCreationParameters.d.ts +6 -0
  22. package/user/src/models/UserCreationParameters.js +2 -0
  23. package/wish/src/apis/ManageWishApi.d.ts +2 -0
  24. package/wish/src/apis/ManageWishApi.js +2 -0
  25. package/wish/src/apis/SearchWishApi.d.ts +7 -3
  26. package/wish/src/apis/SearchWishApi.js +14 -2
  27. package/wish/src/models/Referrer.d.ts +34 -0
  28. package/wish/src/models/Referrer.js +45 -0
  29. package/wish/src/models/Wish.d.ts +19 -0
  30. package/wish/src/models/Wish.js +7 -0
  31. package/wish/src/models/WishCreationParameters.d.ts +13 -0
  32. package/wish/src/models/WishCreationParameters.js +5 -0
  33. package/wish/src/models/WishReferrerType.d.ts +23 -0
  34. package/wish/src/models/WishReferrerType.js +38 -0
  35. package/wish/src/models/WishUpdateParameters.d.ts +6 -0
  36. package/wish/src/models/WishUpdateParameters.js +2 -0
  37. package/wish/src/models/index.d.ts +2 -0
  38. package/wish/src/models/index.js +2 -0
@@ -24,6 +24,7 @@ export declare enum NotificationTypeId {
24
24
  ADSOLDOUT = "AD_SOLD_OUT",
25
25
  ADVALIDATED = "AD_VALIDATED",
26
26
  ADWISHLISTLINE = "AD_WISHLIST_LINE",
27
+ ADWISHLISTLINEFAVORITE = "AD_WISHLIST_LINE_FAVORITE",
27
28
  CLIENTCREDITCARDEXPIRATION = "CLIENT_CREDIT_CARD_EXPIRATION",
28
29
  CLIENTFIRSTAD = "CLIENT_FIRST_AD",
29
30
  CLIENTFIRSTBUY = "CLIENT_FIRST_BUY",
@@ -30,6 +30,7 @@ var NotificationTypeId;
30
30
  NotificationTypeId["ADSOLDOUT"] = "AD_SOLD_OUT";
31
31
  NotificationTypeId["ADVALIDATED"] = "AD_VALIDATED";
32
32
  NotificationTypeId["ADWISHLISTLINE"] = "AD_WISHLIST_LINE";
33
+ NotificationTypeId["ADWISHLISTLINEFAVORITE"] = "AD_WISHLIST_LINE_FAVORITE";
33
34
  NotificationTypeId["CLIENTCREDITCARDEXPIRATION"] = "CLIENT_CREDIT_CARD_EXPIRATION";
34
35
  NotificationTypeId["CLIENTFIRSTAD"] = "CLIENT_FIRST_AD";
35
36
  NotificationTypeId["CLIENTFIRSTBUY"] = "CLIENT_FIRST_BUY";
@@ -105,7 +105,7 @@ var ManageMetaOrderApi = /** @class */ (function (_super) {
105
105
  case 1:
106
106
  _a.trys.push([1, 3, , 4]);
107
107
  return [4 /*yield*/, this.request({
108
- path: "/meta-orders/",
108
+ path: "/meta-orders",
109
109
  method: 'POST',
110
110
  headers: headerParameters,
111
111
  query: queryParameters,
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { Address } from './Address';
12
13
  import { Anomalies } from './Anomalies';
13
14
  import { HttpLink } from './HttpLink';
14
15
  import { OrderPrices } from './OrderPrices';
@@ -17,7 +18,7 @@ import { OrderThreads } from './OrderThreads';
17
18
  import { OrderType } from './OrderType';
18
19
  import { UserLink } from './UserLink';
19
20
  /**
20
- * One order contain all items that a buyer request to one seller.
21
+ * One order contain all items that a buyer request to one seller. If shipping address is empty, use billing address as shipping address
21
22
  * @export
22
23
  * @interface Order
23
24
  */
@@ -94,6 +95,18 @@ export interface Order {
94
95
  * @memberof Order
95
96
  */
96
97
  buyer?: UserLink;
98
+ /**
99
+ *
100
+ * @type {Address}
101
+ * @memberof Order
102
+ */
103
+ shippingAddress?: Address;
104
+ /**
105
+ *
106
+ * @type {Address}
107
+ * @memberof Order
108
+ */
109
+ billingAddress?: Address;
97
110
  /**
98
111
  *
99
112
  * @type {HttpLink}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.OrderToJSON = exports.OrderFromJSONTyped = exports.OrderFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var Address_1 = require("./Address");
18
19
  var Anomalies_1 = require("./Anomalies");
19
20
  var HttpLink_1 = require("./HttpLink");
20
21
  var OrderPrices_1 = require("./OrderPrices");
@@ -43,6 +44,8 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
43
44
  'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
44
45
  'seller': !(0, runtime_1.exists)(json, 'seller') ? undefined : (0, UserLink_1.UserLinkFromJSON)(json['seller']),
45
46
  'buyer': !(0, runtime_1.exists)(json, 'buyer') ? undefined : (0, UserLink_1.UserLinkFromJSON)(json['buyer']),
47
+ 'shippingAddress': !(0, runtime_1.exists)(json, 'shippingAddress') ? undefined : (0, Address_1.AddressFromJSON)(json['shippingAddress']),
48
+ 'billingAddress': !(0, runtime_1.exists)(json, 'billingAddress') ? undefined : (0, Address_1.AddressFromJSON)(json['billingAddress']),
46
49
  'shipments': !(0, runtime_1.exists)(json, 'shipments') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['shipments']),
47
50
  'maxShipment': !(0, runtime_1.exists)(json, 'maxShipment') ? undefined : json['maxShipment'],
48
51
  'maxShippingDate': !(0, runtime_1.exists)(json, 'maxShippingDate') ? undefined : (new Date(json['maxShippingDate'])),
@@ -80,6 +83,8 @@ function OrderToJSON(value) {
80
83
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
81
84
  'seller': (0, UserLink_1.UserLinkToJSON)(value.seller),
82
85
  'buyer': (0, UserLink_1.UserLinkToJSON)(value.buyer),
86
+ 'shippingAddress': (0, Address_1.AddressToJSON)(value.shippingAddress),
87
+ 'billingAddress': (0, Address_1.AddressToJSON)(value.billingAddress),
83
88
  'shipments': (0, HttpLink_1.HttpLinkToJSON)(value.shipments),
84
89
  'maxShipment': value.maxShipment,
85
90
  'maxShippingDate': value.maxShippingDate === undefined ? undefined : ((0, runtime_1.toDateISOString)(value.maxShippingDate)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "1.6.1-json-test-62.0",
3
+ "version": "1.8.0",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -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 = {}));
@@ -1,3 +1,4 @@
1
1
  export * from './ManageProductRecommendationFeedbackApi';
2
+ export * from './SearchFavoriteProductRecommendationApi';
2
3
  export * from './SearchProductPriceRecommendationApi';
3
4
  export * from './SearchProductRecommendationApi';
@@ -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;
@@ -0,0 +1,29 @@
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 { FavoriteProductRecommendation } from './FavoriteProductRecommendation';
13
+ import { PaginatedObject } from './PaginatedObject';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedFavoriteProductRecommendations
18
+ */
19
+ export interface PaginatedFavoriteProductRecommendations extends PaginatedObject {
20
+ /**
21
+ *
22
+ * @type {Array<FavoriteProductRecommendation>}
23
+ * @memberof PaginatedFavoriteProductRecommendations
24
+ */
25
+ records: Array<FavoriteProductRecommendation>;
26
+ }
27
+ export declare function PaginatedFavoriteProductRecommendationsFromJSON(json: any): PaginatedFavoriteProductRecommendations;
28
+ export declare function PaginatedFavoriteProductRecommendationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFavoriteProductRecommendations;
29
+ export declare function PaginatedFavoriteProductRecommendationsToJSON(value?: PaginatedFavoriteProductRecommendations | null): any;
@@ -0,0 +1,50 @@
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 __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.PaginatedFavoriteProductRecommendationsToJSON = exports.PaginatedFavoriteProductRecommendationsFromJSONTyped = exports.PaginatedFavoriteProductRecommendationsFromJSON = void 0;
28
+ var FavoriteProductRecommendation_1 = require("./FavoriteProductRecommendation");
29
+ var PaginatedObject_1 = require("./PaginatedObject");
30
+ function PaginatedFavoriteProductRecommendationsFromJSON(json) {
31
+ return PaginatedFavoriteProductRecommendationsFromJSONTyped(json, false);
32
+ }
33
+ exports.PaginatedFavoriteProductRecommendationsFromJSON = PaginatedFavoriteProductRecommendationsFromJSON;
34
+ function PaginatedFavoriteProductRecommendationsFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return __assign(__assign({}, (0, PaginatedObject_1.PaginatedObjectFromJSONTyped)(json, ignoreDiscriminator)), { 'records': (json['records'].map(FavoriteProductRecommendation_1.FavoriteProductRecommendationFromJSON)) });
39
+ }
40
+ exports.PaginatedFavoriteProductRecommendationsFromJSONTyped = PaginatedFavoriteProductRecommendationsFromJSONTyped;
41
+ function PaginatedFavoriteProductRecommendationsToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return __assign(__assign({}, (0, PaginatedObject_1.PaginatedObjectToJSON)(value)), { 'records': (value.records.map(FavoriteProductRecommendation_1.FavoriteProductRecommendationToJSON)) });
49
+ }
50
+ exports.PaginatedFavoriteProductRecommendationsToJSON = PaginatedFavoriteProductRecommendationsToJSON;
@@ -0,0 +1,28 @@
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 { FavoriteProductRecommendation } from './FavoriteProductRecommendation';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedFavoriteProductRecommendationsAllOf
17
+ */
18
+ export interface PaginatedFavoriteProductRecommendationsAllOf {
19
+ /**
20
+ *
21
+ * @type {Array<FavoriteProductRecommendation>}
22
+ * @memberof PaginatedFavoriteProductRecommendationsAllOf
23
+ */
24
+ records: Array<FavoriteProductRecommendation>;
25
+ }
26
+ export declare function PaginatedFavoriteProductRecommendationsAllOfFromJSON(json: any): PaginatedFavoriteProductRecommendationsAllOf;
27
+ export declare function PaginatedFavoriteProductRecommendationsAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFavoriteProductRecommendationsAllOf;
28
+ export declare function PaginatedFavoriteProductRecommendationsAllOfToJSON(value?: PaginatedFavoriteProductRecommendationsAllOf | null): any;
@@ -0,0 +1,42 @@
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.PaginatedFavoriteProductRecommendationsAllOfToJSON = exports.PaginatedFavoriteProductRecommendationsAllOfFromJSONTyped = exports.PaginatedFavoriteProductRecommendationsAllOfFromJSON = void 0;
17
+ var FavoriteProductRecommendation_1 = require("./FavoriteProductRecommendation");
18
+ function PaginatedFavoriteProductRecommendationsAllOfFromJSON(json) {
19
+ return PaginatedFavoriteProductRecommendationsAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.PaginatedFavoriteProductRecommendationsAllOfFromJSON = PaginatedFavoriteProductRecommendationsAllOfFromJSON;
22
+ function PaginatedFavoriteProductRecommendationsAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'records': (json['records'].map(FavoriteProductRecommendation_1.FavoriteProductRecommendationFromJSON)),
28
+ };
29
+ }
30
+ exports.PaginatedFavoriteProductRecommendationsAllOfFromJSONTyped = PaginatedFavoriteProductRecommendationsAllOfFromJSONTyped;
31
+ function PaginatedFavoriteProductRecommendationsAllOfToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'records': (value.records.map(FavoriteProductRecommendation_1.FavoriteProductRecommendationToJSON)),
40
+ };
41
+ }
42
+ exports.PaginatedFavoriteProductRecommendationsAllOfToJSON = PaginatedFavoriteProductRecommendationsAllOfToJSON;
@@ -1,4 +1,7 @@
1
+ export * from './FavoriteProductRecommendation';
1
2
  export * from './HttpLink';
3
+ export * from './PaginatedFavoriteProductRecommendations';
4
+ export * from './PaginatedFavoriteProductRecommendationsAllOf';
2
5
  export * from './PaginatedObject';
3
6
  export * from './PaginatedProductPriceRecommendations';
4
7
  export * from './PaginatedProductPriceRecommendationsAllOf';
@@ -14,7 +14,10 @@ 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("./FavoriteProductRecommendation"), exports);
17
18
  __exportStar(require("./HttpLink"), exports);
19
+ __exportStar(require("./PaginatedFavoriteProductRecommendations"), exports);
20
+ __exportStar(require("./PaginatedFavoriteProductRecommendationsAllOf"), exports);
18
21
  __exportStar(require("./PaginatedObject"), exports);
19
22
  __exportStar(require("./PaginatedProductPriceRecommendations"), exports);
20
23
  __exportStar(require("./PaginatedProductPriceRecommendationsAllOf"), exports);
@@ -24,6 +24,7 @@ export declare enum NotificationTypeId {
24
24
  ADSOLDOUT = "AD_SOLD_OUT",
25
25
  ADVALIDATED = "AD_VALIDATED",
26
26
  ADWISHLISTLINE = "AD_WISHLIST_LINE",
27
+ ADWISHLISTLINEFAVORITE = "AD_WISHLIST_LINE_FAVORITE",
27
28
  CLIENTCREDITCARDEXPIRATION = "CLIENT_CREDIT_CARD_EXPIRATION",
28
29
  CLIENTFIRSTAD = "CLIENT_FIRST_AD",
29
30
  CLIENTFIRSTBUY = "CLIENT_FIRST_BUY",
@@ -30,6 +30,7 @@ var NotificationTypeId;
30
30
  NotificationTypeId["ADSOLDOUT"] = "AD_SOLD_OUT";
31
31
  NotificationTypeId["ADVALIDATED"] = "AD_VALIDATED";
32
32
  NotificationTypeId["ADWISHLISTLINE"] = "AD_WISHLIST_LINE";
33
+ NotificationTypeId["ADWISHLISTLINEFAVORITE"] = "AD_WISHLIST_LINE_FAVORITE";
33
34
  NotificationTypeId["CLIENTCREDITCARDEXPIRATION"] = "CLIENT_CREDIT_CARD_EXPIRATION";
34
35
  NotificationTypeId["CLIENTFIRSTAD"] = "CLIENT_FIRST_AD";
35
36
  NotificationTypeId["CLIENTFIRSTBUY"] = "CLIENT_FIRST_BUY";
@@ -28,6 +28,12 @@ export interface UserCreationParameters {
28
28
  * @memberof UserCreationParameters
29
29
  */
30
30
  lastname: string;
31
+ /**
32
+ * Date of birth
33
+ * @type {Date}
34
+ * @memberof UserCreationParameters
35
+ */
36
+ birthdate: Date | null;
31
37
  /**
32
38
  * An email in conformity with pattern
33
39
  * @type {string}
@@ -27,6 +27,7 @@ function UserCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
27
27
  return {
28
28
  'firstname': json['firstname'],
29
29
  'lastname': json['lastname'],
30
+ 'birthdate': (json['birthdate'] === null ? null : new Date(json['birthdate'])),
30
31
  'email': json['email'],
31
32
  'phone': json['phone'],
32
33
  'password': json['password'],
@@ -44,6 +45,7 @@ function UserCreationParametersToJSON(value) {
44
45
  return {
45
46
  'firstname': value.firstname,
46
47
  'lastname': value.lastname,
48
+ 'birthdate': (value.birthdate === null ? null : (0, runtime_1.toDateISOString)(value.birthdate)),
47
49
  'email': value.email,
48
50
  'phone': value.phone,
49
51
  'password': value.password,
@@ -26,10 +26,12 @@ export interface UpdateWishRequest {
26
26
  */
27
27
  export declare class ManageWishApi extends BaseAPI {
28
28
  /**
29
+ * Wish cannot be created without referrer type, if you dont have a referrer set referrer type to MANUAL
29
30
  * Create wish line from scratch
30
31
  */
31
32
  createWishRaw(requestParameters: CreateWishRequest): Promise<ApiResponse<void>>;
32
33
  /**
34
+ * Wish cannot be created without referrer type, if you dont have a referrer set referrer type to MANUAL
33
35
  * Create wish line from scratch
34
36
  */
35
37
  createWish(requestParameters: CreateWishRequest): Promise<void>;
@@ -76,6 +76,7 @@ var ManageWishApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
+ * Wish cannot be created without referrer type, if you dont have a referrer set referrer type to MANUAL
79
80
  * Create wish line from scratch
80
81
  */
81
82
  ManageWishApi.prototype.createWishRaw = function (requestParameters) {
@@ -123,6 +124,7 @@ var ManageWishApi = /** @class */ (function (_super) {
123
124
  });
124
125
  };
125
126
  /**
127
+ * Wish cannot be created without referrer type, if you dont have a referrer set referrer type to MANUAL
126
128
  * Create wish line from scratch
127
129
  */
128
130
  ManageWishApi.prototype.createWish = function (requestParameters) {
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
- import { PaginatedWishes, Wish, WishStatus } from '../models';
13
+ import { PaginatedWishes, Wish, WishReferrerType, WishStatus } from '../models';
14
14
  export interface GetWishRequest {
15
15
  wishId: number;
16
16
  }
@@ -18,9 +18,13 @@ export interface GetWishesRequest {
18
18
  oEq?: number;
19
19
  oNeq?: number;
20
20
  pidEq?: number;
21
- stEq?: WishStatus;
22
- stNeq?: WishStatus;
21
+ stEq?: Array<WishStatus>;
22
+ stNeq?: Array<WishStatus>;
23
23
  q?: string;
24
+ referrerIdEq?: Array<number>;
25
+ referrerIdNeq?: Array<number>;
26
+ referrerTypeEq?: Array<WishReferrerType>;
27
+ referrerTypeNeq?: Array<WishReferrerType>;
24
28
  orderBy?: Array<GetWishesOrderByEnum>;
25
29
  p?: number;
26
30
  pp?: number;
@@ -167,15 +167,27 @@ var SearchWishApi = /** @class */ (function (_super) {
167
167
  if (requestParameters.pidEq !== undefined) {
168
168
  queryParameters['pid[eq]'] = requestParameters.pidEq;
169
169
  }
170
- if (requestParameters.stEq !== undefined) {
170
+ if (requestParameters.stEq) {
171
171
  queryParameters['st[eq]'] = requestParameters.stEq;
172
172
  }
173
- if (requestParameters.stNeq !== undefined) {
173
+ if (requestParameters.stNeq) {
174
174
  queryParameters['st[neq]'] = requestParameters.stNeq;
175
175
  }
176
176
  if (requestParameters.q !== undefined) {
177
177
  queryParameters['q'] = requestParameters.q;
178
178
  }
179
+ if (requestParameters.referrerIdEq) {
180
+ queryParameters['referrerId[eq]'] = requestParameters.referrerIdEq;
181
+ }
182
+ if (requestParameters.referrerIdNeq) {
183
+ queryParameters['referrerId[neq]'] = requestParameters.referrerIdNeq;
184
+ }
185
+ if (requestParameters.referrerTypeEq) {
186
+ queryParameters['referrerType[eq]'] = requestParameters.referrerTypeEq;
187
+ }
188
+ if (requestParameters.referrerTypeNeq) {
189
+ queryParameters['referrerType[neq]'] = requestParameters.referrerTypeNeq;
190
+ }
179
191
  if (requestParameters.orderBy) {
180
192
  queryParameters['orderBy'] = requestParameters.orderBy;
181
193
  }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
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 { WishReferrerType } from './WishReferrerType';
13
+ /**
14
+ * Referrer Id link to the wish
15
+ * @export
16
+ * @interface Referrer
17
+ */
18
+ export interface Referrer {
19
+ /**
20
+ * Referrer Id (nullable only if the type is MANUAL)
21
+ * @type {number}
22
+ * @memberof Referrer
23
+ */
24
+ id?: number | null;
25
+ /**
26
+ *
27
+ * @type {WishReferrerType}
28
+ * @memberof Referrer
29
+ */
30
+ type?: WishReferrerType;
31
+ }
32
+ export declare function ReferrerFromJSON(json: any): Referrer;
33
+ export declare function ReferrerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Referrer;
34
+ export declare function ReferrerToJSON(value?: Referrer | null): any;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
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.ReferrerToJSON = exports.ReferrerFromJSONTyped = exports.ReferrerFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var WishReferrerType_1 = require("./WishReferrerType");
19
+ function ReferrerFromJSON(json) {
20
+ return ReferrerFromJSONTyped(json, false);
21
+ }
22
+ exports.ReferrerFromJSON = ReferrerFromJSON;
23
+ function ReferrerFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'id': !(0, runtime_1.exists)(json, 'id') ? json['id'] : json['id'],
29
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : (0, WishReferrerType_1.WishReferrerTypeFromJSON)(json['type']),
30
+ };
31
+ }
32
+ exports.ReferrerFromJSONTyped = ReferrerFromJSONTyped;
33
+ function ReferrerToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'id': value.id,
42
+ 'type': (0, WishReferrerType_1.WishReferrerTypeToJSON)(value.type),
43
+ };
44
+ }
45
+ exports.ReferrerToJSON = ReferrerToJSON;
@@ -12,6 +12,7 @@
12
12
  import { DesiredSellerLink } from './DesiredSellerLink';
13
13
  import { OwnerLink } from './OwnerLink';
14
14
  import { ProductLink } from './ProductLink';
15
+ import { Referrer } from './Referrer';
15
16
  /**
16
17
  *
17
18
  * @export
@@ -60,6 +61,24 @@ export interface Wish {
60
61
  * @memberof Wish
61
62
  */
62
63
  status?: string;
64
+ /**
65
+ *
66
+ * @type {Referrer}
67
+ * @memberof Wish
68
+ */
69
+ referrer?: Referrer;
70
+ /**
71
+ * Delay in minutes between two email notification
72
+ * @type {number}
73
+ * @memberof Wish
74
+ */
75
+ throttleDelay?: number;
76
+ /**
77
+ * Last date of sent email of this wish (RFC 3339, section 5.6)
78
+ * @type {Date}
79
+ * @memberof Wish
80
+ */
81
+ lastTrigger?: Date;
63
82
  /**
64
83
  * Create date of this wish
65
84
  * @type {Date}
@@ -18,6 +18,7 @@ var runtime_1 = require("../runtime");
18
18
  var DesiredSellerLink_1 = require("./DesiredSellerLink");
19
19
  var OwnerLink_1 = require("./OwnerLink");
20
20
  var ProductLink_1 = require("./ProductLink");
21
+ var Referrer_1 = require("./Referrer");
21
22
  function WishFromJSON(json) {
22
23
  return WishFromJSONTyped(json, false);
23
24
  }
@@ -34,6 +35,9 @@ function WishFromJSONTyped(json, ignoreDiscriminator) {
34
35
  'rebate': !(0, runtime_1.exists)(json, 'rebate') ? undefined : json['rebate'],
35
36
  'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
36
37
  'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
38
+ 'referrer': !(0, runtime_1.exists)(json, 'referrer') ? undefined : (0, Referrer_1.ReferrerFromJSON)(json['referrer']),
39
+ 'throttleDelay': !(0, runtime_1.exists)(json, 'throttleDelay') ? undefined : json['throttleDelay'],
40
+ 'lastTrigger': !(0, runtime_1.exists)(json, 'lastTrigger') ? undefined : (new Date(json['lastTrigger'])),
37
41
  'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
38
42
  'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
39
43
  };
@@ -54,6 +58,9 @@ function WishToJSON(value) {
54
58
  'rebate': value.rebate,
55
59
  'quantity': value.quantity,
56
60
  'status': value.status,
61
+ 'referrer': (0, Referrer_1.ReferrerToJSON)(value.referrer),
62
+ 'throttleDelay': value.throttleDelay,
63
+ 'lastTrigger': value.lastTrigger === undefined ? undefined : ((0, runtime_1.toDateISOString)(value.lastTrigger)),
57
64
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
58
65
  'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
59
66
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { Referrer } from './Referrer';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -45,6 +46,18 @@ export interface WishCreationParameters {
45
46
  * @memberof WishCreationParameters
46
47
  */
47
48
  rebate: number;
49
+ /**
50
+ *
51
+ * @type {Referrer}
52
+ * @memberof WishCreationParameters
53
+ */
54
+ referrer: Referrer;
55
+ /**
56
+ * Delay in minutes between two email notification
57
+ * @type {number}
58
+ * @memberof WishCreationParameters
59
+ */
60
+ throttleDelay?: number;
48
61
  }
49
62
  export declare function WishCreationParametersFromJSON(json: any): WishCreationParameters;
50
63
  export declare function WishCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishCreationParameters;
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.WishCreationParametersToJSON = exports.WishCreationParametersFromJSONTyped = exports.WishCreationParametersFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var Referrer_1 = require("./Referrer");
18
19
  function WishCreationParametersFromJSON(json) {
19
20
  return WishCreationParametersFromJSONTyped(json, false);
20
21
  }
@@ -29,6 +30,8 @@ function WishCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
29
30
  'ownerId': !(0, runtime_1.exists)(json, 'ownerId') ? undefined : json['ownerId'],
30
31
  'desiredSellerId': !(0, runtime_1.exists)(json, 'desiredSellerId') ? json['desiredSellerId'] : json['desiredSellerId'],
31
32
  'rebate': json['rebate'],
33
+ 'referrer': (0, Referrer_1.ReferrerFromJSON)(json['referrer']),
34
+ 'throttleDelay': !(0, runtime_1.exists)(json, 'throttleDelay') ? undefined : json['throttleDelay'],
32
35
  };
33
36
  }
34
37
  exports.WishCreationParametersFromJSONTyped = WishCreationParametersFromJSONTyped;
@@ -45,6 +48,8 @@ function WishCreationParametersToJSON(value) {
45
48
  'ownerId': value.ownerId,
46
49
  'desiredSellerId': value.desiredSellerId,
47
50
  'rebate': value.rebate,
51
+ 'referrer': (0, Referrer_1.ReferrerToJSON)(value.referrer),
52
+ 'throttleDelay': value.throttleDelay,
48
53
  };
49
54
  }
50
55
  exports.WishCreationParametersToJSON = WishCreationParametersToJSON;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
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
+ * Referrer type
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum WishReferrerType {
18
+ MANUAL = "MANUAL",
19
+ FAVORITE = "FAVORITE"
20
+ }
21
+ export declare function WishReferrerTypeFromJSON(json: any): WishReferrerType;
22
+ export declare function WishReferrerTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishReferrerType;
23
+ export declare function WishReferrerTypeToJSON(value?: WishReferrerType | null): any;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
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.WishReferrerTypeToJSON = exports.WishReferrerTypeFromJSONTyped = exports.WishReferrerTypeFromJSON = exports.WishReferrerType = void 0;
17
+ /**
18
+ * Referrer type
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var WishReferrerType;
23
+ (function (WishReferrerType) {
24
+ WishReferrerType["MANUAL"] = "MANUAL";
25
+ WishReferrerType["FAVORITE"] = "FAVORITE";
26
+ })(WishReferrerType = exports.WishReferrerType || (exports.WishReferrerType = {}));
27
+ function WishReferrerTypeFromJSON(json) {
28
+ return WishReferrerTypeFromJSONTyped(json, false);
29
+ }
30
+ exports.WishReferrerTypeFromJSON = WishReferrerTypeFromJSON;
31
+ function WishReferrerTypeFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.WishReferrerTypeFromJSONTyped = WishReferrerTypeFromJSONTyped;
35
+ function WishReferrerTypeToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.WishReferrerTypeToJSON = WishReferrerTypeToJSON;
@@ -40,6 +40,12 @@ export interface WishUpdateParameters {
40
40
  * @memberof WishUpdateParameters
41
41
  */
42
42
  status?: WishStatus;
43
+ /**
44
+ * Delay in minutes between two email notification
45
+ * @type {number}
46
+ * @memberof WishUpdateParameters
47
+ */
48
+ throttleDelay?: number;
43
49
  }
44
50
  export declare function WishUpdateParametersFromJSON(json: any): WishUpdateParameters;
45
51
  export declare function WishUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishUpdateParameters;
@@ -29,6 +29,7 @@ function WishUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'desiredSellerId': !(0, runtime_1.exists)(json, 'desiredSellerId') ? json['desiredSellerId'] : json['desiredSellerId'],
30
30
  'rebate': !(0, runtime_1.exists)(json, 'rebate') ? undefined : json['rebate'],
31
31
  'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, WishStatus_1.WishStatusFromJSON)(json['status']),
32
+ 'throttleDelay': !(0, runtime_1.exists)(json, 'throttleDelay') ? undefined : json['throttleDelay'],
32
33
  };
33
34
  }
34
35
  exports.WishUpdateParametersFromJSONTyped = WishUpdateParametersFromJSONTyped;
@@ -44,6 +45,7 @@ function WishUpdateParametersToJSON(value) {
44
45
  'desiredSellerId': value.desiredSellerId,
45
46
  'rebate': value.rebate,
46
47
  'status': (0, WishStatus_1.WishStatusToJSON)(value.status),
48
+ 'throttleDelay': value.throttleDelay,
47
49
  };
48
50
  }
49
51
  exports.WishUpdateParametersToJSON = WishUpdateParametersToJSON;
@@ -14,8 +14,10 @@ export * from './PagingMetadata';
14
14
  export * from './ProductEnthusiasm';
15
15
  export * from './ProductLink';
16
16
  export * from './ProductLinkAllOf';
17
+ export * from './Referrer';
17
18
  export * from './RestError';
18
19
  export * from './Wish';
19
20
  export * from './WishCreationParameters';
21
+ export * from './WishReferrerType';
20
22
  export * from './WishStatus';
21
23
  export * from './WishUpdateParameters';
@@ -30,8 +30,10 @@ __exportStar(require("./PagingMetadata"), exports);
30
30
  __exportStar(require("./ProductEnthusiasm"), exports);
31
31
  __exportStar(require("./ProductLink"), exports);
32
32
  __exportStar(require("./ProductLinkAllOf"), exports);
33
+ __exportStar(require("./Referrer"), exports);
33
34
  __exportStar(require("./RestError"), exports);
34
35
  __exportStar(require("./Wish"), exports);
35
36
  __exportStar(require("./WishCreationParameters"), exports);
37
+ __exportStar(require("./WishReferrerType"), exports);
36
38
  __exportStar(require("./WishStatus"), exports);
37
39
  __exportStar(require("./WishUpdateParameters"), exports);