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

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.6.1",
3
+ "version": "2.6.2-LDS-3445-api-ajouter-statitiques-user.8249214622",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -0,0 +1,31 @@
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 { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
+ import { PaginatedUserStatistics } from '../models';
14
+ export interface GetUserStatisticsRequest {
15
+ userIdEq?: Array<number>;
16
+ p?: number;
17
+ pp?: number;
18
+ }
19
+ /**
20
+ * no description
21
+ */
22
+ export declare class SearchUserStatisticsApi extends BaseAPI {
23
+ /**
24
+ * Search users statistics
25
+ */
26
+ getUserStatisticsRaw(requestParameters: GetUserStatisticsRequest): Promise<ApiResponse<PaginatedUserStatistics | BlobWithMeta>>;
27
+ /**
28
+ * Search users statistics
29
+ */
30
+ getUserStatistics(requestParameters: GetUserStatisticsRequest): Promise<PaginatedUserStatistics | BlobWithMeta>;
31
+ }
@@ -0,0 +1,167 @@
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 __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (_) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.SearchUserStatisticsApi = void 0;
68
+ var runtime_1 = require("../runtime");
69
+ var models_1 = require("../models");
70
+ /**
71
+ * no description
72
+ */
73
+ var SearchUserStatisticsApi = /** @class */ (function (_super) {
74
+ __extends(SearchUserStatisticsApi, _super);
75
+ function SearchUserStatisticsApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Search users statistics
80
+ */
81
+ SearchUserStatisticsApi.prototype.getUserStatisticsRaw = function (requestParameters) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_1;
84
+ return __generator(this, function (_b) {
85
+ switch (_b.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ if (requestParameters.userIdEq) {
89
+ queryParameters['userId[eq]'] = requestParameters.userIdEq;
90
+ }
91
+ if (requestParameters.p !== undefined) {
92
+ queryParameters['p'] = requestParameters.p;
93
+ }
94
+ if (requestParameters.pp !== undefined) {
95
+ queryParameters['pp'] = requestParameters.pp;
96
+ }
97
+ headerParameters = {};
98
+ if (this.configuration && this.configuration.apiKey) {
99
+ headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
100
+ }
101
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
102
+ token = this.configuration.accessToken;
103
+ if (!(typeof token === 'function')) return [3 /*break*/, 2];
104
+ return [4 /*yield*/, token("bearerAuth", [])];
105
+ case 1:
106
+ _a = _b.sent();
107
+ return [3 /*break*/, 3];
108
+ case 2:
109
+ _a = token;
110
+ _b.label = 3;
111
+ case 3:
112
+ tokenString = _a;
113
+ if (tokenString) {
114
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
115
+ }
116
+ _b.label = 4;
117
+ case 4:
118
+ _b.trys.push([4, 6, , 7]);
119
+ return [4 /*yield*/, this.request({
120
+ path: "/user-statistics",
121
+ method: 'GET',
122
+ headers: headerParameters,
123
+ query: queryParameters,
124
+ })];
125
+ case 5:
126
+ response = _b.sent();
127
+ contentType = response.headers.get("content-type");
128
+ if (contentType && contentType.indexOf("application/json") !== -1) {
129
+ return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedUserStatisticsFromJSON)(jsonValue); })];
130
+ }
131
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
132
+ return [2 /*return*/, new runtime_1.TextApiResponse(response)];
133
+ }
134
+ else {
135
+ // TODO : Better handling of others application types
136
+ return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
137
+ }
138
+ return [3 /*break*/, 7];
139
+ case 6:
140
+ response_1 = _b.sent();
141
+ console.debug(response_1);
142
+ throw response_1;
143
+ case 7: return [2 /*return*/];
144
+ }
145
+ });
146
+ });
147
+ };
148
+ /**
149
+ * Search users statistics
150
+ */
151
+ SearchUserStatisticsApi.prototype.getUserStatistics = function (requestParameters) {
152
+ return __awaiter(this, void 0, void 0, function () {
153
+ var response;
154
+ return __generator(this, function (_a) {
155
+ switch (_a.label) {
156
+ case 0: return [4 /*yield*/, this.getUserStatisticsRaw(requestParameters)];
157
+ case 1:
158
+ response = _a.sent();
159
+ return [4 /*yield*/, response.value()];
160
+ case 2: return [2 /*return*/, _a.sent()];
161
+ }
162
+ });
163
+ });
164
+ };
165
+ return SearchUserStatisticsApi;
166
+ }(runtime_1.BaseAPI));
167
+ exports.SearchUserStatisticsApi = SearchUserStatisticsApi;
@@ -1 +1,2 @@
1
1
  export * from './SearchSaleOfferStatisticsApi';
