@lcdp/api-react-rest-client 2.4.0-develop.5544924884 → 2.4.0-develop.5647169712
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog/index.d.ts +1 -0
- package/catalog/index.js +17 -0
- package/catalog/src/apis/ManageProductInsightApi.d.ts +54 -0
- package/catalog/src/apis/ManageProductInsightApi.js +295 -0
- package/catalog/src/apis/SearchProductInsightApi.d.ts +53 -0
- package/catalog/src/apis/SearchProductInsightApi.js +246 -0
- package/catalog/src/apis/index.d.ts +2 -0
- package/catalog/src/apis/index.js +18 -0
- package/catalog/src/index.d.ts +3 -0
- package/catalog/src/index.js +19 -0
- package/catalog/src/models/Barcodes.d.ts +45 -0
- package/catalog/src/models/Barcodes.js +48 -0
- package/catalog/src/models/HttpLink.d.ts +27 -0
- package/catalog/src/models/HttpLink.js +41 -0
- package/catalog/src/models/LaboratoryLink.d.ts +34 -0
- package/catalog/src/models/LaboratoryLink.js +50 -0
- package/catalog/src/models/LaboratoryLinkAllOf.d.ts +33 -0
- package/catalog/src/models/LaboratoryLinkAllOf.js +44 -0
- package/catalog/src/models/PaginatedObject.d.ts +28 -0
- package/catalog/src/models/PaginatedObject.js +42 -0
- package/catalog/src/models/PaginatedProductInsights.d.ts +29 -0
- package/catalog/src/models/PaginatedProductInsights.js +50 -0
- package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +28 -0
- package/catalog/src/models/PaginatedProductInsightsAllOf.js +42 -0
- package/catalog/src/models/PagingMetadata.d.ts +45 -0
- package/catalog/src/models/PagingMetadata.js +47 -0
- package/catalog/src/models/ProductInsight.d.ts +106 -0
- package/catalog/src/models/ProductInsight.js +73 -0
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +89 -0
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +64 -0
- package/catalog/src/models/ProductInsightJournal.d.ts +33 -0
- package/catalog/src/models/ProductInsightJournal.js +44 -0
- package/catalog/src/models/ProductSecondaryTypeLink.d.ts +34 -0
- package/catalog/src/models/ProductSecondaryTypeLink.js +50 -0
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +33 -0
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +44 -0
- package/catalog/src/models/ProductStorageType.d.ts +25 -0
- package/catalog/src/models/ProductStorageType.js +40 -0
- package/catalog/src/models/ProductTypeLink.d.ts +34 -0
- package/catalog/src/models/ProductTypeLink.js +50 -0
- package/catalog/src/models/ProductTypeLinkAllOf.d.ts +33 -0
- package/catalog/src/models/ProductTypeLinkAllOf.js +44 -0
- package/catalog/src/models/RestError.d.ts +85 -0
- package/catalog/src/models/RestError.js +97 -0
- package/catalog/src/models/VatLink.d.ts +40 -0
- package/catalog/src/models/VatLink.js +50 -0
- package/catalog/src/models/VatLinkAllOf.d.ts +39 -0
- package/catalog/src/models/VatLinkAllOf.js +46 -0
- package/catalog/src/models/index.d.ts +19 -0
- package/catalog/src/models/index.js +35 -0
- package/catalog/src/runtime.d.ts +149 -0
- package/catalog/src/runtime.js +480 -0
- package/package.json +1 -1
- package/product/src/apis/ManageProductApi.d.ts +2 -0
- package/product/src/apis/ManageProductApi.js +6 -0
- package/product/src/apis/SearchProductApi.d.ts +1 -0
- package/product/src/apis/SearchProductApi.js +3 -0
- package/product/src/apis/SearchProductMetadataApi.d.ts +22 -0
- package/product/src/apis/SearchProductMetadataApi.js +154 -8
- package/product/src/models/{ProductProvider.d.ts → DataProvider.d.ts} +7 -5
- package/product/src/models/DataProvider.js +40 -0
- package/product/src/models/Image.d.ts +7 -0
- package/product/src/models/Image.js +3 -0
- package/product/src/models/Product.d.ts +44 -37
- package/product/src/models/Product.js +33 -31
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -6
- package/product/src/models/ProductCreationOrUpdateParameters.js +2 -2
- package/product/src/models/ProductJournal.d.ts +27 -0
- package/product/src/models/ProductJournal.js +41 -0
- package/product/src/models/ProductProscription.d.ts +7 -0
- package/product/src/models/ProductProscription.js +3 -0
- package/product/src/models/ProductSource.d.ts +47 -0
- package/product/src/models/ProductSource.js +49 -0
- package/product/src/models/ProductSourceBcb.d.ts +39 -0
- package/product/src/models/ProductSourceBcb.js +46 -0
- package/product/src/models/ProductSourceFields.d.ts +131 -0
- package/product/src/models/ProductSourceFields.js +77 -0
- package/product/src/models/ProductSourceFieldsBarcodes.d.ts +46 -0
- package/product/src/models/ProductSourceFieldsBarcodes.js +48 -0
- package/product/src/models/index.d.ts +6 -1
- package/product/src/models/index.js +6 -1
- package/product/src/models/ProductProvider.js +0 -38
|
@@ -0,0 +1,40 @@
|
|
|
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.ProductStorageTypeToJSON = exports.ProductStorageTypeFromJSONTyped = exports.ProductStorageTypeFromJSON = exports.ProductStorageType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var ProductStorageType;
|
|
23
|
+
(function (ProductStorageType) {
|
|
24
|
+
ProductStorageType["FREE"] = "FREE";
|
|
25
|
+
ProductStorageType["FRIDGE"] = "FRIDGE";
|
|
26
|
+
ProductStorageType["FREEZER"] = "FREEZER";
|
|
27
|
+
ProductStorageType["FRESH"] = "FRESH";
|
|
28
|
+
})(ProductStorageType = exports.ProductStorageType || (exports.ProductStorageType = {}));
|
|
29
|
+
function ProductStorageTypeFromJSON(json) {
|
|
30
|
+
return ProductStorageTypeFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.ProductStorageTypeFromJSON = ProductStorageTypeFromJSON;
|
|
33
|
+
function ProductStorageTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
exports.ProductStorageTypeFromJSONTyped = ProductStorageTypeFromJSONTyped;
|
|
37
|
+
function ProductStorageTypeToJSON(value) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
exports.ProductStorageTypeToJSON = ProductStorageTypeToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-catalog
|
|
3
|
+
* This is the REST API of LCDP catalog
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { HttpLink } from './HttpLink';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductTypeLink
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductTypeLink extends HttpLink {
|
|
19
|
+
/**
|
|
20
|
+
* Id of the product type (machine name)
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ProductTypeLink
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Readable name for display
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ProductTypeLink
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function ProductTypeLinkFromJSON(json: any): ProductTypeLink;
|
|
33
|
+
export declare function ProductTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeLink;
|
|
34
|
+
export declare function ProductTypeLinkToJSON(value?: ProductTypeLink | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-catalog
|
|
6
|
+
* This is the REST API of LCDP catalog
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.ProductTypeLinkToJSON = exports.ProductTypeLinkFromJSONTyped = exports.ProductTypeLinkFromJSON = void 0;
|
|
28
|
+
var runtime_1 = require("../runtime");
|
|
29
|
+
var HttpLink_1 = require("./HttpLink");
|
|
30
|
+
function ProductTypeLinkFromJSON(json) {
|
|
31
|
+
return ProductTypeLinkFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.ProductTypeLinkFromJSON = ProductTypeLinkFromJSON;
|
|
34
|
+
function ProductTypeLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'] });
|
|
39
|
+
}
|
|
40
|
+
exports.ProductTypeLinkFromJSONTyped = ProductTypeLinkFromJSONTyped;
|
|
41
|
+
function ProductTypeLinkToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'name': value.name });
|
|
49
|
+
}
|
|
50
|
+
exports.ProductTypeLinkToJSON = ProductTypeLinkToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-catalog
|
|
3
|
+
* This is the REST API of LCDP catalog
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProductTypeLinkAllOf
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductTypeLinkAllOf {
|
|
18
|
+
/**
|
|
19
|
+
* Id of the product type (machine name)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ProductTypeLinkAllOf
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Readable name for display
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductTypeLinkAllOf
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function ProductTypeLinkAllOfFromJSON(json: any): ProductTypeLinkAllOf;
|
|
32
|
+
export declare function ProductTypeLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeLinkAllOf;
|
|
33
|
+
export declare function ProductTypeLinkAllOfToJSON(value?: ProductTypeLinkAllOf | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-catalog
|
|
6
|
+
* This is the REST API of LCDP catalog
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProductTypeLinkAllOfToJSON = exports.ProductTypeLinkAllOfFromJSONTyped = exports.ProductTypeLinkAllOfFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ProductTypeLinkAllOfFromJSON(json) {
|
|
19
|
+
return ProductTypeLinkAllOfFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ProductTypeLinkAllOfFromJSON = ProductTypeLinkAllOfFromJSON;
|
|
22
|
+
function ProductTypeLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
28
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ProductTypeLinkAllOfFromJSONTyped = ProductTypeLinkAllOfFromJSONTyped;
|
|
32
|
+
function ProductTypeLinkAllOfToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': value.id,
|
|
41
|
+
'name': value.name,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ProductTypeLinkAllOfToJSON = ProductTypeLinkAllOfToJSON;
|
|
@@ -0,0 +1,85 @@
|
|
|
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 RestError
|
|
16
|
+
*/
|
|
17
|
+
export interface RestError {
|
|
18
|
+
/**
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RestError
|
|
22
|
+
*/
|
|
23
|
+
code: RestErrorCodeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RestError
|
|
28
|
+
*/
|
|
29
|
+
message: RestErrorMessageEnum;
|
|
30
|
+
}
|
|
31
|
+
export declare function RestErrorFromJSON(json: any): RestError;
|
|
32
|
+
export declare function RestErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestError;
|
|
33
|
+
export declare function RestErrorToJSON(value?: RestError | null): any;
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
* @enum {string}
|
|
37
|
+
*/
|
|
38
|
+
export declare enum RestErrorCodeEnum {
|
|
39
|
+
CODE000 = "CODE000",
|
|
40
|
+
CODE001 = "CODE001",
|
|
41
|
+
CODE002 = "CODE002",
|
|
42
|
+
CODE003 = "CODE003",
|
|
43
|
+
CODE004 = "CODE004",
|
|
44
|
+
CODE005 = "CODE005",
|
|
45
|
+
CODE006 = "CODE006",
|
|
46
|
+
CODE007 = "CODE007",
|
|
47
|
+
CODE008 = "CODE008",
|
|
48
|
+
CODE009 = "CODE009",
|
|
49
|
+
CODE010 = "CODE010",
|
|
50
|
+
CODE011 = "CODE011",
|
|
51
|
+
CODE012 = "CODE012",
|
|
52
|
+
CODE013 = "CODE013",
|
|
53
|
+
CODE014 = "CODE014",
|
|
54
|
+
CODE015 = "CODE015",
|
|
55
|
+
CODE016 = "CODE016",
|
|
56
|
+
CODE017 = "CODE017",
|
|
57
|
+
CODE018 = "CODE018",
|
|
58
|
+
CODE019 = "CODE019"
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @export
|
|
62
|
+
* @enum {string}
|
|
63
|
+
*/
|
|
64
|
+
export declare enum RestErrorMessageEnum {
|
|
65
|
+
MESSAGE000 = "Using outdated resource",
|
|
66
|
+
MESSAGE001 = "Login failed",
|
|
67
|
+
MESSAGE002 = "Cannot renew token",
|
|
68
|
+
MESSAGE003 = "Invalid User CGV",
|
|
69
|
+
MESSAGE004 = "Resource already exists",
|
|
70
|
+
MESSAGE005 = "User account is disabled",
|
|
71
|
+
MESSAGE006 = "Invalid schedule",
|
|
72
|
+
MESSAGE007 = "Wrong Address according CHRONOPOST",
|
|
73
|
+
MESSAGE008 = "Invalid Mangopay Mandate",
|
|
74
|
+
MESSAGE009 = "Invalid Status",
|
|
75
|
+
MESSAGE010 = "Image dimension exceeded",
|
|
76
|
+
MESSAGE011 = "Empty User Address",
|
|
77
|
+
MESSAGE012 = "Empty User Legal Name",
|
|
78
|
+
MESSAGE013 = "Invalid quantities",
|
|
79
|
+
MESSAGE014 = "Invalid Meta-Order",
|
|
80
|
+
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
81
|
+
MESSAGE016 = "Can not release a negative quantity of items",
|
|
82
|
+
MESSAGE017 = "Batch is forbidden for sale",
|
|
83
|
+
MESSAGE018 = "Trial already used",
|
|
84
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
85
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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.RestErrorMessageEnum = exports.RestErrorCodeEnum = exports.RestErrorToJSON = exports.RestErrorFromJSONTyped = exports.RestErrorFromJSON = void 0;
|
|
17
|
+
function RestErrorFromJSON(json) {
|
|
18
|
+
return RestErrorFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.RestErrorFromJSON = RestErrorFromJSON;
|
|
21
|
+
function RestErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'code': json['code'],
|
|
27
|
+
'message': json['message'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.RestErrorFromJSONTyped = RestErrorFromJSONTyped;
|
|
31
|
+
function RestErrorToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'code': value.code,
|
|
40
|
+
'message': value.message,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.RestErrorToJSON = RestErrorToJSON;
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
* @enum {string}
|
|
47
|
+
*/
|
|
48
|
+
var RestErrorCodeEnum;
|
|
49
|
+
(function (RestErrorCodeEnum) {
|
|
50
|
+
RestErrorCodeEnum["CODE000"] = "CODE000";
|
|
51
|
+
RestErrorCodeEnum["CODE001"] = "CODE001";
|
|
52
|
+
RestErrorCodeEnum["CODE002"] = "CODE002";
|
|
53
|
+
RestErrorCodeEnum["CODE003"] = "CODE003";
|
|
54
|
+
RestErrorCodeEnum["CODE004"] = "CODE004";
|
|
55
|
+
RestErrorCodeEnum["CODE005"] = "CODE005";
|
|
56
|
+
RestErrorCodeEnum["CODE006"] = "CODE006";
|
|
57
|
+
RestErrorCodeEnum["CODE007"] = "CODE007";
|
|
58
|
+
RestErrorCodeEnum["CODE008"] = "CODE008";
|
|
59
|
+
RestErrorCodeEnum["CODE009"] = "CODE009";
|
|
60
|
+
RestErrorCodeEnum["CODE010"] = "CODE010";
|
|
61
|
+
RestErrorCodeEnum["CODE011"] = "CODE011";
|
|
62
|
+
RestErrorCodeEnum["CODE012"] = "CODE012";
|
|
63
|
+
RestErrorCodeEnum["CODE013"] = "CODE013";
|
|
64
|
+
RestErrorCodeEnum["CODE014"] = "CODE014";
|
|
65
|
+
RestErrorCodeEnum["CODE015"] = "CODE015";
|
|
66
|
+
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
|
+
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
|
+
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
+
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
70
|
+
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
71
|
+
/**
|
|
72
|
+
* @export
|
|
73
|
+
* @enum {string}
|
|
74
|
+
*/
|
|
75
|
+
var RestErrorMessageEnum;
|
|
76
|
+
(function (RestErrorMessageEnum) {
|
|
77
|
+
RestErrorMessageEnum["MESSAGE000"] = "Using outdated resource";
|
|
78
|
+
RestErrorMessageEnum["MESSAGE001"] = "Login failed";
|
|
79
|
+
RestErrorMessageEnum["MESSAGE002"] = "Cannot renew token";
|
|
80
|
+
RestErrorMessageEnum["MESSAGE003"] = "Invalid User CGV";
|
|
81
|
+
RestErrorMessageEnum["MESSAGE004"] = "Resource already exists";
|
|
82
|
+
RestErrorMessageEnum["MESSAGE005"] = "User account is disabled";
|
|
83
|
+
RestErrorMessageEnum["MESSAGE006"] = "Invalid schedule";
|
|
84
|
+
RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
|
|
85
|
+
RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
|
|
86
|
+
RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
|
|
87
|
+
RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
|
|
88
|
+
RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
|
|
89
|
+
RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
|
|
90
|
+
RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
|
|
91
|
+
RestErrorMessageEnum["MESSAGE014"] = "Invalid Meta-Order";
|
|
92
|
+
RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
|
|
93
|
+
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
94
|
+
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
95
|
+
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
+
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
97
|
+
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-catalog
|
|
3
|
+
* This is the REST API of LCDP catalog
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { HttpLink } from './HttpLink';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VatLink
|
|
17
|
+
*/
|
|
18
|
+
export interface VatLink extends HttpLink {
|
|
19
|
+
/**
|
|
20
|
+
* Vat Id
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof VatLink
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Vat name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof VatLink
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Vat value
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof VatLink
|
|
35
|
+
*/
|
|
36
|
+
value?: number;
|
|
37
|
+
}
|
|
38
|
+
export declare function VatLinkFromJSON(json: any): VatLink;
|
|
39
|
+
export declare function VatLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): VatLink;
|
|
40
|
+
export declare function VatLinkToJSON(value?: VatLink | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-catalog
|
|
6
|
+
* This is the REST API of LCDP catalog
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.VatLinkToJSON = exports.VatLinkFromJSONTyped = exports.VatLinkFromJSON = void 0;
|
|
28
|
+
var runtime_1 = require("../runtime");
|
|
29
|
+
var HttpLink_1 = require("./HttpLink");
|
|
30
|
+
function VatLinkFromJSON(json) {
|
|
31
|
+
return VatLinkFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.VatLinkFromJSON = VatLinkFromJSON;
|
|
34
|
+
function VatLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'], 'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'] });
|
|
39
|
+
}
|
|
40
|
+
exports.VatLinkFromJSONTyped = VatLinkFromJSONTyped;
|
|
41
|
+
function VatLinkToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'name': value.name, 'value': value.value });
|
|
49
|
+
}
|
|
50
|
+
exports.VatLinkToJSON = VatLinkToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 VatLinkAllOf
|
|
16
|
+
*/
|
|
17
|
+
export interface VatLinkAllOf {
|
|
18
|
+
/**
|
|
19
|
+
* Vat Id
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VatLinkAllOf
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Vat name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VatLinkAllOf
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Vat value
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VatLinkAllOf
|
|
34
|
+
*/
|
|
35
|
+
value?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare function VatLinkAllOfFromJSON(json: any): VatLinkAllOf;
|
|
38
|
+
export declare function VatLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): VatLinkAllOf;
|
|
39
|
+
export declare function VatLinkAllOfToJSON(value?: VatLinkAllOf | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.VatLinkAllOfToJSON = exports.VatLinkAllOfFromJSONTyped = exports.VatLinkAllOfFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function VatLinkAllOfFromJSON(json) {
|
|
19
|
+
return VatLinkAllOfFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.VatLinkAllOfFromJSON = VatLinkAllOfFromJSON;
|
|
22
|
+
function VatLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
28
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
29
|
+
'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.VatLinkAllOfFromJSONTyped = VatLinkAllOfFromJSONTyped;
|
|
33
|
+
function VatLinkAllOfToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': value.id,
|
|
42
|
+
'name': value.name,
|
|
43
|
+
'value': value.value,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.VatLinkAllOfToJSON = VatLinkAllOfToJSON;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './Barcodes';
|
|
2
|
+
export * from './HttpLink';
|
|
3
|
+
export * from './LaboratoryLink';
|
|
4
|
+
export * from './LaboratoryLinkAllOf';
|
|
5
|
+
export * from './PaginatedObject';
|
|
6
|
+
export * from './PaginatedProductInsights';
|
|
7
|
+
export * from './PaginatedProductInsightsAllOf';
|
|
8
|
+
export * from './PagingMetadata';
|
|
9
|
+
export * from './ProductInsight';
|
|
10
|
+
export * from './ProductInsightCreateOrUpdateParameters';
|
|
11
|
+
export * from './ProductInsightJournal';
|
|
12
|
+
export * from './ProductSecondaryTypeLink';
|
|
13
|
+
export * from './ProductSecondaryTypeLinkAllOf';
|
|
14
|
+
export * from './ProductStorageType';
|
|
15
|
+
export * from './ProductTypeLink';
|
|
16
|
+
export * from './ProductTypeLinkAllOf';
|
|
17
|
+
export * from './RestError';
|
|
18
|
+
export * from './VatLink';
|
|
19
|
+
export * from './VatLinkAllOf';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Barcodes"), exports);
|
|
18
|
+
__exportStar(require("./HttpLink"), exports);
|
|
19
|
+
__exportStar(require("./LaboratoryLink"), exports);
|
|
20
|
+
__exportStar(require("./LaboratoryLinkAllOf"), exports);
|
|
21
|
+
__exportStar(require("./PaginatedObject"), exports);
|
|
22
|
+
__exportStar(require("./PaginatedProductInsights"), exports);
|
|
23
|
+
__exportStar(require("./PaginatedProductInsightsAllOf"), exports);
|
|
24
|
+
__exportStar(require("./PagingMetadata"), exports);
|
|
25
|
+
__exportStar(require("./ProductInsight"), exports);
|
|
26
|
+
__exportStar(require("./ProductInsightCreateOrUpdateParameters"), exports);
|
|
27
|
+
__exportStar(require("./ProductInsightJournal"), exports);
|
|
28
|
+
__exportStar(require("./ProductSecondaryTypeLink"), exports);
|
|
29
|
+
__exportStar(require("./ProductSecondaryTypeLinkAllOf"), exports);
|
|
30
|
+
__exportStar(require("./ProductStorageType"), exports);
|
|
31
|
+
__exportStar(require("./ProductTypeLink"), exports);
|
|
32
|
+
__exportStar(require("./ProductTypeLinkAllOf"), exports);
|
|
33
|
+
__exportStar(require("./RestError"), exports);
|
|
34
|
+
__exportStar(require("./VatLink"), exports);
|
|
35
|
+
__exportStar(require("./VatLinkAllOf"), exports);
|