@randock/nameshift-api-client 0.0.364 → 0.0.366

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.
Files changed (72) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +3 -3
  3. package/dist/apis/LeadsApi.d.ts +13 -1
  4. package/dist/apis/LeadsApi.js +56 -0
  5. package/dist/models/AccountSettingsDto.d.ts +7 -0
  6. package/dist/models/AccountSettingsDto.js +5 -0
  7. package/dist/models/AccountSettingsInput.d.ts +6 -0
  8. package/dist/models/AccountSettingsInput.js +2 -0
  9. package/dist/models/AdminAccountSettingsInput.d.ts +6 -0
  10. package/dist/models/AdminAccountSettingsInput.js +2 -0
  11. package/dist/models/BuyerDomainTransferListItemDto.d.ts +6 -0
  12. package/dist/models/BuyerDomainTransferListItemDto.js +4 -0
  13. package/dist/models/BuyerLeadListItemDto.d.ts +6 -0
  14. package/dist/models/BuyerLeadListItemDto.js +4 -0
  15. package/dist/models/CreateManualLeadInput.d.ts +14 -0
  16. package/dist/models/CreateManualLeadInput.js +6 -0
  17. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +6 -0
  18. package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
  19. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
  20. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
  21. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
  22. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
  23. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
  24. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
  25. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +7 -0
  26. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +5 -0
  27. package/dist/models/LeadDomainDto.d.ts +6 -0
  28. package/dist/models/LeadDomainDto.js +4 -0
  29. package/dist/models/LeadDto.d.ts +7 -0
  30. package/dist/models/LeadDto.js +5 -0
  31. package/dist/models/LeadOfferExpirationConfigurationDto.d.ts +39 -0
  32. package/dist/models/LeadOfferExpirationConfigurationDto.js +56 -0
  33. package/dist/models/LeadOfferExpirationConfigurationInput.d.ts +39 -0
  34. package/dist/models/LeadOfferExpirationConfigurationInput.js +52 -0
  35. package/dist/models/LeadOfferExpirationDurationInput.d.ts +47 -0
  36. package/dist/models/LeadOfferExpirationDurationInput.js +60 -0
  37. package/dist/models/ListLeadsResultItem.d.ts +7 -0
  38. package/dist/models/ListLeadsResultItem.js +5 -0
  39. package/dist/models/PutLeadOfferInput.d.ts +7 -0
  40. package/dist/models/PutLeadOfferInput.js +3 -0
  41. package/dist/models/SellerLeadDetails.d.ts +7 -0
  42. package/dist/models/SellerLeadDetails.js +5 -0
  43. package/dist/models/TaskListLeadDto.d.ts +7 -0
  44. package/dist/models/TaskListLeadDto.js +5 -0
  45. package/dist/models/WithSettingsInner.d.ts +7 -0
  46. package/dist/models/WithSettingsInner.js +5 -0
  47. package/dist/models/index.d.ts +3 -0
  48. package/dist/models/index.js +3 -0
  49. package/package.json +1 -1
  50. package/src/apis/LeadsApi.ts +58 -0
  51. package/src/models/AccountSettingsDto.ts +16 -0
  52. package/src/models/AccountSettingsInput.ts +8 -0
  53. package/src/models/AdminAccountSettingsInput.ts +8 -0
  54. package/src/models/BuyerDomainTransferListItemDto.ts +9 -0
  55. package/src/models/BuyerLeadListItemDto.ts +9 -0
  56. package/src/models/CreateManualLeadInput.ts +30 -0
  57. package/src/models/IntersectionDomainDtoWithAccountDto.ts +9 -0
  58. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
  59. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
  60. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
  61. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +16 -0
  62. package/src/models/LeadDomainDto.ts +9 -0
  63. package/src/models/LeadDto.ts +16 -0
  64. package/src/models/LeadOfferExpirationConfigurationDto.ts +83 -0
  65. package/src/models/LeadOfferExpirationConfigurationInput.ts +81 -0
  66. package/src/models/LeadOfferExpirationDurationInput.ts +85 -0
  67. package/src/models/ListLeadsResultItem.ts +16 -0
  68. package/src/models/PutLeadOfferInput.ts +15 -0
  69. package/src/models/SellerLeadDetails.ts +16 -0
  70. package/src/models/TaskListLeadDto.ts +16 -0
  71. package/src/models/WithSettingsInner.ts +16 -0
  72. package/src/models/index.ts +3 -0
