@lcdp/api-react-rest-client 2.1.4-LDS-3044-cdc-monolith-creation-des-cdc.5079814049 → 2.1.4-develop.5077369717

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 (57) hide show
  1. package/banking-operation/src/models/OrderPaymentWallets.d.ts +2 -2
  2. package/invoice/src/models/Invoice.d.ts +2 -2
  3. package/package.json +1 -1
  4. package/product/src/apis/SearchProductMetadataApi.d.ts +0 -22
  5. package/product/src/apis/SearchProductMetadataApi.js +8 -154
  6. package/recommendation/src/models/FavoriteProductRecommendation.d.ts +2 -2
  7. package/recommendation/src/models/ProductRecommendation.d.ts +2 -2
  8. package/catalog/index.d.ts +0 -1
  9. package/catalog/index.js +0 -17
  10. package/catalog/src/apis/ManageProductInsightApi.d.ts +0 -54
  11. package/catalog/src/apis/ManageProductInsightApi.js +0 -295
  12. package/catalog/src/apis/SearchProductInsightApi.d.ts +0 -53
  13. package/catalog/src/apis/SearchProductInsightApi.js +0 -246
  14. package/catalog/src/apis/index.d.ts +0 -2
  15. package/catalog/src/apis/index.js +0 -18
  16. package/catalog/src/index.d.ts +0 -3
  17. package/catalog/src/index.js +0 -19
  18. package/catalog/src/models/Barcodes.d.ts +0 -45
  19. package/catalog/src/models/Barcodes.js +0 -48
  20. package/catalog/src/models/HttpLink.d.ts +0 -27
  21. package/catalog/src/models/HttpLink.js +0 -41
  22. package/catalog/src/models/LaboratoryLink.d.ts +0 -34
  23. package/catalog/src/models/LaboratoryLink.js +0 -50
  24. package/catalog/src/models/LaboratoryLinkAllOf.d.ts +0 -33
  25. package/catalog/src/models/LaboratoryLinkAllOf.js +0 -44
  26. package/catalog/src/models/PaginatedObject.d.ts +0 -28
  27. package/catalog/src/models/PaginatedObject.js +0 -42
  28. package/catalog/src/models/PaginatedProductInsights.d.ts +0 -29
  29. package/catalog/src/models/PaginatedProductInsights.js +0 -50
  30. package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +0 -28
  31. package/catalog/src/models/PaginatedProductInsightsAllOf.js +0 -42
  32. package/catalog/src/models/PagingMetadata.d.ts +0 -45
  33. package/catalog/src/models/PagingMetadata.js +0 -47
  34. package/catalog/src/models/ProductInsight.d.ts +0 -99
  35. package/catalog/src/models/ProductInsight.js +0 -69
  36. package/catalog/src/models/ProductInsightCreationOrUpdateParameters.d.ts +0 -82
  37. package/catalog/src/models/ProductInsightCreationOrUpdateParameters.js +0 -61
  38. package/catalog/src/models/ProductInsightJournal.d.ts +0 -33
  39. package/catalog/src/models/ProductInsightJournal.js +0 -43
  40. package/catalog/src/models/ProductSecondaryTypeLink.d.ts +0 -34
  41. package/catalog/src/models/ProductSecondaryTypeLink.js +0 -50
  42. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +0 -33
  43. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +0 -44
  44. package/catalog/src/models/ProductTypeLink.d.ts +0 -34
  45. package/catalog/src/models/ProductTypeLink.js +0 -50
  46. package/catalog/src/models/ProductTypeLinkAllOf.d.ts +0 -33
  47. package/catalog/src/models/ProductTypeLinkAllOf.js +0 -44
  48. package/catalog/src/models/RestError.d.ts +0 -85
  49. package/catalog/src/models/RestError.js +0 -97
  50. package/catalog/src/models/VatLink.d.ts +0 -40
  51. package/catalog/src/models/VatLink.js +0 -50
  52. package/catalog/src/models/VatLinkAllOf.d.ts +0 -39
  53. package/catalog/src/models/VatLinkAllOf.js +0 -46
  54. package/catalog/src/models/index.d.ts +0 -18
  55. package/catalog/src/models/index.js +0 -34
  56. package/catalog/src/runtime.d.ts +0 -149
  57. package/catalog/src/runtime.js +0 -480
@@ -17,13 +17,13 @@ import { Wallet } from './Wallet';
17
17
  */
