@randock/nameshift-api-client 0.0.374 → 0.0.376

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 (45) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +3 -3
  3. package/dist/apis/LeadsApi.d.ts +11 -0
  4. package/dist/apis/LeadsApi.js +51 -0
  5. package/dist/models/AdminListAccountDto.d.ts +13 -0
  6. package/dist/models/AdminListAccountDto.js +9 -0
  7. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  8. package/dist/models/BuyerNotificationDto.js +1 -0
  9. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  10. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  11. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +12 -0
  12. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +8 -0
  13. package/dist/models/LeadDto.d.ts +12 -0
  14. package/dist/models/LeadDto.js +8 -0
  15. package/dist/models/ListAccountPortfolioSizeDto.d.ts +38 -0
  16. package/dist/models/ListAccountPortfolioSizeDto.js +55 -0
  17. package/dist/models/ListLeadsResultItem.d.ts +12 -0
  18. package/dist/models/ListLeadsResultItem.js +8 -0
  19. package/dist/models/RegisterAccountInput.d.ts +13 -0
  20. package/dist/models/RegisterAccountInput.js +5 -0
  21. package/dist/models/RegisterAccountPortfolioSizeInput.d.ts +38 -0
  22. package/dist/models/RegisterAccountPortfolioSizeInput.js +53 -0
  23. package/dist/models/SellerLeadDetails.d.ts +12 -0
  24. package/dist/models/SellerLeadDetails.js +8 -0
  25. package/dist/models/UserNotificationDto.d.ts +1 -0
  26. package/dist/models/UserNotificationDto.js +1 -0
  27. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  28. package/dist/models/UserNotificationListItemDto.js +1 -0
  29. package/dist/models/index.d.ts +2 -0
  30. package/dist/models/index.js +2 -0
  31. package/package.json +1 -1
  32. package/src/apis/LeadsApi.ts +44 -0
  33. package/src/models/AdminListAccountDto.ts +25 -0
  34. package/src/models/BuyerNotificationDto.ts +1 -0
  35. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  36. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +18 -0
  37. package/src/models/LeadDto.ts +18 -0
  38. package/src/models/ListAccountPortfolioSizeDto.ts +75 -0
  39. package/src/models/ListLeadsResultItem.ts +18 -0
  40. package/src/models/RegisterAccountInput.ts +24 -0
  41. package/src/models/RegisterAccountPortfolioSizeInput.ts +74 -0
  42. package/src/models/SellerLeadDetails.ts +18 -0
  43. package/src/models/UserNotificationDto.ts +1 -0
  44. package/src/models/UserNotificationListItemDto.ts +1 -0
  45. package/src/models/index.ts +2 -0
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfRegisterAccountPortfolioSizeInput = instanceOfRegisterAccountPortfolioSizeInput;
17
+ exports.RegisterAccountPortfolioSizeInputFromJSON = RegisterAccountPortfolioSizeInputFromJSON;
18
+ exports.RegisterAccountPortfolioSizeInputFromJSONTyped = RegisterAccountPortfolioSizeInputFromJSONTyped;
19
+ exports.RegisterAccountPortfolioSizeInputToJSON = RegisterAccountPortfolioSizeInputToJSON;
20
+ exports.RegisterAccountPortfolioSizeInputToJSONTyped = RegisterAccountPortfolioSizeInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the RegisterAccountPortfolioSizeInput interface.
23
+ */
24
+ function instanceOfRegisterAccountPortfolioSizeInput(value) {
25
+ if (!('from' in value) || value['from'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function RegisterAccountPortfolioSizeInputFromJSON(json) {
30
+ return RegisterAccountPortfolioSizeInputFromJSONTyped(json, false);
31
+ }
32
+ function RegisterAccountPortfolioSizeInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'from': json['from'],
38
+ 'to': json['to'] == null ? undefined : json['to'],
39
+ };
40
+ }
41
+ function RegisterAccountPortfolioSizeInputToJSON(json) {
42
+ return RegisterAccountPortfolioSizeInputToJSONTyped(json, false);
43
+ }
44
+ function RegisterAccountPortfolioSizeInputToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'from': value['from'],
51
+ 'to': value['to'],
52
+ };
53
+ }
@@ -53,6 +53,12 @@ export interface SellerLeadDetails {
53
53
  * @memberof SellerLeadDetails
54
54
  */
55
55
  lastOfferType: SellerLeadDetailsLastOfferTypeEnum | null;
56
+ /**
57
+ * Whether the lead can be closed by the seller
58
+ * @type {boolean}
59
+ * @memberof SellerLeadDetails
60
+ */
61
+ canBeClosedBySeller: boolean;
56
62
  /**
57
63
  *
58
64
  * @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
@@ -161,6 +167,12 @@ export interface SellerLeadDetails {
161
167
  * @memberof SellerLeadDetails
162
168
  */
163
169
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
170
+ /**
171
+ * Accepted at date
172
+ * @type {Date}
173
+ * @memberof SellerLeadDetails
174
+ */
175
+ acceptedAt: Date | null;
164
176
  }
