@randock/nameshift-api-client 0.0.363 → 0.0.365
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 +4 -0
- package/README.md +3 -3
- package/dist/apis/LeadsApi.d.ts +13 -1
- package/dist/apis/LeadsApi.js +56 -0
- package/dist/models/AccountSettingsDto.d.ts +7 -0
- package/dist/models/AccountSettingsDto.js +5 -0
- package/dist/models/AccountSettingsInput.d.ts +7 -0
- package/dist/models/AccountSettingsInput.js +3 -0
- package/dist/models/AdminAccountSettingsInput.d.ts +7 -0
- package/dist/models/AdminAccountSettingsInput.js +3 -0
- package/dist/models/DomainLockConfigurationDto.d.ts +39 -0
- package/dist/models/DomainLockConfigurationDto.js +56 -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/LockConfigurationInput.d.ts +39 -0
- package/dist/models/LockConfigurationInput.js +52 -0
- package/dist/models/LockDurationDto.d.ts +47 -0
- package/dist/models/LockDurationDto.js +64 -0
- package/dist/models/LockDurationInput.d.ts +47 -0
- package/dist/models/LockDurationInput.js +60 -0
- package/dist/models/SellerLeadDetails.d.ts +7 -0
- package/dist/models/SellerLeadDetails.js +5 -0
- package/dist/models/WithSettingsInner.d.ts +7 -0
- package/dist/models/WithSettingsInner.js +5 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +58 -0
- package/src/models/AccountSettingsDto.ts +16 -0
- package/src/models/AccountSettingsInput.ts +15 -0
- package/src/models/AdminAccountSettingsInput.ts +15 -0
- package/src/models/DomainLockConfigurationDto.ts +83 -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/LockConfigurationInput.ts +81 -0
- package/src/models/LockDurationDto.ts +87 -0
- package/src/models/LockDurationInput.ts +85 -0
- package/src/models/SellerLeadDetails.ts +16 -0
- package/src/models/WithSettingsInner.ts +16 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import type { LockDurationDto } from './LockDurationDto';
|
|
17
|
+
import {
|
|
18
|
+
LockDurationDtoFromJSON,
|
|
19
|
+
LockDurationDtoFromJSONTyped,
|
|
20
|
+
LockDurationDtoToJSON,
|
|
21
|
+
LockDurationDtoToJSONTyped,
|
|
22
|
+
} from './LockDurationDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DomainLockConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
export interface DomainLockConfigurationDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof DomainLockConfigurationDto
|
|
34
|
+
*/
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {LockDurationDto}
|
|
39
|
+
* @memberof DomainLockConfigurationDto
|
|
40
|
+
*/
|
|
41
|
+
duration: LockDurationDto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the DomainLockConfigurationDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfDomainLockConfigurationDto(value: object): value is DomainLockConfigurationDto {
|
|
48
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
49
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function DomainLockConfigurationDtoFromJSON(json: any): DomainLockConfigurationDto {
|
|
54
|
+
return DomainLockConfigurationDtoFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function DomainLockConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainLockConfigurationDto {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'enabled': json['enabled'],
|
|
64
|
+
'duration': LockDurationDtoFromJSON(json['duration']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DomainLockConfigurationDtoToJSON(json: any): DomainLockConfigurationDto {
|
|
69
|
+
return DomainLockConfigurationDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DomainLockConfigurationDtoToJSONTyped(value?: DomainLockConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'enabled': value['enabled'],
|
|
80
|
+
'duration': LockDurationDtoToJSON(value['duration']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -99,6 +99,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
99
99
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
100
100
|
*/
|
|
101
101
|
isLocked: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* The date until which the domain is locked (end date of the current continuous lock period), or null if not locked
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
106
|
+
*/
|
|
107
|
+
lockedUntil: Date | null;
|
|
102
108
|
/**
|
|
103
109
|
* The TLD for this domain.
|
|
104
110
|
* @type {string}
|
|
@@ -231,6 +237,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
|
|
|
231
237
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
232
238
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
233
239
|
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
240
|
+
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
|
|
234
241
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
235
242
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
236
243
|
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
@@ -269,6 +276,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
269
276
|
'hijackerId': json['hijackerId'],
|
|
270
277
|
'isDeleteable': json['isDeleteable'],
|
|
271
278
|
'isLocked': json['isLocked'],
|
|
279
|
+
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
272
280
|
'tld': json['tld'],
|
|
273
281
|
'verified': json['verified'],
|
|
274
282
|
'nameservers': json['nameservers'],
|
|
@@ -308,6 +316,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSONTyped(value?: Intersect
|
|
|
308
316
|
'hijackerId': value['hijackerId'],
|
|
309
317
|
'isDeleteable': value['isDeleteable'],
|
|
310
318
|
'isLocked': value['isLocked'],
|
|
319
|
+
'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
|
|
311
320
|
'tld': value['tld'],
|
|
312
321
|
'verified': value['verified'],
|
|
313
322
|
'nameservers': value['nameservers'],
|
|
@@ -99,6 +99,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
|
99
99
|
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
100
100
|
*/
|
|
101
101
|
isLocked: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* The date until which the domain is locked (end date of the current continuous lock period), or null if not locked
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
106
|
+
*/
|
|
107
|
+
lockedUntil: Date | null;
|
|
102
108
|
/**
|
|
103
109
|
* The TLD for this domain.
|
|
104
110
|
* @type {string}
|
|
@@ -237,6 +243,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(
|
|
|
237
243
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
238
244
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
239
245
|
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
246
|
+
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
|
|
240
247
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
241
248
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
242
249
|
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
@@ -276,6 +283,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyp
|
|
|
276
283
|
'hijackerId': json['hijackerId'],
|
|
277
284
|
'isDeleteable': json['isDeleteable'],
|
|
278
285
|
'isLocked': json['isLocked'],
|
|
286
|
+
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
279
287
|
'tld': json['tld'],
|
|
280
288
|
'verified': json['verified'],
|
|
281
289
|
'nameservers': json['nameservers'],
|
|
@@ -316,6 +324,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped
|
|
|
316
324
|
'hijackerId': value['hijackerId'],
|
|
317
325
|
'isDeleteable': value['isDeleteable'],
|
|
318
326
|
'isLocked': value['isLocked'],
|
|
327
|
+
'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
|
|
319
328
|
'tld': value['tld'],
|
|
320
329
|
'verified': value['verified'],
|
|
321
330
|
'nameservers': value['nameservers'],
|
|
@@ -99,6 +99,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
99
99
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
100
100
|
*/
|
|
101
101
|
isLocked: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* The date until which the domain is locked (end date of the current continuous lock period), or null if not locked
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
106
|
+
*/
|
|
107
|
+
lockedUntil: Date | null;
|
|
102
108
|
/**
|
|
103
109
|
* The TLD for this domain.
|
|
104
110
|
* @type {string}
|
|
@@ -237,6 +243,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
237
243
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
238
244
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
239
245
|
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
246
|
+
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
|
|
240
247
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
241
248
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
242
249
|
if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
|
|
@@ -276,6 +283,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
276
283
|
'hijackerId': json['hijackerId'],
|
|
277
284
|
'isDeleteable': json['isDeleteable'],
|
|
278
285
|
'isLocked': json['isLocked'],
|
|
286
|
+
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
279
287
|
'tld': json['tld'],
|
|
280
288
|
'verified': json['verified'],
|
|
281
289
|
'nameservers': json['nameservers'],
|
|
@@ -316,6 +324,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
|
|
|
316
324
|
'hijackerId': value['hijackerId'],
|
|
317
325
|
'isDeleteable': value['isDeleteable'],
|
|
318
326
|
'isLocked': value['isLocked'],
|
|
327
|
+
'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
|
|
319
328
|
'tld': value['tld'],
|
|
320
329
|
'verified': value['verified'],
|
|
321
330
|
'nameservers': value['nameservers'],
|
|
@@ -99,6 +99,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
|
|
|
99
99
|
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
100
100
|
*/
|
|
101
101
|
isLocked: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* The date until which the domain is locked (end date of the current continuous lock period), or null if not locked
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof IntersectionDomainDtoWithSeoMetricsDto
|
|
106
|
+
*/
|
|
107
|
+
lockedUntil: Date | null;
|
|
102
108
|
/**
|
|
103
109
|
* The SEO metrics for this domain
|
|
104
110
|
* @type {SeoMetricsDto}
|
|
@@ -231,6 +237,7 @@ export function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value: object):
|
|
|
231
237
|
if (!('hijackerId' in value) || value['hijackerId'] === undefined) return false;
|
|
232
238
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
233
239
|
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
240
|
+
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
|
|
234
241
|
if (!('seoMetrics' in value) || value['seoMetrics'] === undefined) return false;
|
|
235
242
|
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
236
243
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
@@ -269,6 +276,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json: any, i
|
|
|
269
276
|
'hijackerId': json['hijackerId'],
|
|
270
277
|
'isDeleteable': json['isDeleteable'],
|
|
271
278
|
'isLocked': json['isLocked'],
|
|
279
|
+
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
272
280
|
'seoMetrics': SeoMetricsDtoFromJSON(json['seoMetrics']),
|
|
273
281
|
'tld': json['tld'],
|
|
274
282
|
'verified': json['verified'],
|
|
@@ -308,6 +316,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value?: Inters
|
|
|
308
316
|
'hijackerId': value['hijackerId'],
|
|
309
317
|
'isDeleteable': value['isDeleteable'],
|
|
310
318
|
'isLocked': value['isLocked'],
|
|
319
|
+
'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
|
|
311
320
|
'seoMetrics': SeoMetricsDtoToJSON(value['seoMetrics']),
|
|
312
321
|
'tld': value['tld'],
|
|
313
322
|
'verified': value['verified'],
|
|
@@ -39,6 +39,12 @@ export interface LeadDomainDto {
|
|
|
39
39
|
* @memberof LeadDomainDto
|
|
40
40
|
*/
|
|
41
41
|
isLocked: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the domain is currently locked
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof LeadDomainDto
|
|
46
|
+
*/
|
|
47
|
+
lockedUntil: Date | null;
|
|
42
48
|
/**
|
|
43
49
|
* Domain name
|
|
44
50
|
* @type {string}
|
|
@@ -83,6 +89,7 @@ export interface LeadDomainDto {
|
|
|
83
89
|
export function instanceOfLeadDomainDto(value: object): value is LeadDomainDto {
|
|
84
90
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
85
91
|
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
92
|
+
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
|
|
86
93
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
87
94
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
88
95
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
@@ -104,6 +111,7 @@ export function LeadDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
104
111
|
|
|
105
112
|
'id': json['id'],
|
|
106
113
|
'isLocked': json['isLocked'],
|
|
114
|
+
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
107
115
|
'name': json['name'],
|
|
108
116
|
'displayName': json['displayName'],
|
|
109
117
|
'currencyCode': json['currencyCode'],
|
|
@@ -126,6 +134,7 @@ export function LeadDomainDtoToJSONTyped(value?: LeadDomainDto | null, ignoreDis
|
|
|
126
134
|
|
|
127
135
|
'id': value['id'],
|
|
128
136
|
'isLocked': value['isLocked'],
|
|
137
|
+
'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
|
|
129
138
|
'name': value['name'],
|
|
130
139
|
'displayName': value['displayName'],
|
|
131
140
|
'currencyCode': value['currencyCode'],
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
import type { LockDurationInput } from './LockDurationInput';
|
|
17
|
+
import {
|
|
18
|
+
LockDurationInputFromJSON,
|
|
19
|
+
LockDurationInputFromJSONTyped,
|
|
20
|
+
LockDurationInputToJSON,
|
|
21
|
+
LockDurationInputToJSONTyped,
|
|
22
|
+
} from './LockDurationInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LockConfigurationInput
|
|
28
|
+
*/
|
|
29
|
+
export interface LockConfigurationInput {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof LockConfigurationInput
|
|
34
|
+
*/
|
|
35
|
+
enabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {LockDurationInput}
|
|
39
|
+
* @memberof LockConfigurationInput
|
|
40
|
+
*/
|
|
41
|
+
duration?: LockDurationInput;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the LockConfigurationInput interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfLockConfigurationInput(value: object): value is LockConfigurationInput {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function LockConfigurationInputFromJSON(json: any): LockConfigurationInput {
|
|
52
|
+
return LockConfigurationInputFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function LockConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LockConfigurationInput {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
62
|
+
'duration': json['duration'] == null ? undefined : LockDurationInputFromJSON(json['duration']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function LockConfigurationInputToJSON(json: any): LockConfigurationInput {
|
|
67
|
+
return LockConfigurationInputToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function LockConfigurationInputToJSONTyped(value?: LockConfigurationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'enabled': value['enabled'],
|
|
78
|
+
'duration': LockDurationInputToJSON(value['duration']),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
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 LockDurationDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LockDurationDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof LockDurationDto
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LockDurationDto
|
|
32
|
+
*/
|
|
33
|
+
unit: LockDurationDtoUnitEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const LockDurationDtoUnitEnum = {
|
|
41
|
+
MINUTE: 'minute',
|
|
42
|
+
HOUR: 'hour',
|
|
43
|
+
DAY: 'day'
|
|
44
|
+
} as const;
|
|
45
|
+
export type LockDurationDtoUnitEnum = typeof LockDurationDtoUnitEnum[keyof typeof LockDurationDtoUnitEnum];
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the LockDurationDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfLockDurationDto(value: object): value is LockDurationDto {
|
|
52
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
53
|
+
if (!('unit' in value) || value['unit'] === undefined) return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function LockDurationDtoFromJSON(json: any): LockDurationDto {
|
|
58
|
+
return LockDurationDtoFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function LockDurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LockDurationDto {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'amount': json['amount'],
|
|
68
|
+
'unit': json['unit'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function LockDurationDtoToJSON(json: any): LockDurationDto {
|
|
73
|
+
return LockDurationDtoToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function LockDurationDtoToJSONTyped(value?: LockDurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'amount': value['amount'],
|
|
84
|
+
'unit': value['unit'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
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 LockDurationInput
|
|
20
|
+
*/
|
|
21
|
+
export interface LockDurationInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof LockDurationInput
|
|
26
|
+
*/
|
|
27
|
+
amount?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LockDurationInput
|
|
32
|
+
*/
|
|
33
|
+
unit?: LockDurationInputUnitEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const LockDurationInputUnitEnum = {
|
|
41
|
+
MINUTE: 'minute',
|
|
42
|
+
HOUR: 'hour',
|
|
43
|
+
DAY: 'day'
|
|
44
|
+
} as const;
|
|
45
|
+
export type LockDurationInputUnitEnum = typeof LockDurationInputUnitEnum[keyof typeof LockDurationInputUnitEnum];
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the LockDurationInput interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfLockDurationInput(value: object): value is LockDurationInput {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function LockDurationInputFromJSON(json: any): LockDurationInput {
|
|
56
|
+
return LockDurationInputFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LockDurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LockDurationInput {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
66
|
+
'unit': json['unit'] == null ? undefined : json['unit'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function LockDurationInputToJSON(json: any): LockDurationInput {
|
|
71
|
+
return LockDurationInputToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function LockDurationInputToJSONTyped(value?: LockDurationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'amount': value['amount'],
|
|
82
|
+
'unit': value['unit'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -48,6 +48,13 @@ import {
|
|
|
48
48
|
LeadRentConfigurationDtoToJSON,
|
|
49
49
|
LeadRentConfigurationDtoToJSONTyped,
|
|
50
50
|
} from './LeadRentConfigurationDto';
|
|
51
|
+
import type { DomainLockConfigurationDto } from './DomainLockConfigurationDto';
|
|
52
|
+
import {
|
|
53
|
+
DomainLockConfigurationDtoFromJSON,
|
|
54
|
+
DomainLockConfigurationDtoFromJSONTyped,
|
|
55
|
+
DomainLockConfigurationDtoToJSON,
|
|
56
|
+
DomainLockConfigurationDtoToJSONTyped,
|
|
57
|
+
} from './DomainLockConfigurationDto';
|
|
51
58
|
import type { LeadOfferDto } from './LeadOfferDto';
|
|
52
59
|
import {
|
|
53
60
|
LeadOfferDtoFromJSON,
|
|
@@ -122,6 +129,12 @@ export interface SellerLeadDetails {
|
|
|
122
129
|
* @memberof SellerLeadDetails
|
|
123
130
|
*/
|
|
124
131
|
isMutedForBuyer: boolean;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {DomainLockConfigurationDto}
|
|
135
|
+
* @memberof SellerLeadDetails
|
|
136
|
+
*/
|
|
137
|
+
domainLockConfiguration: DomainLockConfigurationDto;
|
|
125
138
|
/**
|
|
126
139
|
* Archived status
|
|
127
140
|
* @type {boolean}
|
|
@@ -251,6 +264,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
|
|
|
251
264
|
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
252
265
|
if (!('isMutedForSeller' in value) || value['isMutedForSeller'] === undefined) return false;
|
|
253
266
|
if (!('isMutedForBuyer' in value) || value['isMutedForBuyer'] === undefined) return false;
|
|
267
|
+
if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
|
|
254
268
|
if (!('archived' in value) || value['archived'] === undefined) return false;
|
|
255
269
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
256
270
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
@@ -285,6 +299,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
285
299
|
'buyer': BuyerDtoFromJSON(json['buyer']),
|
|
286
300
|
'isMutedForSeller': json['isMutedForSeller'],
|
|
287
301
|
'isMutedForBuyer': json['isMutedForBuyer'],
|
|
302
|
+
'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
|
|
288
303
|
'archived': json['archived'],
|
|
289
304
|
'createdAt': (new Date(json['createdAt'])),
|
|
290
305
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -320,6 +335,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
|
|
|
320
335
|
'buyer': BuyerDtoToJSON(value['buyer']),
|
|
321
336
|
'isMutedForSeller': value['isMutedForSeller'],
|
|
322
337
|
'isMutedForBuyer': value['isMutedForBuyer'],
|
|
338
|
+
'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
|
|
323
339
|
'archived': value['archived'],
|
|
324
340
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
325
341
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
@@ -69,6 +69,13 @@ import {
|
|
|
69
69
|
TimeTableConfigurationDtoToJSON,
|
|
70
70
|
TimeTableConfigurationDtoToJSONTyped,
|
|
71
71
|
} from './TimeTableConfigurationDto';
|
|
72
|
+
import type { DomainLockConfigurationDto } from './DomainLockConfigurationDto';
|
|
73
|
+
import {
|
|
74
|
+
DomainLockConfigurationDtoFromJSON,
|
|
75
|
+
DomainLockConfigurationDtoFromJSONTyped,
|
|
76
|
+
DomainLockConfigurationDtoToJSON,
|
|
77
|
+
DomainLockConfigurationDtoToJSONTyped,
|
|
78
|
+
} from './DomainLockConfigurationDto';
|
|
72
79
|
import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
|
|
73
80
|
import {
|
|
74
81
|
AccountSettingsRentConfigurationDtoFromJSON,
|
|
@@ -215,6 +222,12 @@ export interface WithSettingsInner {
|
|
|
215
222
|
* @memberof WithSettingsInner
|
|
216
223
|
*/
|
|
217
224
|
auctionConfiguration: AuctionConfigurationDto;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {DomainLockConfigurationDto}
|
|
228
|
+
* @memberof WithSettingsInner
|
|
229
|
+
*/
|
|
230
|
+
domainLockConfiguration: DomainLockConfigurationDto;
|
|
218
231
|
}
|
|
219
232
|
|
|
220
233
|
/**
|
|
@@ -243,6 +256,7 @@ export function instanceOfWithSettingsInner(value: object): value is WithSetting
|
|
|
243
256
|
if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
|
|
244
257
|
if (!('commissionsByDateRange' in value) || value['commissionsByDateRange'] === undefined) return false;
|
|
245
258
|
if (!('auctionConfiguration' in value) || value['auctionConfiguration'] === undefined) return false;
|
|
259
|
+
if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
|
|
246
260
|
return true;
|
|
247
261
|
}
|
|
248
262
|
|
|
@@ -278,6 +292,7 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
278
292
|
'commissionPercentage': json['commissionPercentage'],
|
|
279
293
|
'commissionsByDateRange': ((json['commissionsByDateRange'] as Array<any>).map(AccountCommissionByDateRangeDtoFromJSON)),
|
|
280
294
|
'auctionConfiguration': AuctionConfigurationDtoFromJSON(json['auctionConfiguration']),
|
|
295
|
+
'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
|
|
281
296
|
};
|
|
282
297
|
}
|
|
283
298
|
|
|
@@ -314,6 +329,7 @@ export function WithSettingsInnerToJSONTyped(value?: WithSettingsInner | null, i
|
|
|
314
329
|
'commissionPercentage': value['commissionPercentage'],
|
|
315
330
|
'commissionsByDateRange': ((value['commissionsByDateRange'] as Array<any>).map(AccountCommissionByDateRangeDtoToJSON)),
|
|
316
331
|
'auctionConfiguration': AuctionConfigurationDtoToJSON(value['auctionConfiguration']),
|
|
332
|
+
'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
|
|
317
333
|
};
|
|
318
334
|
}
|
|
319
335
|
|
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 './DomainLockConfigurationDto';
|
|
125
126
|
export * from './DomainLockDto';
|
|
126
127
|
export * from './DomainPricesChangeDto';
|
|
127
128
|
export * from './DomainSalesInformationDto';
|
|
@@ -224,6 +225,9 @@ export * from './ListDomainsWithUpdatedPricing200Response';
|
|
|
224
225
|
export * from './ListLeadMessagesDto';
|
|
225
226
|
export * from './ListLeadsResultItem';
|
|
226
227
|
export * from './ListNotifications200Response';
|
|
228
|
+
export * from './LockConfigurationInput';
|
|
229
|
+
export * from './LockDurationDto';
|
|
230
|
+
export * from './LockDurationInput';
|
|
227
231
|
export * from './LoginDto';
|
|
228
232
|
export * from './LoginInput';
|
|
229
233
|
export * from './MajesticMetrics';
|