@@ -21,6 +21,7 @@ import type {
21
21
  CreateManualLeadInput,
22
22
  IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto,
23
23
  LeadLeaseToOwnAndRentConfigurationPresetsDto,
24
+ LeadOfferExpirationConfigurationInput,
24
25
  List200Response,
25
26
  ListLeadMessagesDto,
26
27
  LockConfigurationInput,
@@ -43,6 +44,8 @@ import {
43
44
  IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON,
44
45
  LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSON,
45
46
  LeadLeaseToOwnAndRentConfigurationPresetsDtoToJSON,
47
+ LeadOfferExpirationConfigurationInputFromJSON,
48
+ LeadOfferExpirationConfigurationInputToJSON,
46
49
  List200ResponseFromJSON,
47
50
  List200ResponseToJSON,
48
51
  ListLeadMessagesDtoFromJSON,
@@ -129,6 +132,11 @@ export interface LeadsApiUpdateLeadMuteStatusRequest {
129
132
  updateLeadMuteStatusInput: UpdateLeadMuteStatusInput;
130
133
  }
131
134
 
135
+ export interface LeadsApiUpdateLeadOfferExpirationConfigurationRequest {
136
+ leadId: string;
137
+ leadOfferExpirationConfigurationInput: LeadOfferExpirationConfigurationInput;
138
+ }
139
+
132
140
  /**
133
141
  *
134
142
  */
@@ -835,4 +843,54 @@ export class LeadsApi extends runtime.BaseAPI {
835
843
  await this.updateLeadMuteStatusRaw(requestParameters, initOverrides);
836
844
  }
837
845
 
846
+ /**
847
+ *
848
+ */
849
+ async updateLeadOfferExpirationConfigurationRaw(requestParameters: LeadsApiUpdateLeadOfferExpirationConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
850
+ if (requestParameters['leadId'] == null) {
851
+ throw new runtime.RequiredError(
852
+ 'leadId',
853
+ 'Required parameter "leadId" was null or undefined when calling updateLeadOfferExpirationConfiguration().'
854
+ );
855
+ }
856
+
857
+ if (requestParameters['leadOfferExpirationConfigurationInput'] == null) {
858
+ throw new runtime.RequiredError(
859
+ 'leadOfferExpirationConfigurationInput',
860
+ 'Required parameter "leadOfferExpirationConfigurationInput" was null or undefined when calling updateLeadOfferExpirationConfiguration().'
861
+ );
862
+ }
863
+
864
+ const queryParameters: any = {};
865
+
866
+ const headerParameters: runtime.HTTPHeaders = {};
867
+
868
+ headerParameters['Content-Type'] = 'application/json';
869
+
870
+ if (this.configuration && this.configuration.accessToken) {
871
+ const token = this.configuration.accessToken;
872
+ const tokenString = await token("bearer", []);
873
+
874
+ if (tokenString) {
875
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
876
+ }
877
+ }
878
+ const response = await this.request({
879
+ path: `/private/leads/{leadId}/offer-expiration-configuration`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
880
+ method: 'PUT',
881
+ headers: headerParameters,
882
+ query: queryParameters,
883
+ body: LeadOfferExpirationConfigurationInputToJSON(requestParameters['leadOfferExpirationConfigurationInput']),
884
+ }, initOverrides);
885
+
886
+ return new runtime.VoidApiResponse(response);
887
+ }
888
+
889
+ /**
890
+ *
891
+ */
892
+ async updateLeadOfferExpirationConfiguration(requestParameters: LeadsApiUpdateLeadOfferExpirationConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
893
+ await this.updateLeadOfferExpirationConfigurationRaw(requestParameters, initOverrides);
894
+ }
895
+
838
896
  }
@@ -41,6 +41,13 @@ import {
41
41
  AccountSettingsLeaseToOwnConfigurationDtoToJSON,
42
42
  AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped,
43
43
  } from './AccountSettingsLeaseToOwnConfigurationDto';
44
+ import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
45
+ import {
46
+ LeadOfferExpirationConfigurationDtoFromJSON,
47
+ LeadOfferExpirationConfigurationDtoFromJSONTyped,
48
+ LeadOfferExpirationConfigurationDtoToJSON,
49
+ LeadOfferExpirationConfigurationDtoToJSONTyped,
50
+ } from './LeadOfferExpirationConfigurationDto';
44
51
  import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
45
52
  import {
46
53
  LandingPageSettingsDtoFromJSON,
@@ -141,6 +148,12 @@ export interface AccountSettingsDto {
141
148
  * @memberof AccountSettingsDto
142
149
  */
143
150
  domainLockConfiguration: DomainLockConfigurationDto;
151
+ /**
152
+ *
153
+ * @type {LeadOfferExpirationConfigurationDto}
154
+ * @memberof AccountSettingsDto
155
+ */
156
+ leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
144
157
  }
145
158
 
146
159
  /**
@@ -159,6 +172,7 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
159
172
  if (!('alias' in value) || value['alias'] === undefined) return false;
160
173
  if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined) return false;
161
174
  if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
175
+ if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
162
176
  return true;
163
177
  }
164
178
 
@@ -184,6 +198,7 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
184
198
  'alias': AccountSettingsAliasDtoFromJSON(json['alias']),
185
199
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
186
200
  'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
201
+ 'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
187
202
  };
188
203
  }
189
204
 
@@ -210,6 +225,7 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
210
225
  'alias': AccountSettingsAliasDtoToJSON(value['alias']),
211
226
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
212
227
  'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
228
+ 'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
213
229
  };
214
230
  }
215
231
 
@@ -147,6 +147,12 @@ export interface AccountSettingsInput {
147
147
  * @memberof AccountSettingsInput
148
148
  */
149
149
  domainLockConfiguration?: LockConfigurationInput;
150
+ /**
151
+ *
152
+ * @type {LockConfigurationInput}
153
+ * @memberof AccountSettingsInput
154
+ */
155
+ leadOfferExpirationConfiguration?: LockConfigurationInput;
150
156
  }
151
157
 
152
158
  /**
@@ -179,6 +185,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
179
185
  'alias': json['alias'] == null ? undefined : AccountAliasInputFromJSON(json['alias']),
180
186
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'] == null ? undefined : json['transferCostPaymentMaxPercentage'],
181
187
  'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['domainLockConfiguration']),
188
+ 'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['leadOfferExpirationConfiguration']),
182
189
  };
183
190
  }
184
191
 
@@ -206,6 +213,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
206
213
  'alias': AccountAliasInputToJSON(value['alias']),
207
214
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
208
215
  'domainLockConfiguration': LockConfigurationInputToJSON(value['domainLockConfiguration']),
216
+ 'leadOfferExpirationConfiguration': LockConfigurationInputToJSON(value['leadOfferExpirationConfiguration']),
209
217
  };
210
218
  }
211
219
 
@@ -96,6 +96,12 @@ export interface AdminAccountSettingsInput {
96
96
  * @memberof AdminAccountSettingsInput
97
97
  */
98
98
  domainLockConfiguration?: LockConfigurationInput;
99
+ /**
100
+ *
101
+ * @type {LockConfigurationInput}
102
+ * @memberof AdminAccountSettingsInput
103
+ */
104
+ leadOfferExpirationConfiguration?: LockConfigurationInput;
99
105
  }
