@lcdp/api-react-rest-client 3.1.8-develop.23899292883 → 3.1.9-LDS-5497-producttype-as-enum.23900450029
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/src/models/ProductInsight.d.ts +6 -6
- package/catalog/src/models/ProductInsight.js +6 -6
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +8 -6
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +6 -4
- package/catalog/src/models/ProductSecondaryType.d.ts +25 -0
- package/catalog/src/models/ProductSecondaryType.js +48 -0
- package/catalog/src/models/ProductType.d.ts +28 -0
- package/catalog/src/models/ProductType.js +51 -0
- package/catalog/src/models/index.d.ts +2 -2
- package/catalog/src/models/index.js +2 -2
- package/factory/src/models/Product.d.ts +4 -3
- package/factory/src/models/Product.js +3 -2
- package/factory/src/models/ProductType.d.ts +28 -0
- package/factory/src/models/ProductType.js +51 -0
- package/factory/src/models/index.d.ts +1 -0
- package/factory/src/models/index.js +1 -0
- package/package.json +1 -1
- package/product/src/apis/ManageProductApi.d.ts +2 -2
- package/product/src/apis/ManageProductApi.js +2 -2
- package/product/src/apis/index.d.ts +0 -1
- package/product/src/apis/index.js +0 -1
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +8 -6
- package/product/src/models/ProductCreationOrUpdateParameters.js +6 -4
- package/product/src/models/ProductSecondaryType.d.ts +7 -19
- package/product/src/models/ProductSecondaryType.js +18 -17
- package/product/src/models/ProductType.d.ts +10 -19
- package/product/src/models/ProductType.js +21 -17
- package/servant/src/apis/ManageTaskApi.d.ts +0 -12
- package/servant/src/apis/ManageTaskApi.js +0 -68
- package/servant/src/models/Task.d.ts +0 -6
- package/servant/src/models/Task.js +0 -4
- package/user/src/apis/ManageUserRestrictionApi.d.ts +1 -25
- package/user/src/apis/ManageUserRestrictionApi.js +12 -152
- package/user/src/apis/SearchUserRestrictionApi.d.ts +1 -12
- package/user/src/apis/SearchUserRestrictionApi.js +0 -79
- package/user/src/models/ProductType.d.ts +28 -0
- package/user/src/models/ProductType.js +51 -0
- package/user/src/models/RestrictedProductType.d.ts +45 -0
- package/user/src/models/RestrictedProductType.js +54 -0
- package/user/src/models/User.d.ts +3 -2
- package/user/src/models/User.js +3 -2
- package/user/src/models/UserUpdateParameters.d.ts +7 -0
- package/user/src/models/UserUpdateParameters.js +3 -0
- package/user/src/models/index.d.ts +2 -2
- package/user/src/models/index.js +2 -2
- package/catalog/src/models/ProductSecondaryTypeLink.d.ts +0 -43
- package/catalog/src/models/ProductSecondaryTypeLink.js +0 -51
- package/catalog/src/models/ProductTypeLink.d.ts +0 -43
- package/catalog/src/models/ProductTypeLink.js +0 -51
- package/product/src/apis/SearchProductMetadataApi.d.ts +0 -56
- package/product/src/apis/SearchProductMetadataApi.js +0 -390
- package/user/src/models/ProductTypeLink.d.ts +0 -43
- package/user/src/models/ProductTypeLink.js +0 -51
- package/user/src/models/UserRestrictedProductTypeCreationParameter.d.ts +0 -31
- package/user/src/models/UserRestrictedProductTypeCreationParameter.js +0 -47
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ProductSecondaryType } from './ProductSecondaryType';
|
|
12
13
|
import type { LaboratoryLink } from './LaboratoryLink';
|
|
13
14
|
import type { VatLink } from './VatLink';
|
|
14
15
|
import type { ProductStorageType } from './ProductStorageType';
|
|
16
|
+
import type { ProductType } from './ProductType';
|
|
15
17
|
import type { ProductInsightJournal } from './ProductInsightJournal';
|
|
16
18
|
import type { Barcodes } from './Barcodes';
|
|
17
|
-
import type { ProductTypeLink } from './ProductTypeLink';
|
|
18
|
-
import type { ProductSecondaryTypeLink } from './ProductSecondaryTypeLink';
|
|
19
19
|
/**
|
|
20
20
|
* A product insight is an element that describe particular values for some product fields.
|
|
21
21
|
* Note that an insight dispose of a unique numeric 'id' identifier and is also identifiable by its signatures.
|
|
@@ -73,16 +73,16 @@ export interface ProductInsight {
|
|
|
73
73
|
unitPrice?: number | null;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
|
-
* @type {
|
|
76
|
+
* @type {ProductType}
|
|
77
77
|
* @memberof ProductInsight
|
|
78
78
|
*/
|
|
79
|
-
type?:
|
|
79
|
+
type?: ProductType | null;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
|
-
* @type {
|
|
82
|
+
* @type {ProductSecondaryType}
|
|
83
83
|
* @memberof ProductInsight
|
|
84
84
|
*/
|
|
85
|
-
secondaryType?:
|
|
85
|
+
secondaryType?: ProductSecondaryType | null;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
88
|
* @type {LaboratoryLink}
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductInsightToJSON = exports.ProductInsightFromJSONTyped = exports.ProductInsightFromJSON = exports.instanceOfProductInsight = void 0;
|
|
17
|
+
var ProductSecondaryType_1 = require("./ProductSecondaryType");
|
|
17
18
|
var LaboratoryLink_1 = require("./LaboratoryLink");
|
|
18
19
|
var VatLink_1 = require("./VatLink");
|
|
19
20
|
var ProductStorageType_1 = require("./ProductStorageType");
|
|
21
|
+
var ProductType_1 = require("./ProductType");
|
|
20
22
|
var ProductInsightJournal_1 = require("./ProductInsightJournal");
|
|
21
23
|
var Barcodes_1 = require("./Barcodes");
|
|
22
|
-
var ProductTypeLink_1 = require("./ProductTypeLink");
|
|
23
|
-
var ProductSecondaryTypeLink_1 = require("./ProductSecondaryTypeLink");
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the ProductInsight interface.
|
|
26
26
|
*/
|
|
@@ -50,8 +50,8 @@ function ProductInsightFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'dci': json['dci'],
|
|
51
51
|
'unitWeight': json['unitWeight'],
|
|
52
52
|
'unitPrice': json['unitPrice'],
|
|
53
|
-
'type': (json['type'] === null || json['type'] === undefined) ? json['type'] : (0,
|
|
54
|
-
'secondaryType': (json['secondaryType'] === null || json['secondaryType'] === undefined) ? json['secondaryType'] : (0,
|
|
53
|
+
'type': (json['type'] === null || json['type'] === undefined) ? json['type'] : (0, ProductType_1.ProductTypeFromJSON)(json['type']),
|
|
54
|
+
'secondaryType': (json['secondaryType'] === null || json['secondaryType'] === undefined) ? json['secondaryType'] : (0, ProductSecondaryType_1.ProductSecondaryTypeFromJSON)(json['secondaryType']),
|
|
55
55
|
'laboratory': (json['laboratory'] === null || json['laboratory'] === undefined) ? json['laboratory'] : (0, LaboratoryLink_1.LaboratoryLinkFromJSON)(json['laboratory']),
|
|
56
56
|
'vat': (json['vat'] === null || json['vat'] === undefined) ? json['vat'] : (0, VatLink_1.VatLinkFromJSON)(json['vat']),
|
|
57
57
|
'storageType': (json['storageType'] === null || json['storageType'] === undefined) ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
|
|
@@ -71,8 +71,8 @@ function ProductInsightToJSON(value) {
|
|
|
71
71
|
'dci': value['dci'],
|
|
72
72
|
'unitWeight': value['unitWeight'],
|
|
73
73
|
'unitPrice': value['unitPrice'],
|
|
74
|
-
'type': (0,
|
|
75
|
-
'secondaryType': (0,
|
|
74
|
+
'type': (0, ProductType_1.ProductTypeToJSON)(value['type']),
|
|
75
|
+
'secondaryType': (0, ProductSecondaryType_1.ProductSecondaryTypeToJSON)(value['secondaryType']),
|
|
76
76
|
'laboratory': (0, LaboratoryLink_1.LaboratoryLinkToJSON)(value['laboratory']),
|
|
77
77
|
'vat': (0, VatLink_1.VatLinkToJSON)(value['vat']),
|
|
78
78
|
'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value['storageType']),
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ProductSecondaryType } from './ProductSecondaryType';
|
|
12
13
|
import type { ProductStorageType } from './ProductStorageType';
|
|
14
|
+
import type { ProductType } from './ProductType';
|
|
13
15
|
import type { Barcodes } from './Barcodes';
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
@@ -54,17 +56,17 @@ export interface ProductInsightCreateOrUpdateParameters {
|
|
|
54
56
|
*/
|
|
55
57
|
unitPrice?: number | null;
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {
|
|
59
|
+
*
|
|
60
|
+
* @type {ProductType}
|
|
59
61
|
* @memberof ProductInsightCreateOrUpdateParameters
|
|
60
62
|
*/
|
|
61
|
-
|
|
63
|
+
type?: ProductType | null;
|
|
62
64
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {
|
|
65
|
+
*
|
|
66
|
+
* @type {ProductSecondaryType}
|
|
65
67
|
* @memberof ProductInsightCreateOrUpdateParameters
|
|
66
68
|
*/
|
|
67
|
-
|
|
69
|
+
secondaryType?: ProductSecondaryType | null;
|
|
68
70
|
/**
|
|
69
71
|
* Laboratory ID
|
|
70
72
|
* @type {number}
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductInsightCreateOrUpdateParametersToJSON = exports.ProductInsightCreateOrUpdateParametersFromJSONTyped = exports.ProductInsightCreateOrUpdateParametersFromJSON = exports.instanceOfProductInsightCreateOrUpdateParameters = void 0;
|
|
17
|
+
var ProductSecondaryType_1 = require("./ProductSecondaryType");
|
|
17
18
|
var ProductStorageType_1 = require("./ProductStorageType");
|
|
19
|
+
var ProductType_1 = require("./ProductType");
|
|
18
20
|
var Barcodes_1 = require("./Barcodes");
|
|
19
21
|
/**
|
|
20
22
|
* Check if a given object implements the ProductInsightCreateOrUpdateParameters interface.
|
|
@@ -40,8 +42,8 @@ function ProductInsightCreateOrUpdateParametersFromJSONTyped(json, ignoreDiscrim
|
|
|
40
42
|
'dci': json['dci'],
|
|
41
43
|
'unitWeight': json['unitWeight'],
|
|
42
44
|
'unitPrice': json['unitPrice'],
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
+
'type': (json['type'] === null || json['type'] === undefined) ? json['type'] : (0, ProductType_1.ProductTypeFromJSON)(json['type']),
|
|
46
|
+
'secondaryType': (json['secondaryType'] === null || json['secondaryType'] === undefined) ? json['secondaryType'] : (0, ProductSecondaryType_1.ProductSecondaryTypeFromJSON)(json['secondaryType']),
|
|
45
47
|
'laboratoryId': json['laboratoryId'],
|
|
46
48
|
'vatId': json['vatId'],
|
|
47
49
|
'storageType': (json['storageType'] === null || json['storageType'] === undefined) ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
|
|
@@ -59,8 +61,8 @@ function ProductInsightCreateOrUpdateParametersToJSON(value) {
|
|
|
59
61
|
'dci': value['dci'],
|
|
60
62
|
'unitWeight': value['unitWeight'],
|
|
61
63
|
'unitPrice': value['unitPrice'],
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
+
'type': (0, ProductType_1.ProductTypeToJSON)(value['type']),
|
|
65
|
+
'secondaryType': (0, ProductSecondaryType_1.ProductSecondaryTypeToJSON)(value['secondaryType']),
|
|
64
66
|
'laboratoryId': value['laboratoryId'],
|
|
65
67
|
'vatId': value['vatId'],
|
|
66
68
|
'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value['storageType']),
|
|
@@ -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
|
+
*/
|
|
16
|
+
export declare const ProductSecondaryType: {
|
|
17
|
+
readonly OTC: "OTC";
|
|
18
|
+
readonly VIGNETTE: "VIGNETTE";
|
|
19
|
+
readonly NR: "NR";
|
|
20
|
+
};
|
|
21
|
+
export declare type ProductSecondaryType = typeof ProductSecondaryType[keyof typeof ProductSecondaryType];
|
|
22
|
+
export declare function instanceOfProductSecondaryType(value: any): boolean;
|
|
23
|
+
export declare function ProductSecondaryTypeFromJSON(json: any): ProductSecondaryType;
|
|
24
|
+
export declare function ProductSecondaryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSecondaryType;
|
|
25
|
+
export declare function ProductSecondaryTypeToJSON(value?: ProductSecondaryType | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.ProductSecondaryTypeToJSON = exports.ProductSecondaryTypeFromJSONTyped = exports.ProductSecondaryTypeFromJSON = exports.instanceOfProductSecondaryType = exports.ProductSecondaryType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ProductSecondaryType = {
|
|
22
|
+
OTC: 'OTC',
|
|
23
|
+
VIGNETTE: 'VIGNETTE',
|
|
24
|
+
NR: 'NR'
|
|
25
|
+
};
|
|
26
|
+
function instanceOfProductSecondaryType(value) {
|
|
27
|
+
for (var key in exports.ProductSecondaryType) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductSecondaryType, key)) {
|
|
29
|
+
if (exports.ProductSecondaryType[key] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfProductSecondaryType = instanceOfProductSecondaryType;
|
|
37
|
+
function ProductSecondaryTypeFromJSON(json) {
|
|
38
|
+
return ProductSecondaryTypeFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.ProductSecondaryTypeFromJSON = ProductSecondaryTypeFromJSON;
|
|
41
|
+
function ProductSecondaryTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
exports.ProductSecondaryTypeFromJSONTyped = ProductSecondaryTypeFromJSONTyped;
|
|
45
|
+
function ProductSecondaryTypeToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
exports.ProductSecondaryTypeToJSON = ProductSecondaryTypeToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-catalog
|
|
3
|
+
* This is the REST API of LCDP catalog
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ProductType: {
|
|
17
|
+
readonly PARAPHARMACIE: "PARAPHARMACIE";
|
|
18
|
+
readonly DM: "DM";
|
|
19
|
+
readonly MEDICAMENT: "MEDICAMENT";
|
|
20
|
+
readonly HOMEOPATHIE: "HOMEOPATHIE";
|
|
21
|
+
readonly VETERINAIRE: "VETERINAIRE";
|
|
22
|
+
readonly COMPLEMENT: "COMPLEMENT";
|
|
23
|
+
};
|
|
24
|
+
export declare type ProductType = typeof ProductType[keyof typeof ProductType];
|
|
25
|
+
export declare function instanceOfProductType(value: any): boolean;
|
|
26
|
+
export declare function ProductTypeFromJSON(json: any): ProductType;
|
|
27
|
+
export declare function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType;
|
|
28
|
+
export declare function ProductTypeToJSON(value?: ProductType | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.ProductTypeToJSON = exports.ProductTypeFromJSONTyped = exports.ProductTypeFromJSON = exports.instanceOfProductType = exports.ProductType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ProductType = {
|
|
22
|
+
PARAPHARMACIE: 'PARAPHARMACIE',
|
|
23
|
+
DM: 'DM',
|
|
24
|
+
MEDICAMENT: 'MEDICAMENT',
|
|
25
|
+
HOMEOPATHIE: 'HOMEOPATHIE',
|
|
26
|
+
VETERINAIRE: 'VETERINAIRE',
|
|
27
|
+
COMPLEMENT: 'COMPLEMENT'
|
|
28
|
+
};
|
|
29
|
+
function instanceOfProductType(value) {
|
|
30
|
+
for (var key in exports.ProductType) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductType, key)) {
|
|
32
|
+
if (exports.ProductType[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
exports.instanceOfProductType = instanceOfProductType;
|
|
40
|
+
function ProductTypeFromJSON(json) {
|
|
41
|
+
return ProductTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
exports.ProductTypeFromJSON = ProductTypeFromJSON;
|
|
44
|
+
function ProductTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
exports.ProductTypeFromJSONTyped = ProductTypeFromJSONTyped;
|
|
48
|
+
function ProductTypeToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
exports.ProductTypeToJSON = ProductTypeToJSON;
|
|
@@ -7,8 +7,8 @@ export * from './PagingMetadata';
|
|
|
7
7
|
export * from './ProductInsight';
|
|
8
8
|
export * from './ProductInsightCreateOrUpdateParameters';
|
|
9
9
|
export * from './ProductInsightJournal';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './ProductSecondaryType';
|
|
11
11
|
export * from './ProductStorageType';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './ProductType';
|
|
13
13
|
export * from './RestError';
|
|
14
14
|
export * from './VatLink';
|
|
@@ -25,8 +25,8 @@ __exportStar(require("./PagingMetadata"), exports);
|
|
|
25
25
|
__exportStar(require("./ProductInsight"), exports);
|
|
26
26
|
__exportStar(require("./ProductInsightCreateOrUpdateParameters"), exports);
|
|
27
27
|
__exportStar(require("./ProductInsightJournal"), exports);
|
|
28
|
-
__exportStar(require("./
|
|
28
|
+
__exportStar(require("./ProductSecondaryType"), exports);
|
|
29
29
|
__exportStar(require("./ProductStorageType"), exports);
|
|
30
|
-
__exportStar(require("./
|
|
30
|
+
__exportStar(require("./ProductType"), exports);
|
|
31
31
|
__exportStar(require("./RestError"), exports);
|
|
32
32
|
__exportStar(require("./VatLink"), exports);
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ProductType } from './ProductType';
|
|
12
13
|
import type { ProductStatus } from './ProductStatus';
|
|
13
14
|
/**
|
|
14
15
|
* Restrictions :
|
|
@@ -50,11 +51,11 @@ export interface Product {
|
|
|
50
51
|
*/
|
|
51
52
|
unitWeight?: number | null;
|
|
52
53
|
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {
|
|
54
|
+
*
|
|
55
|
+
* @type {ProductType}
|
|
55
56
|
* @memberof Product
|
|
56
57
|
*/
|
|
57
|
-
|
|
58
|
+
type?: ProductType | null;
|
|
58
59
|
/**
|
|
59
60
|
* VAT identifier
|
|
60
61
|
* @type {string}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON = exports.instanceOfProduct = void 0;
|
|
17
|
+
var ProductType_1 = require("./ProductType");
|
|
17
18
|
var ProductStatus_1 = require("./ProductStatus");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the Product interface.
|
|
@@ -36,7 +37,7 @@ function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'dci': json['dci'],
|
|
37
38
|
'laboratoryName': json['laboratoryName'],
|
|
38
39
|
'unitWeight': json['unitWeight'],
|
|
39
|
-
'
|
|
40
|
+
'type': (json['type'] === null || json['type'] === undefined) ? json['type'] : (0, ProductType_1.ProductTypeFromJSON)(json['type']),
|
|
40
41
|
'vatId': json['vatId'],
|
|
41
42
|
'unitPrice': json['unitPrice'],
|
|
42
43
|
'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, ProductStatus_1.ProductStatusFromJSON)(json['status']),
|
|
@@ -53,7 +54,7 @@ function ProductToJSON(value) {
|
|
|
53
54
|
'dci': value['dci'],
|
|
54
55
|
'laboratoryName': value['laboratoryName'],
|
|
55
56
|
'unitWeight': value['unitWeight'],
|
|
56
|
-
'
|
|
57
|
+
'type': (0, ProductType_1.ProductTypeToJSON)(value['type']),
|
|
57
58
|
'vatId': value['vatId'],
|
|
58
59
|
'unitPrice': value['unitPrice'],
|
|
59
60
|
'status': (0, ProductStatus_1.ProductStatusToJSON)(value['status']),
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-factory-service
|
|
3
|
+
* This is the REST API of LCDP factory
|
|
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
|
+
*/
|
|
16
|
+
export declare const ProductType: {
|
|
17
|
+
readonly PARAPHARMACIE: "PARAPHARMACIE";
|
|
18
|
+
readonly DM: "DM";
|
|
19
|
+
readonly MEDICAMENT: "MEDICAMENT";
|
|
20
|
+
readonly HOMEOPATHIE: "HOMEOPATHIE";
|
|
21
|
+
readonly VETERINAIRE: "VETERINAIRE";
|
|
22
|
+
readonly COMPLEMENT: "COMPLEMENT";
|
|
23
|
+
};
|
|
24
|
+
export declare type ProductType = typeof ProductType[keyof typeof ProductType];
|
|
25
|
+
export declare function instanceOfProductType(value: any): boolean;
|
|
26
|
+
export declare function ProductTypeFromJSON(json: any): ProductType;
|
|
27
|
+
export declare function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType;
|
|
28
|
+
export declare function ProductTypeToJSON(value?: ProductType | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-factory-service
|
|
6
|
+
* This is the REST API of LCDP factory
|
|
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.ProductTypeToJSON = exports.ProductTypeFromJSONTyped = exports.ProductTypeFromJSON = exports.instanceOfProductType = exports.ProductType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ProductType = {
|
|
22
|
+
PARAPHARMACIE: 'PARAPHARMACIE',
|
|
23
|
+
DM: 'DM',
|
|
24
|
+
MEDICAMENT: 'MEDICAMENT',
|
|
25
|
+
HOMEOPATHIE: 'HOMEOPATHIE',
|
|
26
|
+
VETERINAIRE: 'VETERINAIRE',
|
|
27
|
+
COMPLEMENT: 'COMPLEMENT'
|
|
28
|
+
};
|
|
29
|
+
function instanceOfProductType(value) {
|
|
30
|
+
for (var key in exports.ProductType) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductType, key)) {
|
|
32
|
+
if (exports.ProductType[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
exports.instanceOfProductType = instanceOfProductType;
|
|
40
|
+
function ProductTypeFromJSON(json) {
|
|
41
|
+
return ProductTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
exports.ProductTypeFromJSON = ProductTypeFromJSON;
|
|
44
|
+
function ProductTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
exports.ProductTypeFromJSONTyped = ProductTypeFromJSONTyped;
|
|
48
|
+
function ProductTypeToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
exports.ProductTypeToJSON = ProductTypeToJSON;
|
|
@@ -16,6 +16,7 @@ export * from './PaginatedObject';
|
|
|
16
16
|
export * from './PagingMetadata';
|
|
17
17
|
export * from './Product';
|
|
18
18
|
export * from './ProductStatus';
|
|
19
|
+
export * from './ProductType';
|
|
19
20
|
export * from './ProductUpsertFactory';
|
|
20
21
|
export * from './ProductUpsertFactoryAllOfRecords';
|
|
21
22
|
export * from './QuotationDistributionMode';
|
|
@@ -34,6 +34,7 @@ __exportStar(require("./PaginatedObject"), exports);
|
|
|
34
34
|
__exportStar(require("./PagingMetadata"), exports);
|
|
35
35
|
__exportStar(require("./Product"), exports);
|
|
36
36
|
__exportStar(require("./ProductStatus"), exports);
|
|
37
|
+
__exportStar(require("./ProductType"), exports);
|
|
37
38
|
__exportStar(require("./ProductUpsertFactory"), exports);
|
|
38
39
|
__exportStar(require("./ProductUpsertFactoryAllOfRecords"), exports);
|
|
39
40
|
__exportStar(require("./QuotationDistributionMode"), exports);
|
package/package.json
CHANGED
|
@@ -25,12 +25,12 @@ export interface UpdateProductRequest {
|
|
|
25
25
|
*/
|
|
26
26
|
export declare class ManageProductApi extends runtime.BaseAPI {
|
|
27
27
|
/**
|
|
28
|
-
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice -
|
|
28
|
+
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice - type
|
|
29
29
|
* Create product from product form
|
|
30
30
|
*/
|
|
31
31
|
createProductRaw(requestParameters: CreateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Product | runtime.BlobWithMeta>>;
|
|
32
32
|
/**
|
|
33
|
-
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice -
|
|
33
|
+
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice - type
|
|
34
34
|
* Create product from product form
|
|
35
35
|
*/
|
|
36
36
|
createProduct(requestParameters: CreateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Product | runtime.BlobWithMeta>;
|
|
@@ -76,7 +76,7 @@ var ManageProductApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice -
|
|
79
|
+
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice - type
|
|
80
80
|
* Create product from product form
|
|
81
81
|
*/
|
|
82
82
|
ManageProductApi.prototype.createProductRaw = function (requestParameters, initOverrides) {
|
|
@@ -144,7 +144,7 @@ var ManageProductApi = /** @class */ (function (_super) {
|
|
|
144
144
|
});
|
|
145
145
|
};
|
|
146
146
|
/**
|
|
147
|
-
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice -
|
|
147
|
+
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice - type
|
|
148
148
|
* Create product from product form
|
|
149
149
|
*/
|
|
150
150
|
ManageProductApi.prototype.createProduct = function (requestParameters, initOverrides) {
|
|
@@ -21,5 +21,4 @@ __exportStar(require("./ManageProductImageApi"), exports);
|
|
|
21
21
|
__exportStar(require("./ManageProductProscriptionApi"), exports);
|
|
22
22
|
__exportStar(require("./SearchProductApi"), exports);
|
|
23
23
|
__exportStar(require("./SearchProductImageApi"), exports);
|
|
24
|
-
__exportStar(require("./SearchProductMetadataApi"), exports);
|
|
25
24
|
__exportStar(require("./SearchProductProscriptionApi"), exports);
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ProductSecondaryType } from './ProductSecondaryType';
|
|
12
13
|
import type { ProductStorageType } from './ProductStorageType';
|
|
14
|
+
import type { ProductType } from './ProductType';
|
|
13
15
|
import type { ProductMarketStatus } from './ProductMarketStatus';
|
|
14
16
|
import type { ProductStatus } from './ProductStatus';
|
|
15
17
|
import type { Barcodes } from './Barcodes';
|
|
@@ -63,17 +65,17 @@ export interface ProductCreationOrUpdateParameters {
|
|
|
63
65
|
*/
|
|
64
66
|
unitPriceEffectiveDate?: Date | null;
|
|
65
67
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {
|
|
68
|
+
*
|
|
69
|
+
* @type {ProductType}
|
|
68
70
|
* @memberof ProductCreationOrUpdateParameters
|
|
69
71
|
*/
|
|
70
|
-
|
|
72
|
+
type?: ProductType | null;
|
|
71
73
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {
|
|
74
|
+
*
|
|
75
|
+
* @type {ProductSecondaryType}
|
|
74
76
|
* @memberof ProductCreationOrUpdateParameters
|
|
75
77
|
*/
|
|
76
|
-
|
|
78
|
+
secondaryType?: ProductSecondaryType | null;
|
|
77
79
|
/**
|
|
78
80
|
* Laboratory ID
|
|
79
81
|
* @type {number}
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductCreationOrUpdateParametersToJSON = exports.ProductCreationOrUpdateParametersFromJSONTyped = exports.ProductCreationOrUpdateParametersFromJSON = exports.instanceOfProductCreationOrUpdateParameters = void 0;
|
|
17
|
+
var ProductSecondaryType_1 = require("./ProductSecondaryType");
|
|
17
18
|
var ProductStorageType_1 = require("./ProductStorageType");
|
|
19
|
+
var ProductType_1 = require("./ProductType");
|
|
18
20
|
var ProductMarketStatus_1 = require("./ProductMarketStatus");
|
|
19
21
|
var ProductStatus_1 = require("./ProductStatus");
|
|
20
22
|
var Barcodes_1 = require("./Barcodes");
|
|
@@ -42,8 +44,8 @@ function ProductCreationOrUpdateParametersFromJSONTyped(json, ignoreDiscriminato
|
|
|
42
44
|
'unitWeight': json['unitWeight'],
|
|
43
45
|
'unitPrice': json['unitPrice'],
|
|
44
46
|
'unitPriceEffectiveDate': (json['unitPriceEffectiveDate'] === null || json['unitPriceEffectiveDate'] === undefined) ? json['unitPriceEffectiveDate'] : new Date(json['unitPriceEffectiveDate']),
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
+
'type': (json['type'] === null || json['type'] === undefined) ? json['type'] : (0, ProductType_1.ProductTypeFromJSON)(json['type']),
|
|
48
|
+
'secondaryType': (json['secondaryType'] === null || json['secondaryType'] === undefined) ? json['secondaryType'] : (0, ProductSecondaryType_1.ProductSecondaryTypeFromJSON)(json['secondaryType']),
|
|
47
49
|
'laboratoryId': json['laboratoryId'],
|
|
48
50
|
'vatId': json['vatId'],
|
|
49
51
|
'narcoticPrescription': json['narcoticPrescription'],
|
|
@@ -69,8 +71,8 @@ function ProductCreationOrUpdateParametersToJSON(value) {
|
|
|
69
71
|
'unitWeight': value['unitWeight'],
|
|
70
72
|
'unitPrice': value['unitPrice'],
|
|
71
73
|
'unitPriceEffectiveDate': (value['unitPriceEffectiveDate'] === null || value['unitPriceEffectiveDate'] === undefined) ? value['unitPriceEffectiveDate'] : value['unitPriceEffectiveDate'].toISOString(),
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
+
'type': (0, ProductType_1.ProductTypeToJSON)(value['type']),
|
|
75
|
+
'secondaryType': (0, ProductSecondaryType_1.ProductSecondaryTypeToJSON)(value['secondaryType']),
|
|
74
76
|
'laboratoryId': value['laboratoryId'],
|
|
75
77
|
'vatId': value['vatId'],
|
|
76
78
|
'narcoticPrescription': value['narcoticPrescription'],
|
|
@@ -12,26 +12,14 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface ProductSecondaryType
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Readable name for display
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ProductSecondaryType
|
|
28
|
-
*/
|
|
29
|
-
name?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ProductSecondaryType interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfProductSecondaryType(value: object): value is ProductSecondaryType;
|
|
16
|
+
export declare const ProductSecondaryType: {
|
|
17
|
+
readonly OTC: "OTC";
|
|
18
|
+
readonly VIGNETTE: "VIGNETTE";
|
|
19
|
+
readonly NR: "NR";
|
|
20
|
+
};
|
|
21
|
+
export declare type ProductSecondaryType = typeof ProductSecondaryType[keyof typeof ProductSecondaryType];
|
|
22
|
+
export declare function instanceOfProductSecondaryType(value: any): boolean;
|
|
35
23
|
export declare function ProductSecondaryTypeFromJSON(json: any): ProductSecondaryType;
|
|
36
24
|
export declare function ProductSecondaryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSecondaryType;
|
|
37
25
|
export declare function ProductSecondaryTypeToJSON(value?: ProductSecondaryType | null): any;
|