@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
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.8247649388",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -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);
@@ -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,52 +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 { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
- import { PaginatedSaleOfferStatistics, SaleOfferStatistic } from '../models';
14
- export interface GetSaleOfferStatisticRequest {
15
- saleOfferStatisticId: string;
16
- }
17
- export interface GetSaleOfferStatisticsRequest {
18
- refEq?: Array<string>;
19
- oEq?: Array<number>;
20
- orderBy?: Array<GetSaleOfferStatisticsOrderByEnum>;
21
- p?: number;
22
- pp?: number;
23
- }
24
- /**
25
- * no description
26
- */
27
- export declare class SearchSaleOfferStatisticsApi extends BaseAPI {
28
- /**
29
- * Get a sale offer statistic
30
- */
31
- getSaleOfferStatisticRaw(requestParameters: GetSaleOfferStatisticRequest): Promise<ApiResponse<SaleOfferStatistic | BlobWithMeta>>;
32
- /**
33
- * Get a sale offer statistic
34
- */
35
- getSaleOfferStatistic(requestParameters: GetSaleOfferStatisticRequest): Promise<SaleOfferStatistic | BlobWithMeta>;
36
- /**
37
- * Search sale offers statistics
38
- */
39
- getSaleOfferStatisticsRaw(requestParameters: GetSaleOfferStatisticsRequest): Promise<ApiResponse<PaginatedSaleOfferStatistics | BlobWithMeta>>;
40
- /**
41
- * Search sale offers statistics
42
- */
43
- getSaleOfferStatistics(requestParameters: GetSaleOfferStatisticsRequest): Promise<PaginatedSaleOfferStatistics | BlobWithMeta>;
44
- }
45
- /**
46
- * @export
47
- * @enum {string}
48
- */
49
- export declare enum GetSaleOfferStatisticsOrderByEnum {
50
- Asc = "REFERENCE:asc",
51
- Desc = "REFERENCE:desc"
52
- }
@@ -1,263 +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.GetSaleOfferStatisticsOrderByEnum = exports.SearchSaleOfferStatisticsApi = void 0;
68
- var runtime_1 = require("../runtime");
69
- var models_1 = require("../models");
70
- /**
71
- * no description
72
- */
73
- var SearchSaleOfferStatisticsApi = /** @class */ (function (_super) {
74
- __extends(SearchSaleOfferStatisticsApi, _super);
75
- function SearchSaleOfferStatisticsApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * Get a sale offer statistic
80
- */
81
- SearchSaleOfferStatisticsApi.prototype.getSaleOfferStatisticRaw = 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.saleOfferStatisticId === null || requestParameters.saleOfferStatisticId === undefined) {
88
- throw new runtime_1.RequiredError('saleOfferStatisticId', 'Required parameter requestParameters.saleOfferStatisticId was null or undefined when calling getSaleOfferStatistic.');
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: "/sale-offer-statistics/{saleOfferStatisticId}".replace("{".concat("saleOfferStatisticId", "}"), encodeURIComponent(String(requestParameters.saleOfferStatisticId))),
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.SaleOfferStatisticFromJSON)(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 sale offer statistic
144
- */
145
- SearchSaleOfferStatisticsApi.prototype.getSaleOfferStatistic = 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.getSaleOfferStatisticRaw(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 sale offers statistics
161
- */
162
- SearchSaleOfferStatisticsApi.prototype.getSaleOfferStatisticsRaw = 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.refEq) {
170
- queryParameters['ref[eq]'] = requestParameters.refEq;
171
- }
172
- if (requestParameters.oEq) {
173
- queryParameters['o[eq]'] = requestParameters.oEq;
174
- }
175
- if (requestParameters.orderBy) {
176
- queryParameters['orderBy'] = requestParameters.orderBy;
177
- }
178
- if (requestParameters.p !== undefined) {
179
- queryParameters['p'] = requestParameters.p;
180
- }
181
- if (requestParameters.pp !== undefined) {
182
- queryParameters['pp'] = requestParameters.pp;
183
- }
184
- headerParameters = {};
185
- if (this.configuration && this.configuration.apiKey) {
186
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
187
- }
188
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
189
- token = this.configuration.accessToken;
190
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
191
- return [4 /*yield*/, token("bearerAuth", [])];
192
- case 1:
193
- _a = _b.sent();
194
- return [3 /*break*/, 3];
195
- case 2:
196
- _a = token;
197
- _b.label = 3;
198
- case 3:
199
- tokenString = _a;
200
- if (tokenString) {
201
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
202
- }
203
- _b.label = 4;
204
- case 4:
205
- _b.trys.push([4, 6, , 7]);
206
- return [4 /*yield*/, this.request({
207
- path: "/sale-offer-statistics",
208
- method: 'GET',
209
- headers: headerParameters,
210
- query: queryParameters,
211
- })];
212
- case 5:
213
- response = _b.sent();
214
- contentType = response.headers.get("content-type");
215
- if (contentType && contentType.indexOf("application/json") !== -1) {
216
- return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedSaleOfferStatisticsFromJSON)(jsonValue); })];
217
- }
218
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
219
- return [2 /*return*/, new runtime_1.TextApiResponse(response)];
220
- }
221
- else {
222
- // TODO : Better handling of others application types
223
- return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
224
- }
225
- return [3 /*break*/, 7];
226
- case 6:
227
- response_2 = _b.sent();
228
- console.debug(response_2);
229
- throw response_2;
230
- case 7: return [2 /*return*/];
231
- }
232
- });
233
- });
234
- };
235
- /**
236
- * Search sale offers statistics
237
- */
238
- SearchSaleOfferStatisticsApi.prototype.getSaleOfferStatistics = function (requestParameters) {
239
- return __awaiter(this, void 0, void 0, function () {
240
- var response;
241
- return __generator(this, function (_a) {
242
- switch (_a.label) {
243
- case 0: return [4 /*yield*/, this.getSaleOfferStatisticsRaw(requestParameters)];
244
- case 1:
245
- response = _a.sent();
246
- return [4 /*yield*/, response.value()];
247
- case 2: return [2 /*return*/, _a.sent()];
248
- }
249
- });
250
- });
251
- };
252
- return SearchSaleOfferStatisticsApi;
253
- }(runtime_1.BaseAPI));
254
- exports.SearchSaleOfferStatisticsApi = SearchSaleOfferStatisticsApi;
255
- /**
256
- * @export
257
- * @enum {string}
258
- */
259
- var GetSaleOfferStatisticsOrderByEnum;
260
- (function (GetSaleOfferStatisticsOrderByEnum) {
261
- GetSaleOfferStatisticsOrderByEnum["Asc"] = "REFERENCE:asc";
262
- GetSaleOfferStatisticsOrderByEnum["Desc"] = "REFERENCE:desc";
263
- })(GetSaleOfferStatisticsOrderByEnum = exports.GetSaleOfferStatisticsOrderByEnum || (exports.GetSaleOfferStatisticsOrderByEnum = {}));
@@ -1 +0,0 @@
1
- export * from './SearchSaleOfferStatisticsApi';
@@ -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("./SearchSaleOfferStatisticsApi"), exports);
@@ -1,3 +0,0 @@
1
- export * from './runtime';
2
- export * from './apis';
3
- export * from './models';