@lcdp/api-react-rest-client 2.6.2-develop.8330105881 → 2.6.2-develop.8356314138
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/order/src/models/OrderJournal.d.ts +24 -0
- package/order/src/models/OrderJournal.js +8 -0
- package/package.json +1 -1
- package/sale-offer/src/models/SaleOffer.d.ts +17 -17
- package/sale-offer/src/models/SaleOffer.js +18 -19
- package/statistic/src/apis/SearchUserStatisticsApi.d.ts +42 -0
- package/statistic/src/apis/SearchUserStatisticsApi.js +248 -0
- package/statistic/src/apis/index.d.ts +1 -0
- package/statistic/src/apis/index.js +1 -0
- package/statistic/src/models/PaginatedUserStatistics.d.ts +29 -0
- package/statistic/src/models/PaginatedUserStatistics.js +50 -0
- package/statistic/src/models/PaginatedUserStatisticsAllOf.d.ts +28 -0
- package/statistic/src/models/PaginatedUserStatisticsAllOf.js +42 -0
- package/statistic/src/models/UserStatistic.d.ts +70 -0
- package/statistic/src/models/UserStatistic.js +57 -0
- package/statistic/src/models/index.d.ts +3 -0
- package/statistic/src/models/index.js +3 -0
- package/third-party/index.d.ts +1 -0
- package/third-party/index.js +17 -0
- package/third-party/src/apis/ManageThirdPartyLinkApi.d.ts +29 -0
- package/third-party/src/apis/ManageThirdPartyLinkApi.js +163 -0
- package/third-party/src/apis/index.d.ts +1 -0
- package/third-party/src/apis/index.js +17 -0
- package/third-party/src/index.d.ts +3 -0
- package/third-party/src/index.js +19 -0
- package/third-party/src/models/RestError.d.ts +87 -0
- package/third-party/src/models/RestError.js +99 -0
- package/third-party/src/models/ThirdPartyLink.d.ts +27 -0
- package/third-party/src/models/ThirdPartyLink.js +42 -0
- package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +33 -0
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +43 -0
- package/third-party/src/models/index.d.ts +3 -0
- package/third-party/src/models/index.js +19 -0
- package/third-party/src/runtime.d.ts +149 -0
- package/third-party/src/runtime.js +480 -0
- package/user/src/models/User.d.ts +21 -8
- package/user/src/models/User.js +13 -8
- package/user/src/models/UserStatisticLink.d.ts +58 -0
- package/user/src/models/UserStatisticLink.js +50 -0
- package/user/src/models/UserStatisticLinkAllOf.d.ts +57 -0
- package/user/src/models/UserStatisticLinkAllOf.js +52 -0
- package/user/src/models/index.d.ts +2 -0
- package/user/src/models/index.js +2 -0
|
@@ -0,0 +1,27 @@
|
|
|
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 ThirdPartyLink
|
|
16
|
+
*/
|
|
17
|
+
export interface ThirdPartyLink {
|
|
18
|
+
/**
|
|
19
|
+
* Link to the third party
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ThirdPartyLink
|
|
22
|
+
*/
|
|
23
|
+
href?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function ThirdPartyLinkFromJSON(json: any): ThirdPartyLink;
|
|
26
|
+
export declare function ThirdPartyLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThirdPartyLink;
|
|
27
|
+
export declare function ThirdPartyLinkToJSON(value?: ThirdPartyLink | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
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.ThirdPartyLinkToJSON = exports.ThirdPartyLinkFromJSONTyped = exports.ThirdPartyLinkFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ThirdPartyLinkFromJSON(json) {
|
|
19
|
+
return ThirdPartyLinkFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ThirdPartyLinkFromJSON = ThirdPartyLinkFromJSON;
|
|
22
|
+
function ThirdPartyLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'href': !(0, runtime_1.exists)(json, 'href') ? undefined : json['href'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.ThirdPartyLinkFromJSONTyped = ThirdPartyLinkFromJSONTyped;
|
|
31
|
+
function ThirdPartyLinkToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'href': value.href,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.ThirdPartyLinkToJSON = ThirdPartyLinkToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 ThirdPartyLinkCreationParameters
|
|
16
|
+
*/
|
|
17
|
+
export interface ThirdPartyLinkCreationParameters {
|
|
18
|
+
/**
|
|
19
|
+
* User id for which the link url will be generated
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ThirdPartyLinkCreationParameters
|
|
22
|
+
*/
|
|
23
|
+
userId: number;
|
|
24
|
+
/**
|
|
25
|
+
* Slug on which the partner link will be generated for the user
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ThirdPartyLinkCreationParameters
|
|
28
|
+
*/
|
|
29
|
+
slug: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function ThirdPartyLinkCreationParametersFromJSON(json: any): ThirdPartyLinkCreationParameters;
|
|
32
|
+
export declare function ThirdPartyLinkCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThirdPartyLinkCreationParameters;
|
|
33
|
+
export declare function ThirdPartyLinkCreationParametersToJSON(value?: ThirdPartyLinkCreationParameters | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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.ThirdPartyLinkCreationParametersToJSON = exports.ThirdPartyLinkCreationParametersFromJSONTyped = exports.ThirdPartyLinkCreationParametersFromJSON = void 0;
|
|
17
|
+
function ThirdPartyLinkCreationParametersFromJSON(json) {
|
|
18
|
+
return ThirdPartyLinkCreationParametersFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.ThirdPartyLinkCreationParametersFromJSON = ThirdPartyLinkCreationParametersFromJSON;
|
|
21
|
+
function ThirdPartyLinkCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'userId': json['userId'],
|
|
27
|
+
'slug': json['slug'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.ThirdPartyLinkCreationParametersFromJSONTyped = ThirdPartyLinkCreationParametersFromJSONTyped;
|
|
31
|
+
function ThirdPartyLinkCreationParametersToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'userId': value.userId,
|
|
40
|
+
'slug': value.slug,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.ThirdPartyLinkCreationParametersToJSON = ThirdPartyLinkCreationParametersToJSON;
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./RestError"), exports);
|
|
18
|
+
__exportStar(require("./ThirdPartyLink"), exports);
|
|
19
|
+
__exportStar(require("./ThirdPartyLinkCreationParameters"), exports);
|
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
export declare const BASE_PATH = "/api/v1";
|
|
13
|
+
/**
|
|
14
|
+
* This is the base class for all generated API classes.
|
|
15
|
+
*/
|
|
16
|
+
export declare class BaseAPI {
|
|
17
|
+
protected configuration: Configuration;
|
|
18
|
+
private middleware;
|
|
19
|
+
constructor(configuration?: Configuration);
|
|
20
|
+
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
21
|
+
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
22
|
+
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
23
|
+
protected request(context: RequestOpts): Promise<Response>;
|
|
24
|
+
private createFetchParams;
|
|
25
|
+
private fetchApi;
|
|
26
|
+
/**
|
|
27
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
28
|
+
* and then shallow cloning data members.
|
|
29
|
+
*/
|
|
30
|
+
private clone;
|
|
31
|
+
}
|
|
32
|
+
export declare class RequiredError extends Error {
|
|
33
|
+
field: string;
|
|
34
|
+
name: "RequiredError";
|
|
35
|
+
constructor(field: string, msg?: string);
|
|
36
|
+
}
|
|
37
|
+
export declare const COLLECTION_FORMATS: {
|
|
38
|
+
csv: string;
|
|
39
|
+
ssv: string;
|
|
40
|
+
tsv: string;
|
|
41
|
+
pipes: string;
|
|
42
|
+
};
|
|
43
|
+
export declare type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
44
|
+
export interface ConfigurationParameters {
|
|
45
|
+
basePath?: string;
|
|
46
|
+
fetchApi?: FetchAPI;
|
|
47
|
+
middleware?: Middleware[];
|
|
48
|
+
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
49
|
+
username?: string;
|
|
50
|
+
password?: string;
|
|
51
|
+
apiKey?: string | ((name: string) => string);
|
|
52
|
+
accessToken?: string | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
53
|
+
headers?: HTTPHeaders;
|
|
54
|
+
credentials?: RequestCredentials;
|
|
55
|
+
referrerPolicy?: ReferrerPolicy;
|
|
56
|
+
}
|
|
57
|
+
export declare class Configuration {
|
|
58
|
+
private configuration;
|
|
59
|
+
constructor(configuration?: ConfigurationParameters);
|
|
60
|
+
get basePath(): string;
|
|
61
|
+
get fetchApi(): FetchAPI;
|
|
62
|
+
get middleware(): Middleware[];
|
|
63
|
+
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
64
|
+
get username(): string | undefined;
|
|
65
|
+
get password(): string | undefined;
|
|
66
|
+
get apiKey(): ((name: string) => string) | undefined;
|
|
67
|
+
get accessToken(): ((name: string, scopes?: string[]) => Promise<string>) | undefined;
|
|
68
|
+
get headers(): HTTPHeaders | undefined;
|
|
69
|
+
get credentials(): RequestCredentials | undefined;
|
|
70
|
+
get referrerPolicy(): ReferrerPolicy | undefined;
|
|
71
|
+
}
|
|
72
|
+
export declare type Json = any;
|
|
73
|
+
export declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
74
|
+
export declare type HTTPHeaders = {
|
|
75
|
+
[key: string]: string;
|
|
76
|
+
};
|
|
77
|
+
export declare type HTTPQuery = {
|
|
78
|
+
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | HTTPQuery;
|
|
79
|
+
};
|
|
80
|
+
export declare type HTTPBody = Json | FormData | URLSearchParams;
|
|
81
|
+
export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
82
|
+
export interface FetchParams {
|
|
83
|
+
url: string;
|
|
84
|
+
init: RequestInit;
|
|
85
|
+
}
|
|
86
|
+
export interface RequestOpts {
|
|
87
|
+
path: string;
|
|
88
|
+
method: HTTPMethod;
|
|
89
|
+
headers: HTTPHeaders;
|
|
90
|
+
query?: HTTPQuery;
|
|
91
|
+
body?: HTTPBody;
|
|
92
|
+
}
|
|
93
|
+
export declare function exists(json: any, key: string): boolean;
|
|
94
|
+
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
95
|
+
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
96
|
+
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
97
|
+
export declare function toDateISOString(date: Date): string;
|
|
98
|
+
export interface Consume {
|
|
99
|
+
contentType: string;
|
|
100
|
+
}
|
|
101
|
+
export interface RequestContext {
|
|
102
|
+
fetch: FetchAPI;
|
|
103
|
+
url: string;
|
|
104
|
+
init: RequestInit;
|
|
105
|
+
}
|
|
106
|
+
export interface ResponseContext {
|
|
107
|
+
fetch: FetchAPI;
|
|
108
|
+
url: string;
|
|
109
|
+
init: RequestInit;
|
|
110
|
+
response: Response;
|
|
111
|
+
}
|
|
112
|
+
export interface Middleware {
|
|
113
|
+
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
114
|
+
post?(context: ResponseContext): Promise<Response | void>;
|
|
115
|
+
}
|
|
116
|
+
export interface ApiResponse<T> {
|
|
117
|
+
raw: Response;
|
|
118
|
+
value(): Promise<T>;
|
|
119
|
+
}
|
|
120
|
+
export interface ResponseTransformer<T> {
|
|
121
|
+
(json: any): T;
|
|
122
|
+
}
|
|
123
|
+
export declare class JSONApiResponse<T> {
|
|
124
|
+
raw: Response;
|
|
125
|
+
private transformer;
|
|
126
|
+
constructor(raw: Response, transformer?: ResponseTransformer<T>);
|
|
127
|
+
value(): Promise<T>;
|
|
128
|
+
}
|
|
129
|
+
export declare class VoidApiResponse {
|
|
130
|
+
raw: Response;
|
|
131
|
+
constructor(raw: Response);
|
|
132
|
+
value(): Promise<void>;
|
|
133
|
+
}
|
|
134
|
+
export interface BlobWithMeta {
|
|
135
|
+
blob: Blob;
|
|
136
|
+
filename: string;
|
|
137
|
+
}
|
|
138
|
+
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
139
|
+
export declare class BlobWithMetaApiResponse {
|
|
140
|
+
raw: Response;
|
|
141
|
+
constructor(raw: Response);
|
|
142
|
+
value(): Promise<BlobWithMeta>;
|
|
143
|
+
private extractFilename;
|
|
144
|
+
}
|
|
145
|
+
export declare class TextApiResponse {
|
|
146
|
+
raw: Response;
|
|
147
|
+
constructor(raw: Response);
|
|
148
|
+
value(): Promise<string>;
|
|
149
|
+
}
|