@lcdp/api-react-rest-client 2.4.0-develop.5667191056 → 2.4.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 (84) hide show
  1. package/notification/src/apis/SearchNotificationTypeApi.d.ts +2 -13
  2. package/notification/src/apis/SearchNotificationTypeApi.js +9 -82
  3. package/package.json +1 -1
  4. package/product/src/apis/ManageProductApi.d.ts +0 -2
  5. package/product/src/apis/ManageProductApi.js +0 -6
  6. package/product/src/apis/SearchProductApi.d.ts +0 -1
  7. package/product/src/apis/SearchProductApi.js +0 -3
  8. package/product/src/apis/SearchProductMetadataApi.d.ts +0 -22
  9. package/product/src/apis/SearchProductMetadataApi.js +8 -154
  10. package/product/src/models/Image.d.ts +0 -7
  11. package/product/src/models/Image.js +0 -3
  12. package/product/src/models/Product.d.ts +37 -44
  13. package/product/src/models/Product.js +31 -33
  14. package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -6
  15. package/product/src/models/ProductCreationOrUpdateParameters.js +2 -2
  16. package/product/src/models/ProductProscription.d.ts +0 -7
  17. package/product/src/models/ProductProscription.js +0 -3
  18. package/product/src/models/{DataProvider.d.ts → ProductProvider.d.ts} +5 -7
  19. package/product/src/models/ProductProvider.js +38 -0
  20. package/product/src/models/index.d.ts +1 -6
  21. package/product/src/models/index.js +1 -6
  22. package/catalog/index.d.ts +0 -1
  23. package/catalog/index.js +0 -17
  24. package/catalog/src/apis/ManageProductInsightApi.d.ts +0 -54
  25. package/catalog/src/apis/ManageProductInsightApi.js +0 -295
  26. package/catalog/src/apis/SearchProductInsightApi.d.ts +0 -54
  27. package/catalog/src/apis/SearchProductInsightApi.js +0 -249
  28. package/catalog/src/apis/index.d.ts +0 -2
  29. package/catalog/src/apis/index.js +0 -18
  30. package/catalog/src/index.d.ts +0 -3
  31. package/catalog/src/index.js +0 -19
  32. package/catalog/src/models/Barcodes.d.ts +0 -45
  33. package/catalog/src/models/Barcodes.js +0 -48
  34. package/catalog/src/models/HttpLink.d.ts +0 -27
  35. package/catalog/src/models/HttpLink.js +0 -41
  36. package/catalog/src/models/LaboratoryLink.d.ts +0 -34
  37. package/catalog/src/models/LaboratoryLink.js +0 -50
  38. package/catalog/src/models/LaboratoryLinkAllOf.d.ts +0 -33
  39. package/catalog/src/models/LaboratoryLinkAllOf.js +0 -44
  40. package/catalog/src/models/PaginatedObject.d.ts +0 -28
  41. package/catalog/src/models/PaginatedObject.js +0 -42
  42. package/catalog/src/models/PaginatedProductInsights.d.ts +0 -29
  43. package/catalog/src/models/PaginatedProductInsights.js +0 -50
  44. package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +0 -28
  45. package/catalog/src/models/PaginatedProductInsightsAllOf.js +0 -42
  46. package/catalog/src/models/PagingMetadata.d.ts +0 -45
  47. package/catalog/src/models/PagingMetadata.js +0 -47
  48. package/catalog/src/models/ProductInsight.d.ts +0 -106
  49. package/catalog/src/models/ProductInsight.js +0 -73
  50. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +0 -89
  51. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +0 -64
  52. package/catalog/src/models/ProductInsightJournal.d.ts +0 -33
  53. package/catalog/src/models/ProductInsightJournal.js +0 -44
  54. package/catalog/src/models/ProductSecondaryTypeLink.d.ts +0 -34
  55. package/catalog/src/models/ProductSecondaryTypeLink.js +0 -50
  56. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +0 -33
  57. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +0 -44
  58. package/catalog/src/models/ProductStorageType.d.ts +0 -25
  59. package/catalog/src/models/ProductStorageType.js +0 -40
  60. package/catalog/src/models/ProductTypeLink.d.ts +0 -34
  61. package/catalog/src/models/ProductTypeLink.js +0 -50
  62. package/catalog/src/models/ProductTypeLinkAllOf.d.ts +0 -33
  63. package/catalog/src/models/ProductTypeLinkAllOf.js +0 -44
  64. package/catalog/src/models/RestError.d.ts +0 -85
  65. package/catalog/src/models/RestError.js +0 -97
  66. package/catalog/src/models/VatLink.d.ts +0 -40
  67. package/catalog/src/models/VatLink.js +0 -50
  68. package/catalog/src/models/VatLinkAllOf.d.ts +0 -39
  69. package/catalog/src/models/VatLinkAllOf.js +0 -46
  70. package/catalog/src/models/index.d.ts +0 -19
  71. package/catalog/src/models/index.js +0 -35
  72. package/catalog/src/runtime.d.ts +0 -149
  73. package/catalog/src/runtime.js +0 -480
  74. package/product/src/models/DataProvider.js +0 -40
  75. package/product/src/models/ProductJournal.d.ts +0 -27
  76. package/product/src/models/ProductJournal.js +0 -41
  77. package/product/src/models/ProductSource.d.ts +0 -47
  78. package/product/src/models/ProductSource.js +0 -49
  79. package/product/src/models/ProductSourceBcb.d.ts +0 -39
  80. package/product/src/models/ProductSourceBcb.js +0 -46
  81. package/product/src/models/ProductSourceFields.d.ts +0 -131
  82. package/product/src/models/ProductSourceFields.js +0 -77
  83. package/product/src/models/ProductSourceFieldsBarcodes.d.ts +0 -46
  84. package/product/src/models/ProductSourceFieldsBarcodes.js +0 -48
