@lcdp/api-react-rest-client 2.6.2-develop.8356314138 → 2.6.2

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 (43) hide show
  1. package/order/src/models/OrderJournal.d.ts +0 -24
  2. package/order/src/models/OrderJournal.js +0 -8
  3. package/package.json +1 -1
  4. package/sale-offer/src/models/SaleOffer.d.ts +17 -17
  5. package/sale-offer/src/models/SaleOffer.js +19 -18
  6. package/statistic/src/apis/index.d.ts +0 -1
  7. package/statistic/src/apis/index.js +0 -1
  8. package/statistic/src/models/index.d.ts +0 -3
  9. package/statistic/src/models/index.js +0 -3
  10. package/user/src/models/User.d.ts +8 -21
  11. package/user/src/models/User.js +8 -13
  12. package/user/src/models/index.d.ts +0 -2
  13. package/user/src/models/index.js +0 -2
  14. package/statistic/src/apis/SearchUserStatisticsApi.d.ts +0 -42
  15. package/statistic/src/apis/SearchUserStatisticsApi.js +0 -248
  16. package/statistic/src/models/PaginatedUserStatistics.d.ts +0 -29
  17. package/statistic/src/models/PaginatedUserStatistics.js +0 -50
  18. package/statistic/src/models/PaginatedUserStatisticsAllOf.d.ts +0 -28
  19. package/statistic/src/models/PaginatedUserStatisticsAllOf.js +0 -42
  20. package/statistic/src/models/UserStatistic.d.ts +0 -70
  21. package/statistic/src/models/UserStatistic.js +0 -57
  22. package/third-party/index.d.ts +0 -1
  23. package/third-party/index.js +0 -17
  24. package/third-party/src/apis/ManageThirdPartyLinkApi.d.ts +0 -29
  25. package/third-party/src/apis/ManageThirdPartyLinkApi.js +0 -163
  26. package/third-party/src/apis/index.d.ts +0 -1
  27. package/third-party/src/apis/index.js +0 -17
  28. package/third-party/src/index.d.ts +0 -3
  29. package/third-party/src/index.js +0 -19
  30. package/third-party/src/models/RestError.d.ts +0 -87
  31. package/third-party/src/models/RestError.js +0 -99
  32. package/third-party/src/models/ThirdPartyLink.d.ts +0 -27
  33. package/third-party/src/models/ThirdPartyLink.js +0 -42
  34. package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +0 -33
  35. package/third-party/src/models/ThirdPartyLinkCreationParameters.js +0 -43
  36. package/third-party/src/models/index.d.ts +0 -3
  37. package/third-party/src/models/index.js +0 -19
  38. package/third-party/src/runtime.d.ts +0 -149
  39. package/third-party/src/runtime.js +0 -480
  40. package/user/src/models/UserStatisticLink.d.ts +0 -58
  41. package/user/src/models/UserStatisticLink.js +0 -50
  42. package/user/src/models/UserStatisticLinkAllOf.d.ts +0 -57
  43. package/user/src/models/UserStatisticLinkAllOf.js +0 -52