165
177
  /**
166
178
  * @export
@@ -78,6 +78,8 @@ function instanceOfSellerLeadDetails(value) {
78
78
  return false;
79
79
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
80
80
  return false;
81
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined)
82
+ return false;
81
83
  if (!('domain' in value) || value['domain'] === undefined)
82
84
  return false;
83
85
  if (!('manualType' in value) || value['manualType'] === undefined)
@@ -114,6 +116,8 @@ function instanceOfSellerLeadDetails(value) {
114
116
  return false;
115
117
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined)
116
118
  return false;
119
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
120
+ return false;
117
121
  return true;
118
122
  }
119
123
  function SellerLeadDetailsFromJSON(json) {
@@ -129,6 +133,7 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
129
133
  'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
130
134
  'lastOfferBy': json['lastOfferBy'],
131
135
  'lastOfferType': json['lastOfferType'],
136
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
132
137
  'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON)(json['domain']),
133
138
  'manualType': json['manualType'],
134
139
  'buyer': (0, BuyerDto_1.BuyerDtoFromJSON)(json['buyer']),
@@ -147,6 +152,7 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
147
152
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
148
153
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
149
154
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
155
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
150
156
  };
151
157
  }
152
158
  function SellerLeadDetailsToJSON(json) {
@@ -163,6 +169,7 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
163
169
  'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
164
170
  'lastOfferBy': value['lastOfferBy'],
165
171
  'lastOfferType': value['lastOfferType'],
172
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
166
173
  'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON)(value['domain']),
167
174
  'manualType': value['manualType'],
168
175
  'buyer': (0, BuyerDto_1.BuyerDtoToJSON)(value['buyer']),
@@ -181,5 +188,6 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
181
188
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
182
189
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
183
190
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
191
+ 'acceptedAt': (value['acceptedAt'] == null ? null : value['acceptedAt'].toISOString()),
184
192
  };
185
193
  }
@@ -115,6 +115,7 @@ export declare const UserNotificationDtoTypeEnum: {
115
115
  readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
116
116
  readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
117
117
  readonly LEAD_CLOSED_BUYER: "lead.closed.buyer";
118
+ readonly LEAD_CLOSED_BY_SELLER_BUYER: "lead.closed.by_seller.buyer";
118
119
  readonly DOMAIN_SOLD_SELLER_NOTIFICATION: "domain_sold_seller_notification";
119
120
  readonly DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: "domain_sold_by_lease_to_own_seller_notification";
120
121
  readonly DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: "domain_sold_by_rent_seller_notification";
@@ -76,6 +76,7 @@ exports.UserNotificationDtoTypeEnum = {
76
76
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
77
77
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
78
78
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
79
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
79
80
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
80
81
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
81
82
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
@@ -108,6 +108,7 @@ export declare const UserNotificationListItemDtoTypeEnum: {
108
108
  readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
109
109
  readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
110
110
  readonly LEAD_CLOSED_BUYER: "lead.closed.buyer";
111
+ readonly LEAD_CLOSED_BY_SELLER_BUYER: "lead.closed.by_seller.buyer";
111
112
  readonly DOMAIN_SOLD_SELLER_NOTIFICATION: "domain_sold_seller_notification";
112
113
  readonly DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: "domain_sold_by_lease_to_own_seller_notification";
113
114
  readonly DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: "domain_sold_by_rent_seller_notification";
@@ -75,6 +75,7 @@ exports.UserNotificationListItemDtoTypeEnum = {
75
75
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
76
76
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
77
77
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
78
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
78
79
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
79
80
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
80
81
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
@@ -249,6 +249,7 @@ export * from './List200Response2';
249
249
  export * from './List200Response3';
250
250
  export * from './List200Response4';
251
251
  export * from './ListAccountMetricsDto';
252
+ export * from './ListAccountPortfolioSizeDto';
252
253
  export * from './ListAccountUserDto';
253
254
  export * from './ListAccounts200Response';
254
255
  export * from './ListAuctions200Response';
@@ -309,6 +310,7 @@ export * from './PublicSalesDto';
309
310
  export * from './PutBuyerLeadOfferInput';
310
311
  export * from './PutLeadOfferInput';
311
312
  export * from './RegisterAccountInput';
313
+ export * from './RegisterAccountPortfolioSizeInput';
312
314
  export * from './RegisterAuctionBuyerPhoneInput';
313
315
  export * from './RegisterInput';
314
316
  export * from './RelatedDomainsDto';
@@ -267,6 +267,7 @@ __exportStar(require("./List200Response2"), exports);
267
267
  __exportStar(require("./List200Response3"), exports);
268
268
  __exportStar(require("./List200Response4"), exports);
269
269
  __exportStar(require("./ListAccountMetricsDto"), exports);
270
+ __exportStar(require("./ListAccountPortfolioSizeDto"), exports);
270
271
  __exportStar(require("./ListAccountUserDto"), exports);
271
272
  __exportStar(require("./ListAccounts200Response"), exports);
272
273
  __exportStar(require("./ListAuctions200Response"), exports);
@@ -327,6 +328,7 @@ __exportStar(require("./PublicSalesDto"), exports);
327
328
  __exportStar(require("./PutBuyerLeadOfferInput"), exports);
328
329
  __exportStar(require("./PutLeadOfferInput"), exports);
329
330
  __exportStar(require("./RegisterAccountInput"), exports);
331
+ __exportStar(require("./RegisterAccountPortfolioSizeInput"), exports);
330
332
  __exportStar(require("./RegisterAuctionBuyerPhoneInput"), exports);
331
333
  __exportStar(require("./RegisterInput"), exports);
332
334
  __exportStar(require("./RelatedDomainsDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.374",
3
+ "version": "0.0.376",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -77,6 +77,10 @@ export interface LeadsApiBulkReadSellerLeadMessageRequest {
77
77
  batchReadSellerLeadMessageInput: BatchReadSellerLeadMessageInput;
78
78
  }
79
79
 
80
+ export interface LeadsApiCloseLeadRequest {
81
+ leadId: string;
82
+ }
83
+
80
84
  export interface LeadsApiCreateManualLeadRequest {
81
85
  createManualLeadInput: CreateManualLeadInput;
82
86
  }
@@ -272,6 +276,46 @@ export class LeadsApi extends runtime.BaseAPI {
272
276
  await this.bulkReadSellerLeadMessageRaw(requestParameters, initOverrides);
273
277
  }
274
278
 
279
+ /**
280
+ *
281
+ */
282
+ async closeLeadRaw(requestParameters: LeadsApiCloseLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
283
+ if (requestParameters['leadId'] == null) {
284
+ throw new runtime.RequiredError(
285
+ 'leadId',
286
+ 'Required parameter "leadId" was null or undefined when calling closeLead().'
287
+ );
288
+ }
289
+
290
+ const queryParameters: any = {};
291
+
292
+ const headerParameters: runtime.HTTPHeaders = {};
293
+
294
+ if (this.configuration && this.configuration.accessToken) {
295
+ const token = this.configuration.accessToken;
296
+ const tokenString = await token("bearer", []);
297
+
298
+ if (tokenString) {
299
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
300
+ }
301
+ }
302
+ const response = await this.request({
303
+ path: `/private/leads/{leadId}/status/close`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
304
+ method: 'POST',
305
+ headers: headerParameters,
306
+ query: queryParameters,
307
+ }, initOverrides);
308
+
309
+ return new runtime.VoidApiResponse(response);
310
+ }
311
+
312
+ /**
313
+ *
314
+ */
315
+ async closeLead(requestParameters: LeadsApiCloseLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
316
+ await this.closeLeadRaw(requestParameters, initOverrides);
317
+ }
318
+
275
319
  /**
276
320
  *
277
321
  */
