@lcdp/api-react-rest-client 2.4.0-develop.5421336326 → 2.4.0-develop.5544937458

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 (80) hide show
  1. package/catalog/index.d.ts +1 -0
  2. package/catalog/index.js +17 -0
  3. package/catalog/src/apis/ManageProductInsightApi.d.ts +54 -0
  4. package/catalog/src/apis/ManageProductInsightApi.js +295 -0
  5. package/catalog/src/apis/SearchProductInsightApi.d.ts +53 -0
  6. package/catalog/src/apis/SearchProductInsightApi.js +246 -0
  7. package/catalog/src/apis/index.d.ts +2 -0
  8. package/catalog/src/apis/index.js +18 -0
  9. package/catalog/src/index.d.ts +3 -0
  10. package/catalog/src/index.js +19 -0
  11. package/catalog/src/models/Barcodes.d.ts +45 -0
  12. package/catalog/src/models/Barcodes.js +48 -0
  13. package/catalog/src/models/HttpLink.d.ts +27 -0
  14. package/catalog/src/models/HttpLink.js +41 -0
  15. package/catalog/src/models/LaboratoryLink.d.ts +34 -0
  16. package/catalog/src/models/LaboratoryLink.js +50 -0
  17. package/catalog/src/models/LaboratoryLinkAllOf.d.ts +33 -0
  18. package/catalog/src/models/LaboratoryLinkAllOf.js +44 -0
  19. package/catalog/src/models/PaginatedObject.d.ts +28 -0
  20. package/catalog/src/models/PaginatedObject.js +42 -0
  21. package/catalog/src/models/PaginatedProductInsights.d.ts +29 -0
  22. package/catalog/src/models/PaginatedProductInsights.js +50 -0
  23. package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +28 -0
  24. package/catalog/src/models/PaginatedProductInsightsAllOf.js +42 -0
  25. package/catalog/src/models/PagingMetadata.d.ts +45 -0
  26. package/catalog/src/models/PagingMetadata.js +47 -0
  27. package/catalog/src/models/ProductInsight.d.ts +106 -0
  28. package/catalog/src/models/ProductInsight.js +73 -0
  29. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +89 -0
  30. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +64 -0
  31. package/catalog/src/models/ProductInsightJournal.d.ts +33 -0
  32. package/catalog/src/models/ProductInsightJournal.js +44 -0
  33. package/catalog/src/models/ProductSecondaryTypeLink.d.ts +34 -0
  34. package/catalog/src/models/ProductSecondaryTypeLink.js +50 -0
  35. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +33 -0
  36. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +44 -0
  37. package/catalog/src/models/ProductStorageType.d.ts +25 -0
  38. package/catalog/src/models/ProductStorageType.js +40 -0
  39. package/catalog/src/models/ProductTypeLink.d.ts +34 -0
  40. package/catalog/src/models/ProductTypeLink.js +50 -0
  41. package/catalog/src/models/ProductTypeLinkAllOf.d.ts +33 -0
  42. package/catalog/src/models/ProductTypeLinkAllOf.js +44 -0
  43. package/catalog/src/models/RestError.d.ts +85 -0
  44. package/catalog/src/models/RestError.js +97 -0
  45. package/catalog/src/models/VatLink.d.ts +40 -0
  46. package/catalog/src/models/VatLink.js +50 -0
  47. package/catalog/src/models/VatLinkAllOf.d.ts +39 -0
  48. package/catalog/src/models/VatLinkAllOf.js +46 -0
  49. package/catalog/src/models/index.d.ts +19 -0
  50. package/catalog/src/models/index.js +35 -0
  51. package/catalog/src/runtime.d.ts +149 -0
  52. package/catalog/src/runtime.js +480 -0
  53. package/package.json +1 -1
  54. package/product/src/apis/ManageProductApi.d.ts +2 -0
  55. package/product/src/apis/ManageProductApi.js +6 -0
  56. package/product/src/apis/SearchProductMetadataApi.d.ts +22 -0
  57. package/product/src/apis/SearchProductMetadataApi.js +154 -8
  58. package/product/src/models/{ProductProvider.d.ts → DataProvider.d.ts} +7 -5
  59. package/product/src/models/DataProvider.js +40 -0
  60. package/product/src/models/Image.d.ts +7 -0
  61. package/product/src/models/Image.js +3 -0
  62. package/product/src/models/Product.d.ts +44 -37
  63. package/product/src/models/Product.js +33 -31
  64. package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -6
  65. package/product/src/models/ProductCreationOrUpdateParameters.js +2 -2
  66. package/product/src/models/ProductJournal.d.ts +27 -0
  67. package/product/src/models/ProductJournal.js +41 -0
  68. package/product/src/models/ProductProscription.d.ts +7 -0
  69. package/product/src/models/ProductProscription.js +3 -0
  70. package/product/src/models/ProductSource.d.ts +47 -0
  71. package/product/src/models/ProductSource.js +49 -0
  72. package/product/src/models/ProductSourceBcb.d.ts +39 -0
  73. package/product/src/models/ProductSourceBcb.js +46 -0
  74. package/product/src/models/ProductSourceFields.d.ts +131 -0
  75. package/product/src/models/ProductSourceFields.js +77 -0
  76. package/product/src/models/ProductSourceFieldsBarcodes.d.ts +46 -0
  77. package/product/src/models/ProductSourceFieldsBarcodes.js +48 -0
  78. package/product/src/models/index.d.ts +6 -1
  79. package/product/src/models/index.js +6 -1
  80. package/product/src/models/ProductProvider.js +0 -38
