@lcdp/api-react-rest-client 2.4.0 → 2.5.0-develop.5667295877

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 (84) 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 +54 -0
  6. package/catalog/src/apis/SearchProductInsightApi.js +249 -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/notification/src/apis/SearchNotificationTypeApi.d.ts +13 -2
  54. package/notification/src/apis/SearchNotificationTypeApi.js +82 -9
  55. package/package.json +1 -1
  56. package/product/src/apis/ManageProductApi.d.ts +2 -0
  57. package/product/src/apis/ManageProductApi.js +6 -0
  58. package/product/src/apis/SearchProductApi.d.ts +1 -0
  59. package/product/src/apis/SearchProductApi.js +3 -0
  60. package/product/src/apis/SearchProductMetadataApi.d.ts +22 -0
  61. package/product/src/apis/SearchProductMetadataApi.js +154 -8
  62. package/product/src/models/{ProductProvider.d.ts → DataProvider.d.ts} +7 -5
  63. package/product/src/models/DataProvider.js +40 -0
  64. package/product/src/models/Image.d.ts +7 -0
  65. package/product/src/models/Image.js +3 -0
  66. package/product/src/models/Product.d.ts +44 -37
  67. package/product/src/models/Product.js +33 -31
  68. package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -6
  69. package/product/src/models/ProductCreationOrUpdateParameters.js +2 -2
  70. package/product/src/models/ProductJournal.d.ts +27 -0
  71. package/product/src/models/ProductJournal.js +41 -0
  72. package/product/src/models/ProductProscription.d.ts +7 -0
  73. package/product/src/models/ProductProscription.js +3 -0
  74. package/product/src/models/ProductSource.d.ts +47 -0
  75. package/product/src/models/ProductSource.js +49 -0
  76. package/product/src/models/ProductSourceBcb.d.ts +39 -0
  77. package/product/src/models/ProductSourceBcb.js +46 -0
  78. package/product/src/models/ProductSourceFields.d.ts +131 -0
  79. package/product/src/models/ProductSourceFields.js +77 -0
  80. package/product/src/models/ProductSourceFieldsBarcodes.d.ts +46 -0
  81. package/product/src/models/ProductSourceFieldsBarcodes.js +48 -0
  82. package/product/src/models/index.d.ts +6 -1
  83. package/product/src/models/index.js +6 -1
  84. package/product/src/models/ProductProvider.js +0 -38
@@ -14,14 +14,14 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var Barcodes_1 = require("./Barcodes");
19
18
  var HttpLink_1 = require("./HttpLink");
20
19
  var LaboratoryLink_1 = require("./LaboratoryLink");
21
20
  var ProductDispensationPlace_1 = require("./ProductDispensationPlace");
21
+ var ProductJournal_1 = require("./ProductJournal");
22
22
  var ProductMarketStatus_1 = require("./ProductMarketStatus");
23
- var ProductProvider_1 = require("./ProductProvider");
24
23
  var ProductSecondaryType_1 = require("./ProductSecondaryType");
24
+ var ProductSource_1 = require("./ProductSource");
25
25
  var ProductStatus_1 = require("./ProductStatus");
26
26
  var ProductStorageType_1 = require("./ProductStorageType");
27
27
  var ProductType_1 = require("./ProductType");
