@lcdp/api-react-rest-client 2.1.4 → 2.2.0-LDS-3044-cdc-monolith-creation-des-cdc.5113435746

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 (53) 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 +99 -0
  28. package/catalog/src/models/ProductInsight.js +69 -0
  29. package/catalog/src/models/ProductInsightCreationOrUpdateParameters.d.ts +82 -0
  30. package/catalog/src/models/ProductInsightCreationOrUpdateParameters.js +61 -0
  31. package/catalog/src/models/ProductInsightJournal.d.ts +33 -0
  32. package/catalog/src/models/ProductInsightJournal.js +43 -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/ProductTypeLink.d.ts +34 -0
  38. package/catalog/src/models/ProductTypeLink.js +50 -0
  39. package/catalog/src/models/ProductTypeLinkAllOf.d.ts +33 -0
  40. package/catalog/src/models/ProductTypeLinkAllOf.js +44 -0
  41. package/catalog/src/models/RestError.d.ts +85 -0
  42. package/catalog/src/models/RestError.js +97 -0
  43. package/catalog/src/models/VatLink.d.ts +40 -0
  44. package/catalog/src/models/VatLink.js +50 -0
  45. package/catalog/src/models/VatLinkAllOf.d.ts +39 -0
  46. package/catalog/src/models/VatLinkAllOf.js +46 -0
  47. package/catalog/src/models/index.d.ts +18 -0
  48. package/catalog/src/models/index.js +34 -0
  49. package/catalog/src/runtime.d.ts +149 -0
  50. package/catalog/src/runtime.js +480 -0
  51. package/package.json +1 -1
  52. package/product/src/apis/SearchProductMetadataApi.d.ts +22 -0
  53. package/product/src/apis/SearchProductMetadataApi.js +154 -8
