@randock/nameshift-api-client 0.0.447 → 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/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 +2 -2
- package/dist/apis/MarketApi.js +2 -2
- 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/package.json +1 -1
- package/src/apis/AdminApi.ts +92 -0
- package/src/apis/MarketApi.ts +2 -2
- 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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.448
|
|
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.448 --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
|
+
488272701c73a444b279b58c7c8783ee5c4dcf21f2bb6eb821d4943e3b267d359abaa3ba65e920aca8d49177125d90de
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -264,6 +264,9 @@ export interface AdminApiRemoveDomainLockRequest {
|
|
|
264
264
|
domainId: string;
|
|
265
265
|
lockId: string;
|
|
266
266
|
}
|
|
267
|
+
export interface AdminApiShowcaseDomainRequest {
|
|
268
|
+
domainId: string;
|
|
269
|
+
}
|
|
267
270
|
export interface AdminApiSimulateCommissionRequest {
|
|
268
271
|
simulateCommissionInput: SimulateCommissionInput;
|
|
269
272
|
}
|
|
@@ -276,6 +279,9 @@ export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
|
|
|
276
279
|
export interface AdminApiSyncOwnedDomainFromRegistryRequest {
|
|
277
280
|
id: string;
|
|
278
281
|
}
|
|
282
|
+
export interface AdminApiUnshowcaseDomainRequest {
|
|
283
|
+
domainId: string;
|
|
284
|
+
}
|
|
279
285
|
export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
|
|
280
286
|
accountId: string;
|
|
281
287
|
updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
|
|
@@ -832,6 +838,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
832
838
|
* Remove domain lock
|
|
833
839
|
*/
|
|
834
840
|
removeDomainLock(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
841
|
+
/**
|
|
842
|
+
* Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
|
|
843
|
+
* Showcase domain
|
|
844
|
+
*/
|
|
845
|
+
showcaseDomainRaw(requestParameters: AdminApiShowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
846
|
+
/**
|
|
847
|
+
* Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
|
|
848
|
+
* Showcase domain
|
|
849
|
+
*/
|
|
850
|
+
showcaseDomain(requestParameters: AdminApiShowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
835
851
|
/**
|
|
836
852
|
* Evaluates the commission percentage for a given scenario without persisting any changes.
|
|
837
853
|
* Simulate commission percentage
|
|
@@ -872,6 +888,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
872
888
|
* Sync owned domain from registry
|
|
873
889
|
*/
|
|
874
890
|
syncOwnedDomainFromRegistry(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
891
|
+
/**
|
|
892
|
+
* Drops the domain from the public showcase on the website. Idempotent.
|
|
893
|
+
* Remove domain from the showcase
|
|
894
|
+
*/
|
|
895
|
+
unshowcaseDomainRaw(requestParameters: AdminApiUnshowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
896
|
+
/**
|
|
897
|
+
* Drops the domain from the public showcase on the website. Idempotent.
|
|
898
|
+
* Remove domain from the showcase
|
|
899
|
+
*/
|
|
900
|
+
unshowcaseDomain(requestParameters: AdminApiUnshowcaseDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
875
901
|
/**
|
|
876
902
|
* Sets the absolute challenge reward points balance for an account.
|
|
877
903
|
* Update challenge reward balance
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -3214,6 +3214,59 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3214
3214
|
});
|
|
3215
3215
|
});
|
|
3216
3216
|
};
|
|
3217
|
+
/**
|
|
3218
|
+
* Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
|
|
3219
|
+
* Showcase domain
|
|
3220
|
+
*/
|
|
3221
|
+
AdminApi.prototype.showcaseDomainRaw = function (requestParameters, initOverrides) {
|
|
3222
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3223
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
3224
|
+
return __generator(this, function (_a) {
|
|
3225
|
+
switch (_a.label) {
|
|
3226
|
+
case 0:
|
|
3227
|
+
if (requestParameters['domainId'] == null) {
|
|
3228
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling showcaseDomain().');
|
|
3229
|
+
}
|
|
3230
|
+
queryParameters = {};
|
|
3231
|
+
headerParameters = {};
|
|
3232
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3233
|
+
token = this.configuration.accessToken;
|
|
3234
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
3235
|
+
case 1:
|
|
3236
|
+
tokenString = _a.sent();
|
|
3237
|
+
if (tokenString) {
|
|
3238
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
3239
|
+
}
|
|
3240
|
+
_a.label = 2;
|
|
3241
|
+
case 2: return [4 /*yield*/, this.request({
|
|
3242
|
+
path: "/admin/domains/{domainId}/showcase".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
3243
|
+
method: 'PUT',
|
|
3244
|
+
headers: headerParameters,
|
|
3245
|
+
query: queryParameters,
|
|
3246
|
+
}, initOverrides)];
|
|
3247
|
+
case 3:
|
|
3248
|
+
response = _a.sent();
|
|
3249
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
3250
|
+
}
|
|
3251
|
+
});
|
|
3252
|
+
});
|
|
3253
|
+
};
|
|
3254
|
+
/**
|
|
3255
|
+
* Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
|
|
3256
|
+
* Showcase domain
|
|
3257
|
+
*/
|
|
3258
|
+
AdminApi.prototype.showcaseDomain = function (requestParameters, initOverrides) {
|
|
3259
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3260
|
+
return __generator(this, function (_a) {
|
|
3261
|
+
switch (_a.label) {
|
|
3262
|
+
case 0: return [4 /*yield*/, this.showcaseDomainRaw(requestParameters, initOverrides)];
|
|
3263
|
+
case 1:
|
|
3264
|
+
_a.sent();
|
|
3265
|
+
return [2 /*return*/];
|
|
3266
|
+
}
|
|
3267
|
+
});
|
|
3268
|
+
});
|
|
3269
|
+
};
|
|
3217
3270
|
/**
|
|
3218
3271
|
* Evaluates the commission percentage for a given scenario without persisting any changes.
|
|
3219
3272
|
* Simulate commission percentage
|
|
@@ -3430,6 +3483,59 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3430
3483
|
});
|
|
3431
3484
|
});
|
|
3432
3485
|
};
|
|
3486
|
+
/**
|
|
3487
|
+
* Drops the domain from the public showcase on the website. Idempotent.
|
|
3488
|
+
* Remove domain from the showcase
|
|
3489
|
+
*/
|
|
3490
|
+
AdminApi.prototype.unshowcaseDomainRaw = function (requestParameters, initOverrides) {
|
|
3491
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3492
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
3493
|
+
return __generator(this, function (_a) {
|
|
3494
|
+
switch (_a.label) {
|
|
3495
|
+
case 0:
|
|
3496
|
+
if (requestParameters['domainId'] == null) {
|
|
3497
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling unshowcaseDomain().');
|
|
3498
|
+
}
|
|
3499
|
+
queryParameters = {};
|
|
3500
|
+
headerParameters = {};
|
|
3501
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3502
|
+
token = this.configuration.accessToken;
|
|
3503
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
3504
|
+
case 1:
|
|
3505
|
+
tokenString = _a.sent();
|
|
3506
|
+
if (tokenString) {
|
|
3507
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
3508
|
+
}
|
|
3509
|
+
_a.label = 2;
|
|
3510
|
+
case 2: return [4 /*yield*/, this.request({
|
|
3511
|
+
path: "/admin/domains/{domainId}/showcase".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
3512
|
+
method: 'DELETE',
|
|
3513
|
+
headers: headerParameters,
|
|
3514
|
+
query: queryParameters,
|
|
3515
|
+
}, initOverrides)];
|
|
3516
|
+
case 3:
|
|
3517
|
+
response = _a.sent();
|
|
3518
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
3519
|
+
}
|
|
3520
|
+
});
|
|
3521
|
+
});
|
|
3522
|
+
};
|
|
3523
|
+
/**
|
|
3524
|
+
* Drops the domain from the public showcase on the website. Idempotent.
|
|
3525
|
+
* Remove domain from the showcase
|
|
3526
|
+
*/
|
|
3527
|
+
AdminApi.prototype.unshowcaseDomain = function (requestParameters, initOverrides) {
|
|
3528
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3529
|
+
return __generator(this, function (_a) {
|
|
3530
|
+
switch (_a.label) {
|
|
3531
|
+
case 0: return [4 /*yield*/, this.unshowcaseDomainRaw(requestParameters, initOverrides)];
|
|
3532
|
+
case 1:
|
|
3533
|
+
_a.sent();
|
|
3534
|
+
return [2 /*return*/];
|
|
3535
|
+
}
|
|
3536
|
+
});
|
|
3537
|
+
});
|
|
3538
|
+
};
|
|
3433
3539
|
/**
|
|
3434
3540
|
* Sets the absolute challenge reward points balance for an account.
|
|
3435
3541
|
* Update challenge reward balance
|
package/dist/apis/MarketApi.d.ts
CHANGED
|
@@ -49,12 +49,12 @@ export declare class MarketApi extends runtime.BaseAPI {
|
|
|
49
49
|
*/
|
|
50
50
|
listRecentSales(requestParameters?: MarketApiListRecentSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicSaleDto>>;
|
|
51
51
|
/**
|
|
52
|
-
* Returns
|
|
52
|
+
* 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.
|
|
53
53
|
* List showcase domains
|
|
54
54
|
*/
|
|
55
55
|
listShowcaseDomainsRaw(requestParameters: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicDomainDto>>>;
|
|
56
56
|
/**
|
|
57
|
-
* Returns
|
|
57
|
+
* 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.
|
|
58
58
|
* List showcase domains
|
|
59
59
|
*/
|
|
60
60
|
listShowcaseDomains(requestParameters?: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicDomainDto>>;
|
package/dist/apis/MarketApi.js
CHANGED
|
@@ -184,7 +184,7 @@ var MarketApi = /** @class */ (function (_super) {
|
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
186
|
/**
|
|
187
|
-
* Returns
|
|
187
|
+
* 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.
|
|
188
188
|
* List showcase domains
|
|
189
189
|
*/
|
|
190
190
|
MarketApi.prototype.listShowcaseDomainsRaw = function (requestParameters, initOverrides) {
|
|
@@ -219,7 +219,7 @@ var MarketApi = /** @class */ (function (_super) {
|
|
|
219
219
|
});
|
|
220
220
|
};
|
|
221
221
|
/**
|
|
222
|
-
* Returns
|
|
222
|
+
* 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.
|
|
223
223
|
* List showcase domains
|
|
224
224
|
*/
|
|
225
225
|
MarketApi.prototype.listShowcaseDomains = function () {
|
|
@@ -196,6 +196,12 @@ export interface AdminDomainListItemDto {
|
|
|
196
196
|
* @memberof AdminDomainListItemDto
|
|
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 AdminDomainListItemDto
|
|
203
|
+
*/
|
|
204
|
+
showcased: boolean;
|
|
199
205
|
/**
|
|
200
206
|
* Account that owns the domain.
|
|
201
207
|
* @type {AccountDto}
|
|
@@ -99,6 +99,8 @@ function instanceOfAdminDomainListItemDto(value) {
|
|
|
99
99
|
return false;
|
|
100
100
|
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
|
|
101
101
|
return false;
|
|
102
|
+
if (!('showcased' in value) || value['showcased'] === undefined)
|
|
103
|
+
return false;
|
|
102
104
|
if (!('account' in value) || value['account'] === undefined)
|
|
103
105
|
return false;
|
|
104
106
|
if (!('pointsToOurServerReason' in value) || value['pointsToOurServerReason'] === undefined)
|
|
@@ -142,6 +144,7 @@ function AdminDomainListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
142
144
|
'isDeleteable': json['isDeleteable'],
|
|
143
145
|
'isLocked': json['isLocked'],
|
|
144
146
|
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
147
|
+
'showcased': json['showcased'],
|
|
145
148
|
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
146
149
|
'pointsToOurServerReason': json['pointsToOurServerReason'],
|
|
147
150
|
};
|
|
@@ -184,6 +187,7 @@ function AdminDomainListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
184
187
|
'isDeleteable': value['isDeleteable'],
|
|
185
188
|
'isLocked': value['isLocked'],
|
|
186
189
|
'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
|
|
190
|
+
'showcased': value['showcased'],
|
|
187
191
|
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
188
192
|
'pointsToOurServerReason': value['pointsToOurServerReason'],
|
|
189
193
|
};
|
|
@@ -196,6 +196,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
|
196
196
|
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
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 IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
203
|
+
*/
|
|
204
|
+
showcased: boolean;
|
|
199
205
|
/**
|
|
200
206
|
* Account that owns the domain.
|
|
201
207
|
* @type {AccountDto}
|
|
@@ -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
|
}
|
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
|
package/src/apis/MarketApi.ts
CHANGED
|
@@ -126,7 +126,7 @@ export class MarketApi extends runtime.BaseAPI {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
* Returns
|
|
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
130
|
* List showcase domains
|
|
131
131
|
*/
|
|
132
132
|
async listShowcaseDomainsRaw(requestParameters: MarketApiListShowcaseDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicDomainDto>>> {
|
|
@@ -153,7 +153,7 @@ export class MarketApi extends runtime.BaseAPI {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
|
-
* Returns
|
|
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
157
|
* List showcase domains
|
|
158
158
|
*/
|
|
159
159
|
async listShowcaseDomains(requestParameters: MarketApiListShowcaseDomainsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicDomainDto>> {
|
|
@@ -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
|
}
|