@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
@@ -0,0 +1,77 @@
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.ProductSourceFieldsToJSON = exports.ProductSourceFieldsFromJSONTyped = exports.ProductSourceFieldsFromJSON = void 0;
17
+ var DataProvider_1 = require("./DataProvider");
18
+ var ProductSourceFieldsBarcodes_1 = require("./ProductSourceFieldsBarcodes");
19
+ function ProductSourceFieldsFromJSON(json) {
20
+ return ProductSourceFieldsFromJSONTyped(json, false);
21
+ }
22
+ exports.ProductSourceFieldsFromJSON = ProductSourceFieldsFromJSON;
23
+ function ProductSourceFieldsFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'barcodes': (0, ProductSourceFieldsBarcodes_1.ProductSourceFieldsBarcodesFromJSON)(json['barcodes']),
29
+ 'name': (0, DataProvider_1.DataProviderFromJSON)(json['name']),
30
+ 'shortName': (0, DataProvider_1.DataProviderFromJSON)(json['shortName']),
31
+ 'dci': (0, DataProvider_1.DataProviderFromJSON)(json['dci']),
32
+ 'unitWeight': (0, DataProvider_1.DataProviderFromJSON)(json['unitWeight']),
33
+ 'unitPrice': (0, DataProvider_1.DataProviderFromJSON)(json['unitPrice']),
34
+ 'unitPriceEffectiveDate': (0, DataProvider_1.DataProviderFromJSON)(json['unitPriceEffectiveDate']),
35
+ 'type': (0, DataProvider_1.DataProviderFromJSON)(json['type']),
36
+ 'secondaryType': (0, DataProvider_1.DataProviderFromJSON)(json['secondaryType']),
37
+ 'laboratory': (0, DataProvider_1.DataProviderFromJSON)(json['laboratory']),
38
+ 'vat': (0, DataProvider_1.DataProviderFromJSON)(json['vat']),
39
+ 'narcoticPrescription': (0, DataProvider_1.DataProviderFromJSON)(json['narcoticPrescription']),
40
+ 'storageType': (0, DataProvider_1.DataProviderFromJSON)(json['storageType']),
41
+ 'marketStatus': (0, DataProvider_1.DataProviderFromJSON)(json['marketStatus']),
42
+ 'dispensationPlace': (0, DataProvider_1.DataProviderFromJSON)(json['dispensationPlace']),
43
+ 'isOtc': (0, DataProvider_1.DataProviderFromJSON)(json['isOtc']),
44
+ 'isDrugInSport': (0, DataProvider_1.DataProviderFromJSON)(json['isDrugInSport']),
45
+ 'tags': (json['tags'].map(DataProvider_1.DataProviderFromJSON)),
46
+ };
47
+ }
48
+ exports.ProductSourceFieldsFromJSONTyped = ProductSourceFieldsFromJSONTyped;
49
+ function ProductSourceFieldsToJSON(value) {
50
+ if (value === undefined) {
51
+ return undefined;
52
+ }
53
+ if (value === null) {
54
+ return null;
55
+ }
56
+ return {
57
+ 'barcodes': (0, ProductSourceFieldsBarcodes_1.ProductSourceFieldsBarcodesToJSON)(value.barcodes),
58
+ 'name': (0, DataProvider_1.DataProviderToJSON)(value.name),
59
+ 'shortName': (0, DataProvider_1.DataProviderToJSON)(value.shortName),
60
+ 'dci': (0, DataProvider_1.DataProviderToJSON)(value.dci),
61
+ 'unitWeight': (0, DataProvider_1.DataProviderToJSON)(value.unitWeight),
62
+ 'unitPrice': (0, DataProvider_1.DataProviderToJSON)(value.unitPrice),
63
+ 'unitPriceEffectiveDate': (0, DataProvider_1.DataProviderToJSON)(value.unitPriceEffectiveDate),
64
+ 'type': (0, DataProvider_1.DataProviderToJSON)(value.type),
65
+ 'secondaryType': (0, DataProvider_1.DataProviderToJSON)(value.secondaryType),
66
+ 'laboratory': (0, DataProvider_1.DataProviderToJSON)(value.laboratory),
67
+ 'vat': (0, DataProvider_1.DataProviderToJSON)(value.vat),
68
+ 'narcoticPrescription': (0, DataProvider_1.DataProviderToJSON)(value.narcoticPrescription),
69
+ 'storageType': (0, DataProvider_1.DataProviderToJSON)(value.storageType),
70
+ 'marketStatus': (0, DataProvider_1.DataProviderToJSON)(value.marketStatus),
71
+ 'dispensationPlace': (0, DataProvider_1.DataProviderToJSON)(value.dispensationPlace),
72
+ 'isOtc': (0, DataProvider_1.DataProviderToJSON)(value.isOtc),
73
+ 'isDrugInSport': (0, DataProvider_1.DataProviderToJSON)(value.isDrugInSport),
74
+ 'tags': (value.tags.map(DataProvider_1.DataProviderToJSON)),
75
+ };
76
+ }
77
+ exports.ProductSourceFieldsToJSON = ProductSourceFieldsToJSON;
@@ -0,0 +1,46 @@
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
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductSourceFieldsBarcodes
17
+ */
18
+ export interface ProductSourceFieldsBarcodes {
19
+ /**
20
+ *
21
+ * @type {DataProvider}
22
+ * @memberof ProductSourceFieldsBarcodes
23
+ */
24
+ cip: DataProvider | null;
25
+ /**
26
+ *
27
+ * @type {DataProvider}
28
+ * @memberof ProductSourceFieldsBarcodes
29
+ */
30
+ cip13: DataProvider | null;
31
+ /**
32
+ *
33
+ * @type {DataProvider}
34
+ * @memberof ProductSourceFieldsBarcodes
35
+ */
36
+ eans: DataProvider | null;
37
+ /**
38
+ *
39
+ * @type {DataProvider}
40
+ * @memberof ProductSourceFieldsBarcodes
41
+ */
42
+ principal: DataProvider | null;
43
+ }
44
+ export declare function ProductSourceFieldsBarcodesFromJSON(json: any): ProductSourceFieldsBarcodes;
45
+ export declare function ProductSourceFieldsBarcodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSourceFieldsBarcodes;
46
+ export declare function ProductSourceFieldsBarcodesToJSON(value?: ProductSourceFieldsBarcodes | null): any;
@@ -0,0 +1,48 @@
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.ProductSourceFieldsBarcodesToJSON = exports.ProductSourceFieldsBarcodesFromJSONTyped = exports.ProductSourceFieldsBarcodesFromJSON = void 0;
17
+ var DataProvider_1 = require("./DataProvider");
18
+ function ProductSourceFieldsBarcodesFromJSON(json) {
19
+ return ProductSourceFieldsBarcodesFromJSONTyped(json, false);
20
+ }
21
+ exports.ProductSourceFieldsBarcodesFromJSON = ProductSourceFieldsBarcodesFromJSON;
22
+ function ProductSourceFieldsBarcodesFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'cip': (0, DataProvider_1.DataProviderFromJSON)(json['cip']),
28
+ 'cip13': (0, DataProvider_1.DataProviderFromJSON)(json['cip13']),
29
+ 'eans': (0, DataProvider_1.DataProviderFromJSON)(json['eans']),
30
+ 'principal': (0, DataProvider_1.DataProviderFromJSON)(json['principal']),
31
+ };
32
+ }
33
+ exports.ProductSourceFieldsBarcodesFromJSONTyped = ProductSourceFieldsBarcodesFromJSONTyped;
34
+ function ProductSourceFieldsBarcodesToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'cip': (0, DataProvider_1.DataProviderToJSON)(value.cip),
43
+ 'cip13': (0, DataProvider_1.DataProviderToJSON)(value.cip13),
44
+ 'eans': (0, DataProvider_1.DataProviderToJSON)(value.eans),
45
+ 'principal': (0, DataProvider_1.DataProviderToJSON)(value.principal),
46
+ };
47
+ }
48
+ exports.ProductSourceFieldsBarcodesToJSON = ProductSourceFieldsBarcodesToJSON;
@@ -1,4 +1,5 @@
1
1
  export * from './Barcodes';
