@randock/nameshift-api-client 0.0.331 → 0.0.332

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 (132) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AuctionsPublicApi.d.ts +29 -0
  4. package/dist/apis/AuctionsPublicApi.js +124 -0
  5. package/dist/apis/BuyersApi.d.ts +54 -1
  6. package/dist/apis/BuyersApi.js +267 -0
  7. package/dist/apis/BuyersPublicApi.d.ts +23 -1
  8. package/dist/apis/BuyersPublicApi.js +90 -0
  9. package/dist/apis/DomainsApi.d.ts +13 -1
  10. package/dist/apis/DomainsApi.js +56 -0
  11. package/dist/apis/LeadsApi.d.ts +2 -5
  12. package/dist/apis/LeadsApi.js +4 -8
  13. package/dist/apis/index.d.ts +1 -0
  14. package/dist/apis/index.js +1 -0
  15. package/dist/models/AuctionBidDto.d.ts +51 -0
  16. package/dist/models/AuctionBidDto.js +64 -0
  17. package/dist/models/AuctionBidInput.d.ts +32 -0
  18. package/dist/models/AuctionBidInput.js +51 -0
  19. package/dist/models/AuctionBuyerDto.d.ts +74 -0
  20. package/dist/models/AuctionBuyerDto.js +79 -0
  21. package/dist/models/AuctionBuyerWithTokenDto.d.ts +39 -0
  22. package/dist/models/AuctionBuyerWithTokenDto.js +56 -0
  23. package/dist/models/AuctionDto.d.ts +82 -0
  24. package/dist/models/AuctionDto.js +85 -0
  25. package/dist/models/BuyerLeadListItemDto.d.ts +23 -0
  26. package/dist/models/BuyerLeadListItemDto.js +19 -1
  27. package/dist/models/DomainAuctionDto.d.ts +63 -0
  28. package/dist/models/DomainAuctionDto.js +72 -0
  29. package/dist/models/DomainSalesInformationDto.d.ts +12 -0
  30. package/dist/models/DomainSalesInformationDto.js +8 -0
  31. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  32. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  33. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
  34. package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
  35. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
  36. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
  37. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +7 -0
  38. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +5 -0
  39. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +36 -0
  40. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +28 -1
  41. package/dist/models/LeadDto.d.ts +43 -0
  42. package/dist/models/LeadDto.js +33 -1
  43. package/dist/models/LeadLeaseToOwnConfigurationDto.d.ts +50 -0
  44. package/dist/models/LeadLeaseToOwnConfigurationDto.js +63 -0
  45. package/dist/models/LeadMessageData.d.ts +7 -0
  46. package/dist/models/LeadMessageData.js +5 -0
  47. package/dist/models/LeadMessageDataLeaseToOwn.d.ts +38 -0
  48. package/dist/models/LeadMessageDataLeaseToOwn.js +55 -0
  49. package/dist/models/LeadMessageDto.d.ts +16 -0
  50. package/dist/models/LeadMessageDto.js +14 -1
  51. package/dist/models/LeadOfferDto.d.ts +72 -0
  52. package/dist/models/LeadOfferDto.js +84 -0
  53. package/dist/models/LeadRentConfigurationDto.d.ts +38 -0
  54. package/dist/models/LeadRentConfigurationDto.js +55 -0
  55. package/dist/models/ListLeadsResultItem.d.ts +43 -0
  56. package/dist/models/ListLeadsResultItem.js +33 -1
  57. package/dist/models/ManualLeadLeaseToOwnDto.d.ts +12 -0
  58. package/dist/models/ManualLeadLeaseToOwnDto.js +8 -0
  59. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  60. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  61. package/dist/models/PutBuyerLeadOfferInput.d.ts +22 -0
  62. package/dist/models/PutBuyerLeadOfferInput.js +14 -0
  63. package/dist/models/PutLeadOfferInput.d.ts +23 -1
  64. package/dist/models/PutLeadOfferInput.js +15 -3
  65. package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +47 -0
  66. package/dist/models/RegisterAuctionBuyerPhoneInput.js +64 -0
  67. package/dist/models/RegisterInput.d.ts +38 -0
  68. package/dist/models/RegisterInput.js +55 -0
  69. package/dist/models/RequestEmailOtpInput.d.ts +38 -0
  70. package/dist/models/RequestEmailOtpInput.js +55 -0
  71. package/dist/models/SellerLeadDetails.d.ts +43 -0
  72. package/dist/models/SellerLeadDetails.js +33 -1
  73. package/dist/models/StartAuctionInput.d.ts +51 -0
  74. package/dist/models/StartAuctionInput.js +62 -0
  75. package/dist/models/TaskListLeadDto.d.ts +43 -0
  76. package/dist/models/TaskListLeadDto.js +33 -1
  77. package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.d.ts +50 -0
  78. package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.js +63 -0
  79. package/dist/models/TaskListLeadOfferDto.d.ts +72 -0
  80. package/dist/models/TaskListLeadOfferDto.js +84 -0
  81. package/dist/models/TaskListLeadRentConfigurationDto.d.ts +38 -0
  82. package/dist/models/TaskListLeadRentConfigurationDto.js +55 -0
  83. package/dist/models/VerifyEmailOtpInput.d.ts +38 -0
  84. package/dist/models/VerifyEmailOtpInput.js +55 -0
  85. package/dist/models/VerifyPhoneOtpInput.d.ts +32 -0
  86. package/dist/models/VerifyPhoneOtpInput.js +51 -0
  87. package/dist/models/index.d.ts +19 -0
  88. package/dist/models/index.js +19 -0
  89. package/package.json +1 -1
  90. package/src/apis/AuctionsPublicApi.ts +67 -0
  91. package/src/apis/BuyersApi.ts +249 -0
  92. package/src/apis/BuyersPublicApi.ts +88 -0
  93. package/src/apis/DomainsApi.ts +58 -0
  94. package/src/apis/LeadsApi.ts +3 -11
  95. package/src/apis/index.ts +1 -0
  96. package/src/models/AuctionBidDto.ts +101 -0
  97. package/src/models/AuctionBidInput.ts +66 -0
  98. package/src/models/AuctionBuyerDto.ts +129 -0
  99. package/src/models/AuctionBuyerWithTokenDto.ts +83 -0
  100. package/src/models/AuctionDto.ts +153 -0
  101. package/src/models/BuyerLeadListItemDto.ts +36 -0
  102. package/src/models/DomainAuctionDto.ts +119 -0
  103. package/src/models/DomainSalesInformationDto.ts +18 -0
  104. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  105. package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
  106. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
  107. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +16 -0
  108. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +61 -0
  109. package/src/models/LeadDto.ts +77 -0
  110. package/src/models/LeadLeaseToOwnConfigurationDto.ts +93 -0
  111. package/src/models/LeadMessageData.ts +16 -0
  112. package/src/models/LeadMessageDataLeaseToOwn.ts +75 -0
  113. package/src/models/LeadMessageDto.ts +20 -0
  114. package/src/models/LeadOfferDto.ts +132 -0
  115. package/src/models/LeadRentConfigurationDto.ts +75 -0
  116. package/src/models/ListLeadsResultItem.ts +77 -0
  117. package/src/models/ManualLeadLeaseToOwnDto.ts +18 -0
  118. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  119. package/src/models/PutBuyerLeadOfferInput.ts +29 -0
  120. package/src/models/PutLeadOfferInput.ts +31 -3
  121. package/src/models/RegisterAuctionBuyerPhoneInput.ts +87 -0
  122. package/src/models/RegisterInput.ts +75 -0
  123. package/src/models/RequestEmailOtpInput.ts +75 -0
  124. package/src/models/SellerLeadDetails.ts +77 -0
  125. package/src/models/StartAuctionInput.ts +100 -0
  126. package/src/models/TaskListLeadDto.ts +77 -0
  127. package/src/models/TaskListLeadLeaseToOwnConfigurationDto.ts +93 -0
  128. package/src/models/TaskListLeadOfferDto.ts +132 -0
  129. package/src/models/TaskListLeadRentConfigurationDto.ts +75 -0
  130. package/src/models/VerifyEmailOtpInput.ts +75 -0
  131. package/src/models/VerifyPhoneOtpInput.ts +66 -0
  132. package/src/models/index.ts +19 -0
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { LeadLeaseToOwnConfigurationDto } from './LeadLeaseToOwnConfigurationDto';
17
+ import {
18
+ LeadLeaseToOwnConfigurationDtoFromJSON,
19
+ LeadLeaseToOwnConfigurationDtoFromJSONTyped,
20
+ LeadLeaseToOwnConfigurationDtoToJSON,
21
+ LeadLeaseToOwnConfigurationDtoToJSONTyped,
22
+ } from './LeadLeaseToOwnConfigurationDto';
16
23
  import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
