@randock/nameshift-api-client 0.0.467 → 0.0.469

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 (42) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +3 -3
  3. package/dist/models/LeadEnrichmentActivityDto.d.ts +52 -0
  4. package/dist/models/LeadEnrichmentActivityDto.js +65 -0
  5. package/dist/models/LeadEnrichmentCompanyDto.d.ts +0 -6
  6. package/dist/models/LeadEnrichmentCompanyDto.js +0 -4
  7. package/dist/models/LeadEnrichmentDomainDto.d.ts +6 -0
  8. package/dist/models/LeadEnrichmentDomainDto.js +4 -0
  9. package/dist/models/LeadEnrichmentDomainFactsDto.d.ts +72 -0
  10. package/dist/models/LeadEnrichmentDomainFactsDto.js +81 -0
  11. package/dist/models/LeadEnrichmentDomainVariantDto.d.ts +0 -6
  12. package/dist/models/LeadEnrichmentDomainVariantDto.js +0 -4
  13. package/dist/models/LeadEnrichmentDto.d.ts +33 -0
  14. package/dist/models/LeadEnrichmentDto.js +23 -0
  15. package/dist/models/LeadEnrichmentEmailDto.d.ts +6 -0
  16. package/dist/models/LeadEnrichmentEmailDto.js +4 -0
  17. package/dist/models/LeadEnrichmentIpDto.d.ts +42 -0
  18. package/dist/models/LeadEnrichmentIpDto.js +28 -0
  19. package/dist/models/LeadEnrichmentNamesakeDto.d.ts +68 -0
  20. package/dist/models/LeadEnrichmentNamesakeDto.js +75 -0
  21. package/dist/models/LeadEnrichmentOfferDto.d.ts +44 -0
  22. package/dist/models/LeadEnrichmentOfferDto.js +59 -0
  23. package/dist/models/LeadEnrichmentPersonDto.d.ts +6 -0
  24. package/dist/models/LeadEnrichmentPersonDto.js +4 -0
  25. package/dist/models/LeadEnrichmentVisitedDomainDto.d.ts +44 -0
  26. package/dist/models/LeadEnrichmentVisitedDomainDto.js +59 -0
  27. package/dist/models/index.d.ts +5 -0
  28. package/dist/models/index.js +5 -0
  29. package/package.json +1 -1
  30. package/src/models/LeadEnrichmentActivityDto.ts +108 -0
  31. package/src/models/LeadEnrichmentCompanyDto.ts +0 -9
  32. package/src/models/LeadEnrichmentDomainDto.ts +9 -0
  33. package/src/models/LeadEnrichmentDomainFactsDto.ts +124 -0
  34. package/src/models/LeadEnrichmentDomainVariantDto.ts +0 -9
  35. package/src/models/LeadEnrichmentDto.ts +66 -0
  36. package/src/models/LeadEnrichmentEmailDto.ts +9 -0
  37. package/src/models/LeadEnrichmentIpDto.ts +63 -0
  38. package/src/models/LeadEnrichmentNamesakeDto.ts +120 -0
  39. package/src/models/LeadEnrichmentOfferDto.ts +84 -0
  40. package/src/models/LeadEnrichmentPersonDto.ts +9 -0
  41. package/src/models/LeadEnrichmentVisitedDomainDto.ts +84 -0
  42. package/src/models/index.ts +5 -0
@@ -39,6 +39,12 @@ export interface LeadEnrichmentDomainDto {
39
39
  * @memberof LeadEnrichmentDomainDto
40
40
  */
41
41
  variants: Array<LeadEnrichmentDomainVariantDto>;
42
+ /**
43
+ * When this record was last enriched.
44
+ * @type {string}
45
+ * @memberof LeadEnrichmentDomainDto
46
+ */
47
+ enrichedAt: string | null;
42
48
  }
43
49
 