@@ -1,248 +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 __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
- * Get a user statistic
80
- */
81
- SearchUserStatisticsApi.prototype.getUserStatisticRaw = 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
- if (requestParameters.userStatisticId === null || requestParameters.userStatisticId === undefined) {
88
- throw new runtime_1.RequiredError('userStatisticId', 'Required parameter requestParameters.userStatisticId was null or undefined when calling getUserStatistic.');
89
- }
90
- queryParameters = {};
91
- headerParameters = {};
92
- if (this.configuration && this.configuration.apiKey) {
93
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
94
- }
95
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
96
- token = this.configuration.accessToken;
97
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
98
- return [4 /*yield*/, token("bearerAuth", [])];
99
- case 1:
100
- _a = _b.sent();
101
- return [3 /*break*/, 3];
102
- case 2:
103
- _a = token;
104
- _b.label = 3;
105
- case 3:
106
- tokenString = _a;
107
- if (tokenString) {
108
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
109
- }
110
- _b.label = 4;
111
- case 4:
112
- _b.trys.push([4, 6, , 7]);
113
- return [4 /*yield*/, this.request({
114
- path: "/user-statistics/{userStatisticId}".replace("{".concat("userStatisticId", "}"), encodeURIComponent(String(requestParameters.userStatisticId))),
115
- method: 'GET',
116
- headers: headerParameters,
117
- query: queryParameters,
118
- })];
119
- case 5:
120
- response = _b.sent();
121
- contentType = response.headers.get("content-type");
122
- if (contentType && contentType.indexOf("application/json") !== -1) {
123
- return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.UserStatisticFromJSON)(jsonValue); })];
124
- }
125
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
126
- return [2 /*return*/, new runtime_1.TextApiResponse(response)];
127
- }
128
- else {
129
- // TODO : Better handling of others application types
130
- return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
131
- }
132
- return [3 /*break*/, 7];
133
- case 6:
134
- response_1 = _b.sent();
135
- console.debug(response_1);
136
- throw response_1;
137
- case 7: return [2 /*return*/];
138
- }
139
- });
140
- });
141
- };
142
- /**
143
- * Get a user statistic
144
- */
145
- SearchUserStatisticsApi.prototype.getUserStatistic = function (requestParameters) {
146
- return __awaiter(this, void 0, void 0, function () {
147
- var response;
148
- return __generator(this, function (_a) {
149
- switch (_a.label) {
150
- case 0: return [4 /*yield*/, this.getUserStatisticRaw(requestParameters)];
151
- case 1:
152
- response = _a.sent();
153
- return [4 /*yield*/, response.value()];
154
- case 2: return [2 /*return*/, _a.sent()];
155
- }
156
- });
157
- });
158
- };
159
- /**
160
- * Search users statistics
161
- */
162
- SearchUserStatisticsApi.prototype.getUserStatisticsRaw = function (requestParameters) {
163
- return __awaiter(this, void 0, void 0, function () {
164
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_2;
165
- return __generator(this, function (_b) {
166
- switch (_b.label) {
167
- case 0:
168
- queryParameters = {};
169
- if (requestParameters.userIdEq) {
170
- queryParameters['userId[eq]'] = requestParameters.userIdEq;
171
- }
172
- if (requestParameters.p !== undefined) {
173
- queryParameters['p'] = requestParameters.p;
174
- }
175
- if (requestParameters.pp !== undefined) {
176
- queryParameters['pp'] = requestParameters.pp;
177
- }
178
- headerParameters = {};
179
- if (this.configuration && this.configuration.apiKey) {
180
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
181
- }
182
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
183
- token = this.configuration.accessToken;
184
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
185
- return [4 /*yield*/, token("bearerAuth", [])];
186
- case 1:
187
- _a = _b.sent();
188
- return [3 /*break*/, 3];
189
- case 2:
190
- _a = token;
191
- _b.label = 3;
192
- case 3:
193
- tokenString = _a;
194
- if (tokenString) {
195
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
196
- }
197
- _b.label = 4;
198
- case 4:
199
- _b.trys.push([4, 6, , 7]);
200
- return [4 /*yield*/, this.request({
201
- path: "/user-statistics",
202
- method: 'GET',
203
- headers: headerParameters,
204
- query: queryParameters,
205
- })];
206
- case 5:
207
- response = _b.sent();
208
- contentType = response.headers.get("content-type");
209
- if (contentType && contentType.indexOf("application/json") !== -1) {
210
- return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedUserStatisticsFromJSON)(jsonValue); })];
211
- }
212
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
213
- return [2 /*return*/, new runtime_1.TextApiResponse(response)];
214
- }
215
- else {
216
- // TODO : Better handling of others application types
217
- return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
218
- }
219
- return [3 /*break*/, 7];
220
- case 6:
221
- response_2 = _b.sent();
222
- console.debug(response_2);
223
- throw response_2;
224
- case 7: return [2 /*return*/];
225
- }
226
- });
227
- });
228
- };
229
- /**
230
- * Search users statistics
231
- */
232
- SearchUserStatisticsApi.prototype.getUserStatistics = function (requestParameters) {
233
- return __awaiter(this, void 0, void 0, function () {
234
- var response;
235
- return __generator(this, function (_a) {
236
- switch (_a.label) {
237
- case 0: return [4 /*yield*/, this.getUserStatisticsRaw(requestParameters)];
238
- case 1:
239
- response = _a.sent();
240
- return [4 /*yield*/, response.value()];
241
- case 2: return [2 /*return*/, _a.sent()];
242
- }
243
- });
244
- });
245
- };
246
- return SearchUserStatisticsApi;
247
- }(runtime_1.BaseAPI));
248
- exports.SearchUserStatisticsApi = SearchUserStatisticsApi;
@@ -1,29 +0,0 @@
1
- /**
2
- * lcdp-pharmaide-service
3
- * This is the REST API of LCDP products
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { PaginatedObject } from './PaginatedObject';
13
- import { 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;
@@ -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.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;
@@ -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 { 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;
@@ -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.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;
@@ -1,70 +0,0 @@
1
- /**
2
- * lcdp-pharmaide-service
3
- * This is the REST API of LCDP products
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { UserLink } from './UserLink';
13
- /**
14
- * All these statistics are computed based on a sampling taking the last [Variable] \'user.statistics.sampling_days\' days
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 sales
33
- * @type {number}
34
- * @memberof UserStatistic
35
- */
36
- numberOfSales?: number;
37
- /**
38
- * Rate of sales that have at least one removed or refunded item
39
- * @type {number}
40
- * @memberof UserStatistic
41
- */
42
- salesErrorRate?: number;
43
- /**
44
- * Rate of sales that have been canceled, ignoring cancellation issued by the buyer without any reason
45
- * @type {number}
46
- * @memberof UserStatistic
47
- */
48
- salesCanceledRate?: number;
49
- /**
50
- * Rate of sales that are associated to a litigation
51
- * @type {number}
52
- * @memberof UserStatistic
53
- */
54
- salesLitigationRate?: number;
55
- /**
56
- * Average delay of responsiveness for sales (delay between order created by buyer and accepted/modified/canceled by seller or administrator)
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;
@@ -1,57 +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.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;
@@ -1 +0,0 @@
1
- export * from './src';
@@ -1,17 +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("./src"), exports);
@@ -1,29 +0,0 @@
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 { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
- import { ThirdPartyLink, ThirdPartyLinkCreationParameters } from '../models';
14
- export interface CreateThirdPartyLinkRequest {
15
- thirdPartyLinkCreationParameters: ThirdPartyLinkCreationParameters;
16
- }
17
- /**
18
- * no description
19
- */
20
- export declare class ManageThirdPartyLinkApi extends BaseAPI {
21
- /**
22
- * Generate link to access a third party for the user on the requested slug
23
- */
24
- createThirdPartyLinkRaw(requestParameters: CreateThirdPartyLinkRequest): Promise<ApiResponse<ThirdPartyLink | BlobWithMeta>>;
25
- /**
26
- * Generate link to access a third party for the user on the requested slug
27
- */
28
- createThirdPartyLink(requestParameters: CreateThirdPartyLinkRequest): Promise<ThirdPartyLink | BlobWithMeta>;
29
- }