@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.
Files changed (39) hide show
  1. package/.openapi-generator/FILES +3 -1
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +73 -8
  4. package/dist/apis/AdminApi.js +289 -9
  5. package/dist/models/AccountsStatsDto.d.ts +21 -0
  6. package/dist/models/AccountsStatsDto.js +15 -0
  7. package/dist/models/AffiliatesStatsDto.d.ts +6 -0
  8. package/dist/models/AffiliatesStatsDto.js +4 -0
  9. package/dist/models/AuctionsStatsDto.d.ts +6 -0
  10. package/dist/models/AuctionsStatsDto.js +4 -0
  11. package/dist/models/CreateNewsletterInput.d.ts +4 -21
  12. package/dist/models/CreateNewsletterInput.js +3 -8
  13. package/dist/models/NewsletterDto.d.ts +4 -21
  14. package/dist/models/NewsletterDto.js +4 -15
  15. package/dist/models/NewsletterEventDto.d.ts +68 -0
  16. package/dist/models/NewsletterEventDto.js +75 -0
  17. package/dist/models/NewsletterEventInput.d.ts +68 -0
  18. package/dist/models/NewsletterEventInput.js +75 -0
  19. package/dist/models/SalesStatsDto.d.ts +38 -0
  20. package/dist/models/SalesStatsDto.js +55 -0
  21. package/dist/models/UpdateNewsletterInput.d.ts +4 -21
  22. package/dist/models/UpdateNewsletterInput.js +3 -8
  23. package/dist/models/index.d.ts +3 -1
  24. package/dist/models/index.js +3 -1
  25. package/package.json +1 -1
  26. package/src/apis/AdminApi.ts +248 -13
  27. package/src/models/AccountsStatsDto.ts +49 -0
  28. package/src/models/AffiliatesStatsDto.ts +9 -0
  29. package/src/models/AuctionsStatsDto.ts +9 -0
  30. package/src/models/CreateNewsletterInput.ts +12 -29
  31. package/src/models/NewsletterDto.ts +13 -33
  32. package/src/models/NewsletterEventDto.ts +120 -0
  33. package/src/models/NewsletterEventInput.ts +120 -0
  34. package/src/models/SalesStatsDto.ts +75 -0
  35. package/src/models/UpdateNewsletterInput.ts +12 -29
  36. package/src/models/index.ts +3 -1
  37. package/dist/models/AdminDashboardStatsDto.d.ts +0 -94
  38. package/dist/models/AdminDashboardStatsDto.js +0 -95
  39. package/src/models/AdminDashboardStatsDto.ts +0 -204
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.528",
3
+ "version": "0.0.530",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -19,17 +19,19 @@ import type {
19
19
  AccountNoteListDto,
20
20
  AccountPaymentMethodProfileDto,
21
21
  AccountSettingsDto,
22
+ AccountsStatsDto,
22
23
  AdminAccountLoginDto,
23
24
  AdminAccountSettingsInput,
24
25
  AdminBuyerLoginDto,
25
26
  AdminChallengeListDto,
26
27
  AdminCompanyStatsDto,
27
- AdminDashboardStatsDto,
28
28
  AdminGetAllDomainTransfers200Response,
29
29
  AdminLandingDesignStatsDto,
30
30
  AdminMarketplaceDto,
31
31
  AdminUserNewsletterInput,
32
32
  AdminUserSecurityDto,
33
+ AffiliatesStatsDto,
34
+ AuctionsStatsDto,
33
35
  BadRequestException,
34
36
  BulkCommissionActionsInput,
35
37
  ChangeInvoiceStatusInput,
@@ -37,6 +39,7 @@ import type {
37
39
  ChangeSubscriptionStatusInput,
38
40
  CommissionListDto,
39
41
  CommissionSimulationResultDto,
42
+ CommissionsStatsDto,
40
43
  ConflictException,
41
44
  CreateAccountNoteInput,
42
45
  CreateChallengeInput,
@@ -74,6 +77,8 @@ import type {
74
77
  NewsletterPreviewDto,
75
78
  ObjectId,
76
79
  PaySellerInvoicesInput,
80
+ PaymentMethodsStatsDto,
81
+ SalesStatsDto,
77
82
  SellerLeadDetails,
78
83
  SellerPayoutPreviewDto,
79
84
  SellerSalesByTldStatsItemDto,
@@ -103,6 +108,8 @@ import {
103
108
  AccountPaymentMethodProfileDtoToJSON,
104
109
  AccountSettingsDtoFromJSON,
105
110
  AccountSettingsDtoToJSON,
111
+ AccountsStatsDtoFromJSON,
112
+ AccountsStatsDtoToJSON,
106
113
  AdminAccountLoginDtoFromJSON,
107
114
  AdminAccountLoginDtoToJSON,
108
115
  AdminAccountSettingsInputFromJSON,
@@ -113,8 +120,6 @@ import {
113
120
  AdminChallengeListDtoToJSON,
114
121
  AdminCompanyStatsDtoFromJSON,
115
122
  AdminCompanyStatsDtoToJSON,
116
- AdminDashboardStatsDtoFromJSON,
117
- AdminDashboardStatsDtoToJSON,
118
123
  AdminGetAllDomainTransfers200ResponseFromJSON,
119
124
  AdminGetAllDomainTransfers200ResponseToJSON,
120
125
  AdminLandingDesignStatsDtoFromJSON,
@@ -125,6 +130,10 @@ import {
125
130
  AdminUserNewsletterInputToJSON,
126
131
  AdminUserSecurityDtoFromJSON,
127
132
  AdminUserSecurityDtoToJSON,
133
+ AffiliatesStatsDtoFromJSON,
134
+ AffiliatesStatsDtoToJSON,
135
+ AuctionsStatsDtoFromJSON,
136
+ AuctionsStatsDtoToJSON,
128
137
  BadRequestExceptionFromJSON,
129
138
  BadRequestExceptionToJSON,
130
139
  BulkCommissionActionsInputFromJSON,
@@ -139,6 +148,8 @@ import {
139
148
  CommissionListDtoToJSON,
140
149
  CommissionSimulationResultDtoFromJSON,
141
150
  CommissionSimulationResultDtoToJSON,
151
+ CommissionsStatsDtoFromJSON,
152
+ CommissionsStatsDtoToJSON,
142
153
  ConflictExceptionFromJSON,
143
154
  ConflictExceptionToJSON,
144
155
  CreateAccountNoteInputFromJSON,
@@ -213,6 +224,10 @@ import {
213
224
  ObjectIdToJSON,
214
225
  PaySellerInvoicesInputFromJSON,
215
226
  PaySellerInvoicesInputToJSON,
227
+ PaymentMethodsStatsDtoFromJSON,
228
+ PaymentMethodsStatsDtoToJSON,
229
+ SalesStatsDtoFromJSON,
230
+ SalesStatsDtoToJSON,
216
231
  SellerLeadDetailsFromJSON,
217
232
  SellerLeadDetailsToJSON,
218
233
  SellerPayoutPreviewDtoFromJSON,
@@ -366,7 +381,27 @@ export interface AdminApiGetAccountSettingsRequest {
366
381
  accountId: string;
367
382
  }
368
383
 
369
- export interface AdminApiGetAdminDashboardStatsRequest {
384
+ export interface AdminApiGetAdminDashboardAccountsStatsRequest {
385
+ dateRange?: StatsFilterInputDateRange | null;
386
+ }
387
+
388
+ export interface AdminApiGetAdminDashboardAffiliatesStatsRequest {
389
+ dateRange?: StatsFilterInputDateRange | null;
390
+ }
391
+
392
+ export interface AdminApiGetAdminDashboardAuctionsStatsRequest {
393
+ dateRange?: StatsFilterInputDateRange | null;
394
+ }
395
+
396
+ export interface AdminApiGetAdminDashboardCommissionsStatsRequest {
397
+ dateRange?: StatsFilterInputDateRange | null;
398
+ }
399
+
400
+ export interface AdminApiGetAdminDashboardPaymentMethodsStatsRequest {
401
+ dateRange?: StatsFilterInputDateRange | null;
402
+ }
403
+
404
+ export interface AdminApiGetAdminDashboardSalesStatsRequest {
370
405
  dateRange?: StatsFilterInputDateRange | null;
371
406
  }
372
407
 
@@ -1918,10 +1953,210 @@ export class AdminApi extends runtime.BaseAPI {
1918
1953
  }
1919
1954
 
1920
1955
  /**
1921
- * Returns aggregated statistics for the admin dashboard, optionally filtered by date range.
1922
- * Get admin dashboard stats
1956
+ * Returns the accounts statistics of the admin dashboard, with the top sellers, top affiliate sellers and accounts per country, optionally filtered by date range.
1957
+ * Get admin dashboard accounts stats
1958
+ */
1959
+ async getAdminDashboardAccountsStatsRaw(requestParameters: AdminApiGetAdminDashboardAccountsStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountsStatsDto>> {
1960
+ const queryParameters: any = {};
1961
+
1962
+ if (requestParameters['dateRange'] != null) {
1963
+ queryParameters['dateRange'] = requestParameters['dateRange'];
1964
+ }
1965
+
1966
+ const headerParameters: runtime.HTTPHeaders = {};
1967
+
1968
+ if (this.configuration && this.configuration.accessToken) {
1969
+ const token = this.configuration.accessToken;
1970
+ const tokenString = await token("bearer", []);
1971
+
1972
+ if (tokenString) {
1973
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1974
+ }
1975
+ }
1976
+ const response = await this.request({
1977
+ path: `/admin/stats/dashboard/accounts`,
1978
+ method: 'GET',
1979
+ headers: headerParameters,
1980
+ query: queryParameters,
1981
+ }, initOverrides);
1982
+
1983
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccountsStatsDtoFromJSON(jsonValue));
1984
+ }
1985
+
1986
+ /**
1987
+ * Returns the accounts statistics of the admin dashboard, with the top sellers, top affiliate sellers and accounts per country, optionally filtered by date range.
1988
+ * Get admin dashboard accounts stats
1989
+ */
1990
+ async getAdminDashboardAccountsStats(requestParameters: AdminApiGetAdminDashboardAccountsStatsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountsStatsDto> {
1991
+ const response = await this.getAdminDashboardAccountsStatsRaw(requestParameters, initOverrides);
1992
+ return await response.value();
1993
+ }
1994
+
1995
+ /**
1996
+ * Returns the affiliates statistics of the admin dashboard, optionally filtered by date range.
1997
+ * Get admin dashboard affiliates stats
1998
+ */
1999
+ async getAdminDashboardAffiliatesStatsRaw(requestParameters: AdminApiGetAdminDashboardAffiliatesStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AffiliatesStatsDto>> {
2000
+ const queryParameters: any = {};
2001
+
2002
+ if (requestParameters['dateRange'] != null) {
2003
+ queryParameters['dateRange'] = requestParameters['dateRange'];
2004
+ }
2005
+
2006
+ const headerParameters: runtime.HTTPHeaders = {};
2007
+
2008
+ if (this.configuration && this.configuration.accessToken) {
2009
+ const token = this.configuration.accessToken;
2010
+ const tokenString = await token("bearer", []);
2011
+
2012
+ if (tokenString) {
2013
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2014
+ }
2015
+ }
2016
+ const response = await this.request({
2017
+ path: `/admin/stats/dashboard/affiliates`,
2018
+ method: 'GET',
2019
+ headers: headerParameters,
2020
+ query: queryParameters,
2021
+ }, initOverrides);
2022
+
2023
+ return new runtime.JSONApiResponse(response, (jsonValue) => AffiliatesStatsDtoFromJSON(jsonValue));
2024
+ }
2025
+
2026
+ /**
2027
+ * Returns the affiliates statistics of the admin dashboard, optionally filtered by date range.
2028
+ * Get admin dashboard affiliates stats
2029
+ */
2030
+ async getAdminDashboardAffiliatesStats(requestParameters: AdminApiGetAdminDashboardAffiliatesStatsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AffiliatesStatsDto> {
2031
+ const response = await this.getAdminDashboardAffiliatesStatsRaw(requestParameters, initOverrides);
2032
+ return await response.value();
2033
+ }
2034
+
2035
+ /**
2036
+ * Returns the auctions statistics of the admin dashboard, optionally filtered by date range.
2037
+ * Get admin dashboard auctions stats
2038
+ */
2039
+ async getAdminDashboardAuctionsStatsRaw(requestParameters: AdminApiGetAdminDashboardAuctionsStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuctionsStatsDto>> {
2040
+ const queryParameters: any = {};
2041
+
2042
+ if (requestParameters['dateRange'] != null) {
2043
+ queryParameters['dateRange'] = requestParameters['dateRange'];
2044
+ }
2045
+
2046
+ const headerParameters: runtime.HTTPHeaders = {};
2047
+
2048
+ if (this.configuration && this.configuration.accessToken) {
2049
+ const token = this.configuration.accessToken;
2050
+ const tokenString = await token("bearer", []);
2051
+
2052
+ if (tokenString) {
2053
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2054
+ }
2055
+ }
2056
+ const response = await this.request({
2057
+ path: `/admin/stats/dashboard/auctions`,
2058
+ method: 'GET',
2059
+ headers: headerParameters,
2060
+ query: queryParameters,
2061
+ }, initOverrides);
2062
+
2063
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuctionsStatsDtoFromJSON(jsonValue));
2064
+ }
2065
+
2066
+ /**
2067
+ * Returns the auctions statistics of the admin dashboard, optionally filtered by date range.
2068
+ * Get admin dashboard auctions stats
2069
+ */
2070
+ async getAdminDashboardAuctionsStats(requestParameters: AdminApiGetAdminDashboardAuctionsStatsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuctionsStatsDto> {
2071
+ const response = await this.getAdminDashboardAuctionsStatsRaw(requestParameters, initOverrides);
2072
+ return await response.value();
2073
+ }
2074
+
2075
+ /**
2076
+ * Returns the commissions statistics of the admin dashboard, optionally filtered by date range.
2077
+ * Get admin dashboard commissions stats
2078
+ */
2079
+ async getAdminDashboardCommissionsStatsRaw(requestParameters: AdminApiGetAdminDashboardCommissionsStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CommissionsStatsDto>> {
2080
+ const queryParameters: any = {};
2081
+
2082
+ if (requestParameters['dateRange'] != null) {
2083
+ queryParameters['dateRange'] = requestParameters['dateRange'];
2084
+ }
2085
+
2086
+ const headerParameters: runtime.HTTPHeaders = {};
2087
+
2088
+ if (this.configuration && this.configuration.accessToken) {
2089
+ const token = this.configuration.accessToken;
2090
+ const tokenString = await token("bearer", []);
2091
+
2092
+ if (tokenString) {
2093
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2094
+ }
2095
+ }
2096
+ const response = await this.request({
2097
+ path: `/admin/stats/dashboard/commissions`,
2098
+ method: 'GET',
2099
+ headers: headerParameters,
2100
+ query: queryParameters,
2101
+ }, initOverrides);
2102
+
2103
+ return new runtime.JSONApiResponse(response, (jsonValue) => CommissionsStatsDtoFromJSON(jsonValue));
2104
+ }
2105
+
2106
+ /**
2107
+ * Returns the commissions statistics of the admin dashboard, optionally filtered by date range.
2108
+ * Get admin dashboard commissions stats
2109
+ */
2110
+ async getAdminDashboardCommissionsStats(requestParameters: AdminApiGetAdminDashboardCommissionsStatsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CommissionsStatsDto> {
2111
+ const response = await this.getAdminDashboardCommissionsStatsRaw(requestParameters, initOverrides);
2112
+ return await response.value();
2113
+ }
2114
+
2115
+ /**
2116
+ * Returns the number of sales by payment method of the admin dashboard, optionally filtered by date range.
2117
+ * Get admin dashboard payment methods stats
2118
+ */
2119
+ async getAdminDashboardPaymentMethodsStatsRaw(requestParameters: AdminApiGetAdminDashboardPaymentMethodsStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentMethodsStatsDto>> {
2120
+ const queryParameters: any = {};
2121
+
2122
+ if (requestParameters['dateRange'] != null) {
2123
+ queryParameters['dateRange'] = requestParameters['dateRange'];
2124
+ }
2125
+
2126
+ const headerParameters: runtime.HTTPHeaders = {};
2127
+
2128
+ if (this.configuration && this.configuration.accessToken) {
2129
+ const token = this.configuration.accessToken;
2130
+ const tokenString = await token("bearer", []);
2131
+
2132
+ if (tokenString) {
2133
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2134
+ }
2135
+ }
2136
+ const response = await this.request({
2137
+ path: `/admin/stats/dashboard/payment-methods`,
2138
+ method: 'GET',
2139
+ headers: headerParameters,
2140
+ query: queryParameters,
2141
+ }, initOverrides);
2142
+
2143
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaymentMethodsStatsDtoFromJSON(jsonValue));
2144
+ }
2145
+
2146
+ /**
2147
+ * Returns the number of sales by payment method of the admin dashboard, optionally filtered by date range.
2148
+ * Get admin dashboard payment methods stats
2149
+ */
2150
+ async getAdminDashboardPaymentMethodsStats(requestParameters: AdminApiGetAdminDashboardPaymentMethodsStatsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentMethodsStatsDto> {
2151
+ const response = await this.getAdminDashboardPaymentMethodsStatsRaw(requestParameters, initOverrides);
2152
+ return await response.value();
2153
+ }
2154
+
2155
+ /**
2156
+ * Returns the sales statistics of the admin dashboard, optionally filtered by date range.
2157
+ * Get admin dashboard sales stats
1923
2158
  */
1924
- async getAdminDashboardStatsRaw(requestParameters: AdminApiGetAdminDashboardStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminDashboardStatsDto>> {
2159
+ async getAdminDashboardSalesStatsRaw(requestParameters: AdminApiGetAdminDashboardSalesStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SalesStatsDto>> {
1925
2160
  const queryParameters: any = {};
1926
2161
 
1927
2162
  if (requestParameters['dateRange'] != null) {
@@ -1939,21 +2174,21 @@ export class AdminApi extends runtime.BaseAPI {
1939
2174
  }
1940
2175
  }
1941
2176
  const response = await this.request({
1942
- path: `/admin/stats/dashboard`,
2177
+ path: `/admin/stats/dashboard/sales`,
1943
2178
  method: 'GET',
1944
2179
  headers: headerParameters,
1945
2180
  query: queryParameters,
1946
2181
  }, initOverrides);
1947
2182
 
1948
- return new runtime.JSONApiResponse(response, (jsonValue) => AdminDashboardStatsDtoFromJSON(jsonValue));
2183
+ return new runtime.JSONApiResponse(response, (jsonValue) => SalesStatsDtoFromJSON(jsonValue));
1949
2184
  }
1950
2185
 
1951
2186
  /**
1952
- * Returns aggregated statistics for the admin dashboard, optionally filtered by date range.
1953
- * Get admin dashboard stats
2187
+ * Returns the sales statistics of the admin dashboard, optionally filtered by date range.
2188
+ * Get admin dashboard sales stats
1954
2189
  */
1955
- async getAdminDashboardStats(requestParameters: AdminApiGetAdminDashboardStatsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminDashboardStatsDto> {
1956
- const response = await this.getAdminDashboardStatsRaw(requestParameters, initOverrides);
2190
+ async getAdminDashboardSalesStats(requestParameters: AdminApiGetAdminDashboardSalesStatsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SalesStatsDto> {
2191
+ const response = await this.getAdminDashboardSalesStatsRaw(requestParameters, initOverrides);
1957
2192
  return await response.value();
1958
2193
  }
1959
2194
 
@@ -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
 
@@ -20,6 +20,13 @@ import {
20
20
  NewsletterSecondaryStoryInputToJSON,
21
21
  NewsletterSecondaryStoryInputToJSONTyped,
22
22
  } from './NewsletterSecondaryStoryInput';
23
+ import type { NewsletterEventInput } from './NewsletterEventInput';
24
+ import {
25
+ NewsletterEventInputFromJSON,
26
+ NewsletterEventInputFromJSONTyped,
27
+ NewsletterEventInputToJSON,
28
+ NewsletterEventInputToJSONTyped,
29
+ } from './NewsletterEventInput';
23
30
 
24
31
  /**
25
32
  *
@@ -94,29 +101,11 @@ export interface CreateNewsletterInput {
94
101
  */
95
102
  featureLink?: string;
96
103
  /**
97
- * Event lead line.
98
- * @type {string}
99
- * @memberof CreateNewsletterInput
100
- */
101
- eventLead?: string | null;
102
- /**
103
- * Event text.
104
- * @type {string}
105
- * @memberof CreateNewsletterInput
106
- */
107
- eventText?: string | null;
108
- /**
109
- * Event link URL.
110
- * @type {string}
111
- * @memberof CreateNewsletterInput
112
- */
113
- eventUrl?: string | null;
114
- /**
115
- * Event link text.
116
- * @type {string}
104
+ * Events, in order.
105
+ * @type {Array<NewsletterEventInput>}
117
106
  * @memberof CreateNewsletterInput
118
107
  */
119
- eventLink?: string | null;
108
+ events?: Array<NewsletterEventInput>;
120
109
  /**
121
110
  * Whether the recent-sales module is in the issue.
122
111
  * @type {boolean}
@@ -202,10 +191,7 @@ export function CreateNewsletterInputFromJSONTyped(json: any, ignoreDiscriminato
202
191
  'featureStoryUuid': json['featureStoryUuid'] == null ? undefined : json['featureStoryUuid'],
203
192
  'featureText': json['featureText'] == null ? undefined : json['featureText'],
204
193
  'featureLink': json['featureLink'] == null ? undefined : json['featureLink'],
205
- 'eventLead': json['eventLead'] == null ? undefined : json['eventLead'],
206
- 'eventText': json['eventText'] == null ? undefined : json['eventText'],
207
- 'eventUrl': json['eventUrl'] == null ? undefined : json['eventUrl'],
208
- 'eventLink': json['eventLink'] == null ? undefined : json['eventLink'],
194
+ 'events': json['events'] == null ? undefined : ((json['events'] as Array<any>).map(NewsletterEventInputFromJSON)),
209
195
  'salesEnabled': json['salesEnabled'] == null ? undefined : json['salesEnabled'],
210
196
  'salesFrom': json['salesFrom'] == null ? undefined : json['salesFrom'],
211
197
  'salesTo': json['salesTo'] == null ? undefined : json['salesTo'],
@@ -240,10 +226,7 @@ export function CreateNewsletterInputToJSONTyped(value?: CreateNewsletterInput |
240
226
  'featureStoryUuid': value['featureStoryUuid'],
241
227
  'featureText': value['featureText'],
242
228
  'featureLink': value['featureLink'],
243
- 'eventLead': value['eventLead'],
244
- 'eventText': value['eventText'],
245
- 'eventUrl': value['eventUrl'],
246
- 'eventLink': value['eventLink'],
229
+ 'events': value['events'] == null ? undefined : ((value['events'] as Array<any>).map(NewsletterEventInputToJSON)),
247
230
  'salesEnabled': value['salesEnabled'],
248
231
  'salesFrom': value['salesFrom'],
249
232
  'salesTo': value['salesTo'],
@@ -20,6 +20,13 @@ import {
20
20
  NewsletterSecondaryStoryDtoToJSON,
21
21
  NewsletterSecondaryStoryDtoToJSONTyped,
22
22
  } from './NewsletterSecondaryStoryDto';
23
+ import type { NewsletterEventDto } from './NewsletterEventDto';
24
+ import {
25
+ NewsletterEventDtoFromJSON,
26
+ NewsletterEventDtoFromJSONTyped,
27
+ NewsletterEventDtoToJSON,
28
+ NewsletterEventDtoToJSONTyped,
29
+ } from './NewsletterEventDto';
23
30
 
24
31
  /**
25
32
  *
@@ -112,29 +119,11 @@ export interface NewsletterDto {
112
119
  */
113
120
  featureLink: string;
114
121
  /**
115
- * Event lead, e.g. "NamesCon Global, Miami, 11–12 November."
116
- * @type {string}
117
- * @memberof NewsletterDto
118
- */
119
- eventLead: string | null;
120
- /**
121
- * Event text, e.g. "We are at booth 214."
122
- * @type {string}
123
- * @memberof NewsletterDto
124
- */
125
- eventText: string | null;
126
- /**
127
- * Event link URL.
128
- * @type {string}
129
- * @memberof NewsletterDto
130
- */
131
- eventUrl: string | null;
132
- /**
133
- * Event link text.
134
- * @type {string}
122
+ * Events, in order.
123
+ * @type {Array<NewsletterEventDto>}
135
124
  * @memberof NewsletterDto
136
125
  */
137
- eventLink: string | null;
126
+ events: Array<NewsletterEventDto>;
138
127
  /**
139
128
  * Whether the recent-sales module is in the issue.
140
129
  * @type {boolean}
@@ -274,10 +263,7 @@ export function instanceOfNewsletterDto(value: object): value is NewsletterDto {
274
263
  if (!('featureStoryUuid' in value) || value['featureStoryUuid'] === undefined) return false;
275
264
  if (!('featureText' in value) || value['featureText'] === undefined) return false;
276
265
  if (!('featureLink' in value) || value['featureLink'] === undefined) return false;
277
- if (!('eventLead' in value) || value['eventLead'] === undefined) return false;
278
- if (!('eventText' in value) || value['eventText'] === undefined) return false;
279
- if (!('eventUrl' in value) || value['eventUrl'] === undefined) return false;
280
- if (!('eventLink' in value) || value['eventLink'] === undefined) return false;
266
+ if (!('events' in value) || value['events'] === undefined) return false;
281
267
  if (!('salesEnabled' in value) || value['salesEnabled'] === undefined) return false;
282
268
  if (!('salesFrom' in value) || value['salesFrom'] === undefined) return false;
283
269
  if (!('salesTo' in value) || value['salesTo'] === undefined) return false;
@@ -323,10 +309,7 @@ export function NewsletterDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
323
309
  'featureStoryUuid': json['featureStoryUuid'],
324
310
  'featureText': json['featureText'],
325
311
  'featureLink': json['featureLink'],
326
- 'eventLead': json['eventLead'],
327
- 'eventText': json['eventText'],
328
- 'eventUrl': json['eventUrl'],
329
- 'eventLink': json['eventLink'],
312
+ 'events': ((json['events'] as Array<any>).map(NewsletterEventDtoFromJSON)),
330
313
  'salesEnabled': json['salesEnabled'],
331
314
  'salesFrom': json['salesFrom'],
332
315
  'salesTo': json['salesTo'],
@@ -373,10 +356,7 @@ export function NewsletterDtoToJSONTyped(value?: NewsletterDto | null, ignoreDis
373
356
  'featureStoryUuid': value['featureStoryUuid'],
374
357
  'featureText': value['featureText'],
375
358
  'featureLink': value['featureLink'],
376
- 'eventLead': value['eventLead'],
377
- 'eventText': value['eventText'],
378
- 'eventUrl': value['eventUrl'],
379
- 'eventLink': value['eventLink'],
359
+ 'events': ((value['events'] as Array<any>).map(NewsletterEventDtoToJSON)),
380
360
  'salesEnabled': value['salesEnabled'],
381
361
  'salesFrom': value['salesFrom'],
382
362
  'salesTo': value['salesTo'],