44
50
  /**
@@ -47,6 +53,7 @@ export interface LeadEnrichmentDomainDto {
47
53
  export function instanceOfLeadEnrichmentDomainDto(value: object): value is LeadEnrichmentDomainDto {
48
54
  if (!('status' in value) || value['status'] === undefined) return false;
49
55
  if (!('variants' in value) || value['variants'] === undefined) return false;
56
+ if (!('enrichedAt' in value) || value['enrichedAt'] === undefined) return false;
50
57
  return true;
51
58
  }
52
59
 
@@ -62,6 +69,7 @@ export function LeadEnrichmentDomainDtoFromJSONTyped(json: any, ignoreDiscrimina
62
69
 
63
70
  'status': json['status'],
64
71
  'variants': ((json['variants'] as Array<any>).map(LeadEnrichmentDomainVariantDtoFromJSON)),
72
+ 'enrichedAt': json['enrichedAt'],
65
73
  };
66
74
  }
67
75
 
@@ -78,6 +86,7 @@ export function LeadEnrichmentDomainDtoToJSONTyped(value?: LeadEnrichmentDomainD
78
86
 
79
87
  'status': value['status'],
80
88
  'variants': ((value['variants'] as Array<any>).map(LeadEnrichmentDomainVariantDtoToJSON)),
89
+ 'enrichedAt': value['enrichedAt'],
81
90
  };
82
91
  }
83
92
 
@@ -0,0 +1,124 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 LeadEnrichmentDomainFactsDto
20
+ */
21
+ export interface LeadEnrichmentDomainFactsDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LeadEnrichmentDomainFactsDto
26
+ */
27
+ status: string;
28
+ /**
29
+ * Mail-setup classification: corporate MX is the strongest cheap signal a real organization operates the domain.
30
+ * @type {string}
31
+ * @memberof LeadEnrichmentDomainFactsDto
32
+ */
33
+ domainType: LeadEnrichmentDomainFactsDtoDomainTypeEnum | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof LeadEnrichmentDomainFactsDto
38
+ */
39
+ registeredAt: string | null;
40
+ /**
41
+ * Registry nameservers, normalized.
42
+ * @type {Array<string>}
43
+ * @memberof LeadEnrichmentDomainFactsDto
44
+ */
45
+ nameservers: Array<string>;
46
+ /**
47
+ *
48
+ * @type {boolean}
49
+ * @memberof LeadEnrichmentDomainFactsDto
50
+ */
51
+ websiteReachable: boolean | null;
52
+ /**
53
+ * When this record was last enriched.
54
+ * @type {string}
55
+ * @memberof LeadEnrichmentDomainFactsDto
56
+ */
57
+ enrichedAt: string | null;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const LeadEnrichmentDomainFactsDtoDomainTypeEnum = {
65
+ CORPORATE: 'corporate',
66
+ FREE_MAIL: 'free_mail',
67
+ DISPOSABLE: 'disposable',
68
+ UNKNOWN: 'unknown'
69
+ } as const;
70
+ export type LeadEnrichmentDomainFactsDtoDomainTypeEnum = typeof LeadEnrichmentDomainFactsDtoDomainTypeEnum[keyof typeof LeadEnrichmentDomainFactsDtoDomainTypeEnum];
71
+
72
+
73
+ /**
74
+ * Check if a given object implements the LeadEnrichmentDomainFactsDto interface.
75
+ */
76
+ export function instanceOfLeadEnrichmentDomainFactsDto(value: object): value is LeadEnrichmentDomainFactsDto {
77
+ if (!('status' in value) || value['status'] === undefined) return false;
78
+ if (!('domainType' in value) || value['domainType'] === undefined) return false;
79
+ if (!('registeredAt' in value) || value['registeredAt'] === undefined) return false;
80
+ if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
81
+ if (!('websiteReachable' in value) || value['websiteReachable'] === undefined) return false;
82
+ if (!('enrichedAt' in value) || value['enrichedAt'] === undefined) return false;
83
+ return true;
84
+ }
85
+
86
+ export function LeadEnrichmentDomainFactsDtoFromJSON(json: any): LeadEnrichmentDomainFactsDto {
87
+ return LeadEnrichmentDomainFactsDtoFromJSONTyped(json, false);
88
+ }
89
+
90
+ export function LeadEnrichmentDomainFactsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentDomainFactsDto {
91
+ if (json == null) {
92
+ return json;
93
+ }
94
+ return {
95
+
96
+ 'status': json['status'],
97
+ 'domainType': json['domainType'],
98
+ 'registeredAt': json['registeredAt'],
99
+ 'nameservers': json['nameservers'],
100
+ 'websiteReachable': json['websiteReachable'],
101
+ 'enrichedAt': json['enrichedAt'],
102
+ };
103
+ }
104
+
105
+ export function LeadEnrichmentDomainFactsDtoToJSON(json: any): LeadEnrichmentDomainFactsDto {
106
+ return LeadEnrichmentDomainFactsDtoToJSONTyped(json, false);
107
+ }
108
+
109
+ export function LeadEnrichmentDomainFactsDtoToJSONTyped(value?: LeadEnrichmentDomainFactsDto | null, ignoreDiscriminator: boolean = false): any {
110
+ if (value == null) {
111
+ return value;
112
+ }
113
+
114
+ return {
115
+
116
+ 'status': value['status'],
117
+ 'domainType': value['domainType'],
118
+ 'registeredAt': value['registeredAt'],
119
+ 'nameservers': value['nameservers'],
120
+ 'websiteReachable': value['websiteReachable'],
121
+ 'enrichedAt': value['enrichedAt'],
122
+ };
123
+ }
124
+
@@ -37,12 +37,6 @@ export interface LeadEnrichmentDomainVariantDto {
37
37
  * @memberof LeadEnrichmentDomainVariantDto
38
38
  */
39
39
  websiteReachable: boolean;
40
- /**
41
- * Whether the variant's nameservers match the sale domain's.
42
- * @type {boolean}
43
- * @memberof LeadEnrichmentDomainVariantDto
44
- */
45
- sameNameservers: boolean | null;
46
40
  /**
47
41
  * Whether the variant is openly for sale (marketplace parking or a _for-sale record).
48
42
  * @type {boolean}
@@ -76,7 +70,6 @@ export function instanceOfLeadEnrichmentDomainVariantDto(value: object): value i
76
70
  if (!('domain' in value) || value['domain'] === undefined) return false;
77
71
  if (!('registered' in value) || value['registered'] === undefined) return false;
78
72
  if (!('websiteReachable' in value) || value['websiteReachable'] === undefined) return false;
79
- if (!('sameNameservers' in value) || value['sameNameservers'] === undefined) return false;
80
73
  if (!('forSale' in value) || value['forSale'] === undefined) return false;
81
74
  if (!('forSaleMarketplace' in value) || value['forSaleMarketplace'] === undefined) return false;
82
75
  if (!('forSalePriceAmount' in value) || value['forSalePriceAmount'] === undefined) return false;
@@ -97,7 +90,6 @@ export function LeadEnrichmentDomainVariantDtoFromJSONTyped(json: any, ignoreDis
97
90
  'domain': json['domain'],
98
91
  'registered': json['registered'],
99
92
  'websiteReachable': json['websiteReachable'],
100
- 'sameNameservers': json['sameNameservers'],
101
93
  'forSale': json['forSale'],
102
94
  'forSaleMarketplace': json['forSaleMarketplace'],
103
95
  'forSalePriceAmount': json['forSalePriceAmount'],
@@ -119,7 +111,6 @@ export function LeadEnrichmentDomainVariantDtoToJSONTyped(value?: LeadEnrichment
119
111
  'domain': value['domain'],
120
112
  'registered': value['registered'],
121
113
  'websiteReachable': value['websiteReachable'],
122
- 'sameNameservers': value['sameNameservers'],
123
114
  'forSale': value['forSale'],
124
115
  'forSaleMarketplace': value['forSaleMarketplace'],
125
116
  'forSalePriceAmount': value['forSalePriceAmount'],
@@ -55,6 +55,27 @@ import {
55
55
  LeadEnrichmentDomainDtoToJSON,
56
56
  LeadEnrichmentDomainDtoToJSONTyped,
57
57
  } from './LeadEnrichmentDomainDto';
58
+ import type { LeadEnrichmentDomainFactsDto } from './LeadEnrichmentDomainFactsDto';
59
+ import {
60
+ LeadEnrichmentDomainFactsDtoFromJSON,
61
+ LeadEnrichmentDomainFactsDtoFromJSONTyped,
62
+ LeadEnrichmentDomainFactsDtoToJSON,
63
+ LeadEnrichmentDomainFactsDtoToJSONTyped,
64
+ } from './LeadEnrichmentDomainFactsDto';
65
+ import type { LeadEnrichmentActivityDto } from './LeadEnrichmentActivityDto';
66
+ import {
67
+ LeadEnrichmentActivityDtoFromJSON,
68
+ LeadEnrichmentActivityDtoFromJSONTyped,
69
+ LeadEnrichmentActivityDtoToJSON,
70
+ LeadEnrichmentActivityDtoToJSONTyped,
71
+ } from './LeadEnrichmentActivityDto';
72
+ import type { LeadEnrichmentNamesakeDto } from './LeadEnrichmentNamesakeDto';
73
+ import {
74
+ LeadEnrichmentNamesakeDtoFromJSON,
75
+ LeadEnrichmentNamesakeDtoFromJSONTyped,
76
+ LeadEnrichmentNamesakeDtoToJSON,
77
+ LeadEnrichmentNamesakeDtoToJSONTyped,
78
+ } from './LeadEnrichmentNamesakeDto';
58
79
 
59
80
  /**
60
81
  *
@@ -86,6 +107,12 @@ export interface LeadEnrichmentDto {
86
107
  * @memberof LeadEnrichmentDto
87
108
  */
88
109
  webResults: Array<LeadEnrichmentWebResultDto>;
110
+ /**
111
+ * When the lead-scoped search last completed.
112
+ * @type {string}
113
+ * @memberof LeadEnrichmentDto
114
+ */
115
+ enrichedAt: string | null;
89
116
  /**
90
117
  *
91
118
  * @type {LeadEnrichmentEmailDto}
@@ -104,6 +131,18 @@ export interface LeadEnrichmentDto {
104
131
  * @memberof LeadEnrichmentDto
105
132
  */
106
133
  company: LeadEnrichmentCompanyDto | null;
134
+ /**
135
+ * The company, if any, using the sale domain's name — keyed by its registrable label, so every domain carrying the name shares the answer. A likely buyer signal and context on the name being sold.
136
+ * @type {LeadEnrichmentNamesakeDto}
137
+ * @memberof LeadEnrichmentDto
138
+ */
139
+ namesake: LeadEnrichmentNamesakeDto | null;
140
+ /**
141
+ * The buyer email domain's infrastructure facts: mail classification, registration date, nameservers.
142
+ * @type {LeadEnrichmentDomainFactsDto}
143
+ * @memberof LeadEnrichmentDto
144
+ */
145
+ domainFacts: LeadEnrichmentDomainFactsDto | null;
107
146
  /**
108
147
  *
109
148
  * @type {LeadEnrichmentIpDto}
@@ -116,6 +155,18 @@ export interface LeadEnrichmentDto {
116
155
  * @memberof LeadEnrichmentDto
117
156
  */
118
157
  domain: LeadEnrichmentDomainDto | null;
158
+ /**
159
+ * Sale-domain variants whose registry nameservers equal the buyer's email-domain nameservers — a hint the buyer already holds them. Empty when nothing matches or either side's nameservers are unknown; shared hosting makes it a hint, not proof.
160
+ * @type {Array<string>}
161
+ * @memberof LeadEnrichmentDto
162
+ */
163
+ buyerNameserverMatches: Array<string>;
164
+ /**
165
+ * On-site behaviour from analytics. Independent of `available`, which only reflects the enrichment service.
166
+ * @type {LeadEnrichmentActivityDto}
167
+ * @memberof LeadEnrichmentDto
168
+ */
169
+ activity: LeadEnrichmentActivityDto | null;
119
170
  }
