@randock/nameshift-api-client 0.0.370 → 0.0.372

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.
@@ -98,6 +98,7 @@ src/models/AuctionDurationDto.ts
98
98
  src/models/AuctionListItemDto.ts
99
99
  src/models/AuctionListItemDtoDomainInformation.ts
100
100
  src/models/AuctionListItemDtoSellerAccount.ts
101
+ src/models/AuctionsStatsDto.ts
101
102
  src/models/BadRequestException.ts
102
103
  src/models/BatchDeleteBuyerLeadsInput.ts
103
104
  src/models/BatchImportPreviewDto.ts
@@ -157,6 +158,7 @@ src/models/CommissionPercentageRangeInput.ts
157
158
  src/models/CommissionReasonConfigDto.ts
158
159
  src/models/CommissionReasonConfigDtoPayload.ts
159
160
  src/models/CommissionReasonDto.ts
161
+ src/models/CommissionsStatsDto.ts
160
162
  src/models/CompanyInformationDto.ts
161
163
  src/models/CompanyTaxIdDto.ts
162
164
  src/models/ConcreteDomainTransferTaskData.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.370
1
+ ## @randock/nameshift-api-client@0.0.372
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.370 --save
39
+ npm install @randock/nameshift-api-client@0.0.372 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 7439ee22b39e492cab8e736c7715148f5de25ee6aef25885a3afe3dc313e6ce23daf25f37f7226374939be6b683042a8
47
+ e69ff99439309b5e525c109e7f4008f2f1cf490299a5c1d3e650bd08000e22486eda11bb61fbf4a942fd80c148f53444
@@ -9,8 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { CommissionsStatsDto } from './CommissionsStatsDto';
12
13
  import type { AccountsStatsDto } from './AccountsStatsDto';
13
14
  import type { AffiliatesStatsDto } from './AffiliatesStatsDto';
15
+ import type { AuctionsStatsDto } from './AuctionsStatsDto';
14
16
  import type { AccountCountryStatsDto } from './AccountCountryStatsDto';
15
17
  import type { PaymentMethodsStatsDto } from './PaymentMethodsStatsDto';
16
18
  import type { TopSellerAccountDto } from './TopSellerAccountDto';
@@ -50,6 +52,30 @@ export interface AdminDashboardStatsDto {
50
52
  * @memberof AdminDashboardStatsDto
51
53
  */
52
54
  topSellerAccounts: Array<TopSellerAccountDto>;
55
+ /**
56
+ * Total number of invoices with target buyer (with Bait state condition)
57
+ * @type {number}
58
+ * @memberof AdminDashboardStatsDto
59
+ */
60
+ totalSalesNumber: number;
61
+ /**
62
+ * Average price of sale in EUR for invoices paid with target buyer
63
+ * @type {number}
64
+ * @memberof AdminDashboardStatsDto
65
+ */
66
+ averageSalePriceEur: number;
67
+ /**
68
+ * Commissions statistics
69
+ * @type {CommissionsStatsDto}
70
+ * @memberof AdminDashboardStatsDto
71
+ */
72
+ commissions: CommissionsStatsDto;
73
+ /**
74
+ * Auctions statistics
75
+ * @type {AuctionsStatsDto}
76
+ * @memberof AdminDashboardStatsDto
77
+ */
78
+ auctions: AuctionsStatsDto;
53
79
  }
