@randock/nameshift-api-client 0.0.527 → 0.0.529

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.
@@ -13,6 +13,28 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { TopAffiliateSellerDto } from './TopAffiliateSellerDto';
17
+ import {
18
+ TopAffiliateSellerDtoFromJSON,
19
+ TopAffiliateSellerDtoFromJSONTyped,
20
+ TopAffiliateSellerDtoToJSON,
21
+ TopAffiliateSellerDtoToJSONTyped,
22
+ } from './TopAffiliateSellerDto';
23
+ import type { AccountCountryStatsDto } from './AccountCountryStatsDto';
24
+ import {
25
+ AccountCountryStatsDtoFromJSON,
26
+ AccountCountryStatsDtoFromJSONTyped,
27
+ AccountCountryStatsDtoToJSON,
28
+ AccountCountryStatsDtoToJSONTyped,
29
+ } from './AccountCountryStatsDto';
30
+ import type { TopSellerAccountDto } from './TopSellerAccountDto';
31
+ import {
32
+ TopSellerAccountDtoFromJSON,
33
+ TopSellerAccountDtoFromJSONTyped,
34
+ TopSellerAccountDtoToJSON,
35
+ TopSellerAccountDtoToJSONTyped,
36
+ } from './TopSellerAccountDto';
37
+
16
38
  /**
17
39
  *
18
40
  * @export
@@ -49,6 +71,24 @@ export interface AccountsStatsDto {
49
71
  * @memberof AccountsStatsDto
50
72
  */
51
73
  withDomainsVerified: number;
74
+ /**
75
+ * Number of accounts per billing country
76
+ * @type {Array<AccountCountryStatsDto>}
77
+ * @memberof AccountsStatsDto
78
+ */
79
+ countries: Array<AccountCountryStatsDto>;
80
+ /**
81
+ * Accounts with the most sold domains
82
+ * @type {Array<TopSellerAccountDto>}
83
+ * @memberof AccountsStatsDto
84
+ */
85
+ topSellers: Array<TopSellerAccountDto>;
86
+ /**
87
+ * Accounts with the most paid buyer sales that used their affiliate code
88
+ * @type {Array<TopAffiliateSellerDto>}
89
+ * @memberof AccountsStatsDto
90
+ */
91
+ topAffiliateSellers: Array<TopAffiliateSellerDto>;
52
92
  }
53
93
 
54
94
  /**
@@ -60,6 +100,9 @@ export function instanceOfAccountsStatsDto(value: object): value is AccountsStat
60
100
  if (!('withDomains' in value) || value['withDomains'] === undefined) return false;
61
101
  if (!('withDomainsPointingDns' in value) || value['withDomainsPointingDns'] === undefined) return false;
62
102
  if (!('withDomainsVerified' in value) || value['withDomainsVerified'] === undefined) return false;
103
+ if (!('countries' in value) || value['countries'] === undefined) return false;
104
+ if (!('topSellers' in value) || value['topSellers'] === undefined) return false;
105
+ if (!('topAffiliateSellers' in value) || value['topAffiliateSellers'] === undefined) return false;
63
106
  return true;
64
107
  }
65
108
 
@@ -78,6 +121,9 @@ export function AccountsStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
78
121
  'withDomains': json['withDomains'],
79
122
  'withDomainsPointingDns': json['withDomainsPointingDns'],
80
123
  'withDomainsVerified': json['withDomainsVerified'],
124
+ 'countries': ((json['countries'] as Array<any>).map(AccountCountryStatsDtoFromJSON)),
125
+ 'topSellers': ((json['topSellers'] as Array<any>).map(TopSellerAccountDtoFromJSON)),
126
+ 'topAffiliateSellers': ((json['topAffiliateSellers'] as Array<any>).map(TopAffiliateSellerDtoFromJSON)),
81
127
  };
82
128
  }
83
129
 
@@ -97,6 +143,9 @@ export function AccountsStatsDtoToJSONTyped(value?: AccountsStatsDto | null, ign
97
143
  'withDomains': value['withDomains'],
98
144
  'withDomainsPointingDns': value['withDomainsPointingDns'],
99
145
  'withDomainsVerified': value['withDomainsVerified'],
146
+ 'countries': ((value['countries'] as Array<any>).map(AccountCountryStatsDtoToJSON)),
147
+ 'topSellers': ((value['topSellers'] as Array<any>).map(TopSellerAccountDtoToJSON)),
148
+ 'topAffiliateSellers': ((value['topAffiliateSellers'] as Array<any>).map(TopAffiliateSellerDtoToJSON)),
100
149
  };
101
150
  }
102
151
 
@@ -25,6 +25,12 @@ export interface AffiliatesStatsDto {
25
25
  * @memberof AffiliatesStatsDto
26
26
  */
