@randock/nameshift-api-client 0.0.459 → 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 (81) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +3 -3
  3. package/dist/apis/DomainsApi.d.ts +43 -9
  4. package/dist/apis/DomainsApi.js +156 -10
  5. package/dist/apis/JobsApi.d.ts +51 -0
  6. package/dist/apis/JobsApi.js +222 -0
  7. package/dist/apis/LeadsApi.d.ts +14 -1
  8. package/dist/apis/LeadsApi.js +63 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/ApplyDomainEditInput.d.ts +40 -0
  12. package/dist/models/ApplyDomainEditInput.js +53 -0
  13. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  14. package/dist/models/BuyerNotificationDto.js +1 -0
  15. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  16. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  17. package/dist/models/DomainEditPreviewDto.d.ts +83 -0
  18. package/dist/models/DomainEditPreviewDto.js +84 -0
  19. package/dist/models/DomainEditPreviewRowDto.d.ts +60 -0
  20. package/dist/models/DomainEditPreviewRowDto.js +67 -0
  21. package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
  22. package/dist/models/FeatureFlagListItemDto.js +3 -1
  23. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
  24. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
  25. package/dist/models/JobDto.d.ts +101 -0
  26. package/dist/models/JobDto.js +98 -0
  27. package/dist/models/JobFailureDto.d.ts +38 -0
  28. package/dist/models/JobFailureDto.js +55 -0
  29. package/dist/models/JobStatus.d.ts +27 -0
  30. package/dist/models/JobStatus.js +53 -0
  31. package/dist/models/JobType.d.ts +24 -0
  32. package/dist/models/JobType.js +50 -0
  33. package/dist/models/LeadEnrichmentCompanyDto.d.ts +68 -0
  34. package/dist/models/LeadEnrichmentCompanyDto.js +75 -0
  35. package/dist/models/LeadEnrichmentDto.d.ts +72 -0
  36. package/dist/models/LeadEnrichmentDto.js +79 -0
  37. package/dist/models/LeadEnrichmentEmailDto.d.ts +44 -0
  38. package/dist/models/LeadEnrichmentEmailDto.js +59 -0
  39. package/dist/models/LeadEnrichmentIpDto.d.ts +62 -0
  40. package/dist/models/LeadEnrichmentIpDto.js +71 -0
  41. package/dist/models/LeadEnrichmentWebResultDto.d.ts +44 -0
  42. package/dist/models/LeadEnrichmentWebResultDto.js +59 -0
  43. package/dist/models/ListJobs200Response.d.ts +47 -0
  44. package/dist/models/ListJobs200Response.js +62 -0
  45. package/dist/models/PreviewDomainEditInput.d.ts +38 -0
  46. package/dist/models/PreviewDomainEditInput.js +53 -0
  47. package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
  48. package/dist/models/PrivateAccountGetMeResponse.js +3 -1
  49. package/dist/models/UserNotificationDto.d.ts +1 -0
  50. package/dist/models/UserNotificationDto.js +1 -0
  51. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  52. package/dist/models/UserNotificationListItemDto.js +1 -0
  53. package/dist/models/index.d.ts +14 -0
  54. package/dist/models/index.js +14 -0
  55. package/package.json +1 -1
  56. package/src/apis/DomainsApi.ts +154 -12
  57. package/src/apis/JobsApi.ts +163 -0
  58. package/src/apis/LeadsApi.ts +54 -0
  59. package/src/apis/index.ts +1 -0
  60. package/src/models/ApplyDomainEditInput.ts +74 -0
  61. package/src/models/BuyerNotificationDto.ts +1 -0
  62. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  63. package/src/models/DomainEditPreviewDto.ts +146 -0
  64. package/src/models/DomainEditPreviewRowDto.ts +102 -0
  65. package/src/models/FeatureFlagListItemDto.ts +3 -1
  66. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
  67. package/src/models/JobDto.ts +189 -0
  68. package/src/models/JobFailureDto.ts +75 -0
  69. package/src/models/JobStatus.ts +55 -0
  70. package/src/models/JobType.ts +52 -0
  71. package/src/models/LeadEnrichmentCompanyDto.ts +120 -0
  72. package/src/models/LeadEnrichmentDto.ts +149 -0
  73. package/src/models/LeadEnrichmentEmailDto.ts +84 -0
  74. package/src/models/LeadEnrichmentIpDto.ts +111 -0
  75. package/src/models/LeadEnrichmentWebResultDto.ts +84 -0
  76. package/src/models/ListJobs200Response.ts +106 -0
  77. package/src/models/PreviewDomainEditInput.ts +74 -0
  78. package/src/models/PrivateAccountGetMeResponse.ts +3 -1
  79. package/src/models/UserNotificationDto.ts +1 -0
  80. package/src/models/UserNotificationListItemDto.ts +1 -0
  81. package/src/models/index.ts +14 -0