54
80
  /**
55
81
  * Check if a given object implements the AdminDashboardStatsDto interface.
@@ -18,8 +18,10 @@ exports.AdminDashboardStatsDtoFromJSON = AdminDashboardStatsDtoFromJSON;
18
18
  exports.AdminDashboardStatsDtoFromJSONTyped = AdminDashboardStatsDtoFromJSONTyped;
19
19
  exports.AdminDashboardStatsDtoToJSON = AdminDashboardStatsDtoToJSON;
20
20
  exports.AdminDashboardStatsDtoToJSONTyped = AdminDashboardStatsDtoToJSONTyped;
21
+ var CommissionsStatsDto_1 = require("./CommissionsStatsDto");
21
22
  var AccountsStatsDto_1 = require("./AccountsStatsDto");
22
23
  var AffiliatesStatsDto_1 = require("./AffiliatesStatsDto");
24
+ var AuctionsStatsDto_1 = require("./AuctionsStatsDto");
23
25
  var AccountCountryStatsDto_1 = require("./AccountCountryStatsDto");
24
26
  var PaymentMethodsStatsDto_1 = require("./PaymentMethodsStatsDto");
25
27
  var TopSellerAccountDto_1 = require("./TopSellerAccountDto");
@@ -37,6 +39,14 @@ function instanceOfAdminDashboardStatsDto(value) {
37
39
  return false;
38
40
  if (!('topSellerAccounts' in value) || value['topSellerAccounts'] === undefined)
39
41
  return false;
42
+ if (!('totalSalesNumber' in value) || value['totalSalesNumber'] === undefined)
43
+ return false;
44
+ if (!('averageSalePriceEur' in value) || value['averageSalePriceEur'] === undefined)
45
+ return false;
46
+ if (!('commissions' in value) || value['commissions'] === undefined)
47
+ return false;
48
+ if (!('auctions' in value) || value['auctions'] === undefined)
49
+ return false;
40
50
  return true;
41
51
  }
42
52
  function AdminDashboardStatsDtoFromJSON(json) {
@@ -52,6 +62,10 @@ function AdminDashboardStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
52
62
  'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoFromJSON)(json['accounts']),
53
63
  'accountCountries': (json['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoFromJSON)),
54
64
  'topSellerAccounts': (json['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoFromJSON)),
65
+ 'totalSalesNumber': json['totalSalesNumber'],
66
+ 'averageSalePriceEur': json['averageSalePriceEur'],
67
+ 'commissions': (0, CommissionsStatsDto_1.CommissionsStatsDtoFromJSON)(json['commissions']),
68
+ 'auctions': (0, AuctionsStatsDto_1.AuctionsStatsDtoFromJSON)(json['auctions']),
55
69
  };
56
70
  }
57
71
  function AdminDashboardStatsDtoToJSON(json) {
@@ -68,5 +82,9 @@ function AdminDashboardStatsDtoToJSONTyped(value, ignoreDiscriminator) {
68
82
  'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoToJSON)(value['accounts']),
69
83
  'accountCountries': (value['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoToJSON)),
70
84
  'topSellerAccounts': (value['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoToJSON)),
85
+ 'totalSalesNumber': value['totalSalesNumber'],
86
+ 'averageSalePriceEur': value['averageSalePriceEur'],
87
+ 'commissions': (0, CommissionsStatsDto_1.CommissionsStatsDtoToJSON)(value['commissions']),
88
+ 'auctions': (0, AuctionsStatsDto_1.AuctionsStatsDtoToJSON)(value['auctions']),
71
89
  };
72
90
  }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
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 AuctionsStatsDto
16
+ */
17
+ export interface AuctionsStatsDto {
18
+ /**
19
+ * Number of auctions for which the seller has paid (auctions with account payment)
20
+ * @type {number}
21
+ * @memberof AuctionsStatsDto
22
+ */
23
+ paidAuctionsCount: number;
24
+ /**
25
+ * Total number of auctions created
26
+ * @type {number}
27
+ * @memberof AuctionsStatsDto
28
+ */
29
+ totalAuctionsCount: number;
30
+ /**
31
+ * Number of finished auctions that ended with a sale (had a bid)
32
+ * @type {number}
33
+ * @memberof AuctionsStatsDto
34
+ */
35
+ finishedAuctionsWithSaleCount: number;
36
+ /**
37
+ * Number of finished auctions that ended without a sale (no bid)
38
+ * @type {number}
39
+ * @memberof AuctionsStatsDto
40
+ */
41
+ finishedAuctionsWithoutSaleCount: number;
42
+ /**
43
+ * Total number of distinct accounts that use paid auctions
44
+ * @type {number}
45
+ * @memberof AuctionsStatsDto
46
+ */
47
+ accountsUsingPaidAuctionsCount: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AuctionsStatsDto interface.
51
+ */
52
+ export declare function instanceOfAuctionsStatsDto(value: object): value is AuctionsStatsDto;
53
+ export declare function AuctionsStatsDtoFromJSON(json: any): AuctionsStatsDto;
54
+ export declare function AuctionsStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionsStatsDto;
55
+ export declare function AuctionsStatsDtoToJSON(json: any): AuctionsStatsDto;
56
+ export declare function AuctionsStatsDtoToJSONTyped(value?: AuctionsStatsDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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.instanceOfAuctionsStatsDto = instanceOfAuctionsStatsDto;
17
+ exports.AuctionsStatsDtoFromJSON = AuctionsStatsDtoFromJSON;
18
+ exports.AuctionsStatsDtoFromJSONTyped = AuctionsStatsDtoFromJSONTyped;
19
+ exports.AuctionsStatsDtoToJSON = AuctionsStatsDtoToJSON;
20
+ exports.AuctionsStatsDtoToJSONTyped = AuctionsStatsDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuctionsStatsDto interface.
23
+ */
24
+ function instanceOfAuctionsStatsDto(value) {
25
+ if (!('paidAuctionsCount' in value) || value['paidAuctionsCount'] === undefined)
26
+ return false;
27
+ if (!('totalAuctionsCount' in value) || value['totalAuctionsCount'] === undefined)
28
+ return false;
29
+ if (!('finishedAuctionsWithSaleCount' in value) || value['finishedAuctionsWithSaleCount'] === undefined)
30
+ return false;
31
+ if (!('finishedAuctionsWithoutSaleCount' in value) || value['finishedAuctionsWithoutSaleCount'] === undefined)
32
+ return false;
33
+ if (!('accountsUsingPaidAuctionsCount' in value) || value['accountsUsingPaidAuctionsCount'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function AuctionsStatsDtoFromJSON(json) {
38
+ return AuctionsStatsDtoFromJSONTyped(json, false);
39
+ }
40
+ function AuctionsStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'paidAuctionsCount': json['paidAuctionsCount'],
46
+ 'totalAuctionsCount': json['totalAuctionsCount'],
47
+ 'finishedAuctionsWithSaleCount': json['finishedAuctionsWithSaleCount'],
48
+ 'finishedAuctionsWithoutSaleCount': json['finishedAuctionsWithoutSaleCount'],
49
+ 'accountsUsingPaidAuctionsCount': json['accountsUsingPaidAuctionsCount'],
50
+ };
51
+ }
52
+ function AuctionsStatsDtoToJSON(json) {
53
+ return AuctionsStatsDtoToJSONTyped(json, false);
54
+ }
55
+ function AuctionsStatsDtoToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'paidAuctionsCount': value['paidAuctionsCount'],
62
+ 'totalAuctionsCount': value['totalAuctionsCount'],
63
+ 'finishedAuctionsWithSaleCount': value['finishedAuctionsWithSaleCount'],
64
+ 'finishedAuctionsWithoutSaleCount': value['finishedAuctionsWithoutSaleCount'],
65
+ 'accountsUsingPaidAuctionsCount': value['accountsUsingPaidAuctionsCount'],
66
+ };
67
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
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 CommissionsStatsDto
16
+ */
17
+ export interface CommissionsStatsDto {
18
+ /**
19
+ * Average commission percentage of all invoices with target seller that have commission greater than zero and are paid
20
+ * @type {number}
21
+ * @memberof CommissionsStatsDto
22
+ */
23
+ averagePercentage: number;
24
+ /**
25
+ * Commission percentage that is repeated the most in invoices issued with target Seller
26
+ * @type {number}
27
+ * @memberof CommissionsStatsDto
28
+ */
29
+ mostRepeatedPercentage: number | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CommissionsStatsDto interface.
33
+ */
34
+ export declare function instanceOfCommissionsStatsDto(value: object): value is CommissionsStatsDto;
35
+ export declare function CommissionsStatsDtoFromJSON(json: any): CommissionsStatsDto;
36
+ export declare function CommissionsStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionsStatsDto;
37
+ export declare function CommissionsStatsDtoToJSON(json: any): CommissionsStatsDto;
38
+ export declare function CommissionsStatsDtoToJSONTyped(value?: CommissionsStatsDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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.instanceOfCommissionsStatsDto = instanceOfCommissionsStatsDto;
17
+ exports.CommissionsStatsDtoFromJSON = CommissionsStatsDtoFromJSON;
18
+ exports.CommissionsStatsDtoFromJSONTyped = CommissionsStatsDtoFromJSONTyped;
19
+ exports.CommissionsStatsDtoToJSON = CommissionsStatsDtoToJSON;
20
+ exports.CommissionsStatsDtoToJSONTyped = CommissionsStatsDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CommissionsStatsDto interface.
23
+ */
24
+ function instanceOfCommissionsStatsDto(value) {
25
+ if (!('averagePercentage' in value) || value['averagePercentage'] === undefined)
26
+ return false;
27
+ if (!('mostRepeatedPercentage' in value) || value['mostRepeatedPercentage'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CommissionsStatsDtoFromJSON(json) {
32
+ return CommissionsStatsDtoFromJSONTyped(json, false);
33
+ }
34
+ function CommissionsStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'averagePercentage': json['averagePercentage'],
40
+ 'mostRepeatedPercentage': json['mostRepeatedPercentage'],
41
+ };
42
+ }
43
+ function CommissionsStatsDtoToJSON(json) {
44
+ return CommissionsStatsDtoToJSONTyped(json, false);
45
+ }
46
+ function CommissionsStatsDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'averagePercentage': value['averagePercentage'],
53
+ 'mostRepeatedPercentage': value['mostRepeatedPercentage'],
54
+ };
55
+ }
@@ -112,6 +112,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
112
112
  readonly NOTIFICATIONS_MANAGER: "NOTIFICATIONS_MANAGER";
113
113
  readonly DOMAIN_AUCTIONS: "DOMAIN_AUCTIONS";
114
114
  readonly CRYPTO_PAYMENT_METHOD: "CRYPTO_PAYMENT_METHOD";
115
+ readonly QUADERNO_TAXES: "QUADERNO_TAXES";
115
116
  };
116
117
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
117
118
  /**
@@ -42,7 +42,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
42
42
  SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT',
43
43
  NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER',
44
44
  DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
45
- CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD'
45
+ CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
46
+ QUADERNO_TAXES: 'QUADERNO_TAXES'
46
47
  };
47
48
  /**
48
49
  * Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
@@ -118,6 +118,7 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
118
118
  readonly NOTIFICATIONS_MANAGER: "NOTIFICATIONS_MANAGER";
119
119
  readonly DOMAIN_AUCTIONS: "DOMAIN_AUCTIONS";
120
120
  readonly CRYPTO_PAYMENT_METHOD: "CRYPTO_PAYMENT_METHOD";
121
+ readonly QUADERNO_TAXES: "QUADERNO_TAXES";
121
122
  };
122
123
  export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
123
124
  /**
@@ -42,7 +42,8 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
42
42
  SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT',
43
43
  NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER',
44
44
  DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
45
- CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD'
45
+ CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
46
+ QUADERNO_TAXES: 'QUADERNO_TAXES'
46
47
  };
47
48
  /**
48
49
  * Check if a given object implements the PrivateAccountGetMeResponse interface.
@@ -63,6 +63,7 @@ export * from './AuctionDurationDto';
63
63
  export * from './AuctionListItemDto';
64
64
  export * from './AuctionListItemDtoDomainInformation';
65
65
  export * from './AuctionListItemDtoSellerAccount';
66
+ export * from './AuctionsStatsDto';
66
67
  export * from './BadRequestException';
67
68
  export * from './BatchDeleteBuyerLeadsInput';
68
69
  export * from './BatchImportPreviewDto';
@@ -122,6 +123,7 @@ export * from './CommissionPercentageRangeInput';
122
123
  export * from './CommissionReasonConfigDto';
123
124
  export * from './CommissionReasonConfigDtoPayload';
124
125
  export * from './CommissionReasonDto';
126
+ export * from './CommissionsStatsDto';
125
127
  export * from './CompanyInformationDto';
126
128
  export * from './CompanyTaxIdDto';
127
129
  export * from './ConcreteDomainTransferTaskData';
@@ -81,6 +81,7 @@ __exportStar(require("./AuctionDurationDto"), exports);
81
81
  __exportStar(require("./AuctionListItemDto"), exports);
82
82
  __exportStar(require("./AuctionListItemDtoDomainInformation"), exports);
83
83
  __exportStar(require("./AuctionListItemDtoSellerAccount"), exports);
84
+ __exportStar(require("./AuctionsStatsDto"), exports);
84
85
  __exportStar(require("./BadRequestException"), exports);
85
86
  __exportStar(require("./BatchDeleteBuyerLeadsInput"), exports);
86
87
  __exportStar(require("./BatchImportPreviewDto"), exports);
@@ -140,6 +141,7 @@ __exportStar(require("./CommissionPercentageRangeInput"), exports);
140
141
  __exportStar(require("./CommissionReasonConfigDto"), exports);
141
142
  __exportStar(require("./CommissionReasonConfigDtoPayload"), exports);
142
143
  __exportStar(require("./CommissionReasonDto"), exports);
144
+ __exportStar(require("./CommissionsStatsDto"), exports);
143
145
  __exportStar(require("./CompanyInformationDto"), exports);
144
146
  __exportStar(require("./CompanyTaxIdDto"), exports);
145
147
  __exportStar(require("./ConcreteDomainTransferTaskData"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.370",
3
+ "version": "0.0.372",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { CommissionsStatsDto } from './CommissionsStatsDto';
17
+ import {
18
+ CommissionsStatsDtoFromJSON,
19
+ CommissionsStatsDtoFromJSONTyped,
20
+ CommissionsStatsDtoToJSON,
21
+ CommissionsStatsDtoToJSONTyped,
22
+ } from './CommissionsStatsDto';
16
23
  import type { AccountsStatsDto } from './AccountsStatsDto';
17
24
  import {
18
25
  AccountsStatsDtoFromJSON,
@@ -27,6 +34,13 @@ import {
27
34
  AffiliatesStatsDtoToJSON,
28
35
  AffiliatesStatsDtoToJSONTyped,
29
36
  } from './AffiliatesStatsDto';
37
+ import type { AuctionsStatsDto } from './AuctionsStatsDto';
38
+ import {
39
+ AuctionsStatsDtoFromJSON,
40
+ AuctionsStatsDtoFromJSONTyped,
41
+ AuctionsStatsDtoToJSON,
42
+ AuctionsStatsDtoToJSONTyped,
43
+ } from './AuctionsStatsDto';
30
44
  import type { AccountCountryStatsDto } from './AccountCountryStatsDto';
31
45
  import {
32
46
  AccountCountryStatsDtoFromJSON,
@@ -85,6 +99,30 @@ export interface AdminDashboardStatsDto {
85
99
  * @memberof AdminDashboardStatsDto
86
100
  */
87
101
  topSellerAccounts: Array<TopSellerAccountDto>;
102
+ /**
103
+ * Total number of invoices with target buyer (with Bait state condition)
104
+ * @type {number}
105
+ * @memberof AdminDashboardStatsDto
106
+ */
107
+ totalSalesNumber: number;
108
+ /**
109
+ * Average price of sale in EUR for invoices paid with target buyer
110
+ * @type {number}
111
+ * @memberof AdminDashboardStatsDto
112
+ */
113
+ averageSalePriceEur: number;
114
+ /**
115
+ * Commissions statistics
116
+ * @type {CommissionsStatsDto}
117
+ * @memberof AdminDashboardStatsDto
118
+ */
119
+ commissions: CommissionsStatsDto;
120
+ /**
121
+ * Auctions statistics
122
+ * @type {AuctionsStatsDto}
123
+ * @memberof AdminDashboardStatsDto
124
+ */
125
+ auctions: AuctionsStatsDto;
88
126
  }
89
127
 
90
128
  /**
@@ -96,6 +134,10 @@ export function instanceOfAdminDashboardStatsDto(value: object): value is AdminD
96
134
  if (!('accounts' in value) || value['accounts'] === undefined) return false;
97
135
  if (!('accountCountries' in value) || value['accountCountries'] === undefined) return false;
98
136
  if (!('topSellerAccounts' in value) || value['topSellerAccounts'] === undefined) return false;
137
+ if (!('totalSalesNumber' in value) || value['totalSalesNumber'] === undefined) return false;
138
+ if (!('averageSalePriceEur' in value) || value['averageSalePriceEur'] === undefined) return false;
139
+ if (!('commissions' in value) || value['commissions'] === undefined) return false;
140
+ if (!('auctions' in value) || value['auctions'] === undefined) return false;
99
141
  return true;
100
142
  }
101
143
 
@@ -114,6 +156,10 @@ export function AdminDashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminat
114
156
  'accounts': AccountsStatsDtoFromJSON(json['accounts']),
115
157
  'accountCountries': ((json['accountCountries'] as Array<any>).map(AccountCountryStatsDtoFromJSON)),
116
158
  'topSellerAccounts': ((json['topSellerAccounts'] as Array<any>).map(TopSellerAccountDtoFromJSON)),
159
+ 'totalSalesNumber': json['totalSalesNumber'],
160
+ 'averageSalePriceEur': json['averageSalePriceEur'],
161
+ 'commissions': CommissionsStatsDtoFromJSON(json['commissions']),
162
+ 'auctions': AuctionsStatsDtoFromJSON(json['auctions']),
117
163
  };
118
164
  }
119
165
 
@@ -133,6 +179,10 @@ export function AdminDashboardStatsDtoToJSONTyped(value?: AdminDashboardStatsDto
133
179
  'accounts': AccountsStatsDtoToJSON(value['accounts']),
134
180
  'accountCountries': ((value['accountCountries'] as Array<any>).map(AccountCountryStatsDtoToJSON)),
135
181
  'topSellerAccounts': ((value['topSellerAccounts'] as Array<any>).map(TopSellerAccountDtoToJSON)),
182
+ 'totalSalesNumber': value['totalSalesNumber'],
183
+ 'averageSalePriceEur': value['averageSalePriceEur'],
184
+ 'commissions': CommissionsStatsDtoToJSON(value['commissions']),
185
+ 'auctions': AuctionsStatsDtoToJSON(value['auctions']),
136
186
  };
137
187
  }
138
188
 
@@ -0,0 +1,102 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuctionsStatsDto
20
+ */
21
+ export interface AuctionsStatsDto {
22
+ /**
23
+ * Number of auctions for which the seller has paid (auctions with account payment)
24
+ * @type {number}
25
+ * @memberof AuctionsStatsDto
26
+ */
27
+ paidAuctionsCount: number;
28
+ /**
29
+ * Total number of auctions created
30
+ * @type {number}
31
+ * @memberof AuctionsStatsDto
32
+ */
33
+ totalAuctionsCount: number;
34
+ /**
35
+ * Number of finished auctions that ended with a sale (had a bid)
36
+ * @type {number}
37
+ * @memberof AuctionsStatsDto
38
+ */
39
+ finishedAuctionsWithSaleCount: number;
40
+ /**
41
+ * Number of finished auctions that ended without a sale (no bid)
42
+ * @type {number}
43
+ * @memberof AuctionsStatsDto
44
+ */
45
+ finishedAuctionsWithoutSaleCount: number;
46
+ /**
47
+ * Total number of distinct accounts that use paid auctions
48
+ * @type {number}
49
+ * @memberof AuctionsStatsDto
50
+ */
51
+ accountsUsingPaidAuctionsCount: number;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the AuctionsStatsDto interface.
56
+ */
57
+ export function instanceOfAuctionsStatsDto(value: object): value is AuctionsStatsDto {
58
+ if (!('paidAuctionsCount' in value) || value['paidAuctionsCount'] === undefined) return false;
59
+ if (!('totalAuctionsCount' in value) || value['totalAuctionsCount'] === undefined) return false;
60
+ if (!('finishedAuctionsWithSaleCount' in value) || value['finishedAuctionsWithSaleCount'] === undefined) return false;
61
+ if (!('finishedAuctionsWithoutSaleCount' in value) || value['finishedAuctionsWithoutSaleCount'] === undefined) return false;
62
+ if (!('accountsUsingPaidAuctionsCount' in value) || value['accountsUsingPaidAuctionsCount'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function AuctionsStatsDtoFromJSON(json: any): AuctionsStatsDto {
67
+ return AuctionsStatsDtoFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function AuctionsStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionsStatsDto {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'paidAuctionsCount': json['paidAuctionsCount'],
77
+ 'totalAuctionsCount': json['totalAuctionsCount'],
78
+ 'finishedAuctionsWithSaleCount': json['finishedAuctionsWithSaleCount'],
79
+ 'finishedAuctionsWithoutSaleCount': json['finishedAuctionsWithoutSaleCount'],
80
+ 'accountsUsingPaidAuctionsCount': json['accountsUsingPaidAuctionsCount'],
81
+ };
82
+ }
83
+
84
+ export function AuctionsStatsDtoToJSON(json: any): AuctionsStatsDto {
85
+ return AuctionsStatsDtoToJSONTyped(json, false);
86
+ }
87
+
88
+ export function AuctionsStatsDtoToJSONTyped(value?: AuctionsStatsDto | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'paidAuctionsCount': value['paidAuctionsCount'],
96
+ 'totalAuctionsCount': value['totalAuctionsCount'],
97
+ 'finishedAuctionsWithSaleCount': value['finishedAuctionsWithSaleCount'],
98
+ 'finishedAuctionsWithoutSaleCount': value['finishedAuctionsWithoutSaleCount'],
99
+ 'accountsUsingPaidAuctionsCount': value['accountsUsingPaidAuctionsCount'],
100
+ };
101
+ }
102
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CommissionsStatsDto
20
+ */
21
+ export interface CommissionsStatsDto {
22
+ /**
23
+ * Average commission percentage of all invoices with target seller that have commission greater than zero and are paid
24
+ * @type {number}
25
+ * @memberof CommissionsStatsDto
26
+ */
27
+ averagePercentage: number;
28
+ /**
29
+ * Commission percentage that is repeated the most in invoices issued with target Seller
30
+ * @type {number}
31
+ * @memberof CommissionsStatsDto
32
+ */
33
+ mostRepeatedPercentage: number | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CommissionsStatsDto interface.
38
+ */
39
+ export function instanceOfCommissionsStatsDto(value: object): value is CommissionsStatsDto {
40
+ if (!('averagePercentage' in value) || value['averagePercentage'] === undefined) return false;
41
+ if (!('mostRepeatedPercentage' in value) || value['mostRepeatedPercentage'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function CommissionsStatsDtoFromJSON(json: any): CommissionsStatsDto {
46
+ return CommissionsStatsDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function CommissionsStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionsStatsDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'averagePercentage': json['averagePercentage'],
56
+ 'mostRepeatedPercentage': json['mostRepeatedPercentage'],
57
+ };
58
+ }
59
+
60
+ export function CommissionsStatsDtoToJSON(json: any): CommissionsStatsDto {
61
+ return CommissionsStatsDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function CommissionsStatsDtoToJSONTyped(value?: CommissionsStatsDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'averagePercentage': value['averagePercentage'],
72
+ 'mostRepeatedPercentage': value['mostRepeatedPercentage'],
73
+ };
74
+ }
75
+
@@ -154,7 +154,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
154
154
  SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT',
155
155
  NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER',
156
156
  DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
157
- CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD'
157
+ CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
158
+ QUADERNO_TAXES: 'QUADERNO_TAXES'
158
159
  } as const;
159
160
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
160
161
 
@@ -160,7 +160,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
160
160
  SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT',
161
161
  NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER',
162
162
  DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
163
- CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD'
163
+ CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
164
+ QUADERNO_TAXES: 'QUADERNO_TAXES'
164
165
  } as const;
165
166
  export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
166
167
 
@@ -65,6 +65,7 @@ export * from './AuctionDurationDto';
65
65
  export * from './AuctionListItemDto';
66
66
  export * from './AuctionListItemDtoDomainInformation';
67
67
  export * from './AuctionListItemDtoSellerAccount';
68
+ export * from './AuctionsStatsDto';
68
69
  export * from './BadRequestException';
69
70
  export * from './BatchDeleteBuyerLeadsInput';
70
71
  export * from './BatchImportPreviewDto';
@@ -124,6 +125,7 @@ export * from './CommissionPercentageRangeInput';
124
125
  export * from './CommissionReasonConfigDto';
125
126
  export * from './CommissionReasonConfigDtoPayload';
126
127
  export * from './CommissionReasonDto';
128
+ export * from './CommissionsStatsDto';
127
129
  export * from './CompanyInformationDto';
128
130
  export * from './CompanyTaxIdDto';
129
131
  export * from './ConcreteDomainTransferTaskData';