@@ -20,6 +20,13 @@ import {
20
20
  ListAccountMetricsDtoToJSON,
21
21
  ListAccountMetricsDtoToJSONTyped,
22
22
  } from './ListAccountMetricsDto';
23
+ import type { ListAccountPortfolioSizeDto } from './ListAccountPortfolioSizeDto';
24
+ import {
25
+ ListAccountPortfolioSizeDtoFromJSON,
26
+ ListAccountPortfolioSizeDtoFromJSONTyped,
27
+ ListAccountPortfolioSizeDtoToJSON,
28
+ ListAccountPortfolioSizeDtoToJSONTyped,
29
+ } from './ListAccountPortfolioSizeDto';
23
30
  import type { ListAccountUserDto } from './ListAccountUserDto';
24
31
  import {
25
32
  ListAccountUserDtoFromJSON,
@@ -76,6 +83,18 @@ export interface AdminListAccountDto {
76
83
  * @memberof AdminListAccountDto
77
84
  */
78
85
  affiliateId: string | null;
86
+ /**
87
+ *
88
+ * @type {ListAccountPortfolioSizeDto}
89
+ * @memberof AdminListAccountDto
90
+ */
91
+ portfolioSize: ListAccountPortfolioSizeDto | null;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof AdminListAccountDto
96
+ */
97
+ companyName: string | null;
79
98
  /**
80
99
  *
81
100
  * @type {string}
@@ -161,6 +180,8 @@ export function instanceOfAdminListAccountDto(value: object): value is AdminList
161
180
  if (!('onboardingStatus' in value) || value['onboardingStatus'] === undefined) return false;
162
181
  if (!('payoutProvider' in value) || value['payoutProvider'] === undefined) return false;
163
182
  if (!('affiliateId' in value) || value['affiliateId'] === undefined) return false;
183
+ if (!('portfolioSize' in value) || value['portfolioSize'] === undefined) return false;
184
+ if (!('companyName' in value) || value['companyName'] === undefined) return false;
164
185
  if (!('identifier' in value) || value['identifier'] === undefined) return false;
165
186
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
166
187
  if (!('name' in value) || value['name'] === undefined) return false;
@@ -188,6 +209,8 @@ export function AdminListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator:
188
209
  'onboardingStatus': json['onboardingStatus'],
189
210
  'payoutProvider': json['payoutProvider'],
190
211
  'affiliateId': json['affiliateId'],
212
+ 'portfolioSize': ListAccountPortfolioSizeDtoFromJSON(json['portfolioSize']),
213
+ 'companyName': json['companyName'],
191
214
  'identifier': json['identifier'],
192
215
  'createdAt': (new Date(json['createdAt'])),
193
216
  'name': json['name'],
@@ -216,6 +239,8 @@ export function AdminListAccountDtoToJSONTyped(value?: AdminListAccountDto | nul
216
239
  'onboardingStatus': value['onboardingStatus'],
217
240
  'payoutProvider': value['payoutProvider'],
218
241
  'affiliateId': value['affiliateId'],
242
+ 'portfolioSize': ListAccountPortfolioSizeDtoToJSON(value['portfolioSize']),
243
+ 'companyName': value['companyName'],
219
244
  'identifier': value['identifier'],
220
245
  'createdAt': ((value['createdAt']).toISOString()),
221
246
  'name': value['name'],
@@ -128,6 +128,7 @@ export const BuyerNotificationDtoTypeEnum = {
128
128
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
129
129
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
130
130
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
131
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
131
132
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
132
133
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
133
134
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
@@ -114,6 +114,7 @@ export const BuyerNotificationListItemDtoTypeEnum = {
114
114
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
115
115
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
116
116
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
117
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
117
118
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
118
119
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
119
120
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
@@ -99,6 +99,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
99
99
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
100
100
  */
101
101
  lastOfferType: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum | null;
102
+ /**
103
+ * Whether the lead can be closed by the seller
104
+ * @type {boolean}
105
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
106
+ */
107
+ canBeClosedBySeller: boolean;
102
108
  /**
103
109
  *
104
110
  * @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
@@ -195,6 +201,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
195
201
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
196
202
  */
197
203
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
204
+ /**
205
+ * Accepted at date
206
+ * @type {Date}
207
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
208
+ */
209
+ acceptedAt: Date | null;
198
210
  }
199
211
 
200
212
 
@@ -253,6 +265,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
253
265
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
254
266
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
255
267
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
268
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
256
269
  if (!('domain' in value) || value['domain'] === undefined) return false;
257
270
  if (!('manualType' in value) || value['manualType'] === undefined) return false;
258
271
  if (!('buyer' in value) || value['buyer'] === undefined) return false;
@@ -269,6 +282,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
269
282
  if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
270
283
  if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
271
284
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
285
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
272
286
  return true;
273
287
  }