100
106
 
101
107
  /**
@@ -123,6 +129,7 @@ export function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscrimi
123
129
  'domainAffiliate': json['domainAffiliate'] == null ? undefined : AdminAccountSettingsAffiliateInputFromJSON(json['domainAffiliate']),
124
130
  'auctionConfiguration': json['auctionConfiguration'] == null ? undefined : AdminAuctionConfigurationInputFromJSON(json['auctionConfiguration']),
125
131
  'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['domainLockConfiguration']),
132
+ 'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['leadOfferExpirationConfiguration']),
126
133
  };
127
134
  }
128
135
 
@@ -145,6 +152,7 @@ export function AdminAccountSettingsInputToJSONTyped(value?: AdminAccountSetting
145
152
  'domainAffiliate': AdminAccountSettingsAffiliateInputToJSON(value['domainAffiliate']),
146
153
  'auctionConfiguration': AdminAuctionConfigurationInputToJSON(value['auctionConfiguration']),
147
154
  'domainLockConfiguration': LockConfigurationInputToJSON(value['domainLockConfiguration']),
155
+ 'leadOfferExpirationConfiguration': LockConfigurationInputToJSON(value['leadOfferExpirationConfiguration']),
148
156
  };
149
157
  }
150
158
 
@@ -75,6 +75,12 @@ export interface BuyerDomainTransferListItemDto {
75
75
  * @memberof BuyerDomainTransferListItemDto
76
76
  */
