@lcdp/api-react-rest-client 2.5.2 → 2.5.3-DATA-430-migrer-sur-dbt-cloud.6238224716
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/package.json +1 -1
- package/product/src/apis/ManageProductApi.d.ts +0 -2
- package/product/src/apis/ManageProductApi.js +0 -6
- package/product/src/apis/SearchProductApi.d.ts +0 -1
- package/product/src/apis/SearchProductApi.js +0 -3
- package/product/src/apis/SearchProductMetadataApi.d.ts +0 -22
- package/product/src/apis/SearchProductMetadataApi.js +8 -154
- package/product/src/models/Image.d.ts +0 -7
- package/product/src/models/Image.js +0 -3
- package/product/src/models/Product.d.ts +37 -44
- package/product/src/models/Product.js +31 -33
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -6
- package/product/src/models/ProductCreationOrUpdateParameters.js +2 -2
- package/product/src/models/ProductProscription.d.ts +0 -7
- package/product/src/models/ProductProscription.js +0 -3
- package/product/src/models/{DataProvider.d.ts → ProductProvider.d.ts} +5 -7
- package/product/src/models/ProductProvider.js +38 -0
- package/product/src/models/index.d.ts +1 -6
- package/product/src/models/index.js +1 -6
- package/recommendation/src/apis/SearchProductPriceRecommendationApi.d.ts +2 -2
- package/recommendation/src/apis/SearchProductPriceRecommendationApi.js +2 -2
- package/recommendation/src/models/ProductPriceRecommendation.d.ts +1 -1
- package/recommendation/src/models/ProductPriceRecommendation.js +2 -2
- package/catalog/index.d.ts +0 -1
- package/catalog/index.js +0 -17
- package/catalog/src/apis/ManageProductInsightApi.d.ts +0 -54
- package/catalog/src/apis/ManageProductInsightApi.js +0 -295
- package/catalog/src/apis/SearchProductInsightApi.d.ts +0 -54
- package/catalog/src/apis/SearchProductInsightApi.js +0 -249
- package/catalog/src/apis/index.d.ts +0 -2
- package/catalog/src/apis/index.js +0 -18
- package/catalog/src/index.d.ts +0 -3
- package/catalog/src/index.js +0 -19
- package/catalog/src/models/Barcodes.d.ts +0 -45
- package/catalog/src/models/Barcodes.js +0 -48
- package/catalog/src/models/HttpLink.d.ts +0 -27
- package/catalog/src/models/HttpLink.js +0 -41
- package/catalog/src/models/LaboratoryLink.d.ts +0 -34
- package/catalog/src/models/LaboratoryLink.js +0 -50
- package/catalog/src/models/LaboratoryLinkAllOf.d.ts +0 -33
- package/catalog/src/models/LaboratoryLinkAllOf.js +0 -44
- package/catalog/src/models/PaginatedObject.d.ts +0 -28
- package/catalog/src/models/PaginatedObject.js +0 -42
- package/catalog/src/models/PaginatedProductInsights.d.ts +0 -29
- package/catalog/src/models/PaginatedProductInsights.js +0 -50
- package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +0 -28
- package/catalog/src/models/PaginatedProductInsightsAllOf.js +0 -42
- package/catalog/src/models/PagingMetadata.d.ts +0 -45
- package/catalog/src/models/PagingMetadata.js +0 -47
- package/catalog/src/models/ProductInsight.d.ts +0 -106
- package/catalog/src/models/ProductInsight.js +0 -73
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +0 -89
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +0 -64
- package/catalog/src/models/ProductInsightJournal.d.ts +0 -33
- package/catalog/src/models/ProductInsightJournal.js +0 -44
- package/catalog/src/models/ProductSecondaryTypeLink.d.ts +0 -34
- package/catalog/src/models/ProductSecondaryTypeLink.js +0 -50
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +0 -33
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +0 -44
- package/catalog/src/models/ProductStorageType.d.ts +0 -25
- package/catalog/src/models/ProductStorageType.js +0 -40
- package/catalog/src/models/ProductTypeLink.d.ts +0 -34
- package/catalog/src/models/ProductTypeLink.js +0 -50
- package/catalog/src/models/ProductTypeLinkAllOf.d.ts +0 -33
- package/catalog/src/models/ProductTypeLinkAllOf.js +0 -44
- package/catalog/src/models/RestError.d.ts +0 -85
- package/catalog/src/models/RestError.js +0 -97
- package/catalog/src/models/VatLink.d.ts +0 -40
- package/catalog/src/models/VatLink.js +0 -50
- package/catalog/src/models/VatLinkAllOf.d.ts +0 -39
- package/catalog/src/models/VatLinkAllOf.js +0 -46
- package/catalog/src/models/index.d.ts +0 -19
- package/catalog/src/models/index.js +0 -35
- package/catalog/src/runtime.d.ts +0 -149
- package/catalog/src/runtime.js +0 -480
- package/product/src/models/DataProvider.js +0 -40
- package/product/src/models/ProductJournal.d.ts +0 -27
- package/product/src/models/ProductJournal.js +0 -41
- package/product/src/models/ProductSource.d.ts +0 -47
- package/product/src/models/ProductSource.js +0 -49
- package/product/src/models/ProductSourceBcb.d.ts +0 -39
- package/product/src/models/ProductSourceBcb.js +0 -46
- package/product/src/models/ProductSourceFields.d.ts +0 -131
- package/product/src/models/ProductSourceFields.js +0 -77
- package/product/src/models/ProductSourceFieldsBarcodes.d.ts +0 -46
- package/product/src/models/ProductSourceFieldsBarcodes.js +0 -48
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
var Barcodes_1 = require("./Barcodes");
|
|
18
19
|
var HttpLink_1 = require("./HttpLink");
|
|
19
20
|
var LaboratoryLink_1 = require("./LaboratoryLink");
|
|
20
21
|
var ProductDispensationPlace_1 = require("./ProductDispensationPlace");
|
|
21
|
-
var ProductJournal_1 = require("./ProductJournal");
|
|
22
22
|
var ProductMarketStatus_1 = require("./ProductMarketStatus");
|
|
23
|
+
var ProductProvider_1 = require("./ProductProvider");
|
|
23
24
|
var ProductSecondaryType_1 = require("./ProductSecondaryType");
|
|
24
|
-
var ProductSource_1 = require("./ProductSource");
|
|
25
25
|
var ProductStatus_1 = require("./ProductStatus");
|
|
26
26
|
var ProductStorageType_1 = require("./ProductStorageType");
|
|
27
27
|
var ProductType_1 = require("./ProductType");
|
|
@@ -36,33 +36,32 @@ function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
'id': json['id'],
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'journal': (0, ProductJournal_1.ProductJournalFromJSON)(json['journal']),
|
|
39
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
40
|
+
'isExternalSyncEnabled': !(0, runtime_1.exists)(json, 'isExternalSyncEnabled') ? undefined : json['isExternalSyncEnabled'],
|
|
41
|
+
'providers': !(0, runtime_1.exists)(json, 'providers') ? undefined : (json['providers'].map(ProductProvider_1.ProductProviderFromJSON)),
|
|
42
|
+
'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
|
|
43
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
44
|
+
'shortName': !(0, runtime_1.exists)(json, 'shortName') ? json['shortName'] : json['shortName'],
|
|
45
|
+
'dci': !(0, runtime_1.exists)(json, 'dci') ? json['dci'] : json['dci'],
|
|
46
|
+
'unitWeight': !(0, runtime_1.exists)(json, 'unitWeight') ? json['unitWeight'] : json['unitWeight'],
|
|
47
|
+
'unitPrice': !(0, runtime_1.exists)(json, 'unitPrice') ? json['unitPrice'] : json['unitPrice'],
|
|
48
|
+
'type': !(0, runtime_1.exists)(json, 'type') ? json['type'] : (0, ProductType_1.ProductTypeFromJSON)(json['type']),
|
|
49
|
+
'secondaryType': !(0, runtime_1.exists)(json, 'secondaryType') ? json['secondaryType'] : (0, ProductSecondaryType_1.ProductSecondaryTypeFromJSON)(json['secondaryType']),
|
|
50
|
+
'laboratory': !(0, runtime_1.exists)(json, 'laboratory') ? json['laboratory'] : (0, LaboratoryLink_1.LaboratoryLinkFromJSON)(json['laboratory']),
|
|
51
|
+
'vat': !(0, runtime_1.exists)(json, 'vat') ? json['vat'] : (0, Vat_1.VatFromJSON)(json['vat']),
|
|
52
|
+
'narcoticPrescription': !(0, runtime_1.exists)(json, 'narcoticPrescription') ? json['narcoticPrescription'] : json['narcoticPrescription'],
|
|
53
|
+
'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
|
|
54
|
+
'status': !(0, runtime_1.exists)(json, 'status') ? json['status'] : (0, ProductStatus_1.ProductStatusFromJSON)(json['status']),
|
|
55
|
+
'marketStatus': !(0, runtime_1.exists)(json, 'marketStatus') ? json['marketStatus'] : (0, ProductMarketStatus_1.ProductMarketStatusFromJSON)(json['marketStatus']),
|
|
56
|
+
'dispensationPlace': !(0, runtime_1.exists)(json, 'dispensationPlace') ? json['dispensationPlace'] : (0, ProductDispensationPlace_1.ProductDispensationPlaceFromJSON)(json['dispensationPlace']),
|
|
57
|
+
'isOtc': !(0, runtime_1.exists)(json, 'isOtc') ? undefined : json['isOtc'],
|
|
58
|
+
'isDrugInSport': !(0, runtime_1.exists)(json, 'isDrugInSport') ? json['isDrugInSport'] : json['isDrugInSport'],
|
|
59
|
+
'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['images']),
|
|
60
|
+
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
61
|
+
'statistics': !(0, runtime_1.exists)(json, 'statistics') ? undefined : (0, Statistics_1.StatisticsFromJSON)(json['statistics']),
|
|
62
|
+
'restricted': !(0, runtime_1.exists)(json, 'restricted') ? undefined : json['restricted'],
|
|
63
|
+
'proscriptions': !(0, runtime_1.exists)(json, 'proscriptions') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['proscriptions']),
|
|
64
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
66
65
|
};
|
|
67
66
|
}
|
|
68
67
|
exports.ProductFromJSONTyped = ProductFromJSONTyped;
|
|
@@ -75,13 +74,14 @@ function ProductToJSON(value) {
|
|
|
75
74
|
}
|
|
76
75
|
return {
|
|
77
76
|
'id': value.id,
|
|
77
|
+
'isExternalSyncEnabled': value.isExternalSyncEnabled,
|
|
78
|
+
'providers': value.providers === undefined ? undefined : (value.providers.map(ProductProvider_1.ProductProviderToJSON)),
|
|
78
79
|
'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
|
|
79
80
|
'name': value.name,
|
|
80
81
|
'shortName': value.shortName,
|
|
81
82
|
'dci': value.dci,
|
|
82
83
|
'unitWeight': value.unitWeight,
|
|
83
84
|
'unitPrice': value.unitPrice,
|
|
84
|
-
'unitPriceEffectiveDate': (value.unitPriceEffectiveDate === null ? null : value.unitPriceEffectiveDate.toISOString()),
|
|
85
85
|
'type': (0, ProductType_1.ProductTypeToJSON)(value.type),
|
|
86
86
|
'secondaryType': (0, ProductSecondaryType_1.ProductSecondaryTypeToJSON)(value.secondaryType),
|
|
87
87
|
'laboratory': (0, LaboratoryLink_1.LaboratoryLinkToJSON)(value.laboratory),
|
|
@@ -94,13 +94,11 @@ function ProductToJSON(value) {
|
|
|
94
94
|
'isOtc': value.isOtc,
|
|
95
95
|
'isDrugInSport': value.isDrugInSport,
|
|
96
96
|
'images': (0, HttpLink_1.HttpLinkToJSON)(value.images),
|
|
97
|
-
'createdAt': (value.createdAt.toISOString()),
|
|
97
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
98
98
|
'statistics': (0, Statistics_1.StatisticsToJSON)(value.statistics),
|
|
99
99
|
'restricted': value.restricted,
|
|
100
100
|
'proscriptions': (0, HttpLink_1.HttpLinkToJSON)(value.proscriptions),
|
|
101
101
|
'tags': value.tags,
|
|
102
|
-
'source': (0, ProductSource_1.ProductSourceToJSON)(value.source),
|
|
103
|
-
'journal': (0, ProductJournal_1.ProductJournalToJSON)(value.journal),
|
|
104
102
|
};
|
|
105
103
|
}
|
|
106
104
|
exports.ProductToJSON = ProductToJSON;
|
|
@@ -20,6 +20,12 @@ import { ProductStorageType } from './ProductStorageType';
|
|
|
20
20
|
* @interface ProductCreationOrUpdateParameters
|
|
21
21
|
*/
|
|
22
22
|
export interface ProductCreationOrUpdateParameters {
|
|
23
|
+
/**
|
|
24
|
+
* Triggers (single) synchronization from external provider if set to true. Restrictions : - You should be from role \'ADMINISTRATOR\' to change its value. Otherwise, you can just set it from true to true to trigger a (single) external provider synchronization.
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof ProductCreationOrUpdateParameters
|
|
27
|
+
*/
|
|
28
|
+
isExternalSyncEnabled?: boolean;
|
|
23
29
|
/**
|
|
24
30
|
*
|
|
25
31
|
* @type {Barcodes}
|
|
@@ -56,12 +62,6 @@ export interface ProductCreationOrUpdateParameters {
|
|
|
56
62
|
* @memberof ProductCreationOrUpdateParameters
|
|
57
63
|
*/
|
|
58
64
|
unitPrice?: number | null;
|
|
59
|
-
/**
|
|
60
|
-
* Date on which the unit price take effect
|
|
61
|
-
* @type {Date}
|
|
62
|
-
* @memberof ProductCreationOrUpdateParameters
|
|
63
|
-
*/
|
|
64
|
-
unitPriceEffectiveDate?: Date | null;
|
|
65
65
|
/**
|
|
66
66
|
* Product Type Identifier
|
|
67
67
|
* @type {string}
|
|
@@ -29,13 +29,13 @@ function ProductCreationOrUpdateParametersFromJSONTyped(json, ignoreDiscriminato
|
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
+
'isExternalSyncEnabled': !(0, runtime_1.exists)(json, 'isExternalSyncEnabled') ? undefined : json['isExternalSyncEnabled'],
|
|
32
33
|
'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
|
|
33
34
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
34
35
|
'shortName': !(0, runtime_1.exists)(json, 'shortName') ? json['shortName'] : json['shortName'],
|
|
35
36
|
'dci': !(0, runtime_1.exists)(json, 'dci') ? json['dci'] : json['dci'],
|
|
36
37
|
'unitWeight': !(0, runtime_1.exists)(json, 'unitWeight') ? json['unitWeight'] : json['unitWeight'],
|
|
37
38
|
'unitPrice': !(0, runtime_1.exists)(json, 'unitPrice') ? json['unitPrice'] : json['unitPrice'],
|
|
38
|
-
'unitPriceEffectiveDate': !(0, runtime_1.exists)(json, 'unitPriceEffectiveDate') ? json['unitPriceEffectiveDate'] : (new Date(json['unitPriceEffectiveDate'])),
|
|
39
39
|
'typeId': !(0, runtime_1.exists)(json, 'typeId') ? json['typeId'] : json['typeId'],
|
|
40
40
|
'secondaryTypeId': !(0, runtime_1.exists)(json, 'secondaryTypeId') ? json['secondaryTypeId'] : json['secondaryTypeId'],
|
|
41
41
|
'laboratoryId': !(0, runtime_1.exists)(json, 'laboratoryId') ? json['laboratoryId'] : json['laboratoryId'],
|
|
@@ -59,13 +59,13 @@ function ProductCreationOrUpdateParametersToJSON(value) {
|
|
|
59
59
|
return null;
|
|
60
60
|
}
|
|
61
61
|
return {
|
|
62
|
+
'isExternalSyncEnabled': value.isExternalSyncEnabled,
|
|
62
63
|
'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
|
|
63
64
|
'name': value.name,
|
|
64
65
|
'shortName': value.shortName,
|
|
65
66
|
'dci': value.dci,
|
|
66
67
|
'unitWeight': value.unitWeight,
|
|
67
68
|
'unitPrice': value.unitPrice,
|
|
68
|
-
'unitPriceEffectiveDate': value.unitPriceEffectiveDate === undefined ? undefined : (value.unitPriceEffectiveDate === null ? null : value.unitPriceEffectiveDate.toISOString()),
|
|
69
69
|
'typeId': value.typeId,
|
|
70
70
|
'secondaryTypeId': value.secondaryTypeId,
|
|
71
71
|
'laboratoryId': value.laboratoryId,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { DataProvider } from './DataProvider';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -34,12 +33,6 @@ export interface ProductProscription {
|
|
|
34
33
|
* @memberof ProductProscription
|
|
35
34
|
*/
|
|
36
35
|
createdAt?: Date;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {DataProvider}
|
|
40
|
-
* @memberof ProductProscription
|
|
41
|
-
*/
|
|
42
|
-
source?: DataProvider;
|
|
43
36
|
}
|
|
44
37
|
export declare function ProductProscriptionFromJSON(json: any): ProductProscription;
|
|
45
38
|
export declare function ProductProscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProscription;
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductProscriptionToJSON = exports.ProductProscriptionFromJSONTyped = exports.ProductProscriptionFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
-
var DataProvider_1 = require("./DataProvider");
|
|
19
18
|
function ProductProscriptionFromJSON(json) {
|
|
20
19
|
return ProductProscriptionFromJSONTyped(json, false);
|
|
21
20
|
}
|
|
@@ -28,7 +27,6 @@ function ProductProscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
27
|
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
29
28
|
'batch': !(0, runtime_1.exists)(json, 'batch') ? undefined : json['batch'],
|
|
30
29
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
31
|
-
'source': !(0, runtime_1.exists)(json, 'source') ? undefined : (0, DataProvider_1.DataProviderFromJSON)(json['source']),
|
|
32
30
|
};
|
|
33
31
|
}
|
|
34
32
|
exports.ProductProscriptionFromJSONTyped = ProductProscriptionFromJSONTyped;
|
|
@@ -43,7 +41,6 @@ function ProductProscriptionToJSON(value) {
|
|
|
43
41
|
'id': value.id,
|
|
44
42
|
'batch': value.batch,
|
|
45
43
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
46
|
-
'source': (0, DataProvider_1.DataProviderToJSON)(value.source),
|
|
47
44
|
};
|
|
48
45
|
}
|
|
49
46
|
exports.ProductProscriptionToJSON = ProductProscriptionToJSON;
|
|
@@ -14,12 +14,10 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
|
-
export declare enum
|
|
17
|
+
export declare enum ProductProvider {
|
|
18
18
|
VIDAL = "VIDAL",
|
|
19
|
-
BCB = "BCB"
|
|
20
|
-
LCDPCATALOG = "LCDP_CATALOG",
|
|
21
|
-
USER = "USER"
|
|
19
|
+
BCB = "BCB"
|
|
22
20
|
}
|
|
23
|
-
export declare function
|
|
24
|
-
export declare function
|
|
25
|
-
export declare function
|
|
21
|
+
export declare function ProductProviderFromJSON(json: any): ProductProvider;
|
|
22
|
+
export declare function ProductProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProvider;
|
|
23
|
+
export declare function ProductProviderToJSON(value?: ProductProvider | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProductProviderToJSON = exports.ProductProviderFromJSONTyped = exports.ProductProviderFromJSON = exports.ProductProvider = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var ProductProvider;
|
|
23
|
+
(function (ProductProvider) {
|
|
24
|
+
ProductProvider["VIDAL"] = "VIDAL";
|
|
25
|
+
ProductProvider["BCB"] = "BCB";
|
|
26
|
+
})(ProductProvider = exports.ProductProvider || (exports.ProductProvider = {}));
|
|
27
|
+
function ProductProviderFromJSON(json) {
|
|
28
|
+
return ProductProviderFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ProductProviderFromJSON = ProductProviderFromJSON;
|
|
31
|
+
function ProductProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
exports.ProductProviderFromJSONTyped = ProductProviderFromJSONTyped;
|
|
35
|
+
function ProductProviderToJSON(value) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
exports.ProductProviderToJSON = ProductProviderToJSON;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './Barcodes';
|
|
2
|
-
export * from './DataProvider';
|
|
3
2
|
export * from './HttpLink';
|
|
4
3
|
export * from './Image';
|
|
5
4
|
export * from './ImageCreationParameters';
|
|
@@ -15,15 +14,11 @@ export * from './PagingMetadata';
|
|
|
15
14
|
export * from './Product';
|
|
16
15
|
export * from './ProductCreationOrUpdateParameters';
|
|
17
16
|
export * from './ProductDispensationPlace';
|
|
18
|
-
export * from './ProductJournal';
|
|
19
17
|
export * from './ProductMarketStatus';
|
|
20
18
|
export * from './ProductProscription';
|
|
21
19
|
export * from './ProductProscriptionCreationParameters';
|
|
20
|
+
export * from './ProductProvider';
|
|
22
21
|
export * from './ProductSecondaryType';
|
|
23
|
-
export * from './ProductSource';
|
|
24
|
-
export * from './ProductSourceBcb';
|
|
25
|
-
export * from './ProductSourceFields';
|
|
26
|
-
export * from './ProductSourceFieldsBarcodes';
|
|
27
22
|
export * from './ProductStatus';
|
|
28
23
|
export * from './ProductStorageType';
|
|
29
24
|
export * from './ProductType';
|
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Barcodes"), exports);
|
|
18
|
-
__exportStar(require("./DataProvider"), exports);
|
|
19
18
|
__exportStar(require("./HttpLink"), exports);
|
|
20
19
|
__exportStar(require("./Image"), exports);
|
|
21
20
|
__exportStar(require("./ImageCreationParameters"), exports);
|
|
@@ -31,15 +30,11 @@ __exportStar(require("./PagingMetadata"), exports);
|
|
|
31
30
|
__exportStar(require("./Product"), exports);
|
|
32
31
|
__exportStar(require("./ProductCreationOrUpdateParameters"), exports);
|
|
33
32
|
__exportStar(require("./ProductDispensationPlace"), exports);
|
|
34
|
-
__exportStar(require("./ProductJournal"), exports);
|
|
35
33
|
__exportStar(require("./ProductMarketStatus"), exports);
|
|
36
34
|
__exportStar(require("./ProductProscription"), exports);
|
|
37
35
|
__exportStar(require("./ProductProscriptionCreationParameters"), exports);
|
|
36
|
+
__exportStar(require("./ProductProvider"), exports);
|
|
38
37
|
__exportStar(require("./ProductSecondaryType"), exports);
|
|
39
|
-
__exportStar(require("./ProductSource"), exports);
|
|
40
|
-
__exportStar(require("./ProductSourceBcb"), exports);
|
|
41
|
-
__exportStar(require("./ProductSourceFields"), exports);
|
|
42
|
-
__exportStar(require("./ProductSourceFieldsBarcodes"), exports);
|
|
43
38
|
__exportStar(require("./ProductStatus"), exports);
|
|
44
39
|
__exportStar(require("./ProductStorageType"), exports);
|
|
45
40
|
__exportStar(require("./ProductType"), exports);
|
|
@@ -37,6 +37,6 @@ export declare class SearchProductPriceRecommendationApi extends BaseAPI {
|
|
|
37
37
|
export declare enum GetProductPriceRecommendationsOrderByEnum {
|
|
38
38
|
PRICEasc = "PRICE:asc",
|
|
39
39
|
PRICEdesc = "PRICE:desc",
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
CREATEDATasc = "CREATED_AT:asc",
|
|
41
|
+
CREATEDATdesc = "CREATED_AT:desc"
|
|
42
42
|
}
|
|
@@ -168,6 +168,6 @@ var GetProductPriceRecommendationsOrderByEnum;
|
|
|
168
168
|
(function (GetProductPriceRecommendationsOrderByEnum) {
|
|
169
169
|
GetProductPriceRecommendationsOrderByEnum["PRICEasc"] = "PRICE:asc";
|
|
170
170
|
GetProductPriceRecommendationsOrderByEnum["PRICEdesc"] = "PRICE:desc";
|
|
171
|
-
GetProductPriceRecommendationsOrderByEnum["
|
|
172
|
-
GetProductPriceRecommendationsOrderByEnum["
|
|
171
|
+
GetProductPriceRecommendationsOrderByEnum["CREATEDATasc"] = "CREATED_AT:asc";
|
|
172
|
+
GetProductPriceRecommendationsOrderByEnum["CREATEDATdesc"] = "CREATED_AT:desc";
|
|
173
173
|
})(GetProductPriceRecommendationsOrderByEnum = exports.GetProductPriceRecommendationsOrderByEnum || (exports.GetProductPriceRecommendationsOrderByEnum = {}));
|
|
@@ -39,7 +39,7 @@ export interface ProductPriceRecommendation {
|
|
|
39
39
|
* @type {Date}
|
|
40
40
|
* @memberof ProductPriceRecommendation
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
createdAt?: Date;
|
|
43
43
|
}
|
|
44
44
|
export declare function ProductPriceRecommendationFromJSON(json: any): ProductPriceRecommendation;
|
|
45
45
|
export declare function ProductPriceRecommendationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductPriceRecommendation;
|
|
@@ -28,7 +28,7 @@ function ProductPriceRecommendationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'id': json['id'],
|
|
29
29
|
'product': (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
|
|
30
30
|
'price': json['price'],
|
|
31
|
-
'
|
|
31
|
+
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
exports.ProductPriceRecommendationFromJSONTyped = ProductPriceRecommendationFromJSONTyped;
|
|
@@ -43,7 +43,7 @@ function ProductPriceRecommendationToJSON(value) {
|
|
|
43
43
|
'id': value.id,
|
|
44
44
|
'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
|
|
45
45
|
'price': value.price,
|
|
46
|
-
'
|
|
46
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
exports.ProductPriceRecommendationToJSON = ProductPriceRecommendationToJSON;
|
package/catalog/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
package/catalog/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./src"), exports);
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-catalog
|
|
3
|
-
* This is the REST API of LCDP catalog
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
|
-
import { ProductInsight, ProductInsightCreateOrUpdateParameters } from '../models';
|
|
14
|
-
export interface CreateProductInsightRequest {
|
|
15
|
-
productInsightCreateOrUpdateParameters: ProductInsightCreateOrUpdateParameters;
|
|
16
|
-
}
|
|
17
|
-
export interface DeleteProductInsightRequest {
|
|
18
|
-
productInsightId: number;
|
|
19
|
-
}
|
|
20
|
-
export interface UpdateProductInsightRequest {
|
|
21
|
-
productInsightId: number;
|
|
22
|
-
productInsightCreateOrUpdateParameters: ProductInsightCreateOrUpdateParameters;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* no description
|
|
26
|
-
*/
|
|
27
|
-
export declare class ManageProductInsightApi extends BaseAPI {
|
|
28
|
-
/**
|
|
29
|
-
* Create a new product insight.
|
|
30
|
-
* Create a new product insight
|
|
31
|
-
*/
|
|
32
|
-
createProductInsightRaw(requestParameters: CreateProductInsightRequest): Promise<ApiResponse<ProductInsight | BlobWithMeta>>;
|
|
33
|
-
/**
|
|
34
|
-
* Create a new product insight.
|
|
35
|
-
* Create a new product insight
|
|
36
|
-
*/
|
|
37
|
-
createProductInsight(requestParameters: CreateProductInsightRequest): Promise<ProductInsight | BlobWithMeta>;
|
|
38
|
-
/**
|
|
39
|
-
* Delete product insight
|
|
40
|
-
*/
|
|
41
|
-
deleteProductInsightRaw(requestParameters: DeleteProductInsightRequest): Promise<ApiResponse<void>>;
|
|
42
|
-
/**
|
|
43
|
-
* Delete product insight
|
|
44
|
-
*/
|
|
45
|
-
deleteProductInsight(requestParameters: DeleteProductInsightRequest): Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Update product insight
|
|
48
|
-
*/
|
|
49
|
-
updateProductInsightRaw(requestParameters: UpdateProductInsightRequest): Promise<ApiResponse<ProductInsight | BlobWithMeta>>;
|
|
50
|
-
/**
|
|
51
|
-
* Update product insight
|
|
52
|
-
*/
|
|
53
|
-
updateProductInsight(requestParameters: UpdateProductInsightRequest): Promise<ProductInsight | BlobWithMeta>;
|
|
54
|
-
}
|