274
288
 
@@ -287,6 +301,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
287
301
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
288
302
  'lastOfferBy': json['lastOfferBy'],
289
303
  'lastOfferType': json['lastOfferType'],
304
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
290
305
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
291
306
  'manualType': json['manualType'],
292
307
  'buyer': ManualLeadBuyerDtoFromJSON(json['buyer']),
@@ -303,6 +318,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
303
318
  'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
304
319
  'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
305
320
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
321
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
306
322
  };
307
323
  }
308
324
 
@@ -322,6 +338,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
322
338
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
323
339
  'lastOfferBy': value['lastOfferBy'],
324
340
  'lastOfferType': value['lastOfferType'],
341
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
325
342
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
326
343
  'manualType': value['manualType'],
327
344
  'buyer': ManualLeadBuyerDtoToJSON(value['buyer']),
@@ -338,6 +355,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
338
355
  'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
339
356
  'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
340
357
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
358
+ 'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
341
359
  };
342
360
  }
343
361
 
@@ -92,6 +92,12 @@ export interface LeadDto {
92
92
  * @memberof LeadDto
93
93
  */
94
94
  lastOfferType: LeadDtoLastOfferTypeEnum | null;
95
+ /**
96
+ * Whether the lead can be closed by the seller
97
+ * @type {boolean}
98
+ * @memberof LeadDto
99
+ */
100
+ canBeClosedBySeller: boolean;
95
101
  /**
96
102
  * Archived status
97
103
  * @type {boolean}
@@ -182,6 +188,12 @@ export interface LeadDto {
182
188
  * @memberof LeadDto
183
189
  */
184
190
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
191
+ /**
192
+ * Accepted at date
193
+ * @type {Date}
194
+ * @memberof LeadDto
195
+ */
196
+ acceptedAt: Date | null;
185
197
  }