@@ -36,32 +36,33 @@ function ProductFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
40
- 'isExternalSyncEnabled': !(0, runtime_1.exists)(json, 'isExternalSyncEnabled') ? undefined : json['isExternalSyncEnabled'],
41
- 'providers': !(0, runtime_1.exists)(json, 'providers') ? undefined : (json['providers'].map(ProductProvider_1.ProductProviderFromJSON)),
42
- 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
43
- 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
44
- 'shortName': !(0, runtime_1.exists)(json, 'shortName') ? json['shortName'] : json['shortName'],
45
- 'dci': !(0, runtime_1.exists)(json, 'dci') ? json['dci'] : json['dci'],
46
- 'unitWeight': !(0, runtime_1.exists)(json, 'unitWeight') ? json['unitWeight'] : json['unitWeight'],
47
- 'unitPrice': !(0, runtime_1.exists)(json, 'unitPrice') ? json['unitPrice'] : json['unitPrice'],
48
- 'type': !(0, runtime_1.exists)(json, 'type') ? json['type'] : (0, ProductType_1.ProductTypeFromJSON)(json['type']),
49
- 'secondaryType': !(0, runtime_1.exists)(json, 'secondaryType') ? json['secondaryType'] : (0, ProductSecondaryType_1.ProductSecondaryTypeFromJSON)(json['secondaryType']),
50
- 'laboratory': !(0, runtime_1.exists)(json, 'laboratory') ? json['laboratory'] : (0, LaboratoryLink_1.LaboratoryLinkFromJSON)(json['laboratory']),
51
- 'vat': !(0, runtime_1.exists)(json, 'vat') ? json['vat'] : (0, Vat_1.VatFromJSON)(json['vat']),
52
- 'narcoticPrescription': !(0, runtime_1.exists)(json, 'narcoticPrescription') ? json['narcoticPrescription'] : json['narcoticPrescription'],
53
- 'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
54
- 'status': !(0, runtime_1.exists)(json, 'status') ? json['status'] : (0, ProductStatus_1.ProductStatusFromJSON)(json['status']),
55
- 'marketStatus': !(0, runtime_1.exists)(json, 'marketStatus') ? json['marketStatus'] : (0, ProductMarketStatus_1.ProductMarketStatusFromJSON)(json['marketStatus']),
56
- 'dispensationPlace': !(0, runtime_1.exists)(json, 'dispensationPlace') ? json['dispensationPlace'] : (0, ProductDispensationPlace_1.ProductDispensationPlaceFromJSON)(json['dispensationPlace']),
57
- 'isOtc': !(0, runtime_1.exists)(json, 'isOtc') ? undefined : json['isOtc'],
58
- 'isDrugInSport': !(0, runtime_1.exists)(json, 'isDrugInSport') ? json['isDrugInSport'] : json['isDrugInSport'],
59
- 'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['images']),
60
- 'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
61
- 'statistics': !(0, runtime_1.exists)(json, 'statistics') ? undefined : (0, Statistics_1.StatisticsFromJSON)(json['statistics']),
62
- 'restricted': !(0, runtime_1.exists)(json, 'restricted') ? undefined : json['restricted'],
63
- 'proscriptions': !(0, runtime_1.exists)(json, 'proscriptions') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['proscriptions']),
64
- 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
39
+ 'id': json['id'],
40
+ 'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
41
+ 'name': json['name'],
42
+ 'shortName': json['shortName'],
43
+ 'dci': json['dci'],
44
+ 'unitWeight': json['unitWeight'],
45
+ 'unitPrice': json['unitPrice'],
46
+ 'unitPriceEffectiveDate': (json['unitPriceEffectiveDate'] === null ? null : new Date(json['unitPriceEffectiveDate'])),
47
+ 'type': (0, ProductType_1.ProductTypeFromJSON)(json['type']),
48
+ 'secondaryType': (0, ProductSecondaryType_1.ProductSecondaryTypeFromJSON)(json['secondaryType']),
49
+ 'laboratory': (0, LaboratoryLink_1.LaboratoryLinkFromJSON)(json['laboratory']),
50
+ 'vat': (0, Vat_1.VatFromJSON)(json['vat']),
51
+ 'narcoticPrescription': json['narcoticPrescription'],
52
+ 'storageType': (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
53
+ 'status': (0, ProductStatus_1.ProductStatusFromJSON)(json['status']),
54
+ 'marketStatus': (0, ProductMarketStatus_1.ProductMarketStatusFromJSON)(json['marketStatus']),
55
+ 'dispensationPlace': (0, ProductDispensationPlace_1.ProductDispensationPlaceFromJSON)(json['dispensationPlace']),
56
+ 'isOtc': json['isOtc'],
57
+ 'isDrugInSport': json['isDrugInSport'],
58
+ 'images': (0, HttpLink_1.HttpLinkFromJSON)(json['images']),
59
+ 'createdAt': (new Date(json['createdAt'])),
60
+ 'statistics': (0, Statistics_1.StatisticsFromJSON)(json['statistics']),
61
+ 'restricted': json['restricted'],
62
+ 'proscriptions': (0, HttpLink_1.HttpLinkFromJSON)(json['proscriptions']),
63
+ 'tags': json['tags'],
64
+ 'source': (0, ProductSource_1.ProductSourceFromJSON)(json['source']),
65
+ 'journal': (0, ProductJournal_1.ProductJournalFromJSON)(json['journal']),
65
66
  };
66
67
  }
67
68
  exports.ProductFromJSONTyped = ProductFromJSONTyped;
@@ -74,14 +75,13 @@ function ProductToJSON(value) {
74
75
  }