17
24
  import {
18
25
  IntersectionDomainDtoWithAccountDtoFromJSON,
@@ -34,6 +41,20 @@ import {
34
41
  BuyerDtoToJSON,
35
42
  BuyerDtoToJSONTyped,
36
43
  } from './BuyerDto';
44
+ import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
45
+ import {
46
+ LeadRentConfigurationDtoFromJSON,
47
+ LeadRentConfigurationDtoFromJSONTyped,
48
+ LeadRentConfigurationDtoToJSON,
49
+ LeadRentConfigurationDtoToJSONTyped,
50
+ } from './LeadRentConfigurationDto';
51
+ import type { LeadOfferDto } from './LeadOfferDto';
52
+ import {
53
+ LeadOfferDtoFromJSON,
54
+ LeadOfferDtoFromJSONTyped,
55
+ LeadOfferDtoToJSON,
56
+ LeadOfferDtoToJSONTyped,
57
+ } from './LeadOfferDto';
37
58
 
38
59
  /**
39
60
  *
@@ -65,6 +86,12 @@ export interface SellerLeadDetails {
65
86
  * @memberof SellerLeadDetails
66
87
  */
67
88
  lastOfferBy: SellerLeadDetailsLastOfferByEnum | null;
89
+ /**
90
+ *
91
+ * @type {string}
92
+ * @memberof SellerLeadDetails
93
+ */
94
+ lastOfferType: SellerLeadDetailsLastOfferTypeEnum | null;
68
95
  /**
69
96
  *
70
97
  * @type {IntersectionDomainDtoWithAccountDto}
@@ -137,6 +164,30 @@ export interface SellerLeadDetails {
137
164
  * @memberof SellerLeadDetails
138
165
  */
139
166
  isPriceNegotiatorAgentPaused: boolean;
167
+ /**
168
+ *
169
+ * @type {LeadLeaseToOwnConfigurationDto}
170
+ * @memberof SellerLeadDetails
171
+ */
172
+ leaseToOwn: LeadLeaseToOwnConfigurationDto | null;
173
+ /**
174
+ *
175
+ * @type {LeadRentConfigurationDto}
176
+ * @memberof SellerLeadDetails
177
+ */
178
+ rent: LeadRentConfigurationDto;
179
+ /**
180
+ *
181
+ * @type {LeadOfferDto}
182
+ * @memberof SellerLeadDetails
183
+ */
184
+ lastBuyerOffer: LeadOfferDto | null;
185
+ /**
186
+ *
187
+ * @type {LeadOfferDto}
188
+ * @memberof SellerLeadDetails
189
+ */
190
+ lastSellerOffer: LeadOfferDto | null;
140
191
  }