120
171
 
121
172
  /**
@@ -126,11 +177,16 @@ export function instanceOfLeadEnrichmentDto(value: object): value is LeadEnrichm
126
177
  if (!('status' in value) || value['status'] === undefined) return false;
127
178
  if (!('webSummary' in value) || value['webSummary'] === undefined) return false;
128
179
  if (!('webResults' in value) || value['webResults'] === undefined) return false;
180
+ if (!('enrichedAt' in value) || value['enrichedAt'] === undefined) return false;
129
181
  if (!('email' in value) || value['email'] === undefined) return false;
130
182
  if (!('person' in value) || value['person'] === undefined) return false;
131
183
  if (!('company' in value) || value['company'] === undefined) return false;
184
+ if (!('namesake' in value) || value['namesake'] === undefined) return false;
185
+ if (!('domainFacts' in value) || value['domainFacts'] === undefined) return false;
132
186
  if (!('ip' in value) || value['ip'] === undefined) return false;
133
187
  if (!('domain' in value) || value['domain'] === undefined) return false;
188
+ if (!('buyerNameserverMatches' in value) || value['buyerNameserverMatches'] === undefined) return false;
189
+ if (!('activity' in value) || value['activity'] === undefined) return false;
134
190
  return true;
135
191
  }
136
192
 
@@ -148,11 +204,16 @@ export function LeadEnrichmentDtoFromJSONTyped(json: any, ignoreDiscriminator: b
148
204
  'status': json['status'],
149
205
  'webSummary': json['webSummary'],
150
206
  'webResults': ((json['webResults'] as Array<any>).map(LeadEnrichmentWebResultDtoFromJSON)),
207
+ 'enrichedAt': json['enrichedAt'],
151
208
  'email': LeadEnrichmentEmailDtoFromJSON(json['email']),
152
209
  'person': LeadEnrichmentPersonDtoFromJSON(json['person']),
153
210
  'company': LeadEnrichmentCompanyDtoFromJSON(json['company']),
211
+ 'namesake': LeadEnrichmentNamesakeDtoFromJSON(json['namesake']),
212
+ 'domainFacts': LeadEnrichmentDomainFactsDtoFromJSON(json['domainFacts']),
154
213
  'ip': LeadEnrichmentIpDtoFromJSON(json['ip']),
155
214
  'domain': LeadEnrichmentDomainDtoFromJSON(json['domain']),
215
+ 'buyerNameserverMatches': json['buyerNameserverMatches'],
216
+ 'activity': LeadEnrichmentActivityDtoFromJSON(json['activity']),
156
217
  };
157
218
  }
158
219
 
@@ -171,11 +232,16 @@ export function LeadEnrichmentDtoToJSONTyped(value?: LeadEnrichmentDto | null, i
171
232
  'status': value['status'],
172
233
  'webSummary': value['webSummary'],
173
234
  'webResults': ((value['webResults'] as Array<any>).map(LeadEnrichmentWebResultDtoToJSON)),
235
+ 'enrichedAt': value['enrichedAt'],
174
236
  'email': LeadEnrichmentEmailDtoToJSON(value['email']),
175
237
  'person': LeadEnrichmentPersonDtoToJSON(value['person']),
176
238
  'company': LeadEnrichmentCompanyDtoToJSON(value['company']),
239
+ 'namesake': LeadEnrichmentNamesakeDtoToJSON(value['namesake']),
240
+ 'domainFacts': LeadEnrichmentDomainFactsDtoToJSON(value['domainFacts']),
177
241
  'ip': LeadEnrichmentIpDtoToJSON(value['ip']),
178
242
  'domain': LeadEnrichmentDomainDtoToJSON(value['domain']),
243
+ 'buyerNameserverMatches': value['buyerNameserverMatches'],
244
+ 'activity': LeadEnrichmentActivityDtoToJSON(value['activity']),
179
245
  };
180
246
  }
181
247
 
@@ -31,6 +31,12 @@ export interface LeadEnrichmentEmailDto {
31
31
  * @memberof LeadEnrichmentEmailDto
32
32
  */