18
18
  export interface OrderPaymentWallets {
19
19
  /**
20
- * Wallet used by the buyer for this order
20
+ *
21
21
  * @type {Wallet}
22
22
  * @memberof OrderPaymentWallets
23
23
  */
24
24
  buyer?: Wallet | null;
25
25
  /**
26
- * Wallet used by the seller for this order
26
+ *
27
27
  * @type {Wallet}
28
28
  * @memberof OrderPaymentWallets
29
29
  */
@@ -12,7 +12,7 @@
12
12
  import { InvoiceType } from './InvoiceType';
13
13
  import { UserLink } from './UserLink';
14
14
  /**
15
- *
15
+ * Note: There is currently no owner for invoice type \'EXTERNAL\'.
16
16
  * @export
17
17
  * @interface Invoice
18
18
  */
@@ -30,7 +30,7 @@ export interface Invoice {
30
30
  */
31
31
  reference: string;
32
32
  /**
33
- * Note: There is currently no owner for invoice type \'EXTERNAL\'.
33
+ *
34
34
  * @type {UserLink}
35
35
  * @memberof Invoice
36
36
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.1.4-LDS-3044-cdc-monolith-creation-des-cdc.5079814049",
3
+ "version": "2.1.4-develop.5077369717",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -11,24 +11,10 @@
11
11
  */
12
12
  import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
13
  import { ProductSecondaryType, ProductType } from '../models';
14
- export interface GetProductSecondaryTypeRequest {
15
- secondaryTypeId: string;
16
- }
17
- export interface GetProductTypeRequest {
18
- typeId: string;
19
- }
20
14
  /**
21
15
  * no description
22
16
  */
23
17
  export declare class SearchProductMetadataApi extends BaseAPI {
24
- /**
25
- * Get product secondary type
26
- */
27
- getProductSecondaryTypeRaw(requestParameters: GetProductSecondaryTypeRequest): Promise<ApiResponse<ProductSecondaryType | BlobWithMeta>>;
28
- /**
29
- * Get product secondary type
30
- */
31
- getProductSecondaryType(requestParameters: GetProductSecondaryTypeRequest): Promise<ProductSecondaryType | BlobWithMeta>;
32
18
  /**
33
19
  * Get product secondary types
34
20
  */
@@ -37,14 +23,6 @@ export declare class SearchProductMetadataApi extends BaseAPI {
37
23
  * Get product secondary types
38
24
  */
39
25
  getProductSecondaryTypes(): Promise<Array<ProductSecondaryType> | BlobWithMeta>;
40
- /**
41
- * Get product type
42
- */
43
- getProductTypeRaw(requestParameters: GetProductTypeRequest): Promise<ApiResponse<ProductType | BlobWithMeta>>;
44
- /**
45
- * Get product type
46
- */
47
- getProductType(requestParameters: GetProductTypeRequest): Promise<ProductType | BlobWithMeta>;
48
26
  /**
49
27
  * Get product types
50
28
  */
@@ -75,85 +75,12 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
75
75
  function SearchProductMetadataApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
- /**
79
- * Get product secondary type
80
- */
81
- SearchProductMetadataApi.prototype.getProductSecondaryTypeRaw = 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.secondaryTypeId === null || requestParameters.secondaryTypeId === undefined) {
88
- throw new runtime_1.RequiredError('secondaryTypeId', 'Required parameter requestParameters.secondaryTypeId was null or undefined when calling getProductSecondaryType.');
89
- }
90
- queryParameters = {};
91
- headerParameters = {};
92
- if (this.configuration && this.configuration.apiKey) {
93
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
94
- }
95
- if (this.configuration && this.configuration.accessToken) {
96
- token = this.configuration.accessToken;
97
- tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
98
- if (tokenString) {
99
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
100
- }
101
- }
102
- _a.label = 1;
103
- case 1:
104
- _a.trys.push([1, 3, , 4]);
105
- return [4 /*yield*/, this.request({
106
- path: "/products/secondary-type/{secondaryTypeId}".replace("{".concat("secondaryTypeId", "}"), encodeURIComponent(String(requestParameters.secondaryTypeId))),
107
- method: 'GET',
108
- headers: headerParameters,
109
- query: queryParameters,
110
- })];
111
- case 2:
112
- response = _a.sent();
113
- contentType = response.headers.get("content-type");
114
- if (contentType && contentType.indexOf("application/json") !== -1) {
115
- return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProductSecondaryTypeFromJSON)(jsonValue); })];
116
- }
117
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
118
- return [2 /*return*/, new runtime_1.TextApiResponse(response)];
119
- }
120
- else {
121
- // TODO : Better handling of others application types
122
- return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
123
- }
124
- return [3 /*break*/, 4];
125
- case 3:
126
- response_1 = _a.sent();
127
- console.debug(response_1);
128
- throw response_1;
129
- case 4: return [2 /*return*/];
130
- }
131
- });
132
- });
133
- };
134
- /**
135
- * Get product secondary type
136
- */
137
- SearchProductMetadataApi.prototype.getProductSecondaryType = function (requestParameters) {
138
- return __awaiter(this, void 0, void 0, function () {
139
- var response;
140
- return __generator(this, function (_a) {
141
- switch (_a.label) {
142
- case 0: return [4 /*yield*/, this.getProductSecondaryTypeRaw(requestParameters)];
143
- case 1:
144
- response = _a.sent();
145
- return [4 /*yield*/, response.value()];
146
- case 2: return [2 /*return*/, _a.sent()];
147
- }
148
- });
149
- });
150
- };
151
78
  /**
152
79
  * Get product secondary types
153
80
  */
