@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
|
@@ -87,6 +87,8 @@ function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value)
|
|
|
87
87
|
return false;
|
|
88
88
|
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
|
|
89
89
|
return false;
|
|
90
|
+
if (!('showcased' in value) || value['showcased'] === undefined)
|
|
91
|
+
return false;
|
|
90
92
|
if (!('account' in value) || value['account'] === undefined)
|
|
91
93
|
return false;
|
|
92
94
|
if (!('hasAuction' in value) || value['hasAuction'] === undefined)
|
|
@@ -130,6 +132,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json
|
|
|
130
132
|
'isDeleteable': json['isDeleteable'],
|
|
131
133
|
'isLocked': json['isLocked'],
|
|
132
134
|
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
135
|
+
'showcased': json['showcased'],
|
|
133
136
|
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
134
137
|
'hasAuction': json['hasAuction'],
|
|
135
138
|
};
|
|
@@ -172,6 +175,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value,
|
|
|
172
175
|
'isDeleteable': value['isDeleteable'],
|
|
173
176
|
'isLocked': value['isLocked'],
|
|
174
177
|
'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
|
|
178
|
+
'showcased': value['showcased'],
|
|
175
179
|
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
176
180
|
'hasAuction': value['hasAuction'],
|
|
177
181
|
};
|
|
@@ -196,6 +196,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
196
196
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
197
197
|
*/
|
|
198
198
|
lockedUntil: Date | null;
|
|
199
|
+
/**
|
|
200
|
+
* Whether an admin picked this domain for the public showcase on the website.
|
|
201
|
+
* @type {boolean}
|
|
202
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
203
|
+
*/
|
|
204
|
+
showcased: boolean;
|
|
199
205
|
/**
|
|
200
206
|
* Account managing the domain on behalf of the owner, when a hijacker is assigned.
|
|
201
207
|
* @type {AccountDto}
|
|
@@ -87,6 +87,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
|
|
|
87
87
|
return false;
|
|
88
88
|
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
|
|
89
89
|
return false;
|
|
90
|
+
if (!('showcased' in value) || value['showcased'] === undefined)
|
|
91
|
+
return false;
|
|
90
92
|
if (!('hijacker' in value) || value['hijacker'] === undefined)
|
|
91
93
|
return false;
|
|
92
94
|
if (!('account' in value) || value['account'] === undefined)
|
|
@@ -130,6 +132,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
|
|
|
130
132
|
'isDeleteable': json['isDeleteable'],
|
|
131
133
|
'isLocked': json['isLocked'],
|
|
132
134
|
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
135
|
+
'showcased': json['showcased'],
|
|
133
136
|
'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
|
|
134
137
|
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
135
138
|
};
|
|
@@ -172,6 +175,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
|
|
|
172
175
|
'isDeleteable': value['isDeleteable'],
|
|
173
176
|
'isLocked': value['isLocked'],
|
|
174
177
|
'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
|
|
178
|
+
'showcased': value['showcased'],
|
|
175
179
|
'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
|
|
176
180
|
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
177
181
|
};
|
|
@@ -196,6 +196,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
|
|
|
196
196
|
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
197
197
|
*/
|
|
198
198
|
lockedUntil: Date | null;
|
|
199
|
+
/**
|
|
200
|
+
* Whether an admin picked this domain for the public showcase on the website.
|
|
201
|
+
* @type {boolean}
|
|
202
|
+
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
203
|
+
*/
|
|
204
|
+
showcased: boolean;
|
|
199
205
|
/**
|
|
200
206
|
* SEO metrics for the domain from Moz, Majestic, and historical sources.
|
|
201
207
|
* @type {SeoMetricsDto}
|
|
@@ -87,6 +87,8 @@ function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
|
|
|
87
87
|
return false;
|
|
88
88
|
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
|
|
89
89
|
return false;
|
|
90
|
+
if (!('showcased' in value) || value['showcased'] === undefined)
|
|
91
|
+
return false;
|
|
90
92
|
if (!('seoMetrics' in value) || value['seoMetrics'] === undefined)
|
|
91
93
|
return false;
|
|
92
94
|
return true;
|
|
@@ -128,6 +130,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscrim
|
|
|
128
130
|
'isDeleteable': json['isDeleteable'],
|
|
129
131
|
'isLocked': json['isLocked'],
|
|
130
132
|
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
133
|
+
'showcased': json['showcased'],
|
|
131
134
|
'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoFromJSON)(json['seoMetrics']),
|
|
132
135
|
};
|
|
133
136
|
}
|
|
@@ -169,6 +172,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscrimi
|
|
|
169
172
|
'isDeleteable': value['isDeleteable'],
|
|
170
173
|
'isLocked': value['isLocked'],
|
|
171
174
|
'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
|
|
175
|
+
'showcased': value['showcased'],
|
|
172
176
|
'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoToJSON)(value['seoMetrics']),
|
|
173
177
|
};
|
|
174
178
|
}
|
|
@@ -88,6 +88,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
88
88
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
89
89
|
*/
|
|
90
90
|
unreadSellerMessagesNumber: number;
|
|
91
|
+
/**
|
|
92
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
95
|
+
*/
|
|
96
|
+
messagesInRowLimit: number;
|
|
91
97
|
/**
|
|
92
98
|
* URL for completing order payment, if available.
|
|
93
99
|
* @type {string}
|
|
@@ -89,6 +89,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetai
|
|
|
89
89
|
return false;
|
|
90
90
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
|
|
91
91
|
return false;
|
|
92
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined)
|
|
93
|
+
return false;
|
|
92
94
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
|
|
93
95
|
return false;
|
|
94
96
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
@@ -134,6 +136,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
|
|
|
134
136
|
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON)(json['domain']),
|
|
135
137
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
136
138
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
139
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
137
140
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
138
141
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
139
142
|
'manualType': json['manualType'],
|
|
@@ -168,6 +171,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
|
|
|
168
171
|
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON)(value['domain']),
|
|
169
172
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
170
173
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
174
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
171
175
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
172
176
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
173
177
|
'manualType': value['manualType'],
|
package/dist/models/LeadDto.d.ts
CHANGED
|
@@ -87,6 +87,12 @@ export interface LeadDto {
|
|
|
87
87
|
* @memberof LeadDto
|
|
88
88
|
*/
|
|
89
89
|
unreadSellerMessagesNumber: number;
|
|
90
|
+
/**
|
|
91
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof LeadDto
|
|
94
|
+
*/
|
|
95
|
+
messagesInRowLimit: number;
|
|
90
96
|
/**
|
|
91
97
|
* URL for completing order payment, if available.
|
|
92
98
|
* @type {string}
|
package/dist/models/LeadDto.js
CHANGED
|
@@ -88,6 +88,8 @@ function instanceOfLeadDto(value) {
|
|
|
88
88
|
return false;
|
|
89
89
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
|
|
90
90
|
return false;
|
|
91
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined)
|
|
92
|
+
return false;
|
|
91
93
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
|
|
92
94
|
return false;
|
|
93
95
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
@@ -131,6 +133,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
131
133
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
|
|
132
134
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
133
135
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
136
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
134
137
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
135
138
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
136
139
|
'manualType': json['manualType'],
|
|
@@ -164,6 +167,7 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
164
167
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
|
|
165
168
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
166
169
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
170
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
167
171
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
168
172
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
169
173
|
'manualType': value['manualType'],
|
|
@@ -88,6 +88,12 @@ export interface ListLeadsResultItem {
|
|
|
88
88
|
* @memberof ListLeadsResultItem
|
|
89
89
|
*/
|
|
90
90
|
unreadSellerMessagesNumber: number;
|
|
91
|
+
/**
|
|
92
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof ListLeadsResultItem
|
|
95
|
+
*/
|
|
96
|
+
messagesInRowLimit: number;
|
|
91
97
|
/**
|
|
92
98
|
* URL for completing order payment, if available.
|
|
93
99
|
* @type {string}
|
|
@@ -108,6 +108,8 @@ function instanceOfListLeadsResultItem(value) {
|
|
|
108
108
|
return false;
|
|
109
109
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
|
|
110
110
|
return false;
|
|
111
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined)
|
|
112
|
+
return false;
|
|
111
113
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
|
|
112
114
|
return false;
|
|
113
115
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
@@ -167,6 +169,7 @@ function ListLeadsResultItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
167
169
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
|
|
168
170
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
169
171
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
172
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
170
173
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
171
174
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
172
175
|
'manualType': json['manualType'],
|
|
@@ -208,6 +211,7 @@ function ListLeadsResultItemToJSONTyped(value, ignoreDiscriminator) {
|
|
|
208
211
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
|
|
209
212
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
210
213
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
214
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
211
215
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
212
216
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
213
217
|
'manualType': value['manualType'],
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PopularCategoryDto
|
|
16
|
+
*/
|
|
17
|
+
export interface PopularCategoryDto {
|
|
18
|
+
/**
|
|
19
|
+
* Category ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PopularCategoryDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Category name.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PopularCategoryDto
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Number of domains linked to the category.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PopularCategoryDto
|
|
34
|
+
*/
|
|
35
|
+
domainCount: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PopularCategoryDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPopularCategoryDto(value: object): value is PopularCategoryDto;
|
|
41
|
+
export declare function PopularCategoryDtoFromJSON(json: any): PopularCategoryDto;
|
|
42
|
+
export declare function PopularCategoryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PopularCategoryDto;
|
|
43
|
+
export declare function PopularCategoryDtoToJSON(json: any): PopularCategoryDto;
|
|
44
|
+
export declare function PopularCategoryDtoToJSONTyped(value?: PopularCategoryDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPopularCategoryDto = instanceOfPopularCategoryDto;
|
|
17
|
+
exports.PopularCategoryDtoFromJSON = PopularCategoryDtoFromJSON;
|
|
18
|
+
exports.PopularCategoryDtoFromJSONTyped = PopularCategoryDtoFromJSONTyped;
|
|
19
|
+
exports.PopularCategoryDtoToJSON = PopularCategoryDtoToJSON;
|
|
20
|
+
exports.PopularCategoryDtoToJSONTyped = PopularCategoryDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PopularCategoryDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPopularCategoryDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('domainCount' in value) || value['domainCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PopularCategoryDtoFromJSON(json) {
|
|
34
|
+
return PopularCategoryDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PopularCategoryDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'domainCount': json['domainCount'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function PopularCategoryDtoToJSON(json) {
|
|
47
|
+
return PopularCategoryDtoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function PopularCategoryDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'domainCount': value['domainCount'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -89,6 +89,12 @@ export interface SellerLeadDetails {
|
|
|
89
89
|
* @memberof SellerLeadDetails
|
|
90
90
|
*/
|
|
91
91
|
unreadSellerMessagesNumber: number;
|
|
92
|
+
/**
|
|
93
|
+
* Maximum number of consecutive messages one side can send before waiting for a reply.
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof SellerLeadDetails
|
|
96
|
+
*/
|
|
97
|
+
messagesInRowLimit: number;
|
|
92
98
|
/**
|
|
93
99
|
* URL for completing order payment, if available.
|
|
94
100
|
* @type {string}
|
|
@@ -90,6 +90,8 @@ function instanceOfSellerLeadDetails(value) {
|
|
|
90
90
|
return false;
|
|
91
91
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
|
|
92
92
|
return false;
|
|
93
|
+
if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined)
|
|
94
|
+
return false;
|
|
93
95
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
|
|
94
96
|
return false;
|
|
95
97
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
@@ -139,6 +141,7 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
139
141
|
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON)(json['domain']),
|
|
140
142
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
141
143
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
144
|
+
'messagesInRowLimit': json['messagesInRowLimit'],
|
|
142
145
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
143
146
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
144
147
|
'manualType': json['manualType'],
|
|
@@ -175,6 +178,7 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
175
178
|
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON)(value['domain']),
|
|
176
179
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
177
180
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
181
|
+
'messagesInRowLimit': value['messagesInRowLimit'],
|
|
178
182
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
179
183
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
180
184
|
'manualType': value['manualType'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -354,6 +354,7 @@ export * from './PartnerAuctionDto';
|
|
|
354
354
|
export * from './PartnerDomainFindDto';
|
|
355
355
|
export * from './PayAccountPaymentInput';
|
|
356
356
|
export * from './PaymentMethodsStatsDto';
|
|
357
|
+
export * from './PopularCategoryDto';
|
|
357
358
|
export * from './PrivateAccountGetMeResponse';
|
|
358
359
|
export * from './PublicAccountInformationDto';
|
|
359
360
|
export * from './PublicAuctionListItemDto';
|
package/dist/models/index.js
CHANGED
|
@@ -372,6 +372,7 @@ __exportStar(require("./PartnerAuctionDto"), exports);
|
|
|
372
372
|
__exportStar(require("./PartnerDomainFindDto"), exports);
|
|
373
373
|
__exportStar(require("./PayAccountPaymentInput"), exports);
|
|
374
374
|
__exportStar(require("./PaymentMethodsStatsDto"), exports);
|
|
375
|
+
__exportStar(require("./PopularCategoryDto"), exports);
|
|
375
376
|
__exportStar(require("./PrivateAccountGetMeResponse"), exports);
|
|
376
377
|
__exportStar(require("./PublicAccountInformationDto"), exports);
|
|
377
378
|
__exportStar(require("./PublicAuctionListItemDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -452,6 +452,10 @@ export interface AdminApiRemoveDomainLockRequest {
|
|
|
452
452
|
lockId: string;
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
+
export interface AdminApiShowcaseDomainRequest {
|
|
456
|
+
domainId: string;
|
|
457
|
+
}
|
|
458
|
+
|
|
455
459
|
export interface AdminApiSimulateCommissionRequest {
|
|
456
460
|
simulateCommissionInput: SimulateCommissionInput;
|
|
457
461
|
}
|
|
@@ -468,6 +472,10 @@ export interface AdminApiSyncOwnedDomainFromRegistryRequest {
|
|
|
468
472
|
id: string;
|
|
469
473
|
}
|
|
470
474
|
|
|
475
|
+
export interface AdminApiUnshowcaseDomainRequest {
|
|
476
|
+
domainId: string;
|
|
477
|
+
}
|
|
478
|
+
|
|
471
479
|
export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
|
|
472
480
|
accountId: string;
|
|
473
481
|
updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
|
|
@@ -3063,6 +3071,48 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
3063
3071
|
await this.removeDomainLockRaw(requestParameters, initOverrides);
|
|
3064
3072
|
}
|
|
3065
3073
|
|
|
3074
|
+
/**
|
|
3075
|
+
* Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
|
|
3076
|
+
* Showcase domain
|
|
3077
|
+
*/
|
|
3078
|
+
async showcaseDomainRaw(requestParameters: AdminApiShowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3079
|
+
if (requestParameters['domainId'] == null) {
|
|
3080
|
+
throw new runtime.RequiredError(
|
|
3081
|
+
'domainId',
|
|
3082
|
+
'Required parameter "domainId" was null or undefined when calling showcaseDomain().'
|
|
3083
|
+
);
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
const queryParameters: any = {};
|
|
3087
|
+
|
|
3088
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3089
|
+
|
|
3090
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3091
|
+
const token = this.configuration.accessToken;
|
|
3092
|
+
const tokenString = await token("bearer", []);
|
|
3093
|
+
|
|
3094
|
+
if (tokenString) {
|
|
3095
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
const response = await this.request({
|
|
3099
|
+
path: `/admin/domains/{domainId}/showcase`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
3100
|
+
method: 'PUT',
|
|
3101
|
+
headers: headerParameters,
|
|
3102
|
+
query: queryParameters,
|
|
3103
|
+
}, initOverrides);
|
|
3104
|
+
|
|
3105
|
+
return new runtime.VoidApiResponse(response);
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
/**
|
|
3109
|
+
* Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
|
|
3110
|
+
* Showcase domain
|
|
3111
|
+
*/
|
|
3112
|
+
async showcaseDomain(requestParameters: AdminApiShowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3113
|
+
await this.showcaseDomainRaw(requestParameters, initOverrides);
|
|
3114
|
+
}
|
|
3115
|
+
|
|
3066
3116
|
/**
|
|
3067
3117
|
* Evaluates the commission percentage for a given scenario without persisting any changes.
|
|
3068
3118
|
* Simulate commission percentage
|
|
@@ -3235,6 +3285,48 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
3235
3285
|
await this.syncOwnedDomainFromRegistryRaw(requestParameters, initOverrides);
|
|
3236
3286
|
}
|
|
3237
3287
|
|
|
3288
|
+
/**
|
|
3289
|
+
* Drops the domain from the public showcase on the website. Idempotent.
|
|
3290
|
+
* Remove domain from the showcase
|
|
3291
|
+
*/
|
|
3292
|
+
async unshowcaseDomainRaw(requestParameters: AdminApiUnshowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3293
|
+
if (requestParameters['domainId'] == null) {
|
|
3294
|
+
throw new runtime.RequiredError(
|
|
3295
|
+
'domainId',
|
|
3296
|
+
'Required parameter "domainId" was null or undefined when calling unshowcaseDomain().'
|
|
3297
|
+
);
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
const queryParameters: any = {};
|
|
3301
|
+
|
|
3302
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3303
|
+
|
|
3304
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3305
|
+
const token = this.configuration.accessToken;
|
|
3306
|
+
const tokenString = await token("bearer", []);
|
|
3307
|
+
|
|
3308
|
+
if (tokenString) {
|
|
3309
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
const response = await this.request({
|
|
3313
|
+
path: `/admin/domains/{domainId}/showcase`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
3314
|
+
method: 'DELETE',
|
|
3315
|
+
headers: headerParameters,
|
|
3316
|
+
query: queryParameters,
|
|
3317
|
+
}, initOverrides);
|
|
3318
|
+
|
|
3319
|
+
return new runtime.VoidApiResponse(response);
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
/**
|
|
3323
|
+
* Drops the domain from the public showcase on the website. Idempotent.
|
|
3324
|
+
* Remove domain from the showcase
|
|
3325
|
+
*/
|
|
3326
|
+
async unshowcaseDomain(requestParameters: AdminApiUnshowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3327
|
+
await this.unshowcaseDomainRaw(requestParameters, initOverrides);
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3238
3330
|
/**
|
|
3239
3331
|
* Sets the absolute challenge reward points balance for an account.
|
|
3240
3332
|
* Update challenge reward balance
|