@@ -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,99 @@
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 { ProductTypeLink } from './ProductTypeLink';
17
+ import { VatLink } from './VatLink';
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ProductInsight
22
+ */
23
+ export interface ProductInsight {
24
+ /**
25
+ * catalog id
26
+ * @type {number}
27
+ * @memberof ProductInsight
28
+ */
29
+ id: number;
30
+ /**
31
+ *
32
+ * @type {Barcodes}
33
+ * @memberof ProductInsight
34
+ */
35
+ barcodes: Barcodes;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ProductInsight
40
+ */
41
+ name: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ProductInsight
46
+ */
47
+ dci: string | null;
48
+ /**
49
+ * Weight of a single unit in grams
50
+ * @type {number}
51
+ * @memberof ProductInsight
52
+ */
53
+ unitWeight: number | null;
54
+ /**
55
+ * Public price of the product
56
+ * @type {number}
57
+ * @memberof ProductInsight
58
+ */
59
+ unitPrice: number | null;
60
+ /**
61
+ *
62
+ * @type {ProductTypeLink}
63
+ * @memberof ProductInsight
64
+ */
65
+ type: ProductTypeLink | null;
66
+ /**
67
+ *
68
+ * @type {ProductSecondaryTypeLink}
69
+ * @memberof ProductInsight
70
+ */
71
+ secondaryType: ProductSecondaryTypeLink | null;
72
+ /**
73
+ *
74
+ * @type {LaboratoryLink}
75
+ * @memberof ProductInsight
76
+ */
77
+ laboratory: LaboratoryLink | null;
78
+ /**
79
+ *
80
+ * @type {VatLink}
81
+ * @memberof ProductInsight
82
+ */
83
+ vat: VatLink | null;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof ProductInsight
88
+ */
89
+ storageType: string | null;
90
+ /**
91
+ *
92
+ * @type {ProductInsightJournal}
93
+ * @memberof ProductInsight
94
+ */
95
+ journal: ProductInsightJournal;
96
+ }
97
+ export declare function ProductInsightFromJSON(json: any): ProductInsight;
98
+ export declare function ProductInsightFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductInsight;
99
+ export declare function ProductInsightToJSON(value?: ProductInsight | null): any;
@@ -0,0 +1,69 @@
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 Barcodes_1 = require("./Barcodes");
18
+ var LaboratoryLink_1 = require("./LaboratoryLink");
19
+ var ProductInsightJournal_1 = require("./ProductInsightJournal");
20
+ var ProductSecondaryTypeLink_1 = require("./ProductSecondaryTypeLink");
21
+ var ProductTypeLink_1 = require("./ProductTypeLink");
22
+ var VatLink_1 = require("./VatLink");
23
+ function ProductInsightFromJSON(json) {
24
+ return ProductInsightFromJSONTyped(json, false);
25
+ }
26
+ exports.ProductInsightFromJSON = ProductInsightFromJSON;
27
+ function ProductInsightFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
34
+ 'name': json['name'],
35
+ 'dci': json['dci'],
36
+ 'unitWeight': json['unitWeight'],
37
+ 'unitPrice': json['unitPrice'],
38
+ 'type': (0, ProductTypeLink_1.ProductTypeLinkFromJSON)(json['type']),
39
+ 'secondaryType': (0, ProductSecondaryTypeLink_1.ProductSecondaryTypeLinkFromJSON)(json['secondaryType']),
40
+ 'laboratory': (0, LaboratoryLink_1.LaboratoryLinkFromJSON)(json['laboratory']),
41
+ 'vat': (0, VatLink_1.VatLinkFromJSON)(json['vat']),
42
+ 'storageType': json['storageType'],
43
+ 'journal': (0, ProductInsightJournal_1.ProductInsightJournalFromJSON)(json['journal']),
44
+ };
45
+ }
46
+ exports.ProductInsightFromJSONTyped = ProductInsightFromJSONTyped;
47
+ function ProductInsightToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'id': value.id,
56
+ 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
57
+ 'name': value.name,
58
+ 'dci': value.dci,
59
+ 'unitWeight': value.unitWeight,
60
+ 'unitPrice': value.unitPrice,
61
+ 'type': (0, ProductTypeLink_1.ProductTypeLinkToJSON)(value.type),
62
+ 'secondaryType': (0, ProductSecondaryTypeLink_1.ProductSecondaryTypeLinkToJSON)(value.secondaryType),
63
+ 'laboratory': (0, LaboratoryLink_1.LaboratoryLinkToJSON)(value.laboratory),
64
+ 'vat': (0, VatLink_1.VatLinkToJSON)(value.vat),
65
+ 'storageType': value.storageType,
66
+ 'journal': (0, ProductInsightJournal_1.ProductInsightJournalToJSON)(value.journal),
67
+ };
68
+ }
69
+ exports.ProductInsightToJSON = ProductInsightToJSON;
@@ -0,0 +1,82 @@
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
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductInsightCreationOrUpdateParameters
17
+ */
18
+ export interface ProductInsightCreationOrUpdateParameters {
19
+ /**
20
+ *
21
+ * @type {Barcodes}
22
+ * @memberof ProductInsightCreationOrUpdateParameters
23
+ */
24
+ barcodes?: Barcodes;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ProductInsightCreationOrUpdateParameters
29
+ */
30
+ name?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ProductInsightCreationOrUpdateParameters
35
+ */
36
+ dci?: string | null;
37
+ /**
38
+ * Weight of a single unit in grams
39
+ * @type {number}
40
+ * @memberof ProductInsightCreationOrUpdateParameters
41
+ */
42
+ unitWeight?: number | null;
43
+ /**
44
+ * Public price of the product
45
+ * @type {number}
46
+ * @memberof ProductInsightCreationOrUpdateParameters
47
+ */
48
+ unitPrice?: number | null;
49
+ /**
50
+ * Product Type Identifier
51
+ * @type {string}
52
+ * @memberof ProductInsightCreationOrUpdateParameters
53
+ */
54
+ typeId?: string | null;
55
+ /**
56
+ * Product Secondary Type Identifier
57
+ * @type {string}
58
+ * @memberof ProductInsightCreationOrUpdateParameters
59
+ */
60
+ secondaryTypeId?: string | null;
61
+ /**
62
+ * Laboratory ID
63
+ * @type {number}
64
+ * @memberof ProductInsightCreationOrUpdateParameters
65
+ */
66
+ laboratoryId?: number | null;
67
+ /**
68
+ * VAT identifier
69
+ * @type {string}
70
+ * @memberof ProductInsightCreationOrUpdateParameters
71
+ */
72
+ vatId?: string | null;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof ProductInsightCreationOrUpdateParameters
77
+ */
78
+ storageType?: string | null;
79
+ }
80
+ export declare function ProductInsightCreationOrUpdateParametersFromJSON(json: any): ProductInsightCreationOrUpdateParameters;
81
+ export declare function ProductInsightCreationOrUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductInsightCreationOrUpdateParameters;
82
+ export declare function ProductInsightCreationOrUpdateParametersToJSON(value?: ProductInsightCreationOrUpdateParameters | null): any;
@@ -0,0 +1,61 @@
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.ProductInsightCreationOrUpdateParametersToJSON = exports.ProductInsightCreationOrUpdateParametersFromJSONTyped = exports.ProductInsightCreationOrUpdateParametersFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var Barcodes_1 = require("./Barcodes");
19
+ function ProductInsightCreationOrUpdateParametersFromJSON(json) {
20
+ return ProductInsightCreationOrUpdateParametersFromJSONTyped(json, false);
21
+ }
22
+ exports.ProductInsightCreationOrUpdateParametersFromJSON = ProductInsightCreationOrUpdateParametersFromJSON;
23
+ function ProductInsightCreationOrUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
29
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
30
+ 'dci': !(0, runtime_1.exists)(json, 'dci') ? json['dci'] : json['dci'],
31
+ 'unitWeight': !(0, runtime_1.exists)(json, 'unitWeight') ? json['unitWeight'] : json['unitWeight'],
32
+ 'unitPrice': !(0, runtime_1.exists)(json, 'unitPrice') ? json['unitPrice'] : json['unitPrice'],
33
+ 'typeId': !(0, runtime_1.exists)(json, 'typeId') ? json['typeId'] : json['typeId'],
34
+ 'secondaryTypeId': !(0, runtime_1.exists)(json, 'secondaryTypeId') ? json['secondaryTypeId'] : json['secondaryTypeId'],
35
+ 'laboratoryId': !(0, runtime_1.exists)(json, 'laboratoryId') ? json['laboratoryId'] : json['laboratoryId'],
36
+ 'vatId': !(0, runtime_1.exists)(json, 'vatId') ? json['vatId'] : json['vatId'],
37
+ 'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : json['storageType'],
38
+ };
39
+ }
40
+ exports.ProductInsightCreationOrUpdateParametersFromJSONTyped = ProductInsightCreationOrUpdateParametersFromJSONTyped;
41
+ function ProductInsightCreationOrUpdateParametersToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
50
+ 'name': value.name,
51
+ 'dci': value.dci,
52
+ 'unitWeight': value.unitWeight,
53
+ 'unitPrice': value.unitPrice,
54
+ 'typeId': value.typeId,
55
+ 'secondaryTypeId': value.secondaryTypeId,
56
+ 'laboratoryId': value.laboratoryId,
57
+ 'vatId': value.vatId,
58
+ 'storageType': value.storageType,
59
+ };
60
+ }
61
+ exports.ProductInsightCreationOrUpdateParametersToJSON = ProductInsightCreationOrUpdateParametersToJSON;
@@ -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;
@@ -0,0 +1,43 @@
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.ProductInsightJournalToJSON = exports.ProductInsightJournalFromJSONTyped = exports.ProductInsightJournalFromJSON = void 0;
17
+ function ProductInsightJournalFromJSON(json) {
18
+ return ProductInsightJournalFromJSONTyped(json, false);
19
+ }
20
+ exports.ProductInsightJournalFromJSON = ProductInsightJournalFromJSON;
21
+ function ProductInsightJournalFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'updatedAt': (new Date(json['updatedAt'])),
27
+ 'unitPriceUpdatedAt': (new Date(json['unitPriceUpdatedAt'])),
28
+ };
29
+ }
30
+ exports.ProductInsightJournalFromJSONTyped = ProductInsightJournalFromJSONTyped;
31
+ function ProductInsightJournalToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'updatedAt': (value.updatedAt.toISOString()),
40
+ 'unitPriceUpdatedAt': (value.unitPriceUpdatedAt.toISOString()),
41
+ };
42
+ }
43
+ exports.ProductInsightJournalToJSON = ProductInsightJournalToJSON;
@@ -0,0 +1,34 @@
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 { HttpLink } from './HttpLink';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductSecondaryTypeLink
17
+ */
18
+ export interface ProductSecondaryTypeLink extends HttpLink {
19
+ /**
20
+ * Id of the product secondary type
21
+ * @type {string}
22
+ * @memberof ProductSecondaryTypeLink
23
+ */
24
+ id?: string;
25
+ /**
26
+ * Readable name for display
27
+ * @type {string}
28
+ * @memberof ProductSecondaryTypeLink
29
+ */
30
+ name?: string;
31
+ }
32
+ export declare function ProductSecondaryTypeLinkFromJSON(json: any): ProductSecondaryTypeLink;
33
+ export declare function ProductSecondaryTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSecondaryTypeLink;
34
+ export declare function ProductSecondaryTypeLinkToJSON(value?: ProductSecondaryTypeLink | 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.ProductSecondaryTypeLinkToJSON = exports.ProductSecondaryTypeLinkFromJSONTyped = exports.ProductSecondaryTypeLinkFromJSON = void 0;
28
+ var runtime_1 = require("../runtime");
29
+ var HttpLink_1 = require("./HttpLink");
30
+ function ProductSecondaryTypeLinkFromJSON(json) {
31
+ return ProductSecondaryTypeLinkFromJSONTyped(json, false);
32
+ }
33
+ exports.ProductSecondaryTypeLinkFromJSON = ProductSecondaryTypeLinkFromJSON;
34
+ function ProductSecondaryTypeLinkFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'] });
39
+ }
40
+ exports.ProductSecondaryTypeLinkFromJSONTyped = ProductSecondaryTypeLinkFromJSONTyped;
41
+ function ProductSecondaryTypeLinkToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'name': value.name });
49
+ }
50
+ exports.ProductSecondaryTypeLinkToJSON = ProductSecondaryTypeLinkToJSON;
@@ -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
+ *
14
+ * @export
15
+ * @interface ProductSecondaryTypeLinkAllOf
16
+ */
17
+ export interface ProductSecondaryTypeLinkAllOf {
18
+ /**
19
+ * Id of the product secondary type
20
+ * @type {string}
21
+ * @memberof ProductSecondaryTypeLinkAllOf
22
+ */
23
+ id?: string;
24
+ /**
25
+ * Readable name for display
26
+ * @type {string}
27
+ * @memberof ProductSecondaryTypeLinkAllOf
28
+ */
29
+ name?: string;
30
+ }
31
+ export declare function ProductSecondaryTypeLinkAllOfFromJSON(json: any): ProductSecondaryTypeLinkAllOf;
32
+ export declare function ProductSecondaryTypeLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSecondaryTypeLinkAllOf;
33
+ export declare function ProductSecondaryTypeLinkAllOfToJSON(value?: ProductSecondaryTypeLinkAllOf | null): any;
@@ -0,0 +1,44 @@
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.ProductSecondaryTypeLinkAllOfToJSON = exports.ProductSecondaryTypeLinkAllOfFromJSONTyped = exports.ProductSecondaryTypeLinkAllOfFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ProductSecondaryTypeLinkAllOfFromJSON(json) {
19
+ return ProductSecondaryTypeLinkAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.ProductSecondaryTypeLinkAllOfFromJSON = ProductSecondaryTypeLinkAllOfFromJSON;
22
+ function ProductSecondaryTypeLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
28
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
29
+ };
30
+ }
31
+ exports.ProductSecondaryTypeLinkAllOfFromJSONTyped = ProductSecondaryTypeLinkAllOfFromJSONTyped;
32
+ function ProductSecondaryTypeLinkAllOfToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'id': value.id,
41
+ 'name': value.name,
42
+ };
43
+ }
44
+ exports.ProductSecondaryTypeLinkAllOfToJSON = ProductSecondaryTypeLinkAllOfToJSON;
@@ -0,0 +1,34 @@
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 { HttpLink } from './HttpLink';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductTypeLink
17
+ */
18
+ export interface ProductTypeLink extends HttpLink {
19
+ /**
20
+ * Id of the product type (machine name)
21
+ * @type {string}
22
+ * @memberof ProductTypeLink
23
+ */
24
+ id?: string;
25
+ /**
26
+ * Readable name for display
27
+ * @type {string}
28
+ * @memberof ProductTypeLink
29
+ */
30
+ name?: string;
31
+ }
32
+ export declare function ProductTypeLinkFromJSON(json: any): ProductTypeLink;
33
+ export declare function ProductTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeLink;
34
+ export declare function ProductTypeLinkToJSON(value?: ProductTypeLink | null): any;