@randock/nameshift-api-client 0.0.460 → 0.0.462

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 +8 -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/BuyerAcceptanceEnum.d.ts +27 -0
  6. package/dist/models/BuyerAcceptanceEnum.js +53 -0
  7. package/dist/models/BuyerDto.d.ts +27 -0
  8. package/dist/models/BuyerDto.js +19 -0
  9. package/dist/models/BuyerExperienceEnum.d.ts +26 -0
  10. package/dist/models/BuyerExperienceEnum.js +52 -0
  11. package/dist/models/BuyerPaymentEnum.d.ts +27 -0
  12. package/dist/models/BuyerPaymentEnum.js +53 -0
  13. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  14. package/dist/models/FeatureFlagListItemDto.js +2 -1
  15. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  16. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  17. package/dist/models/LeadEnrichmentCompanyDto.d.ts +68 -0
  18. package/dist/models/LeadEnrichmentCompanyDto.js +75 -0
  19. package/dist/models/LeadEnrichmentDto.d.ts +72 -0
  20. package/dist/models/LeadEnrichmentDto.js +79 -0
  21. package/dist/models/LeadEnrichmentEmailDto.d.ts +44 -0
  22. package/dist/models/LeadEnrichmentEmailDto.js +59 -0
  23. package/dist/models/LeadEnrichmentIpDto.d.ts +62 -0
  24. package/dist/models/LeadEnrichmentIpDto.js +71 -0
  25. package/dist/models/LeadEnrichmentWebResultDto.d.ts +44 -0
  26. package/dist/models/LeadEnrichmentWebResultDto.js +59 -0
  27. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  28. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  29. package/dist/models/index.d.ts +8 -0
  30. package/dist/models/index.js +8 -0
  31. package/package.json +1 -1
  32. package/src/apis/LeadsApi.ts +54 -0
  33. package/src/models/BuyerAcceptanceEnum.ts +55 -0
  34. package/src/models/BuyerDto.ts +60 -0
  35. package/src/models/BuyerExperienceEnum.ts +54 -0
  36. package/src/models/BuyerPaymentEnum.ts +55 -0
  37. package/src/models/FeatureFlagListItemDto.ts +2 -1
  38. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  39. package/src/models/LeadEnrichmentCompanyDto.ts +120 -0
  40. package/src/models/LeadEnrichmentDto.ts +149 -0
  41. package/src/models/LeadEnrichmentEmailDto.ts +84 -0
  42. package/src/models/LeadEnrichmentIpDto.ts +111 -0
  43. package/src/models/LeadEnrichmentWebResultDto.ts +84 -0
  44. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  45. package/src/models/index.ts +8 -0
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.462",
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
@@ -0,0 +1,55 @@
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
+
16
+ /**
17
+ * Share of the leads the buyer started that ever reached an accepted deal: accepts_nothing (below 25%), normal (25-75%), accepts_anything (75% and up), or unknown when the buyer has a single lead and no accepted deal yet.
18
+ * @export
19
+ */
20
+ export const BuyerAcceptanceEnum = {
21
+ UNKNOWN: 'unknown',
22
+ ACCEPTS_NOTHING: 'accepts_nothing',
23
+ NORMAL: 'normal',
24
+ ACCEPTS_ANYTHING: 'accepts_anything'
25
+ } as const;
26
+ export type BuyerAcceptanceEnum = typeof BuyerAcceptanceEnum[keyof typeof BuyerAcceptanceEnum];
27
+
28
+
29
+ export function instanceOfBuyerAcceptanceEnum(value: any): boolean {
30
+ for (const key in BuyerAcceptanceEnum) {
31
+ if (Object.prototype.hasOwnProperty.call(BuyerAcceptanceEnum, key)) {
32
+ if (BuyerAcceptanceEnum[key as keyof typeof BuyerAcceptanceEnum] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function BuyerAcceptanceEnumFromJSON(json: any): BuyerAcceptanceEnum {
41
+ return BuyerAcceptanceEnumFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function BuyerAcceptanceEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAcceptanceEnum {
45
+ return json as BuyerAcceptanceEnum;
46
+ }
47
+
48
+ export function BuyerAcceptanceEnumToJSON(value?: BuyerAcceptanceEnum | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function BuyerAcceptanceEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BuyerAcceptanceEnum {
53
+ return value as BuyerAcceptanceEnum;
54
+ }
55
+
@@ -13,6 +13,28 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { BuyerPaymentEnum } from './BuyerPaymentEnum';
17
+ import {
18
+ BuyerPaymentEnumFromJSON,
19
+ BuyerPaymentEnumFromJSONTyped,
20
+ BuyerPaymentEnumToJSON,
21
+ BuyerPaymentEnumToJSONTyped,
22
+ } from './BuyerPaymentEnum';
23
+ import type { BuyerAcceptanceEnum } from './BuyerAcceptanceEnum';
24
+ import {
25
+ BuyerAcceptanceEnumFromJSON,
26
+ BuyerAcceptanceEnumFromJSONTyped,
27
+ BuyerAcceptanceEnumToJSON,
28
+ BuyerAcceptanceEnumToJSONTyped,
29
+ } from './BuyerAcceptanceEnum';
30
+ import type { BuyerExperienceEnum } from './BuyerExperienceEnum';
31
+ import {
32
+ BuyerExperienceEnumFromJSON,
33
+ BuyerExperienceEnumFromJSONTyped,
34
+ BuyerExperienceEnumToJSON,
35
+ BuyerExperienceEnumToJSONTyped,
36
+ } from './BuyerExperienceEnum';
37
+
16
38
  /**
17
39
  *
18
40
  * @export
@@ -61,8 +83,34 @@ export interface BuyerDto {
61
83
  * @memberof BuyerDto
62
84
  */
63
85
  phoneNumber: string | null;
86
+ /**
87
+ *
88
+ * @type {BuyerExperienceEnum}
89
+ * @memberof BuyerDto
90
+ */
91
+ experience: BuyerExperienceEnum;
92
+ /**
93
+ *
94
+ * @type {BuyerAcceptanceEnum}
95
+ * @memberof BuyerDto
96
+ */
97
+ accepted: BuyerAcceptanceEnum;
98
+ /**
99
+ *
100
+ * @type {BuyerPaymentEnum}
101
+ * @memberof BuyerDto
102
+ */
103
+ payment: BuyerPaymentEnum;
104
+ /**
105
+ * Warning that the buyer started fewer than 4 leads, so the buyer classifications are based on little data.
106
+ * @type {boolean}
107
+ * @memberof BuyerDto
108
+ */
109
+ limitedData: boolean;
64
110
  }
65
111
 
112
+
113
+
66
114
  /**
67
115
  * Check if a given object implements the BuyerDto interface.
68
116
  */
@@ -74,6 +122,10 @@ export function instanceOfBuyerDto(value: object): value is BuyerDto {
74
122
  if (!('buyerName' in value) || value['buyerName'] === undefined) return false;
75
123
  if (!('emailDomain' in value) || value['emailDomain'] === undefined) return false;
76
124
  if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
125
+ if (!('experience' in value) || value['experience'] === undefined) return false;
126
+ if (!('accepted' in value) || value['accepted'] === undefined) return false;
127
+ if (!('payment' in value) || value['payment'] === undefined) return false;
128
+ if (!('limitedData' in value) || value['limitedData'] === undefined) return false;
77
129
  return true;
78
130
  }
79
131
 
@@ -94,6 +146,10 @@ export function BuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
94
146
  'buyerName': json['buyerName'],
95
147
  'emailDomain': json['emailDomain'],
96
148
  'phoneNumber': json['phoneNumber'],
149
+ 'experience': BuyerExperienceEnumFromJSON(json['experience']),
150
+ 'accepted': BuyerAcceptanceEnumFromJSON(json['accepted']),
151
+ 'payment': BuyerPaymentEnumFromJSON(json['payment']),
152
+ 'limitedData': json['limitedData'],
97
153
  };
98
154
  }
99
155
 
@@ -115,6 +171,10 @@ export function BuyerDtoToJSONTyped(value?: BuyerDto | null, ignoreDiscriminator
115
171
  'buyerName': value['buyerName'],
116
172
  'emailDomain': value['emailDomain'],
117
173
  'phoneNumber': value['phoneNumber'],
174
+ 'experience': BuyerExperienceEnumToJSON(value['experience']),
175
+ 'accepted': BuyerAcceptanceEnumToJSON(value['accepted']),
176
+ 'payment': BuyerPaymentEnumToJSON(value['payment']),
177
+ 'limitedData': value['limitedData'],
118
178
  };
119
179
  }
120
180
 
@@ -0,0 +1,54 @@
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
+
16
+ /**
17
+ * Experience level based on the number of domains the buyer bought: none (0), active (1-3), expert (4+).
18
+ * @export
19
+ */
20
+ export const BuyerExperienceEnum = {
21
+ NONE: 'none',
22
+ ACTIVE: 'active',
23
+ EXPERT: 'expert'
24
+ } as const;
25
+ export type BuyerExperienceEnum = typeof BuyerExperienceEnum[keyof typeof BuyerExperienceEnum];
26
+
27
+
28
+ export function instanceOfBuyerExperienceEnum(value: any): boolean {
29
+ for (const key in BuyerExperienceEnum) {
30
+ if (Object.prototype.hasOwnProperty.call(BuyerExperienceEnum, key)) {
31
+ if (BuyerExperienceEnum[key as keyof typeof BuyerExperienceEnum] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function BuyerExperienceEnumFromJSON(json: any): BuyerExperienceEnum {
40
+ return BuyerExperienceEnumFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function BuyerExperienceEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerExperienceEnum {
44
+ return json as BuyerExperienceEnum;
45
+ }
46
+
47
+ export function BuyerExperienceEnumToJSON(value?: BuyerExperienceEnum | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function BuyerExperienceEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BuyerExperienceEnum {
52
+ return value as BuyerExperienceEnum;
53
+ }
54
+
@@ -0,0 +1,55 @@
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
+
16
+ /**
17
+ * Share of the leads the buyer started that were actually paid: pays_nothing (below 25%), normal (25-75%), pays_everything (75% and up), or unknown when the buyer has a single lead and no purchase yet.
18
+ * @export
19
+ */
20
+ export const BuyerPaymentEnum = {
21
+ UNKNOWN: 'unknown',
22
+ PAYS_NOTHING: 'pays_nothing',
23
+ NORMAL: 'normal',
24
+ PAYS_EVERYTHING: 'pays_everything'
25
+ } as const;
26
+ export type BuyerPaymentEnum = typeof BuyerPaymentEnum[keyof typeof BuyerPaymentEnum];
27
+
28
+
29
+ export function instanceOfBuyerPaymentEnum(value: any): boolean {
30
+ for (const key in BuyerPaymentEnum) {
31
+ if (Object.prototype.hasOwnProperty.call(BuyerPaymentEnum, key)) {
32
+ if (BuyerPaymentEnum[key as keyof typeof BuyerPaymentEnum] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function BuyerPaymentEnumFromJSON(json: any): BuyerPaymentEnum {
41
+ return BuyerPaymentEnumFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function BuyerPaymentEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerPaymentEnum {
45
+ return json as BuyerPaymentEnum;
46
+ }
47
+
48
+ export function BuyerPaymentEnumToJSON(value?: BuyerPaymentEnum | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function BuyerPaymentEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BuyerPaymentEnum {
53
+ return value as BuyerPaymentEnum;
54
+ }
55
+
@@ -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
+