@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,51 +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.SaleOfferStatisticToJSON = exports.SaleOfferStatisticFromJSONTyped = exports.SaleOfferStatisticFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
- var UserLink_1 = require("./UserLink");
19
- function SaleOfferStatisticFromJSON(json) {
20
- return SaleOfferStatisticFromJSONTyped(json, false);
21
- }
22
- exports.SaleOfferStatisticFromJSON = SaleOfferStatisticFromJSON;
23
- function SaleOfferStatisticFromJSONTyped(json, ignoreDiscriminator) {
24
- if ((json === undefined) || (json === null)) {
25
- return json;
26
- }
27
- return {
28
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
29
- 'reference': !(0, runtime_1.exists)(json, 'reference') ? undefined : json['reference'],
30
- 'lastSaleDate': !(0, runtime_1.exists)(json, 'lastSaleDate') ? undefined : (new Date(json['lastSaleDate'])),
31
- 'numberOfSales': !(0, runtime_1.exists)(json, 'numberOfSales') ? undefined : json['numberOfSales'],
32
- 'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : (0, UserLink_1.UserLinkFromJSON)(json['owner']),
33
- };
34
- }
35
- exports.SaleOfferStatisticFromJSONTyped = SaleOfferStatisticFromJSONTyped;
36
- function SaleOfferStatisticToJSON(value) {
37
- if (value === undefined) {
38
- return undefined;
39
- }
40
- if (value === null) {
41
- return null;
42
- }
43
- return {
44
- 'id': value.id,
45
- 'reference': value.reference,
46
- 'lastSaleDate': value.lastSaleDate === undefined ? undefined : (value.lastSaleDate.toISOString()),
47
- 'numberOfSales': value.numberOfSales,
48
- 'owner': (0, UserLink_1.UserLinkToJSON)(value.owner),
49
- };
50
- }
51
- exports.SaleOfferStatisticToJSON = SaleOfferStatisticToJSON;
@@ -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 { HttpLink } from './HttpLink';
13
- /**
14
- *
15
- * @export
16
- * @interface UserLink
17
- */
18
- export interface UserLink extends HttpLink {
19
- /**
20
- * Id of the user
21
- * @type {number}
22
- * @memberof UserLink
23
- */
24
- id?: number;
25
- }
26
- export declare function UserLinkFromJSON(json: any): UserLink;
27
- export declare function UserLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLink;
28
- export declare function UserLinkToJSON(value?: UserLink | 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.UserLinkToJSON = exports.UserLinkFromJSONTyped = exports.UserLinkFromJSON = void 0;
28
- var runtime_1 = require("../runtime");
29
- var HttpLink_1 = require("./HttpLink");
30
- function UserLinkFromJSON(json) {
31
- return UserLinkFromJSONTyped(json, false);
32
- }
33
- exports.UserLinkFromJSON = UserLinkFromJSON;
34
- function UserLinkFromJSONTyped(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'] });
39
- }
40
- exports.UserLinkFromJSONTyped = UserLinkFromJSONTyped;
41
- function UserLinkToJSON(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 });
49
- }
50
- exports.UserLinkToJSON = UserLinkToJSON;
@@ -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
- *
14
- * @export
15
- * @interface UserLinkAllOf
16
- */
17
- export interface UserLinkAllOf {
18
- /**
19
- * Id of the user
20
- * @type {number}
21
- * @memberof UserLinkAllOf
22
- */
23
- id?: number;
24
- }
25
- export declare function UserLinkAllOfFromJSON(json: any): UserLinkAllOf;
26
- export declare function UserLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLinkAllOf;
27
- export declare function UserLinkAllOfToJSON(value?: UserLinkAllOf | 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.UserLinkAllOfToJSON = exports.UserLinkAllOfFromJSONTyped = exports.UserLinkAllOfFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
- function UserLinkAllOfFromJSON(json) {
19
- return UserLinkAllOfFromJSONTyped(json, false);
20
- }
21
- exports.UserLinkAllOfFromJSON = UserLinkAllOfFromJSON;
22
- function UserLinkAllOfFromJSONTyped(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
- };
29
- }
30
- exports.UserLinkAllOfFromJSONTyped = UserLinkAllOfFromJSONTyped;
31
- function UserLinkAllOfToJSON(value) {
32
- if (value === undefined) {
33
- return undefined;
34
- }
35
- if (value === null) {
36
- return null;
37
- }
38
- return {
39
- 'id': value.id,
40
- };
41
- }
42
- exports.UserLinkAllOfToJSON = UserLinkAllOfToJSON;
@@ -1,9 +0,0 @@
1
- export * from './HttpLink';
2
- export * from './PaginatedObject';
3
- export * from './PaginatedSaleOfferStatistics';
4
- export * from './PaginatedSaleOfferStatisticsAllOf';
5
- export * from './PagingMetadata';
6
- export * from './RestError';
7
- export * from './SaleOfferStatistic';
8
- export * from './UserLink';
9
- export * from './UserLinkAllOf';
@@ -1,25 +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("./HttpLink"), exports);
18
- __exportStar(require("./PaginatedObject"), exports);
19
- __exportStar(require("./PaginatedSaleOfferStatistics"), exports);
20
- __exportStar(require("./PaginatedSaleOfferStatisticsAllOf"), exports);
21
- __exportStar(require("./PagingMetadata"), exports);
22
- __exportStar(require("./RestError"), exports);
23
- __exportStar(require("./SaleOfferStatistic"), exports);
24
- __exportStar(require("./UserLink"), exports);
25
- __exportStar(require("./UserLinkAllOf"), exports);
@@ -1,149 +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
- 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
- }