186
198
 
187
199
 
@@ -240,6 +252,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
240
252
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
241
253
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
242
254
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
255
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
243
256
  if (!('archived' in value) || value['archived'] === undefined) return false;
244
257
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
245
258
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -255,6 +268,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
255
268
  if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
256
269
  if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
257
270
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
271
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
258
272
  return true;
259
273
  }
260
274
 
@@ -273,6 +287,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
273
287
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
274
288
  'lastOfferBy': json['lastOfferBy'],
275
289
  'lastOfferType': json['lastOfferType'],
290
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
276
291
  'archived': json['archived'],
277
292
  'createdAt': (new Date(json['createdAt'])),
278
293
  'updatedAt': (new Date(json['updatedAt'])),
@@ -288,6 +303,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
288
303
  'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
289
304
  'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
290
305
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
306
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
291
307
  };
292
308
  }
293
309
 
@@ -307,6 +323,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
307
323
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
308
324
  'lastOfferBy': value['lastOfferBy'],
309
325
  'lastOfferType': value['lastOfferType'],
326
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
310
327
  'archived': value['archived'],
311
328
  'createdAt': ((value['createdAt']).toISOString()),
312
329
  'updatedAt': ((value['updatedAt']).toISOString()),
@@ -322,6 +339,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
322
339
  'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
323
340
  'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
324
341
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
342
+ 'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
325
343
  };
326
344
  }
327
345
 