154
81
  SearchProductMetadataApi.prototype.getProductSecondaryTypesRaw = function () {
155
82
  return __awaiter(this, void 0, void 0, function () {
156
- var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
83
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
157
84
  return __generator(this, function (_a) {
158
85
  switch (_a.label) {
159
86
  case 0:
@@ -193,9 +120,9 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
193
120
  }
194
121
  return [3 /*break*/, 4];
195
122
  case 3:
196
- response_2 = _a.sent();
197
- console.debug(response_2);
198
- throw response_2;
123
+ response_1 = _a.sent();
124
+ console.debug(response_1);
125
+ throw response_1;
199
126
  case 4: return [2 /*return*/];
200
127
  }
201
128
  });
@@ -218,85 +145,12 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
218
145
  });
219
146
  });
220
147
  };
221
- /**
222
- * Get product type
223
- */
224
- SearchProductMetadataApi.prototype.getProductTypeRaw = function (requestParameters) {
225
- return __awaiter(this, void 0, void 0, function () {
226
- var queryParameters, headerParameters, token, tokenString, response, contentType, response_3;
227
- return __generator(this, function (_a) {
228
- switch (_a.label) {
229
- case 0:
230
- if (requestParameters.typeId === null || requestParameters.typeId === undefined) {
231
- throw new runtime_1.RequiredError('typeId', 'Required parameter requestParameters.typeId was null or undefined when calling getProductType.');
232
- }
233
- queryParameters = {};
234
- headerParameters = {};
235
- if (this.configuration && this.configuration.apiKey) {
236
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
237
- }
238
- if (this.configuration && this.configuration.accessToken) {
239
- token = this.configuration.accessToken;
240
- tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
241
- if (tokenString) {
242
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
243
- }
244
- }
245
- _a.label = 1;
246
- case 1:
247
- _a.trys.push([1, 3, , 4]);
248
- return [4 /*yield*/, this.request({
249
- path: "/products/type/{typeId}".replace("{".concat("typeId", "}"), encodeURIComponent(String(requestParameters.typeId))),
250
- method: 'GET',
251
- headers: headerParameters,
252
- query: queryParameters,
253
- })];
254
- case 2:
255
- response = _a.sent();
256
- contentType = response.headers.get("content-type");
257
- if (contentType && contentType.indexOf("application/json") !== -1) {
258
- return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProductTypeFromJSON)(jsonValue); })];
259
- }
260
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
261
- return [2 /*return*/, new runtime_1.TextApiResponse(response)];
262
- }
263
- else {
264
- // TODO : Better handling of others application types
265
- return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
266
- }
267
- return [3 /*break*/, 4];
268
- case 3:
269
- response_3 = _a.sent();
270
- console.debug(response_3);
271
- throw response_3;
272
- case 4: return [2 /*return*/];
273
- }
274
- });
275
- });
276
- };
277
- /**
278
- * Get product type
279
- */
280
- SearchProductMetadataApi.prototype.getProductType = function (requestParameters) {
281
- return __awaiter(this, void 0, void 0, function () {
282
- var response;
283
- return __generator(this, function (_a) {
284
- switch (_a.label) {
285
- case 0: return [4 /*yield*/, this.getProductTypeRaw(requestParameters)];
286
- case 1:
287
- response = _a.sent();
288
- return [4 /*yield*/, response.value()];
289
- case 2: return [2 /*return*/, _a.sent()];
290
- }
291
- });
292
- });
293
- };
294
148
  /**
295
149
  * Get product types
296
150
  */