@@ -13,10 +13,9 @@ 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';
17
16
  import { ProductMarketStatus } from './ProductMarketStatus';
17
+ import { ProductProvider } from './ProductProvider';
18
18
  import { ProductSecondaryType } from './ProductSecondaryType';
19
- import { ProductSource } from './ProductSource';
20
19
  import { ProductStatus } from './ProductStatus';
21
20
  import { ProductStorageType } from './ProductStorageType';
22
21
  import { ProductType } from './ProductType';
@@ -33,163 +32,157 @@ export interface Product {
33
32
  * @type {number}
34
33
  * @memberof Product
35
34
  */
36
- id: number;
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>;
37
48
  /**
38
49
  *
39
50
  * @type {Barcodes}
40
51
  * @memberof Product
41
52
  */
42
- barcodes: Barcodes;
53
+ barcodes?: Barcodes;
43
54
  /**
44
55
  *
45
56
  * @type {string}
46
57
  * @memberof Product
47
58
  */
48
- name: string;
59
+ name?: string;
49
60
  /**
50
61
  *
51
62
  * @type {string}
52
63
  * @memberof Product
53
64
  */
54
- shortName: string | null;
65
+ shortName?: string | null;
55
66
  /**
56
67
  *
57
68
  * @type {string}
58
69
  * @memberof Product
59
70
  */
60
- dci: string | null;
71
+ dci?: string | null;
61
72
  /**
62
73
  * Weight of a single unit in grams
63
74
  * @type {number}
64
75
  * @memberof Product
65
76
  */
66
- unitWeight: number | null;
77
+ unitWeight?: number | null;
67
78
  /**
68
79
  * Public price of the product
69
80
  * @type {number}
70
81
  * @memberof Product
71
82
  */
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;
83
+ unitPrice?: number | null;
79
84
  /**
80
85
  *
81
86
  * @type {ProductType}
82
87
  * @memberof Product
83
88
  */
84
- type: ProductType | null;
89
+ type?: ProductType | null;
85
90
  /**
86
91
  *
87
92
  * @type {ProductSecondaryType}
88
93
  * @memberof Product
89
94
  */
90
- secondaryType: ProductSecondaryType | null;
95
+ secondaryType?: ProductSecondaryType | null;
91
96
  /**
92
97
  *
93
98
  * @type {LaboratoryLink}
94
99
  * @memberof Product
95
100
  */
96
- laboratory: LaboratoryLink | null;
101
+ laboratory?: LaboratoryLink | null;
97
102
  /**
98
103
  *
99
104
  * @type {Vat}
100
105
  * @memberof Product
101
106
  */
102
- vat: Vat | null;
107
+ vat?: Vat | null;
103
108
  /**
104
109
  *
105
110
  * @type {boolean}
106
111
  * @memberof Product
107
112
  */
108
- narcoticPrescription: boolean | null;
113
+ narcoticPrescription?: boolean | null;
109
114
  /**
110
115
  *
111
116
  * @type {ProductStorageType}
112
117
  * @memberof Product
113
118
  */
114
- storageType: ProductStorageType | null;
119
+ storageType?: ProductStorageType | null;
115
120
  /**
116
121
  *
117
122
  * @type {ProductStatus}
118
123
  * @memberof Product
119
124
  */
120
- status: ProductStatus | null;
125
+ status?: ProductStatus | null;
121
126
  /**
122
127
  *
123
128
  * @type {ProductMarketStatus}
124
129
  * @memberof Product
125
130
  */
126
- marketStatus: ProductMarketStatus | null;
131
+ marketStatus?: ProductMarketStatus | null;
127
132
  /**
128
133
  *
129
134
  * @type {ProductDispensationPlace}
130
135
  * @memberof Product
131
136
  */
132
- dispensationPlace: ProductDispensationPlace | null;
137
+ dispensationPlace?: ProductDispensationPlace | null;
133
138
  /**
134
139
  *
135
140
  * @type {boolean}
136
141
  * @memberof Product
137
142
  */
138
- isOtc: boolean | null;
143
+ isOtc?: boolean;
139
144
  /**
140
145
  *
141
146
  * @type {boolean}
142
147
  * @memberof Product
143
148
  */
144
- isDrugInSport: boolean | null;
149
+ isDrugInSport?: boolean | null;
145
150
  /**
146
151
  *
147
152
  * @type {HttpLink}
148
153
  * @memberof Product
149
154
  */
150
- images: HttpLink;
155
+ images?: HttpLink;
151
156
  /**
152
157
  * Creation date of this product
153
158
  * @type {Date}
154
159
  * @memberof Product
155
160
  */
156
- createdAt: Date;
161
+ createdAt?: Date;
157
162
  /**
158
163
  *
159
164
  * @type {Statistics}
160
165
  * @memberof Product
161
166
  */
162
- statistics: Statistics;
167
+ statistics?: Statistics;
163
168
  /**
164
169
  * If True, can only be sold by LABORATORY. If False, it can be sold by anyone.
165
170
  * @type {boolean}
166
171
  * @memberof Product
167
172
  */
168
- restricted: boolean;
173
+ restricted?: boolean;
169
174
  /**
170
175
  *
171
176
  * @type {HttpLink}
172
177
  * @memberof Product
173
178
  */
174
- proscriptions: HttpLink;
179
+ proscriptions?: HttpLink;
175
180
  /**
176
181
  * Associated tags for this product
177
182
  * @type {Array<string>}
178
183
  * @memberof Product
179
184
  */
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;
185
+ tags?: Array<string>;
193
186
  }