77
77
  ipsTag: string | null;
78
+ /**
79
+ * The buyer domain transfer is expired
80
+ * @type {boolean}
81
+ * @memberof BuyerDomainTransferListItemDto
82
+ */
83
+ isOfferExpired: boolean;
78
84
  }
79
85
 
80
86
 
@@ -114,6 +120,7 @@ export function instanceOfBuyerDomainTransferListItemDto(value: object): value i
114
120
  if (!('domain' in value) || value['domain'] === undefined) return false;
115
121
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
116
122
  if (!('ipsTag' in value) || value['ipsTag'] === undefined) return false;
123
+ if (!('isOfferExpired' in value) || value['isOfferExpired'] === undefined) return false;
117
124
  return true;
118
125
  }
119
126
 
@@ -135,6 +142,7 @@ export function BuyerDomainTransferListItemDtoFromJSONTyped(json: any, ignoreDis
135
142
  'domain': BuyerDomainTransferListItemDomainDtoFromJSON(json['domain']),
136
143
  'createdAt': (new Date(json['createdAt'])),
137
144
  'ipsTag': json['ipsTag'],
145
+ 'isOfferExpired': json['isOfferExpired'],
138
146
  };
139
147
  }
140
148
 
@@ -157,6 +165,7 @@ export function BuyerDomainTransferListItemDtoToJSONTyped(value?: BuyerDomainTra
157
165
  'domain': BuyerDomainTransferListItemDomainDtoToJSON(value['domain']),
158
166
  'createdAt': ((value['createdAt']).toISOString()),
159
167
  'ipsTag': value['ipsTag'],
168
+ 'isOfferExpired': value['isOfferExpired'],
160
169
  };
161
170
  }
162
171
 
@@ -107,6 +107,12 @@ export interface BuyerLeadListItemDto {
107
107
  * @memberof BuyerLeadListItemDto
108
108
  */
109
109
  isMuted: boolean;
110
+ /**
111
+ * The lead is offer expired
112
+ * @type {boolean}
113
+ * @memberof BuyerLeadListItemDto
114
+ */
115
+ isOfferExpired: boolean;
110
116
  }
111
117
 
112
118
 
@@ -160,6 +166,7 @@ export function instanceOfBuyerLeadListItemDto(value: object): value is BuyerLea
160
166
  if (!('unreadMessages' in value) || value['unreadMessages'] === undefined) return false;