33
33
  isDisposable: boolean | null;
34
+ /**
35
+ * When this record was last enriched.
36
+ * @type {string}
37
+ * @memberof LeadEnrichmentEmailDto
38
+ */
39
+ enrichedAt: string | null;
34
40
  }
35
41
 
36
42
  /**
@@ -39,6 +45,7 @@ export interface LeadEnrichmentEmailDto {
39
45
  export function instanceOfLeadEnrichmentEmailDto(value: object): value is LeadEnrichmentEmailDto {
40
46
  if (!('isFreeMail' in value) || value['isFreeMail'] === undefined) return false;
41
47
  if (!('isDisposable' in value) || value['isDisposable'] === undefined) return false;
48
+ if (!('enrichedAt' in value) || value['enrichedAt'] === undefined) return false;
42
49
  return true;
43
50
  }
44
51
 
@@ -54,6 +61,7 @@ export function LeadEnrichmentEmailDtoFromJSONTyped(json: any, ignoreDiscriminat
54
61
 
55
62
  'isFreeMail': json['isFreeMail'],
56
63
  'isDisposable': json['isDisposable'],
64
+ 'enrichedAt': json['enrichedAt'],
57
65
  };
58
66
  }
59
67
 
@@ -70,6 +78,7 @@ export function LeadEnrichmentEmailDtoToJSONTyped(value?: LeadEnrichmentEmailDto
70
78
 
71
79
  'isFreeMail': value['isFreeMail'],
72
80
  'isDisposable': value['isDisposable'],
81
+ 'enrichedAt': value['enrichedAt'],
73
82
  };
74
83
  }
75
84
 
@@ -25,6 +25,12 @@ export interface LeadEnrichmentIpDto {
25
25
  * @memberof LeadEnrichmentIpDto
26
26
  */