297
151
  SearchProductMetadataApi.prototype.getProductTypesRaw = function () {
298
152
  return __awaiter(this, void 0, void 0, function () {
299
- var queryParameters, headerParameters, token, tokenString, response, contentType, response_4;
153
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
300
154
  return __generator(this, function (_a) {
301
155
  switch (_a.label) {
302
156
  case 0:
@@ -336,9 +190,9 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
336
190
  }
337
191
  return [3 /*break*/, 4];
338
192
  case 3:
339
- response_4 = _a.sent();
340
- console.debug(response_4);
341
- throw response_4;
193
+ response_2 = _a.sent();
194
+ console.debug(response_2);
195
+ throw response_2;
342
196
  case 4: return [2 /*return*/];
343
197
  }
344
198
  });
@@ -12,7 +12,7 @@
12
12
  import { ProductLink } from './ProductLink';
13
13
  import { UserLink } from './UserLink';
14
14
  /**
15
- *
15
+ * If user is null : the recommendation is a default recommendation if user is not null : the recommendation is personnalized for the user
16
16
  * @export
17
17
  * @interface FavoriteProductRecommendation
18
18
  */
@@ -24,7 +24,7 @@ export interface FavoriteProductRecommendation {
24
24
  */
25
25
  id: string;
26
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
27
+ *
28
28
  * @type {UserLink}
29
29
  * @memberof FavoriteProductRecommendation
30
30
  */
@@ -12,7 +12,7 @@
12
12
  import { ProductLink } from './ProductLink';
13
13
  import { UserLink } from './UserLink';
14
14
  /**
15
- *
15
+ * If user is null : the recommendation is a default recommendation if user is not null : the recommendation is personnalized for the user
16
16
  * @export
17
17
  * @interface ProductRecommendation
18
18
  */
@@ -24,7 +24,7 @@ export interface ProductRecommendation {
24
24
  */
25
25
  id: string;
26
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
27
+ *
28
28
  * @type {UserLink}
29
29
  * @memberof ProductRecommendation
30
30
  */
@@ -1 +0,0 @@
1
- export * from './src';
package/catalog/index.js DELETED
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src"), exports);
@@ -1,54 +0,0 @@
1
- /**
2
- * lcdp-catalog
3
- * This is the REST API of LCDP catalog
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 { ProductInsight, ProductInsightCreationOrUpdateParameters } from '../models';
14
- export interface CreateProductInsightRequest {
15
- productInsightCreationOrUpdateParameters: ProductInsightCreationOrUpdateParameters;
16
- }
17
- export interface DeleteProductInsightRequest {
18
- productInsightId: number;
19
- }
20
- export interface UpdateProductInsightRequest {
21
- productInsightId: number;
22
- productInsightCreationOrUpdateParameters: ProductInsightCreationOrUpdateParameters;
23
- }
24
- /**
25
- * no description
26
- */
27
- export declare class ManageProductInsightApi extends BaseAPI {
28
- /**
29
- * Create a new product insight.
30
- * Create a new product insight
31
- */
32
- createProductInsightRaw(requestParameters: CreateProductInsightRequest): Promise<ApiResponse<ProductInsight | BlobWithMeta>>;
33
- /**
34
- * Create a new product insight.
35
- * Create a new product insight
36
- */
37
- createProductInsight(requestParameters: CreateProductInsightRequest): Promise<ProductInsight | BlobWithMeta>;
38
- /**
39
- * Delete product insight
40
- */
41
- deleteProductInsightRaw(requestParameters: DeleteProductInsightRequest): Promise<ApiResponse<void>>;
42
- /**
43
- * Delete product insight
44
- */
45
- deleteProductInsight(requestParameters: DeleteProductInsightRequest): Promise<void>;
46
- /**
47
- * Update product insight
48
- */
49
- updateProductInsightRaw(requestParameters: UpdateProductInsightRequest): Promise<ApiResponse<ProductInsight | BlobWithMeta>>;
50
- /**
51
- * Update product insight
52
- */
53
- updateProductInsight(requestParameters: UpdateProductInsightRequest): Promise<ProductInsight | BlobWithMeta>;
54
- }