194
187
  export declare function ProductFromJSON(json: any): Product;
195
188
  export declare function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product;
@@ -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");
17
18
  var Barcodes_1 = require("./Barcodes");
18
19
  var HttpLink_1 = require("./HttpLink");
19
20
  var LaboratoryLink_1 = require("./LaboratoryLink");
20
21
  var ProductDispensationPlace_1 = require("./ProductDispensationPlace");
21
- var ProductJournal_1 = require("./ProductJournal");
22
22
  var ProductMarketStatus_1 = require("./ProductMarketStatus");
23
+ var ProductProvider_1 = require("./ProductProvider");
23
24
  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,33 +36,32 @@ function ProductFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
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']),
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'],
66
65
  };
67
66
  }
68
67
  exports.ProductFromJSONTyped = ProductFromJSONTyped;
@@ -75,13 +74,14 @@ function ProductToJSON(value) {
75
74
  }
76
75
  return {
77
76
  'id': value.id,
77
+ 'isExternalSyncEnabled': value.isExternalSyncEnabled,
78
+ 'providers': value.providers === undefined ? undefined : (value.providers.map(ProductProvider_1.ProductProviderToJSON)),
78
79
  'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
79
80
  'name': value.name,
80
81
  'shortName': value.shortName,
81
82
  'dci': value.dci,
82
83
  'unitWeight': value.unitWeight,
83
84
  '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,13 +94,11 @@ 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.toISOString()),
97
+ 'createdAt': value.createdAt === undefined ? undefined : (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),
104
102
  };
