@lcdp/api-react-rest-client 2.5.2-develop.5999091874 → 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/sale-offer/src/apis/ManageSaleOfferApi.d.ts +1 -26
- package/sale-offer/src/apis/ManageSaleOfferApi.js +0 -146
- package/sale-offer/src/apis/ManageSaleOfferStatusApi.d.ts +32 -0
- package/{catalog/src/apis/SearchProductInsightApi.js → sale-offer/src/apis/ManageSaleOfferStatusApi.js} +25 -114
- package/sale-offer/src/apis/index.d.ts +1 -0
- package/sale-offer/src/apis/index.js +1 -0
- package/sale-offer/src/models/index.d.ts +0 -2
- package/sale-offer/src/models/index.js +0 -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/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
- package/sale-offer/src/models/SaleOfferUpdateParameters.d.ts +0 -35
- package/sale-offer/src/models/SaleOfferUpdateParameters.js +0 -46
- package/sale-offer/src/models/SaleOfferUpdateParametersStock.d.ts +0 -27
- package/sale-offer/src/models/SaleOfferUpdateParametersStock.js +0 -42
|
@@ -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;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
|
-
import { SaleOffer, SaleOfferCreationParameters, SaleOfferNewVersionParameters, SaleOfferStatus
|
|
13
|
+
import { SaleOffer, SaleOfferCreationParameters, SaleOfferNewVersionParameters, SaleOfferStatus } from '../models';
|
|
14
14
|
export interface CreateSaleOfferRequest {
|
|
15
15
|
from?: string;
|
|
16
16
|
saleOfferCreationParameters?: SaleOfferCreationParameters;
|
|
@@ -29,15 +29,6 @@ export interface DeleteSaleOffersRequest {
|
|
|
29
29
|
refEq?: Array<string>;
|
|
30
30
|
refNeq?: Array<string>;
|
|
31
31
|
}
|
|
32
|
-
export interface UpdateSaleOfferRequest {
|
|
33
|
-
saleOfferReference: string;
|
|
34
|
-
saleOfferUpdateParameters: SaleOfferUpdateParameters;
|
|
35
|
-
}
|
|
36
|
-
export interface UpdateSaleOffersRequest {
|
|
37
|
-
saleOfferUpdateParameters: SaleOfferUpdateParameters;
|
|
38
|
-
oEq?: Array<number>;
|
|
39
|
-
refEq?: Array<string>;
|
|
40
|
-
}
|
|
41
32
|
/**
|
|
42
33
|
* no description
|
|
43
34
|
*/
|
|
@@ -80,20 +71,4 @@ export declare class ManageSaleOfferApi extends BaseAPI {
|
|
|
80
71
|
* Delete sale offers filtered by user, sale offer status and product id
|
|
81
72
|
*/
|
|
82
73
|
deleteSaleOffers(requestParameters: DeleteSaleOffersRequest): Promise<void>;
|
|
83
|
-
/**
|
|
84
|
-
* Update sale offer\'
|
|
85
|
-
*/
|
|
86
|
-
updateSaleOfferRaw(requestParameters: UpdateSaleOfferRequest): Promise<ApiResponse<SaleOffer | BlobWithMeta>>;
|
|
87
|
-
/**
|
|
88
|
-
* Update sale offer\'
|
|
89
|
-
*/
|
|
90
|
-
updateSaleOffer(requestParameters: UpdateSaleOfferRequest): Promise<SaleOffer | BlobWithMeta>;
|
|
91
|
-
/**
|
|
92
|
-
* Update lot of sale offers
|
|
93
|
-
*/
|
|
94
|
-
updateSaleOffersRaw(requestParameters: UpdateSaleOffersRequest): Promise<ApiResponse<void>>;
|
|
95
|
-
/**
|
|
96
|
-
* Update lot of sale offers
|
|
97
|
-
*/
|
|
98
|
-
updateSaleOffers(requestParameters: UpdateSaleOffersRequest): Promise<void>;
|
|
99
74
|
}
|
|
@@ -366,152 +366,6 @@ var ManageSaleOfferApi = /** @class */ (function (_super) {
|
|
|
366
366
|
});
|
|
367
367
|
});
|
|
368
368
|
};
|
|
369
|
-
/**
|
|
370
|
-
* Update sale offer\'
|
|
371
|
-
*/
|
|
372
|
-
ManageSaleOfferApi.prototype.updateSaleOfferRaw = function (requestParameters) {
|
|
373
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
374
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_5;
|
|
375
|
-
return __generator(this, function (_a) {
|
|
376
|
-
switch (_a.label) {
|
|
377
|
-
case 0:
|
|
378
|
-
if (requestParameters.saleOfferReference === null || requestParameters.saleOfferReference === undefined) {
|
|
379
|
-
throw new runtime_1.RequiredError('saleOfferReference', 'Required parameter requestParameters.saleOfferReference was null or undefined when calling updateSaleOffer.');
|
|
380
|
-
}
|
|
381
|
-
if (requestParameters.saleOfferUpdateParameters === null || requestParameters.saleOfferUpdateParameters === undefined) {
|
|
382
|
-
throw new runtime_1.RequiredError('saleOfferUpdateParameters', 'Required parameter requestParameters.saleOfferUpdateParameters was null or undefined when calling updateSaleOffer.');
|
|
383
|
-
}
|
|
384
|
-
queryParameters = {};
|
|
385
|
-
headerParameters = {};
|
|
386
|
-
headerParameters['Content-Type'] = 'application/merge-patch+json';
|
|
387
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
388
|
-
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
389
|
-
}
|
|
390
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
391
|
-
token = this.configuration.accessToken;
|
|
392
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
393
|
-
if (tokenString) {
|
|
394
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
_a.label = 1;
|
|
398
|
-
case 1:
|
|
399
|
-
_a.trys.push([1, 3, , 4]);
|
|
400
|
-
return [4 /*yield*/, this.request({
|
|
401
|
-
path: "/sale-offers/{saleOfferReference}".replace("{".concat("saleOfferReference", "}"), encodeURIComponent(String(requestParameters.saleOfferReference))),
|
|
402
|
-
method: 'PATCH',
|
|
403
|
-
headers: headerParameters,
|
|
404
|
-
query: queryParameters,
|
|
405
|
-
body: (0, models_1.SaleOfferUpdateParametersToJSON)(requestParameters.saleOfferUpdateParameters),
|
|
406
|
-
})];
|
|
407
|
-
case 2:
|
|
408
|
-
response = _a.sent();
|
|
409
|
-
contentType = response.headers.get("content-type");
|
|
410
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
411
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SaleOfferFromJSON)(jsonValue); })];
|
|
412
|
-
}
|
|
413
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
414
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
415
|
-
}
|
|
416
|
-
else {
|
|
417
|
-
// TODO : Better handling of others application types
|
|
418
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
419
|
-
}
|
|
420
|
-
return [3 /*break*/, 4];
|
|
421
|
-
case 3:
|
|
422
|
-
response_5 = _a.sent();
|
|
423
|
-
console.debug(response_5);
|
|
424
|
-
throw response_5;
|
|
425
|
-
case 4: return [2 /*return*/];
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
|
-
});
|
|
429
|
-
};
|
|
430
|
-
/**
|
|
431
|
-
* Update sale offer\'
|
|
432
|
-
*/
|
|
433
|
-
ManageSaleOfferApi.prototype.updateSaleOffer = function (requestParameters) {
|
|
434
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
435
|
-
var response;
|
|
436
|
-
return __generator(this, function (_a) {
|
|
437
|
-
switch (_a.label) {
|
|
438
|
-
case 0: return [4 /*yield*/, this.updateSaleOfferRaw(requestParameters)];
|
|
439
|
-
case 1:
|
|
440
|
-
response = _a.sent();
|
|
441
|
-
return [4 /*yield*/, response.value()];
|
|
442
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
});
|
|
446
|
-
};
|
|
447
|
-
/**
|
|
448
|
-
* Update lot of sale offers
|
|
449
|
-
*/
|
|
450
|
-
ManageSaleOfferApi.prototype.updateSaleOffersRaw = function (requestParameters) {
|
|
451
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
452
|
-
var queryParameters, headerParameters, token, tokenString, response, response_6;
|
|
453
|
-
return __generator(this, function (_a) {
|
|
454
|
-
switch (_a.label) {
|
|
455
|
-
case 0:
|
|
456
|
-
if (requestParameters.saleOfferUpdateParameters === null || requestParameters.saleOfferUpdateParameters === undefined) {
|
|
457
|
-
throw new runtime_1.RequiredError('saleOfferUpdateParameters', 'Required parameter requestParameters.saleOfferUpdateParameters was null or undefined when calling updateSaleOffers.');
|
|
458
|
-
}
|
|
459
|
-
queryParameters = {};
|
|
460
|
-
if (requestParameters.oEq) {
|
|
461
|
-
queryParameters['o[eq]'] = requestParameters.oEq;
|
|
462
|
-
}
|
|
463
|
-
if (requestParameters.refEq) {
|
|
464
|
-
queryParameters['ref[eq]'] = requestParameters.refEq;
|
|
465
|
-
}
|
|
466
|
-
headerParameters = {};
|
|
467
|
-
headerParameters['Content-Type'] = 'application/merge-patch+json';
|
|
468
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
469
|
-
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
470
|
-
}
|
|
471
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
472
|
-
token = this.configuration.accessToken;
|
|
473
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
474
|
-
if (tokenString) {
|
|
475
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
_a.label = 1;
|
|
479
|
-
case 1:
|
|
480
|
-
_a.trys.push([1, 3, , 4]);
|
|
481
|
-
return [4 /*yield*/, this.request({
|
|
482
|
-
path: "/sale-offers",
|
|
483
|
-
method: 'PATCH',
|
|
484
|
-
headers: headerParameters,
|
|
485
|
-
query: queryParameters,
|
|
486
|
-
body: (0, models_1.SaleOfferUpdateParametersToJSON)(requestParameters.saleOfferUpdateParameters),
|
|
487
|
-
})];
|
|
488
|
-
case 2:
|
|
489
|
-
response = _a.sent();
|
|
490
|
-
return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
|
|
491
|
-
case 3:
|
|
492
|
-
response_6 = _a.sent();
|
|
493
|
-
console.debug(response_6);
|
|
494
|
-
throw response_6;
|
|
495
|
-
case 4: return [2 /*return*/];
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
});
|
|
499
|
-
};
|
|
500
|
-
/**
|
|
501
|
-
* Update lot of sale offers
|
|
502
|
-
*/
|
|
503
|
-
ManageSaleOfferApi.prototype.updateSaleOffers = function (requestParameters) {
|
|
504
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
505
|
-
return __generator(this, function (_a) {
|
|
506
|
-
switch (_a.label) {
|
|
507
|
-
case 0: return [4 /*yield*/, this.updateSaleOffersRaw(requestParameters)];
|
|
508
|
-
case 1:
|
|
509
|
-
_a.sent();
|
|
510
|
-
return [2 /*return*/];
|
|
511
|
-
}
|
|
512
|
-
});
|
|
513
|
-
});
|
|
514
|
-
};
|
|
515
369
|
return ManageSaleOfferApi;
|
|
516
370
|
}(runtime_1.BaseAPI));
|
|
517
371
|
exports.ManageSaleOfferApi = ManageSaleOfferApi;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
|
+
import { SaleOfferStatus } from '../models';
|
|
14
|
+
export interface UpdateSaleOfferStatusRequest {
|
|
15
|
+
saleOfferReference: string;
|
|
16
|
+
body: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* no description
|
|
20
|
+
*/
|
|
21
|
+
export declare class ManageSaleOfferStatusApi extends BaseAPI {
|
|
22
|
+
/**
|
|
23
|
+
* Set the status for sale offer, with following preconditions according destination : # ARCHIVED : - You are the owner or you are ADMINISTRATOR - Sale offer in status (WAITING_FOR_PRODUCT, ENABLED, HOLIDAY, ASKING_FOR_INVOICE) # OTHERS : - You are ADMINISTRATOR
|
|
24
|
+
* Update a sale offer status
|
|
25
|
+
*/
|
|
26
|
+
updateSaleOfferStatusRaw(requestParameters: UpdateSaleOfferStatusRequest): Promise<ApiResponse<SaleOfferStatus | BlobWithMeta>>;
|
|
27
|
+
/**
|
|
28
|
+
* Set the status for sale offer, with following preconditions according destination : # ARCHIVED : - You are the owner or you are ADMINISTRATOR - Sale offer in status (WAITING_FOR_PRODUCT, ENABLED, HOLIDAY, ASKING_FOR_INVOICE) # OTHERS : - You are ADMINISTRATOR
|
|
29
|
+
* Update a sale offer status
|
|
30
|
+
*/
|
|
31
|
+
updateSaleOfferStatus(requestParameters: UpdateSaleOfferStatusRequest): Promise<SaleOfferStatus | BlobWithMeta>;
|
|
32
|
+
}
|