@@ -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 ListAccountPortfolioSizeDto
20
+ */
21
+ export interface ListAccountPortfolioSizeDto {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ListAccountPortfolioSizeDto
26
+ */
27
+ from: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ListAccountPortfolioSizeDto
32
+ */
33
+ to: number | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ListAccountPortfolioSizeDto interface.
38
+ */
39
+ export function instanceOfListAccountPortfolioSizeDto(value: object): value is ListAccountPortfolioSizeDto {
40
+ if (!('from' in value) || value['from'] === undefined) return false;
41
+ if (!('to' in value) || value['to'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ListAccountPortfolioSizeDtoFromJSON(json: any): ListAccountPortfolioSizeDto {
46
+ return ListAccountPortfolioSizeDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ListAccountPortfolioSizeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccountPortfolioSizeDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'from': json['from'],
56
+ 'to': json['to'],
57
+ };
58
+ }
59
+
60
+ export function ListAccountPortfolioSizeDtoToJSON(json: any): ListAccountPortfolioSizeDto {
61
+ return ListAccountPortfolioSizeDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ListAccountPortfolioSizeDtoToJSONTyped(value?: ListAccountPortfolioSizeDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'from': value['from'],
72
+ 'to': value['to'],
73
+ };
74
+ }
75
+
@@ -99,6 +99,12 @@ export interface ListLeadsResultItem {
99
99
  * @memberof ListLeadsResultItem
100
100
  */
101
101
  lastOfferType: ListLeadsResultItemLastOfferTypeEnum | null;
102
+ /**
103
+ * Whether the lead can be closed by the seller
104
+ * @type {boolean}
105
+ * @memberof ListLeadsResultItem
106
+ */
107
+ canBeClosedBySeller: boolean;
102
108
  /**
103
109
  *
104
110
  * @type {string}
@@ -225,6 +231,12 @@ export interface ListLeadsResultItem {
225
231
  * @memberof ListLeadsResultItem
226
232
  */
227
233
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
234
+ /**
235
+ * Accepted at date
236
+ * @type {Date}
237
+ * @memberof ListLeadsResultItem
238
+ */
239
+ acceptedAt: Date | null;
228
240
  /**
229
241
  * The message in case lastMessageType === LeadMessageTypeEnum.MESSAGE
230
242
  * @type {string}
@@ -318,6 +330,7 @@ export function instanceOfListLeadsResultItem(value: object): value is ListLeads
318
330
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
319
331
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
320
332
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
333
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
321
334
  if (!('buyerInitials' in value) || value['buyerInitials'] === undefined) return false;
322
335
  if (!('buyerIpCountryCode' in value) || value['buyerIpCountryCode'] === undefined) return false;
323
336
  if (!('lastMessageFrom' in value) || value['lastMessageFrom'] === undefined) return false;
@@ -339,6 +352,7 @@ export function instanceOfListLeadsResultItem(value: object): value is ListLeads
339
352
  if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
340
353
  if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
341
354
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
355
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
342
356
  if (!('lastMessageMessage' in value) || value['lastMessageMessage'] === undefined) return false;
343
357
  if (!('lastMessageDate' in value) || value['lastMessageDate'] === undefined) return false;
344
358
  return true;
@@ -359,6 +373,7 @@ export function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator:
359
373
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
360
374
  'lastOfferBy': json['lastOfferBy'],
361
375
  'lastOfferType': json['lastOfferType'],
376
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
362
377
  'buyerInitials': json['buyerInitials'],
363
378
  'buyerIpCountryCode': json['buyerIpCountryCode'],
364
379
  'lastMessageFrom': json['lastMessageFrom'],
@@ -380,6 +395,7 @@ export function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator:
380
395
  'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
381
396
  'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
382
397
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
398
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
383
399
  'lastMessageMessage': json['lastMessageMessage'],
384
400
  'lastMessageDate': (new Date(json['lastMessageDate'])),
385
401
  };
@@ -401,6 +417,7 @@ export function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | nul
401
417
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
402
418
  'lastOfferBy': value['lastOfferBy'],
403
419
  'lastOfferType': value['lastOfferType'],
420
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
404
421
  'buyerInitials': value['buyerInitials'],
405
422
  'buyerIpCountryCode': value['buyerIpCountryCode'],
406
423
  'lastMessageFrom': value['lastMessageFrom'],
@@ -422,6 +439,7 @@ export function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | nul
422
439
  'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
423
440
  'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
424
441
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
442
+ 'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
425
443
  'lastMessageMessage': value['lastMessageMessage'],
426
444
  'lastMessageDate': ((value['lastMessageDate']).toISOString()),
427
445
  };