105
103
  }
106
104
  exports.ProductToJSON = ProductToJSON;
@@ -20,6 +20,12 @@ 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;
23
29
  /**
24
30
  *
25
31
  * @type {Barcodes}
@@ -56,12 +62,6 @@ export interface ProductCreationOrUpdateParameters {
56
62
  * @memberof ProductCreationOrUpdateParameters
57
63
  */
58
64
  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'],
32
33
  'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
33
34
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
34
35
  'shortName': !(0, runtime_1.exists)(json, 'shortName') ? json['shortName'] : json['shortName'],
35
36
  'dci': !(0, runtime_1.exists)(json, 'dci') ? json['dci'] : json['dci'],
36
37
  'unitWeight': !(0, runtime_1.exists)(json, 'unitWeight') ? json['unitWeight'] : json['unitWeight'],
37
38
  '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,
62
63
  'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
63
64
  'name': value.name,
64
65
  'shortName': value.shortName,
65
66
  'dci': value.dci,
66
67
  'unitWeight': value.unitWeight,
67
68
  '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,
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { DataProvider } from './DataProvider';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -34,12 +33,6 @@ export interface ProductProscription {
34
33
  * @memberof ProductProscription
35
34
  */
36
35
  createdAt?: Date;
37
- /**
38
- *
39
- * @type {DataProvider}
40
- * @memberof ProductProscription
41
- */
42
- source?: DataProvider;
43
36
  }
44
37
  export declare function ProductProscriptionFromJSON(json: any): ProductProscription;
45
38
  export declare function ProductProscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProscription;
@@ -15,7 +15,6 @@
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");
19
18
  function ProductProscriptionFromJSON(json) {
20
19
  return ProductProscriptionFromJSONTyped(json, false);
21
20
  }
@@ -28,7 +27,6 @@ function ProductProscriptionFromJSONTyped(json, ignoreDiscriminator) {
28
27
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
29
28
  'batch': !(0, runtime_1.exists)(json, 'batch') ? undefined : json['batch'],
30
29
  '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']),
32
30
  };
33
31
  }
34
32
  exports.ProductProscriptionFromJSONTyped = ProductProscriptionFromJSONTyped;
@@ -43,7 +41,6 @@ function ProductProscriptionToJSON(value) {
43
41
  'id': value.id,
44
42
  'batch': value.batch,
45
43
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
46
- 'source': (0, DataProvider_1.DataProviderToJSON)(value.source),
47
44
  };
48
45
  }
49
46
  exports.ProductProscriptionToJSON = ProductProscriptionToJSON;