27
27
  org: string | null;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof LeadEnrichmentIpDto
32
+ */
33
+ asn: number | null;
28
34
  /**
29
35
  *
30
36
  * @type {string}
@@ -37,6 +43,30 @@ export interface LeadEnrichmentIpDto {
37
43
  * @memberof LeadEnrichmentIpDto
38
44
  */
39
45
  countryCode: string | null;
46
+ /**
47
+ * City the buyer's IP address resolves to. Null when that address has not been located; it is never inferred from neighbouring addresses on the same network.
48
+ * @type {string}
49
+ * @memberof LeadEnrichmentIpDto
50
+ */
51
+ city: string | null;
52
+ /**
53
+ * State or province containing `city`.
54
+ * @type {string}
55
+ * @memberof LeadEnrichmentIpDto
56
+ */
57
+ region: string | null;
58
+ /**
59
+ * Latitude of the buyer's IP address; null unless `longitude` is set too. Accurate to city level at best.
60
+ * @type {number}
61
+ * @memberof LeadEnrichmentIpDto
62
+ */
63
+ latitude: number | null;
64
+ /**
65
+ * Longitude of the buyer's IP address, always paired with `latitude`.
66
+ * @type {number}
67
+ * @memberof LeadEnrichmentIpDto
68
+ */
69
+ longitude: number | null;
40
70
  /**
41
71
  *
42
72
  * @type {boolean}
@@ -55,6 +85,18 @@ export interface LeadEnrichmentIpDto {
55
85
  * @memberof LeadEnrichmentIpDto
56
86
  */