@@ -0,0 +1,189 @@
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 { JobStatus } from './JobStatus';
17
+ import {
18
+ JobStatusFromJSON,
19
+ JobStatusFromJSONTyped,
20
+ JobStatusToJSON,
21
+ JobStatusToJSONTyped,
22
+ } from './JobStatus';
23
+ import type { JobType } from './JobType';
24
+ import {
25
+ JobTypeFromJSON,
26
+ JobTypeFromJSONTyped,
27
+ JobTypeToJSON,
28
+ JobTypeToJSONTyped,
29
+ } from './JobType';
30
+ import type { JobFailureDto } from './JobFailureDto';
31
+ import {
32
+ JobFailureDtoFromJSON,
33
+ JobFailureDtoFromJSONTyped,
34
+ JobFailureDtoToJSON,
35
+ JobFailureDtoToJSONTyped,
36
+ } from './JobFailureDto';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface JobDto
42
+ */
43
+ export interface JobDto {
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof JobDto
48
+ */
49
+ id: string;
50
+ /**
51
+ *
52
+ * @type {JobType}
53
+ * @memberof JobDto
54
+ */
55
+ type: JobType;
56
+ /**
57
+ *
58
+ * @type {JobStatus}
59
+ * @memberof JobDto
60
+ */
61
+ status: JobStatus;
62
+ /**
63
+ * How many items the job expects to touch. An estimate while it runs, exact once it has finished.
64
+ * @type {number}
65
+ * @memberof JobDto
66
+ */
67
+ total: number;
68
+ /**
69
+ *
70
+ * @type {number}
71
+ * @memberof JobDto
72
+ */
73
+ processed: number;
74
+ /**
75
+ *
76
+ * @type {number}
77
+ * @memberof JobDto
78
+ */
79
+ succeeded: number;
80
+ /**
81
+ * Items the job refused rather than applied, most often because the change would have left them invalid.
82
+ * @type {number}
83
+ * @memberof JobDto
84
+ */
85
+ failed: number;
86
+ /**
87
+ * The first few failures, for showing without a second request.
88
+ * @type {Array<JobFailureDto>}
89
+ * @memberof JobDto
90
+ */
91
+ failures: Array<JobFailureDto>;
92
+ /**
93
+ * Why the job as a whole stopped. Never a per-item problem.
94
+ * @type {string}
95
+ * @memberof JobDto
96
+ */
97
+ failureReason: string | null;
98
+ /**
99
+ *
100
+ * @type {Date}
101
+ * @memberof JobDto
102
+ */
103
+ createdAt: Date;
104
+ /**
105
+ *
106
+ * @type {Date}
107
+ * @memberof JobDto
108
+ */
109
+ startedAt: Date | null;
110
+ /**
111
+ *
112
+ * @type {Date}
113
+ * @memberof JobDto
114
+ */
115
+ finishedAt: Date | null;
116
+ }
117
+
118
+
119
+
120
+ /**
121
+ * Check if a given object implements the JobDto interface.
122
+ */
123
+ export function instanceOfJobDto(value: object): value is JobDto {
124
+ if (!('id' in value) || value['id'] === undefined) return false;
125
+ if (!('type' in value) || value['type'] === undefined) return false;
126
+ if (!('status' in value) || value['status'] === undefined) return false;
127
+ if (!('total' in value) || value['total'] === undefined) return false;
128
+ if (!('processed' in value) || value['processed'] === undefined) return false;
129
+ if (!('succeeded' in value) || value['succeeded'] === undefined) return false;
130
+ if (!('failed' in value) || value['failed'] === undefined) return false;
131
+ if (!('failures' in value) || value['failures'] === undefined) return false;
132
+ if (!('failureReason' in value) || value['failureReason'] === undefined) return false;
133
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
134
+ if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
135
+ if (!('finishedAt' in value) || value['finishedAt'] === undefined) return false;
136
+ return true;
137
+ }
138
+
139
+ export function JobDtoFromJSON(json: any): JobDto {
140
+ return JobDtoFromJSONTyped(json, false);
141
+ }
142
+
143
+ export function JobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDto {
144
+ if (json == null) {
145
+ return json;
146
+ }
147
+ return {
148
+
149
+ 'id': json['id'],
150
+ 'type': JobTypeFromJSON(json['type']),
151
+ 'status': JobStatusFromJSON(json['status']),
152
+ 'total': json['total'],
153
+ 'processed': json['processed'],
154
+ 'succeeded': json['succeeded'],
155
+ 'failed': json['failed'],
156
+ 'failures': ((json['failures'] as Array<any>).map(JobFailureDtoFromJSON)),
157
+ 'failureReason': json['failureReason'],
158
+ 'createdAt': (new Date(json['createdAt'])),
159
+ 'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
160
+ 'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
161
+ };
162
+ }
163
+
164
+ export function JobDtoToJSON(json: any): JobDto {
165
+ return JobDtoToJSONTyped(json, false);
166
+ }
167
+
168
+ export function JobDtoToJSONTyped(value?: JobDto | null, ignoreDiscriminator: boolean = false): any {
169
+ if (value == null) {
170
+ return value;
171
+ }
172
+
173
+ return {
174
+
175
+ 'id': value['id'],
176
+ 'type': JobTypeToJSON(value['type']),
177
+ 'status': JobStatusToJSON(value['status']),
178
+ 'total': value['total'],
179
+ 'processed': value['processed'],
180
+ 'succeeded': value['succeeded'],
181
+ 'failed': value['failed'],
182
+ 'failures': ((value['failures'] as Array<any>).map(JobFailureDtoToJSON)),
183
+ 'failureReason': value['failureReason'],
184
+ 'createdAt': ((value['createdAt']).toISOString()),
185
+ 'startedAt': (value['startedAt'] == null ? null : (value['startedAt'] as any).toISOString()),
186
+ 'finishedAt': (value['finishedAt'] == null ? null : (value['finishedAt'] as any).toISOString()),
187
+ };
188
+ }
189
+
@@ -0,0 +1,75 @@
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 JobFailureDto
20
+ */
21
+ export interface JobFailureDto {
22
+ /**
23
+ * What the failure was about — a domain name, for a bulk edit.
24
+ * @type {string}
25
+ * @memberof JobFailureDto
26
+ */
27
+ subject: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof JobFailureDto
32
+ */
33
+ reason: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the JobFailureDto interface.
38
+ */
39
+ export function instanceOfJobFailureDto(value: object): value is JobFailureDto {
40
+ if (!('subject' in value) || value['subject'] === undefined) return false;
41
+ if (!('reason' in value) || value['reason'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function JobFailureDtoFromJSON(json: any): JobFailureDto {
46
+ return JobFailureDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function JobFailureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobFailureDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'subject': json['subject'],
56
+ 'reason': json['reason'],
57
+ };
58
+ }
59
+
60
+ export function JobFailureDtoToJSON(json: any): JobFailureDto {
61
+ return JobFailureDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function JobFailureDtoToJSONTyped(value?: JobFailureDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'subject': value['subject'],
72
+ 'reason': value['reason'],
73
+ };
74
+ }
75
+
@@ -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
+ *
18
+ * @export
19
+ */
20
+ export const JobStatus = {
21
+ QUEUED: 'queued',
22
+ RUNNING: 'running',
23
+ FINISHED: 'finished',
24
+ FAILED: 'failed'
25
+ } as const;
26
+ export type JobStatus = typeof JobStatus[keyof typeof JobStatus];
27
+
28
+
29
+ export function instanceOfJobStatus(value: any): boolean {
30
+ for (const key in JobStatus) {
31
+ if (Object.prototype.hasOwnProperty.call(JobStatus, key)) {
32
+ if (JobStatus[key as keyof typeof JobStatus] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function JobStatusFromJSON(json: any): JobStatus {
41
+ return JobStatusFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function JobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobStatus {
45
+ return json as JobStatus;
46
+ }
47
+
48
+ export function JobStatusToJSON(value?: JobStatus | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function JobStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): JobStatus {
53
+ return value as JobStatus;
54
+ }
55
+
@@ -0,0 +1,52 @@
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
+ *
18
+ * @export
19
+ */
20
+ export const JobType = {
21
+ BULK_EDIT_DOMAINS: 'bulk_edit_domains'
22
+ } as const;
23
+ export type JobType = typeof JobType[keyof typeof JobType];
24
+
25
+
26
+ export function instanceOfJobType(value: any): boolean {
27
+ for (const key in JobType) {
28
+ if (Object.prototype.hasOwnProperty.call(JobType, key)) {
29
+ if (JobType[key as keyof typeof JobType] === value) {
30
+ return true;
31
+ }
32
+ }
33
+ }
34
+ return false;
35
+ }
36
+
37
+ export function JobTypeFromJSON(json: any): JobType {
38
+ return JobTypeFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function JobTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobType {
42
+ return json as JobType;
43
+ }
44
+
45
+ export function JobTypeToJSON(value?: JobType | null): any {
46
+ return value as any;
47
+ }
48
+
49
+ export function JobTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): JobType {
50
+ return value as JobType;
51
+ }
52
+
@@ -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
+