@lcdp/api-react-rest-client 3.1.7-LDS-5497-producttype-as-enum.23858728941 → 3.1.7-develop.23888166426
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 +6 -8
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +4 -6
- package/catalog/src/models/ProductSecondaryTypeLink.d.ts +43 -0
- package/catalog/src/models/ProductSecondaryTypeLink.js +51 -0
- package/catalog/src/models/ProductTypeLink.d.ts +43 -0
- package/catalog/src/models/ProductTypeLink.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 +3 -4
- package/factory/src/models/Product.js +2 -3
- package/factory/src/models/index.d.ts +0 -1
- package/factory/src/models/index.js +0 -1
- 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/SearchProductMetadataApi.d.ts +56 -0
- package/product/src/apis/SearchProductMetadataApi.js +390 -0
- package/product/src/apis/index.d.ts +1 -0
- package/product/src/apis/index.js +1 -0
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -8
- package/product/src/models/ProductCreationOrUpdateParameters.js +4 -6
- package/product/src/models/ProductSecondaryType.d.ts +19 -7
- package/product/src/models/ProductSecondaryType.js +17 -18
- package/product/src/models/ProductType.d.ts +19 -10
- package/product/src/models/ProductType.js +17 -21
- package/user/src/apis/ManageUserRestrictionApi.d.ts +25 -1
- package/user/src/apis/ManageUserRestrictionApi.js +152 -12
- package/user/src/apis/SearchUserRestrictionApi.d.ts +12 -1
- package/user/src/apis/SearchUserRestrictionApi.js +79 -0
- package/user/src/models/ProductTypeLink.d.ts +43 -0
- package/user/src/models/ProductTypeLink.js +51 -0
- package/user/src/models/User.d.ts +2 -3
- package/user/src/models/User.js +2 -3
- package/user/src/models/UserRestrictedProductTypeCreationParameter.d.ts +31 -0
- package/user/src/models/UserRestrictedProductTypeCreationParameter.js +47 -0
- package/user/src/models/UserUpdateParameters.d.ts +0 -7
- package/user/src/models/UserUpdateParameters.js +0 -3
- package/user/src/models/index.d.ts +2 -2
- package/user/src/models/index.js +2 -2
- package/catalog/src/models/ProductSecondaryType.d.ts +0 -25
- package/catalog/src/models/ProductSecondaryType.js +0 -48
- package/catalog/src/models/ProductType.d.ts +0 -28
- package/catalog/src/models/ProductType.js +0 -51
- package/factory/src/models/ProductType.d.ts +0 -28
- package/factory/src/models/ProductType.js +0 -51
- package/user/src/models/ProductType.d.ts +0 -28
- package/user/src/models/ProductType.js +0 -51
- package/user/src/models/RestrictedProductType.d.ts +0 -45
- package/user/src/models/RestrictedProductType.js +0 -54
|
@@ -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';
|
|
13
12
|
import type { LaboratoryLink } from './LaboratoryLink';
|
|
14
13
|
import type { VatLink } from './VatLink';
|
|
15
14
|
import type { ProductStorageType } from './ProductStorageType';
|
|
16
|
-
import type { ProductType } from './ProductType';
|
|
17
15
|
import type { ProductInsightJournal } from './ProductInsightJournal';
|
|
18
16
|
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 {ProductTypeLink}
|
|
77
77
|
* @memberof ProductInsight
|
|
78
78
|
*/
|
|
79
|
-
type?:
|
|
79
|
+
type?: ProductTypeLink | null;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
|
-
* @type {
|
|
82
|
+
* @type {ProductSecondaryTypeLink}
|
|
83
83
|
* @memberof ProductInsight
|
|
84
84
|
*/
|
|
85
|
-
secondaryType?:
|
|
85
|
+
secondaryType?: ProductSecondaryTypeLink | 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");
|
|
18
17
|
var LaboratoryLink_1 = require("./LaboratoryLink");
|
|
19
18
|
var VatLink_1 = require("./VatLink");
|
|
20
19
|
var ProductStorageType_1 = require("./ProductStorageType");
|
|
21
|
-
var ProductType_1 = require("./ProductType");
|
|
22
20
|
var ProductInsightJournal_1 = require("./ProductInsightJournal");
|
|
23
21
|
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, ProductTypeLink_1.ProductTypeLinkFromJSON)(json['type']),
|
|
54
|
+
'secondaryType': (json['secondaryType'] === null || json['secondaryType'] === undefined) ? json['secondaryType'] : (0, ProductSecondaryTypeLink_1.ProductSecondaryTypeLinkFromJSON)(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, ProductTypeLink_1.ProductTypeLinkToJSON)(value['type']),
|
|
75
|
+
'secondaryType': (0, ProductSecondaryTypeLink_1.ProductSecondaryTypeLinkToJSON)(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,9 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ProductSecondaryType } from './ProductSecondaryType';
|
|
13
12
|
import type { ProductStorageType } from './ProductStorageType';
|
|
14
|
-
import type { ProductType } from './ProductType';
|
|
15
13
|
import type { Barcodes } from './Barcodes';
|
|
16
14
|
/**
|
|
17
15
|
*
|
|
@@ -56,17 +54,17 @@ export interface ProductInsightCreateOrUpdateParameters {
|
|
|
56
54
|
*/
|
|
57
55
|
unitPrice?: number | null;
|
|
58
56
|
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {
|
|
57
|
+
* Product Type Identifier
|
|
58
|
+
* @type {string}
|
|
61
59
|
* @memberof ProductInsightCreateOrUpdateParameters
|
|
62
60
|
*/
|
|
63
|
-
|
|
61
|
+
typeId?: string | null;
|
|
64
62
|
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {
|
|
63
|
+
* Product Secondary Type Identifier
|
|
64
|
+
* @type {string}
|
|
67
65
|
* @memberof ProductInsightCreateOrUpdateParameters
|
|
68
66
|
*/
|
|
69
|
-
|
|
67
|
+
secondaryTypeId?: string | null;
|
|
70
68
|
/**
|
|
71
69
|
* Laboratory ID
|
|
72
70
|
* @type {number}
|
|
@@ -14,9 +14,7 @@
|
|
|
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");
|
|
18
17
|
var ProductStorageType_1 = require("./ProductStorageType");
|
|
19
|
-
var ProductType_1 = require("./ProductType");
|
|
20
18
|
var Barcodes_1 = require("./Barcodes");
|
|
21
19
|
/**
|
|
22
20
|
* Check if a given object implements the ProductInsightCreateOrUpdateParameters interface.
|
|
@@ -42,8 +40,8 @@ function ProductInsightCreateOrUpdateParametersFromJSONTyped(json, ignoreDiscrim
|
|
|
42
40
|
'dci': json['dci'],
|
|
43
41
|
'unitWeight': json['unitWeight'],
|
|
44
42
|
'unitPrice': json['unitPrice'],
|
|
45
|
-
'
|
|
46
|
-
'
|
|
43
|
+
'typeId': json['typeId'],
|
|
44
|
+
'secondaryTypeId': json['secondaryTypeId'],
|
|
47
45
|
'laboratoryId': json['laboratoryId'],
|
|
48
46
|
'vatId': json['vatId'],
|
|
49
47
|
'storageType': (json['storageType'] === null || json['storageType'] === undefined) ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
|
|
@@ -61,8 +59,8 @@ function ProductInsightCreateOrUpdateParametersToJSON(value) {
|
|
|
61
59
|
'dci': value['dci'],
|
|
62
60
|
'unitWeight': value['unitWeight'],
|
|
63
61
|
'unitPrice': value['unitPrice'],
|
|
64
|
-
'
|
|
65
|
-
'
|
|
62
|
+
'typeId': value['typeId'],
|
|
63
|
+
'secondaryTypeId': value['secondaryTypeId'],
|
|
66
64
|
'laboratoryId': value['laboratoryId'],
|
|
67
65
|
'vatId': value['vatId'],
|
|
68
66
|
'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value['storageType']),
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-catalog
|
|
3
|
+
* This is the REST API of LCDP catalog
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProductSecondaryTypeLink
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductSecondaryTypeLink {
|
|
18
|
+
/**
|
|
19
|
+
* Any URL that is using http or https protocol
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ProductSecondaryTypeLink
|
|
22
|
+
*/
|
|
23
|
+
href: string;
|
|
24
|
+
/**
|
|
25
|
+
* Id of the product secondary type
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductSecondaryTypeLink
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Readable name for display
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProductSecondaryTypeLink
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ProductSecondaryTypeLink interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfProductSecondaryTypeLink(value: object): value is ProductSecondaryTypeLink;
|
|
41
|
+
export declare function ProductSecondaryTypeLinkFromJSON(json: any): ProductSecondaryTypeLink;
|
|
42
|
+
export declare function ProductSecondaryTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSecondaryTypeLink;
|
|
43
|
+
export declare function ProductSecondaryTypeLinkToJSON(value?: ProductSecondaryTypeLink | 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.ProductSecondaryTypeLinkToJSON = exports.ProductSecondaryTypeLinkFromJSONTyped = exports.ProductSecondaryTypeLinkFromJSON = exports.instanceOfProductSecondaryTypeLink = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ProductSecondaryTypeLink interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfProductSecondaryTypeLink(value) {
|
|
21
|
+
if (!('href' in value) || value['href'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfProductSecondaryTypeLink = instanceOfProductSecondaryTypeLink;
|
|
26
|
+
function ProductSecondaryTypeLinkFromJSON(json) {
|
|
27
|
+
return ProductSecondaryTypeLinkFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ProductSecondaryTypeLinkFromJSON = ProductSecondaryTypeLinkFromJSON;
|
|
30
|
+
function ProductSecondaryTypeLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'href': json['href'],
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.ProductSecondaryTypeLinkFromJSONTyped = ProductSecondaryTypeLinkFromJSONTyped;
|
|
41
|
+
function ProductSecondaryTypeLinkToJSON(value) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'href': value['href'],
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.ProductSecondaryTypeLinkToJSON = ProductSecondaryTypeLinkToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-catalog
|
|
3
|
+
* This is the REST API of LCDP catalog
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProductTypeLink
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductTypeLink {
|
|
18
|
+
/**
|
|
19
|
+
* Any URL that is using http or https protocol
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ProductTypeLink
|
|
22
|
+
*/
|
|
23
|
+
href: string;
|
|
24
|
+
/**
|
|
25
|
+
* Id of the product type (machine name)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductTypeLink
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Readable name for display
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProductTypeLink
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ProductTypeLink interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfProductTypeLink(value: object): value is ProductTypeLink;
|
|
41
|
+
export declare function ProductTypeLinkFromJSON(json: any): ProductTypeLink;
|
|
42
|
+
export declare function ProductTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeLink;
|
|
43
|
+
export declare function ProductTypeLinkToJSON(value?: ProductTypeLink | 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.ProductTypeLinkToJSON = exports.ProductTypeLinkFromJSONTyped = exports.ProductTypeLinkFromJSON = exports.instanceOfProductTypeLink = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ProductTypeLink interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfProductTypeLink(value) {
|
|
21
|
+
if (!('href' in value) || value['href'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfProductTypeLink = instanceOfProductTypeLink;
|
|
26
|
+
function ProductTypeLinkFromJSON(json) {
|
|
27
|
+
return ProductTypeLinkFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ProductTypeLinkFromJSON = ProductTypeLinkFromJSON;
|
|
30
|
+
function ProductTypeLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'href': json['href'],
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.ProductTypeLinkFromJSONTyped = ProductTypeLinkFromJSONTyped;
|
|
41
|
+
function ProductTypeLinkToJSON(value) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'href': value['href'],
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.ProductTypeLinkToJSON = ProductTypeLinkToJSON;
|
|
@@ -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 './ProductSecondaryTypeLink';
|
|
11
11
|
export * from './ProductStorageType';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './ProductTypeLink';
|
|
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("./ProductSecondaryTypeLink"), exports);
|
|
29
29
|
__exportStar(require("./ProductStorageType"), exports);
|
|
30
|
-
__exportStar(require("./
|
|
30
|
+
__exportStar(require("./ProductTypeLink"), exports);
|
|
31
31
|
__exportStar(require("./RestError"), exports);
|
|
32
32
|
__exportStar(require("./VatLink"), exports);
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ProductType } from './ProductType';
|
|
13
12
|
import type { ProductStatus } from './ProductStatus';
|
|
14
13
|
/**
|
|
15
14
|
* Restrictions :
|
|
@@ -51,11 +50,11 @@ export interface Product {
|
|
|
51
50
|
*/
|
|
52
51
|
unitWeight?: number | null;
|
|
53
52
|
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {
|
|
53
|
+
* Product Type Identifier
|
|
54
|
+
* @type {string}
|
|
56
55
|
* @memberof Product
|
|
57
56
|
*/
|
|
58
|
-
|
|
57
|
+
typeId?: string | null;
|
|
59
58
|
/**
|
|
60
59
|
* VAT identifier
|
|
61
60
|
* @type {string}
|
|
@@ -14,7 +14,6 @@
|
|
|
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");
|
|
18
17
|
var ProductStatus_1 = require("./ProductStatus");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the Product interface.
|
|
@@ -37,7 +36,7 @@ function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
36
|
'dci': json['dci'],
|
|
38
37
|
'laboratoryName': json['laboratoryName'],
|
|
39
38
|
'unitWeight': json['unitWeight'],
|
|
40
|
-
'
|
|
39
|
+
'typeId': json['typeId'],
|
|
41
40
|
'vatId': json['vatId'],
|
|
42
41
|
'unitPrice': json['unitPrice'],
|
|
43
42
|
'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, ProductStatus_1.ProductStatusFromJSON)(json['status']),
|
|
@@ -54,7 +53,7 @@ function ProductToJSON(value) {
|
|
|
54
53
|
'dci': value['dci'],
|
|
55
54
|
'laboratoryName': value['laboratoryName'],
|
|
56
55
|
'unitWeight': value['unitWeight'],
|
|
57
|
-
'
|
|
56
|
+
'typeId': value['typeId'],
|
|
58
57
|
'vatId': value['vatId'],
|
|
59
58
|
'unitPrice': value['unitPrice'],
|
|
60
59
|
'status': (0, ProductStatus_1.ProductStatusToJSON)(value['status']),
|
|
@@ -16,7 +16,6 @@ export * from './PaginatedObject';
|
|
|
16
16
|
export * from './PagingMetadata';
|
|
17
17
|
export * from './Product';
|
|
18
18
|
export * from './ProductStatus';
|
|
19
|
-
export * from './ProductType';
|
|
20
19
|
export * from './ProductUpsertFactory';
|
|
21
20
|
export * from './ProductUpsertFactoryAllOfRecords';
|
|
22
21
|
export * from './QuotationDistributionMode';
|
|
@@ -34,7 +34,6 @@ __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);
|
|
38
37
|
__exportStar(require("./ProductUpsertFactory"), exports);
|
|
39
38
|
__exportStar(require("./ProductUpsertFactoryAllOfRecords"), exports);
|
|
40
39
|
__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 - typeId
|
|
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 - typeId
|
|
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 - typeId
|
|
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 - typeId
|
|
148
148
|
* Create product from product form
|
|
149
149
|
*/
|
|
150
150
|
ManageProductApi.prototype.createProduct = function (requestParameters, initOverrides) {
|
|
@@ -0,0 +1,56 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { ProductSecondaryType, ProductType } from '../models/index';
|
|
14
|
+
export interface GetProductSecondaryTypeRequest {
|
|
15
|
+
secondaryTypeId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GetProductTypeRequest {
|
|
18
|
+
typeId: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class SearchProductMetadataApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
* Get product secondary type
|
|
26
|
+
*/
|
|
27
|
+
getProductSecondaryTypeRaw(requestParameters: GetProductSecondaryTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductSecondaryType | runtime.BlobWithMeta>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get product secondary type
|
|
30
|
+
*/
|
|
31
|
+
getProductSecondaryType(requestParameters: GetProductSecondaryTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductSecondaryType | runtime.BlobWithMeta>;
|
|
32
|
+
/**
|
|
33
|
+
* Get product secondary types
|
|
34
|
+
*/
|
|
35
|
+
getProductSecondaryTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProductSecondaryType> | runtime.BlobWithMeta>>;
|
|
36
|
+
/**
|
|
37
|
+
* Get product secondary types
|
|
38
|
+
*/
|
|
39
|
+
getProductSecondaryTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductSecondaryType> | runtime.BlobWithMeta>;
|
|
40
|
+
/**
|
|
41
|
+
* Get product type
|
|
42
|
+
*/
|
|
43
|
+
getProductTypeRaw(requestParameters: GetProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductType | runtime.BlobWithMeta>>;
|
|
44
|
+
/**
|
|
45
|
+
* Get product type
|
|
46
|
+
*/
|
|
47
|
+
getProductType(requestParameters: GetProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductType | runtime.BlobWithMeta>;
|
|
48
|
+
/**
|
|
49
|
+
* Get product types
|
|
50
|
+
*/
|
|
51
|
+
getProductTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProductType> | runtime.BlobWithMeta>>;
|
|
52
|
+
/**
|
|
53
|
+
* Get product types
|
|
54
|
+
*/
|
|
55
|
+
getProductTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductType> | runtime.BlobWithMeta>;
|
|
56
|
+
}
|