@randock/nameshift-api-client 0.0.460 → 0.0.461

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 (33) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +3 -3
  3. package/dist/apis/LeadsApi.d.ts +14 -1
  4. package/dist/apis/LeadsApi.js +63 -0
  5. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  6. package/dist/models/FeatureFlagListItemDto.js +2 -1
  7. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  8. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  9. package/dist/models/LeadEnrichmentCompanyDto.d.ts +68 -0
  10. package/dist/models/LeadEnrichmentCompanyDto.js +75 -0
  11. package/dist/models/LeadEnrichmentDto.d.ts +72 -0
  12. package/dist/models/LeadEnrichmentDto.js +79 -0
  13. package/dist/models/LeadEnrichmentEmailDto.d.ts +44 -0
  14. package/dist/models/LeadEnrichmentEmailDto.js +59 -0
  15. package/dist/models/LeadEnrichmentIpDto.d.ts +62 -0
  16. package/dist/models/LeadEnrichmentIpDto.js +71 -0
  17. package/dist/models/LeadEnrichmentWebResultDto.d.ts +44 -0
  18. package/dist/models/LeadEnrichmentWebResultDto.js +59 -0
  19. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  20. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  21. package/dist/models/index.d.ts +5 -0
  22. package/dist/models/index.js +5 -0
  23. package/package.json +1 -1
  24. package/src/apis/LeadsApi.ts +54 -0
  25. package/src/models/FeatureFlagListItemDto.ts +2 -1
  26. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  27. package/src/models/LeadEnrichmentCompanyDto.ts +120 -0
  28. package/src/models/LeadEnrichmentDto.ts +149 -0
  29. package/src/models/LeadEnrichmentEmailDto.ts +84 -0
  30. package/src/models/LeadEnrichmentIpDto.ts +111 -0
  31. package/src/models/LeadEnrichmentWebResultDto.ts +84 -0
  32. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  33. package/src/models/index.ts +5 -0
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
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.instanceOfLeadEnrichmentIpDto = instanceOfLeadEnrichmentIpDto;
17
+ exports.LeadEnrichmentIpDtoFromJSON = LeadEnrichmentIpDtoFromJSON;
18
+ exports.LeadEnrichmentIpDtoFromJSONTyped = LeadEnrichmentIpDtoFromJSONTyped;
19
+ exports.LeadEnrichmentIpDtoToJSON = LeadEnrichmentIpDtoToJSON;
20
+ exports.LeadEnrichmentIpDtoToJSONTyped = LeadEnrichmentIpDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LeadEnrichmentIpDto interface.
23
+ */
24
+ function instanceOfLeadEnrichmentIpDto(value) {
25
+ if (!('org' in value) || value['org'] === undefined)
26
+ return false;
27
+ if (!('asnOrg' in value) || value['asnOrg'] === undefined)
28
+ return false;
29
+ if (!('countryCode' in value) || value['countryCode'] === undefined)
30
+ return false;
31
+ if (!('isHosting' in value) || value['isHosting'] === undefined)
32
+ return false;
33
+ if (!('isVpn' in value) || value['isVpn'] === undefined)
34
+ return false;
35
+ if (!('isTor' in value) || value['isTor'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function LeadEnrichmentIpDtoFromJSON(json) {
40
+ return LeadEnrichmentIpDtoFromJSONTyped(json, false);
41
+ }
42
+ function LeadEnrichmentIpDtoFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'org': json['org'],
48
+ 'asnOrg': json['asnOrg'],
49
+ 'countryCode': json['countryCode'],
50
+ 'isHosting': json['isHosting'],
51
+ 'isVpn': json['isVpn'],
52
+ 'isTor': json['isTor'],
53
+ };
54
+ }
55
+ function LeadEnrichmentIpDtoToJSON(json) {
56
+ return LeadEnrichmentIpDtoToJSONTyped(json, false);
57
+ }
58
+ function LeadEnrichmentIpDtoToJSONTyped(value, ignoreDiscriminator) {
59
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'org': value['org'],
65
+ 'asnOrg': value['asnOrg'],
66
+ 'countryCode': value['countryCode'],
67
+ 'isHosting': value['isHosting'],
68
+ 'isVpn': value['isVpn'],
69
+ 'isTor': value['isTor'],
70
+ };
71
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface LeadEnrichmentWebResultDto
16
+ */
17
+ export interface LeadEnrichmentWebResultDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LeadEnrichmentWebResultDto
22
+ */
23
+ title: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LeadEnrichmentWebResultDto
28
+ */
29
+ url: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof LeadEnrichmentWebResultDto
34
+ */
35
+ snippet: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the LeadEnrichmentWebResultDto interface.
39
+ */
40
+ export declare function instanceOfLeadEnrichmentWebResultDto(value: object): value is LeadEnrichmentWebResultDto;
41
+ export declare function LeadEnrichmentWebResultDtoFromJSON(json: any): LeadEnrichmentWebResultDto;
42
+ export declare function LeadEnrichmentWebResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentWebResultDto;
43
+ export declare function LeadEnrichmentWebResultDtoToJSON(json: any): LeadEnrichmentWebResultDto;
44
+ export declare function LeadEnrichmentWebResultDtoToJSONTyped(value?: LeadEnrichmentWebResultDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
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.instanceOfLeadEnrichmentWebResultDto = instanceOfLeadEnrichmentWebResultDto;
17
+ exports.LeadEnrichmentWebResultDtoFromJSON = LeadEnrichmentWebResultDtoFromJSON;
18
+ exports.LeadEnrichmentWebResultDtoFromJSONTyped = LeadEnrichmentWebResultDtoFromJSONTyped;
19
+ exports.LeadEnrichmentWebResultDtoToJSON = LeadEnrichmentWebResultDtoToJSON;
20
+ exports.LeadEnrichmentWebResultDtoToJSONTyped = LeadEnrichmentWebResultDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LeadEnrichmentWebResultDto interface.
23
+ */
24
+ function instanceOfLeadEnrichmentWebResultDto(value) {
25
+ if (!('title' in value) || value['title'] === undefined)
26
+ return false;
27
+ if (!('url' in value) || value['url'] === undefined)
28
+ return false;
29
+ if (!('snippet' in value) || value['snippet'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function LeadEnrichmentWebResultDtoFromJSON(json) {
34
+ return LeadEnrichmentWebResultDtoFromJSONTyped(json, false);
35
+ }
36
+ function LeadEnrichmentWebResultDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'title': json['title'],
42
+ 'url': json['url'],
43
+ 'snippet': json['snippet'],
44
+ };
45
+ }
46
+ function LeadEnrichmentWebResultDtoToJSON(json) {
47
+ return LeadEnrichmentWebResultDtoToJSONTyped(json, false);
48
+ }
49
+ function LeadEnrichmentWebResultDtoToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'title': value['title'],
56
+ 'url': value['url'],
57
+ 'snippet': value['snippet'],
58
+ };
59
+ }
@@ -139,6 +139,7 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
139
139
  readonly AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: "AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD";
140
140
  readonly MARKETPLACE_ROUTING: "MARKETPLACE_ROUTING";
141
141
  readonly AI_DOMAIN_EDIT: "AI_DOMAIN_EDIT";
142
+ readonly LEAD_ENRICHMENT: "LEAD_ENRICHMENT";
142
143
  };