@@ -14,12 +14,10 @@
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
17
- export declare enum DataProvider {
17
+ export declare enum ProductProvider {
18
18
  VIDAL = "VIDAL",
19
- BCB = "BCB",
20
- LCDPCATALOG = "LCDP_CATALOG",
21
- USER = "USER"
19
+ BCB = "BCB"
22
20
  }
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;
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;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@lecomptoirdespharmacies.fr
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ProductProviderToJSON = exports.ProductProviderFromJSONTyped = exports.ProductProviderFromJSON = exports.ProductProvider = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var ProductProvider;
23
+ (function (ProductProvider) {
24
+ ProductProvider["VIDAL"] = "VIDAL";
25
+ ProductProvider["BCB"] = "BCB";
26
+ })(ProductProvider = exports.ProductProvider || (exports.ProductProvider = {}));
27
+ function ProductProviderFromJSON(json) {
28
+ return ProductProviderFromJSONTyped(json, false);
29
+ }
30
+ exports.ProductProviderFromJSON = ProductProviderFromJSON;
31
+ function ProductProviderFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.ProductProviderFromJSONTyped = ProductProviderFromJSONTyped;
35
+ function ProductProviderToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.ProductProviderToJSON = ProductProviderToJSON;
@@ -1,5 +1,4 @@
1
1
  export * from './Barcodes';
2
- export * from './DataProvider';
3
2
  export * from './HttpLink';
4
3
  export * from './Image';
5
4
  export * from './ImageCreationParameters';
@@ -15,15 +14,11 @@ export * from './PagingMetadata';
15
14
  export * from './Product';
16
15
  export * from './ProductCreationOrUpdateParameters';
17
16
  export * from './ProductDispensationPlace';
18
- export * from './ProductJournal';
19
17
  export * from './ProductMarketStatus';
20
18
  export * from './ProductProscription';
21
19
  export * from './ProductProscriptionCreationParameters';
20
+ export * from './ProductProvider';
22
21
  export * from './ProductSecondaryType';
23
- export * from './ProductSource';
24
- export * from './ProductSourceBcb';
25
- export * from './ProductSourceFields';
26
- export * from './ProductSourceFieldsBarcodes';
27
22
  export * from './ProductStatus';
28
23
  export * from './ProductStorageType';
29
24
  export * from './ProductType';
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Barcodes"), exports);
18
- __exportStar(require("./DataProvider"), exports);
19
18
  __exportStar(require("./HttpLink"), exports);
20
19
  __exportStar(require("./Image"), exports);
21
20
  __exportStar(require("./ImageCreationParameters"), exports);
@@ -31,15 +30,11 @@ __exportStar(require("./PagingMetadata"), exports);
31
30
  __exportStar(require("./Product"), exports);
32
31
  __exportStar(require("./ProductCreationOrUpdateParameters"), exports);
33
32
  __exportStar(require("./ProductDispensationPlace"), exports);
34
- __exportStar(require("./ProductJournal"), exports);
35
33
  __exportStar(require("./ProductMarketStatus"), exports);
36
34
  __exportStar(require("./ProductProscription"), exports);
37
35
  __exportStar(require("./ProductProscriptionCreationParameters"), exports);
36
+ __exportStar(require("./ProductProvider"), exports);
38
37
  __exportStar(require("./ProductSecondaryType"), exports);
39
- __exportStar(require("./ProductSource"), exports);
40
- __exportStar(require("./ProductSourceBcb"), exports);
41
- __exportStar(require("./ProductSourceFields"), exports);
42
- __exportStar(require("./ProductSourceFieldsBarcodes"), exports);
43
38
  __exportStar(require("./ProductStatus"), exports);
44
39
  __exportStar(require("./ProductStorageType"), exports);
45
40
  __exportStar(require("./ProductType"), exports);
@@ -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, ProductInsightCreateOrUpdateParameters } from '../models';
14
- export interface CreateProductInsightRequest {
15
- productInsightCreateOrUpdateParameters: ProductInsightCreateOrUpdateParameters;
16
- }
17
- export interface DeleteProductInsightRequest {
18
- productInsightId: number;
19
- }
20
- export interface UpdateProductInsightRequest {
21
- productInsightId: number;
22
- productInsightCreateOrUpdateParameters: ProductInsightCreateOrUpdateParameters;
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
- }