@lcdp/api-react-rest-client 1.0.0-react-codegen.2753 → 1.1.1-LDS-2733-fix-concurrency-in-lcdp-sdk.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 (99) hide show
  1. package/auth/src/runtime.d.ts +3 -1
  2. package/auth/src/runtime.js +13 -3
  3. package/banking-operation/src/runtime.d.ts +3 -1
  4. package/banking-operation/src/runtime.js +13 -3
  5. package/challenge/src/runtime.d.ts +3 -1
  6. package/challenge/src/runtime.js +13 -3
  7. package/configuration/src/runtime.d.ts +3 -1
  8. package/configuration/src/runtime.js +13 -3
  9. package/content/src/runtime.d.ts +3 -1
  10. package/content/src/runtime.js +13 -3
  11. package/factory/src/runtime.d.ts +3 -1
  12. package/factory/src/runtime.js +13 -3
  13. package/favorite/src/runtime.d.ts +3 -1
  14. package/favorite/src/runtime.js +13 -3
  15. package/geo/src/runtime.d.ts +3 -1
  16. package/geo/src/runtime.js +13 -3
  17. package/inventory/src/runtime.d.ts +3 -1
  18. package/inventory/src/runtime.js +13 -3
  19. package/invoice/src/models/InvoiceType.d.ts +1 -0
  20. package/invoice/src/models/InvoiceType.js +1 -0
  21. package/invoice/src/runtime.d.ts +3 -1
  22. package/invoice/src/runtime.js +13 -3
  23. package/laboratory/src/runtime.d.ts +3 -1
  24. package/laboratory/src/runtime.js +13 -3
  25. package/laboratory-store/src/models/ImageVersions.d.ts +5 -5
  26. package/laboratory-store/src/runtime.d.ts +3 -1
  27. package/laboratory-store/src/runtime.js +13 -3
  28. package/laboratory-store-log/src/runtime.d.ts +3 -1
  29. package/laboratory-store-log/src/runtime.js +13 -3
  30. package/lexicon/src/runtime.d.ts +3 -1
  31. package/lexicon/src/runtime.js +13 -3
  32. package/litigation/src/runtime.d.ts +3 -1
  33. package/litigation/src/runtime.js +13 -3
  34. package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +6 -0
  35. package/magic-cart/src/models/ExpressOrderCreationParameters.js +2 -0
  36. package/magic-cart/src/runtime.d.ts +3 -1
  37. package/magic-cart/src/runtime.js +13 -3
  38. package/mandate/src/runtime.d.ts +3 -1
  39. package/mandate/src/runtime.js +13 -3
  40. package/mangopay-hook/src/runtime.d.ts +3 -1
  41. package/mangopay-hook/src/runtime.js +13 -3
  42. package/message/src/runtime.d.ts +3 -1
  43. package/message/src/runtime.js +13 -3
  44. package/notification/src/runtime.d.ts +3 -1
  45. package/notification/src/runtime.js +13 -3
  46. package/order/src/runtime.d.ts +3 -1
  47. package/order/src/runtime.js +13 -3
  48. package/order-log/src/runtime.d.ts +3 -1
  49. package/order-log/src/runtime.js +13 -3
  50. package/outrage-message/src/runtime.d.ts +3 -1
  51. package/outrage-message/src/runtime.js +13 -3
  52. package/package.json +7 -1
  53. package/product/src/models/ImageVersions.d.ts +5 -5
  54. package/product/src/runtime.d.ts +3 -1
  55. package/product/src/runtime.js +13 -3
  56. package/pub/src/models/ImageVersions.d.ts +5 -5
  57. package/pub/src/models/PubLocationEnum.d.ts +3 -1
  58. package/pub/src/models/PubLocationEnum.js +2 -0
  59. package/pub/src/runtime.d.ts +3 -1
  60. package/pub/src/runtime.js +13 -3
  61. package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.d.ts +47 -0
  62. package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.js +184 -0
  63. package/recommendation/src/apis/index.d.ts +1 -0
  64. package/recommendation/src/apis/index.js +1 -0
  65. package/recommendation/src/models/FavoriteProductRecommendation.d.ts +53 -0
  66. package/recommendation/src/models/FavoriteProductRecommendation.js +52 -0
  67. package/recommendation/src/models/PaginatedFavoriteProductRecommendations.d.ts +29 -0
  68. package/recommendation/src/models/PaginatedFavoriteProductRecommendations.js +50 -0
  69. package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.d.ts +28 -0
  70. package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.js +42 -0
  71. package/recommendation/src/models/index.d.ts +3 -0
  72. package/recommendation/src/models/index.js +3 -0
  73. package/recommendation/src/runtime.d.ts +3 -1
  74. package/recommendation/src/runtime.js +13 -3
  75. package/rfx/src/runtime.d.ts +3 -1
  76. package/rfx/src/runtime.js +13 -3
  77. package/sale-offer/src/models/ImageVersions.d.ts +5 -5
  78. package/sale-offer/src/runtime.d.ts +3 -1
  79. package/sale-offer/src/runtime.js +13 -3
  80. package/sale-offer-log/src/runtime.d.ts +3 -1
  81. package/sale-offer-log/src/runtime.js +13 -3
  82. package/servant/src/runtime.d.ts +3 -1
  83. package/servant/src/runtime.js +13 -3
  84. package/shipment/src/runtime.d.ts +3 -1
  85. package/shipment/src/runtime.js +13 -3
  86. package/shopping-cart/src/runtime.d.ts +3 -1
  87. package/shopping-cart/src/runtime.js +13 -3
  88. package/statistic/src/runtime.d.ts +3 -1
  89. package/statistic/src/runtime.js +13 -3
  90. package/subscription/src/runtime.d.ts +3 -1
  91. package/subscription/src/runtime.js +13 -3
  92. package/thread/src/runtime.d.ts +3 -1
  93. package/thread/src/runtime.js +13 -3
  94. package/ubo/src/runtime.d.ts +3 -1
  95. package/ubo/src/runtime.js +13 -3
  96. package/user/src/runtime.d.ts +3 -1
  97. package/user/src/runtime.js +13 -3
  98. package/wish/src/runtime.d.ts +3 -1
  99. package/wish/src/runtime.js +13 -3
