@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
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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.PaginatedObjectToJSON = exports.PaginatedObjectFromJSONTyped = exports.PaginatedObjectFromJSON = void 0;
17
+ var PagingMetadata_1 = require("./PagingMetadata");
18
+ function PaginatedObjectFromJSON(json) {
19
+ return PaginatedObjectFromJSONTyped(json, false);
20
+ }
21
+ exports.PaginatedObjectFromJSON = PaginatedObjectFromJSON;
22
+ function PaginatedObjectFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'metadata': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
28
+ };
29
+ }
30
+ exports.PaginatedObjectFromJSONTyped = PaginatedObjectFromJSONTyped;
31
+ function PaginatedObjectToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value.metadata),
40
+ };
41
+ }
42
+ exports.PaginatedObjectToJSON = PaginatedObjectToJSON;
@@ -0,0 +1,29 @@
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 { PaginatedObject } from './PaginatedObject';
13
+ import { ProductInsight } from './ProductInsight';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedProductInsights
18
+ */
19
+ export interface PaginatedProductInsights extends PaginatedObject {
20
+ /**
21
+ *
22
+ * @type {Array<ProductInsight>}
23
+ * @memberof PaginatedProductInsights
24
+ */
25
+ records: Array<ProductInsight>;
26
+ }
27
+ export declare function PaginatedProductInsightsFromJSON(json: any): PaginatedProductInsights;
28
+ export declare function PaginatedProductInsightsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductInsights;
29
+ export declare function PaginatedProductInsightsToJSON(value?: PaginatedProductInsights | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.PaginatedProductInsightsToJSON = exports.PaginatedProductInsightsFromJSONTyped = exports.PaginatedProductInsightsFromJSON = void 0;
28
+ var PaginatedObject_1 = require("./PaginatedObject");
29
+ var ProductInsight_1 = require("./ProductInsight");
30
+ function PaginatedProductInsightsFromJSON(json) {
31
+ return PaginatedProductInsightsFromJSONTyped(json, false);
32
+ }
33
+ exports.PaginatedProductInsightsFromJSON = PaginatedProductInsightsFromJSON;
34
+ function PaginatedProductInsightsFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return __assign(__assign({}, (0, PaginatedObject_1.PaginatedObjectFromJSONTyped)(json, ignoreDiscriminator)), { 'records': (json['records'].map(ProductInsight_1.ProductInsightFromJSON)) });
39
+ }
40
+ exports.PaginatedProductInsightsFromJSONTyped = PaginatedProductInsightsFromJSONTyped;
41
+ function PaginatedProductInsightsToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return __assign(__assign({}, (0, PaginatedObject_1.PaginatedObjectToJSON)(value)), { 'records': (value.records.map(ProductInsight_1.ProductInsightToJSON)) });
49
+ }
50
+ exports.PaginatedProductInsightsToJSON = PaginatedProductInsightsToJSON;
@@ -0,0 +1,28 @@
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 { ProductInsight } from './ProductInsight';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedProductInsightsAllOf
17
+ */
18
+ export interface PaginatedProductInsightsAllOf {
19
+ /**
20
+ *
21
+ * @type {Array<ProductInsight>}
22
+ * @memberof PaginatedProductInsightsAllOf
23
+ */
24
+ records: Array<ProductInsight>;
25
+ }
26
+ export declare function PaginatedProductInsightsAllOfFromJSON(json: any): PaginatedProductInsightsAllOf;
27
+ export declare function PaginatedProductInsightsAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductInsightsAllOf;
28
+ export declare function PaginatedProductInsightsAllOfToJSON(value?: PaginatedProductInsightsAllOf | null): any;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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.PaginatedProductInsightsAllOfToJSON = exports.PaginatedProductInsightsAllOfFromJSONTyped = exports.PaginatedProductInsightsAllOfFromJSON = void 0;
17
+ var ProductInsight_1 = require("./ProductInsight");
18
+ function PaginatedProductInsightsAllOfFromJSON(json) {
19
+ return PaginatedProductInsightsAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.PaginatedProductInsightsAllOfFromJSON = PaginatedProductInsightsAllOfFromJSON;
22
+ function PaginatedProductInsightsAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'records': (json['records'].map(ProductInsight_1.ProductInsightFromJSON)),
28
+ };
29
+ }
30
+ exports.PaginatedProductInsightsAllOfFromJSONTyped = PaginatedProductInsightsAllOfFromJSONTyped;
31
+ function PaginatedProductInsightsAllOfToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'records': (value.records.map(ProductInsight_1.ProductInsightToJSON)),
40
+ };
41
+ }
42
+ exports.PaginatedProductInsightsAllOfToJSON = PaginatedProductInsightsAllOfToJSON;
@@ -0,0 +1,45 @@
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
+ /**
13
+ * All information about current and available pages
14
+ * @export
15
+ * @interface PagingMetadata
16
+ */
17
+ export interface PagingMetadata {
18
+ /**
19
+ * Current page requested. Start at 0.
20
+ * @type {number}
21
+ * @memberof PagingMetadata
22
+ */
23
+ page: number;
24
+ /**
25
+ * Number of item per page. 0 means that you only required metdata.
26
+ * @type {number}
27
+ * @memberof PagingMetadata
28
+ */
29
+ perPage: number;
30
+ /**
31
+ * Total number of item visible by the client in the request
32
+ * @type {number}
33
+ * @memberof PagingMetadata
34
+ */
35
+ totalVisible: number;
36
+ /**
37
+ * Total number of item found in database
38
+ * @type {number}
39
+ * @memberof PagingMetadata
40
+ */
41
+ totalFound: number;
42
+ }
43
+ export declare function PagingMetadataFromJSON(json: any): PagingMetadata;
44
+ export declare function PagingMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagingMetadata;
45
+ export declare function PagingMetadataToJSON(value?: PagingMetadata | null): any;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.PagingMetadataFromJSON = void 0;
17
+ function PagingMetadataFromJSON(json) {
18
+ return PagingMetadataFromJSONTyped(json, false);
19
+ }
20
+ exports.PagingMetadataFromJSON = PagingMetadataFromJSON;
21
+ function PagingMetadataFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'page': json['page'],
27
+ 'perPage': json['perPage'],
28
+ 'totalVisible': json['totalVisible'],
29
+ 'totalFound': json['totalFound'],
30
+ };
31
+ }
32
+ exports.PagingMetadataFromJSONTyped = PagingMetadataFromJSONTyped;
33
+ function PagingMetadataToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'page': value.page,
42
+ 'perPage': value.perPage,
43
+ 'totalVisible': value.totalVisible,
44
+ 'totalFound': value.totalFound,
45
+ };
46
+ }
47
+ exports.PagingMetadataToJSON = PagingMetadataToJSON;
@@ -0,0 +1,106 @@
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 { Barcodes } from './Barcodes';
13
+ import { LaboratoryLink } from './LaboratoryLink';
14
+ import { ProductInsightJournal } from './ProductInsightJournal';
15
+ import { ProductSecondaryTypeLink } from './ProductSecondaryTypeLink';
16
+ import { ProductStorageType } from './ProductStorageType';
17
+ import { ProductTypeLink } from './ProductTypeLink';
18
+ import { VatLink } from './VatLink';
19
+ /**
20
+ * A product insight is an element that describe particular values for some product fields. Note that an insight dispose of a unique numeric \'id\' identifier and is also identifiable by its signatures. Signatures are a list of string which are uniquely associated to this insight, they are oftenly composed of product barcodes. A consumer can fill insight signatures with any string (eg: product barcode) and consumer can then retrieve insights by these signatures. Important note : Difference between \'signatures\' and \'barcodes\' is that the first one is used to identify uniquely an insight and second one is used to give relevant field value to product, without unicity constraint.
21
+ * @export
22
+ * @interface ProductInsight
23
+ */
24
+ export interface ProductInsight {
25
+ /**
26
+ * Product Insight Id
27
+ * @type {number}
28
+ * @memberof ProductInsight
29
+ */
30
+ id: number;
31
+ /**
32
+ *
33
+ * @type {Array<string>}
34
+ * @memberof ProductInsight
35
+ */
36
+ signatures: Array<string>;
37
+ /**
38
+ *
39
+ * @type {Barcodes}
40
+ * @memberof ProductInsight
41
+ */
42
+ barcodes?: Barcodes;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ProductInsight
47
+ */
48
+ name?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ProductInsight
53
+ */
54
+ dci?: string | null;
55
+ /**
56
+ * Weight of a single unit in grams
57
+ * @type {number}
58
+ * @memberof ProductInsight
59
+ */
60
+ unitWeight?: number | null;
61
+ /**
62
+ * Public price of the product
63
+ * @type {number}
64
+ * @memberof ProductInsight
65
+ */
66
+ unitPrice?: number | null;
67
+ /**
68
+ *
69
+ * @type {ProductTypeLink}
70
+ * @memberof ProductInsight
71
+ */
72
+ type?: ProductTypeLink | null;
73
+ /**
74
+ *
75
+ * @type {ProductSecondaryTypeLink}
76
+ * @memberof ProductInsight
77
+ */
78
+ secondaryType?: ProductSecondaryTypeLink | null;
79
+ /**
80
+ *
81
+ * @type {LaboratoryLink}
82
+ * @memberof ProductInsight
83
+ */
84
+ laboratory?: LaboratoryLink | null;
85
+ /**
86
+ *
87
+ * @type {VatLink}
88
+ * @memberof ProductInsight
89
+ */
90
+ vat?: VatLink | null;
91
+ /**
92
+ *
93
+ * @type {ProductStorageType}
94
+ * @memberof ProductInsight
95
+ */
96
+ storageType?: ProductStorageType | null;
97
+ /**
98
+ *
99
+ * @type {ProductInsightJournal}
100
+ * @memberof ProductInsight
101
+ */
102
+ journal: ProductInsightJournal;
103
+ }
104
+ export declare function ProductInsightFromJSON(json: any): ProductInsight;
105
+ export declare function ProductInsightFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductInsight;
106
+ export declare function ProductInsightToJSON(value?: ProductInsight | null): any;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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.ProductInsightToJSON = exports.ProductInsightFromJSONTyped = exports.ProductInsightFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var Barcodes_1 = require("./Barcodes");
19
+ var LaboratoryLink_1 = require("./LaboratoryLink");
20
+ var ProductInsightJournal_1 = require("./ProductInsightJournal");
21
+ var ProductSecondaryTypeLink_1 = require("./ProductSecondaryTypeLink");
22
+ var ProductStorageType_1 = require("./ProductStorageType");
23
+ var ProductTypeLink_1 = require("./ProductTypeLink");
24
+ var VatLink_1 = require("./VatLink");
25
+ function ProductInsightFromJSON(json) {
26
+ return ProductInsightFromJSONTyped(json, false);
27
+ }
28
+ exports.ProductInsightFromJSON = ProductInsightFromJSON;
29
+ function ProductInsightFromJSONTyped(json, ignoreDiscriminator) {
30
+ if ((json === undefined) || (json === null)) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'signatures': json['signatures'],
36
+ 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
37
+ 'name': !(0, runtime_1.exists)(json, 'name') ? json['name'] : json['name'],
38
+ 'dci': !(0, runtime_1.exists)(json, 'dci') ? json['dci'] : json['dci'],
39
+ 'unitWeight': !(0, runtime_1.exists)(json, 'unitWeight') ? json['unitWeight'] : json['unitWeight'],
40
+ 'unitPrice': !(0, runtime_1.exists)(json, 'unitPrice') ? json['unitPrice'] : json['unitPrice'],
41
+ 'type': !(0, runtime_1.exists)(json, 'type') ? json['type'] : (0, ProductTypeLink_1.ProductTypeLinkFromJSON)(json['type']),
42
+ 'secondaryType': !(0, runtime_1.exists)(json, 'secondaryType') ? json['secondaryType'] : (0, ProductSecondaryTypeLink_1.ProductSecondaryTypeLinkFromJSON)(json['secondaryType']),
43
+ 'laboratory': !(0, runtime_1.exists)(json, 'laboratory') ? json['laboratory'] : (0, LaboratoryLink_1.LaboratoryLinkFromJSON)(json['laboratory']),
44
+ 'vat': !(0, runtime_1.exists)(json, 'vat') ? json['vat'] : (0, VatLink_1.VatLinkFromJSON)(json['vat']),
45
+ 'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
46
+ 'journal': (0, ProductInsightJournal_1.ProductInsightJournalFromJSON)(json['journal']),
47
+ };
48
+ }
49
+ exports.ProductInsightFromJSONTyped = ProductInsightFromJSONTyped;
50
+ function ProductInsightToJSON(value) {
51
+ if (value === undefined) {
52
+ return undefined;
53
+ }
54
+ if (value === null) {
55
+ return null;
56
+ }
57
+ return {
58
+ 'id': value.id,
59
+ 'signatures': value.signatures,
60
+ 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
61
+ 'name': value.name,
62
+ 'dci': value.dci,
63
+ 'unitWeight': value.unitWeight,
64
+ 'unitPrice': value.unitPrice,
65
+ 'type': (0, ProductTypeLink_1.ProductTypeLinkToJSON)(value.type),
66
+ 'secondaryType': (0, ProductSecondaryTypeLink_1.ProductSecondaryTypeLinkToJSON)(value.secondaryType),
67
+ 'laboratory': (0, LaboratoryLink_1.LaboratoryLinkToJSON)(value.laboratory),
68
+ 'vat': (0, VatLink_1.VatLinkToJSON)(value.vat),
69
+ 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType),
70
+ 'journal': (0, ProductInsightJournal_1.ProductInsightJournalToJSON)(value.journal),
71
+ };
72
+ }
73
+ exports.ProductInsightToJSON = ProductInsightToJSON;
@@ -0,0 +1,89 @@
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 { Barcodes } from './Barcodes';
13
+ import { ProductStorageType } from './ProductStorageType';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ProductInsightCreateOrUpdateParameters
18
+ */
19
+ export interface ProductInsightCreateOrUpdateParameters {
20
+ /**
21
+ *
22
+ * @type {Array<string>}
23
+ * @memberof ProductInsightCreateOrUpdateParameters
24
+ */
25
+ signatures: Array<string>;
26
+ /**
27
+ *
28
+ * @type {Barcodes}
29
+ * @memberof ProductInsightCreateOrUpdateParameters
30
+ */
31
+ barcodes?: Barcodes;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ProductInsightCreateOrUpdateParameters
36
+ */
37
+ name?: string | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ProductInsightCreateOrUpdateParameters
42
+ */
43
+ dci?: string | null;
44
+ /**
45
+ * Weight of a single unit in grams
46
+ * @type {number}
47
+ * @memberof ProductInsightCreateOrUpdateParameters
48
+ */
49
+ unitWeight?: number | null;
50
+ /**
51
+ * Public price of the product
52
+ * @type {number}
53
+ * @memberof ProductInsightCreateOrUpdateParameters
54
+ */
55
+ unitPrice?: number | null;
56
+ /**
57
+ * Product Type Identifier
58
+ * @type {string}
59
+ * @memberof ProductInsightCreateOrUpdateParameters
60
+ */
61
+ typeId?: string | null;
62
+ /**
63
+ * Product Secondary Type Identifier
64
+ * @type {string}
65
+ * @memberof ProductInsightCreateOrUpdateParameters
66
+ */
67
+ secondaryTypeId?: string | null;
68
+ /**
69
+ * Laboratory ID
70
+ * @type {number}
71
+ * @memberof ProductInsightCreateOrUpdateParameters
72
+ */
73
+ laboratoryId?: number | null;
74
+ /**
75
+ * VAT identifier
76
+ * @type {string}
77
+ * @memberof ProductInsightCreateOrUpdateParameters
78
+ */
79
+ vatId?: string | null;
80
+ /**
81
+ *
82
+ * @type {ProductStorageType}
83
+ * @memberof ProductInsightCreateOrUpdateParameters
84
+ */
85
+ storageType?: ProductStorageType | null;
86
+ }
87
+ export declare function ProductInsightCreateOrUpdateParametersFromJSON(json: any): ProductInsightCreateOrUpdateParameters;
88
+ export declare function ProductInsightCreateOrUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductInsightCreateOrUpdateParameters;
89
+ export declare function ProductInsightCreateOrUpdateParametersToJSON(value?: ProductInsightCreateOrUpdateParameters | null): any;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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.ProductInsightCreateOrUpdateParametersToJSON = exports.ProductInsightCreateOrUpdateParametersFromJSONTyped = exports.ProductInsightCreateOrUpdateParametersFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var Barcodes_1 = require("./Barcodes");
19
+ var ProductStorageType_1 = require("./ProductStorageType");
20
+ function ProductInsightCreateOrUpdateParametersFromJSON(json) {
21
+ return ProductInsightCreateOrUpdateParametersFromJSONTyped(json, false);
22
+ }
23
+ exports.ProductInsightCreateOrUpdateParametersFromJSON = ProductInsightCreateOrUpdateParametersFromJSON;
24
+ function ProductInsightCreateOrUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
25
+ if ((json === undefined) || (json === null)) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'signatures': json['signatures'],
30
+ 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
31
+ 'name': !(0, runtime_1.exists)(json, 'name') ? json['name'] : json['name'],
32
+ 'dci': !(0, runtime_1.exists)(json, 'dci') ? json['dci'] : json['dci'],
33
+ 'unitWeight': !(0, runtime_1.exists)(json, 'unitWeight') ? json['unitWeight'] : json['unitWeight'],
34
+ 'unitPrice': !(0, runtime_1.exists)(json, 'unitPrice') ? json['unitPrice'] : json['unitPrice'],
35
+ 'typeId': !(0, runtime_1.exists)(json, 'typeId') ? json['typeId'] : json['typeId'],
36
+ 'secondaryTypeId': !(0, runtime_1.exists)(json, 'secondaryTypeId') ? json['secondaryTypeId'] : json['secondaryTypeId'],
37
+ 'laboratoryId': !(0, runtime_1.exists)(json, 'laboratoryId') ? json['laboratoryId'] : json['laboratoryId'],
38
+ 'vatId': !(0, runtime_1.exists)(json, 'vatId') ? json['vatId'] : json['vatId'],
39
+ 'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
40
+ };
41
+ }
42
+ exports.ProductInsightCreateOrUpdateParametersFromJSONTyped = ProductInsightCreateOrUpdateParametersFromJSONTyped;
43
+ function ProductInsightCreateOrUpdateParametersToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'signatures': value.signatures,
52
+ 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
53
+ 'name': value.name,
54
+ 'dci': value.dci,
55
+ 'unitWeight': value.unitWeight,
56
+ 'unitPrice': value.unitPrice,
57
+ 'typeId': value.typeId,
58
+ 'secondaryTypeId': value.secondaryTypeId,
59
+ 'laboratoryId': value.laboratoryId,
60
+ 'vatId': value.vatId,
61
+ 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType),
62
+ };
63
+ }
64
+ exports.ProductInsightCreateOrUpdateParametersToJSON = ProductInsightCreateOrUpdateParametersToJSON;
@@ -0,0 +1,33 @@
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
+ /**
13
+ * Journal of the product insight
14
+ * @export
15
+ * @interface ProductInsightJournal
16
+ */
17
+ export interface ProductInsightJournal {
18
+ /**
19
+ * Update date of this product
20
+ * @type {Date}
21
+ * @memberof ProductInsightJournal
22
+ */
23
+ updatedAt: Date;
24
+ /**
25
+ * Date of the updated price (RFC 3339, section 5.6)
26
+ * @type {Date}
27
+ * @memberof ProductInsightJournal
28
+ */
29
+ unitPriceUpdatedAt?: Date;
30
+ }
31
+ export declare function ProductInsightJournalFromJSON(json: any): ProductInsightJournal;
32
+ export declare function ProductInsightJournalFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductInsightJournal;
33
+ export declare function ProductInsightJournalToJSON(value?: ProductInsightJournal | null): any;