@randock/nameshift-api-client 0.0.406 → 0.0.408
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 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +25 -1
- package/dist/apis/AdminApi.js +113 -0
- package/dist/apis/StatsApi.d.ts +13 -1
- package/dist/apis/StatsApi.js +59 -0
- package/dist/models/SellerSalesByTldStatsItemDto.d.ts +56 -0
- package/dist/models/SellerSalesByTldStatsItemDto.js +67 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +106 -0
- package/src/apis/StatsApi.ts +57 -0
- package/src/models/SellerSalesByTldStatsItemDto.ts +102 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -405,6 +405,7 @@ src/models/SellerInvoiceSellerAccountDto.ts
|
|
|
405
405
|
src/models/SellerLeadDetails.ts
|
|
406
406
|
src/models/SellerPendingPayoutsByCurrencyStatsItemDto.ts
|
|
407
407
|
src/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.ts
|
|
408
|
+
src/models/SellerSalesByTldStatsItemDto.ts
|
|
408
409
|
src/models/SellerSalesCountStatsItemDto.ts
|
|
409
410
|
src/models/SellerScaleChallengeListItemDto.ts
|
|
410
411
|
src/models/SellerSecurityUserAccountDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.408
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.408 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
d09e0e20626b5bdbca6c579d4e1e3dfc4109c599ca4b96edf8800574ccf2d0d40672f9622b55f1dabbed533e86ce4371
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
14
|
+
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
|
+
auctionId: string;
|
|
16
|
+
}
|
|
14
17
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
18
|
filter?: object;
|
|
16
19
|
page?: number;
|
|
@@ -67,6 +70,11 @@ export interface AdminApiGetAdminDashboardStatsRequest {
|
|
|
67
70
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
68
71
|
domainTransferId: string;
|
|
69
72
|
}
|
|
73
|
+
export interface AdminApiGetAdminSalesByTldRequest {
|
|
74
|
+
currency: string;
|
|
75
|
+
accountId?: string;
|
|
76
|
+
dateRange?: any | null;
|
|
77
|
+
}
|
|
70
78
|
export interface AdminApiGetAllAccountsSalesCountRequest {
|
|
71
79
|
dateRange?: any | null;
|
|
72
80
|
}
|
|
@@ -211,6 +219,14 @@ export interface AdminApiVerifyBankAccountRequest {
|
|
|
211
219
|
*
|
|
212
220
|
*/
|
|
213
221
|
export declare class AdminApi extends runtime.BaseAPI {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
*/
|
|
225
|
+
adminDeleteAuctionRaw(requestParameters: AdminApiAdminDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
*/
|
|
229
|
+
adminDeleteAuction(requestParameters: AdminApiAdminDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
214
230
|
/**
|
|
215
231
|
*
|
|
216
232
|
*/
|
|
@@ -347,6 +363,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
347
363
|
*
|
|
348
364
|
*/
|
|
349
365
|
getAdminDomainTransferDetails(requestParameters: AdminApiGetAdminDomainTransferDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferDetailsDto>;
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
*/
|
|
369
|
+
getAdminSalesByTldRaw(requestParameters: AdminApiGetAdminSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesByTldStatsItemDto>>>;
|
|
370
|
+
/**
|
|
371
|
+
*
|
|
372
|
+
*/
|
|
373
|
+
getAdminSalesByTld(requestParameters: AdminApiGetAdminSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesByTldStatsItemDto>>;
|
|
350
374
|
/**
|
|
351
375
|
*
|
|
352
376
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -75,6 +75,57 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function AdminApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
AdminApi.prototype.adminDeleteAuctionRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['auctionId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('auctionId', 'Required parameter "auctionId" was null or undefined when calling adminDeleteAuction().');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
93
|
+
token = this.configuration.accessToken;
|
|
94
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
95
|
+
case 1:
|
|
96
|
+
tokenString = _a.sent();
|
|
97
|
+
if (tokenString) {
|
|
98
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
99
|
+
}
|
|
100
|
+
_a.label = 2;
|
|
101
|
+
case 2: return [4 /*yield*/, this.request({
|
|
102
|
+
path: "/admin/auctions/{auctionId}".replace("{".concat("auctionId", "}"), encodeURIComponent(String(requestParameters['auctionId']))),
|
|
103
|
+
method: 'DELETE',
|
|
104
|
+
headers: headerParameters,
|
|
105
|
+
query: queryParameters,
|
|
106
|
+
}, initOverrides)];
|
|
107
|
+
case 3:
|
|
108
|
+
response = _a.sent();
|
|
109
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
AdminApi.prototype.adminDeleteAuction = function (requestParameters, initOverrides) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
switch (_a.label) {
|
|
121
|
+
case 0: return [4 /*yield*/, this.adminDeleteAuctionRaw(requestParameters, initOverrides)];
|
|
122
|
+
case 1:
|
|
123
|
+
_a.sent();
|
|
124
|
+
return [2 /*return*/];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
};
|
|
78
129
|
/**
|
|
79
130
|
*
|
|
80
131
|
*/
|
|
@@ -987,6 +1038,68 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
987
1038
|
});
|
|
988
1039
|
});
|
|
989
1040
|
};
|
|
1041
|
+
/**
|
|
1042
|
+
*
|
|
1043
|
+
*/
|
|
1044
|
+
AdminApi.prototype.getAdminSalesByTldRaw = function (requestParameters, initOverrides) {
|
|
1045
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1046
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1047
|
+
return __generator(this, function (_a) {
|
|
1048
|
+
switch (_a.label) {
|
|
1049
|
+
case 0:
|
|
1050
|
+
if (requestParameters['currency'] == null) {
|
|
1051
|
+
throw new runtime.RequiredError('currency', 'Required parameter "currency" was null or undefined when calling getAdminSalesByTld().');
|
|
1052
|
+
}
|
|
1053
|
+
queryParameters = {};
|
|
1054
|
+
if (requestParameters['currency'] != null) {
|
|
1055
|
+
queryParameters['currency'] = requestParameters['currency'];
|
|
1056
|
+
}
|
|
1057
|
+
if (requestParameters['accountId'] != null) {
|
|
1058
|
+
queryParameters['accountId'] = requestParameters['accountId'];
|
|
1059
|
+
}
|
|
1060
|
+
if (requestParameters['dateRange'] != null) {
|
|
1061
|
+
queryParameters['dateRange'] = requestParameters['dateRange'];
|
|
1062
|
+
}
|
|
1063
|
+
headerParameters = {};
|
|
1064
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1065
|
+
token = this.configuration.accessToken;
|
|
1066
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1067
|
+
case 1:
|
|
1068
|
+
tokenString = _a.sent();
|
|
1069
|
+
if (tokenString) {
|
|
1070
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1071
|
+
}
|
|
1072
|
+
_a.label = 2;
|
|
1073
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1074
|
+
path: "/admin/stats/sales-by-tld",
|
|
1075
|
+
method: 'GET',
|
|
1076
|
+
headers: headerParameters,
|
|
1077
|
+
query: queryParameters,
|
|
1078
|
+
}, initOverrides)];
|
|
1079
|
+
case 3:
|
|
1080
|
+
response = _a.sent();
|
|
1081
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerSalesByTldStatsItemDtoFromJSON); })];
|
|
1082
|
+
}
|
|
1083
|
+
});
|
|
1084
|
+
});
|
|
1085
|
+
};
|
|
1086
|
+
/**
|
|
1087
|
+
*
|
|
1088
|
+
*/
|
|
1089
|
+
AdminApi.prototype.getAdminSalesByTld = function (requestParameters, initOverrides) {
|
|
1090
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1091
|
+
var response;
|
|
1092
|
+
return __generator(this, function (_a) {
|
|
1093
|
+
switch (_a.label) {
|
|
1094
|
+
case 0: return [4 /*yield*/, this.getAdminSalesByTldRaw(requestParameters, initOverrides)];
|
|
1095
|
+
case 1:
|
|
1096
|
+
response = _a.sent();
|
|
1097
|
+
return [4 /*yield*/, response.value()];
|
|
1098
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1099
|
+
}
|
|
1100
|
+
});
|
|
1101
|
+
});
|
|
1102
|
+
};
|
|
990
1103
|
/**
|
|
991
1104
|
*
|
|
992
1105
|
*/
|
package/dist/apis/StatsApi.d.ts
CHANGED
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { SellerPendingPayoutsByCurrencyStatsItemDto, SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto, SellerSalesCountStatsItemDto, SellerTotalEarningsByCurrencyOverTimeStatsItemDto, SellerTotalEarningsByCurrencyStatsItemDto, SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto } from '../models/index';
|
|
13
|
+
import type { SellerPendingPayoutsByCurrencyStatsItemDto, SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SellerTotalEarningsByCurrencyOverTimeStatsItemDto, SellerTotalEarningsByCurrencyStatsItemDto, SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto } from '../models/index';
|
|
14
|
+
export interface StatsApiGetSalesByTldRequest {
|
|
15
|
+
currency: string;
|
|
16
|
+
dateRange?: any | null;
|
|
17
|
+
}
|
|
14
18
|
export interface StatsApiGetSalesCountRequest {
|
|
15
19
|
dateRange?: any | null;
|
|
16
20
|
}
|
|
@@ -40,6 +44,14 @@ export declare class StatsApi extends runtime.BaseAPI {
|
|
|
40
44
|
*
|
|
41
45
|
*/
|
|
42
46
|
getRemainingVsTotalLeaseToOwnByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto>>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
getSalesByTldRaw(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesByTldStatsItemDto>>>;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
getSalesByTld(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesByTldStatsItemDto>>;
|
|
43
55
|
/**
|
|
44
56
|
*
|
|
45
57
|
*/
|
package/dist/apis/StatsApi.js
CHANGED
|
@@ -175,6 +175,65 @@ var StatsApi = /** @class */ (function (_super) {
|
|
|
175
175
|
});
|
|
176
176
|
});
|
|
177
177
|
};
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
181
|
+
StatsApi.prototype.getSalesByTldRaw = function (requestParameters, initOverrides) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
184
|
+
return __generator(this, function (_a) {
|
|
185
|
+
switch (_a.label) {
|
|
186
|
+
case 0:
|
|
187
|
+
if (requestParameters['currency'] == null) {
|
|
188
|
+
throw new runtime.RequiredError('currency', 'Required parameter "currency" was null or undefined when calling getSalesByTld().');
|
|
189
|
+
}
|
|
190
|
+
queryParameters = {};
|
|
191
|
+
if (requestParameters['currency'] != null) {
|
|
192
|
+
queryParameters['currency'] = requestParameters['currency'];
|
|
193
|
+
}
|
|
194
|
+
if (requestParameters['dateRange'] != null) {
|
|
195
|
+
queryParameters['dateRange'] = requestParameters['dateRange'];
|
|
196
|
+
}
|
|
197
|
+
headerParameters = {};
|
|
198
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
199
|
+
token = this.configuration.accessToken;
|
|
200
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
201
|
+
case 1:
|
|
202
|
+
tokenString = _a.sent();
|
|
203
|
+
if (tokenString) {
|
|
204
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
205
|
+
}
|
|
206
|
+
_a.label = 2;
|
|
207
|
+
case 2: return [4 /*yield*/, this.request({
|
|
208
|
+
path: "/private/stats/sales-by-tld",
|
|
209
|
+
method: 'GET',
|
|
210
|
+
headers: headerParameters,
|
|
211
|
+
query: queryParameters,
|
|
212
|
+
}, initOverrides)];
|
|
213
|
+
case 3:
|
|
214
|
+
response = _a.sent();
|
|
215
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerSalesByTldStatsItemDtoFromJSON); })];
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
*/
|
|
223
|
+
StatsApi.prototype.getSalesByTld = function (requestParameters, initOverrides) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
225
|
+
var response;
|
|
226
|
+
return __generator(this, function (_a) {
|
|
227
|
+
switch (_a.label) {
|
|
228
|
+
case 0: return [4 /*yield*/, this.getSalesByTldRaw(requestParameters, initOverrides)];
|
|
229
|
+
case 1:
|
|
230
|
+
response = _a.sent();
|
|
231
|
+
return [4 /*yield*/, response.value()];
|
|
232
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
};
|
|
178
237
|
/**
|
|
179
238
|
*
|
|
180
239
|
*/
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SellerSalesByTldStatsItemDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SellerSalesByTldStatsItemDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SellerSalesByTldStatsItemDto
|
|
22
|
+
*/
|
|
23
|
+
tld: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SellerSalesByTldStatsItemDto
|
|
28
|
+
*/
|
|
29
|
+
totalSales: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SellerSalesByTldStatsItemDto
|
|
34
|
+
*/
|
|
35
|
+
avgSalePrice: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SellerSalesByTldStatsItemDto
|
|
40
|
+
*/
|
|
41
|
+
totalSalesAmount: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SellerSalesByTldStatsItemDto
|
|
46
|
+
*/
|
|
47
|
+
currency: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the SellerSalesByTldStatsItemDto interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfSellerSalesByTldStatsItemDto(value: object): value is SellerSalesByTldStatsItemDto;
|
|
53
|
+
export declare function SellerSalesByTldStatsItemDtoFromJSON(json: any): SellerSalesByTldStatsItemDto;
|
|
54
|
+
export declare function SellerSalesByTldStatsItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSalesByTldStatsItemDto;
|
|
55
|
+
export declare function SellerSalesByTldStatsItemDtoToJSON(json: any): SellerSalesByTldStatsItemDto;
|
|
56
|
+
export declare function SellerSalesByTldStatsItemDtoToJSONTyped(value?: SellerSalesByTldStatsItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSellerSalesByTldStatsItemDto = instanceOfSellerSalesByTldStatsItemDto;
|
|
17
|
+
exports.SellerSalesByTldStatsItemDtoFromJSON = SellerSalesByTldStatsItemDtoFromJSON;
|
|
18
|
+
exports.SellerSalesByTldStatsItemDtoFromJSONTyped = SellerSalesByTldStatsItemDtoFromJSONTyped;
|
|
19
|
+
exports.SellerSalesByTldStatsItemDtoToJSON = SellerSalesByTldStatsItemDtoToJSON;
|
|
20
|
+
exports.SellerSalesByTldStatsItemDtoToJSONTyped = SellerSalesByTldStatsItemDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SellerSalesByTldStatsItemDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSellerSalesByTldStatsItemDto(value) {
|
|
25
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('totalSales' in value) || value['totalSales'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('avgSalePrice' in value) || value['avgSalePrice'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('totalSalesAmount' in value) || value['totalSalesAmount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function SellerSalesByTldStatsItemDtoFromJSON(json) {
|
|
38
|
+
return SellerSalesByTldStatsItemDtoFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function SellerSalesByTldStatsItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'tld': json['tld'],
|
|
46
|
+
'totalSales': json['totalSales'],
|
|
47
|
+
'avgSalePrice': json['avgSalePrice'],
|
|
48
|
+
'totalSalesAmount': json['totalSalesAmount'],
|
|
49
|
+
'currency': json['currency'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function SellerSalesByTldStatsItemDtoToJSON(json) {
|
|
53
|
+
return SellerSalesByTldStatsItemDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function SellerSalesByTldStatsItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'tld': value['tld'],
|
|
62
|
+
'totalSales': value['totalSales'],
|
|
63
|
+
'avgSalePrice': value['avgSalePrice'],
|
|
64
|
+
'totalSalesAmount': value['totalSalesAmount'],
|
|
65
|
+
'currency': value['currency'],
|
|
66
|
+
};
|
|
67
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -369,6 +369,7 @@ export * from './SellerInvoiceSellerAccountDto';
|
|
|
369
369
|
export * from './SellerLeadDetails';
|
|
370
370
|
export * from './SellerPendingPayoutsByCurrencyStatsItemDto';
|
|
371
371
|
export * from './SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto';
|
|
372
|
+
export * from './SellerSalesByTldStatsItemDto';
|
|
372
373
|
export * from './SellerSalesCountStatsItemDto';
|
|
373
374
|
export * from './SellerScaleChallengeListItemDto';
|
|
374
375
|
export * from './SellerSecurityUserAccountDto';
|
package/dist/models/index.js
CHANGED
|
@@ -387,6 +387,7 @@ __exportStar(require("./SellerInvoiceSellerAccountDto"), exports);
|
|
|
387
387
|
__exportStar(require("./SellerLeadDetails"), exports);
|
|
388
388
|
__exportStar(require("./SellerPendingPayoutsByCurrencyStatsItemDto"), exports);
|
|
389
389
|
__exportStar(require("./SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto"), exports);
|
|
390
|
+
__exportStar(require("./SellerSalesByTldStatsItemDto"), exports);
|
|
390
391
|
__exportStar(require("./SellerSalesCountStatsItemDto"), exports);
|
|
391
392
|
__exportStar(require("./SellerScaleChallengeListItemDto"), exports);
|
|
392
393
|
__exportStar(require("./SellerSecurityUserAccountDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -50,6 +50,7 @@ import type {
|
|
|
50
50
|
ListDomains200Response,
|
|
51
51
|
NotFoundException,
|
|
52
52
|
ObjectId,
|
|
53
|
+
SellerSalesByTldStatsItemDto,
|
|
53
54
|
SellerSalesCountStatsItemDto,
|
|
54
55
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInput,
|
|
55
56
|
SubscriptionDetailsDto,
|
|
@@ -129,6 +130,8 @@ import {
|
|
|
129
130
|
NotFoundExceptionToJSON,
|
|
130
131
|
ObjectIdFromJSON,
|
|
131
132
|
ObjectIdToJSON,
|
|
133
|
+
SellerSalesByTldStatsItemDtoFromJSON,
|
|
134
|
+
SellerSalesByTldStatsItemDtoToJSON,
|
|
132
135
|
SellerSalesCountStatsItemDtoFromJSON,
|
|
133
136
|
SellerSalesCountStatsItemDtoToJSON,
|
|
134
137
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSON,
|
|
@@ -145,6 +148,10 @@ import {
|
|
|
145
148
|
ValidationExceptionToJSON,
|
|
146
149
|
} from '../models/index';
|
|
147
150
|
|
|
151
|
+
export interface AdminApiAdminDeleteAuctionRequest {
|
|
152
|
+
auctionId: string;
|
|
153
|
+
}
|
|
154
|
+
|
|
148
155
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
149
156
|
filter?: object;
|
|
150
157
|
page?: number;
|
|
@@ -218,6 +225,12 @@ export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
|
218
225
|
domainTransferId: string;
|
|
219
226
|
}
|
|
220
227
|
|
|
228
|
+
export interface AdminApiGetAdminSalesByTldRequest {
|
|
229
|
+
currency: string;
|
|
230
|
+
accountId?: string;
|
|
231
|
+
dateRange?: any | null;
|
|
232
|
+
}
|
|
233
|
+
|
|
221
234
|
export interface AdminApiGetAllAccountsSalesCountRequest {
|
|
222
235
|
dateRange?: any | null;
|
|
223
236
|
}
|
|
@@ -397,6 +410,46 @@ export interface AdminApiVerifyBankAccountRequest {
|
|
|
397
410
|
*/
|
|
398
411
|
export class AdminApi extends runtime.BaseAPI {
|
|
399
412
|
|
|
413
|
+
/**
|
|
414
|
+
*
|
|
415
|
+
*/
|
|
416
|
+
async adminDeleteAuctionRaw(requestParameters: AdminApiAdminDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
417
|
+
if (requestParameters['auctionId'] == null) {
|
|
418
|
+
throw new runtime.RequiredError(
|
|
419
|
+
'auctionId',
|
|
420
|
+
'Required parameter "auctionId" was null or undefined when calling adminDeleteAuction().'
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
const queryParameters: any = {};
|
|
425
|
+
|
|
426
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
427
|
+
|
|
428
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
429
|
+
const token = this.configuration.accessToken;
|
|
430
|
+
const tokenString = await token("bearer", []);
|
|
431
|
+
|
|
432
|
+
if (tokenString) {
|
|
433
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
const response = await this.request({
|
|
437
|
+
path: `/admin/auctions/{auctionId}`.replace(`{${"auctionId"}}`, encodeURIComponent(String(requestParameters['auctionId']))),
|
|
438
|
+
method: 'DELETE',
|
|
439
|
+
headers: headerParameters,
|
|
440
|
+
query: queryParameters,
|
|
441
|
+
}, initOverrides);
|
|
442
|
+
|
|
443
|
+
return new runtime.VoidApiResponse(response);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
*
|
|
448
|
+
*/
|
|
449
|
+
async adminDeleteAuction(requestParameters: AdminApiAdminDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
450
|
+
await this.adminDeleteAuctionRaw(requestParameters, initOverrides);
|
|
451
|
+
}
|
|
452
|
+
|
|
400
453
|
/**
|
|
401
454
|
*
|
|
402
455
|
*/
|
|
@@ -1119,6 +1172,59 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1119
1172
|
return await response.value();
|
|
1120
1173
|
}
|
|
1121
1174
|
|
|
1175
|
+
/**
|
|
1176
|
+
*
|
|
1177
|
+
*/
|
|
1178
|
+
async getAdminSalesByTldRaw(requestParameters: AdminApiGetAdminSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesByTldStatsItemDto>>> {
|
|
1179
|
+
if (requestParameters['currency'] == null) {
|
|
1180
|
+
throw new runtime.RequiredError(
|
|
1181
|
+
'currency',
|
|
1182
|
+
'Required parameter "currency" was null or undefined when calling getAdminSalesByTld().'
|
|
1183
|
+
);
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
const queryParameters: any = {};
|
|
1187
|
+
|
|
1188
|
+
if (requestParameters['currency'] != null) {
|
|
1189
|
+
queryParameters['currency'] = requestParameters['currency'];
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
if (requestParameters['accountId'] != null) {
|
|
1193
|
+
queryParameters['accountId'] = requestParameters['accountId'];
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
if (requestParameters['dateRange'] != null) {
|
|
1197
|
+
queryParameters['dateRange'] = requestParameters['dateRange'];
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1201
|
+
|
|
1202
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1203
|
+
const token = this.configuration.accessToken;
|
|
1204
|
+
const tokenString = await token("bearer", []);
|
|
1205
|
+
|
|
1206
|
+
if (tokenString) {
|
|
1207
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
const response = await this.request({
|
|
1211
|
+
path: `/admin/stats/sales-by-tld`,
|
|
1212
|
+
method: 'GET',
|
|
1213
|
+
headers: headerParameters,
|
|
1214
|
+
query: queryParameters,
|
|
1215
|
+
}, initOverrides);
|
|
1216
|
+
|
|
1217
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SellerSalesByTldStatsItemDtoFromJSON));
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
*
|
|
1222
|
+
*/
|
|
1223
|
+
async getAdminSalesByTld(requestParameters: AdminApiGetAdminSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesByTldStatsItemDto>> {
|
|
1224
|
+
const response = await this.getAdminSalesByTldRaw(requestParameters, initOverrides);
|
|
1225
|
+
return await response.value();
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1122
1228
|
/**
|
|
1123
1229
|
*
|
|
1124
1230
|
*/
|
package/src/apis/StatsApi.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
SellerPendingPayoutsByCurrencyStatsItemDto,
|
|
19
19
|
SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto,
|
|
20
|
+
SellerSalesByTldStatsItemDto,
|
|
20
21
|
SellerSalesCountStatsItemDto,
|
|
21
22
|
SellerTotalEarningsByCurrencyOverTimeStatsItemDto,
|
|
22
23
|
SellerTotalEarningsByCurrencyStatsItemDto,
|
|
@@ -28,6 +29,8 @@ import {
|
|
|
28
29
|
SellerPendingPayoutsByCurrencyStatsItemDtoToJSON,
|
|
29
30
|
SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSON,
|
|
30
31
|
SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoToJSON,
|
|
32
|
+
SellerSalesByTldStatsItemDtoFromJSON,
|
|
33
|
+
SellerSalesByTldStatsItemDtoToJSON,
|
|
31
34
|
SellerSalesCountStatsItemDtoFromJSON,
|
|
32
35
|
SellerSalesCountStatsItemDtoToJSON,
|
|
33
36
|
SellerTotalEarningsByCurrencyOverTimeStatsItemDtoFromJSON,
|
|
@@ -40,6 +43,11 @@ import {
|
|
|
40
43
|
ValidationExceptionToJSON,
|
|
41
44
|
} from '../models/index';
|
|
42
45
|
|
|
46
|
+
export interface StatsApiGetSalesByTldRequest {
|
|
47
|
+
currency: string;
|
|
48
|
+
dateRange?: any | null;
|
|
49
|
+
}
|
|
50
|
+
|
|
43
51
|
export interface StatsApiGetSalesCountRequest {
|
|
44
52
|
dateRange?: any | null;
|
|
45
53
|
}
|
|
@@ -125,6 +133,55 @@ export class StatsApi extends runtime.BaseAPI {
|
|
|
125
133
|
return await response.value();
|
|
126
134
|
}
|
|
127
135
|
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
async getSalesByTldRaw(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesByTldStatsItemDto>>> {
|
|
140
|
+
if (requestParameters['currency'] == null) {
|
|
141
|
+
throw new runtime.RequiredError(
|
|
142
|
+
'currency',
|
|
143
|
+
'Required parameter "currency" was null or undefined when calling getSalesByTld().'
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const queryParameters: any = {};
|
|
148
|
+
|
|
149
|
+
if (requestParameters['currency'] != null) {
|
|
150
|
+
queryParameters['currency'] = requestParameters['currency'];
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (requestParameters['dateRange'] != null) {
|
|
154
|
+
queryParameters['dateRange'] = requestParameters['dateRange'];
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
158
|
+
|
|
159
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
160
|
+
const token = this.configuration.accessToken;
|
|
161
|
+
const tokenString = await token("bearer", []);
|
|
162
|
+
|
|
163
|
+
if (tokenString) {
|
|
164
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
const response = await this.request({
|
|
168
|
+
path: `/private/stats/sales-by-tld`,
|
|
169
|
+
method: 'GET',
|
|
170
|
+
headers: headerParameters,
|
|
171
|
+
query: queryParameters,
|
|
172
|
+
}, initOverrides);
|
|
173
|
+
|
|
174
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SellerSalesByTldStatsItemDtoFromJSON));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
async getSalesByTld(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesByTldStatsItemDto>> {
|
|
181
|
+
const response = await this.getSalesByTldRaw(requestParameters, initOverrides);
|
|
182
|
+
return await response.value();
|
|
183
|
+
}
|
|
184
|
+
|
|
128
185
|
/**
|
|
129
186
|
*
|
|
130
187
|
*/
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SellerSalesByTldStatsItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SellerSalesByTldStatsItemDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SellerSalesByTldStatsItemDto
|
|
26
|
+
*/
|
|
27
|
+
tld: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SellerSalesByTldStatsItemDto
|
|
32
|
+
*/
|
|
33
|
+
totalSales: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SellerSalesByTldStatsItemDto
|
|
38
|
+
*/
|
|
39
|
+
avgSalePrice: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SellerSalesByTldStatsItemDto
|
|
44
|
+
*/
|
|
45
|
+
totalSalesAmount: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SellerSalesByTldStatsItemDto
|
|
50
|
+
*/
|
|
51
|
+
currency: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the SellerSalesByTldStatsItemDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfSellerSalesByTldStatsItemDto(value: object): value is SellerSalesByTldStatsItemDto {
|
|
58
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
59
|
+
if (!('totalSales' in value) || value['totalSales'] === undefined) return false;
|
|
60
|
+
if (!('avgSalePrice' in value) || value['avgSalePrice'] === undefined) return false;
|
|
61
|
+
if (!('totalSalesAmount' in value) || value['totalSalesAmount'] === undefined) return false;
|
|
62
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function SellerSalesByTldStatsItemDtoFromJSON(json: any): SellerSalesByTldStatsItemDto {
|
|
67
|
+
return SellerSalesByTldStatsItemDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SellerSalesByTldStatsItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSalesByTldStatsItemDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'tld': json['tld'],
|
|
77
|
+
'totalSales': json['totalSales'],
|
|
78
|
+
'avgSalePrice': json['avgSalePrice'],
|
|
79
|
+
'totalSalesAmount': json['totalSalesAmount'],
|
|
80
|
+
'currency': json['currency'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function SellerSalesByTldStatsItemDtoToJSON(json: any): SellerSalesByTldStatsItemDto {
|
|
85
|
+
return SellerSalesByTldStatsItemDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function SellerSalesByTldStatsItemDtoToJSONTyped(value?: SellerSalesByTldStatsItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'tld': value['tld'],
|
|
96
|
+
'totalSales': value['totalSales'],
|
|
97
|
+
'avgSalePrice': value['avgSalePrice'],
|
|
98
|
+
'totalSalesAmount': value['totalSalesAmount'],
|
|
99
|
+
'currency': value['currency'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -371,6 +371,7 @@ export * from './SellerInvoiceSellerAccountDto';
|
|
|
371
371
|
export * from './SellerLeadDetails';
|
|
372
372
|
export * from './SellerPendingPayoutsByCurrencyStatsItemDto';
|
|
373
373
|
export * from './SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto';
|
|
374
|
+
export * from './SellerSalesByTldStatsItemDto';
|
|
374
375
|
export * from './SellerSalesCountStatsItemDto';
|
|
375
376
|
export * from './SellerScaleChallengeListItemDto';
|
|
376
377
|
export * from './SellerSecurityUserAccountDto';
|