2
+ export * from './SearchUserStatisticsApi';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./SearchSaleOfferStatisticsApi"), exports);
18
+ __exportStar(require("./SearchUserStatisticsApi"), exports);
@@ -0,0 +1,29 @@
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 { UserStatistic } from './UserStatistic';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedUserStatistics
18
+ */
19
+ export interface PaginatedUserStatistics extends PaginatedObject {
20
+ /**
21
+ *
22
+ * @type {Array<UserStatistic>}
23
+ * @memberof PaginatedUserStatistics
24
+ */
25
+ records: Array<UserStatistic>;
26
+ }
27
+ export declare function PaginatedUserStatisticsFromJSON(json: any): PaginatedUserStatistics;
28
+ export declare function PaginatedUserStatisticsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserStatistics;
29
+ export declare function PaginatedUserStatisticsToJSON(value?: PaginatedUserStatistics | null): any;
@@ -0,0 +1,50 @@
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.PaginatedUserStatisticsToJSON = exports.PaginatedUserStatisticsFromJSONTyped = exports.PaginatedUserStatisticsFromJSON = void 0;
28
+ var PaginatedObject_1 = require("./PaginatedObject");
29
+ var UserStatistic_1 = require("./UserStatistic");
30
+ function PaginatedUserStatisticsFromJSON(json) {
31
+ return PaginatedUserStatisticsFromJSONTyped(json, false);
32
+ }
33
+ exports.PaginatedUserStatisticsFromJSON = PaginatedUserStatisticsFromJSON;
34
+ function PaginatedUserStatisticsFromJSONTyped(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(UserStatistic_1.UserStatisticFromJSON)) });
39
+ }
40
+ exports.PaginatedUserStatisticsFromJSONTyped = PaginatedUserStatisticsFromJSONTyped;
41
+ function PaginatedUserStatisticsToJSON(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(UserStatistic_1.UserStatisticToJSON)) });
49
+ }
50
+ exports.PaginatedUserStatisticsToJSON = PaginatedUserStatisticsToJSON;
@@ -0,0 +1,28 @@
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 { UserStatistic } from './UserStatistic';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedUserStatisticsAllOf
17
+ */
18
+ export interface PaginatedUserStatisticsAllOf {
19
+ /**
20
+ *
21
+ * @type {Array<UserStatistic>}
22
+ * @memberof PaginatedUserStatisticsAllOf
23
+ */
24
+ records: Array<UserStatistic>;
25
+ }
26
+ export declare function PaginatedUserStatisticsAllOfFromJSON(json: any): PaginatedUserStatisticsAllOf;
27
+ export declare function PaginatedUserStatisticsAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserStatisticsAllOf;
28
+ export declare function PaginatedUserStatisticsAllOfToJSON(value?: PaginatedUserStatisticsAllOf | null): any;
@@ -0,0 +1,42 @@
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.PaginatedUserStatisticsAllOfToJSON = exports.PaginatedUserStatisticsAllOfFromJSONTyped = exports.PaginatedUserStatisticsAllOfFromJSON = void 0;
17
+ var UserStatistic_1 = require("./UserStatistic");
18
+ function PaginatedUserStatisticsAllOfFromJSON(json) {
19
+ return PaginatedUserStatisticsAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.PaginatedUserStatisticsAllOfFromJSON = PaginatedUserStatisticsAllOfFromJSON;
22
+ function PaginatedUserStatisticsAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'records': (json['records'].map(UserStatistic_1.UserStatisticFromJSON)),
28
+ };
29
+ }
30
+ exports.PaginatedUserStatisticsAllOfFromJSONTyped = PaginatedUserStatisticsAllOfFromJSONTyped;
31
+ function PaginatedUserStatisticsAllOfToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'records': (value.records.map(UserStatistic_1.UserStatisticToJSON)),
40
+ };
41
+ }
42
+ exports.PaginatedUserStatisticsAllOfToJSON = PaginatedUserStatisticsAllOfToJSON;
@@ -0,0 +1,70 @@
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 UserStatistic
17
+ */
18
+ export interface UserStatistic {
19
+ /**
20
+ * Unique id representing this statistic
21
+ * @type {string}
22
+ * @memberof UserStatistic
23
+ */
24
+ id?: string;
25
+ /**
26
+ *
27
+ * @type {UserLink}
28
+ * @memberof UserStatistic
29
+ */
30
+ user?: UserLink;
31
+ /**
32
+ * Number of sale during lifespan of this sale offer
33
+ * @type {number}
34
+ * @memberof UserStatistic
35
+ */
36
+ numberOfSales?: number;
37
+ /**
38
+ * Error rate of sales
39
+ * @type {number}
40
+ * @memberof UserStatistic
41
+ */
42
+ salesErrorRate?: number;
43
+ /**
44
+ * Rate of canceled sales
45
+ * @type {number}
46
+ * @memberof UserStatistic
47
+ */
48
+ salesCanceledRate?: number;
49
+ /**
50
+ * Rate of sales in litigation
51
+ * @type {number}
52
+ * @memberof UserStatistic
53
+ */
54
+ salesLitigationRate?: number;
55
+ /**
56
+ * Average delay of responsiveness for sales
57
+ * @type {number}
58
+ * @memberof UserStatistic
59
+ */
60
+ salesResponsivenessDelay?: number;
61
+ /**
62
+ * Average delay of delivery for sales
63
+ * @type {number}
64
+ * @memberof UserStatistic
65
+ */
66
+ deliveryDelay?: number;
67
+ }
68
+ export declare function UserStatisticFromJSON(json: any): UserStatistic;
69
+ export declare function UserStatisticFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStatistic;
70
+ export declare function UserStatisticToJSON(value?: UserStatistic | null): any;
@@ -0,0 +1,57 @@
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.UserStatisticToJSON = exports.UserStatisticFromJSONTyped = exports.UserStatisticFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var UserLink_1 = require("./UserLink");
19
+ function UserStatisticFromJSON(json) {
20
+ return UserStatisticFromJSONTyped(json, false);
21
+ }
22
+ exports.UserStatisticFromJSON = UserStatisticFromJSON;
23
+ function UserStatisticFromJSONTyped(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
+ 'user': !(0, runtime_1.exists)(json, 'user') ? undefined : (0, UserLink_1.UserLinkFromJSON)(json['user']),
30
+ 'numberOfSales': !(0, runtime_1.exists)(json, 'numberOfSales') ? undefined : json['numberOfSales'],
31
+ 'salesErrorRate': !(0, runtime_1.exists)(json, 'salesErrorRate') ? undefined : json['salesErrorRate'],
32
+ 'salesCanceledRate': !(0, runtime_1.exists)(json, 'salesCanceledRate') ? undefined : json['salesCanceledRate'],
33
+ 'salesLitigationRate': !(0, runtime_1.exists)(json, 'salesLitigationRate') ? undefined : json['salesLitigationRate'],
34
+ 'salesResponsivenessDelay': !(0, runtime_1.exists)(json, 'salesResponsivenessDelay') ? undefined : json['salesResponsivenessDelay'],
35
+ 'deliveryDelay': !(0, runtime_1.exists)(json, 'deliveryDelay') ? undefined : json['deliveryDelay'],
36
+ };
37
+ }
38
+ exports.UserStatisticFromJSONTyped = UserStatisticFromJSONTyped;
39
+ function UserStatisticToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'id': value.id,
48
+ 'user': (0, UserLink_1.UserLinkToJSON)(value.user),
49
+ 'numberOfSales': value.numberOfSales,
50
+ 'salesErrorRate': value.salesErrorRate,
51
+ 'salesCanceledRate': value.salesCanceledRate,
52
+ 'salesLitigationRate': value.salesLitigationRate,
53
+ 'salesResponsivenessDelay': value.salesResponsivenessDelay,
54
+ 'deliveryDelay': value.deliveryDelay,
55
+ };
56
+ }
57
+ exports.UserStatisticToJSON = UserStatisticToJSON;
@@ -2,8 +2,11 @@ export * from './HttpLink';
2
2
  export * from './PaginatedObject';