75
76
  return {
76
77
  'id': value.id,
77
- 'isExternalSyncEnabled': value.isExternalSyncEnabled,
78
- 'providers': value.providers === undefined ? undefined : (value.providers.map(ProductProvider_1.ProductProviderToJSON)),
79
78
  'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
80
79
  'name': value.name,
81
80
  'shortName': value.shortName,
82
81
  'dci': value.dci,
83
82
  'unitWeight': value.unitWeight,
84
83
  'unitPrice': value.unitPrice,
84
+ 'unitPriceEffectiveDate': (value.unitPriceEffectiveDate === null ? null : value.unitPriceEffectiveDate.toISOString()),
85
85
  'type': (0, ProductType_1.ProductTypeToJSON)(value.type),
86
86
  'secondaryType': (0, ProductSecondaryType_1.ProductSecondaryTypeToJSON)(value.secondaryType),
87
87
  'laboratory': (0, LaboratoryLink_1.LaboratoryLinkToJSON)(value.laboratory),
@@ -94,11 +94,13 @@ function ProductToJSON(value) {
94
94
  'isOtc': value.isOtc,
95
95
  'isDrugInSport': value.isDrugInSport,
96
96
  'images': (0, HttpLink_1.HttpLinkToJSON)(value.images),
97
- 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
97
+ 'createdAt': (value.createdAt.toISOString()),
98
98
  'statistics': (0, Statistics_1.StatisticsToJSON)(value.statistics),
99
99
  'restricted': value.restricted,
100
100
  'proscriptions': (0, HttpLink_1.HttpLinkToJSON)(value.proscriptions),
101
101
  'tags': value.tags,
102
+ 'source': (0, ProductSource_1.ProductSourceToJSON)(value.source),
103
+ 'journal': (0, ProductJournal_1.ProductJournalToJSON)(value.journal),
102
104
  };
103
105
  }
104
106
  exports.ProductToJSON = ProductToJSON;
@@ -20,12 +20,6 @@ import { ProductStorageType } from './ProductStorageType';
20
20
  * @interface ProductCreationOrUpdateParameters
21
21
  */