143
144
  export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
144
145
  /**
@@ -57,7 +57,8 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
57
57
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
58
58
  AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
59
59
  MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
60
- AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT'
60
+ AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
61
+ LEAD_ENRICHMENT: 'LEAD_ENRICHMENT'
61
62
  };
62
63
  /**
63
64
  * Check if a given object implements the PrivateAccountGetMeResponse interface.
@@ -288,6 +288,11 @@ export * from './LandingPageSettingsDto';
288
288
  export * from './LeadBuyerConfigDto';
289
289
  export * from './LeadDomainDto';
290
290
  export * from './LeadDto';
291
+ export * from './LeadEnrichmentCompanyDto';
292
+ export * from './LeadEnrichmentDto';
293
+ export * from './LeadEnrichmentEmailDto';
294
+ export * from './LeadEnrichmentIpDto';
295
+ export * from './LeadEnrichmentWebResultDto';
291
296
  export * from './LeadLeaseToOwnAndRentConfigurationPresetsDto';
292
297
  export * from './LeadLeaseToOwnConfigurationDto';
293
298
  export * from './LeadMessageData';
@@ -306,6 +306,11 @@ __exportStar(require("./LandingPageSettingsDto"), exports);
306
306
  __exportStar(require("./LeadBuyerConfigDto"), exports);
307
307
  __exportStar(require("./LeadDomainDto"), exports);
308
308
  __exportStar(require("./LeadDto"), exports);
309
+ __exportStar(require("./LeadEnrichmentCompanyDto"), exports);
310
+ __exportStar(require("./LeadEnrichmentDto"), exports);
311
+ __exportStar(require("./LeadEnrichmentEmailDto"), exports);
312
+ __exportStar(require("./LeadEnrichmentIpDto"), exports);
313
+ __exportStar(require("./LeadEnrichmentWebResultDto"), exports);
309
314
  __exportStar(require("./LeadLeaseToOwnAndRentConfigurationPresetsDto"), exports);
310
315
  __exportStar(require("./LeadLeaseToOwnConfigurationDto"), exports);
311
316
  __exportStar(require("./LeadMessageData"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.460",
3
+ "version": "0.0.461",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -20,6 +20,7 @@ import type {
20
20
  CreateLeadMessageInput,
21
21
  CreateManualLeadInput,
22
22
  IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto,
23
+ LeadEnrichmentDto,
23
24
  LeadLeaseToOwnAndRentConfigurationPresetsDto,
24
25
  LeadOfferExpirationConfigurationInput,
25
26
  List200Response,
@@ -43,6 +44,8 @@ import {
43
44
  CreateManualLeadInputToJSON,
44
45
  IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON,
45
46
  IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON,
47
+ LeadEnrichmentDtoFromJSON,
48
+ LeadEnrichmentDtoToJSON,
46
49
  LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSON,
47
50
  LeadLeaseToOwnAndRentConfigurationPresetsDtoToJSON,
48
51
  LeadOfferExpirationConfigurationInputFromJSON,
@@ -97,6 +100,10 @@ export interface LeadsApiGetLeadRequest {
97
100
  leadId: string;
98
101
  }
99
102
 
103
+ export interface LeadsApiGetLeadEnrichmentRequest {
104
+ leadId: string;
105
+ }
106
+
100
107
  export interface LeadsApiGetManualLeadRequest {
101
108
  leadId: string;
102
109
  }
@@ -508,6 +515,53 @@ export class LeadsApi extends runtime.BaseAPI {
508
515
  return await response.value();
509
516
  }
510
517
 
518
+ /**
519
+ * Returns buyer background enrichment for a lead: web footprint, the company behind the email domain, email classification, and IP intelligence. Sections are empty while enrichment is pending. Requires account ownership. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
520
+ * Get lead buyer enrichment
521
+ */
522
+ async getLeadEnrichmentRaw(requestParameters: LeadsApiGetLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadEnrichmentDto>> {
523
+ if (requestParameters['leadId'] == null) {
524
+ throw new runtime.RequiredError(
525
+ 'leadId',
526
+ 'Required parameter "leadId" was null or undefined when calling getLeadEnrichment().'
527
+ );
528
+ }
529
+
530
+ const queryParameters: any = {};
531
+
532
+ const headerParameters: runtime.HTTPHeaders = {};
533
+
534
+ if (this.configuration && this.configuration.apiKey) {
535
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
536
+ }
537
+
538
+ if (this.configuration && this.configuration.accessToken) {
539
+ const token = this.configuration.accessToken;
540
+ const tokenString = await token("bearer", []);
541
+
542
+ if (tokenString) {
543
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
544
+ }
545
+ }
546
+ const response = await this.request({
547
+ path: `/private/leads/{leadId}/enrichment`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
548
+ method: 'GET',
549
+ headers: headerParameters,
550
+ query: queryParameters,
551
+ }, initOverrides);
552
+
553
+ return new runtime.JSONApiResponse(response, (jsonValue) => LeadEnrichmentDtoFromJSON(jsonValue));
554
+ }
555
+
556
+ /**
557
+ * Returns buyer background enrichment for a lead: web footprint, the company behind the email domain, email classification, and IP intelligence. Sections are empty while enrichment is pending. Requires account ownership. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
558
+ * Get lead buyer enrichment
559
+ */
560
+ async getLeadEnrichment(requestParameters: LeadsApiGetLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadEnrichmentDto> {
561
+ const response = await this.getLeadEnrichmentRaw(requestParameters, initOverrides);
562
+ return await response.value();
563
+ }
564
+
511
565
  /**
512
566
  * Returns configuration presets for lead offers. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
513
567
  * Get lease-to-own configuration presets
@@ -95,7 +95,8 @@ export const FeatureFlagListItemDtoNameEnum = {
95
95
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
96
96
  AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
97
97
  MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
98
- AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT'
98
+ AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
99
+ LEAD_ENRICHMENT: 'LEAD_ENRICHMENT'
99
100
  } as const;
100
101
  export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
101
102
 
@@ -181,7 +181,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
181
181
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
182
182
  AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
183
183
  MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
184
- AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT'
184
+ AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
185
+ LEAD_ENRICHMENT: 'LEAD_ENRICHMENT'
185
186
  } as const;
186
187
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
187
188
 
@@ -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 LeadEnrichmentCompanyDto
20
+ */
21
+ export interface LeadEnrichmentCompanyDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LeadEnrichmentCompanyDto
26
+ */
27
+ status: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof LeadEnrichmentCompanyDto
32
+ */
33
+ legalName: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof LeadEnrichmentCompanyDto
38
+ */
39
+ tradeName: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof LeadEnrichmentCompanyDto
44
+ */
45
+ countryCode: string | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof LeadEnrichmentCompanyDto
50
+ */
51
+ vatId: string | null;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof LeadEnrichmentCompanyDto
56
+ */
57
+ registryId: string | null;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof LeadEnrichmentCompanyDto
62
+ */
63
+ domainRegisteredAt: string | null;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the LeadEnrichmentCompanyDto interface.
68
+ */
69
+ export function instanceOfLeadEnrichmentCompanyDto(value: object): value is LeadEnrichmentCompanyDto {
70
+ if (!('status' in value) || value['status'] === undefined) return false;
71
+ if (!('legalName' in value) || value['legalName'] === undefined) return false;
72
+ if (!('tradeName' in value) || value['tradeName'] === undefined) return false;
73
+ if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
74
+ if (!('vatId' in value) || value['vatId'] === undefined) return false;
75
+ if (!('registryId' in value) || value['registryId'] === undefined) return false;
76
+ if (!('domainRegisteredAt' in value) || value['domainRegisteredAt'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function LeadEnrichmentCompanyDtoFromJSON(json: any): LeadEnrichmentCompanyDto {
81
+ return LeadEnrichmentCompanyDtoFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function LeadEnrichmentCompanyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentCompanyDto {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'status': json['status'],
91
+ 'legalName': json['legalName'],
92
+ 'tradeName': json['tradeName'],
93
+ 'countryCode': json['countryCode'],
94
+ 'vatId': json['vatId'],
95
+ 'registryId': json['registryId'],
96
+ 'domainRegisteredAt': json['domainRegisteredAt'],
97
+ };
98
+ }
99
+
100
+ export function LeadEnrichmentCompanyDtoToJSON(json: any): LeadEnrichmentCompanyDto {
101
+ return LeadEnrichmentCompanyDtoToJSONTyped(json, false);
102
+ }
103
+
104
+ export function LeadEnrichmentCompanyDtoToJSONTyped(value?: LeadEnrichmentCompanyDto | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'status': value['status'],
112
+ 'legalName': value['legalName'],
113
+ 'tradeName': value['tradeName'],
114
+ 'countryCode': value['countryCode'],
115
+ 'vatId': value['vatId'],
116
+ 'registryId': value['registryId'],
117
+ 'domainRegisteredAt': value['domainRegisteredAt'],
118
+ };
119
+ }
120
+
@@ -0,0 +1,149 @@
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
+ import type { LeadEnrichmentIpDto } from './LeadEnrichmentIpDto';
17
+ import {
18
+ LeadEnrichmentIpDtoFromJSON,
19
+ LeadEnrichmentIpDtoFromJSONTyped,
20
+ LeadEnrichmentIpDtoToJSON,
21
+ LeadEnrichmentIpDtoToJSONTyped,
22
+ } from './LeadEnrichmentIpDto';
23
+ import type { LeadEnrichmentEmailDto } from './LeadEnrichmentEmailDto';
24
+ import {
25
+ LeadEnrichmentEmailDtoFromJSON,
26
+ LeadEnrichmentEmailDtoFromJSONTyped,
27
+ LeadEnrichmentEmailDtoToJSON,
28
+ LeadEnrichmentEmailDtoToJSONTyped,
29
+ } from './LeadEnrichmentEmailDto';
30
+ import type { LeadEnrichmentWebResultDto } from './LeadEnrichmentWebResultDto';
31
+ import {
32
+ LeadEnrichmentWebResultDtoFromJSON,
33
+ LeadEnrichmentWebResultDtoFromJSONTyped,
34
+ LeadEnrichmentWebResultDtoToJSON,
35
+ LeadEnrichmentWebResultDtoToJSONTyped,
36
+ } from './LeadEnrichmentWebResultDto';
37
+ import type { LeadEnrichmentCompanyDto } from './LeadEnrichmentCompanyDto';
38
+ import {
39
+ LeadEnrichmentCompanyDtoFromJSON,
40
+ LeadEnrichmentCompanyDtoFromJSONTyped,
41
+ LeadEnrichmentCompanyDtoToJSON,
42
+ LeadEnrichmentCompanyDtoToJSONTyped,
43
+ } from './LeadEnrichmentCompanyDto';
44
+
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface LeadEnrichmentDto
49
+ */
50
+ export interface LeadEnrichmentDto {
51
+ /**
52
+ * Whether any enrichment is held for this lead yet.
53
+ * @type {boolean}
54
+ * @memberof LeadEnrichmentDto
55
+ */
56
+ available: boolean;
57
+ /**
58
+ * Enrichment lifecycle status of the lead record.
59
+ * @type {string}
60
+ * @memberof LeadEnrichmentDto
61
+ */
62
+ status: string | null;
63
+ /**
64
+ * Summary of the buyer's public web footprint.
65
+ * @type {string}
66
+ * @memberof LeadEnrichmentDto
67
+ */
68
+ webSummary: string | null;
69
+ /**
70
+ *
71
+ * @type {Array<LeadEnrichmentWebResultDto>}
72
+ * @memberof LeadEnrichmentDto
73
+ */
74
+ webResults: Array<LeadEnrichmentWebResultDto>;
75
+ /**
76
+ *
77
+ * @type {LeadEnrichmentEmailDto}
78
+ * @memberof LeadEnrichmentDto
79
+ */
80
+ email: LeadEnrichmentEmailDto | null;
81
+ /**
82
+ *
83
+ * @type {LeadEnrichmentCompanyDto}
84
+ * @memberof LeadEnrichmentDto
85
+ */
86
+ company: LeadEnrichmentCompanyDto | null;
87
+ /**
88
+ *
89
+ * @type {LeadEnrichmentIpDto}
90
+ * @memberof LeadEnrichmentDto
91
+ */
92
+ ip: LeadEnrichmentIpDto | null;
93
+ }
94
+
95
+ /**
96
+ * Check if a given object implements the LeadEnrichmentDto interface.
97
+ */
98
+ export function instanceOfLeadEnrichmentDto(value: object): value is LeadEnrichmentDto {
99
+ if (!('available' in value) || value['available'] === undefined) return false;
100
+ if (!('status' in value) || value['status'] === undefined) return false;
101
+ if (!('webSummary' in value) || value['webSummary'] === undefined) return false;
102
+ if (!('webResults' in value) || value['webResults'] === undefined) return false;
103
+ if (!('email' in value) || value['email'] === undefined) return false;
104
+ if (!('company' in value) || value['company'] === undefined) return false;
105
+ if (!('ip' in value) || value['ip'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function LeadEnrichmentDtoFromJSON(json: any): LeadEnrichmentDto {
110
+ return LeadEnrichmentDtoFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function LeadEnrichmentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentDto {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'available': json['available'],
120
+ 'status': json['status'],
121
+ 'webSummary': json['webSummary'],
122
+ 'webResults': ((json['webResults'] as Array<any>).map(LeadEnrichmentWebResultDtoFromJSON)),
123
+ 'email': LeadEnrichmentEmailDtoFromJSON(json['email']),
124
+ 'company': LeadEnrichmentCompanyDtoFromJSON(json['company']),
125
+ 'ip': LeadEnrichmentIpDtoFromJSON(json['ip']),
126
+ };
127
+ }
128
+
129
+ export function LeadEnrichmentDtoToJSON(json: any): LeadEnrichmentDto {
130
+ return LeadEnrichmentDtoToJSONTyped(json, false);
131
+ }
132
+
133
+ export function LeadEnrichmentDtoToJSONTyped(value?: LeadEnrichmentDto | null, ignoreDiscriminator: boolean = false): any {
134
+ if (value == null) {
135
+ return value;
136
+ }
137
+
138
+ return {
139
+
140
+ 'available': value['available'],
141
+ 'status': value['status'],
142
+ 'webSummary': value['webSummary'],
143
+ 'webResults': ((value['webResults'] as Array<any>).map(LeadEnrichmentWebResultDtoToJSON)),
144
+ 'email': LeadEnrichmentEmailDtoToJSON(value['email']),
145
+ 'company': LeadEnrichmentCompanyDtoToJSON(value['company']),
146
+ 'ip': LeadEnrichmentIpDtoToJSON(value['ip']),
147
+ };
148
+ }
149
+