27
27
  accountsWithAffiliates: number;
28
+ /**
29
+ * Total number of accounts
30
+ * @type {number}
31
+ * @memberof AffiliatesStatsDto
32
+ */
33
+ totalAccounts: number;
28
34
  }
29
35
 
30
36
  /**
@@ -32,6 +38,7 @@ export interface AffiliatesStatsDto {
32
38
  */
33
39
  export function instanceOfAffiliatesStatsDto(value: object): value is AffiliatesStatsDto {
34
40
  if (!('accountsWithAffiliates' in value) || value['accountsWithAffiliates'] === undefined) return false;
41
+ if (!('totalAccounts' in value) || value['totalAccounts'] === undefined) return false;
35
42
  return true;
36
43
  }
37
44
 
@@ -46,6 +53,7 @@ export function AffiliatesStatsDtoFromJSONTyped(json: any, ignoreDiscriminator:
46
53
  return {
47
54
 
48
55
  'accountsWithAffiliates': json['accountsWithAffiliates'],
56
+ 'totalAccounts': json['totalAccounts'],
49
57
  };
50
58
  }
51
59
 
@@ -61,6 +69,7 @@ export function AffiliatesStatsDtoToJSONTyped(value?: AffiliatesStatsDto | null,
61
69
  return {
62
70
 
63
71
  'accountsWithAffiliates': value['accountsWithAffiliates'],
72
+ 'totalAccounts': value['totalAccounts'],
64
73
  };
65
74
  }
66
75
 
@@ -37,6 +37,12 @@ export interface AuctionsStatsDto {
37
37
  * @memberof AuctionsStatsDto
38
38
  */
39
39
  accountsUsingPaidAuctionsCount: number;
40
+ /**
41
+ * Total number of accounts
42
+ * @type {number}
43
+ * @memberof AuctionsStatsDto
44
+ */
45
+ totalAccounts: number;
40
46
  }
41
47
 