161
167
  if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
162
168
  if (!('isMuted' in value) || value['isMuted'] === undefined) return false;
169
+ if (!('isOfferExpired' in value) || value['isOfferExpired'] === undefined) return false;
163
170
  return true;
164
171
  }
165
172
 
@@ -184,6 +191,7 @@ export function BuyerLeadListItemDtoFromJSONTyped(json: any, ignoreDiscriminator
184
191
  'unreadMessages': json['unreadMessages'],
185
192
  'orderPaymentUrl': json['orderPaymentUrl'],
186
193
  'isMuted': json['isMuted'],
194
+ 'isOfferExpired': json['isOfferExpired'],
187
195
  };
188
196
  }
189
197
 
@@ -209,6 +217,7 @@ export function BuyerLeadListItemDtoToJSONTyped(value?: BuyerLeadListItemDto | n
209
217
  'unreadMessages': value['unreadMessages'],
210
218
  'orderPaymentUrl': value['orderPaymentUrl'],
211
219
  'isMuted': value['isMuted'],
220
+ 'isOfferExpired': value['isOfferExpired'],
212
221
  };
213
222
  }
214
223
 
@@ -13,6 +13,20 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { LockConfigurationInput } from './LockConfigurationInput';
17
+ import {
18
+ LockConfigurationInputFromJSON,
19
+ LockConfigurationInputFromJSONTyped,
20
+ LockConfigurationInputToJSON,
21
+ LockConfigurationInputToJSONTyped,
22
+ } from './LockConfigurationInput';
23
+ import type { LeadOfferExpirationConfigurationInput } from './LeadOfferExpirationConfigurationInput';
24
+ import {
25
+ LeadOfferExpirationConfigurationInputFromJSON,
26
+ LeadOfferExpirationConfigurationInputFromJSONTyped,
27
+ LeadOfferExpirationConfigurationInputToJSON,
28
+ LeadOfferExpirationConfigurationInputToJSONTyped,
29
+ } from './LeadOfferExpirationConfigurationInput';
16
30
  import type { MoneyInput } from './MoneyInput';
17
31
  import {
18
32
  MoneyInputFromJSON,
@@ -81,6 +95,18 @@ export interface CreateManualLeadInput {
81
95
  * @memberof CreateManualLeadInput
82
96
  */
83
97
  leaseToOwnMaxMonths: number | null;
98
+ /**
99
+ *
100
+ * @type {LeadOfferExpirationConfigurationInput}
101
+ * @memberof CreateManualLeadInput
102
+ */
103
+ leadOfferExpirationConfiguration?: LeadOfferExpirationConfigurationInput;
104
+ /**
105
+ *
106
+ * @type {LockConfigurationInput}
107
+ * @memberof CreateManualLeadInput
108
+ */
109
+ domainLockConfiguration?: LockConfigurationInput;
84
110
  }
85
111
 
86
112
 
@@ -131,6 +157,8 @@ export function CreateManualLeadInputFromJSONTyped(json: any, ignoreDiscriminato
131
157
  'offer': MoneyInputFromJSON(json['offer']),
132
158
  'leaseToOwnMinMonths': json['leaseToOwnMinMonths'],
133
159
  'leaseToOwnMaxMonths': json['leaseToOwnMaxMonths'],
160
+ 'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : LeadOfferExpirationConfigurationInputFromJSON(json['leadOfferExpirationConfiguration']),
161
+ 'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['domainLockConfiguration']),
134
162
  };
135
163
  }
136
164
 
@@ -154,6 +182,8 @@ export function CreateManualLeadInputToJSONTyped(value?: CreateManualLeadInput |
154
182
  'offer': MoneyInputToJSON(value['offer']),
155
183
  'leaseToOwnMinMonths': value['leaseToOwnMinMonths'],
156
184
  'leaseToOwnMaxMonths': value['leaseToOwnMaxMonths'],
185
+ 'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationInputToJSON(value['leadOfferExpirationConfiguration']),
186
+ 'domainLockConfiguration': LockConfigurationInputToJSON(value['domainLockConfiguration']),
157
187
  };