57
87
  isTor: boolean | null;
88
+ /**
89
+ * Whether the address belongs to a mobile carrier network.
90
+ * @type {boolean}
91
+ * @memberof LeadEnrichmentIpDto
92
+ */
93
+ isMobile: boolean | null;
94
+ /**
95
+ * When this record was last enriched.
96
+ * @type {string}
97
+ * @memberof LeadEnrichmentIpDto
98
+ */
99
+ enrichedAt: string | null;
58
100
  }
59
101
 
60
102
  /**
@@ -62,11 +104,18 @@ export interface LeadEnrichmentIpDto {
62
104
  */
63
105
  export function instanceOfLeadEnrichmentIpDto(value: object): value is LeadEnrichmentIpDto {
64
106
  if (!('org' in value) || value['org'] === undefined) return false;
107
+ if (!('asn' in value) || value['asn'] === undefined) return false;
65
108
  if (!('asnOrg' in value) || value['asnOrg'] === undefined) return false;
66
109
  if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
110
+ if (!('city' in value) || value['city'] === undefined) return false;
111
+ if (!('region' in value) || value['region'] === undefined) return false;
112
+ if (!('latitude' in value) || value['latitude'] === undefined) return false;
113
+ if (!('longitude' in value) || value['longitude'] === undefined) return false;
67
114
  if (!('isHosting' in value) || value['isHosting'] === undefined) return false;
68
115
  if (!('isVpn' in value) || value['isVpn'] === undefined) return false;
69
116
  if (!('isTor' in value) || value['isTor'] === undefined) return false;
117
+ if (!('isMobile' in value) || value['isMobile'] === undefined) return false;
118
+ if (!('enrichedAt' in value) || value['enrichedAt'] === undefined) return false;
70
119
  return true;
71
120
  }