42
48
  /**
@@ -46,6 +52,7 @@ export function instanceOfAuctionsStatsDto(value: object): value is AuctionsStat
46
52
  if (!('paidAuctionsCount' in value) || value['paidAuctionsCount'] === undefined) return false;
47
53
  if (!('totalAuctionsCount' in value) || value['totalAuctionsCount'] === undefined) return false;
48
54
  if (!('accountsUsingPaidAuctionsCount' in value) || value['accountsUsingPaidAuctionsCount'] === undefined) return false;
55
+ if (!('totalAccounts' in value) || value['totalAccounts'] === undefined) return false;
49
56
  return true;
50
57
  }
51
58
 
@@ -62,6 +69,7 @@ export function AuctionsStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
62
69
  'paidAuctionsCount': json['paidAuctionsCount'],
63
70
  'totalAuctionsCount': json['totalAuctionsCount'],
64
71
  'accountsUsingPaidAuctionsCount': json['accountsUsingPaidAuctionsCount'],
72
+ 'totalAccounts': json['totalAccounts'],
65
73
  };
66
74
  }
67
75
 
@@ -79,6 +87,7 @@ export function AuctionsStatsDtoToJSONTyped(value?: AuctionsStatsDto | null, ign
79
87
  'paidAuctionsCount': value['paidAuctionsCount'],
80
88
  'totalAuctionsCount': value['totalAuctionsCount'],
81
89
  'accountsUsingPaidAuctionsCount': value['accountsUsingPaidAuctionsCount'],
90
+ 'totalAccounts': value['totalAccounts'],
82
91
  };
83
92
  }
84
93
 
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 SalesStatsDto
20
+ */
21
+ export interface SalesStatsDto {
22
+ /**
23
+ * Number of paid buyer invoices
24
+ * @type {number}
25
+ * @memberof SalesStatsDto
26
+ */
27
+ totalSalesNumber: number;
28
+ /**
29
+ * Average sale price in EUR of the paid buyer invoices
30
+ * @type {number}
31
+ * @memberof SalesStatsDto
32
+ */
33
+ averageSalePriceEur: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SalesStatsDto interface.
38
+ */
39
+ export function instanceOfSalesStatsDto(value: object): value is SalesStatsDto {
40
+ if (!('totalSalesNumber' in value) || value['totalSalesNumber'] === undefined) return false;
41
+ if (!('averageSalePriceEur' in value) || value['averageSalePriceEur'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SalesStatsDtoFromJSON(json: any): SalesStatsDto {
46
+ return SalesStatsDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SalesStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SalesStatsDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'totalSalesNumber': json['totalSalesNumber'],
56
+ 'averageSalePriceEur': json['averageSalePriceEur'],
57
+ };
58
+ }
59
+
60
+ export function SalesStatsDtoToJSON(json: any): SalesStatsDto {
61
+ return SalesStatsDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SalesStatsDtoToJSONTyped(value?: SalesStatsDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'totalSalesNumber': value['totalSalesNumber'],
72
+ 'averageSalePriceEur': value['averageSalePriceEur'],
73
+ };
74
+ }
75
+
@@ -67,7 +67,6 @@ export * from './AdminChallengeListDto';
67
67
  export * from './AdminChallengeListItemDto';
68
68
  export * from './AdminCompanyStatsDto';
69
69
  export * from './AdminCompanyStatsLedger';
70
- export * from './AdminDashboardStatsDto';
71
70
  export * from './AdminDomainAppraisalRequestListItemDto';
72
71
  export * from './AdminDomainListItemDto';
73
72
  export * from './AdminGetAllDomainTransfers200Response';
@@ -519,6 +518,7 @@ export * from './SalesCountCommissionPayloadDto';
519
518
  export * from './SalesCountCommissionPayloadInput';
520
519
  export * from './SalesCountCommissionPayloadSimulationInput';
521
520
  export * from './SalesCountCommissionReasonPayloadDto';
521
+ export * from './SalesStatsDto';
522
522
  export * from './SearchBankAccountInstitutionsInput';
523
523
  export * from './SecondFactorMethod';
524
524
  export * from './SellerAccountReferralListItemDto';
@@ -1,94 +0,0 @@
1
- /**
2
- * Nameshift
3
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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
- import type { CommissionsStatsDto } from './CommissionsStatsDto';
13
- import type { AccountsStatsDto } from './AccountsStatsDto';
14
- import type { TopAffiliateSellerDto } from './TopAffiliateSellerDto';
15
- import type { AffiliatesStatsDto } from './AffiliatesStatsDto';
16
- import type { AuctionsStatsDto } from './AuctionsStatsDto';
17
- import type { AccountCountryStatsDto } from './AccountCountryStatsDto';
18
- import type { PaymentMethodsStatsDto } from './PaymentMethodsStatsDto';
19
- import type { TopSellerAccountDto } from './TopSellerAccountDto';
20
- /**
21
- *
22
- * @export
23
- * @interface AdminDashboardStatsDto
24
- */
25
- export interface AdminDashboardStatsDto {
26
- /**
27
- * Payment methods statistics
28
- * @type {PaymentMethodsStatsDto}
29
- * @memberof AdminDashboardStatsDto
30
- */
31
- paymentMethods: PaymentMethodsStatsDto;
32
- /**
33
- * Affiliates statistics
34
- * @type {AffiliatesStatsDto}
35
- * @memberof AdminDashboardStatsDto
36
- */
37
- affiliates: AffiliatesStatsDto;
38
- /**
39
- * Accounts statistics
40
- * @type {AccountsStatsDto}
41
- * @memberof AdminDashboardStatsDto
42
- */
43
- accounts: AccountsStatsDto;
44
- /**
45
- * List of account countries with count
46
- * @type {Array<AccountCountryStatsDto>}
47
- * @memberof AdminDashboardStatsDto
48
- */
49
- accountCountries: Array<AccountCountryStatsDto>;
50
- /**
51
- * Top 10 accounts with most sold domains
52
- * @type {Array<TopSellerAccountDto>}
53
- * @memberof AdminDashboardStatsDto
54
- */
55
- topSellerAccounts: Array<TopSellerAccountDto>;
56
- /**
57
- * Top affiliate accounts by number of paid buyer sales that used their affiliate code
58
- * @type {Array<TopAffiliateSellerDto>}
59
- * @memberof AdminDashboardStatsDto
60
- */
61
- topAffiliateSellers: Array<TopAffiliateSellerDto>;
62
- /**
63
- * Total number of invoices with target buyer (with Bait state condition)
64
- * @type {number}
65
- * @memberof AdminDashboardStatsDto
66
- */
67
- totalSalesNumber: number;
68
- /**
69
- * Average price of sale in EUR for invoices paid with target buyer
70
- * @type {number}
71
- * @memberof AdminDashboardStatsDto
72
- */
73
- averageSalePriceEur: number;
74
- /**
75
- * Commissions statistics
76
- * @type {CommissionsStatsDto}
77
- * @memberof AdminDashboardStatsDto
78
- */
79
- commissions: CommissionsStatsDto;
80
- /**
81
- * Auctions statistics
82
- * @type {AuctionsStatsDto}
83
- * @memberof AdminDashboardStatsDto
84
- */
85
- auctions: AuctionsStatsDto;
86
- }
87
- /**
88
- * Check if a given object implements the AdminDashboardStatsDto interface.
89
- */
90
- export declare function instanceOfAdminDashboardStatsDto(value: object): value is AdminDashboardStatsDto;
91
- export declare function AdminDashboardStatsDtoFromJSON(json: any): AdminDashboardStatsDto;
92
- export declare function AdminDashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminDashboardStatsDto;
93
- export declare function AdminDashboardStatsDtoToJSON(json: any): AdminDashboardStatsDto;
94
- export declare function AdminDashboardStatsDtoToJSONTyped(value?: AdminDashboardStatsDto | null, ignoreDiscriminator?: boolean): any;
@@ -1,95 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Nameshift
6
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.instanceOfAdminDashboardStatsDto = instanceOfAdminDashboardStatsDto;
17
- exports.AdminDashboardStatsDtoFromJSON = AdminDashboardStatsDtoFromJSON;
18
- exports.AdminDashboardStatsDtoFromJSONTyped = AdminDashboardStatsDtoFromJSONTyped;
19
- exports.AdminDashboardStatsDtoToJSON = AdminDashboardStatsDtoToJSON;
20
- exports.AdminDashboardStatsDtoToJSONTyped = AdminDashboardStatsDtoToJSONTyped;
21
- var CommissionsStatsDto_1 = require("./CommissionsStatsDto");
22
- var AccountsStatsDto_1 = require("./AccountsStatsDto");
23
- var TopAffiliateSellerDto_1 = require("./TopAffiliateSellerDto");
24
- var AffiliatesStatsDto_1 = require("./AffiliatesStatsDto");
25
- var AuctionsStatsDto_1 = require("./AuctionsStatsDto");
26
- var AccountCountryStatsDto_1 = require("./AccountCountryStatsDto");
27
- var PaymentMethodsStatsDto_1 = require("./PaymentMethodsStatsDto");
28
- var TopSellerAccountDto_1 = require("./TopSellerAccountDto");
29
- /**
30
- * Check if a given object implements the AdminDashboardStatsDto interface.
31
- */
32
- function instanceOfAdminDashboardStatsDto(value) {
33
- if (!('paymentMethods' in value) || value['paymentMethods'] === undefined)
34
- return false;
35
- if (!('affiliates' in value) || value['affiliates'] === undefined)
36
- return false;
37
- if (!('accounts' in value) || value['accounts'] === undefined)
38
- return false;
39
- if (!('accountCountries' in value) || value['accountCountries'] === undefined)
40
- return false;
41
- if (!('topSellerAccounts' in value) || value['topSellerAccounts'] === undefined)
42
- return false;
43
- if (!('topAffiliateSellers' in value) || value['topAffiliateSellers'] === undefined)
44
- return false;
45
- if (!('totalSalesNumber' in value) || value['totalSalesNumber'] === undefined)
46
- return false;
47
- if (!('averageSalePriceEur' in value) || value['averageSalePriceEur'] === undefined)
48
- return false;
49
- if (!('commissions' in value) || value['commissions'] === undefined)
50
- return false;
51
- if (!('auctions' in value) || value['auctions'] === undefined)
52
- return false;
53
- return true;
54
- }
55
- function AdminDashboardStatsDtoFromJSON(json) {
56
- return AdminDashboardStatsDtoFromJSONTyped(json, false);
57
- }
58
- function AdminDashboardStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
59
- if (json == null) {
60
- return json;
61
- }
62
- return {
63
- 'paymentMethods': (0, PaymentMethodsStatsDto_1.PaymentMethodsStatsDtoFromJSON)(json['paymentMethods']),
64
- 'affiliates': (0, AffiliatesStatsDto_1.AffiliatesStatsDtoFromJSON)(json['affiliates']),
65
- 'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoFromJSON)(json['accounts']),
66
- 'accountCountries': (json['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoFromJSON)),
67
- 'topSellerAccounts': (json['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoFromJSON)),
68
- 'topAffiliateSellers': (json['topAffiliateSellers'].map(TopAffiliateSellerDto_1.TopAffiliateSellerDtoFromJSON)),
69
- 'totalSalesNumber': json['totalSalesNumber'],
70
- 'averageSalePriceEur': json['averageSalePriceEur'],
71
- 'commissions': (0, CommissionsStatsDto_1.CommissionsStatsDtoFromJSON)(json['commissions']),
72
- 'auctions': (0, AuctionsStatsDto_1.AuctionsStatsDtoFromJSON)(json['auctions']),
73
- };
74
- }
75
- function AdminDashboardStatsDtoToJSON(json) {
76
- return AdminDashboardStatsDtoToJSONTyped(json, false);
77
- }
78
- function AdminDashboardStatsDtoToJSONTyped(value, ignoreDiscriminator) {
79
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
80
- if (value == null) {
81
- return value;
82
- }
83
- return {
84
- 'paymentMethods': (0, PaymentMethodsStatsDto_1.PaymentMethodsStatsDtoToJSON)(value['paymentMethods']),
85
- 'affiliates': (0, AffiliatesStatsDto_1.AffiliatesStatsDtoToJSON)(value['affiliates']),
86
- 'accounts': (0, AccountsStatsDto_1.AccountsStatsDtoToJSON)(value['accounts']),
87
- 'accountCountries': (value['accountCountries'].map(AccountCountryStatsDto_1.AccountCountryStatsDtoToJSON)),
88
- 'topSellerAccounts': (value['topSellerAccounts'].map(TopSellerAccountDto_1.TopSellerAccountDtoToJSON)),
89
- 'topAffiliateSellers': (value['topAffiliateSellers'].map(TopAffiliateSellerDto_1.TopAffiliateSellerDtoToJSON)),
90
- 'totalSalesNumber': value['totalSalesNumber'],
91
- 'averageSalePriceEur': value['averageSalePriceEur'],
92
- 'commissions': (0, CommissionsStatsDto_1.CommissionsStatsDtoToJSON)(value['commissions']),
93
- 'auctions': (0, AuctionsStatsDto_1.AuctionsStatsDtoToJSON)(value['auctions']),
94
- };
95
- }
@@ -1,204 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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
- import type { CommissionsStatsDto } from './CommissionsStatsDto';
17
- import {
18
- CommissionsStatsDtoFromJSON,
19
- CommissionsStatsDtoFromJSONTyped,
20
- CommissionsStatsDtoToJSON,
21
- CommissionsStatsDtoToJSONTyped,
22
- } from './CommissionsStatsDto';
23
- import type { AccountsStatsDto } from './AccountsStatsDto';
24
- import {
25
- AccountsStatsDtoFromJSON,
26
- AccountsStatsDtoFromJSONTyped,
27
- AccountsStatsDtoToJSON,
28
- AccountsStatsDtoToJSONTyped,
29
- } from './AccountsStatsDto';
30
- import type { TopAffiliateSellerDto } from './TopAffiliateSellerDto';
31
- import {
32
- TopAffiliateSellerDtoFromJSON,
33
- TopAffiliateSellerDtoFromJSONTyped,
34
- TopAffiliateSellerDtoToJSON,
35
- TopAffiliateSellerDtoToJSONTyped,
36
- } from './TopAffiliateSellerDto';
37
- import type { AffiliatesStatsDto } from './AffiliatesStatsDto';
38
- import {
39
- AffiliatesStatsDtoFromJSON,
40
- AffiliatesStatsDtoFromJSONTyped,
41
- AffiliatesStatsDtoToJSON,
42
- AffiliatesStatsDtoToJSONTyped,
43
- } from './AffiliatesStatsDto';
44
- import type { AuctionsStatsDto } from './AuctionsStatsDto';
45
- import {
46
- AuctionsStatsDtoFromJSON,
47
- AuctionsStatsDtoFromJSONTyped,
48
- AuctionsStatsDtoToJSON,
49
- AuctionsStatsDtoToJSONTyped,
50
- } from './AuctionsStatsDto';
51
- import type { AccountCountryStatsDto } from './AccountCountryStatsDto';
52
- import {
53
- AccountCountryStatsDtoFromJSON,
54
- AccountCountryStatsDtoFromJSONTyped,
55
- AccountCountryStatsDtoToJSON,
56
- AccountCountryStatsDtoToJSONTyped,
57
- } from './AccountCountryStatsDto';
58
- import type { PaymentMethodsStatsDto } from './PaymentMethodsStatsDto';
59
- import {
60
- PaymentMethodsStatsDtoFromJSON,
61
- PaymentMethodsStatsDtoFromJSONTyped,
62
- PaymentMethodsStatsDtoToJSON,
63
- PaymentMethodsStatsDtoToJSONTyped,
64
- } from './PaymentMethodsStatsDto';
65
- import type { TopSellerAccountDto } from './TopSellerAccountDto';
66
- import {
67
- TopSellerAccountDtoFromJSON,
68
- TopSellerAccountDtoFromJSONTyped,
69
- TopSellerAccountDtoToJSON,
70
- TopSellerAccountDtoToJSONTyped,
71
- } from './TopSellerAccountDto';
72
-
73
- /**
74
- *
75
- * @export
76
- * @interface AdminDashboardStatsDto
77
- */
78
- export interface AdminDashboardStatsDto {
79
- /**
80
- * Payment methods statistics
81
- * @type {PaymentMethodsStatsDto}
82
- * @memberof AdminDashboardStatsDto
83
- */
84
- paymentMethods: PaymentMethodsStatsDto;
85
- /**
86
- * Affiliates statistics
87
- * @type {AffiliatesStatsDto}
88
- * @memberof AdminDashboardStatsDto
89
- */
90
- affiliates: AffiliatesStatsDto;
91
- /**
92
- * Accounts statistics
93
- * @type {AccountsStatsDto}
94
- * @memberof AdminDashboardStatsDto
95
- */
96
- accounts: AccountsStatsDto;
97
- /**
98
- * List of account countries with count
99
- * @type {Array<AccountCountryStatsDto>}
100
- * @memberof AdminDashboardStatsDto
101
- */
102
- accountCountries: Array<AccountCountryStatsDto>;
103
- /**
104
- * Top 10 accounts with most sold domains
105
- * @type {Array<TopSellerAccountDto>}
106
- * @memberof AdminDashboardStatsDto
107
- */
108
- topSellerAccounts: Array<TopSellerAccountDto>;
109
- /**
110
- * Top affiliate accounts by number of paid buyer sales that used their affiliate code
111
- * @type {Array<TopAffiliateSellerDto>}
112
- * @memberof AdminDashboardStatsDto
113
- */
114
- topAffiliateSellers: Array<TopAffiliateSellerDto>;
115
- /**
116
- * Total number of invoices with target buyer (with Bait state condition)
117
- * @type {number}
118
- * @memberof AdminDashboardStatsDto
119
- */
120
- totalSalesNumber: number;
121
- /**
122
- * Average price of sale in EUR for invoices paid with target buyer
123
- * @type {number}
124
- * @memberof AdminDashboardStatsDto
125
- */
126
- averageSalePriceEur: number;
127
- /**
128
- * Commissions statistics
129
- * @type {CommissionsStatsDto}
130
- * @memberof AdminDashboardStatsDto
131
- */
132
- commissions: CommissionsStatsDto;
133
- /**
134
- * Auctions statistics
135
- * @type {AuctionsStatsDto}
136
- * @memberof AdminDashboardStatsDto
137
- */
138
- auctions: AuctionsStatsDto;
139
- }
140
-
141
- /**
142
- * Check if a given object implements the AdminDashboardStatsDto interface.
143
- */
144
- export function instanceOfAdminDashboardStatsDto(value: object): value is AdminDashboardStatsDto {
145
- if (!('paymentMethods' in value) || value['paymentMethods'] === undefined) return false;
146
- if (!('affiliates' in value) || value['affiliates'] === undefined) return false;
147
- if (!('accounts' in value) || value['accounts'] === undefined) return false;
148
- if (!('accountCountries' in value) || value['accountCountries'] === undefined) return false;
149
- if (!('topSellerAccounts' in value) || value['topSellerAccounts'] === undefined) return false;
150
- if (!('topAffiliateSellers' in value) || value['topAffiliateSellers'] === undefined) return false;
151
- if (!('totalSalesNumber' in value) || value['totalSalesNumber'] === undefined) return false;
152
- if (!('averageSalePriceEur' in value) || value['averageSalePriceEur'] === undefined) return false;
153
- if (!('commissions' in value) || value['commissions'] === undefined) return false;
154
- if (!('auctions' in value) || value['auctions'] === undefined) return false;
155
- return true;
156
- }
157
-
158
- export function AdminDashboardStatsDtoFromJSON(json: any): AdminDashboardStatsDto {
159
- return AdminDashboardStatsDtoFromJSONTyped(json, false);
160
- }
161
-
162
- export function AdminDashboardStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminDashboardStatsDto {
163
- if (json == null) {
164
- return json;
165
- }
166
- return {
167
-
168
- 'paymentMethods': PaymentMethodsStatsDtoFromJSON(json['paymentMethods']),
169
- 'affiliates': AffiliatesStatsDtoFromJSON(json['affiliates']),
170
- 'accounts': AccountsStatsDtoFromJSON(json['accounts']),
171
- 'accountCountries': ((json['accountCountries'] as Array<any>).map(AccountCountryStatsDtoFromJSON)),
172
- 'topSellerAccounts': ((json['topSellerAccounts'] as Array<any>).map(TopSellerAccountDtoFromJSON)),
173
- 'topAffiliateSellers': ((json['topAffiliateSellers'] as Array<any>).map(TopAffiliateSellerDtoFromJSON)),
174
- 'totalSalesNumber': json['totalSalesNumber'],
175
- 'averageSalePriceEur': json['averageSalePriceEur'],
176
- 'commissions': CommissionsStatsDtoFromJSON(json['commissions']),
177
- 'auctions': AuctionsStatsDtoFromJSON(json['auctions']),
178
- };
179
- }
180
-
181
- export function AdminDashboardStatsDtoToJSON(json: any): AdminDashboardStatsDto {
182
- return AdminDashboardStatsDtoToJSONTyped(json, false);
183
- }
184
-
185
- export function AdminDashboardStatsDtoToJSONTyped(value?: AdminDashboardStatsDto | null, ignoreDiscriminator: boolean = false): any {
186
- if (value == null) {
187
- return value;
188
- }
189
-
190
- return {
191
-
192
- 'paymentMethods': PaymentMethodsStatsDtoToJSON(value['paymentMethods']),
193
- 'affiliates': AffiliatesStatsDtoToJSON(value['affiliates']),
194
- 'accounts': AccountsStatsDtoToJSON(value['accounts']),
195
- 'accountCountries': ((value['accountCountries'] as Array<any>).map(AccountCountryStatsDtoToJSON)),
196
- 'topSellerAccounts': ((value['topSellerAccounts'] as Array<any>).map(TopSellerAccountDtoToJSON)),
197
- 'topAffiliateSellers': ((value['topAffiliateSellers'] as Array<any>).map(TopAffiliateSellerDtoToJSON)),
198
- 'totalSalesNumber': value['totalSalesNumber'],
199
- 'averageSalePriceEur': value['averageSalePriceEur'],
200
- 'commissions': CommissionsStatsDtoToJSON(value['commissions']),
201
- 'auctions': AuctionsStatsDtoToJSON(value['auctions']),
202
- };
203
- }
204
-