@randock/nameshift-api-client 0.0.361 → 0.0.363
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +24 -1
- package/dist/apis/AdminApi.js +107 -0
- package/dist/models/DomainLockDto.d.ts +56 -0
- package/dist/models/DomainLockDto.js +67 -0
- package/dist/models/DomainSalesInformationDto.d.ts +6 -0
- package/dist/models/DomainSalesInformationDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.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/LeadDomainDto.d.ts +6 -0
- package/dist/models/LeadDomainDto.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 +100 -0
- package/src/models/DomainLockDto.ts +102 -0
- package/src/models/DomainSalesInformationDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.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/LeadDomainDto.ts +9 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -155,6 +155,7 @@ src/models/DomainExchangeRateDto.ts
|
|
|
155
155
|
src/models/DomainFiltersDto.ts
|
|
156
156
|
src/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.ts
|
|
157
157
|
src/models/DomainLeadPriceNegotiatorAiAgentConfigurationInput.ts
|
|
158
|
+
src/models/DomainLockDto.ts
|
|
158
159
|
src/models/DomainPricesChangeDto.ts
|
|
159
160
|
src/models/DomainSalesInformationDto.ts
|
|
160
161
|
src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.363
|
|
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.363 --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
|
+
6c894dddb9c1c7410e81ce635ad8f71604c4f720191da25d1491a8a2fbf291d1403de7d6c73bbd097a08978d6f0cc87d
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
13
|
+
import type { AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainLockDto, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -94,6 +94,9 @@ export interface AdminApiListBankAccountsRequest {
|
|
|
94
94
|
limit?: number;
|
|
95
95
|
sortBy?: Array<string>;
|
|
96
96
|
}
|
|
97
|
+
export interface AdminApiListDomainLocksRequest {
|
|
98
|
+
domainId: string;
|
|
99
|
+
}
|
|
97
100
|
export interface AdminApiListDomainsRequest {
|
|
98
101
|
filter?: object;
|
|
99
102
|
page?: number;
|
|
@@ -127,6 +130,10 @@ export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
|
|
|
127
130
|
export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
|
|
128
131
|
sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
|
|
129
132
|
}
|
|
133
|
+
export interface AdminApiRemoveDomainLockRequest {
|
|
134
|
+
domainId: string;
|
|
135
|
+
lockId: string;
|
|
136
|
+
}
|
|
130
137
|
export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
|
|
131
138
|
accountId: string;
|
|
132
139
|
}
|
|
@@ -296,6 +303,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
296
303
|
*
|
|
297
304
|
*/
|
|
298
305
|
listBankAccounts(requestParameters?: AdminApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBankAccounts200Response>;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
*/
|
|
309
|
+
listDomainLocksRaw(requestParameters: AdminApiListDomainLocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DomainLockDto>>>;
|
|
310
|
+
/**
|
|
311
|
+
*
|
|
312
|
+
*/
|
|
313
|
+
listDomainLocks(requestParameters: AdminApiListDomainLocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DomainLockDto>>;
|
|
299
314
|
/**
|
|
300
315
|
*
|
|
301
316
|
*/
|
|
@@ -360,6 +375,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
360
375
|
*
|
|
361
376
|
*/
|
|
362
377
|
postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>>;
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
*/
|
|
381
|
+
removeDomainLockRaw(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
*/
|
|
385
|
+
removeDomainLock(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
363
386
|
/**
|
|
364
387
|
*
|
|
365
388
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -1170,6 +1170,59 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1170
1170
|
});
|
|
1171
1171
|
});
|
|
1172
1172
|
};
|
|
1173
|
+
/**
|
|
1174
|
+
*
|
|
1175
|
+
*/
|
|
1176
|
+
AdminApi.prototype.listDomainLocksRaw = function (requestParameters, initOverrides) {
|
|
1177
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1178
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1179
|
+
return __generator(this, function (_a) {
|
|
1180
|
+
switch (_a.label) {
|
|
1181
|
+
case 0:
|
|
1182
|
+
if (requestParameters['domainId'] == null) {
|
|
1183
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling listDomainLocks().');
|
|
1184
|
+
}
|
|
1185
|
+
queryParameters = {};
|
|
1186
|
+
headerParameters = {};
|
|
1187
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1188
|
+
token = this.configuration.accessToken;
|
|
1189
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1190
|
+
case 1:
|
|
1191
|
+
tokenString = _a.sent();
|
|
1192
|
+
if (tokenString) {
|
|
1193
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1194
|
+
}
|
|
1195
|
+
_a.label = 2;
|
|
1196
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1197
|
+
path: "/admin/domains/{domainId}/locks".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
1198
|
+
method: 'GET',
|
|
1199
|
+
headers: headerParameters,
|
|
1200
|
+
query: queryParameters,
|
|
1201
|
+
}, initOverrides)];
|
|
1202
|
+
case 3:
|
|
1203
|
+
response = _a.sent();
|
|
1204
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.DomainLockDtoFromJSON); })];
|
|
1205
|
+
}
|
|
1206
|
+
});
|
|
1207
|
+
});
|
|
1208
|
+
};
|
|
1209
|
+
/**
|
|
1210
|
+
*
|
|
1211
|
+
*/
|
|
1212
|
+
AdminApi.prototype.listDomainLocks = function (requestParameters, initOverrides) {
|
|
1213
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1214
|
+
var response;
|
|
1215
|
+
return __generator(this, function (_a) {
|
|
1216
|
+
switch (_a.label) {
|
|
1217
|
+
case 0: return [4 /*yield*/, this.listDomainLocksRaw(requestParameters, initOverrides)];
|
|
1218
|
+
case 1:
|
|
1219
|
+
response = _a.sent();
|
|
1220
|
+
return [4 /*yield*/, response.value()];
|
|
1221
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
});
|
|
1225
|
+
};
|
|
1173
1226
|
/**
|
|
1174
1227
|
*
|
|
1175
1228
|
*/
|
|
@@ -1625,6 +1678,60 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1625
1678
|
});
|
|
1626
1679
|
});
|
|
1627
1680
|
};
|
|
1681
|
+
/**
|
|
1682
|
+
*
|
|
1683
|
+
*/
|
|
1684
|
+
AdminApi.prototype.removeDomainLockRaw = function (requestParameters, initOverrides) {
|
|
1685
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1686
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1687
|
+
return __generator(this, function (_a) {
|
|
1688
|
+
switch (_a.label) {
|
|
1689
|
+
case 0:
|
|
1690
|
+
if (requestParameters['domainId'] == null) {
|
|
1691
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling removeDomainLock().');
|
|
1692
|
+
}
|
|
1693
|
+
if (requestParameters['lockId'] == null) {
|
|
1694
|
+
throw new runtime.RequiredError('lockId', 'Required parameter "lockId" was null or undefined when calling removeDomainLock().');
|
|
1695
|
+
}
|
|
1696
|
+
queryParameters = {};
|
|
1697
|
+
headerParameters = {};
|
|
1698
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1699
|
+
token = this.configuration.accessToken;
|
|
1700
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1701
|
+
case 1:
|
|
1702
|
+
tokenString = _a.sent();
|
|
1703
|
+
if (tokenString) {
|
|
1704
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1705
|
+
}
|
|
1706
|
+
_a.label = 2;
|
|
1707
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1708
|
+
path: "/admin/domains/{domainId}/locks/{lockId}".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))).replace("{".concat("lockId", "}"), encodeURIComponent(String(requestParameters['lockId']))),
|
|
1709
|
+
method: 'DELETE',
|
|
1710
|
+
headers: headerParameters,
|
|
1711
|
+
query: queryParameters,
|
|
1712
|
+
}, initOverrides)];
|
|
1713
|
+
case 3:
|
|
1714
|
+
response = _a.sent();
|
|
1715
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1716
|
+
}
|
|
1717
|
+
});
|
|
1718
|
+
});
|
|
1719
|
+
};
|
|
1720
|
+
/**
|
|
1721
|
+
*
|
|
1722
|
+
*/
|
|
1723
|
+
AdminApi.prototype.removeDomainLock = function (requestParameters, initOverrides) {
|
|
1724
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1725
|
+
return __generator(this, function (_a) {
|
|
1726
|
+
switch (_a.label) {
|
|
1727
|
+
case 0: return [4 /*yield*/, this.removeDomainLockRaw(requestParameters, initOverrides)];
|
|
1728
|
+
case 1:
|
|
1729
|
+
_a.sent();
|
|
1730
|
+
return [2 /*return*/];
|
|
1731
|
+
}
|
|
1732
|
+
});
|
|
1733
|
+
});
|
|
1734
|
+
};
|
|
1628
1735
|
/**
|
|
1629
1736
|
*
|
|
1630
1737
|
*/
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DomainLockDto
|
|
16
|
+
*/
|
|
17
|
+
export interface DomainLockDto {
|
|
18
|
+
/**
|
|
19
|
+
* The uuid for this domain lock.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DomainLockDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The domain id this lock belongs to.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DomainLockDto
|
|
28
|
+
*/
|
|
29
|
+
domainId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The lock start date.
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof DomainLockDto
|
|
34
|
+
*/
|
|
35
|
+
startDate: Date;
|
|
36
|
+
/**
|
|
37
|
+
* The lock end date.
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof DomainLockDto
|
|
40
|
+
*/
|
|
41
|
+
endDate: Date;
|
|
42
|
+
/**
|
|
43
|
+
* The creation date.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof DomainLockDto
|
|
46
|
+
*/
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the DomainLockDto interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfDomainLockDto(value: object): value is DomainLockDto;
|
|
53
|
+
export declare function DomainLockDtoFromJSON(json: any): DomainLockDto;
|
|
54
|
+
export declare function DomainLockDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainLockDto;
|
|
55
|
+
export declare function DomainLockDtoToJSON(json: any): DomainLockDto;
|
|
56
|
+
export declare function DomainLockDtoToJSONTyped(value?: DomainLockDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDomainLockDto = instanceOfDomainLockDto;
|
|
17
|
+
exports.DomainLockDtoFromJSON = DomainLockDtoFromJSON;
|
|
18
|
+
exports.DomainLockDtoFromJSONTyped = DomainLockDtoFromJSONTyped;
|
|
19
|
+
exports.DomainLockDtoToJSON = DomainLockDtoToJSON;
|
|
20
|
+
exports.DomainLockDtoToJSONTyped = DomainLockDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DomainLockDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDomainLockDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('domainId' in value) || value['domainId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function DomainLockDtoFromJSON(json) {
|
|
38
|
+
return DomainLockDtoFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function DomainLockDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'domainId': json['domainId'],
|
|
47
|
+
'startDate': (new Date(json['startDate'])),
|
|
48
|
+
'endDate': (new Date(json['endDate'])),
|
|
49
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function DomainLockDtoToJSON(json) {
|
|
53
|
+
return DomainLockDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function DomainLockDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'domainId': value['domainId'],
|
|
63
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
64
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
65
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -123,6 +123,12 @@ export interface DomainSalesInformationDto {
|
|
|
123
123
|
* @memberof DomainSalesInformationDto
|
|
124
124
|
*/
|
|
125
125
|
auctionId: string | null;
|
|
126
|
+
/**
|
|
127
|
+
* The domain "locked" status
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof DomainSalesInformationDto
|
|
130
|
+
*/
|
|
131
|
+
locked: boolean;
|
|
126
132
|
/**
|
|
127
133
|
* Lead buyer settings
|
|
128
134
|
* @type {LeadBuyerConfigDto}
|
|
@@ -62,6 +62,8 @@ function instanceOfDomainSalesInformationDto(value) {
|
|
|
62
62
|
return false;
|
|
63
63
|
if (!('auctionId' in value) || value['auctionId'] === undefined)
|
|
64
64
|
return false;
|
|
65
|
+
if (!('locked' in value) || value['locked'] === undefined)
|
|
66
|
+
return false;
|
|
65
67
|
if (!('leadBuyerSettings' in value) || value['leadBuyerSettings'] === undefined)
|
|
66
68
|
return false;
|
|
67
69
|
return true;
|
|
@@ -91,6 +93,7 @@ function DomainSalesInformationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
93
|
'seoEnabled': json['seoEnabled'],
|
|
92
94
|
'hasActiveAuction': json['hasActiveAuction'],
|
|
93
95
|
'auctionId': json['auctionId'],
|
|
96
|
+
'locked': json['locked'],
|
|
94
97
|
'leadBuyerSettings': (0, LeadBuyerConfigDto_1.LeadBuyerConfigDtoFromJSON)(json['leadBuyerSettings']),
|
|
95
98
|
};
|
|
96
99
|
}
|
|
@@ -120,6 +123,7 @@ function DomainSalesInformationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
120
123
|
'seoEnabled': value['seoEnabled'],
|
|
121
124
|
'hasActiveAuction': value['hasActiveAuction'],
|
|
122
125
|
'auctionId': value['auctionId'],
|
|
126
|
+
'locked': value['locked'],
|
|
123
127
|
'leadBuyerSettings': (0, LeadBuyerConfigDto_1.LeadBuyerConfigDtoToJSON)(value['leadBuyerSettings']),
|
|
124
128
|
};
|
|
125
129
|
}
|
|
@@ -46,6 +46,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
46
46
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
47
47
|
*/
|
|
48
48
|
isDeleteable: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the domain is currently locked
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
53
|
+
*/
|
|
54
|
+
isLocked: boolean;
|
|
49
55
|
/**
|
|
50
56
|
* The TLD for this domain.
|
|
51
57
|
* @type {string}
|
|
@@ -37,6 +37,8 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('tld' in value) || value['tld'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('verified' in value) || value['verified'] === undefined)
|
|
@@ -91,6 +93,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
|
|
|
91
93
|
'accountId': json['accountId'],
|
|
92
94
|
'hijackerId': json['hijackerId'],
|
|
93
95
|
'isDeleteable': json['isDeleteable'],
|
|
96
|
+
'isLocked': json['isLocked'],
|
|
94
97
|
'tld': json['tld'],
|
|
95
98
|
'verified': json['verified'],
|
|
96
99
|
'nameservers': json['nameservers'],
|
|
@@ -126,6 +129,7 @@ function IntersectionDomainDtoWithAccountDtoToJSONTyped(value, ignoreDiscriminat
|
|
|
126
129
|
'accountId': value['accountId'],
|
|
127
130
|
'hijackerId': value['hijackerId'],
|
|
128
131
|
'isDeleteable': value['isDeleteable'],
|
|
132
|
+
'isLocked': value['isLocked'],
|
|
129
133
|
'tld': value['tld'],
|
|
130
134
|
'verified': value['verified'],
|
|
131
135
|
'nameservers': value['nameservers'],
|
|
@@ -46,6 +46,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
|
46
46
|
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
47
47
|
*/
|
|
48
48
|
isDeleteable: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the domain is currently locked
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
53
|
+
*/
|
|
54
|
+
isLocked: boolean;
|
|
49
55
|
/**
|
|
50
56
|
* The TLD for this domain.
|
|
51
57
|
* @type {string}
|
|
@@ -37,6 +37,8 @@ function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value)
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('tld' in value) || value['tld'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('verified' in value) || value['verified'] === undefined)
|
|
@@ -93,6 +95,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json
|
|
|
93
95
|
'accountId': json['accountId'],
|
|
94
96
|
'hijackerId': json['hijackerId'],
|
|
95
97
|
'isDeleteable': json['isDeleteable'],
|
|
98
|
+
'isLocked': json['isLocked'],
|
|
96
99
|
'tld': json['tld'],
|
|
97
100
|
'verified': json['verified'],
|
|
98
101
|
'nameservers': json['nameservers'],
|
|
@@ -129,6 +132,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value,
|
|
|
129
132
|
'accountId': value['accountId'],
|
|
130
133
|
'hijackerId': value['hijackerId'],
|
|
131
134
|
'isDeleteable': value['isDeleteable'],
|
|
135
|
+
'isLocked': value['isLocked'],
|
|
132
136
|
'tld': value['tld'],
|
|
133
137
|
'verified': value['verified'],
|
|
134
138
|
'nameservers': value['nameservers'],
|
|
@@ -46,6 +46,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
46
46
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
47
47
|
*/
|
|
48
48
|
isDeleteable: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the domain is currently locked
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
53
|
+
*/
|
|
54
|
+
isLocked: boolean;
|
|
49
55
|
/**
|
|
50
56
|
* The TLD for this domain.
|
|
51
57
|
* @type {string}
|
|
@@ -37,6 +37,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('tld' in value) || value['tld'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('verified' in value) || value['verified'] === undefined)
|
|
@@ -93,6 +95,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
|
|
|
93
95
|
'accountId': json['accountId'],
|
|
94
96
|
'hijackerId': json['hijackerId'],
|
|
95
97
|
'isDeleteable': json['isDeleteable'],
|
|
98
|
+
'isLocked': json['isLocked'],
|
|
96
99
|
'tld': json['tld'],
|
|
97
100
|
'verified': json['verified'],
|
|
98
101
|
'nameservers': json['nameservers'],
|
|
@@ -129,6 +132,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
|
|
|
129
132
|
'accountId': value['accountId'],
|
|
130
133
|
'hijackerId': value['hijackerId'],
|
|
131
134
|
'isDeleteable': value['isDeleteable'],
|
|
135
|
+
'isLocked': value['isLocked'],
|
|
132
136
|
'tld': value['tld'],
|
|
133
137
|
'verified': value['verified'],
|
|
134
138
|
'nameservers': value['nameservers'],
|
|
@@ -46,6 +46,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
|
|
|
46
46
|
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
47
47
|
*/
|
|
48
48
|
isDeleteable: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the domain is currently locked
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
53
|
+
*/
|
|
54
|
+
isLocked: boolean;
|
|
49
55
|
/**
|
|
50
56
|
* The SEO metrics for this domain
|
|
51
57
|
* @type {SeoMetricsDto}
|
|
@@ -37,6 +37,8 @@ function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('seoMetrics' in value) || value['seoMetrics'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('tld' in value) || value['tld'] === undefined)
|
|
@@ -91,6 +93,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscrim
|
|
|
91
93
|
'accountId': json['accountId'],
|
|
92
94
|
'hijackerId': json['hijackerId'],
|
|
93
95
|
'isDeleteable': json['isDeleteable'],
|
|
96
|
+
'isLocked': json['isLocked'],
|
|
94
97
|
'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoFromJSON)(json['seoMetrics']),
|
|
95
98
|
'tld': json['tld'],
|
|
96
99
|
'verified': json['verified'],
|
|
@@ -126,6 +129,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscrimi
|
|
|
126
129
|
'accountId': value['accountId'],
|
|
127
130
|
'hijackerId': value['hijackerId'],
|
|
128
131
|
'isDeleteable': value['isDeleteable'],
|
|
132
|
+
'isLocked': value['isLocked'],
|
|
129
133
|
'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoToJSON)(value['seoMetrics']),
|
|
130
134
|
'tld': value['tld'],
|
|
131
135
|
'verified': value['verified'],
|
|
@@ -22,6 +22,12 @@ export interface LeadDomainDto {
|
|
|
22
22
|
* @memberof LeadDomainDto
|
|
23
23
|
*/
|
|
24
24
|
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the domain is currently locked
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof LeadDomainDto
|
|
29
|
+
*/
|
|
30
|
+
isLocked: boolean;
|
|
25
31
|
/**
|
|
26
32
|
* Domain name
|
|
27
33
|
* @type {string}
|
|
@@ -25,6 +25,8 @@ var MoneyDto_1 = require("./MoneyDto");
|
|
|
25
25
|
function instanceOfLeadDomainDto(value) {
|
|
26
26
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
@@ -48,6 +50,7 @@ function LeadDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
}
|
|
49
51
|
return {
|
|
50
52
|
'id': json['id'],
|
|
53
|
+
'isLocked': json['isLocked'],
|
|
51
54
|
'name': json['name'],
|
|
52
55
|
'displayName': json['displayName'],
|
|
53
56
|
'currencyCode': json['currencyCode'],
|
|
@@ -66,6 +69,7 @@ function LeadDomainDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
66
69
|
}
|
|
67
70
|
return {
|
|
68
71
|
'id': value['id'],
|
|
72
|
+
'isLocked': value['isLocked'],
|
|
69
73
|
'name': value['name'],
|
|
70
74
|
'displayName': value['displayName'],
|
|
71
75
|
'currencyCode': value['currencyCode'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ export * from './DomainExchangeRateDto';
|
|
|
120
120
|
export * from './DomainFiltersDto';
|
|
121
121
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
|
122
122
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationInput';
|
|
123
|
+
export * from './DomainLockDto';
|
|
123
124
|
export * from './DomainPricesChangeDto';
|
|
124
125
|
export * from './DomainSalesInformationDto';
|
|
125
126
|
export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
package/dist/models/index.js
CHANGED
|
@@ -138,6 +138,7 @@ __exportStar(require("./DomainExchangeRateDto"), exports);
|
|
|
138
138
|
__exportStar(require("./DomainFiltersDto"), exports);
|
|
139
139
|
__exportStar(require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto"), exports);
|
|
140
140
|
__exportStar(require("./DomainLeadPriceNegotiatorAiAgentConfigurationInput"), exports);
|
|
141
|
+
__exportStar(require("./DomainLockDto"), exports);
|
|
141
142
|
__exportStar(require("./DomainPricesChangeDto"), exports);
|
|
142
143
|
__exportStar(require("./DomainSalesInformationDto"), exports);
|
|
143
144
|
__exportStar(require("./DomainSalesInformationLeaseToOwnConfigurationDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type {
|
|
|
24
24
|
BadRequestException,
|
|
25
25
|
ChangeOrderStatusInput,
|
|
26
26
|
ChangeSubscriptionStatusInput,
|
|
27
|
+
DomainLockDto,
|
|
27
28
|
DomainTransferDetailsDto,
|
|
28
29
|
GetAllAuctions200Response,
|
|
29
30
|
GetAllInvoices200Response,
|
|
@@ -62,6 +63,8 @@ import {
|
|
|
62
63
|
ChangeOrderStatusInputToJSON,
|
|
63
64
|
ChangeSubscriptionStatusInputFromJSON,
|
|
64
65
|
ChangeSubscriptionStatusInputToJSON,
|
|
66
|
+
DomainLockDtoFromJSON,
|
|
67
|
+
DomainLockDtoToJSON,
|
|
65
68
|
DomainTransferDetailsDtoFromJSON,
|
|
66
69
|
DomainTransferDetailsDtoToJSON,
|
|
67
70
|
GetAllAuctions200ResponseFromJSON,
|
|
@@ -202,6 +205,10 @@ export interface AdminApiListBankAccountsRequest {
|
|
|
202
205
|
sortBy?: Array<string>;
|
|
203
206
|
}
|
|
204
207
|
|
|
208
|
+
export interface AdminApiListDomainLocksRequest {
|
|
209
|
+
domainId: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
205
212
|
export interface AdminApiListDomainsRequest {
|
|
206
213
|
filter?: object;
|
|
207
214
|
page?: number;
|
|
@@ -243,6 +250,11 @@ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
|
|
|
243
250
|
sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
|
|
244
251
|
}
|
|
245
252
|
|
|
253
|
+
export interface AdminApiRemoveDomainLockRequest {
|
|
254
|
+
domainId: string;
|
|
255
|
+
lockId: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
246
258
|
export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
|
|
247
259
|
accountId: string;
|
|
248
260
|
}
|
|
@@ -1128,6 +1140,47 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1128
1140
|
return await response.value();
|
|
1129
1141
|
}
|
|
1130
1142
|
|
|
1143
|
+
/**
|
|
1144
|
+
*
|
|
1145
|
+
*/
|
|
1146
|
+
async listDomainLocksRaw(requestParameters: AdminApiListDomainLocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DomainLockDto>>> {
|
|
1147
|
+
if (requestParameters['domainId'] == null) {
|
|
1148
|
+
throw new runtime.RequiredError(
|
|
1149
|
+
'domainId',
|
|
1150
|
+
'Required parameter "domainId" was null or undefined when calling listDomainLocks().'
|
|
1151
|
+
);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
const queryParameters: any = {};
|
|
1155
|
+
|
|
1156
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1157
|
+
|
|
1158
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1159
|
+
const token = this.configuration.accessToken;
|
|
1160
|
+
const tokenString = await token("bearer", []);
|
|
1161
|
+
|
|
1162
|
+
if (tokenString) {
|
|
1163
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
const response = await this.request({
|
|
1167
|
+
path: `/admin/domains/{domainId}/locks`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
1168
|
+
method: 'GET',
|
|
1169
|
+
headers: headerParameters,
|
|
1170
|
+
query: queryParameters,
|
|
1171
|
+
}, initOverrides);
|
|
1172
|
+
|
|
1173
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DomainLockDtoFromJSON));
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
*
|
|
1178
|
+
*/
|
|
1179
|
+
async listDomainLocks(requestParameters: AdminApiListDomainLocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DomainLockDto>> {
|
|
1180
|
+
const response = await this.listDomainLocksRaw(requestParameters, initOverrides);
|
|
1181
|
+
return await response.value();
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1131
1184
|
/**
|
|
1132
1185
|
*
|
|
1133
1186
|
*/
|
|
@@ -1515,6 +1568,53 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1515
1568
|
return await response.value();
|
|
1516
1569
|
}
|
|
1517
1570
|
|
|
1571
|
+
/**
|
|
1572
|
+
*
|
|
1573
|
+
*/
|
|
1574
|
+
async removeDomainLockRaw(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1575
|
+
if (requestParameters['domainId'] == null) {
|
|
1576
|
+
throw new runtime.RequiredError(
|
|
1577
|
+
'domainId',
|
|
1578
|
+
'Required parameter "domainId" was null or undefined when calling removeDomainLock().'
|
|
1579
|
+
);
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
if (requestParameters['lockId'] == null) {
|
|
1583
|
+
throw new runtime.RequiredError(
|
|
1584
|
+
'lockId',
|
|
1585
|
+
'Required parameter "lockId" was null or undefined when calling removeDomainLock().'
|
|
1586
|
+
);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
const queryParameters: any = {};
|
|
1590
|
+
|
|
1591
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1592
|
+
|
|
1593
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1594
|
+
const token = this.configuration.accessToken;
|
|
1595
|
+
const tokenString = await token("bearer", []);
|
|
1596
|
+
|
|
1597
|
+
if (tokenString) {
|
|
1598
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
const response = await this.request({
|
|
1602
|
+
path: `/admin/domains/{domainId}/locks/{lockId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))).replace(`{${"lockId"}}`, encodeURIComponent(String(requestParameters['lockId']))),
|
|
1603
|
+
method: 'DELETE',
|
|
1604
|
+
headers: headerParameters,
|
|
1605
|
+
query: queryParameters,
|
|
1606
|
+
}, initOverrides);
|
|
1607
|
+
|
|
1608
|
+
return new runtime.VoidApiResponse(response);
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
*
|
|
1613
|
+
*/
|
|
1614
|
+
async removeDomainLock(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1615
|
+
await this.removeDomainLockRaw(requestParameters, initOverrides);
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1518
1618
|
/**
|
|
1519
1619
|
*
|
|
1520
1620
|
*/
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DomainLockDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainLockDto {
|
|
22
|
+
/**
|
|
23
|
+
* The uuid for this domain lock.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DomainLockDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The domain id this lock belongs to.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DomainLockDto
|
|
32
|
+
*/
|
|
33
|
+
domainId: string;
|
|
34
|
+
/**
|
|
35
|
+
* The lock start date.
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof DomainLockDto
|
|
38
|
+
*/
|
|
39
|
+
startDate: Date;
|
|
40
|
+
/**
|
|
41
|
+
* The lock end date.
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof DomainLockDto
|
|
44
|
+
*/
|
|
45
|
+
endDate: Date;
|
|
46
|
+
/**
|
|
47
|
+
* The creation date.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof DomainLockDto
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the DomainLockDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfDomainLockDto(value: object): value is DomainLockDto {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('domainId' in value) || value['domainId'] === undefined) return false;
|
|
60
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
61
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
62
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function DomainLockDtoFromJSON(json: any): DomainLockDto {
|
|
67
|
+
return DomainLockDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function DomainLockDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainLockDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'domainId': json['domainId'],
|
|
78
|
+
'startDate': (new Date(json['startDate'])),
|
|
79
|
+
'endDate': (new Date(json['endDate'])),
|
|
80
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function DomainLockDtoToJSON(json: any): DomainLockDto {
|
|
85
|
+
return DomainLockDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function DomainLockDtoToJSONTyped(value?: DomainLockDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'domainId': value['domainId'],
|
|
97
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
98
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
99
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -164,6 +164,12 @@ export interface DomainSalesInformationDto {
|
|
|
164
164
|
* @memberof DomainSalesInformationDto
|
|
165
165
|
*/
|
|
166
166
|
auctionId: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* The domain "locked" status
|
|
169
|
+
* @type {boolean}
|
|
170
|
+
* @memberof DomainSalesInformationDto
|
|
171
|
+
*/
|
|
172
|
+
locked: boolean;
|
|
167
173
|
/**
|
|
168
174
|
* Lead buyer settings
|
|
169
175
|
* @type {LeadBuyerConfigDto}
|
|
@@ -193,6 +199,7 @@ export function instanceOfDomainSalesInformationDto(value: object): value is Dom
|
|
|
193
199
|
if (!('seoEnabled' in value) || value['seoEnabled'] === undefined) return false;
|
|
194
200
|
if (!('hasActiveAuction' in value) || value['hasActiveAuction'] === undefined) return false;
|
|
195
201
|
if (!('auctionId' in value) || value['auctionId'] === undefined) return false;
|
|
202
|
+
if (!('locked' in value) || value['locked'] === undefined) return false;
|
|
196
203
|
if (!('leadBuyerSettings' in value) || value['leadBuyerSettings'] === undefined) return false;
|
|
197
204
|
return true;
|
|
198
205
|
}
|
|
@@ -224,6 +231,7 @@ export function DomainSalesInformationDtoFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
224
231
|
'seoEnabled': json['seoEnabled'],
|
|
225
232
|
'hasActiveAuction': json['hasActiveAuction'],
|
|
226
233
|
'auctionId': json['auctionId'],
|
|
234
|
+
'locked': json['locked'],
|
|
227
235
|
'leadBuyerSettings': LeadBuyerConfigDtoFromJSON(json['leadBuyerSettings']),
|
|
228
236
|
};
|
|
229
237
|
}
|
|
@@ -256,6 +264,7 @@ export function DomainSalesInformationDtoToJSONTyped(value?: DomainSalesInformat
|
|
|
256
264
|
'seoEnabled': value['seoEnabled'],
|
|
257
265
|
'hasActiveAuction': value['hasActiveAuction'],
|
|
258
266
|
'auctionId': value['auctionId'],
|
|
267
|
+
'locked': value['locked'],
|
|
259
268
|
'leadBuyerSettings': LeadBuyerConfigDtoToJSON(value['leadBuyerSettings']),
|
|
260
269
|
};
|
|
261
270
|
}
|
|
@@ -93,6 +93,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
93
93
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
94
94
|
*/
|
|
95
95
|
isDeleteable: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the domain is currently locked
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
100
|
+
*/
|
|
101
|
+
isLocked: boolean;
|
|
96
102
|
/**
|
|
97
103
|
* The TLD for this domain.
|
|
98
104
|
* @type {string}
|
|
@@ -224,6 +230,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
|
|
|
224
230
|
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
225
231
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
226
232
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
233
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
227
234
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
228
235
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
229
236
|
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
@@ -261,6 +268,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
261
268
|
'accountId': json['accountId'],
|
|
262
269
|
'hijackerId': json['hijackerId'],
|
|
263
270
|
'isDeleteable': json['isDeleteable'],
|
|
271
|
+
'isLocked': json['isLocked'],
|
|
264
272
|
'tld': json['tld'],
|
|
265
273
|
'verified': json['verified'],
|
|
266
274
|
'nameservers': json['nameservers'],
|
|
@@ -299,6 +307,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSONTyped(value?: Intersect
|
|
|
299
307
|
'accountId': value['accountId'],
|
|
300
308
|
'hijackerId': value['hijackerId'],
|
|
301
309
|
'isDeleteable': value['isDeleteable'],
|
|
310
|
+
'isLocked': value['isLocked'],
|
|
302
311
|
'tld': value['tld'],
|
|
303
312
|
'verified': value['verified'],
|
|
304
313
|
'nameservers': value['nameservers'],
|
|
@@ -93,6 +93,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
|
93
93
|
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
94
94
|
*/
|
|
95
95
|
isDeleteable: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the domain is currently locked
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
100
|
+
*/
|
|
101
|
+
isLocked: boolean;
|
|
96
102
|
/**
|
|
97
103
|
* The TLD for this domain.
|
|
98
104
|
* @type {string}
|
|
@@ -230,6 +236,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(
|
|
|
230
236
|
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
231
237
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
232
238
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
239
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
233
240
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
234
241
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
235
242
|
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
@@ -268,6 +275,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyp
|
|
|
268
275
|
'accountId': json['accountId'],
|
|
269
276
|
'hijackerId': json['hijackerId'],
|
|
270
277
|
'isDeleteable': json['isDeleteable'],
|
|
278
|
+
'isLocked': json['isLocked'],
|
|
271
279
|
'tld': json['tld'],
|
|
272
280
|
'verified': json['verified'],
|
|
273
281
|
'nameservers': json['nameservers'],
|
|
@@ -307,6 +315,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped
|
|
|
307
315
|
'accountId': value['accountId'],
|
|
308
316
|
'hijackerId': value['hijackerId'],
|
|
309
317
|
'isDeleteable': value['isDeleteable'],
|
|
318
|
+
'isLocked': value['isLocked'],
|
|
310
319
|
'tld': value['tld'],
|
|
311
320
|
'verified': value['verified'],
|
|
312
321
|
'nameservers': value['nameservers'],
|
|
@@ -93,6 +93,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
93
93
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
94
94
|
*/
|
|
95
95
|
isDeleteable: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the domain is currently locked
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
100
|
+
*/
|
|
101
|
+
isLocked: boolean;
|
|
96
102
|
/**
|
|
97
103
|
* The TLD for this domain.
|
|
98
104
|
* @type {string}
|
|
@@ -230,6 +236,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
230
236
|
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
231
237
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
232
238
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
239
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
233
240
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
234
241
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
235
242
|
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
@@ -268,6 +275,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
268
275
|
'accountId': json['accountId'],
|
|
269
276
|
'hijackerId': json['hijackerId'],
|
|
270
277
|
'isDeleteable': json['isDeleteable'],
|
|
278
|
+
'isLocked': json['isLocked'],
|
|
271
279
|
'tld': json['tld'],
|
|
272
280
|
'verified': json['verified'],
|
|
273
281
|
'nameservers': json['nameservers'],
|
|
@@ -307,6 +315,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
|
|
|
307
315
|
'accountId': value['accountId'],
|
|
308
316
|
'hijackerId': value['hijackerId'],
|
|
309
317
|
'isDeleteable': value['isDeleteable'],
|
|
318
|
+
'isLocked': value['isLocked'],
|
|
310
319
|
'tld': value['tld'],
|
|
311
320
|
'verified': value['verified'],
|
|
312
321
|
'nameservers': value['nameservers'],
|
|
@@ -93,6 +93,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
|
|
|
93
93
|
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
94
94
|
*/
|
|
95
95
|
isDeleteable: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the domain is currently locked
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
100
|
+
*/
|
|
101
|
+
isLocked: boolean;
|
|
96
102
|
/**
|
|
97
103
|
* The SEO metrics for this domain
|
|
98
104
|
* @type {SeoMetricsDto}
|
|
@@ -224,6 +230,7 @@ export function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value: object):
|
|
|
224
230
|
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
225
231
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
226
232
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
233
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
227
234
|
if (!('seoMetrics' in value) || value['seoMetrics'] === undefined) return false;
|
|
228
235
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
229
236
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
@@ -261,6 +268,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json: any, i
|
|
|
261
268
|
'accountId': json['accountId'],
|
|
262
269
|
'hijackerId': json['hijackerId'],
|
|
263
270
|
'isDeleteable': json['isDeleteable'],
|
|
271
|
+
'isLocked': json['isLocked'],
|
|
264
272
|
'seoMetrics': SeoMetricsDtoFromJSON(json['seoMetrics']),
|
|
265
273
|
'tld': json['tld'],
|
|
266
274
|
'verified': json['verified'],
|
|
@@ -299,6 +307,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value?: Inters
|
|
|
299
307
|
'accountId': value['accountId'],
|
|
300
308
|
'hijackerId': value['hijackerId'],
|
|
301
309
|
'isDeleteable': value['isDeleteable'],
|
|
310
|
+
'isLocked': value['isLocked'],
|
|
302
311
|
'seoMetrics': SeoMetricsDtoToJSON(value['seoMetrics']),
|
|
303
312
|
'tld': value['tld'],
|
|
304
313
|
'verified': value['verified'],
|
|
@@ -33,6 +33,12 @@ export interface LeadDomainDto {
|
|
|
33
33
|
* @memberof LeadDomainDto
|
|
34
34
|
*/
|
|
35
35
|
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the domain is currently locked
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof LeadDomainDto
|
|
40
|
+
*/
|
|
41
|
+
isLocked: boolean;
|
|
36
42
|
/**
|
|
37
43
|
* Domain name
|
|
38
44
|
* @type {string}
|
|
@@ -76,6 +82,7 @@ export interface LeadDomainDto {
|
|
|
76
82
|
*/
|
|
77
83
|
export function instanceOfLeadDomainDto(value: object): value is LeadDomainDto {
|
|
78
84
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
85
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
79
86
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
80
87
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
81
88
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
@@ -96,6 +103,7 @@ export function LeadDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
96
103
|
return {
|
|
97
104
|
|
|
98
105
|
'id': json['id'],
|
|
106
|
+
'isLocked': json['isLocked'],
|
|
99
107
|
'name': json['name'],
|
|
100
108
|
'displayName': json['displayName'],
|
|
101
109
|
'currencyCode': json['currencyCode'],
|
|
@@ -117,6 +125,7 @@ export function LeadDomainDtoToJSONTyped(value?: LeadDomainDto | null, ignoreDis
|
|
|
117
125
|
return {
|
|
118
126
|
|
|
119
127
|
'id': value['id'],
|
|
128
|
+
'isLocked': value['isLocked'],
|
|
120
129
|
'name': value['name'],
|
|
121
130
|
'displayName': value['displayName'],
|
|
122
131
|
'currencyCode': value['currencyCode'],
|
package/src/models/index.ts
CHANGED
|
@@ -122,6 +122,7 @@ export * from './DomainExchangeRateDto';
|
|
|
122
122
|
export * from './DomainFiltersDto';
|
|
123
123
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
|
124
124
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationInput';
|
|
125
|
+
export * from './DomainLockDto';
|
|
125
126
|
export * from './DomainPricesChangeDto';
|
|
126
127
|
export * from './DomainSalesInformationDto';
|
|
127
128
|
export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
|