158
188
  }
159
189
 
@@ -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'],
@@ -48,6 +48,13 @@ import {
48
48
  LeadRentConfigurationDtoToJSON,
49
49
  LeadRentConfigurationDtoToJSONTyped,
50
50
  } from './LeadRentConfigurationDto';
51
+ import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
52
+ import {
53
+ LeadOfferExpirationConfigurationDtoFromJSON,
54
+ LeadOfferExpirationConfigurationDtoFromJSONTyped,
55
+ LeadOfferExpirationConfigurationDtoToJSON,
56
+ LeadOfferExpirationConfigurationDtoToJSONTyped,
57
+ } from './LeadOfferExpirationConfigurationDto';
51
58
  import type { LeadOfferDto } from './LeadOfferDto';
52
59
  import {
53
60
  LeadOfferDtoFromJSON,
@@ -182,6 +189,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
182
189
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
183
190
  */
184
191
  lastSellerOffer: LeadOfferDto | null;
192
+ /**
193
+ *
194
+ * @type {LeadOfferExpirationConfigurationDto}
195
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
196
+ */
197
+ leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
185
198
  }
186
199
 
187
200
 
@@ -255,6 +268,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
255
268
  if (!('rent' in value) || value['rent'] === undefined) return false;
256
269
  if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
257
270
  if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
271
+ if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
258
272
  return true;
259
273
  }
260
274
 
@@ -288,6 +302,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
288
302
  'rent': LeadRentConfigurationDtoFromJSON(json['rent']),
289
303
  'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
290
304
  'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
305
+ 'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
291
306
  };
292
307
  }
293
308
 
@@ -322,6 +337,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
322
337
  'rent': LeadRentConfigurationDtoToJSON(value['rent']),
323
338
  'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
324
339
  'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
340
+ 'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
325
341
  };
326
342
  }
327
343
 
@@ -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'],
@@ -41,6 +41,13 @@ import {
41
41
  LeadRentConfigurationDtoToJSON,
42
42
  LeadRentConfigurationDtoToJSONTyped,
43
43
  } from './LeadRentConfigurationDto';
44
+ import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
45
+ import {
46
+ LeadOfferExpirationConfigurationDtoFromJSON,
47
+ LeadOfferExpirationConfigurationDtoFromJSONTyped,
48
+ LeadOfferExpirationConfigurationDtoToJSON,
49
+ LeadOfferExpirationConfigurationDtoToJSONTyped,
50
+ } from './LeadOfferExpirationConfigurationDto';
44
51
  import type { LeadOfferDto } from './LeadOfferDto';
45
52
  import {
46
53
  LeadOfferDtoFromJSON,
@@ -169,6 +176,12 @@ export interface LeadDto {
169
176
  * @memberof LeadDto
170
177
  */
171
178
  lastSellerOffer: LeadOfferDto | null;
179
+ /**
180
+ *
181
+ * @type {LeadOfferExpirationConfigurationDto}
182
+ * @memberof LeadDto
183
+ */
184
+ leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
172
185
  }
173
186
 
174
187
 
@@ -241,6 +254,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
241
254
  if (!('rent' in value) || value['rent'] === undefined) return false;
242
255
  if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
243
256
  if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
257
+ if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
244
258
  return true;
245
259
  }
246
260
 
@@ -273,6 +287,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
273
287
  'rent': LeadRentConfigurationDtoFromJSON(json['rent']),
274
288
  'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
275
289
  'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
290
+ 'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
276
291
  };
277
292
  }
278
293
 
@@ -306,6 +321,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
306
321
  'rent': LeadRentConfigurationDtoToJSON(value['rent']),
307
322
  'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
308
323
  'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
324
+ 'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
309
325
  };
310
326
  }
311
327