@lcdp/api-react-rest-client 2.4.0-develop.5544924884 → 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.
- package/catalog/index.d.ts +1 -0
- package/catalog/index.js +17 -0
- package/catalog/src/apis/ManageProductInsightApi.d.ts +54 -0
- package/catalog/src/apis/ManageProductInsightApi.js +295 -0
- package/catalog/src/apis/SearchProductInsightApi.d.ts +53 -0
- package/catalog/src/apis/SearchProductInsightApi.js +246 -0
- package/catalog/src/apis/index.d.ts +2 -0
- package/catalog/src/apis/index.js +18 -0
- package/catalog/src/index.d.ts +3 -0
- package/catalog/src/index.js +19 -0
- package/catalog/src/models/Barcodes.d.ts +45 -0
- package/catalog/src/models/Barcodes.js +48 -0
- package/catalog/src/models/HttpLink.d.ts +27 -0
- package/catalog/src/models/HttpLink.js +41 -0
- package/catalog/src/models/LaboratoryLink.d.ts +34 -0
- package/catalog/src/models/LaboratoryLink.js +50 -0
- package/catalog/src/models/LaboratoryLinkAllOf.d.ts +33 -0
- package/catalog/src/models/LaboratoryLinkAllOf.js +44 -0
- package/catalog/src/models/PaginatedObject.d.ts +28 -0
- package/catalog/src/models/PaginatedObject.js +42 -0
- package/catalog/src/models/PaginatedProductInsights.d.ts +29 -0
- package/catalog/src/models/PaginatedProductInsights.js +50 -0
- package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +28 -0
- package/catalog/src/models/PaginatedProductInsightsAllOf.js +42 -0
- package/catalog/src/models/PagingMetadata.d.ts +45 -0
- package/catalog/src/models/PagingMetadata.js +47 -0
- package/catalog/src/models/ProductInsight.d.ts +106 -0
- package/catalog/src/models/ProductInsight.js +73 -0
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +89 -0
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +64 -0
- package/catalog/src/models/ProductInsightJournal.d.ts +33 -0
- package/catalog/src/models/ProductInsightJournal.js +44 -0
- package/catalog/src/models/ProductSecondaryTypeLink.d.ts +34 -0
- package/catalog/src/models/ProductSecondaryTypeLink.js +50 -0
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +33 -0
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +44 -0
- package/catalog/src/models/ProductStorageType.d.ts +25 -0
- package/catalog/src/models/ProductStorageType.js +40 -0
- package/catalog/src/models/ProductTypeLink.d.ts +34 -0
- package/catalog/src/models/ProductTypeLink.js +50 -0
- package/catalog/src/models/ProductTypeLinkAllOf.d.ts +33 -0
- package/catalog/src/models/ProductTypeLinkAllOf.js +44 -0
- package/catalog/src/models/RestError.d.ts +85 -0
- package/catalog/src/models/RestError.js +97 -0
- package/catalog/src/models/VatLink.d.ts +40 -0
- package/catalog/src/models/VatLink.js +50 -0
- package/catalog/src/models/VatLinkAllOf.d.ts +39 -0
- package/catalog/src/models/VatLinkAllOf.js +46 -0
- package/catalog/src/models/index.d.ts +19 -0
- package/catalog/src/models/index.js +35 -0
- package/catalog/src/runtime.d.ts +149 -0
- package/catalog/src/runtime.js +480 -0
- package/package.json +1 -1
- package/product/src/apis/ManageProductApi.d.ts +2 -0
- package/product/src/apis/ManageProductApi.js +6 -0
- package/product/src/apis/SearchProductMetadataApi.d.ts +22 -0
- package/product/src/apis/SearchProductMetadataApi.js +154 -8
- package/product/src/models/{ProductProvider.d.ts → DataProvider.d.ts} +7 -5
- package/product/src/models/DataProvider.js +40 -0
- package/product/src/models/Image.d.ts +7 -0
- package/product/src/models/Image.js +3 -0
- package/product/src/models/Product.d.ts +44 -37
- package/product/src/models/Product.js +33 -31
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -6
- package/product/src/models/ProductCreationOrUpdateParameters.js +2 -2
- package/product/src/models/ProductJournal.d.ts +27 -0
- package/product/src/models/ProductJournal.js +41 -0
- package/product/src/models/ProductProscription.d.ts +7 -0
- package/product/src/models/ProductProscription.js +3 -0
- package/product/src/models/ProductSource.d.ts +47 -0
- package/product/src/models/ProductSource.js +49 -0
- package/product/src/models/ProductSourceBcb.d.ts +39 -0
- package/product/src/models/ProductSourceBcb.js +46 -0
- package/product/src/models/ProductSourceFields.d.ts +131 -0
- package/product/src/models/ProductSourceFields.js +77 -0
- package/product/src/models/ProductSourceFieldsBarcodes.d.ts +46 -0
- package/product/src/models/ProductSourceFieldsBarcodes.js +48 -0
- package/product/src/models/index.d.ts +6 -1
- package/product/src/models/index.js +6 -1
- package/product/src/models/ProductProvider.js +0 -38
|
@@ -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;
|
|
@@ -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.ProductInsightJournalToJSON = exports.ProductInsightJournalFromJSONTyped = exports.ProductInsightJournalFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ProductInsightJournalFromJSON(json) {
|
|
19
|
+
return ProductInsightJournalFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ProductInsightJournalFromJSON = ProductInsightJournalFromJSON;
|
|
22
|
+
function ProductInsightJournalFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
28
|
+
'unitPriceUpdatedAt': !(0, runtime_1.exists)(json, 'unitPriceUpdatedAt') ? undefined : (new Date(json['unitPriceUpdatedAt'])),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ProductInsightJournalFromJSONTyped = ProductInsightJournalFromJSONTyped;
|
|
32
|
+
function ProductInsightJournalToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
41
|
+
'unitPriceUpdatedAt': value.unitPriceUpdatedAt === undefined ? undefined : (value.unitPriceUpdatedAt.toISOString()),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
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,25 @@
|
|
|
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
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum ProductStorageType {
|
|
18
|
+
FREE = "FREE",
|
|
19
|
+
FRIDGE = "FRIDGE",
|
|
20
|
+
FREEZER = "FREEZER",
|
|
21
|
+
FRESH = "FRESH"
|
|
22
|
+
}
|
|
23
|
+
export declare function ProductStorageTypeFromJSON(json: any): ProductStorageType;
|
|
24
|
+
export declare function ProductStorageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStorageType;
|
|
25
|
+
export declare function ProductStorageTypeToJSON(value?: ProductStorageType | null): any;
|