@randock/nameshift-api-client 0.0.231 → 0.0.233
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 +6 -1
- package/README.md +3 -3
- package/dist/apis/LeadsApi.d.ts +3 -3
- package/dist/apis/LeadsApi.js +1 -1
- 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/LeadLeaseToOwnAndRentConfigurationPresetsDto.d.ts +48 -0
- package/dist/models/LeadLeaseToOwnAndRentConfigurationPresetsDto.js +61 -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 +6 -1
- package/dist/models/index.js +6 -1
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +6 -6
- 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/LeadLeaseToOwnAndRentConfigurationPresetsDto.ts +99 -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 +6 -1
- package/dist/models/LeadLeaseToOwnConfigurationPresetsDto.d.ts +0 -41
- package/dist/models/LeadLeaseToOwnConfigurationPresetsDto.js +0 -56
- package/src/models/LeadLeaseToOwnConfigurationPresetsDto.ts +0 -83
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -20,7 +20,7 @@ import type {
|
|
|
20
20
|
CreateLeadMessageInput,
|
|
21
21
|
CreateManualLeadInput,
|
|
22
22
|
IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto,
|
|
23
|
-
|
|
23
|
+
LeadLeaseToOwnAndRentConfigurationPresetsDto,
|
|
24
24
|
List200Response,
|
|
25
25
|
ListLeadMessagesDto,
|
|
26
26
|
ObjectId,
|
|
@@ -39,8 +39,8 @@ import {
|
|
|
39
39
|
CreateManualLeadInputToJSON,
|
|
40
40
|
IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON,
|
|
41
41
|
IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSON,
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSON,
|
|
43
|
+
LeadLeaseToOwnAndRentConfigurationPresetsDtoToJSON,
|
|
44
44
|
List200ResponseFromJSON,
|
|
45
45
|
List200ResponseToJSON,
|
|
46
46
|
ListLeadMessagesDtoFromJSON,
|
|
@@ -378,7 +378,7 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
378
378
|
/**
|
|
379
379
|
*
|
|
380
380
|
*/
|
|
381
|
-
async getLeadLeaseToOwnConfigurationPresetsRaw(requestParameters: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
381
|
+
async getLeadLeaseToOwnConfigurationPresetsRaw(requestParameters: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadLeaseToOwnAndRentConfigurationPresetsDto>> {
|
|
382
382
|
const queryParameters: any = {};
|
|
383
383
|
|
|
384
384
|
if (requestParameters['date'] != null) {
|
|
@@ -402,13 +402,13 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
402
402
|
query: queryParameters,
|
|
403
403
|
}, initOverrides);
|
|
404
404
|
|
|
405
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
405
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSON(jsonValue));
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
409
|
*
|
|
410
410
|
*/
|
|
411
|
-
async getLeadLeaseToOwnConfigurationPresets(requestParameters: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
411
|
+
async getLeadLeaseToOwnConfigurationPresets(requestParameters: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadLeaseToOwnAndRentConfigurationPresetsDto> {
|
|
412
412
|
const response = await this.getLeadLeaseToOwnConfigurationPresetsRaw(requestParameters, initOverrides);
|
|
413
413
|
return await response.value();
|
|
414
414
|
}
|
|
@@ -41,6 +41,13 @@ import {
|
|
|
41
41
|
LandingPageSettingsDtoToJSON,
|
|
42
42
|
LandingPageSettingsDtoToJSONTyped,
|
|
43
43
|
} from './LandingPageSettingsDto';
|
|
44
|
+
import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
|
|
45
|
+
import {
|
|
46
|
+
AccountSettingsRentConfigurationDtoFromJSON,
|
|
47
|
+
AccountSettingsRentConfigurationDtoFromJSONTyped,
|
|
48
|
+
AccountSettingsRentConfigurationDtoToJSON,
|
|
49
|
+
AccountSettingsRentConfigurationDtoToJSONTyped,
|
|
50
|
+
} from './AccountSettingsRentConfigurationDto';
|
|
44
51
|
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
@@ -72,6 +79,12 @@ export interface AccountSettingsDto {
|
|
|
72
79
|
* @memberof AccountSettingsDto
|
|
73
80
|
*/
|
|
74
81
|
leaseToOwn: AccountSettingsLeaseToOwnConfigurationDto;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {AccountSettingsRentConfigurationDto}
|
|
85
|
+
* @memberof AccountSettingsDto
|
|
86
|
+
*/
|
|
87
|
+
rent: AccountSettingsRentConfigurationDto;
|
|
75
88
|
/**
|
|
76
89
|
*
|
|
77
90
|
* @type {LandingPageSettingsDto}
|
|
@@ -106,6 +119,7 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
|
|
|
106
119
|
if (!('minBuyNow' in value) || value['minBuyNow'] === undefined) return false;
|
|
107
120
|
if (!('defaultCurrencyCode' in value) || value['defaultCurrencyCode'] === undefined) return false;
|
|
108
121
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
122
|
+
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
109
123
|
if (!('landing' in value) || value['landing'] === undefined) return false;
|
|
110
124
|
if (!('sidn' in value) || value['sidn'] === undefined) return false;
|
|
111
125
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
@@ -127,6 +141,7 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
127
141
|
'minBuyNow': MoneyDtoFromJSON(json['minBuyNow']),
|
|
128
142
|
'defaultCurrencyCode': json['defaultCurrencyCode'],
|
|
129
143
|
'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
144
|
+
'rent': AccountSettingsRentConfigurationDtoFromJSON(json['rent']),
|
|
130
145
|
'landing': LandingPageSettingsDtoFromJSON(json['landing']),
|
|
131
146
|
'sidn': AccountSettingsSidnDtoFromJSON(json['sidn']),
|
|
132
147
|
'description': json['description'],
|
|
@@ -149,6 +164,7 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
|
|
|
149
164
|
'minBuyNow': MoneyDtoToJSON(value['minBuyNow']),
|
|
150
165
|
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
151
166
|
'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
167
|
+
'rent': AccountSettingsRentConfigurationDtoToJSON(value['rent']),
|
|
152
168
|
'landing': LandingPageSettingsDtoToJSON(value['landing']),
|
|
153
169
|
'sidn': AccountSettingsSidnDtoToJSON(value['sidn']),
|
|
154
170
|
'description': value['description'],
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { RentConfigurationPresetsDto } from './RentConfigurationPresetsDto';
|
|
17
|
+
import {
|
|
18
|
+
RentConfigurationPresetsDtoFromJSON,
|
|
19
|
+
RentConfigurationPresetsDtoFromJSONTyped,
|
|
20
|
+
RentConfigurationPresetsDtoToJSON,
|
|
21
|
+
RentConfigurationPresetsDtoToJSONTyped,
|
|
22
|
+
} from './RentConfigurationPresetsDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AccountSettingsRentConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AccountSettingsRentConfigurationDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {RentConfigurationPresetsDto}
|
|
33
|
+
* @memberof AccountSettingsRentConfigurationDto
|
|
34
|
+
*/
|
|
35
|
+
presets: RentConfigurationPresetsDto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AccountSettingsRentConfigurationDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAccountSettingsRentConfigurationDto(value: object): value is AccountSettingsRentConfigurationDto {
|
|
42
|
+
if (!('presets' in value) || value['presets'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function AccountSettingsRentConfigurationDtoFromJSON(json: any): AccountSettingsRentConfigurationDto {
|
|
47
|
+
return AccountSettingsRentConfigurationDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function AccountSettingsRentConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsRentConfigurationDto {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'presets': RentConfigurationPresetsDtoFromJSON(json['presets']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AccountSettingsRentConfigurationDtoToJSON(json: any): AccountSettingsRentConfigurationDto {
|
|
61
|
+
return AccountSettingsRentConfigurationDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AccountSettingsRentConfigurationDtoToJSONTyped(value?: AccountSettingsRentConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'presets': RentConfigurationPresetsDtoToJSON(value['presets']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -90,7 +90,8 @@ export interface CreateManualLeadInput {
|
|
|
90
90
|
export const CreateManualLeadInputTypeEnum = {
|
|
91
91
|
BUY_NOW: 'buy_now',
|
|
92
92
|
OFFER: 'offer',
|
|
93
|
-
LEASE_TO_OWN: 'lease_to_own'
|
|
93
|
+
LEASE_TO_OWN: 'lease_to_own',
|
|
94
|
+
RENT: 'rent'
|
|
94
95
|
} as const;
|
|
95
96
|
export type CreateManualLeadInputTypeEnum = typeof CreateManualLeadInputTypeEnum[keyof typeof CreateManualLeadInputTypeEnum];
|
|
96
97
|
|
package/src/models/DomainDto.ts
CHANGED
|
@@ -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,
|
|
@@ -108,6 +115,12 @@ export interface DomainDto {
|
|
|
108
115
|
* @memberof DomainDto
|
|
109
116
|
*/
|
|
110
117
|
leaseToOwn: LeaseToOwnConfigurationDto;
|
|
118
|
+
/**
|
|
119
|
+
* The rent configuration
|
|
120
|
+
* @type {RentConfigurationDto}
|
|
121
|
+
* @memberof DomainDto
|
|
122
|
+
*/
|
|
123
|
+
rent: RentConfigurationDto;
|
|
111
124
|
/**
|
|
112
125
|
* The lease to own configuration
|
|
113
126
|
* @type {LandingPageSettingsDto}
|
|
@@ -155,6 +168,7 @@ export function instanceOfDomainDto(value: object): value is DomainDto {
|
|
|
155
168
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
156
169
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
157
170
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
171
|
+
if (!('rent' in value) || value['rent'] === undefined) return false;
|
|
158
172
|
if (!('landingPageSettings' in value) || value['landingPageSettings'] === undefined) return false;
|
|
159
173
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
160
174
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
@@ -184,6 +198,7 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
184
198
|
'currencyCode': json['currencyCode'],
|
|
185
199
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
186
200
|
'leaseToOwn': LeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
201
|
+
'rent': RentConfigurationDtoFromJSON(json['rent']),
|
|
187
202
|
'landingPageSettings': LandingPageSettingsDtoFromJSON(json['landingPageSettings']),
|
|
188
203
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
189
204
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -214,6 +229,7 @@ export function DomainDtoToJSONTyped(value?: DomainDto | null, ignoreDiscriminat
|
|
|
214
229
|
'currencyCode': value['currencyCode'],
|
|
215
230
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
216
231
|
'leaseToOwn': LeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
232
|
+
'rent': RentConfigurationDtoToJSON(value['rent']),
|
|
217
233
|
'landingPageSettings': LandingPageSettingsDtoToJSON(value['landingPageSettings']),
|
|
218
234
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
219
235
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
@@ -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,99 @@
|
|
|
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 { LeaseToOwnConfigurationPresetsDto } from './LeaseToOwnConfigurationPresetsDto';
|
|
17
|
+
import {
|
|
18
|
+
LeaseToOwnConfigurationPresetsDtoFromJSON,
|
|
19
|
+
LeaseToOwnConfigurationPresetsDtoFromJSONTyped,
|
|
20
|
+
LeaseToOwnConfigurationPresetsDtoToJSON,
|
|
21
|
+
LeaseToOwnConfigurationPresetsDtoToJSONTyped,
|
|
22
|
+
} from './LeaseToOwnConfigurationPresetsDto';
|
|
23
|
+
import type { RentConfigurationPresetsDto } from './RentConfigurationPresetsDto';
|
|
24
|
+
import {
|
|
25
|
+
RentConfigurationPresetsDtoFromJSON,
|
|
26
|
+
RentConfigurationPresetsDtoFromJSONTyped,
|
|
27
|
+
RentConfigurationPresetsDtoToJSON,
|
|
28
|
+
RentConfigurationPresetsDtoToJSONTyped,
|
|
29
|
+
} from './RentConfigurationPresetsDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface LeadLeaseToOwnAndRentConfigurationPresetsDto
|
|
35
|
+
*/
|
|
36
|
+
export interface LeadLeaseToOwnAndRentConfigurationPresetsDto {
|
|
37
|
+
/**
|
|
38
|
+
* The exchange rates
|
|
39
|
+
* @type {{ [key: string]: number; }}
|
|
40
|
+
* @memberof LeadLeaseToOwnAndRentConfigurationPresetsDto
|
|
41
|
+
*/
|
|
42
|
+
rates: { [key: string]: number; };
|
|
43
|
+
/**
|
|
44
|
+
* The default lease to own configuration presets
|
|
45
|
+
* @type {LeaseToOwnConfigurationPresetsDto}
|
|
46
|
+
* @memberof LeadLeaseToOwnAndRentConfigurationPresetsDto
|
|
47
|
+
*/
|
|
48
|
+
leaseToOwnConfigurationPreset: LeaseToOwnConfigurationPresetsDto;
|
|
49
|
+
/**
|
|
50
|
+
* The default rent configuration presets
|
|
51
|
+
* @type {RentConfigurationPresetsDto}
|
|
52
|
+
* @memberof LeadLeaseToOwnAndRentConfigurationPresetsDto
|
|
53
|
+
*/
|
|
54
|
+
rentConfigurationPreset: RentConfigurationPresetsDto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the LeadLeaseToOwnAndRentConfigurationPresetsDto interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfLeadLeaseToOwnAndRentConfigurationPresetsDto(value: object): value is LeadLeaseToOwnAndRentConfigurationPresetsDto {
|
|
61
|
+
if (!('rates' in value) || value['rates'] === undefined) return false;
|
|
62
|
+
if (!('leaseToOwnConfigurationPreset' in value) || value['leaseToOwnConfigurationPreset'] === undefined) return false;
|
|
63
|
+
if (!('rentConfigurationPreset' in value) || value['rentConfigurationPreset'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSON(json: any): LeadLeaseToOwnAndRentConfigurationPresetsDto {
|
|
68
|
+
return LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadLeaseToOwnAndRentConfigurationPresetsDto {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'rates': json['rates'],
|
|
78
|
+
'leaseToOwnConfigurationPreset': LeaseToOwnConfigurationPresetsDtoFromJSON(json['leaseToOwnConfigurationPreset']),
|
|
79
|
+
'rentConfigurationPreset': RentConfigurationPresetsDtoFromJSON(json['rentConfigurationPreset']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function LeadLeaseToOwnAndRentConfigurationPresetsDtoToJSON(json: any): LeadLeaseToOwnAndRentConfigurationPresetsDto {
|
|
84
|
+
return LeadLeaseToOwnAndRentConfigurationPresetsDtoToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function LeadLeaseToOwnAndRentConfigurationPresetsDtoToJSONTyped(value?: LeadLeaseToOwnAndRentConfigurationPresetsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'rates': value['rates'],
|
|
95
|
+
'leaseToOwnConfigurationPreset': LeaseToOwnConfigurationPresetsDtoToJSON(value['leaseToOwnConfigurationPreset']),
|
|
96
|
+
'rentConfigurationPreset': RentConfigurationPresetsDtoToJSON(value['rentConfigurationPreset']),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|