141
192
 
142
193
 
@@ -163,6 +214,17 @@ export const SellerLeadDetailsLastOfferByEnum = {
163
214
  } as const;
164
215
  export type SellerLeadDetailsLastOfferByEnum = typeof SellerLeadDetailsLastOfferByEnum[keyof typeof SellerLeadDetailsLastOfferByEnum];
165
216
 
217
+ /**
218
+ * @export
219
+ */
220
+ export const SellerLeadDetailsLastOfferTypeEnum = {
221
+ LEAD: 'lead',
222
+ LEASE_TO_OWN: 'lease_to_own',
223
+ RENT: 'rent',
224
+ AUCTION: 'auction'
225
+ } as const;
226
+ export type SellerLeadDetailsLastOfferTypeEnum = typeof SellerLeadDetailsLastOfferTypeEnum[keyof typeof SellerLeadDetailsLastOfferTypeEnum];
227
+
166
228
  /**
167
229
  * @export
168
230
  */
@@ -183,6 +245,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
183
245
  if (!('status' in value) || value['status'] === undefined) return false;
184
246
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
185
247
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
248
+ if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
186
249
  if (!('domain' in value) || value['domain'] === undefined) return false;
187
250
  if (!('manualType' in value) || value['manualType'] === undefined) return false;
188
251
  if (!('buyer' in value) || value['buyer'] === undefined) return false;