2
+ export * from './DataProvider';
2
3
  export * from './HttpLink';
3
4
  export * from './Image';
4
5
  export * from './ImageCreationParameters';
@@ -14,11 +15,15 @@ export * from './PagingMetadata';
14
15
  export * from './Product';
15
16
  export * from './ProductCreationOrUpdateParameters';
16
17
  export * from './ProductDispensationPlace';
18
+ export * from './ProductJournal';
17
19
  export * from './ProductMarketStatus';
18
20
  export * from './ProductProscription';
19
21
  export * from './ProductProscriptionCreationParameters';
20
- export * from './ProductProvider';
21
22
  export * from './ProductSecondaryType';
23
+ export * from './ProductSource';
24
+ export * from './ProductSourceBcb';
25
+ export * from './ProductSourceFields';
26
+ export * from './ProductSourceFieldsBarcodes';
22
27
  export * from './ProductStatus';
23
28
  export * from './ProductStorageType';
24
29
  export * from './ProductType';
@@ -15,6 +15,7 @@ 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);
18
19
  __exportStar(require("./HttpLink"), exports);
19
20
  __exportStar(require("./Image"), exports);
20
21
  __exportStar(require("./ImageCreationParameters"), exports);
@@ -30,11 +31,15 @@ __exportStar(require("./PagingMetadata"), exports);
30
31
  __exportStar(require("./Product"), exports);
31
32
  __exportStar(require("./ProductCreationOrUpdateParameters"), exports);
32
33
  __exportStar(require("./ProductDispensationPlace"), exports);
34
+ __exportStar(require("./ProductJournal"), exports);
33
35
  __exportStar(require("./ProductMarketStatus"), exports);
34
36
  __exportStar(require("./ProductProscription"), exports);
35
37
  __exportStar(require("./ProductProscriptionCreationParameters"), exports);
36
- __exportStar(require("./ProductProvider"), exports);
37
38
  __exportStar(require("./ProductSecondaryType"), exports);
39
+ __exportStar(require("./ProductSource"), exports);
40
+ __exportStar(require("./ProductSourceBcb"), exports);
41
+ __exportStar(require("./ProductSourceFields"), exports);
42
+ __exportStar(require("./ProductSourceFieldsBarcodes"), exports);
38
43
  __exportStar(require("./ProductStatus"), exports);
39
44
  __exportStar(require("./ProductStorageType"), exports);
40
45
  __exportStar(require("./ProductType"), exports);
@@ -1,38 +0,0 @@
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;