@randock/nameshift-api-client 0.0.528 → 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.
- package/.openapi-generator/FILES +1 -1
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +73 -8
- package/dist/apis/AdminApi.js +289 -9
- package/dist/models/AccountsStatsDto.d.ts +21 -0
- package/dist/models/AccountsStatsDto.js +15 -0
- package/dist/models/AffiliatesStatsDto.d.ts +6 -0
- package/dist/models/AffiliatesStatsDto.js +4 -0
- package/dist/models/AuctionsStatsDto.d.ts +6 -0
- package/dist/models/AuctionsStatsDto.js +4 -0
- package/dist/models/SalesStatsDto.d.ts +38 -0
- package/dist/models/SalesStatsDto.js +55 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +248 -13
- package/src/models/AccountsStatsDto.ts +49 -0
- package/src/models/AffiliatesStatsDto.ts +9 -0
- package/src/models/AuctionsStatsDto.ts +9 -0
- package/src/models/SalesStatsDto.ts +75 -0
- package/src/models/index.ts +1 -1
- package/dist/models/AdminDashboardStatsDto.d.ts +0 -94
- package/dist/models/AdminDashboardStatsDto.js +0 -95
- package/src/models/AdminDashboardStatsDto.ts +0 -204
|
@@ -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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -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
|
-
|