3
3
  export * from './PaginatedSaleOfferStatistics';
4
4
  export * from './PaginatedSaleOfferStatisticsAllOf';
5
+ export * from './PaginatedUserStatistics';
6
+ export * from './PaginatedUserStatisticsAllOf';
5
7
  export * from './PagingMetadata';
6
8
  export * from './RestError';
7
9
  export * from './SaleOfferStatistic';
8
10
  export * from './UserLink';
9
11
  export * from './UserLinkAllOf';
12
+ export * from './UserStatistic';
@@ -18,8 +18,11 @@ __exportStar(require("./HttpLink"), exports);
18
18
  __exportStar(require("./PaginatedObject"), exports);
19
19
  __exportStar(require("./PaginatedSaleOfferStatistics"), exports);
20
20
  __exportStar(require("./PaginatedSaleOfferStatisticsAllOf"), exports);
21
+ __exportStar(require("./PaginatedUserStatistics"), exports);
22
+ __exportStar(require("./PaginatedUserStatisticsAllOf"), exports);
21
23
  __exportStar(require("./PagingMetadata"), exports);
22
24
  __exportStar(require("./RestError"), exports);
23
25
  __exportStar(require("./SaleOfferStatistic"), exports);
24
26
  __exportStar(require("./UserLink"), exports);
