@randock/nameshift-api-client 0.0.446 → 0.0.448
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 +2 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +26 -0
- package/dist/apis/AdminApi.js +106 -0
- package/dist/apis/MarketApi.d.ts +71 -0
- package/dist/apis/MarketApi.js +299 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AdminDomainListItemDto.d.ts +6 -0
- package/dist/models/AdminDomainListItemDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +6 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +4 -0
- package/dist/models/LeadDto.d.ts +6 -0
- package/dist/models/LeadDto.js +4 -0
- package/dist/models/ListLeadsResultItem.d.ts +6 -0
- package/dist/models/ListLeadsResultItem.js +4 -0
- package/dist/models/PopularCategoryDto.d.ts +44 -0
- package/dist/models/PopularCategoryDto.js +59 -0
- package/dist/models/SellerLeadDetails.d.ts +6 -0
- package/dist/models/SellerLeadDetails.js +4 -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 +92 -0
- package/src/apis/MarketApi.ts +204 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AdminDomainListItemDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +9 -0
- package/src/models/LeadDto.ts +9 -0
- package/src/models/ListLeadsResultItem.ts +9 -0
- package/src/models/PopularCategoryDto.ts +84 -0
- package/src/models/SellerLeadDetails.ts +9 -0
- package/src/models/index.ts +1 -0
|
@@ -0,0 +1,204 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
PopularCategoryDto,
|
|
19
|
+
PublicDomainDto,
|
|
20
|
+
PublicSaleDto,
|
|
21
|
+
ValidationException,
|
|
22
|
+
} from '../models/index';
|
|
23
|
+
import {
|
|
24
|
+
PopularCategoryDtoFromJSON,
|
|
25
|
+
PopularCategoryDtoToJSON,
|
|
26
|
+
PublicDomainDtoFromJSON,
|
|
27
|
+
PublicDomainDtoToJSON,
|
|
28
|
+
PublicSaleDtoFromJSON,
|
|
29
|
+
PublicSaleDtoToJSON,
|
|
30
|
+
ValidationExceptionFromJSON,
|
|
31
|
+
ValidationExceptionToJSON,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
|
|
34
|
+
export interface MarketApiListPopularCategoriesRequest {
|
|
35
|
+
limit?: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface MarketApiListRecentSalesRequest {
|
|
39
|
+
limit?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface MarketApiListShowcaseDomainsRequest {
|
|
43
|
+
limit?: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface MarketApiListTopSalesRequest {
|
|
47
|
+
limit?: number;
|
|
48
|
+
months?: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
export class MarketApi extends runtime.BaseAPI {
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Returns the categories with the most linked domains, most popular first.
|
|
58
|
+
* List popular domain categories
|
|
59
|
+
*/
|
|
60
|
+
async listPopularCategoriesRaw(requestParameters: MarketApiListPopularCategoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PopularCategoryDto>>> {
|
|
61
|
+
const queryParameters: any = {};
|
|
62
|
+
|
|
63
|
+
if (requestParameters['limit'] != null) {
|
|
64
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
68
|
+
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/market/categories/popular`,
|
|
75
|
+
method: 'GET',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PopularCategoryDtoFromJSON));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Returns the categories with the most linked domains, most popular first.
|
|
85
|
+
* List popular domain categories
|
|
86
|
+
*/
|
|
87
|
+
async listPopularCategories(requestParameters: MarketApiListPopularCategoriesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PopularCategoryDto>> {
|
|
88
|
+
const response = await this.listPopularCategoriesRaw(requestParameters, initOverrides);
|
|
89
|
+
return await response.value();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Returns the latest sales on the platform (buy-now and subscription starts), newest first.
|
|
94
|
+
* List recent sales
|
|
95
|
+
*/
|
|
96
|
+
async listRecentSalesRaw(requestParameters: MarketApiListRecentSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicSaleDto>>> {
|
|
97
|
+
const queryParameters: any = {};
|
|
98
|
+
|
|
99
|
+
if (requestParameters['limit'] != null) {
|
|
100
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
104
|
+
|
|
105
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const response = await this.request({
|
|
110
|
+
path: `/market/sales/recent`,
|
|
111
|
+
method: 'GET',
|
|
112
|
+
headers: headerParameters,
|
|
113
|
+
query: queryParameters,
|
|
114
|
+
}, initOverrides);
|
|
115
|
+
|
|
116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PublicSaleDtoFromJSON));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Returns the latest sales on the platform (buy-now and subscription starts), newest first.
|
|
121
|
+
* List recent sales
|
|
122
|
+
*/
|
|
123
|
+
async listRecentSales(requestParameters: MarketApiListRecentSalesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicSaleDto>> {
|
|
124
|
+
const response = await this.listRecentSalesRaw(requestParameters, initOverrides);
|
|
125
|
+
return await response.value();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Returns the domains an admin picked for the showcase, most recently picked first. Sold and deleted domains are left out; an empty array means nothing is picked.
|
|
130
|
+
* List showcase domains
|
|
131
|
+
*/
|
|
132
|
+
async listShowcaseDomainsRaw(requestParameters: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicDomainDto>>> {
|
|
133
|
+
const queryParameters: any = {};
|
|
134
|
+
|
|
135
|
+
if (requestParameters['limit'] != null) {
|
|
136
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
140
|
+
|
|
141
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const response = await this.request({
|
|
146
|
+
path: `/market/showcase`,
|
|
147
|
+
method: 'GET',
|
|
148
|
+
headers: headerParameters,
|
|
149
|
+
query: queryParameters,
|
|
150
|
+
}, initOverrides);
|
|
151
|
+
|
|
152
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PublicDomainDtoFromJSON));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Returns the domains an admin picked for the showcase, most recently picked first. Sold and deleted domains are left out; an empty array means nothing is picked.
|
|
157
|
+
* List showcase domains
|
|
158
|
+
*/
|
|
159
|
+
async listShowcaseDomains(requestParameters: MarketApiListShowcaseDomainsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicDomainDto>> {
|
|
160
|
+
const response = await this.listShowcaseDomainsRaw(requestParameters, initOverrides);
|
|
161
|
+
return await response.value();
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
|
|
166
|
+
* List top sales
|
|
167
|
+
*/
|
|
168
|
+
async listTopSalesRaw(requestParameters: MarketApiListTopSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicSaleDto>>> {
|
|
169
|
+
const queryParameters: any = {};
|
|
170
|
+
|
|
171
|
+
if (requestParameters['limit'] != null) {
|
|
172
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (requestParameters['months'] != null) {
|
|
176
|
+
queryParameters['months'] = requestParameters['months'];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
180
|
+
|
|
181
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
182
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const response = await this.request({
|
|
186
|
+
path: `/market/sales/top`,
|
|
187
|
+
method: 'GET',
|
|
188
|
+
headers: headerParameters,
|
|
189
|
+
query: queryParameters,
|
|
190
|
+
}, initOverrides);
|
|
191
|
+
|
|
192
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PublicSaleDtoFromJSON));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Returns the platform’s own highest-priced buy-now sales within the window, ranked by the EUR-normalized ex-VAT total, highest first.
|
|
197
|
+
* List top sales
|
|
198
|
+
*/
|
|
199
|
+
async listTopSales(requestParameters: MarketApiListTopSalesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicSaleDto>> {
|
|
200
|
+
const response = await this.listTopSalesRaw(requestParameters, initOverrides);
|
|
201
|
+
return await response.value();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './EppApi';
|
|
|
17
17
|
export * from './InvoicesApi';
|
|
18
18
|
export * from './LeadsApi';
|
|
19
19
|
export * from './LeadsPublicApi';
|
|
20
|
+
export * from './MarketApi';
|
|
20
21
|
export * from './MarketingApi';
|
|
21
22
|
export * from './NotificationsApi';
|
|
22
23
|
export * from './OrdersPublicApi';
|
|
@@ -243,6 +243,12 @@ export interface AdminDomainListItemDto {
|
|
|
243
243
|
* @memberof AdminDomainListItemDto
|
|
244
244
|
*/
|
|
245
245
|
lockedUntil: Date | null;
|
|
246
|
+
/**
|
|
247
|
+
* Whether an admin picked this domain for the public showcase on the website.
|
|
248
|
+
* @type {boolean}
|
|
249
|
+
* @memberof AdminDomainListItemDto
|
|
250
|
+
*/
|
|
251
|
+
showcased: boolean;
|
|
246
252
|
/**
|
|
247
253
|
* Account that owns the domain.
|
|
248
254
|
* @type {AccountDto}
|
|
@@ -305,6 +311,7 @@ export function instanceOfAdminDomainListItemDto(value: object): value is AdminD
|
|
|
305
311
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
306
312
|
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
307
313
|
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
|
|
314
|
+
if (!('showcased' in value) || value['showcased'] === undefined) return false;
|
|
308
315
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
309
316
|
if (!('pointsToOurServerReason' in value) || value['pointsToOurServerReason'] === undefined) return false;
|
|
310
317
|
return true;
|
|
@@ -349,6 +356,7 @@ export function AdminDomainListItemDtoFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
349
356
|
'isDeleteable': json['isDeleteable'],
|
|
350
357
|
'isLocked': json['isLocked'],
|
|
351
358
|
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
359
|
+
'showcased': json['showcased'],
|
|
352
360
|
'account': AccountDtoFromJSON(json['account']),
|
|
353
361
|
'pointsToOurServerReason': json['pointsToOurServerReason'],
|
|
354
362
|
};
|
|
@@ -394,6 +402,7 @@ export function AdminDomainListItemDtoToJSONTyped(value?: AdminDomainListItemDto
|
|
|
394
402
|
'isDeleteable': value['isDeleteable'],
|
|
395
403
|
'isLocked': value['isLocked'],
|
|
396
404
|
'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
|
|
405
|
+
'showcased': value['showcased'],
|
|
397
406
|
'account': AccountDtoToJSON(value['account']),
|
|
398
407
|
'pointsToOurServerReason': value['pointsToOurServerReason'],
|
|
399
408
|
};
|
|
@@ -243,6 +243,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
|
243
243
|
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
244
244
|
*/
|
|
245
245
|
lockedUntil: Date | null;
|
|
246
|
+
/**
|
|
247
|
+
* Whether an admin picked this domain for the public showcase on the website.
|
|
248
|
+
* @type {boolean}
|
|
249
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
250
|
+
*/
|
|
251
|
+
showcased: boolean;
|
|
246
252
|
/**
|
|
247
253
|
* Account that owns the domain.
|
|
248
254
|
* @type {AccountDto}
|
|
@@ -290,6 +296,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(
|
|
|
290
296
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
291
297
|
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
292
298
|
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
|
|
299
|
+
if (!('showcased' in value) || value['showcased'] === undefined) return false;
|
|
293
300
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
294
301
|
if (!('hasAuction' in value) || value['hasAuction'] === undefined) return false;
|
|
295
302
|
return true;
|
|
@@ -334,6 +341,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyp
|
|
|
334
341
|
'isDeleteable': json['isDeleteable'],
|
|
335
342
|
'isLocked': json['isLocked'],
|
|
336
343
|
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
344
|
+
'showcased': json['showcased'],
|
|
337
345
|
'account': AccountDtoFromJSON(json['account']),
|
|
338
346
|
'hasAuction': json['hasAuction'],
|
|
339
347
|
};
|
|
@@ -379,6 +387,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped
|
|
|
379
387
|
'isDeleteable': value['isDeleteable'],
|
|
380
388
|
'isLocked': value['isLocked'],
|
|
381
389
|
'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
|
|
390
|
+
'showcased': value['showcased'],
|
|
382
391
|
'account': AccountDtoToJSON(value['account']),
|
|
383
392
|
'hasAuction': value['hasAuction'],
|
|
384
393
|
};
|
|
@@ -243,6 +243,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
243
243
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
244
244
|
*/
|
|
245
245
|
lockedUntil: Date | null;
|
|
246
|
+
/**
|
|
247
|
+
* Whether an admin picked this domain for the public showcase on the website.
|
|
248
|
+
* @type {boolean}
|
|
249
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
250
|
+
*/
|
|
251
|
+
showcased: boolean;
|
|
246
252
|
/**
|
|
247
253
|
* Account managing the domain on behalf of the owner, when a hijacker is assigned.
|
|
248
254
|
* @type {AccountDto}
|
|
@@ -290,6 +296,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
290
296
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
291
297
|
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
292
298
|
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
|
|
299
|
+
if (!('showcased' in value) || value['showcased'] === undefined) return false;
|
|
293
300
|
if (!('hijacker' in value) || value['hijacker'] === undefined) return false;
|
|
294
301
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
295
302
|
return true;
|
|
@@ -334,6 +341,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
334
341
|
'isDeleteable': json['isDeleteable'],
|
|
335
342
|
'isLocked': json['isLocked'],
|
|
336
343
|
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
344
|
+
'showcased': json['showcased'],
|
|
337
345
|
'hijacker': AccountDtoFromJSON(json['hijacker']),
|
|
338
346
|
'account': AccountDtoFromJSON(json['account']),
|
|
339
347
|
};
|
|
@@ -379,6 +387,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
|
|
|
379
387
|
'isDeleteable': value['isDeleteable'],
|
|
380
388
|
'isLocked': value['isLocked'],
|
|
381
389
|
'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
|
|
390
|
+
'showcased': value['showcased'],
|
|
382
391
|
'hijacker': AccountDtoToJSON(value['hijacker']),
|
|
383
392
|
'account': AccountDtoToJSON(value['account']),
|
|
384
393
|
};
|
|
@@ -243,6 +243,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
|
|
|
243
243
|
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
244
244
|
*/
|
|
245
245
|
lockedUntil: Date | null;
|
|
246
|
+
/**
|
|
247
|
+
* Whether an admin picked this domain for the public showcase on the website.
|
|
248
|
+
* @type {boolean}
|
|
249
|
+
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
250
|
+
*/
|
|
251
|
+
showcased: boolean;
|
|
246
252
|
/**
|
|
247
253
|
* SEO metrics for the domain from Moz, Majestic, and historical sources.
|
|
248
254
|
* @type {SeoMetricsDto}
|
|
@@ -284,6 +290,7 @@ export function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value: object):
|
|
|
284
290
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
285
291
|
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
286
292
|
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
|
|
293
|
+
if (!('showcased' in value) || value['showcased'] === undefined) return false;
|
|
287
294
|
if (!('seoMetrics' in value) || value['seoMetrics'] === undefined) return false;
|
|
288
295
|
return true;
|
|
289
296
|
}
|
|
@@ -327,6 +334,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json: any, i
|
|
|
327
334
|
'isDeleteable': json['isDeleteable'],
|
|
328
335
|
'isLocked': json['isLocked'],
|
|
329
336
|
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
337
|
+
'showcased': json['showcased'],
|
|
330
338
|
'seoMetrics': SeoMetricsDtoFromJSON(json['seoMetrics']),
|
|
331
339
|
};
|
|
332
340
|
}
|
|
@@ -371,6 +379,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value?: Inters
|
|
|
371
379
|
'isDeleteable': value['isDeleteable'],
|
|
372
380
|
'isLocked': value['isLocked'],
|
|
373
381
|
'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
|
|
382
|
+
'showcased': value['showcased'],
|
|
374
383
|
'seoMetrics': SeoMetricsDtoToJSON(value['seoMetrics']),
|
|
375
384
|
};
|
|
376
385
|
}
|
|
@@ -135,6 +135,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
135
135
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
136
136
|
*/
|
|
137
137
|
unreadSellerMessagesNumber: number;
|
|
138
|
+
/**
|
|
139
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
140
|
+
* @type {number}
|
|
141
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
142
|
+
*/
|
|
143
|
+
messagesInRowLimit: number;
|
|
138
144
|
/**
|
|
139
145
|
* URL for completing order payment, if available.
|
|
140
146
|
* @type {string}
|
|
@@ -271,6 +277,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
|
|
|
271
277
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
272
278
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
273
279
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
280
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
|
|
274
281
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
275
282
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
276
283
|
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
@@ -307,6 +314,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
307
314
|
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
|
|
308
315
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
309
316
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
317
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
310
318
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
311
319
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
312
320
|
'manualType': json['manualType'],
|
|
@@ -344,6 +352,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
344
352
|
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
|
|
345
353
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
346
354
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
355
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
347
356
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
348
357
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
349
358
|
'manualType': value['manualType'],
|
package/src/models/LeadDto.ts
CHANGED
|
@@ -128,6 +128,12 @@ export interface LeadDto {
|
|
|
128
128
|
* @memberof LeadDto
|
|
129
129
|
*/
|
|
130
130
|
unreadSellerMessagesNumber: number;
|
|
131
|
+
/**
|
|
132
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
133
|
+
* @type {number}
|
|
134
|
+
* @memberof LeadDto
|
|
135
|
+
*/
|
|
136
|
+
messagesInRowLimit: number;
|
|
131
137
|
/**
|
|
132
138
|
* URL for completing order payment, if available.
|
|
133
139
|
* @type {string}
|
|
@@ -258,6 +264,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
|
|
|
258
264
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
259
265
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
260
266
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
267
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
|
|
261
268
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
262
269
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
263
270
|
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
@@ -293,6 +300,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
|
|
|
293
300
|
'domain': LeadDomainDtoFromJSON(json['domain']),
|
|
294
301
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
295
302
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
303
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
296
304
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
297
305
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
298
306
|
'manualType': json['manualType'],
|
|
@@ -329,6 +337,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
|
|
|
329
337
|
'domain': LeadDomainDtoToJSON(value['domain']),
|
|
330
338
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
331
339
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
340
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
332
341
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
333
342
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
334
343
|
'manualType': value['manualType'],
|
|
@@ -135,6 +135,12 @@ export interface ListLeadsResultItem {
|
|
|
135
135
|
* @memberof ListLeadsResultItem
|
|
136
136
|
*/
|
|
137
137
|
unreadSellerMessagesNumber: number;
|
|
138
|
+
/**
|
|
139
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
140
|
+
* @type {number}
|
|
141
|
+
* @memberof ListLeadsResultItem
|
|
142
|
+
*/
|
|
143
|
+
messagesInRowLimit: number;
|
|
138
144
|
/**
|
|
139
145
|
* URL for completing order payment, if available.
|
|
140
146
|
* @type {string}
|
|
@@ -336,6 +342,7 @@ export function instanceOfListLeadsResultItem(value: object): value is ListLeads
|
|
|
336
342
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
337
343
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
338
344
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
345
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
|
|
339
346
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
340
347
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
341
348
|
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
@@ -379,6 +386,7 @@ export function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
379
386
|
'domain': LeadDomainDtoFromJSON(json['domain']),
|
|
380
387
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
381
388
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
389
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
382
390
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
383
391
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
384
392
|
'manualType': json['manualType'],
|
|
@@ -423,6 +431,7 @@ export function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | nul
|
|
|
423
431
|
'domain': LeadDomainDtoToJSON(value['domain']),
|
|
424
432
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
425
433
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
434
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
426
435
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
427
436
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
428
437
|
'manualType': value['manualType'],
|
|
@@ -0,0 +1,84 @@
|
|
|
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 PopularCategoryDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PopularCategoryDto {
|
|
22
|
+
/**
|
|
23
|
+
* Category ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PopularCategoryDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Category name.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PopularCategoryDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Number of domains linked to the category.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PopularCategoryDto
|
|
38
|
+
*/
|
|
39
|
+
domainCount: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PopularCategoryDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPopularCategoryDto(value: object): value is PopularCategoryDto {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('domainCount' in value) || value['domainCount'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PopularCategoryDtoFromJSON(json: any): PopularCategoryDto {
|
|
53
|
+
return PopularCategoryDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PopularCategoryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PopularCategoryDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'domainCount': json['domainCount'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PopularCategoryDtoToJSON(json: any): PopularCategoryDto {
|
|
69
|
+
return PopularCategoryDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PopularCategoryDtoToJSONTyped(value?: PopularCategoryDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'domainCount': value['domainCount'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -142,6 +142,12 @@ export interface SellerLeadDetails {
|
|
|
142
142
|
* @memberof SellerLeadDetails
|
|
143
143
|
*/
|
|
144
144
|
unreadSellerMessagesNumber: number;
|
|
145
|
+
/**
|
|
146
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
147
|
+
* @type {number}
|
|
148
|
+
* @memberof SellerLeadDetails
|
|
149
|
+
*/
|
|
150
|
+
messagesInRowLimit: number;
|
|
145
151
|
/**
|
|
146
152
|
* URL for completing order payment, if available.
|
|
147
153
|
* @type {string}
|
|
@@ -290,6 +296,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
|
|
|
290
296
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
291
297
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
292
298
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
299
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
|
|
293
300
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
294
301
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
295
302
|
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
@@ -328,6 +335,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
328
335
|
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
|
|
329
336
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
330
337
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
338
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
331
339
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
332
340
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
333
341
|
'manualType': json['manualType'],
|
|
@@ -367,6 +375,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
|
|
|
367
375
|
'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
|
|
368
376
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
369
377
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
378
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
370
379
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
371
380
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
372
381
|
'manualType': value['manualType'],
|
package/src/models/index.ts
CHANGED
|
@@ -356,6 +356,7 @@ export * from './PartnerAuctionDto';
|
|
|
356
356
|
export * from './PartnerDomainFindDto';
|
|
357
357
|
export * from './PayAccountPaymentInput';
|
|
358
358
|
export * from './PaymentMethodsStatsDto';
|
|
359
|
+
export * from './PopularCategoryDto';
|
|
359
360
|
export * from './PrivateAccountGetMeResponse';
|
|
360
361
|
export * from './PublicAccountInformationDto';
|
|
361
362
|
export * from './PublicAuctionListItemDto';
|