@lcdp/api-react-rest-client 2.14.3-LDS-4892.18154750151 → 2.14.3-LDS-4938-monolith-repousser-la-fin-du-tr.18158626411
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/subscription/src/apis/ManageSubscriptionApi.d.ts +56 -0
- package/subscription/src/apis/ManageSubscriptionApi.js +315 -0
- package/subscription/src/apis/ManageSubscriptionPlanApi.d.ts +30 -0
- package/subscription/src/apis/ManageSubscriptionPlanApi.js +164 -0
- package/subscription/src/apis/SearchSubscriptionApi.d.ts +53 -0
- package/subscription/src/apis/SearchSubscriptionApi.js +208 -0
- package/subscription/src/apis/SearchSubscriptionPlanApi.d.ts +49 -0
- package/subscription/src/apis/SearchSubscriptionPlanApi.js +249 -0
- package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.d.ts +26 -0
- package/subscription/src/apis/{SearchSubscriptionsApi.js → SearchSubscriptionPlanFeatureApi.js} +13 -19
- package/subscription/src/apis/index.d.ts +5 -1
- package/subscription/src/apis/index.js +5 -1
- package/subscription/src/models/HttpLink.d.ts +31 -0
- package/subscription/src/models/HttpLink.js +47 -0
- package/subscription/src/models/PaginatedObject.d.ts +32 -0
- package/subscription/src/models/PaginatedObject.js +48 -0
- package/subscription/src/models/PaginatedSubscriptions.d.ts +39 -0
- package/subscription/src/models/PaginatedSubscriptions.js +51 -0
- package/subscription/src/models/PagingMetadata.d.ts +49 -0
- package/subscription/src/models/PagingMetadata.js +55 -0
- package/subscription/src/models/RestError.d.ts +103 -0
- package/subscription/src/models/RestError.js +113 -0
- package/subscription/src/models/SubscriberLink.d.ts +37 -0
- package/subscription/src/models/SubscriberLink.js +49 -0
- package/subscription/src/models/Subscription.d.ts +38 -6
- package/subscription/src/models/Subscription.js +19 -6
- package/subscription/src/models/SubscriptionCreationParameters.d.ts +44 -0
- package/subscription/src/models/SubscriptionCreationParameters.js +56 -0
- package/subscription/src/models/SubscriptionPlan.d.ts +69 -0
- package/subscription/src/models/SubscriptionPlan.js +59 -0
- package/subscription/src/models/SubscriptionPlanFeature.d.ts +44 -0
- package/subscription/src/models/SubscriptionPlanFeature.js +50 -0
- package/subscription/src/models/SubscriptionPlanFeatureId.d.ts +26 -0
- package/subscription/src/models/SubscriptionPlanFeatureId.js +49 -0
- package/subscription/src/models/SubscriptionPlanId.d.ts +25 -0
- package/subscription/src/models/SubscriptionPlanId.js +48 -0
- package/subscription/src/models/SubscriptionPlanLink.d.ts +38 -0
- package/subscription/src/models/SubscriptionPlanLink.js +50 -0
- package/subscription/src/models/SubscriptionPlanUpdateParameters.d.ts +62 -0
- package/subscription/src/models/SubscriptionPlanUpdateParameters.js +56 -0
- package/subscription/src/models/SubscriptionUpdateParameters.d.ts +62 -0
- package/subscription/src/models/SubscriptionUpdateParameters.js +57 -0
- package/subscription/src/models/index.d.ts +14 -0
- package/subscription/src/models/index.js +14 -0
- package/user/src/models/OffisanteStatus.d.ts +3 -1
- package/user/src/models/OffisanteStatus.js +4 -2
- package/subscription/src/apis/SearchSubscriptionsApi.d.ts +0 -29
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
/**
|
|
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
|
+
/**
|
|
26
|
+
* Check if a given object implements the HttpLink interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfHttpLink(value: object): value is HttpLink;
|
|
29
|
+
export declare function HttpLinkFromJSON(json: any): HttpLink;
|
|
30
|
+
export declare function HttpLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): HttpLink;
|
|
31
|
+
export declare function HttpLinkToJSON(value?: HttpLink | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.HttpLinkToJSON = exports.HttpLinkFromJSONTyped = exports.HttpLinkFromJSON = exports.instanceOfHttpLink = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the HttpLink interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfHttpLink(value) {
|
|
21
|
+
if (!('href' in value) || value['href'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfHttpLink = instanceOfHttpLink;
|
|
26
|
+
function HttpLinkFromJSON(json) {
|
|
27
|
+
return HttpLinkFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.HttpLinkFromJSON = HttpLinkFromJSON;
|
|
30
|
+
function HttpLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'href': json['href'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.HttpLinkFromJSONTyped = HttpLinkFromJSONTyped;
|
|
39
|
+
function HttpLinkToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'href': value['href'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.HttpLinkToJSON = HttpLinkToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { 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
|
+
/**
|
|
27
|
+
* Check if a given object implements the PaginatedObject interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPaginatedObject(value: object): value is PaginatedObject;
|
|
30
|
+
export declare function PaginatedObjectFromJSON(json: any): PaginatedObject;
|
|
31
|
+
export declare function PaginatedObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedObject;
|
|
32
|
+
export declare function PaginatedObjectToJSON(value?: PaginatedObject | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedObjectToJSON = exports.PaginatedObjectFromJSONTyped = exports.PaginatedObjectFromJSON = exports.instanceOfPaginatedObject = void 0;
|
|
17
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PaginatedObject interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPaginatedObject(value) {
|
|
22
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfPaginatedObject = instanceOfPaginatedObject;
|
|
27
|
+
function PaginatedObjectFromJSON(json) {
|
|
28
|
+
return PaginatedObjectFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.PaginatedObjectFromJSON = PaginatedObjectFromJSON;
|
|
31
|
+
function PaginatedObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'metadata': (json['metadata'] === null || json['metadata'] === undefined) ? json['metadata'] : (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.PaginatedObjectFromJSONTyped = PaginatedObjectFromJSONTyped;
|
|
40
|
+
function PaginatedObjectToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value['metadata']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.PaginatedObjectToJSON = PaginatedObjectToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { Subscription } from './Subscription';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedSubscriptions
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedSubscriptions {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {PagingMetadata}
|
|
23
|
+
* @memberof PaginatedSubscriptions
|
|
24
|
+
*/
|
|
25
|
+
metadata: PagingMetadata;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Subscription>}
|
|
29
|
+
* @memberof PaginatedSubscriptions
|
|
30
|
+
*/
|
|
31
|
+
records?: Array<Subscription>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedSubscriptions interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedSubscriptions(value: object): value is PaginatedSubscriptions;
|
|
37
|
+
export declare function PaginatedSubscriptionsFromJSON(json: any): PaginatedSubscriptions;
|
|
38
|
+
export declare function PaginatedSubscriptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSubscriptions;
|
|
39
|
+
export declare function PaginatedSubscriptionsToJSON(value?: PaginatedSubscriptions | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedSubscriptionsToJSON = exports.PaginatedSubscriptionsFromJSONTyped = exports.PaginatedSubscriptionsFromJSON = exports.instanceOfPaginatedSubscriptions = void 0;
|
|
17
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
18
|
+
var Subscription_1 = require("./Subscription");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the PaginatedSubscriptions interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfPaginatedSubscriptions(value) {
|
|
23
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfPaginatedSubscriptions = instanceOfPaginatedSubscriptions;
|
|
28
|
+
function PaginatedSubscriptionsFromJSON(json) {
|
|
29
|
+
return PaginatedSubscriptionsFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.PaginatedSubscriptionsFromJSON = PaginatedSubscriptionsFromJSON;
|
|
32
|
+
function PaginatedSubscriptionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'metadata': (json['metadata'] === null || json['metadata'] === undefined) ? json['metadata'] : (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
|
|
38
|
+
'records': (json['records'] === null || json['records'] === undefined) ? json['records'] : json['records'].map(Subscription_1.SubscriptionFromJSON),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.PaginatedSubscriptionsFromJSONTyped = PaginatedSubscriptionsFromJSONTyped;
|
|
42
|
+
function PaginatedSubscriptionsToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value['metadata']),
|
|
48
|
+
'records': (value['records'] === null || value['records'] === undefined) ? value['records'] : value['records'].map(Subscription_1.SubscriptionToJSON),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.PaginatedSubscriptionsToJSON = PaginatedSubscriptionsToJSON;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
/**
|
|
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. May not be present if user do not request specific page.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PagingMetadata
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
|
|
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
|
+
/**
|
|
44
|
+
* Check if a given object implements the PagingMetadata interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPagingMetadata(value: object): value is PagingMetadata;
|
|
47
|
+
export declare function PagingMetadataFromJSON(json: any): PagingMetadata;
|
|
48
|
+
export declare function PagingMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagingMetadata;
|
|
49
|
+
export declare function PagingMetadataToJSON(value?: PagingMetadata | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.PagingMetadataFromJSON = exports.instanceOfPagingMetadata = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PagingMetadata interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfPagingMetadata(value) {
|
|
21
|
+
if (!('totalVisible' in value) || value['totalVisible'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalFound' in value) || value['totalFound'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfPagingMetadata = instanceOfPagingMetadata;
|
|
28
|
+
function PagingMetadataFromJSON(json) {
|
|
29
|
+
return PagingMetadataFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.PagingMetadataFromJSON = PagingMetadataFromJSON;
|
|
32
|
+
function PagingMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'page': json['page'],
|
|
38
|
+
'perPage': json['perPage'],
|
|
39
|
+
'totalVisible': json['totalVisible'],
|
|
40
|
+
'totalFound': json['totalFound'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.PagingMetadataFromJSONTyped = PagingMetadataFromJSONTyped;
|
|
44
|
+
function PagingMetadataToJSON(value) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'page': value['page'],
|
|
50
|
+
'perPage': value['perPage'],
|
|
51
|
+
'totalVisible': value['totalVisible'],
|
|
52
|
+
'totalFound': value['totalFound'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.PagingMetadataToJSON = PagingMetadataToJSON;
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
/**
|
|
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 * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status * `CODE024` - Image missing * `CODE025` - Invalid International Bank Account Number
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RestError
|
|
23
|
+
*/
|
|
24
|
+
code: RestErrorCodeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* 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 * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status * `MESSAGE024` - Image missing * `MESSAGE024` - Invalid International Bank Account Number
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof RestError
|
|
30
|
+
*/
|
|
31
|
+
message: RestErrorMessageEnum;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export declare const RestErrorCodeEnum: {
|
|
37
|
+
readonly CODE000: "CODE000";
|
|
38
|
+
readonly CODE001: "CODE001";
|
|
39
|
+
readonly CODE002: "CODE002";
|
|
40
|
+
readonly CODE003: "CODE003";
|
|
41
|
+
readonly CODE004: "CODE004";
|
|
42
|
+
readonly CODE005: "CODE005";
|
|
43
|
+
readonly CODE006: "CODE006";
|
|
44
|
+
readonly CODE007: "CODE007";
|
|
45
|
+
readonly CODE008: "CODE008";
|
|
46
|
+
readonly CODE009: "CODE009";
|
|
47
|
+
readonly CODE010: "CODE010";
|
|
48
|
+
readonly CODE011: "CODE011";
|
|
49
|
+
readonly CODE012: "CODE012";
|
|
50
|
+
readonly CODE013: "CODE013";
|
|
51
|
+
readonly CODE014: "CODE014";
|
|
52
|
+
readonly CODE015: "CODE015";
|
|
53
|
+
readonly CODE016: "CODE016";
|
|
54
|
+
readonly CODE017: "CODE017";
|
|
55
|
+
readonly CODE018: "CODE018";
|
|
56
|
+
readonly CODE019: "CODE019";
|
|
57
|
+
readonly CODE020: "CODE020";
|
|
58
|
+
readonly CODE021: "CODE021";
|
|
59
|
+
readonly CODE022: "CODE022";
|
|
60
|
+
readonly CODE023: "CODE023";
|
|
61
|
+
readonly CODE024: "CODE024";
|
|
62
|
+
readonly CODE025: "CODE025";
|
|
63
|
+
};
|
|
64
|
+
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export declare const RestErrorMessageEnum: {
|
|
69
|
+
readonly MESSAGE000: "Using outdated resource";
|
|
70
|
+
readonly MESSAGE001: "Login failed";
|
|
71
|
+
readonly MESSAGE002: "Cannot renew token";
|
|
72
|
+
readonly MESSAGE003: "Invalid User CGV";
|
|
73
|
+
readonly MESSAGE004: "Resource already exists";
|
|
74
|
+
readonly MESSAGE005: "User account is disabled";
|
|
75
|
+
readonly MESSAGE006: "Invalid schedule";
|
|
76
|
+
readonly MESSAGE007: "Wrong Address according CHRONOPOST";
|
|
77
|
+
readonly MESSAGE008: "Invalid Mangopay Mandate";
|
|
78
|
+
readonly MESSAGE009: "Invalid Status";
|
|
79
|
+
readonly MESSAGE010: "Image dimension exceeded";
|
|
80
|
+
readonly MESSAGE011: "Empty User Address";
|
|
81
|
+
readonly MESSAGE012: "Empty User Legal Name";
|
|
82
|
+
readonly MESSAGE013: "Invalid quantities";
|
|
83
|
+
readonly MESSAGE014: "Invalid Meta-Order";
|
|
84
|
+
readonly MESSAGE015: "Can not release quantity greater than claimed";
|
|
85
|
+
readonly MESSAGE016: "Can not release a negative quantity of items";
|
|
86
|
+
readonly MESSAGE017: "Batch is forbidden for sale";
|
|
87
|
+
readonly MESSAGE018: "Trial already used";
|
|
88
|
+
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
89
|
+
readonly MESSAGE020: "ETag do not match";
|
|
90
|
+
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
91
|
+
readonly MESSAGE022: "Disabled feature";
|
|
92
|
+
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
93
|
+
readonly MESSAGE024: "Image missing";
|
|
94
|
+
readonly MESSAGE025: "Invalid International Bank Account Number";
|
|
95
|
+
};
|
|
96
|
+
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the RestError interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfRestError(value: object): value is RestError;
|
|
101
|
+
export declare function RestErrorFromJSON(json: any): RestError;
|
|
102
|
+
export declare function RestErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestError;
|
|
103
|
+
export declare function RestErrorToJSON(value?: RestError | null): any;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RestErrorToJSON = exports.RestErrorFromJSONTyped = exports.RestErrorFromJSON = exports.instanceOfRestError = exports.RestErrorMessageEnum = exports.RestErrorCodeEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.RestErrorCodeEnum = {
|
|
21
|
+
CODE000: 'CODE000',
|
|
22
|
+
CODE001: 'CODE001',
|
|
23
|
+
CODE002: 'CODE002',
|
|
24
|
+
CODE003: 'CODE003',
|
|
25
|
+
CODE004: 'CODE004',
|
|
26
|
+
CODE005: 'CODE005',
|
|
27
|
+
CODE006: 'CODE006',
|
|
28
|
+
CODE007: 'CODE007',
|
|
29
|
+
CODE008: 'CODE008',
|
|
30
|
+
CODE009: 'CODE009',
|
|
31
|
+
CODE010: 'CODE010',
|
|
32
|
+
CODE011: 'CODE011',
|
|
33
|
+
CODE012: 'CODE012',
|
|
34
|
+
CODE013: 'CODE013',
|
|
35
|
+
CODE014: 'CODE014',
|
|
36
|
+
CODE015: 'CODE015',
|
|
37
|
+
CODE016: 'CODE016',
|
|
38
|
+
CODE017: 'CODE017',
|
|
39
|
+
CODE018: 'CODE018',
|
|
40
|
+
CODE019: 'CODE019',
|
|
41
|
+
CODE020: 'CODE020',
|
|
42
|
+
CODE021: 'CODE021',
|
|
43
|
+
CODE022: 'CODE022',
|
|
44
|
+
CODE023: 'CODE023',
|
|
45
|
+
CODE024: 'CODE024',
|
|
46
|
+
CODE025: 'CODE025'
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
exports.RestErrorMessageEnum = {
|
|
52
|
+
MESSAGE000: 'Using outdated resource',
|
|
53
|
+
MESSAGE001: 'Login failed',
|
|
54
|
+
MESSAGE002: 'Cannot renew token',
|
|
55
|
+
MESSAGE003: 'Invalid User CGV',
|
|
56
|
+
MESSAGE004: 'Resource already exists',
|
|
57
|
+
MESSAGE005: 'User account is disabled',
|
|
58
|
+
MESSAGE006: 'Invalid schedule',
|
|
59
|
+
MESSAGE007: 'Wrong Address according CHRONOPOST',
|
|
60
|
+
MESSAGE008: 'Invalid Mangopay Mandate',
|
|
61
|
+
MESSAGE009: 'Invalid Status',
|
|
62
|
+
MESSAGE010: 'Image dimension exceeded',
|
|
63
|
+
MESSAGE011: 'Empty User Address',
|
|
64
|
+
MESSAGE012: 'Empty User Legal Name',
|
|
65
|
+
MESSAGE013: 'Invalid quantities',
|
|
66
|
+
MESSAGE014: 'Invalid Meta-Order',
|
|
67
|
+
MESSAGE015: 'Can not release quantity greater than claimed',
|
|
68
|
+
MESSAGE016: 'Can not release a negative quantity of items',
|
|
69
|
+
MESSAGE017: 'Batch is forbidden for sale',
|
|
70
|
+
MESSAGE018: 'Trial already used',
|
|
71
|
+
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
72
|
+
MESSAGE020: 'ETag do not match',
|
|
73
|
+
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
74
|
+
MESSAGE022: 'Disabled feature',
|
|
75
|
+
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
76
|
+
MESSAGE024: 'Image missing',
|
|
77
|
+
MESSAGE025: 'Invalid International Bank Account Number'
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the RestError interface.
|
|
81
|
+
*/
|
|
82
|
+
function instanceOfRestError(value) {
|
|
83
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
84
|
+
return false;
|
|
85
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
86
|
+
return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
exports.instanceOfRestError = instanceOfRestError;
|
|
90
|
+
function RestErrorFromJSON(json) {
|
|
91
|
+
return RestErrorFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
exports.RestErrorFromJSON = RestErrorFromJSON;
|
|
94
|
+
function RestErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
'code': json['code'],
|
|
100
|
+
'message': json['message'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.RestErrorFromJSONTyped = RestErrorFromJSONTyped;
|
|
104
|
+
function RestErrorToJSON(value) {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
'code': value['code'],
|
|
110
|
+
'message': value['message'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
exports.RestErrorToJSON = RestErrorToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Subscriber link
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubscriberLink
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriberLink {
|
|
18
|
+
/**
|
|
19
|
+
* Any URL that is using http or https protocol
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubscriberLink
|
|
22
|
+
*/
|
|
23
|
+
href: string;
|
|
24
|
+
/**
|
|
25
|
+
* User id
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SubscriberLink
|
|
28
|
+
*/
|
|
29
|
+
id?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SubscriberLink interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSubscriberLink(value: object): value is SubscriberLink;
|
|
35
|
+
export declare function SubscriberLinkFromJSON(json: any): SubscriberLink;
|
|
36
|
+
export declare function SubscriberLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriberLink;
|
|
37
|
+
export declare function SubscriberLinkToJSON(value?: SubscriberLink | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubscriberLinkToJSON = exports.SubscriberLinkFromJSONTyped = exports.SubscriberLinkFromJSON = exports.instanceOfSubscriberLink = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SubscriberLink interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSubscriberLink(value) {
|
|
21
|
+
if (!('href' in value) || value['href'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfSubscriberLink = instanceOfSubscriberLink;
|
|
26
|
+
function SubscriberLinkFromJSON(json) {
|
|
27
|
+
return SubscriberLinkFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SubscriberLinkFromJSON = SubscriberLinkFromJSON;
|
|
30
|
+
function SubscriberLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'href': json['href'],
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.SubscriberLinkFromJSONTyped = SubscriberLinkFromJSONTyped;
|
|
40
|
+
function SubscriberLinkToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'href': value['href'],
|
|
46
|
+
'id': value['id'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.SubscriberLinkToJSON = SubscriberLinkToJSON;
|