@@ -0,0 +1,184 @@
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.productEq) {
95
+ queryParameters['product[eq]'] = requestParameters.productEq;
96
+ }
97
+ if (requestParameters.productNeq) {
98
+ queryParameters['product[neq]'] = requestParameters.productNeq;
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["PRODUCTNAMEasc"] = "PRODUCT_NAME:asc";
181
+ GetFavoriteProductRecommendationsOrderByEnum["PRODUCTNAMEdesc"] = "PRODUCT_NAME:desc";
182
+ GetFavoriteProductRecommendationsOrderByEnum["CREATEDATasc"] = "CREATED_AT:asc";
183
+ GetFavoriteProductRecommendationsOrderByEnum["CREATEDATdesc"] = "CREATED_AT:desc";
184
+ })(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 between 0 and 1 who determine how much relevant the recommendation is. 1 : Best recommendation 0 : Not the best recommendation
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);
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export declare const BASE_PATH: string;
12
+ export declare const BASE_PATH = "/api/v1";
13
13
  /**
14
14
  * This is the base class for all generated API classes.
15
15
  */
@@ -52,6 +52,7 @@ export interface ConfigurationParameters {
52
52
  accessToken?: string | ((name?: string, scopes?: string[]) => string);
53
53
  headers?: HTTPHeaders;
54
54
  credentials?: RequestCredentials;
55
+ referrerPolicy?: ReferrerPolicy;
55
56
  }
56
57
  export declare class Configuration {
57
58
  private configuration;
@@ -66,6 +67,7 @@ export declare class Configuration {
66
67
  get accessToken(): ((name: string, scopes?: string[]) => string) | undefined;
67
68
  get headers(): HTTPHeaders | undefined;
68
69
  get credentials(): RequestCredentials | undefined;
70
+ get referrerPolicy(): ReferrerPolicy | undefined;
69
71
  }
70
72
  export declare type Json = any;
71
73
  export declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
@@ -76,7 +76,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
76
76
  };
77
77
  Object.defineProperty(exports, "__esModule", { value: true });
78
78
  exports.TextApiResponse = exports.BlobWithMetaApiResponse = exports.instanceOfBlobWithMeta = exports.VoidApiResponse = exports.JSONApiResponse = exports.toDateISOString = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.Configuration = exports.COLLECTION_FORMATS = exports.RequiredError = exports.BaseAPI = exports.BASE_PATH = void 0;
79
- exports.BASE_PATH = "https://www.lcdp.ovh/api/v1".replace(/\/+$/, "");
79
+ exports.BASE_PATH = "/api/v1";
80
80
  var isBlob = function (value) { return typeof Blob !== 'undefined' && value instanceof Blob; };
81
81
  /**
82
82
  * This is the base class for all generated API classes.
@@ -193,7 +193,8 @@ var BaseAPI = /** @class */ (function () {
193
193
  method: context.method,
194
194
  headers: headers,
195
195
  body: body,
196
- credentials: this.configuration.credentials
196
+ credentials: this.configuration.credentials,
197
+ referrerPolicy: this.configuration.referrerPolicy,
197
198
  };
198
199
  return { url: url, init: init };
199
200
  };
@@ -306,7 +307,16 @@ var Configuration = /** @class */ (function () {
306
307
  });