25
27
  __exportStar(require("./UserLinkAllOf"), exports);
28
+ __exportStar(require("./UserStatistic"), exports);
@@ -19,6 +19,7 @@ import { UserDelegatedServices } from './UserDelegatedServices';
19
19
  import { UserJournal } from './UserJournal';
20
20
  import { UserMangopayTarget } from './UserMangopayTarget';
21
21
  import { UserRole } from './UserRole';
22
+ import { UserStatisticLink } from './UserStatisticLink';
22
23
  import { UserThreads } from './UserThreads';
23
24
  import { UserWallets } from './UserWallets';
24
25
  /**
@@ -291,6 +292,12 @@ export interface User {
291
292
  * @memberof User
292
293
  */
293
294
  journal?: UserJournal;
295
+ /**
296
+ *
297
+ * @type {UserStatisticLink}
298
+ * @memberof User
299
+ */
300
+ statistic?: UserStatisticLink;
294
301
  }
295
302
  export declare function UserFromJSON(json: any): User;
296
303
  export declare function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User;
@@ -25,6 +25,7 @@ var UserDelegatedServices_1 = require("./UserDelegatedServices");
25
25
  var UserJournal_1 = require("./UserJournal");
26
26
  var UserMangopayTarget_1 = require("./UserMangopayTarget");
27
27
  var UserRole_1 = require("./UserRole");
28
+ var UserStatisticLink_1 = require("./UserStatisticLink");
28
29
  var UserThreads_1 = require("./UserThreads");
29
30
  var UserWallets_1 = require("./UserWallets");
30
31
  function UserFromJSON(json) {
@@ -80,6 +81,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
80
81
  'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
81
82
  'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
82
83
  'journal': !(0, runtime_1.exists)(json, 'journal') ? undefined : (0, UserJournal_1.UserJournalFromJSON)(json['journal']),
84
+ 'statistic': !(0, runtime_1.exists)(json, 'statistic') ? undefined : (0, UserStatisticLink_1.UserStatisticLinkFromJSON)(json['statistic']),
83
85
  };
84
86
  }
85
87
  exports.UserFromJSONTyped = UserFromJSONTyped;
@@ -135,6 +137,7 @@ function UserToJSON(value) {
135
137
  'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
136
138
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
137
139
  'journal': (0, UserJournal_1.UserJournalToJSON)(value.journal),
140
+ 'statistic': (0, UserStatisticLink_1.UserStatisticLinkToJSON)(value.statistic),
138
141
  };
139
142
  }
140
143
  exports.UserToJSON = UserToJSON;