@@ -11,10 +11,24 @@
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
+ }
14
20
  /**
15
21
  * no description
16
22
  */
17
23
  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>;
18
32
  /**
19
33
  * Get product secondary types
20
34
  */
@@ -23,6 +37,14 @@ export declare class SearchProductMetadataApi extends BaseAPI {
23
37
  * Get product secondary types
24
38
  */
25
39
  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>;
26
48
  /**
27
49
  * Get product types
28
50
  */
@@ -76,14 +76,17 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Get product secondary types
79
+ * Get product secondary type
80
80
  */
81
- SearchProductMetadataApi.prototype.getProductSecondaryTypesRaw = function () {
81
+ SearchProductMetadataApi.prototype.getProductSecondaryTypeRaw = function (requestParameters) {
82
82
  return __awaiter(this, void 0, void 0, function () {
83
83
  var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
84
84
  return __generator(this, function (_a) {
85
85
  switch (_a.label) {
86
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
+ }
87
90
  queryParameters = {};
88
91
  headerParameters = {};
89
92
  if (this.configuration && this.configuration.apiKey) {
@@ -100,7 +103,7 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
100
103
  case 1:
101
104
  _a.trys.push([1, 3, , 4]);
102
105
  return [4 /*yield*/, this.request({
103
- path: "/products/secondary-types",
106
+ path: "/products/secondary-types/{secondaryTypeId}".replace("{".concat("secondaryTypeId", "}"), encodeURIComponent(String(requestParameters.secondaryTypeId))),
104
107
  method: 'GET',
105
108
  headers: headerParameters,
106
109
  query: queryParameters,
@@ -109,7 +112,7 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
109
112
  response = _a.sent();
110
113
  contentType = response.headers.get("content-type");
111
114
  if (contentType && contentType.indexOf("application/json") !== -1) {
112
- return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(models_1.ProductSecondaryTypeFromJSON); })];
115
+ return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProductSecondaryTypeFromJSON)(jsonValue); })];
113
116
  }
114
117
  else if (contentType && contentType.indexOf("text/plain") !== -1) {
115
118
  return [2 /*return*/, new runtime_1.TextApiResponse(response)];
@@ -128,6 +131,76 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
128
131
  });
129
132
  });
130
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
+ /**
152
+ * Get product secondary types
153
+ */
154
+ SearchProductMetadataApi.prototype.getProductSecondaryTypesRaw = function () {
155
+ return __awaiter(this, void 0, void 0, function () {
156
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
157
+ return __generator(this, function (_a) {
158
+ switch (_a.label) {
159
+ case 0:
160
+ queryParameters = {};
161
+ headerParameters = {};
162
+ if (this.configuration && this.configuration.apiKey) {
163
+ headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
164
+ }
165
+ if (this.configuration && this.configuration.accessToken) {
166
+ token = this.configuration.accessToken;
167
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
168
+ if (tokenString) {
169
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
170
+ }
171
+ }
172
+ _a.label = 1;
173
+ case 1:
174
+ _a.trys.push([1, 3, , 4]);
175
+ return [4 /*yield*/, this.request({
176
+ path: "/products/secondary-types",
177
+ method: 'GET',
178
+ headers: headerParameters,
179
+ query: queryParameters,
180
+ })];
181
+ case 2:
182
+ response = _a.sent();
183
+ contentType = response.headers.get("content-type");
184
+ if (contentType && contentType.indexOf("application/json") !== -1) {
185
+ return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(models_1.ProductSecondaryTypeFromJSON); })];
186
+ }
187
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
188
+ return [2 /*return*/, new runtime_1.TextApiResponse(response)];
189
+ }
190
+ else {
191
+ // TODO : Better handling of others application types
192
+ return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
193
+ }
194
+ return [3 /*break*/, 4];
195
+ case 3:
196
+ response_2 = _a.sent();
197
+ console.debug(response_2);
198
+ throw response_2;
199
+ case 4: return [2 /*return*/];
200
+ }
201
+ });
202
+ });
203
+ };
131
204
  /**
132
205
  * Get product secondary types
133
206
  */
