@randock/nameshift-api-client 0.0.231 → 0.0.232
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 +5 -0
- package/README.md +3 -3
- package/dist/models/AccountSettingsDto.d.ts +7 -0
- package/dist/models/AccountSettingsDto.js +5 -0
- package/dist/models/AccountSettingsRentConfigurationDto.d.ts +33 -0
- package/dist/models/AccountSettingsRentConfigurationDto.js +52 -0
- package/dist/models/BuyerSubscriptionListItemDto.d.ts +1 -1
- package/dist/models/CreateManualLeadInput.d.ts +1 -0
- package/dist/models/CreateManualLeadInput.js +2 -1
- package/dist/models/CreateSubscriptionInput.d.ts +1 -1
- package/dist/models/DomainDto.d.ts +7 -0
- package/dist/models/DomainDto.js +5 -0
- package/dist/models/DomainSalesInformationDto.d.ts +7 -0
- package/dist/models/DomainSalesInformationDto.js +5 -0
- package/dist/models/DomainSalesInformationRentConfigurationDto.d.ts +39 -0
- package/dist/models/DomainSalesInformationRentConfigurationDto.js +56 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +1 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
- package/dist/models/RentConfigurationDto.d.ts +39 -0
- package/dist/models/RentConfigurationDto.js +56 -0
- package/dist/models/RentConfigurationInput.d.ts +39 -0
- package/dist/models/RentConfigurationInput.js +52 -0
- package/dist/models/RentConfigurationPresetsDto.d.ts +32 -0
- package/dist/models/RentConfigurationPresetsDto.js +51 -0
- package/dist/models/SellerSubscriptionListItemDto.d.ts +1 -1
- package/dist/models/SubscriptionDetailsDto.d.ts +1 -1
- package/dist/models/SubscriptionDto.d.ts +2 -2
- package/dist/models/SubscriptionListItemDto.d.ts +1 -1
- package/dist/models/UpdateDomainInput.d.ts +7 -0
- package/dist/models/UpdateDomainInput.js +3 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +1 -1
- package/dist/models/WithSettingsInner.d.ts +7 -0
- package/dist/models/WithSettingsInner.js +5 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/models/AccountSettingsDto.ts +16 -0
- package/src/models/AccountSettingsRentConfigurationDto.ts +74 -0
- package/src/models/BuyerSubscriptionListItemDto.ts +1 -1
- package/src/models/CreateManualLeadInput.ts +2 -1
- package/src/models/CreateSubscriptionInput.ts +1 -1
- package/src/models/DomainDto.ts +16 -0
- package/src/models/DomainSalesInformationDto.ts +16 -0
- package/src/models/DomainSalesInformationRentConfigurationDto.ts +83 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +1 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
- package/src/models/RentConfigurationDto.ts +83 -0
- package/src/models/RentConfigurationInput.ts +81 -0
- package/src/models/RentConfigurationPresetsDto.ts +66 -0
- package/src/models/SellerSubscriptionListItemDto.ts +1 -1
- package/src/models/SubscriptionDetailsDto.ts +1 -1
- package/src/models/SubscriptionDto.ts +2 -2
- package/src/models/SubscriptionListItemDto.ts +1 -1
- package/src/models/UpdateDomainInput.ts +15 -0
- package/src/models/UpdateSubscriptionInput.ts +1 -1
- package/src/models/WithSettingsInner.ts +16 -0
- package/src/models/index.ts +5 -0
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
MoneyDtoToJSON,
|
|
28
28
|
MoneyDtoToJSONTyped,
|
|
29
29
|
} from './MoneyDto';
|
|
30
|
+
import type { DomainSalesInformationRentConfigurationDto } from './DomainSalesInformationRentConfigurationDto';
|
|
31
|
+
import {
|
|
32
|
+
DomainSalesInformationRentConfigurationDtoFromJSON,
|
|
33
|
+
DomainSalesInformationRentConfigurationDtoFromJSONTyped,
|
|
34
|
+
DomainSalesInformationRentConfigurationDtoToJSON,
|
|
35
|
+
DomainSalesInformationRentConfigurationDtoToJSONTyped,
|
|
36
|
+
} from './DomainSalesInformationRentConfigurationDto';
|
|
30
37
|
import type { DomainStatsDto } from './DomainStatsDto';
|
|
31
38
|
import {
|
|
32
39
|
DomainStatsDtoFromJSON,
|
|
@@ -79,6 +86,12 @@ export interface DomainSalesInformationDto {
|
|
|
79
86
|
* @memberof DomainSalesInformationDto
|
|
80
87
|
*/
|
|
81
88
|
leaseToOwn: DomainSalesInformationLeaseToOwnConfigurationDto | null;
|
|
89
|
+
/**
|
|
90
|
+
* Rent configuration or null if it is not enabled
|
|
91
|
+
* @type {DomainSalesInformationRentConfigurationDto}
|
|
92
|
+
* @memberof DomainSalesInformationDto
|
|
93
|
+
*/
|
|
94
|
+
rent: DomainSalesInformationRentConfigurationDto;
|
|
82
95
|
/**
|
|
83
96
|
* min offer price or null if offers are not enabled
|
|
84
97
|
* @type {MoneyDto}
|
|
@@ -125,6 +138,7 @@ export function instanceOfDomainSalesInformationDto(value: object): value is Dom
|
|
|
125
138
|
if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined) return false;
|
|
126
139
|
if (!('buyNowPrice' in value) || value['buyNowPrice'] === undefined) return false;
|
|
127
140
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
141
|
+
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
128
142
|
if (!('minOfferPrice' in value) || value['minOfferPrice'] === undefined) return false;
|
|
129
143
|
if (!('seller' in value) || value['seller'] === undefined) return false;
|
|
130
144
|
if (!('sold' in value) || value['sold'] === undefined) return false;
|
|
@@ -148,6 +162,7 @@ export function DomainSalesInformationDtoFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
148
162
|
'domainDisplayName': json['domainDisplayName'],
|
|
149
163
|
'buyNowPrice': MoneyDtoFromJSON(json['buyNowPrice']),
|
|
150
164
|
'leaseToOwn': DomainSalesInformationLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
165
|
+
'rent': DomainSalesInformationRentConfigurationDtoFromJSON(json['rent']),
|
|
151
166
|
'minOfferPrice': MoneyDtoFromJSON(json['minOfferPrice']),
|
|
152
167
|
'seller': DomainSellerDtoFromJSON(json['seller']),
|
|
153
168
|
'sold': json['sold'],
|
|
@@ -172,6 +187,7 @@ export function DomainSalesInformationDtoToJSONTyped(value?: DomainSalesInformat
|
|
|
172
187
|
'domainDisplayName': value['domainDisplayName'],
|
|
173
188
|
'buyNowPrice': MoneyDtoToJSON(value['buyNowPrice']),
|
|
174
189
|
'leaseToOwn': DomainSalesInformationLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
190
|
+
'rent': DomainSalesInformationRentConfigurationDtoToJSON(value['rent']),
|
|
175
191
|
'minOfferPrice': MoneyDtoToJSON(value['minOfferPrice']),
|
|
176
192
|
'seller': DomainSellerDtoToJSON(value['seller']),
|
|
177
193
|
'sold': value['sold'],
|
|
@@ -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 { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DomainSalesInformationRentConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
export interface DomainSalesInformationRentConfigurationDto {
|
|
30
|
+
/**
|
|
31
|
+
* Enabled status of rent
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof DomainSalesInformationRentConfigurationDto
|
|
34
|
+
*/
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Rent price
|
|
38
|
+
* @type {MoneyDto}
|
|
39
|
+
* @memberof DomainSalesInformationRentConfigurationDto
|
|
40
|
+
*/
|
|
41
|
+
price: MoneyDto | null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the DomainSalesInformationRentConfigurationDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfDomainSalesInformationRentConfigurationDto(value: object): value is DomainSalesInformationRentConfigurationDto {
|
|
48
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
49
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function DomainSalesInformationRentConfigurationDtoFromJSON(json: any): DomainSalesInformationRentConfigurationDto {
|
|
54
|
+
return DomainSalesInformationRentConfigurationDtoFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function DomainSalesInformationRentConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSalesInformationRentConfigurationDto {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'enabled': json['enabled'],
|
|
64
|
+
'price': MoneyDtoFromJSON(json['price']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DomainSalesInformationRentConfigurationDtoToJSON(json: any): DomainSalesInformationRentConfigurationDto {
|
|
69
|
+
return DomainSalesInformationRentConfigurationDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DomainSalesInformationRentConfigurationDtoToJSONTyped(value?: DomainSalesInformationRentConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'enabled': value['enabled'],
|
|
80
|
+
'price': MoneyDtoToJSON(value['price']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
CHANGED
|
@@ -136,6 +136,7 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
136
136
|
*/
|
|
137
137
|
export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = {
|
|
138
138
|
LEASE_TO_OWN: 'LEASE_TO_OWN',
|
|
139
|
+
RENT: 'RENT',
|
|
139
140
|
SEO_METRICS: 'SEO_METRICS',
|
|
140
141
|
BANK_PAYOUTS: 'BANK_PAYOUTS'
|
|
141
142
|
} as const;
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { RentConfigurationDto } from './RentConfigurationDto';
|
|
24
|
+
import {
|
|
25
|
+
RentConfigurationDtoFromJSON,
|
|
26
|
+
RentConfigurationDtoFromJSONTyped,
|
|
27
|
+
RentConfigurationDtoToJSON,
|
|
28
|
+
RentConfigurationDtoToJSONTyped,
|
|
29
|
+
} from './RentConfigurationDto';
|
|
23
30
|
import type { LeaseToOwnConfigurationDto } from './LeaseToOwnConfigurationDto';
|
|
24
31
|
import {
|
|
25
32
|
LeaseToOwnConfigurationDtoFromJSON,
|
|
@@ -115,6 +122,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
115
122
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
116
123
|
*/
|
|
117
124
|
leaseToOwn: LeaseToOwnConfigurationDto;
|
|
125
|
+
/**
|
|
126
|
+
* The rent configuration
|
|
127
|
+
* @type {RentConfigurationDto}
|
|
128
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
129
|
+
*/
|
|
130
|
+
rent: RentConfigurationDto;
|
|
118
131
|
/**
|
|
119
132
|
* The lease to own configuration
|
|
120
133
|
* @type {LandingPageSettingsDto}
|
|
@@ -168,6 +181,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
|
|
|
168
181
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
169
182
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
170
183
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
184
|
+
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
171
185
|
if (!('landingPageSettings' in value) || value['landingPageSettings'] === undefined) return false;
|
|
172
186
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
173
187
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
@@ -198,6 +212,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
198
212
|
'currencyCode': json['currencyCode'],
|
|
199
213
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
200
214
|
'leaseToOwn': LeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
215
|
+
'rent': RentConfigurationDtoFromJSON(json['rent']),
|
|
201
216
|
'landingPageSettings': LandingPageSettingsDtoFromJSON(json['landingPageSettings']),
|
|
202
217
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
203
218
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -229,6 +244,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSONTyped(value?: Intersect
|
|
|
229
244
|
'currencyCode': value['currencyCode'],
|
|
230
245
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
231
246
|
'leaseToOwn': LeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
247
|
+
'rent': RentConfigurationDtoToJSON(value['rent']),
|
|
232
248
|
'landingPageSettings': LandingPageSettingsDtoToJSON(value['landingPageSettings']),
|
|
233
249
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
234
250
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { RentConfigurationDto } from './RentConfigurationDto';
|
|
24
|
+
import {
|
|
25
|
+
RentConfigurationDtoFromJSON,
|
|
26
|
+
RentConfigurationDtoFromJSONTyped,
|
|
27
|
+
RentConfigurationDtoToJSON,
|
|
28
|
+
RentConfigurationDtoToJSONTyped,
|
|
29
|
+
} from './RentConfigurationDto';
|
|
23
30
|
import type { LeaseToOwnConfigurationDto } from './LeaseToOwnConfigurationDto';
|
|
24
31
|
import {
|
|
25
32
|
LeaseToOwnConfigurationDtoFromJSON,
|
|
@@ -115,6 +122,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
115
122
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
116
123
|
*/
|
|
117
124
|
leaseToOwn: LeaseToOwnConfigurationDto;
|
|
125
|
+
/**
|
|
126
|
+
* The rent configuration
|
|
127
|
+
* @type {RentConfigurationDto}
|
|
128
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
129
|
+
*/
|
|
130
|
+
rent: RentConfigurationDto;
|
|
118
131
|
/**
|
|
119
132
|
* The lease to own configuration
|
|
120
133
|
* @type {LandingPageSettingsDto}
|
|
@@ -174,6 +187,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
174
187
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
175
188
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
176
189
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
190
|
+
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
177
191
|
if (!('landingPageSettings' in value) || value['landingPageSettings'] === undefined) return false;
|
|
178
192
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
179
193
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
@@ -205,6 +219,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
205
219
|
'currencyCode': json['currencyCode'],
|
|
206
220
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
207
221
|
'leaseToOwn': LeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
222
|
+
'rent': RentConfigurationDtoFromJSON(json['rent']),
|
|
208
223
|
'landingPageSettings': LandingPageSettingsDtoFromJSON(json['landingPageSettings']),
|
|
209
224
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
210
225
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -237,6 +252,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
|
|
|
237
252
|
'currencyCode': value['currencyCode'],
|
|
238
253
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
239
254
|
'leaseToOwn': LeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
255
|
+
'rent': RentConfigurationDtoToJSON(value['rent']),
|
|
240
256
|
'landingPageSettings': LandingPageSettingsDtoToJSON(value['landingPageSettings']),
|
|
241
257
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
242
258
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
@@ -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 { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RentConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
export interface RentConfigurationDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof RentConfigurationDto
|
|
34
|
+
*/
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {MoneyDto}
|
|
39
|
+
* @memberof RentConfigurationDto
|
|
40
|
+
*/
|
|
41
|
+
price: MoneyDto | null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the RentConfigurationDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfRentConfigurationDto(value: object): value is RentConfigurationDto {
|
|
48
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
49
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RentConfigurationDtoFromJSON(json: any): RentConfigurationDto {
|
|
54
|
+
return RentConfigurationDtoFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function RentConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RentConfigurationDto {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'enabled': json['enabled'],
|
|
64
|
+
'price': MoneyDtoFromJSON(json['price']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function RentConfigurationDtoToJSON(json: any): RentConfigurationDto {
|
|
69
|
+
return RentConfigurationDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function RentConfigurationDtoToJSONTyped(value?: RentConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'enabled': value['enabled'],
|
|
80
|
+
'price': MoneyDtoToJSON(value['price']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -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 { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RentConfigurationInput
|
|
28
|
+
*/
|
|
29
|
+
export interface RentConfigurationInput {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof RentConfigurationInput
|
|
34
|
+
*/
|
|
35
|
+
enabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {MoneyDto}
|
|
39
|
+
* @memberof RentConfigurationInput
|
|
40
|
+
*/
|
|
41
|
+
price?: MoneyDto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the RentConfigurationInput interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfRentConfigurationInput(value: object): value is RentConfigurationInput {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function RentConfigurationInputFromJSON(json: any): RentConfigurationInput {
|
|
52
|
+
return RentConfigurationInputFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function RentConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RentConfigurationInput {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
62
|
+
'price': json['price'] == null ? undefined : MoneyDtoFromJSON(json['price']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function RentConfigurationInputToJSON(json: any): RentConfigurationInput {
|
|
67
|
+
return RentConfigurationInputToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function RentConfigurationInputToJSONTyped(value?: RentConfigurationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'enabled': value['enabled'],
|
|
78
|
+
'price': MoneyDtoToJSON(value['price']),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 RentConfigurationPresetsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface RentConfigurationPresetsDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof RentConfigurationPresetsDto
|
|
26
|
+
*/
|
|
27
|
+
minMonthPrice: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RentConfigurationPresetsDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfRentConfigurationPresetsDto(value: object): value is RentConfigurationPresetsDto {
|
|
34
|
+
if (!('minMonthPrice' in value) || value['minMonthPrice'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function RentConfigurationPresetsDtoFromJSON(json: any): RentConfigurationPresetsDto {
|
|
39
|
+
return RentConfigurationPresetsDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function RentConfigurationPresetsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RentConfigurationPresetsDto {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'minMonthPrice': json['minMonthPrice'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RentConfigurationPresetsDtoToJSON(json: any): RentConfigurationPresetsDto {
|
|
53
|
+
return RentConfigurationPresetsDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function RentConfigurationPresetsDtoToJSONTyped(value?: RentConfigurationPresetsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'minMonthPrice': value['minMonthPrice'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -177,7 +177,7 @@ export interface SubscriptionDto {
|
|
|
177
177
|
* @type {number}
|
|
178
178
|
* @memberof SubscriptionDto
|
|
179
179
|
*/
|
|
180
|
-
installments: number;
|
|
180
|
+
installments: number | null;
|
|
181
181
|
/**
|
|
182
182
|
*
|
|
183
183
|
* @type {number}
|
|
@@ -189,7 +189,7 @@ export interface SubscriptionDto {
|
|
|
189
189
|
* @type {number}
|
|
190
190
|
* @memberof SubscriptionDto
|
|
191
191
|
*/
|
|
192
|
-
expectedInstallmentsNumber: number;
|
|
192
|
+
expectedInstallmentsNumber: number | null;
|
|
193
193
|
/**
|
|
194
194
|
*
|
|
195
195
|
* @type {SubscriptionBillingPeriodicityDto}
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
LeaseToOwnConfigurationInputToJSON,
|
|
35
35
|
LeaseToOwnConfigurationInputToJSONTyped,
|
|
36
36
|
} from './LeaseToOwnConfigurationInput';
|
|
37
|
+
import type { RentConfigurationInput } from './RentConfigurationInput';
|
|
38
|
+
import {
|
|
39
|
+
RentConfigurationInputFromJSON,
|
|
40
|
+
RentConfigurationInputFromJSONTyped,
|
|
41
|
+
RentConfigurationInputToJSON,
|
|
42
|
+
RentConfigurationInputToJSONTyped,
|
|
43
|
+
} from './RentConfigurationInput';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
@@ -65,6 +72,12 @@ export interface UpdateDomainInput {
|
|
|
65
72
|
* @memberof UpdateDomainInput
|
|
66
73
|
*/
|
|
67
74
|
leaseToOwn?: LeaseToOwnConfigurationInput;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {RentConfigurationInput}
|
|
78
|
+
* @memberof UpdateDomainInput
|
|
79
|
+
*/
|
|
80
|
+
rent?: RentConfigurationInput;
|
|
68
81
|
/**
|
|
69
82
|
*
|
|
70
83
|
* @type {LandingPageInput}
|
|
@@ -94,6 +107,7 @@ export function UpdateDomainInputFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
94
107
|
'minOffer': json['minOffer'] == null ? undefined : MoneyDtoFromJSON(json['minOffer']),
|
|
95
108
|
'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
|
|
96
109
|
'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnConfigurationInputFromJSON(json['leaseToOwn']),
|
|
110
|
+
'rent': json['rent'] == null ? undefined : RentConfigurationInputFromJSON(json['rent']),
|
|
97
111
|
'landingPage': json['landingPage'] == null ? undefined : LandingPageInputFromJSON(json['landingPage']),
|
|
98
112
|
};
|
|
99
113
|
}
|
|
@@ -113,6 +127,7 @@ export function UpdateDomainInputToJSONTyped(value?: UpdateDomainInput | null, i
|
|
|
113
127
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
114
128
|
'currencyCode': value['currencyCode'],
|
|
115
129
|
'leaseToOwn': LeaseToOwnConfigurationInputToJSON(value['leaseToOwn']),
|
|
130
|
+
'rent': RentConfigurationInputToJSON(value['rent']),
|
|
116
131
|
'landingPage': LandingPageInputToJSON(value['landingPage']),
|
|
117
132
|
};
|
|
118
133
|
}
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
AccountSettingsLeaseToOwnConfigurationDtoToJSON,
|
|
28
28
|
AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped,
|
|
29
29
|
} from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
30
|
+
import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
|
|
31
|
+
import {
|
|
32
|
+
AccountSettingsRentConfigurationDtoFromJSON,
|
|
33
|
+
AccountSettingsRentConfigurationDtoFromJSONTyped,
|
|
34
|
+
AccountSettingsRentConfigurationDtoToJSON,
|
|
35
|
+
AccountSettingsRentConfigurationDtoToJSONTyped,
|
|
36
|
+
} from './AccountSettingsRentConfigurationDto';
|
|
30
37
|
|
|
31
38
|
/**
|
|
32
39
|
*
|
|
@@ -82,6 +89,12 @@ export interface WithSettingsInner {
|
|
|
82
89
|
* @memberof WithSettingsInner
|
|
83
90
|
*/
|
|
84
91
|
leaseToOwn: AccountSettingsLeaseToOwnConfigurationDto;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {AccountSettingsRentConfigurationDto}
|
|
95
|
+
* @memberof WithSettingsInner
|
|
96
|
+
*/
|
|
97
|
+
rent: AccountSettingsRentConfigurationDto;
|
|
85
98
|
}
|
|
86
99
|
|
|
87
100
|
/**
|
|
@@ -96,6 +109,7 @@ export function instanceOfWithSettingsInner(value: object): value is WithSetting
|
|
|
96
109
|
if (!('showDeliversIn' in value) || value['showDeliversIn'] === undefined) return false;
|
|
97
110
|
if (!('sidnIdcode' in value) || value['sidnIdcode'] === undefined) return false;
|
|
98
111
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
112
|
+
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
99
113
|
return true;
|
|
100
114
|
}
|
|
101
115
|
|
|
@@ -117,6 +131,7 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
117
131
|
'showDeliversIn': json['showDeliversIn'],
|
|
118
132
|
'sidnIdcode': json['sidnIdcode'],
|
|
119
133
|
'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
134
|
+
'rent': AccountSettingsRentConfigurationDtoFromJSON(json['rent']),
|
|
120
135
|
};
|
|
121
136
|
}
|
|
122
137
|
|
|
@@ -139,6 +154,7 @@ export function WithSettingsInnerToJSONTyped(value?: WithSettingsInner | null, i
|
|
|
139
154
|
'showDeliversIn': value['showDeliversIn'],
|
|
140
155
|
'sidnIdcode': value['sidnIdcode'],
|
|
141
156
|
'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
157
|
+
'rent': AccountSettingsRentConfigurationDtoToJSON(value['rent']),
|
|
142
158
|
};
|
|
143
159
|
}
|
|
144
160
|
|
package/src/models/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './AccountPayoutDto';
|
|
|
12
12
|
export * from './AccountSettingsDto';
|
|
13
13
|
export * from './AccountSettingsInput';
|
|
14
14
|
export * from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
15
|
+
export * from './AccountSettingsRentConfigurationDto';
|
|
15
16
|
export * from './AccountSettingsSidnDto';
|
|
16
17
|
export * from './AddressDto';
|
|
17
18
|
export * from './AdminAccountLoginDto';
|
|
@@ -64,6 +65,7 @@ export * from './DomainDto';
|
|
|
64
65
|
export * from './DomainExchangeRateDto';
|
|
65
66
|
export * from './DomainSalesInformationDto';
|
|
66
67
|
export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
|
68
|
+
export * from './DomainSalesInformationRentConfigurationDto';
|
|
67
69
|
export * from './DomainSellerDto';
|
|
68
70
|
export * from './DomainStatsDto';
|
|
69
71
|
export * from './DomainTransferAgentDto';
|
|
@@ -164,6 +166,9 @@ export * from './PutBuyerLeadOfferInput';
|
|
|
164
166
|
export * from './PutLeadOfferInput';
|
|
165
167
|
export * from './RegisterAccountInput';
|
|
166
168
|
export * from './RelatedSellerDomain';
|
|
169
|
+
export * from './RentConfigurationDto';
|
|
170
|
+
export * from './RentConfigurationInput';
|
|
171
|
+
export * from './RentConfigurationPresetsDto';
|
|
167
172
|
export * from './RequestAccessTokenInput';
|
|
168
173
|
export * from './SellerDomainTransferAuthCodeDto';
|
|
169
174
|
export * from './SellerDomainTransferDomainDto';
|