22
22
  export interface ProductCreationOrUpdateParameters {
23
- /**
24
- * Triggers (single) synchronization from external provider if set to true. Restrictions : - You should be from role \'ADMINISTRATOR\' to change its value. Otherwise, you can just set it from true to true to trigger a (single) external provider synchronization.
25
- * @type {boolean}
26
- * @memberof ProductCreationOrUpdateParameters
27
- */
28
- isExternalSyncEnabled?: boolean;
29
23
  /**
30
24
  *
31
25
  * @type {Barcodes}
@@ -62,6 +56,12 @@ export interface ProductCreationOrUpdateParameters {
62
56
  * @memberof ProductCreationOrUpdateParameters
63
57
  */
64
58
  unitPrice?: number | null;
59
+ /**
60
+ * Date on which the unit price take effect
61
+ * @type {Date}
62
+ * @memberof ProductCreationOrUpdateParameters
63
+ */
64
+ unitPriceEffectiveDate?: Date | null;
65
65
  /**
66
66
  * Product Type Identifier
67
67
  * @type {string}
@@ -29,13 +29,13 @@ function ProductCreationOrUpdateParametersFromJSONTyped(json, ignoreDiscriminato
29
29
  return json;
30
30
  }
31
31
  return {
32
- 'isExternalSyncEnabled': !(0, runtime_1.exists)(json, 'isExternalSyncEnabled') ? undefined : json['isExternalSyncEnabled'],
33
32
  'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
34
33
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
35
34
  'shortName': !(0, runtime_1.exists)(json, 'shortName') ? json['shortName'] : json['shortName'],
36
35
  'dci': !(0, runtime_1.exists)(json, 'dci') ? json['dci'] : json['dci'],
37
36
  'unitWeight': !(0, runtime_1.exists)(json, 'unitWeight') ? json['unitWeight'] : json['unitWeight'],
38
37
  'unitPrice': !(0, runtime_1.exists)(json, 'unitPrice') ? json['unitPrice'] : json['unitPrice'],
38
+ 'unitPriceEffectiveDate': !(0, runtime_1.exists)(json, 'unitPriceEffectiveDate') ? json['unitPriceEffectiveDate'] : (new Date(json['unitPriceEffectiveDate'])),
39
39
  'typeId': !(0, runtime_1.exists)(json, 'typeId') ? json['typeId'] : json['typeId'],
40
40
  'secondaryTypeId': !(0, runtime_1.exists)(json, 'secondaryTypeId') ? json['secondaryTypeId'] : json['secondaryTypeId'],
41
41
  'laboratoryId': !(0, runtime_1.exists)(json, 'laboratoryId') ? json['laboratoryId'] : json['laboratoryId'],
@@ -59,13 +59,13 @@ function ProductCreationOrUpdateParametersToJSON(value) {
59
59
  return null;
60
60
  }
61
61
  return {
62
- 'isExternalSyncEnabled': value.isExternalSyncEnabled,
63
62
  'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
64
63
  'name': value.name,
65
64
  'shortName': value.shortName,
66
65
  'dci': value.dci,
67
66
  'unitWeight': value.unitWeight,
68
67
  'unitPrice': value.unitPrice,
68
+ 'unitPriceEffectiveDate': value.unitPriceEffectiveDate === undefined ? undefined : (value.unitPriceEffectiveDate === null ? null : value.unitPriceEffectiveDate.toISOString()),
69
69
  'typeId': value.typeId,
70
70
  'secondaryTypeId': value.secondaryTypeId,
71
71
  'laboratoryId': value.laboratoryId,
@@ -0,0 +1,27 @@
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
+ * Journal of the product
14
+ * @export
15
+ * @interface ProductJournal
16
+ */
17
+ export interface ProductJournal {
18
+ /**
19
+ * Last synced date for this product
20
+ * @type {Date}
21
+ * @memberof ProductJournal
22
+ */
23
+ lastSyncedDate: Date | null;
24
+ }
25
+ export declare function ProductJournalFromJSON(json: any): ProductJournal;
26
+ export declare function ProductJournalFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductJournal;
27
+ export declare function ProductJournalToJSON(value?: ProductJournal | null): any;
@@ -0,0 +1,41 @@
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.ProductJournalToJSON = exports.ProductJournalFromJSONTyped = exports.ProductJournalFromJSON = void 0;
17
+ function ProductJournalFromJSON(json) {
18
+ return ProductJournalFromJSONTyped(json, false);
19
+ }
20
+ exports.ProductJournalFromJSON = ProductJournalFromJSON;
21
+ function ProductJournalFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'lastSyncedDate': (json['lastSyncedDate'] === null ? null : new Date(json['lastSyncedDate'])),
27
+ };
28
+ }
29
+ exports.ProductJournalFromJSONTyped = ProductJournalFromJSONTyped;
30
+ function ProductJournalToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'lastSyncedDate': (value.lastSyncedDate === null ? null : value.lastSyncedDate.toISOString()),
39
+ };
40
+ }
41
+ exports.ProductJournalToJSON = ProductJournalToJSON;
@@ -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
  /**
13
14
  *
14
15
  * @export
@@ -33,6 +34,12 @@ export interface ProductProscription {
33
34
  * @memberof ProductProscription
34
35
  */
35
36
  createdAt?: Date;
37
+ /**
38
+ *
39
+ * @type {DataProvider}
40
+ * @memberof ProductProscription
41
+ */
42
+ source?: DataProvider;
36
43
  }
37
44
  export declare function ProductProscriptionFromJSON(json: any): ProductProscription;
38
45
  export declare function ProductProscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProscription;
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProductProscriptionToJSON = exports.ProductProscriptionFromJSONTyped = exports.ProductProscriptionFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var DataProvider_1 = require("./DataProvider");
18
19
  function ProductProscriptionFromJSON(json) {
19
20
  return ProductProscriptionFromJSONTyped(json, false);
20
21
  }
@@ -27,6 +28,7 @@ function ProductProscriptionFromJSONTyped(json, ignoreDiscriminator) {
27
28
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
28
29
  'batch': !(0, runtime_1.exists)(json, 'batch') ? undefined : json['batch'],
29
30
  'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
31
+ 'source': !(0, runtime_1.exists)(json, 'source') ? undefined : (0, DataProvider_1.DataProviderFromJSON)(json['source']),
30
32
  };
31
33
  }
32
34
  exports.ProductProscriptionFromJSONTyped = ProductProscriptionFromJSONTyped;
@@ -41,6 +43,7 @@ function ProductProscriptionToJSON(value) {
41
43
  'id': value.id,
42
44
  'batch': value.batch,
43
45
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
46
+ 'source': (0, DataProvider_1.DataProviderToJSON)(value.source),
44
47
  };
45
48
  }
46
49
  exports.ProductProscriptionToJSON = ProductProscriptionToJSON;