@@ -195,6 +258,10 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
195
258
  if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
196
259
  if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
197
260
  if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
261
+ if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
262
+ if (!('rent' in value) || value['rent'] === undefined) return false;
263
+ if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
264
+ if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
198
265
  return true;
199
266
  }
200
267
 
@@ -212,6 +279,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
212
279
  'status': json['status'],
213
280
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
214
281
  'lastOfferBy': json['lastOfferBy'],
282
+ 'lastOfferType': json['lastOfferType'],
215
283
  'domain': IntersectionDomainDtoWithAccountDtoFromJSON(json['domain']),
216
284
  'manualType': json['manualType'],
217
285
  'buyer': BuyerDtoFromJSON(json['buyer']),
@@ -224,6 +292,10 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
224
292
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
225
293
  'orderPaymentUrl': json['orderPaymentUrl'],
226
294
  'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
295
+ 'leaseToOwn': LeadLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
296
+ 'rent': LeadRentConfigurationDtoFromJSON(json['rent']),
297
+ 'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
298
+ 'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
227
299
  };
228
300
  }
229
301
 
@@ -242,6 +314,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
242
314
  'status': value['status'],
243
315
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
244
316
  'lastOfferBy': value['lastOfferBy'],
317
+ 'lastOfferType': value['lastOfferType'],
245
318
  'domain': IntersectionDomainDtoWithAccountDtoToJSON(value['domain']),
246
319
  'manualType': value['manualType'],
247
320
  'buyer': BuyerDtoToJSON(value['buyer']),
@@ -254,6 +327,10 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
254
327
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
255
328
  'orderPaymentUrl': value['orderPaymentUrl'],
256
329
  'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
330
+ 'leaseToOwn': LeadLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
331
+ 'rent': LeadRentConfigurationDtoToJSON(value['rent']),
332
+ 'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
333
+ 'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
257
334
  };
258
335
  }
259
336
 