@@ -145,12 +218,85 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
145
218
  });
146
219
  });
147
220
  };
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/types/{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
+ };
148
294
  /**
149
295
  * Get product types
150
296
  */
151
297
  SearchProductMetadataApi.prototype.getProductTypesRaw = function () {
152
298
  return __awaiter(this, void 0, void 0, function () {
153
- var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
299
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_4;
154
300
  return __generator(this, function (_a) {
155
301
  switch (_a.label) {
156
302
  case 0:
@@ -190,9 +336,9 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
190
336
  }
191
337
  return [3 /*break*/, 4];
192
338
  case 3:
193
- response_2 = _a.sent();
194
- console.debug(response_2);
195
- throw response_2;
339
+ response_4 = _a.sent();
340
+ console.debug(response_4);
341
+ throw response_4;
196
342
  case 4: return [2 /*return*/];
197
343
  }
198
344
  });
@@ -14,10 +14,12 @@
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
17
- export declare enum ProductProvider {
17
+ export declare enum DataProvider {
18
18
  VIDAL = "VIDAL",
19
- BCB = "BCB"
19
+ BCB = "BCB",
20
+ LCDPCATALOG = "LCDP_CATALOG",
21
+ USER = "USER"
20
22
  }
21
- export declare function ProductProviderFromJSON(json: any): ProductProvider;
22
- export declare function ProductProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProvider;
23
- export declare function ProductProviderToJSON(value?: ProductProvider | null): any;
23
+ export declare function DataProviderFromJSON(json: any): DataProvider;
24
+ export declare function DataProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataProvider;
25
+ export declare function DataProviderToJSON(value?: DataProvider | null): any;
@@ -0,0 +1,40 @@
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.DataProviderToJSON = exports.DataProviderFromJSONTyped = exports.DataProviderFromJSON = exports.DataProvider = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var DataProvider;
23
+ (function (DataProvider) {
24
+ DataProvider["VIDAL"] = "VIDAL";
25
+ DataProvider["BCB"] = "BCB";
26
+ DataProvider["LCDPCATALOG"] = "LCDP_CATALOG";
27
+ DataProvider["USER"] = "USER";
28
+ })(DataProvider = exports.DataProvider || (exports.DataProvider = {}));
29
+ function DataProviderFromJSON(json) {
30
+ return DataProviderFromJSONTyped(json, false);
31
+ }
32
+ exports.DataProviderFromJSON = DataProviderFromJSON;
33
+ function DataProviderFromJSONTyped(json, ignoreDiscriminator) {
34
+ return json;
35
+ }
36
+ exports.DataProviderFromJSONTyped = DataProviderFromJSONTyped;
37
+ function DataProviderToJSON(value) {
38
+ return value;
39
+ }
40
+ exports.DataProviderToJSON = DataProviderToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { DataProvider } from './DataProvider';
12
13
  import { ImageVersions } from './ImageVersions';
13
14
  /**
14
15
  *
@@ -34,6 +35,12 @@ export interface Image {
34
35
  * @memberof Image
35
36
  */
36
37
  versions?: ImageVersions;
38
+ /**
39
+ *
40
+ * @type {DataProvider}
41
+ * @memberof Image
42
+ */
43
+ source?: DataProvider;
37
44
  }
38
45
  export declare function ImageFromJSON(json: any): Image;
39
46
  export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image;
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var DataProvider_1 = require("./DataProvider");
18
19
  var ImageVersions_1 = require("./ImageVersions");
19
20
  function ImageFromJSON(json) {
20
21
  return ImageFromJSONTyped(json, false);
@@ -28,6 +29,7 @@ function ImageFromJSONTyped(json, ignoreDiscriminator) {
28
29
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
29
30
  'active': !(0, runtime_1.exists)(json, 'active') ? undefined : json['active'],
30
31
  'versions': !(0, runtime_1.exists)(json, 'versions') ? undefined : (0, ImageVersions_1.ImageVersionsFromJSON)(json['versions']),
32
+ 'source': !(0, runtime_1.exists)(json, 'source') ? undefined : (0, DataProvider_1.DataProviderFromJSON)(json['source']),
31
33
  };
32
34
  }
33
35
  exports.ImageFromJSONTyped = ImageFromJSONTyped;
@@ -42,6 +44,7 @@ function ImageToJSON(value) {
42
44
  'id': value.id,
43
45
  'active': value.active,
44
46
  'versions': (0, ImageVersions_1.ImageVersionsToJSON)(value.versions),
47
+ 'source': (0, DataProvider_1.DataProviderToJSON)(value.source),
45
48
  };
46
49
  }
47
50
  exports.ImageToJSON = ImageToJSON;
@@ -13,9 +13,10 @@ import { Barcodes } from './Barcodes';
13
13
  import { HttpLink } from './HttpLink';
14
14
  import { LaboratoryLink } from './LaboratoryLink';
15
15
  import { ProductDispensationPlace } from './ProductDispensationPlace';
16
+ import { ProductJournal } from './ProductJournal';
16
17
  import { ProductMarketStatus } from './ProductMarketStatus';
17
- import { ProductProvider } from './ProductProvider';
18
18
  import { ProductSecondaryType } from './ProductSecondaryType';
19
+ import { ProductSource } from './ProductSource';
19
20
  import { ProductStatus } from './ProductStatus';
20
21
  import { ProductStorageType } from './ProductStorageType';
21
22
  import { ProductType } from './ProductType';
@@ -32,157 +33,163 @@ export interface Product {
32
33
  * @type {number}
33
34
  * @memberof Product
34
35
  */
35
- id?: number;
36
- /**
37
- * Indicates if automatic external synchronization is enabled
38
- * @type {boolean}
39
- * @memberof Product
40
- */
41
- isExternalSyncEnabled?: boolean;
42
- /**
43
- *
44
- * @type {Array<ProductProvider>}
45
- * @memberof Product
46
- */
47
- providers?: Array<ProductProvider>;
36
+ id: number;
48
37
  /**
49
38
  *
50
39
  * @type {Barcodes}
51
40
  * @memberof Product
52
41
  */
53
- barcodes?: Barcodes;
42
+ barcodes: Barcodes;
54
43
  /**
55
44
  *
56
45
  * @type {string}
57
46
  * @memberof Product
58
47
  */
59
- name?: string;
48
+ name: string;
60
49
  /**
61
50
  *
62
51
  * @type {string}
63
52
  * @memberof Product
64
53
  */
65
- shortName?: string | null;
54
+ shortName: string | null;
66
55
  /**
67
56
  *
68
57
  * @type {string}
69
58
  * @memberof Product
70
59
  */
71
- dci?: string | null;
60
+ dci: string | null;
72
61
  /**
73
62
  * Weight of a single unit in grams
74
63
  * @type {number}
75
64
  * @memberof Product
76
65
  */
77
- unitWeight?: number | null;
66
+ unitWeight: number | null;
78
67
  /**
79
68
  * Public price of the product
80
69
  * @type {number}
81
70
  * @memberof Product
82
71
  */
83
- unitPrice?: number | null;
72
+ unitPrice: number | null;
73
+ /**
74
+ * Date on which the unit price take effect
75
+ * @type {Date}
76
+ * @memberof Product
77
+ */
78
+ unitPriceEffectiveDate: Date | null;
84
79
  /**
85
80
  *
86
81
  * @type {ProductType}
87
82
  * @memberof Product
88
83
  */
89
- type?: ProductType | null;
84
+ type: ProductType | null;
90
85
  /**
91
86
  *
92
87
  * @type {ProductSecondaryType}
93
88
  * @memberof Product
94
89
  */
95
- secondaryType?: ProductSecondaryType | null;
90
+ secondaryType: ProductSecondaryType | null;
96
91
  /**
97
92
  *
98
93
  * @type {LaboratoryLink}
99
94
  * @memberof Product
100
95
  */
101
- laboratory?: LaboratoryLink | null;
96
+ laboratory: LaboratoryLink | null;
102
97
  /**
103
98
  *
104
99
  * @type {Vat}
105
100
  * @memberof Product
106
101
  */
107
- vat?: Vat | null;
102
+ vat: Vat | null;
108
103
  /**
109
104
  *
110
105
  * @type {boolean}
111
106
  * @memberof Product
112
107
  */
113
- narcoticPrescription?: boolean | null;
108
+ narcoticPrescription: boolean | null;
114
109
  /**
115
110
  *
116
111
  * @type {ProductStorageType}
117
112
  * @memberof Product
118
113
  */
119
- storageType?: ProductStorageType | null;
114
+ storageType: ProductStorageType | null;
120
115
  /**
121
116
  *
122
117
  * @type {ProductStatus}
123
118
  * @memberof Product
124
119
  */
125
- status?: ProductStatus | null;
120
+ status: ProductStatus | null;
126
121
  /**
127
122
  *
128
123
  * @type {ProductMarketStatus}
129
124
  * @memberof Product
130
125
  */
131
- marketStatus?: ProductMarketStatus | null;
126
+ marketStatus: ProductMarketStatus | null;
132
127
  /**
133
128
  *
134
129
  * @type {ProductDispensationPlace}
135
130
  * @memberof Product
136
131
  */
137
- dispensationPlace?: ProductDispensationPlace | null;
132
+ dispensationPlace: ProductDispensationPlace | null;
138
133
  /**
139
134
  *
140
135
  * @type {boolean}
141
136
  * @memberof Product
142
137
  */
143
- isOtc?: boolean;
138
+ isOtc: boolean | null;
144
139
  /**
145
140
  *
146
141
  * @type {boolean}
147
142
  * @memberof Product
148
143
  */
149
- isDrugInSport?: boolean | null;
144
+ isDrugInSport: boolean | null;
150
145
  /**
151
146
  *
152
147
  * @type {HttpLink}
153
148
  * @memberof Product
154
149
  */
155
- images?: HttpLink;
150
+ images: HttpLink;
156
151
  /**
157
152
  * Creation date of this product
158
153
  * @type {Date}
159
154
  * @memberof Product
160
155
  */
161
- createdAt?: Date;
156
+ createdAt: Date;
162
157
  /**
163
158
  *
164
159
  * @type {Statistics}
165
160
  * @memberof Product
166
161
  */
167
- statistics?: Statistics;
162
+ statistics: Statistics;
168
163
  /**
169
164
  * If True, can only be sold by LABORATORY. If False, it can be sold by anyone.
170
165
  * @type {boolean}
171
166
  * @memberof Product
172
167
  */
173
- restricted?: boolean;
168
+ restricted: boolean;
174
169
  /**
175
170
  *
176
171
  * @type {HttpLink}
177
172
  * @memberof Product
178
173
  */
179
- proscriptions?: HttpLink;
174
+ proscriptions: HttpLink;
180
175
  /**
181
176
  * Associated tags for this product
182
177
  * @type {Array<string>}
183
178
  * @memberof Product
184
179
  */
185
- tags?: Array<string>;
180
+ tags: Array<string>;
181
+ /**
182
+ *
183
+ * @type {ProductSource}
184
+ * @memberof Product
185
+ */
186
+ source: ProductSource;
187
+ /**
188
+ *
189
+ * @type {ProductJournal}
190
+ * @memberof Product
191
+ */
192
+ journal: ProductJournal;
186
193
  }
187
194
  export declare function ProductFromJSON(json: any): Product;
188
195
  export declare function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product;