@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
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { RegisterAccountPortfolioSizeInput } from './RegisterAccountPortfolioSizeInput';
17
+ import {
18
+ RegisterAccountPortfolioSizeInputFromJSON,
19
+ RegisterAccountPortfolioSizeInputFromJSONTyped,
20
+ RegisterAccountPortfolioSizeInputToJSON,
21
+ RegisterAccountPortfolioSizeInputToJSONTyped,
22
+ } from './RegisterAccountPortfolioSizeInput';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -25,6 +33,18 @@ export interface RegisterAccountInput {
25
33
  * @memberof RegisterAccountInput
26
34
  */
27
35
  affiliateIdentifier?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof RegisterAccountInput
40
+ */
41
+ companyName?: string | null;
42
+ /**
43
+ *
44
+ * @type {RegisterAccountPortfolioSizeInput}
45
+ * @memberof RegisterAccountInput
46
+ */
47
+ portfolioSize?: RegisterAccountPortfolioSizeInput | null;
28
48
  /**
29
49
  *
30
50
  * @type {string}
@@ -116,6 +136,8 @@ export function RegisterAccountInputFromJSONTyped(json: any, ignoreDiscriminator
116
136
  return {
117
137
 
118
138
  'affiliateIdentifier': json['affiliateIdentifier'] == null ? undefined : json['affiliateIdentifier'],
139
+ 'companyName': json['companyName'] == null ? undefined : json['companyName'],
140
+ 'portfolioSize': json['portfolioSize'] == null ? undefined : RegisterAccountPortfolioSizeInputFromJSON(json['portfolioSize']),
119
141
  'locale': json['locale'],
120
142
  'firstname': json['firstname'],
121
143
  'lastname': json['lastname'],
@@ -140,6 +162,8 @@ export function RegisterAccountInputToJSONTyped(value?: RegisterAccountInput | n
140
162
  return {
141
163
 
142
164
  'affiliateIdentifier': value['affiliateIdentifier'],
165
+ 'companyName': value['companyName'],
166
+ 'portfolioSize': RegisterAccountPortfolioSizeInputToJSON(value['portfolioSize']),
143
167
  'locale': value['locale'],
144
168
  'firstname': value['firstname'],
145
169
  'lastname': value['lastname'],
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface RegisterAccountPortfolioSizeInput
20
+ */
21
+ export interface RegisterAccountPortfolioSizeInput {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof RegisterAccountPortfolioSizeInput
26
+ */
27
+ from: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof RegisterAccountPortfolioSizeInput
32
+ */
33
+ to?: number | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the RegisterAccountPortfolioSizeInput interface.
38
+ */
39
+ export function instanceOfRegisterAccountPortfolioSizeInput(value: object): value is RegisterAccountPortfolioSizeInput {
40
+ if (!('from' in value) || value['from'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function RegisterAccountPortfolioSizeInputFromJSON(json: any): RegisterAccountPortfolioSizeInput {
45
+ return RegisterAccountPortfolioSizeInputFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function RegisterAccountPortfolioSizeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterAccountPortfolioSizeInput {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'from': json['from'],
55
+ 'to': json['to'] == null ? undefined : json['to'],
56
+ };
57
+ }
58
+
59
+ export function RegisterAccountPortfolioSizeInputToJSON(json: any): RegisterAccountPortfolioSizeInput {
60
+ return RegisterAccountPortfolioSizeInputToJSONTyped(json, false);
61
+ }
62
+
63
+ export function RegisterAccountPortfolioSizeInputToJSONTyped(value?: RegisterAccountPortfolioSizeInput | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'from': value['from'],
71
+ 'to': value['to'],
72
+ };
73
+ }
74
+
@@ -106,6 +106,12 @@ export interface SellerLeadDetails {
106
106
  * @memberof SellerLeadDetails
107
107
  */
108
108
  lastOfferType: SellerLeadDetailsLastOfferTypeEnum | null;
109
+ /**
110
+ * Whether the lead can be closed by the seller
111
+ * @type {boolean}
112
+ * @memberof SellerLeadDetails
113
+ */
114
+ canBeClosedBySeller: boolean;
109
115
  /**
110
116
  *
111
117
  * @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
@@ -214,6 +220,12 @@ export interface SellerLeadDetails {
214
220
  * @memberof SellerLeadDetails
215
221
  */
216
222
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
223
+ /**
224
+ * Accepted at date
225
+ * @type {Date}
226
+ * @memberof SellerLeadDetails
227
+ */
228
+ acceptedAt: Date | null;
217
229
  }
218
230
 
219
231
 
@@ -272,6 +284,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
272
284
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
273
285
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
274
286
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
287
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
275
288
  if (!('domain' in value) || value['domain'] === undefined) return false;
276
289
  if (!('manualType' in value) || value['manualType'] === undefined) return false;
277
290
  if (!('buyer' in value) || value['buyer'] === undefined) return false;
@@ -290,6 +303,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
290
303
  if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
291
304
  if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
292
305
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
306
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
293
307
  return true;
294
308
  }
295
309
 
@@ -308,6 +322,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
308
322
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
309
323
  'lastOfferBy': json['lastOfferBy'],
310
324
  'lastOfferType': json['lastOfferType'],
325
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
311
326
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
312
327
  'manualType': json['manualType'],
313
328
  'buyer': BuyerDtoFromJSON(json['buyer']),
@@ -326,6 +341,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
326
341
  'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
327
342
  'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
328
343
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
344
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
329
345
  };
330
346
  }
331
347
 
@@ -345,6 +361,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
345
361
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
346
362
  'lastOfferBy': value['lastOfferBy'],
347
363
  'lastOfferType': value['lastOfferType'],
364
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
348
365
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
349
366
  'manualType': value['manualType'],
350
367
  'buyer': BuyerDtoToJSON(value['buyer']),
@@ -363,6 +380,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
363
380
  'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
364
381
  'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
365
382
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
383
+ 'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
366
384
  };
367
385
  }
368
386
 
@@ -128,6 +128,7 @@ export const UserNotificationDtoTypeEnum = {
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 UserNotificationListItemDtoTypeEnum = {
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',
@@ -251,6 +251,7 @@ export * from './List200Response2';
251
251
  export * from './List200Response3';
252
252
  export * from './List200Response4';
253
253
  export * from './ListAccountMetricsDto';
254
+ export * from './ListAccountPortfolioSizeDto';
254
255
  export * from './ListAccountUserDto';
255
256
  export * from './ListAccounts200Response';
256
257
  export * from './ListAuctions200Response';
@@ -311,6 +312,7 @@ export * from './PublicSalesDto';
311
312
  export * from './PutBuyerLeadOfferInput';
312
313
  export * from './PutLeadOfferInput';
313
314
  export * from './RegisterAccountInput';
315
+ export * from './RegisterAccountPortfolioSizeInput';
314
316
  export * from './RegisterAuctionBuyerPhoneInput';
315
317
  export * from './RegisterInput';
316
318
  export * from './RelatedDomainsDto';