@@ -0,0 +1,58 @@
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 { HttpLink } from './HttpLink';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UserStatisticLink
17
+ */
18
+ export interface UserStatisticLink extends HttpLink {
19
+ /**
20
+ * Number of sale during lifespan of this sale offer
21
+ * @type {number}
22
+ * @memberof UserStatisticLink
23
+ */
24
+ numberOfSales?: number;
25
+ /**
26
+ * Error rate of sales
27
+ * @type {number}
28
+ * @memberof UserStatisticLink
29
+ */
30
+ salesErrorRate?: number;
31
+ /**
32
+ * Rate of canceled sales
33
+ * @type {number}
34
+ * @memberof UserStatisticLink
35
+ */
36
+ salesCanceledRate?: number;
37
+ /**
38
+ * Rate of sales in litigation
39
+ * @type {number}
40
+ * @memberof UserStatisticLink
41
+ */
42
+ salesLitigationRate?: number;
43
+ /**
44
+ * Average delay of responsiveness for sales
45
+ * @type {number}
46
+ * @memberof UserStatisticLink
47
+ */
48
+ salesResponsivenessDelay?: number;
49
+ /**
50
+ * Average delay of delivery for sales
51
+ * @type {number}
52
+ * @memberof UserStatisticLink
53
+ */
54
+ deliveryDelay?: number;
55
+ }
56
+ export declare function UserStatisticLinkFromJSON(json: any): UserStatisticLink;
57
+ export declare function UserStatisticLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStatisticLink;
58
+ export declare function UserStatisticLinkToJSON(value?: UserStatisticLink | null): any;
@@ -0,0 +1,50 @@
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
+ 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.UserStatisticLinkToJSON = exports.UserStatisticLinkFromJSONTyped = exports.UserStatisticLinkFromJSON = void 0;
28
+ var runtime_1 = require("../runtime");
29
+ var HttpLink_1 = require("./HttpLink");
30
+ function UserStatisticLinkFromJSON(json) {
31
+ return UserStatisticLinkFromJSONTyped(json, false);
32
+ }
33
+ exports.UserStatisticLinkFromJSON = UserStatisticLinkFromJSON;
34
+ function UserStatisticLinkFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'numberOfSales': !(0, runtime_1.exists)(json, 'numberOfSales') ? undefined : json['numberOfSales'], 'salesErrorRate': !(0, runtime_1.exists)(json, 'salesErrorRate') ? undefined : json['salesErrorRate'], 'salesCanceledRate': !(0, runtime_1.exists)(json, 'salesCanceledRate') ? undefined : json['salesCanceledRate'], 'salesLitigationRate': !(0, runtime_1.exists)(json, 'salesLitigationRate') ? undefined : json['salesLitigationRate'], 'salesResponsivenessDelay': !(0, runtime_1.exists)(json, 'salesResponsivenessDelay') ? undefined : json['salesResponsivenessDelay'], 'deliveryDelay': !(0, runtime_1.exists)(json, 'deliveryDelay') ? undefined : json['deliveryDelay'] });
39
+ }
40
+ exports.UserStatisticLinkFromJSONTyped = UserStatisticLinkFromJSONTyped;
41
+ function UserStatisticLinkToJSON(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)), { 'numberOfSales': value.numberOfSales, 'salesErrorRate': value.salesErrorRate, 'salesCanceledRate': value.salesCanceledRate, 'salesLitigationRate': value.salesLitigationRate, 'salesResponsivenessDelay': value.salesResponsivenessDelay, 'deliveryDelay': value.deliveryDelay });
49
+ }
50
+ exports.UserStatisticLinkToJSON = UserStatisticLinkToJSON;
@@ -0,0 +1,57 @@
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 UserStatisticLinkAllOf
16
+ */
17
+ export interface UserStatisticLinkAllOf {
18
+ /**
19
+ * Number of sale during lifespan of this sale offer
20
+ * @type {number}
21
+ * @memberof UserStatisticLinkAllOf
22
+ */
23
+ numberOfSales?: number;
24
+ /**
25
+ * Error rate of sales
26
+ * @type {number}
27
+ * @memberof UserStatisticLinkAllOf
28
+ */
29
+ salesErrorRate?: number;
30
+ /**
31
+ * Rate of canceled sales
32
+ * @type {number}
33
+ * @memberof UserStatisticLinkAllOf
34
+ */
35
+ salesCanceledRate?: number;
36
+ /**
37
+ * Rate of sales in litigation
38
+ * @type {number}
39
+ * @memberof UserStatisticLinkAllOf
40
+ */
41
+ salesLitigationRate?: number;
42
+ /**
43
+ * Average delay of responsiveness for sales
44
+ * @type {number}
45
+ * @memberof UserStatisticLinkAllOf
46
+ */
47
+ salesResponsivenessDelay?: number;
48
+ /**
49
+ * Average delay of delivery for sales
50
+ * @type {number}
51
+ * @memberof UserStatisticLinkAllOf
52
+ */
53
+ deliveryDelay?: number;
54
+ }
55
+ export declare function UserStatisticLinkAllOfFromJSON(json: any): UserStatisticLinkAllOf;
56
+ export declare function UserStatisticLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStatisticLinkAllOf;
57
+ export declare function UserStatisticLinkAllOfToJSON(value?: UserStatisticLinkAllOf | null): any;
@@ -0,0 +1,52 @@
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.UserStatisticLinkAllOfToJSON = exports.UserStatisticLinkAllOfFromJSONTyped = exports.UserStatisticLinkAllOfFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function UserStatisticLinkAllOfFromJSON(json) {
19
+ return UserStatisticLinkAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.UserStatisticLinkAllOfFromJSON = UserStatisticLinkAllOfFromJSON;
22
+ function UserStatisticLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'numberOfSales': !(0, runtime_1.exists)(json, 'numberOfSales') ? undefined : json['numberOfSales'],
28
+ 'salesErrorRate': !(0, runtime_1.exists)(json, 'salesErrorRate') ? undefined : json['salesErrorRate'],
29
+ 'salesCanceledRate': !(0, runtime_1.exists)(json, 'salesCanceledRate') ? undefined : json['salesCanceledRate'],
30
+ 'salesLitigationRate': !(0, runtime_1.exists)(json, 'salesLitigationRate') ? undefined : json['salesLitigationRate'],
31
+ 'salesResponsivenessDelay': !(0, runtime_1.exists)(json, 'salesResponsivenessDelay') ? undefined : json['salesResponsivenessDelay'],
32
+ 'deliveryDelay': !(0, runtime_1.exists)(json, 'deliveryDelay') ? undefined : json['deliveryDelay'],
33
+ };
34
+ }
35
+ exports.UserStatisticLinkAllOfFromJSONTyped = UserStatisticLinkAllOfFromJSONTyped;
36
+ function UserStatisticLinkAllOfToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'numberOfSales': value.numberOfSales,
45
+ 'salesErrorRate': value.salesErrorRate,
46
+ 'salesCanceledRate': value.salesCanceledRate,
47
+ 'salesLitigationRate': value.salesLitigationRate,
48
+ 'salesResponsivenessDelay': value.salesResponsivenessDelay,
49
+ 'deliveryDelay': value.deliveryDelay,
50
+ };
51
+ }
52
+ exports.UserStatisticLinkAllOfToJSON = UserStatisticLinkAllOfToJSON;
@@ -51,6 +51,8 @@ export * from './UserRuleAttributeEnum';
51
51
  export * from './UserRuleComparatorEnum';
52
52
  export * from './UserRuleCreationParameters';
53
53
  export * from './UserSocialNetwork';
54
+ export * from './UserStatisticLink';
55
+ export * from './UserStatisticLinkAllOf';
54
56
  export * from './UserThreads';
55
57
  export * from './UserUpdateParameters';
56
58
  export * from './UserWalletLink';
@@ -67,6 +67,8 @@ __exportStar(require("./UserRuleAttributeEnum"), exports);
67
67
  __exportStar(require("./UserRuleComparatorEnum"), exports);
68
68
  __exportStar(require("./UserRuleCreationParameters"), exports);
69
69
  __exportStar(require("./UserSocialNetwork"), exports);
70
+ __exportStar(require("./UserStatisticLink"), exports);
71
+ __exportStar(require("./UserStatisticLinkAllOf"), exports);
70
72
  __exportStar(require("./UserThreads"), exports);
71
73
  __exportStar(require("./UserUpdateParameters"), exports);
72
74
  __exportStar(require("./UserWalletLink"), exports);