@@ -0,0 +1,100 @@
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 { MoneyInput } from './MoneyInput';
17
+ import {
18
+ MoneyInputFromJSON,
19
+ MoneyInputFromJSONTyped,
20
+ MoneyInputToJSON,
21
+ MoneyInputToJSONTyped,
22
+ } from './MoneyInput';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface StartAuctionInput
28
+ */
29
+ export interface StartAuctionInput {
30
+ /**
31
+ * Minimum bid amount
32
+ * @type {MoneyInput}
33
+ * @memberof StartAuctionInput
34
+ */
35
+ minimumBid: MoneyInput;
36
+ /**
37
+ * Reserve price (optional)
38
+ * @type {MoneyInput}
39
+ * @memberof StartAuctionInput
40
+ */
41
+ reservePrice?: MoneyInput;
42
+ /**
43
+ * Auction start date
44
+ * @type {string}
45
+ * @memberof StartAuctionInput
46
+ */
47
+ startDate: string;
48
+ /**
49
+ * Auction end date
50
+ * @type {string}
51
+ * @memberof StartAuctionInput
52
+ */
53
+ endDate: string;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the StartAuctionInput interface.
58
+ */
59
+ export function instanceOfStartAuctionInput(value: object): value is StartAuctionInput {
60
+ if (!('minimumBid' in value) || value['minimumBid'] === undefined) return false;
61
+ if (!('startDate' in value) || value['startDate'] === undefined) return false;
62
+ if (!('endDate' in value) || value['endDate'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function StartAuctionInputFromJSON(json: any): StartAuctionInput {
67
+ return StartAuctionInputFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function StartAuctionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartAuctionInput {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'minimumBid': MoneyInputFromJSON(json['minimumBid']),
77
+ 'reservePrice': json['reservePrice'] == null ? undefined : MoneyInputFromJSON(json['reservePrice']),
78
+ 'startDate': json['startDate'],
79
+ 'endDate': json['endDate'],
80
+ };
81
+ }
82
+
83
+ export function StartAuctionInputToJSON(json: any): StartAuctionInput {
84
+ return StartAuctionInputToJSONTyped(json, false);
85
+ }
86
+
87
+ export function StartAuctionInputToJSONTyped(value?: StartAuctionInput | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'minimumBid': MoneyInputToJSON(value['minimumBid']),
95
+ 'reservePrice': MoneyInputToJSON(value['reservePrice']),
96
+ 'startDate': value['startDate'],
97
+ 'endDate': value['endDate'],
98
+ };
99
+ }
100
+
@@ -13,6 +13,20 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { TaskListLeadLeaseToOwnConfigurationDto } from './TaskListLeadLeaseToOwnConfigurationDto';
17
+ import {
18
+ TaskListLeadLeaseToOwnConfigurationDtoFromJSON,
19
+ TaskListLeadLeaseToOwnConfigurationDtoFromJSONTyped,
20
+ TaskListLeadLeaseToOwnConfigurationDtoToJSON,
21
+ TaskListLeadLeaseToOwnConfigurationDtoToJSONTyped,
22
+ } from './TaskListLeadLeaseToOwnConfigurationDto';
23
+ import type { TaskListLeadOfferDto } from './TaskListLeadOfferDto';
24
+ import {
25
+ TaskListLeadOfferDtoFromJSON,
26
+ TaskListLeadOfferDtoFromJSONTyped,
27
+ TaskListLeadOfferDtoToJSON,
28
+ TaskListLeadOfferDtoToJSONTyped,
29
+ } from './TaskListLeadOfferDto';
16
30
  import type { MoneyDto } from './MoneyDto';
17
31
  import {
18
32
  MoneyDtoFromJSON,
@@ -20,6 +34,13 @@ import {
20
34
  MoneyDtoToJSON,
21
35
  MoneyDtoToJSONTyped,
22
36
  } from './MoneyDto';
37
+ import type { TaskListLeadRentConfigurationDto } from './TaskListLeadRentConfigurationDto';
38
+ import {
39
+ TaskListLeadRentConfigurationDtoFromJSON,
40
+ TaskListLeadRentConfigurationDtoFromJSONTyped,
41
+ TaskListLeadRentConfigurationDtoToJSON,
42
+ TaskListLeadRentConfigurationDtoToJSONTyped,
43
+ } from './TaskListLeadRentConfigurationDto';
23
44
 
24
45
  /**
25
46
  *
@@ -45,12 +66,42 @@ export interface TaskListLeadDto {
45
66
  * @memberof TaskListLeadDto
46
67
  */
47
68
  lastOfferBy: TaskListLeadDtoLastOfferByEnum | null;
69
+ /**
70
+ * Last offer type or null
71
+ * @type {string}
72
+ * @memberof TaskListLeadDto
73
+ */
74
+ lastOfferType: TaskListLeadDtoLastOfferTypeEnum | null;
48
75
  /**
49
76
  * Seller unread messages
50
77
  * @type {number}
51
78
  * @memberof TaskListLeadDto
52
79
  */
53
80
  unreadSellerMessagesNumber: number;
81
+ /**
82
+ * Last buyer offer or null
83
+ * @type {TaskListLeadOfferDto}
84
+ * @memberof TaskListLeadDto
85
+ */
86
+ lastBuyerOffer: TaskListLeadOfferDto | null;
87
+ /**
88
+ * Last seller offer or null
89
+ * @type {TaskListLeadOfferDto}
90
+ * @memberof TaskListLeadDto
91
+ */
92
+ lastSellerOffer: TaskListLeadOfferDto | null;
93
+ /**
94
+ * Lease to own configuration or null
95
+ * @type {TaskListLeadLeaseToOwnConfigurationDto}
96
+ * @memberof TaskListLeadDto
97
+ */
98
+ leaseToOwn: TaskListLeadLeaseToOwnConfigurationDto | null;
99
+ /**
100
+ * Rent configuration
101
+ * @type {TaskListLeadRentConfigurationDto}
102
+ * @memberof TaskListLeadDto
103
+ */
104
+ rent: TaskListLeadRentConfigurationDto;
54
105
  }
55
106
 
56
107
 
@@ -65,6 +116,17 @@ export const TaskListLeadDtoLastOfferByEnum = {
65
116
  } as const;
66
117
  export type TaskListLeadDtoLastOfferByEnum = typeof TaskListLeadDtoLastOfferByEnum[keyof typeof TaskListLeadDtoLastOfferByEnum];
67
118
 
119
+ /**
120
+ * @export
121
+ */
122
+ export const TaskListLeadDtoLastOfferTypeEnum = {
123
+ LEAD: 'lead',
124
+ LEASE_TO_OWN: 'lease_to_own',
125
+ RENT: 'rent',
126
+ AUCTION: 'auction'
127
+ } as const;
128
+ export type TaskListLeadDtoLastOfferTypeEnum = typeof TaskListLeadDtoLastOfferTypeEnum[keyof typeof TaskListLeadDtoLastOfferTypeEnum];
129
+
68
130
 
69
131
  /**
70
132
  * Check if a given object implements the TaskListLeadDto interface.
@@ -73,7 +135,12 @@ export function instanceOfTaskListLeadDto(value: object): value is TaskListLeadD
73
135
  if (!('id' in value) || value['id'] === undefined) return false;
74
136
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
75
137
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
138
+ if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
76
139
  if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
140
+ if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
141
+ if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
142
+ if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
143
+ if (!('rent' in value) || value['rent'] === undefined) return false;
77
144
  return true;
78
145
  }
79
146
 
@@ -90,7 +157,12 @@ export function TaskListLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
90
157
  'id': json['id'],
91
158
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
92
159
  'lastOfferBy': json['lastOfferBy'],
160
+ 'lastOfferType': json['lastOfferType'],
93
161
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
162
+ 'lastBuyerOffer': TaskListLeadOfferDtoFromJSON(json['lastBuyerOffer']),
163
+ 'lastSellerOffer': TaskListLeadOfferDtoFromJSON(json['lastSellerOffer']),
164
+ 'leaseToOwn': TaskListLeadLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
165
+ 'rent': TaskListLeadRentConfigurationDtoFromJSON(json['rent']),
94
166
  };
95
167
  }
96
168
 
@@ -108,7 +180,12 @@ export function TaskListLeadDtoToJSONTyped(value?: TaskListLeadDto | null, ignor
108
180
  'id': value['id'],
109
181
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
110
182
  'lastOfferBy': value['lastOfferBy'],
183
+ 'lastOfferType': value['lastOfferType'],
111
184
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
185
+ 'lastBuyerOffer': TaskListLeadOfferDtoToJSON(value['lastBuyerOffer']),
186
+ 'lastSellerOffer': TaskListLeadOfferDtoToJSON(value['lastSellerOffer']),
187
+ 'leaseToOwn': TaskListLeadLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
188
+ 'rent': TaskListLeadRentConfigurationDtoToJSON(value['rent']),
112
189
  };
113
190
  }
114
191
 
@@ -0,0 +1,93 @@
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 TaskListLeadLeaseToOwnConfigurationDto
20
+ */
21
+ export interface TaskListLeadLeaseToOwnConfigurationDto {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof TaskListLeadLeaseToOwnConfigurationDto
26
+ */
27
+ minMonths: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof TaskListLeadLeaseToOwnConfigurationDto
32
+ */
33
+ maxMonths: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof TaskListLeadLeaseToOwnConfigurationDto
38
+ */
39
+ kickBackPercentage: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof TaskListLeadLeaseToOwnConfigurationDto
44
+ */
45
+ markupComissionPercentage: number | null;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the TaskListLeadLeaseToOwnConfigurationDto interface.
50
+ */
51
+ export function instanceOfTaskListLeadLeaseToOwnConfigurationDto(value: object): value is TaskListLeadLeaseToOwnConfigurationDto {
52
+ if (!('minMonths' in value) || value['minMonths'] === undefined) return false;
53
+ if (!('maxMonths' in value) || value['maxMonths'] === undefined) return false;
54
+ if (!('kickBackPercentage' in value) || value['kickBackPercentage'] === undefined) return false;
55
+ if (!('markupComissionPercentage' in value) || value['markupComissionPercentage'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function TaskListLeadLeaseToOwnConfigurationDtoFromJSON(json: any): TaskListLeadLeaseToOwnConfigurationDto {
60
+ return TaskListLeadLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function TaskListLeadLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskListLeadLeaseToOwnConfigurationDto {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'minMonths': json['minMonths'],
70
+ 'maxMonths': json['maxMonths'],
71
+ 'kickBackPercentage': json['kickBackPercentage'],
72
+ 'markupComissionPercentage': json['markupComissionPercentage'],
73
+ };
74
+ }
75
+
76
+ export function TaskListLeadLeaseToOwnConfigurationDtoToJSON(json: any): TaskListLeadLeaseToOwnConfigurationDto {
77
+ return TaskListLeadLeaseToOwnConfigurationDtoToJSONTyped(json, false);
78
+ }
79
+
80
+ export function TaskListLeadLeaseToOwnConfigurationDtoToJSONTyped(value?: TaskListLeadLeaseToOwnConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'minMonths': value['minMonths'],
88
+ 'maxMonths': value['maxMonths'],
89
+ 'kickBackPercentage': value['kickBackPercentage'],
90
+ 'markupComissionPercentage': value['markupComissionPercentage'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,132 @@
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 { LeadMessageDataLeaseToOwn } from './LeadMessageDataLeaseToOwn';
17
+ import {
18
+ LeadMessageDataLeaseToOwnFromJSON,
19
+ LeadMessageDataLeaseToOwnFromJSONTyped,
20
+ LeadMessageDataLeaseToOwnToJSON,
21
+ LeadMessageDataLeaseToOwnToJSONTyped,
22
+ } from './LeadMessageDataLeaseToOwn';
23
+ import type { MoneyDto } from './MoneyDto';
24
+ import {
25
+ MoneyDtoFromJSON,
26
+ MoneyDtoFromJSONTyped,
27
+ MoneyDtoToJSON,
28
+ MoneyDtoToJSONTyped,
29
+ } from './MoneyDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface TaskListLeadOfferDto
35
+ */
36
+ export interface TaskListLeadOfferDto {
37
+ /**
38
+ *
39
+ * @type {MoneyDto}
40
+ * @memberof TaskListLeadOfferDto
41
+ */
42
+ offer: MoneyDto;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof TaskListLeadOfferDto
47
+ */
48
+ offerBy: TaskListLeadOfferDtoOfferByEnum;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof TaskListLeadOfferDto
53
+ */
54
+ offerType: TaskListLeadOfferDtoOfferTypeEnum;
55
+ /**
56
+ *
57
+ * @type {LeadMessageDataLeaseToOwn}
58
+ * @memberof TaskListLeadOfferDto
59
+ */
60
+ leaseToOwn: LeadMessageDataLeaseToOwn | null;
61
+ }
62
+
63
+
64
+ /**
65
+ * @export
66
+ */
67
+ export const TaskListLeadOfferDtoOfferByEnum = {
68
+ BUYER: 'buyer',
69
+ SELLER: 'seller',
70
+ AI: 'ai',
71
+ ADMIN: 'admin'
72
+ } as const;
73
+ export type TaskListLeadOfferDtoOfferByEnum = typeof TaskListLeadOfferDtoOfferByEnum[keyof typeof TaskListLeadOfferDtoOfferByEnum];
74
+
75
+ /**
76
+ * @export
77
+ */
78
+ export const TaskListLeadOfferDtoOfferTypeEnum = {
79
+ LEAD: 'lead',
80
+ LEASE_TO_OWN: 'lease_to_own',
81
+ RENT: 'rent',
82
+ AUCTION: 'auction'
83
+ } as const;
84
+ export type TaskListLeadOfferDtoOfferTypeEnum = typeof TaskListLeadOfferDtoOfferTypeEnum[keyof typeof TaskListLeadOfferDtoOfferTypeEnum];
85
+
86
+
87
+ /**
88
+ * Check if a given object implements the TaskListLeadOfferDto interface.
89
+ */
90
+ export function instanceOfTaskListLeadOfferDto(value: object): value is TaskListLeadOfferDto {
91
+ if (!('offer' in value) || value['offer'] === undefined) return false;
92
+ if (!('offerBy' in value) || value['offerBy'] === undefined) return false;
93
+ if (!('offerType' in value) || value['offerType'] === undefined) return false;
94
+ if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
95
+ return true;
96
+ }
97
+
98
+ export function TaskListLeadOfferDtoFromJSON(json: any): TaskListLeadOfferDto {
99
+ return TaskListLeadOfferDtoFromJSONTyped(json, false);
100
+ }
101
+
102
+ export function TaskListLeadOfferDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskListLeadOfferDto {
103
+ if (json == null) {
104
+ return json;
105
+ }
106
+ return {
107
+
108
+ 'offer': MoneyDtoFromJSON(json['offer']),
109
+ 'offerBy': json['offerBy'],
110
+ 'offerType': json['offerType'],
111
+ 'leaseToOwn': LeadMessageDataLeaseToOwnFromJSON(json['leaseToOwn']),
112
+ };
113
+ }
114
+
115
+ export function TaskListLeadOfferDtoToJSON(json: any): TaskListLeadOfferDto {
116
+ return TaskListLeadOfferDtoToJSONTyped(json, false);
117
+ }
118
+
119
+ export function TaskListLeadOfferDtoToJSONTyped(value?: TaskListLeadOfferDto | null, ignoreDiscriminator: boolean = false): any {
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+
124
+ return {
125
+
126
+ 'offer': MoneyDtoToJSON(value['offer']),
127
+ 'offerBy': value['offerBy'],
128
+ 'offerType': value['offerType'],
129
+ 'leaseToOwn': LeadMessageDataLeaseToOwnToJSON(value['leaseToOwn']),
130
+ };
131
+ }
132
+
@@ -0,0 +1,75 @@
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 TaskListLeadRentConfigurationDto
20
+ */
21
+ export interface TaskListLeadRentConfigurationDto {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof TaskListLeadRentConfigurationDto
26
+ */
27
+ recurringMarkupPercentage: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof TaskListLeadRentConfigurationDto
32
+ */
33
+ minMonthPriceEur: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the TaskListLeadRentConfigurationDto interface.
38
+ */
39
+ export function instanceOfTaskListLeadRentConfigurationDto(value: object): value is TaskListLeadRentConfigurationDto {
40
+ if (!('recurringMarkupPercentage' in value) || value['recurringMarkupPercentage'] === undefined) return false;
41
+ if (!('minMonthPriceEur' in value) || value['minMonthPriceEur'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function TaskListLeadRentConfigurationDtoFromJSON(json: any): TaskListLeadRentConfigurationDto {
46
+ return TaskListLeadRentConfigurationDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function TaskListLeadRentConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskListLeadRentConfigurationDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'recurringMarkupPercentage': json['recurringMarkupPercentage'],
56
+ 'minMonthPriceEur': json['minMonthPriceEur'],
57
+ };
58
+ }
59
+
60
+ export function TaskListLeadRentConfigurationDtoToJSON(json: any): TaskListLeadRentConfigurationDto {
61
+ return TaskListLeadRentConfigurationDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function TaskListLeadRentConfigurationDtoToJSONTyped(value?: TaskListLeadRentConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'recurringMarkupPercentage': value['recurringMarkupPercentage'],
72
+ 'minMonthPriceEur': value['minMonthPriceEur'],
73
+ };
74
+ }
75
+