72
121
 
@@ -81,11 +130,18 @@ export function LeadEnrichmentIpDtoFromJSONTyped(json: any, ignoreDiscriminator:
81
130
  return {
82
131
 
83
132
  'org': json['org'],
133
+ 'asn': json['asn'],
84
134
  'asnOrg': json['asnOrg'],
85
135
  'countryCode': json['countryCode'],
136
+ 'city': json['city'],
137
+ 'region': json['region'],
138
+ 'latitude': json['latitude'],
139
+ 'longitude': json['longitude'],
86
140
  'isHosting': json['isHosting'],
87
141
  'isVpn': json['isVpn'],
88
142
  'isTor': json['isTor'],
143
+ 'isMobile': json['isMobile'],
144
+ 'enrichedAt': json['enrichedAt'],
89
145
  };
90
146
  }
91
147
 
@@ -101,11 +157,18 @@ export function LeadEnrichmentIpDtoToJSONTyped(value?: LeadEnrichmentIpDto | nul
101
157
  return {
102
158
 
103
159
  'org': value['org'],
160
+ 'asn': value['asn'],
104
161
  'asnOrg': value['asnOrg'],
105
162
  'countryCode': value['countryCode'],
163
+ 'city': value['city'],
164
+ 'region': value['region'],
165
+ 'latitude': value['latitude'],
166
+ 'longitude': value['longitude'],
106
167
  'isHosting': value['isHosting'],
107
168
  'isVpn': value['isVpn'],
108
169
  'isTor': value['isTor'],
170
+ 'isMobile': value['isMobile'],
171
+ 'enrichedAt': value['enrichedAt'],
109
172
  };
110
173
  }