@@ -0,0 +1,47 @@
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 { ProductSourceBcb } from './ProductSourceBcb';
13
+ import { ProductSourceFields } from './ProductSourceFields';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ProductSource
18
+ */
19
+ export interface ProductSource {
20
+ /**
21
+ *
22
+ * @type {ProductSourceBcb}
23
+ * @memberof ProductSource
24
+ */
25
+ bcb: ProductSourceBcb | null;
26
+ /**
27
+ *
28
+ * @type {ProductSourceBcb}
29
+ * @memberof ProductSource
30
+ */
31
+ vidal: ProductSourceBcb | null;
32
+ /**
33
+ *
34
+ * @type {ProductSourceBcb}
35
+ * @memberof ProductSource
36
+ */
37
+ lcdpCatalog: ProductSourceBcb | null;
38
+ /**
39
+ *
40
+ * @type {ProductSourceFields}
41
+ * @memberof ProductSource
42
+ */
43
+ fields: ProductSourceFields;
44
+ }
45
+ export declare function ProductSourceFromJSON(json: any): ProductSource;
46
+ export declare function ProductSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSource;
47
+ export declare function ProductSourceToJSON(value?: ProductSource | null): any;
@@ -0,0 +1,49 @@
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.ProductSourceToJSON = exports.ProductSourceFromJSONTyped = exports.ProductSourceFromJSON = void 0;
17
+ var ProductSourceBcb_1 = require("./ProductSourceBcb");
18
+ var ProductSourceFields_1 = require("./ProductSourceFields");
19
+ function ProductSourceFromJSON(json) {
20
+ return ProductSourceFromJSONTyped(json, false);
21
+ }
22
+ exports.ProductSourceFromJSON = ProductSourceFromJSON;
23
+ function ProductSourceFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'bcb': (0, ProductSourceBcb_1.ProductSourceBcbFromJSON)(json['bcb']),
29
+ 'vidal': (0, ProductSourceBcb_1.ProductSourceBcbFromJSON)(json['vidal']),
30
+ 'lcdpCatalog': (0, ProductSourceBcb_1.ProductSourceBcbFromJSON)(json['lcdpCatalog']),
31
+ 'fields': (0, ProductSourceFields_1.ProductSourceFieldsFromJSON)(json['fields']),
32
+ };
33
+ }
34
+ exports.ProductSourceFromJSONTyped = ProductSourceFromJSONTyped;
35
+ function ProductSourceToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'bcb': (0, ProductSourceBcb_1.ProductSourceBcbToJSON)(value.bcb),
44
+ 'vidal': (0, ProductSourceBcb_1.ProductSourceBcbToJSON)(value.vidal),
45
+ 'lcdpCatalog': (0, ProductSourceBcb_1.ProductSourceBcbToJSON)(value.lcdpCatalog),
46
+ 'fields': (0, ProductSourceFields_1.ProductSourceFieldsToJSON)(value.fields),
47
+ };
48
+ }
49
+ exports.ProductSourceToJSON = ProductSourceToJSON;
@@ -0,0 +1,39 @@
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
+ *
14
+ * @export
15
+ * @interface ProductSourceBcb
16
+ */
17
+ export interface ProductSourceBcb {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ProductSourceBcb
22
+ */
23
+ id: number | null;
24
+ /**
25
+ * Public price of the product
26
+ * @type {number}
27
+ * @memberof ProductSourceBcb
28
+ */
29
+ unitPrice?: number | null;
30
+ /**
31
+ * Date on which the unit price take effect
32
+ * @type {Date}
33
+ * @memberof ProductSourceBcb
34
+ */
35
+ unitPriceEffectiveDate?: Date | null;
36
+ }
37
+ export declare function ProductSourceBcbFromJSON(json: any): ProductSourceBcb;
38
+ export declare function ProductSourceBcbFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSourceBcb;
39
+ export declare function ProductSourceBcbToJSON(value?: ProductSourceBcb | null): any;
@@ -0,0 +1,46 @@
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.ProductSourceBcbToJSON = exports.ProductSourceBcbFromJSONTyped = exports.ProductSourceBcbFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ProductSourceBcbFromJSON(json) {
19
+ return ProductSourceBcbFromJSONTyped(json, false);
20
+ }
21
+ exports.ProductSourceBcbFromJSON = ProductSourceBcbFromJSON;
22
+ function ProductSourceBcbFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'id': json['id'],
28
+ 'unitPrice': !(0, runtime_1.exists)(json, 'unitPrice') ? json['unitPrice'] : json['unitPrice'],
29
+ 'unitPriceEffectiveDate': !(0, runtime_1.exists)(json, 'unitPriceEffectiveDate') ? json['unitPriceEffectiveDate'] : (new Date(json['unitPriceEffectiveDate'])),
30
+ };
31
+ }
32
+ exports.ProductSourceBcbFromJSONTyped = ProductSourceBcbFromJSONTyped;
33
+ function ProductSourceBcbToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'id': value.id,
42
+ 'unitPrice': value.unitPrice,
43
+ 'unitPriceEffectiveDate': value.unitPriceEffectiveDate === undefined ? undefined : (value.unitPriceEffectiveDate === null ? null : value.unitPriceEffectiveDate.toISOString()),
44
+ };
45
+ }
46
+ exports.ProductSourceBcbToJSON = ProductSourceBcbToJSON;
@@ -0,0 +1,131 @@
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 { DataProvider } from './DataProvider';
13
+ import { ProductSourceFieldsBarcodes } from './ProductSourceFieldsBarcodes';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ProductSourceFields
18
+ */
19
+ export interface ProductSourceFields {
20
+ /**
21
+ *
22
+ * @type {ProductSourceFieldsBarcodes}
23
+ * @memberof ProductSourceFields
24
+ */
25
+ barcodes: ProductSourceFieldsBarcodes;
26
+ /**
27
+ *
28
+ * @type {DataProvider}
29
+ * @memberof ProductSourceFields
30
+ */
31
+ name: DataProvider | null;
32
+ /**
33
+ *
34
+ * @type {DataProvider}
35
+ * @memberof ProductSourceFields
36
+ */
37
+ shortName: DataProvider | null;
38
+ /**
39
+ *
40
+ * @type {DataProvider}
41
+ * @memberof ProductSourceFields
42
+ */
43
+ dci: DataProvider | null;
44
+ /**
45
+ *
46
+ * @type {DataProvider}
47
+ * @memberof ProductSourceFields
48
+ */
49
+ unitWeight: DataProvider | null;
50
+ /**
51
+ *
52
+ * @type {DataProvider}
53
+ * @memberof ProductSourceFields
54
+ */
55
+ unitPrice: DataProvider | null;
56
+ /**
57
+ *
58
+ * @type {DataProvider}
59
+ * @memberof ProductSourceFields
60
+ */
61
+ unitPriceEffectiveDate: DataProvider | null;
62
+ /**
63
+ *
64
+ * @type {DataProvider}
65
+ * @memberof ProductSourceFields
66
+ */
67
+ type: DataProvider | null;
68
+ /**
69
+ *
70
+ * @type {DataProvider}
71
+ * @memberof ProductSourceFields
72
+ */
73
+ secondaryType: DataProvider | null;
74
+ /**
75
+ *
76
+ * @type {DataProvider}
77
+ * @memberof ProductSourceFields
78
+ */
79
+ laboratory: DataProvider | null;
80
+ /**
81
+ *
82
+ * @type {DataProvider}
83
+ * @memberof ProductSourceFields
84
+ */
85
+ vat: DataProvider | null;
86
+ /**
87
+ *
88
+ * @type {DataProvider}
89
+ * @memberof ProductSourceFields
90
+ */
91
+ narcoticPrescription: DataProvider | null;
92
+ /**
93
+ *
94
+ * @type {DataProvider}
95
+ * @memberof ProductSourceFields
96
+ */
97
+ storageType: DataProvider | null;
98
+ /**
99
+ *
100
+ * @type {DataProvider}
101
+ * @memberof ProductSourceFields
102
+ */
103
+ marketStatus: DataProvider | null;
104
+ /**
105
+ *
106
+ * @type {DataProvider}
107
+ * @memberof ProductSourceFields
108
+ */
109
+ dispensationPlace: DataProvider | null;
110
+ /**
111
+ *
112
+ * @type {DataProvider}
113
+ * @memberof ProductSourceFields
114
+ */
115
+ isOtc: DataProvider | null;
116
+ /**
117
+ *
118
+ * @type {DataProvider}
119
+ * @memberof ProductSourceFields
120
+ */
121
+ isDrugInSport: DataProvider | null;
122
+ /**
123
+ *
124
+ * @type {Array<DataProvider>}
125
+ * @memberof ProductSourceFields
126
+ */
127
+ tags: Array<DataProvider>;
128
+ }
129
+ export declare function ProductSourceFieldsFromJSON(json: any): ProductSourceFields;
130
+ export declare function ProductSourceFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSourceFields;
131
+ export declare function ProductSourceFieldsToJSON(value?: ProductSourceFields | null): any;