@randock/nameshift-api-client 0.0.528 → 0.0.530
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 +3 -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/CreateNewsletterInput.d.ts +4 -21
- package/dist/models/CreateNewsletterInput.js +3 -8
- package/dist/models/NewsletterDto.d.ts +4 -21
- package/dist/models/NewsletterDto.js +4 -15
- package/dist/models/NewsletterEventDto.d.ts +68 -0
- package/dist/models/NewsletterEventDto.js +75 -0
- package/dist/models/NewsletterEventInput.d.ts +68 -0
- package/dist/models/NewsletterEventInput.js +75 -0
- package/dist/models/SalesStatsDto.d.ts +38 -0
- package/dist/models/SalesStatsDto.js +55 -0
- package/dist/models/UpdateNewsletterInput.d.ts +4 -21
- package/dist/models/UpdateNewsletterInput.js +3 -8
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -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/CreateNewsletterInput.ts +12 -29
- package/src/models/NewsletterDto.ts +13 -33
- package/src/models/NewsletterEventDto.ts +120 -0
- package/src/models/NewsletterEventInput.ts +120 -0
- package/src/models/SalesStatsDto.ts +75 -0
- package/src/models/UpdateNewsletterInput.ts +12 -29
- package/src/models/index.ts +3 -1
- package/dist/models/AdminDashboardStatsDto.d.ts +0 -94
- package/dist/models/AdminDashboardStatsDto.js +0 -95
- package/src/models/AdminDashboardStatsDto.ts +0 -204
|
@@ -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
|
-
|