111
174
 
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 LeadEnrichmentNamesakeDto
20
+ */
21
+ export interface LeadEnrichmentNamesakeDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LeadEnrichmentNamesakeDto
26
+ */
27
+ status: string;
28
+ /**
29
+ * The registrable label the record is keyed by ("detheepot").
30
+ * @type {string}
31
+ * @memberof LeadEnrichmentNamesakeDto
32
+ */
33
+ label: string;
34
+ /**
35
+ * Register name that conservatively matched the label.
36
+ * @type {string}
37
+ * @memberof LeadEnrichmentNamesakeDto
38
+ */
39
+ companyName: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof LeadEnrichmentNamesakeDto
44
+ */
45
+ registryId: string | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof LeadEnrichmentNamesakeDto
50
+ */
51
+ countryCode: string | null;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof LeadEnrichmentNamesakeDto
56
+ */
57
+ leiCode: string | null;
58
+ /**
59
+ * When this record was last enriched.
60
+ * @type {string}
61
+ * @memberof LeadEnrichmentNamesakeDto
62
+ */
63
+ enrichedAt: string | null;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the LeadEnrichmentNamesakeDto interface.
68
+ */
69
+ export function instanceOfLeadEnrichmentNamesakeDto(value: object): value is LeadEnrichmentNamesakeDto {
70
+ if (!('status' in value) || value['status'] === undefined) return false;
71
+ if (!('label' in value) || value['label'] === undefined) return false;
72
+ if (!('companyName' in value) || value['companyName'] === undefined) return false;
73
+ if (!('registryId' in value) || value['registryId'] === undefined) return false;
74
+ if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
75
+ if (!('leiCode' in value) || value['leiCode'] === undefined) return false;
76
+ if (!('enrichedAt' in value) || value['enrichedAt'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function LeadEnrichmentNamesakeDtoFromJSON(json: any): LeadEnrichmentNamesakeDto {
81
+ return LeadEnrichmentNamesakeDtoFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function LeadEnrichmentNamesakeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentNamesakeDto {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'status': json['status'],
91
+ 'label': json['label'],
92
+ 'companyName': json['companyName'],
93
+ 'registryId': json['registryId'],
94
+ 'countryCode': json['countryCode'],
95
+ 'leiCode': json['leiCode'],
96
+ 'enrichedAt': json['enrichedAt'],
97
+ };
98
+ }
99
+
100
+ export function LeadEnrichmentNamesakeDtoToJSON(json: any): LeadEnrichmentNamesakeDto {
101
+ return LeadEnrichmentNamesakeDtoToJSONTyped(json, false);
102
+ }
103
+
104
+ export function LeadEnrichmentNamesakeDtoToJSONTyped(value?: LeadEnrichmentNamesakeDto | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'status': value['status'],
112
+ 'label': value['label'],
113
+ 'companyName': value['companyName'],
114
+ 'registryId': value['registryId'],
115
+ 'countryCode': value['countryCode'],
116
+ 'leiCode': value['leiCode'],
117
+ 'enrichedAt': value['enrichedAt'],
118
+ };
119
+ }
120
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 LeadEnrichmentOfferDto
20
+ */
21
+ export interface LeadEnrichmentOfferDto {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof LeadEnrichmentOfferDto
26
+ */
27
+ amount: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof LeadEnrichmentOfferDto
32
+ */
33
+ currencyCode: string | null;
34
+ /**
35
+ *
36
+ * @type {Date}
37
+ * @memberof LeadEnrichmentOfferDto
38
+ */
39
+ at: Date;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the LeadEnrichmentOfferDto interface.
44
+ */
45
+ export function instanceOfLeadEnrichmentOfferDto(value: object): value is LeadEnrichmentOfferDto {
46
+ if (!('amount' in value) || value['amount'] === undefined) return false;
47
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
48
+ if (!('at' in value) || value['at'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function LeadEnrichmentOfferDtoFromJSON(json: any): LeadEnrichmentOfferDto {
53
+ return LeadEnrichmentOfferDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function LeadEnrichmentOfferDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentOfferDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'amount': json['amount'],
63
+ 'currencyCode': json['currencyCode'],
64
+ 'at': (new Date(json['at'])),
65
+ };
66
+ }
67
+
68
+ export function LeadEnrichmentOfferDtoToJSON(json: any): LeadEnrichmentOfferDto {
69
+ return LeadEnrichmentOfferDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function LeadEnrichmentOfferDtoToJSONTyped(value?: LeadEnrichmentOfferDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'amount': value['amount'],
80
+ 'currencyCode': value['currencyCode'],
81
+ 'at': ((value['at']).toISOString()),
82
+ };
83
+ }
84
+