@lcdp/api-react-rest-client 2.6.1 → 2.6.2-LDS-3445-api-ajouter-statitiques-user.8247649388

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.
Files changed (39) hide show
  1. package/package.json +1 -1
  2. package/user/src/models/User.d.ts +7 -0
  3. package/user/src/models/User.js +3 -0
  4. package/user/src/models/UserStatisticLink.d.ts +58 -0
  5. package/user/src/models/UserStatisticLink.js +50 -0
  6. package/user/src/models/UserStatisticLinkAllOf.d.ts +57 -0
  7. package/user/src/models/UserStatisticLinkAllOf.js +52 -0
  8. package/user/src/models/index.d.ts +2 -0
  9. package/user/src/models/index.js +2 -0
  10. package/statistic/index.d.ts +0 -1
  11. package/statistic/index.js +0 -17
  12. package/statistic/src/apis/SearchSaleOfferStatisticsApi.d.ts +0 -52
  13. package/statistic/src/apis/SearchSaleOfferStatisticsApi.js +0 -263
  14. package/statistic/src/apis/index.d.ts +0 -1
  15. package/statistic/src/apis/index.js +0 -17
  16. package/statistic/src/index.d.ts +0 -3
  17. package/statistic/src/index.js +0 -19
  18. package/statistic/src/models/HttpLink.d.ts +0 -27
  19. package/statistic/src/models/HttpLink.js +0 -41
  20. package/statistic/src/models/PaginatedObject.d.ts +0 -28
  21. package/statistic/src/models/PaginatedObject.js +0 -42
  22. package/statistic/src/models/PaginatedSaleOfferStatistics.d.ts +0 -29
  23. package/statistic/src/models/PaginatedSaleOfferStatistics.js +0 -50
  24. package/statistic/src/models/PaginatedSaleOfferStatisticsAllOf.d.ts +0 -28
  25. package/statistic/src/models/PaginatedSaleOfferStatisticsAllOf.js +0 -42
  26. package/statistic/src/models/PagingMetadata.d.ts +0 -45
  27. package/statistic/src/models/PagingMetadata.js +0 -47
  28. package/statistic/src/models/RestError.d.ts +0 -87
  29. package/statistic/src/models/RestError.js +0 -99
  30. package/statistic/src/models/SaleOfferStatistic.d.ts +0 -52
  31. package/statistic/src/models/SaleOfferStatistic.js +0 -51
  32. package/statistic/src/models/UserLink.d.ts +0 -28
  33. package/statistic/src/models/UserLink.js +0 -50
  34. package/statistic/src/models/UserLinkAllOf.d.ts +0 -27
  35. package/statistic/src/models/UserLinkAllOf.js +0 -42
  36. package/statistic/src/models/index.d.ts +0 -9
  37. package/statistic/src/models/index.js +0 -25
  38. package/statistic/src/runtime.d.ts +0 -149
  39. package/statistic/src/runtime.js +0 -480
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./runtime"), exports);
18
- __exportStar(require("./apis"), exports);
19
- __exportStar(require("./models"), exports);
@@ -1,27 +0,0 @@
1
- /**
2
- * lcdp-pharmaide-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
- /**
13
- * A base type of objects representing links to resources.
14
- * @export
15
- * @interface HttpLink
16
- */
17
- export interface HttpLink {
18
- /**
19
- * Any URL that is using http or https protocol
20
- * @type {string}
21
- * @memberof HttpLink
22
- */
23
- href: string;
24
- }
25
- export declare function HttpLinkFromJSON(json: any): HttpLink;
26
- export declare function HttpLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): HttpLink;
27
- export declare function HttpLinkToJSON(value?: HttpLink | null): any;
@@ -1,41 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-pharmaide-service
6
- * This is the REST API of LCDP products
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.HttpLinkToJSON = exports.HttpLinkFromJSONTyped = exports.HttpLinkFromJSON = void 0;
17
- function HttpLinkFromJSON(json) {
18
- return HttpLinkFromJSONTyped(json, false);
19
- }
20
- exports.HttpLinkFromJSON = HttpLinkFromJSON;
21
- function HttpLinkFromJSONTyped(json, ignoreDiscriminator) {
22
- if ((json === undefined) || (json === null)) {
23
- return json;
24
- }
25
- return {
26
- 'href': json['href'],
27
- };
28
- }
29
- exports.HttpLinkFromJSONTyped = HttpLinkFromJSONTyped;
30
- function HttpLinkToJSON(value) {
31
- if (value === undefined) {
32
- return undefined;
33
- }
34
- if (value === null) {
35
- return null;
36
- }
37
- return {
38
- 'href': value.href,
39
- };
40
- }
41
- exports.HttpLinkToJSON = HttpLinkToJSON;
@@ -1,28 +0,0 @@
1
- /**
2
- * lcdp-pharmaide-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 { PagingMetadata } from './PagingMetadata';
13
- /**
14
- * An object which is not complete (only a specific page is available)
15
- * @export
16
- * @interface PaginatedObject
17
- */
18
- export interface PaginatedObject {
19
- /**
20
- *
21
- * @type {PagingMetadata}
22
- * @memberof PaginatedObject
23
- */
24
- metadata: PagingMetadata;
25
- }
26
- export declare function PaginatedObjectFromJSON(json: any): PaginatedObject;
27
- export declare function PaginatedObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedObject;
28
- export declare function PaginatedObjectToJSON(value?: PaginatedObject | null): any;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-pharmaide-service
6
- * This is the REST API of LCDP products
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PaginatedObjectToJSON = exports.PaginatedObjectFromJSONTyped = exports.PaginatedObjectFromJSON = void 0;
17
- var PagingMetadata_1 = require("./PagingMetadata");
18
- function PaginatedObjectFromJSON(json) {
19
- return PaginatedObjectFromJSONTyped(json, false);
20
- }
21
- exports.PaginatedObjectFromJSON = PaginatedObjectFromJSON;
22
- function PaginatedObjectFromJSONTyped(json, ignoreDiscriminator) {
23
- if ((json === undefined) || (json === null)) {
24
- return json;
25
- }
26
- return {
27
- 'metadata': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
28
- };
29
- }
30
- exports.PaginatedObjectFromJSONTyped = PaginatedObjectFromJSONTyped;
31
- function PaginatedObjectToJSON(value) {
32
- if (value === undefined) {
33
- return undefined;
34
- }
35
- if (value === null) {
36
- return null;
37
- }
38
- return {
39
- 'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value.metadata),
40
- };
41
- }
42
- exports.PaginatedObjectToJSON = PaginatedObjectToJSON;
@@ -1,29 +0,0 @@
1
- /**
2
- * lcdp-pharmaide-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 { PaginatedObject } from './PaginatedObject';
13
- import { SaleOfferStatistic } from './SaleOfferStatistic';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedSaleOfferStatistics
18
- */
19
- export interface PaginatedSaleOfferStatistics extends PaginatedObject {
20
- /**
21
- *
22
- * @type {Array<SaleOfferStatistic>}
23
- * @memberof PaginatedSaleOfferStatistics
24
- */
25
- records: Array<SaleOfferStatistic>;
26
- }
27
- export declare function PaginatedSaleOfferStatisticsFromJSON(json: any): PaginatedSaleOfferStatistics;
28
- export declare function PaginatedSaleOfferStatisticsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSaleOfferStatistics;
29
- export declare function PaginatedSaleOfferStatisticsToJSON(value?: PaginatedSaleOfferStatistics | null): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-pharmaide-service
6
- * This is the REST API of LCDP products
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- 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.PaginatedSaleOfferStatisticsToJSON = exports.PaginatedSaleOfferStatisticsFromJSONTyped = exports.PaginatedSaleOfferStatisticsFromJSON = void 0;
28
- var PaginatedObject_1 = require("./PaginatedObject");
29
- var SaleOfferStatistic_1 = require("./SaleOfferStatistic");
30
- function PaginatedSaleOfferStatisticsFromJSON(json) {
31
- return PaginatedSaleOfferStatisticsFromJSONTyped(json, false);
32
- }
33
- exports.PaginatedSaleOfferStatisticsFromJSON = PaginatedSaleOfferStatisticsFromJSON;
34
- function PaginatedSaleOfferStatisticsFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
36
- return json;
37
- }
38
- return __assign(__assign({}, (0, PaginatedObject_1.PaginatedObjectFromJSONTyped)(json, ignoreDiscriminator)), { 'records': (json['records'].map(SaleOfferStatistic_1.SaleOfferStatisticFromJSON)) });
39
- }
40
- exports.PaginatedSaleOfferStatisticsFromJSONTyped = PaginatedSaleOfferStatisticsFromJSONTyped;
41
- function PaginatedSaleOfferStatisticsToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
47
- }
48
- return __assign(__assign({}, (0, PaginatedObject_1.PaginatedObjectToJSON)(value)), { 'records': (value.records.map(SaleOfferStatistic_1.SaleOfferStatisticToJSON)) });
49
- }
50
- exports.PaginatedSaleOfferStatisticsToJSON = PaginatedSaleOfferStatisticsToJSON;
@@ -1,28 +0,0 @@
1
- /**
2
- * lcdp-pharmaide-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 { SaleOfferStatistic } from './SaleOfferStatistic';
13
- /**
14
- *
15
- * @export
16
- * @interface PaginatedSaleOfferStatisticsAllOf
17
- */
18
- export interface PaginatedSaleOfferStatisticsAllOf {
19
- /**
20
- *
21
- * @type {Array<SaleOfferStatistic>}
22
- * @memberof PaginatedSaleOfferStatisticsAllOf
23
- */
24
- records: Array<SaleOfferStatistic>;
25
- }
26
- export declare function PaginatedSaleOfferStatisticsAllOfFromJSON(json: any): PaginatedSaleOfferStatisticsAllOf;
27
- export declare function PaginatedSaleOfferStatisticsAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSaleOfferStatisticsAllOf;
28
- export declare function PaginatedSaleOfferStatisticsAllOfToJSON(value?: PaginatedSaleOfferStatisticsAllOf | null): any;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-pharmaide-service
6
- * This is the REST API of LCDP products
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PaginatedSaleOfferStatisticsAllOfToJSON = exports.PaginatedSaleOfferStatisticsAllOfFromJSONTyped = exports.PaginatedSaleOfferStatisticsAllOfFromJSON = void 0;
17
- var SaleOfferStatistic_1 = require("./SaleOfferStatistic");
18
- function PaginatedSaleOfferStatisticsAllOfFromJSON(json) {
19
- return PaginatedSaleOfferStatisticsAllOfFromJSONTyped(json, false);
20
- }
21
- exports.PaginatedSaleOfferStatisticsAllOfFromJSON = PaginatedSaleOfferStatisticsAllOfFromJSON;
22
- function PaginatedSaleOfferStatisticsAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
- if ((json === undefined) || (json === null)) {
24
- return json;
25
- }
26
- return {
27
- 'records': (json['records'].map(SaleOfferStatistic_1.SaleOfferStatisticFromJSON)),
28
- };
29
- }
30
- exports.PaginatedSaleOfferStatisticsAllOfFromJSONTyped = PaginatedSaleOfferStatisticsAllOfFromJSONTyped;
31
- function PaginatedSaleOfferStatisticsAllOfToJSON(value) {
32
- if (value === undefined) {
33
- return undefined;
34
- }
35
- if (value === null) {
36
- return null;
37
- }
38
- return {
39
- 'records': (value.records.map(SaleOfferStatistic_1.SaleOfferStatisticToJSON)),
40
- };
41
- }
42
- exports.PaginatedSaleOfferStatisticsAllOfToJSON = PaginatedSaleOfferStatisticsAllOfToJSON;
@@ -1,45 +0,0 @@
1
- /**
2
- * lcdp-pharmaide-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
- /**
13
- * All information about current and available pages
14
- * @export
15
- * @interface PagingMetadata
16
- */
17
- export interface PagingMetadata {
18
- /**
19
- * Current page requested. Start at 0.
20
- * @type {number}
21
- * @memberof PagingMetadata
22
- */
23
- page: number;
24
- /**
25
- * Number of item per page. 0 means that you only required metdata.
26
- * @type {number}
27
- * @memberof PagingMetadata
28
- */
29
- perPage: number;
30
- /**
31
- * Total number of item visible by the client in the request
32
- * @type {number}
33
- * @memberof PagingMetadata
34
- */
35
- totalVisible: number;
36
- /**
37
- * Total number of item found in database
38
- * @type {number}
39
- * @memberof PagingMetadata
40
- */
41
- totalFound: number;
42
- }
43
- export declare function PagingMetadataFromJSON(json: any): PagingMetadata;
44
- export declare function PagingMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagingMetadata;
45
- export declare function PagingMetadataToJSON(value?: PagingMetadata | null): any;
@@ -1,47 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-pharmaide-service
6
- * This is the REST API of LCDP products
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.PagingMetadataFromJSON = void 0;
17
- function PagingMetadataFromJSON(json) {
18
- return PagingMetadataFromJSONTyped(json, false);
19
- }
20
- exports.PagingMetadataFromJSON = PagingMetadataFromJSON;
21
- function PagingMetadataFromJSONTyped(json, ignoreDiscriminator) {
22
- if ((json === undefined) || (json === null)) {
23
- return json;
24
- }
25
- return {
26
- 'page': json['page'],
27
- 'perPage': json['perPage'],
28
- 'totalVisible': json['totalVisible'],
29
- 'totalFound': json['totalFound'],
30
- };
31
- }
32
- exports.PagingMetadataFromJSONTyped = PagingMetadataFromJSONTyped;
33
- function PagingMetadataToJSON(value) {
34
- if (value === undefined) {
35
- return undefined;
36
- }
37
- if (value === null) {
38
- return null;
39
- }
40
- return {
41
- 'page': value.page,
42
- 'perPage': value.perPage,
43
- 'totalVisible': value.totalVisible,
44
- 'totalFound': value.totalFound,
45
- };
46
- }
47
- exports.PagingMetadataToJSON = PagingMetadataToJSON;
@@ -1,87 +0,0 @@
1
- /**
2
- * lcdp-pharmaide-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
- /**
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 * `CODE020` - ETag do not match
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 * `MESSAGE020` - ETag do not match
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
- CODE020 = "CODE020"
60
- }
61
- /**
62
- * @export
63
- * @enum {string}
64
- */
65
- export declare enum RestErrorMessageEnum {
66
- MESSAGE000 = "Using outdated resource",
67
- MESSAGE001 = "Login failed",
68
- MESSAGE002 = "Cannot renew token",
69
- MESSAGE003 = "Invalid User CGV",
70
- MESSAGE004 = "Resource already exists",
71
- MESSAGE005 = "User account is disabled",
72
- MESSAGE006 = "Invalid schedule",
73
- MESSAGE007 = "Wrong Address according CHRONOPOST",
74
- MESSAGE008 = "Invalid Mangopay Mandate",
75
- MESSAGE009 = "Invalid Status",
76
- MESSAGE010 = "Image dimension exceeded",
77
- MESSAGE011 = "Empty User Address",
78
- MESSAGE012 = "Empty User Legal Name",
79
- MESSAGE013 = "Invalid quantities",
80
- MESSAGE014 = "Invalid Meta-Order",
81
- MESSAGE015 = "Can not release quantity greater than claimed",
82
- MESSAGE016 = "Can not release a negative quantity of items",
83
- MESSAGE017 = "Batch is forbidden for sale",
84
- MESSAGE018 = "Trial already used",
85
- MESSAGE019 = "Unable to generate session from disposableToken for admin users",
86
- MESSAGE020 = "ETag do not match"
87
- }
@@ -1,99 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-pharmaide-service
6
- * This is the REST API of LCDP products
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.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["CODE020"] = "CODE020";
71
- })(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
72
- /**
73
- * @export
74
- * @enum {string}
75
- */
76
- var RestErrorMessageEnum;
77
- (function (RestErrorMessageEnum) {
78
- RestErrorMessageEnum["MESSAGE000"] = "Using outdated resource";
79
- RestErrorMessageEnum["MESSAGE001"] = "Login failed";
80
- RestErrorMessageEnum["MESSAGE002"] = "Cannot renew token";
81
- RestErrorMessageEnum["MESSAGE003"] = "Invalid User CGV";
82
- RestErrorMessageEnum["MESSAGE004"] = "Resource already exists";
83
- RestErrorMessageEnum["MESSAGE005"] = "User account is disabled";
84
- RestErrorMessageEnum["MESSAGE006"] = "Invalid schedule";
85
- RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
86
- RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
87
- RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
88
- RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
89
- RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
90
- RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
91
- RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
92
- RestErrorMessageEnum["MESSAGE014"] = "Invalid Meta-Order";
93
- RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
94
- RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
95
- RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
96
- RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
97
- RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
98
- RestErrorMessageEnum["MESSAGE020"] = "ETag do not match";
99
- })(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
@@ -1,52 +0,0 @@
1
- /**
2
- * lcdp-pharmaide-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 { UserLink } from './UserLink';
13
- /**
14
- *
15
- * @export
16
- * @interface SaleOfferStatistic
17
- */
18
- export interface SaleOfferStatistic {
19
- /**
20
- * Unique id representing this statistic
21
- * @type {string}
22
- * @memberof SaleOfferStatistic
23
- */
24
- id?: string;
25
- /**
26
- * Reference of the sale offer
27
- * @type {string}
28
- * @memberof SaleOfferStatistic
29
- */
30
- reference?: string;
31
- /**
32
- * Date of the last sale which occurred for this sale offer
33
- * @type {Date}
34
- * @memberof SaleOfferStatistic
35
- */
36
- lastSaleDate?: Date;
37
- /**
38
- * Number of sale during lifespan of this sale offer
39
- * @type {number}
40
- * @memberof SaleOfferStatistic
41
- */
42
- numberOfSales?: number;
43
- /**
44
- *
45
- * @type {UserLink}
46
- * @memberof SaleOfferStatistic
47
- */
48
- owner?: UserLink;
49
- }
50
- export declare function SaleOfferStatisticFromJSON(json: any): SaleOfferStatistic;
51
- export declare function SaleOfferStatisticFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferStatistic;
52
- export declare function SaleOfferStatisticToJSON(value?: SaleOfferStatistic | null): any;