307
308
  Object.defineProperty(Configuration.prototype, "credentials", {
308
309
  get: function () {
309
- return this.configuration.credentials;
310
+ var _a;
311
+ return (_a = this.configuration.credentials) !== null && _a !== void 0 ? _a : "omit";
312
+ },
313
+ enumerable: false,
314
+ configurable: true
315
+ });
316
+ Object.defineProperty(Configuration.prototype, "referrerPolicy", {
317
+ get: function () {
318
+ var _a;
319
+ return (_a = this.configuration.referrerPolicy) !== null && _a !== void 0 ? _a : "origin";
310
320
  },
311
321
  enumerable: false,
312
322
  configurable: true
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export declare const BASE_PATH: string;
12
+ export declare const BASE_PATH = "/api/v1";
13
13
  /**
14
14
  * This is the base class for all generated API classes.
15
15
  */
@@ -52,6 +52,7 @@ export interface ConfigurationParameters {
52
52
  accessToken?: string | ((name?: string, scopes?: string[]) => string);
53
53
  headers?: HTTPHeaders;
54
54
  credentials?: RequestCredentials;
55
+ referrerPolicy?: ReferrerPolicy;
55
56
  }
56
57
  export declare class Configuration {
57
58
  private configuration;
@@ -66,6 +67,7 @@ export declare class Configuration {
66
67
  get accessToken(): ((name: string, scopes?: string[]) => string) | undefined;
67
68
  get headers(): HTTPHeaders | undefined;
68
69
  get credentials(): RequestCredentials | undefined;
70
+ get referrerPolicy(): ReferrerPolicy | undefined;
69
71
  }
70
72
  export declare type Json = any;
71
73
  export declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
@@ -76,7 +76,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
76
76
  };
77
77
  Object.defineProperty(exports, "__esModule", { value: true });
78
78
  exports.TextApiResponse = exports.BlobWithMetaApiResponse = exports.instanceOfBlobWithMeta = exports.VoidApiResponse = exports.JSONApiResponse = exports.toDateISOString = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.Configuration = exports.COLLECTION_FORMATS = exports.RequiredError = exports.BaseAPI = exports.BASE_PATH = void 0;
79
- exports.BASE_PATH = "https://www.lcdp.ovh/api/v1".replace(/\/+$/, "");
79
+ exports.BASE_PATH = "/api/v1";
80
80
  var isBlob = function (value) { return typeof Blob !== 'undefined' && value instanceof Blob; };
81
81
  /**
82
82
  * This is the base class for all generated API classes.
@@ -193,7 +193,8 @@ var BaseAPI = /** @class */ (function () {
193
193
  method: context.method,
194
194
  headers: headers,
195
195
  body: body,
196
- credentials: this.configuration.credentials
196
+ credentials: this.configuration.credentials,
197
+ referrerPolicy: this.configuration.referrerPolicy,
197
198
  };
198
199
  return { url: url, init: init };
199
200
  };
@@ -306,7 +307,16 @@ var Configuration = /** @class */ (function () {
306
307
  });
307
308
  Object.defineProperty(Configuration.prototype, "credentials", {
308
309
  get: function () {
309
- return this.configuration.credentials;
310
+ var _a;
311
+ return (_a = this.configuration.credentials) !== null && _a !== void 0 ? _a : "omit";
312
+ },
313
+ enumerable: false,
314
+ configurable: true
315
+ });
316
+ Object.defineProperty(Configuration.prototype, "referrerPolicy", {
317
+ get: function () {
318
+ var _a;
319
+ return (_a = this.configuration.referrerPolicy) !== null && _a !== void 0 ? _a : "origin";
310
320
  },
311
321
  enumerable: false,
312
322
  configurable: true
@@ -16,31 +16,31 @@
16
16
  */
17
17
  export interface ImageVersions {
18
18
  /**
19
- * URI to S3 file (width 100px, height computed with original image aspect ratio)
19
+ * URI to S3 file (width 128px, height computed with original image aspect ratio)
20
20
  * @type {string}
21
21
  * @memberof ImageVersions
22
22
  */
23
23
  xsmall?: string;
24
24
  /**
25
- * URI to S3 file (width 350px, height computed with original image aspect ratio)
25
+ * URI to S3 file (width 256px, height computed with original image aspect ratio)
26
26
  * @type {string}
27
27
  * @memberof ImageVersions
28
28
  */
29
29
  small?: string;
30
30
  /**
31
- * URI to S3 file (width 1024px, height computed with original image aspect ratio)
31
+ * URI to S3 file (width 512px, height computed with original image aspect ratio)
32
32
  * @type {string}
33
33
  * @memberof ImageVersions
34
34
  */
35
35
  medium?: string;
36
36
  /**
37
- * URI to S3 file (width 1920px, height computed with original image aspect ratio)
37
+ * URI to S3 file (width 1024px, height computed with original image aspect ratio)
38
38
  * @type {string}
39
39
  * @memberof ImageVersions
40
40
  */
41
41
  large?: string;
42
42
  /**
43
- * URI to S3 file (width 3840px, height computed with original image aspect ratio)
43
+ * URI to S3 file (width 2048px, height computed with original image aspect ratio)
44
44
  * @type {string}
45
45
  * @memberof ImageVersions
46
46
  */