n8n-nodes-coresignal-api 1.0.0 → 1.0.2
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.
|
@@ -33,26 +33,22 @@ class Coresignal {
|
|
|
33
33
|
noDataExpression: true,
|
|
34
34
|
options: [
|
|
35
35
|
{
|
|
36
|
-
|
|
37
|
-
name: 'employee data',
|
|
36
|
+
name: 'Employee Data',
|
|
38
37
|
value: 'employee',
|
|
39
38
|
description: 'Access employee data and profiles',
|
|
40
39
|
},
|
|
41
40
|
{
|
|
42
|
-
|
|
43
|
-
name: 'company data',
|
|
41
|
+
name: 'Company Data',
|
|
44
42
|
value: 'company',
|
|
45
43
|
description: 'Access company data and profiles',
|
|
46
44
|
},
|
|
47
45
|
{
|
|
48
|
-
|
|
49
|
-
name: 'job data',
|
|
46
|
+
name: 'Job Data',
|
|
50
47
|
value: 'job',
|
|
51
48
|
description: 'Access jobs data',
|
|
52
49
|
},
|
|
53
50
|
{
|
|
54
|
-
|
|
55
|
-
name: 'employee posts',
|
|
51
|
+
name: 'Employee Posts',
|
|
56
52
|
value: 'post',
|
|
57
53
|
description: 'Access employee posts data',
|
|
58
54
|
},
|
|
@@ -73,29 +69,25 @@ class Coresignal {
|
|
|
73
69
|
},
|
|
74
70
|
options: [
|
|
75
71
|
{
|
|
76
|
-
|
|
77
|
-
name: 'collect by ID',
|
|
72
|
+
name: 'Collect by ID',
|
|
78
73
|
value: 'collect_by_id',
|
|
79
74
|
description: 'Retrieve a full company profile using a company ID',
|
|
80
75
|
action: 'Retrieve a full company profile using a company ID',
|
|
81
76
|
},
|
|
82
77
|
{
|
|
83
|
-
|
|
84
|
-
name: 'collect by slug',
|
|
78
|
+
name: 'Collect by Slug',
|
|
85
79
|
value: 'collect_by_slug',
|
|
86
80
|
description: 'Retrieve a full company profile using a URL slug',
|
|
87
81
|
action: 'Retrieve a full company profile using a URL slug',
|
|
88
82
|
},
|
|
89
83
|
{
|
|
90
|
-
|
|
91
|
-
name: 'enrich by website',
|
|
84
|
+
name: 'Enrich by Website',
|
|
92
85
|
value: 'enrich',
|
|
93
86
|
description: 'Enrich company data using a website URL',
|
|
94
87
|
action: 'Enrich company data using a website URL',
|
|
95
88
|
},
|
|
96
89
|
{
|
|
97
|
-
|
|
98
|
-
name: 'search with Elasticsearch DSL',
|
|
90
|
+
name: 'Search with Elasticsearch DSL',
|
|
99
91
|
value: 'search_es_dsl',
|
|
100
92
|
description: 'Search companies using an Elasticsearch DSL query',
|
|
101
93
|
action: 'Search companies using an elasticsearch dsl query',
|
|
@@ -116,22 +108,19 @@ class Coresignal {
|
|
|
116
108
|
},
|
|
117
109
|
options: [
|
|
118
110
|
{
|
|
119
|
-
|
|
120
|
-
name: 'collect by ID',
|
|
111
|
+
name: 'Collect by ID',
|
|
121
112
|
value: 'collect_by_id',
|
|
122
113
|
description: 'Retrieve a full employee profile using an employee ID',
|
|
123
114
|
action: 'Retrieve a full employee profile using an employee ID',
|
|
124
115
|
},
|
|
125
116
|
{
|
|
126
|
-
|
|
127
|
-
name: 'collect by slug',
|
|
117
|
+
name: 'Collect by Slug',
|
|
128
118
|
value: 'collect_by_slug',
|
|
129
119
|
description: 'Retrieve a full employee profile using a URL slug',
|
|
130
120
|
action: 'Retrieve a full employee profile using a URL slug',
|
|
131
121
|
},
|
|
132
122
|
{
|
|
133
|
-
|
|
134
|
-
name: 'search with Elasticsearch DSL',
|
|
123
|
+
name: 'Search with Elasticsearch DSL',
|
|
135
124
|
value: 'search_es_dsl',
|
|
136
125
|
description: 'Search employees using an Elasticsearch DSL query',
|
|
137
126
|
action: 'Search employees using an elasticsearch dsl query',
|
|
@@ -152,15 +141,13 @@ class Coresignal {
|
|
|
152
141
|
},
|
|
153
142
|
options: [
|
|
154
143
|
{
|
|
155
|
-
|
|
156
|
-
name: 'collect by ID',
|
|
144
|
+
name: 'Collect by ID',
|
|
157
145
|
value: 'collect_by_id',
|
|
158
146
|
description: 'Retrieve a full job posting using a job ID',
|
|
159
147
|
action: 'Retrieve a full job posting using a job ID',
|
|
160
148
|
},
|
|
161
149
|
{
|
|
162
|
-
|
|
163
|
-
name: 'search with Elasticsearch DSL',
|
|
150
|
+
name: 'Search with Elasticsearch DSL',
|
|
164
151
|
value: 'search_es_dsl',
|
|
165
152
|
description: 'Search jobs using an Elasticsearch DSL query',
|
|
166
153
|
action: 'Search jobs using an elasticsearch dsl query',
|
|
@@ -181,15 +168,13 @@ class Coresignal {
|
|
|
181
168
|
},
|
|
182
169
|
options: [
|
|
183
170
|
{
|
|
184
|
-
|
|
185
|
-
name: 'collect by ID',
|
|
171
|
+
name: 'Collect by ID',
|
|
186
172
|
value: 'collect_by_id',
|
|
187
173
|
description: 'Retrieve a full employee post using a post ID',
|
|
188
174
|
action: 'Retrieve a full employee post using a post ID',
|
|
189
175
|
},
|
|
190
176
|
{
|
|
191
|
-
|
|
192
|
-
name: 'search with Elasticsearch DSL',
|
|
177
|
+
name: 'Search with Elasticsearch DSL',
|
|
193
178
|
value: 'search_es_dsl',
|
|
194
179
|
description: 'Search employee posts using an Elasticsearch DSL query',
|
|
195
180
|
action: 'Search employee posts using an elasticsearch dsl query',
|
|
@@ -245,8 +230,7 @@ class Coresignal {
|
|
|
245
230
|
},
|
|
246
231
|
// ID Parameter - Post
|
|
247
232
|
{
|
|
248
|
-
|
|
249
|
-
displayName: 'Employee post ID',
|
|
233
|
+
displayName: 'Employee Post ID',
|
|
250
234
|
name: 'postId',
|
|
251
235
|
type: 'string',
|
|
252
236
|
required: true,
|
|
@@ -261,8 +245,7 @@ class Coresignal {
|
|
|
261
245
|
},
|
|
262
246
|
// Shorthand Name Parameter - Employee
|
|
263
247
|
{
|
|
264
|
-
|
|
265
|
-
displayName: 'URL slug',
|
|
248
|
+
displayName: 'URL Slug',
|
|
266
249
|
name: 'slug',
|
|
267
250
|
type: 'string',
|
|
268
251
|
required: true,
|
|
@@ -278,8 +261,7 @@ class Coresignal {
|
|
|
278
261
|
},
|
|
279
262
|
// Shorthand Name Parameter - Company
|
|
280
263
|
{
|
|
281
|
-
|
|
282
|
-
displayName: 'URL slug',
|
|
264
|
+
displayName: 'URL Slug',
|
|
283
265
|
name: 'slug',
|
|
284
266
|
type: 'string',
|
|
285
267
|
required: true,
|
|
@@ -311,8 +293,7 @@ class Coresignal {
|
|
|
311
293
|
},
|
|
312
294
|
// Fields Parameter - Employee
|
|
313
295
|
{
|
|
314
|
-
|
|
315
|
-
displayName: 'Data fields (optional)',
|
|
296
|
+
displayName: 'Data Fields (Optional)',
|
|
316
297
|
name: 'fields',
|
|
317
298
|
type: 'string',
|
|
318
299
|
displayOptions: {
|
|
@@ -328,8 +309,7 @@ class Coresignal {
|
|
|
328
309
|
},
|
|
329
310
|
// Fields Parameter - Company
|
|
330
311
|
{
|
|
331
|
-
|
|
332
|
-
displayName: 'Data fields (optional)',
|
|
312
|
+
displayName: 'Data Fields (Optional)',
|
|
333
313
|
name: 'fields',
|
|
334
314
|
type: 'string',
|
|
335
315
|
displayOptions: {
|
|
@@ -345,8 +325,7 @@ class Coresignal {
|
|
|
345
325
|
},
|
|
346
326
|
// Fields Parameter - Jobs
|
|
347
327
|
{
|
|
348
|
-
|
|
349
|
-
displayName: 'Data fields (optional)',
|
|
328
|
+
displayName: 'Data Fields (Optional)',
|
|
350
329
|
name: 'fields',
|
|
351
330
|
type: 'string',
|
|
352
331
|
displayOptions: {
|
|
@@ -362,8 +341,7 @@ class Coresignal {
|
|
|
362
341
|
},
|
|
363
342
|
// Fields Parameter - Posts
|
|
364
343
|
{
|
|
365
|
-
|
|
366
|
-
displayName: 'Data fields (optional)',
|
|
344
|
+
displayName: 'Data Fields (Optional)',
|
|
367
345
|
name: 'fields',
|
|
368
346
|
type: 'string',
|
|
369
347
|
displayOptions: {
|
|
@@ -379,8 +357,7 @@ class Coresignal {
|
|
|
379
357
|
},
|
|
380
358
|
// Elasticsearch DSL Query - Employee
|
|
381
359
|
{
|
|
382
|
-
|
|
383
|
-
displayName: 'Elasticsearch DSL query',
|
|
360
|
+
displayName: 'Elasticsearch DSL Query',
|
|
384
361
|
name: 'esQuery',
|
|
385
362
|
type: 'json',
|
|
386
363
|
required: true,
|
|
@@ -396,8 +373,7 @@ class Coresignal {
|
|
|
396
373
|
},
|
|
397
374
|
// Elasticsearch DSL Query - Company
|
|
398
375
|
{
|
|
399
|
-
|
|
400
|
-
displayName: 'Elasticsearch DSL query',
|
|
376
|
+
displayName: 'Elasticsearch DSL Query',
|
|
401
377
|
name: 'esQuery',
|
|
402
378
|
type: 'json',
|
|
403
379
|
required: true,
|
|
@@ -413,8 +389,7 @@ class Coresignal {
|
|
|
413
389
|
},
|
|
414
390
|
// Elasticsearch DSL Query - Job
|
|
415
391
|
{
|
|
416
|
-
|
|
417
|
-
displayName: 'Elasticsearch DSL query',
|
|
392
|
+
displayName: 'Elasticsearch DSL Query',
|
|
418
393
|
name: 'esQuery',
|
|
419
394
|
type: 'json',
|
|
420
395
|
required: true,
|
|
@@ -430,8 +405,7 @@ class Coresignal {
|
|
|
430
405
|
},
|
|
431
406
|
// Elasticsearch DSL Query - Post
|
|
432
407
|
{
|
|
433
|
-
|
|
434
|
-
displayName: 'Elasticsearch DSL query',
|
|
408
|
+
displayName: 'Elasticsearch DSL Query',
|
|
435
409
|
name: 'esQuery',
|
|
436
410
|
type: 'json',
|
|
437
411
|
required: true,
|
|
@@ -446,8 +420,7 @@ class Coresignal {
|
|
|
446
420
|
},
|
|
447
421
|
// Preview Mode (not available for posts)
|
|
448
422
|
{
|
|
449
|
-
|
|
450
|
-
displayName: 'Preview mode',
|
|
423
|
+
displayName: 'Preview Mode',
|
|
451
424
|
name: 'preview',
|
|
452
425
|
type: 'boolean',
|
|
453
426
|
default: false,
|
|
@@ -561,7 +534,7 @@ class Coresignal {
|
|
|
561
534
|
catch (error) {
|
|
562
535
|
if (this.continueOnFail()) {
|
|
563
536
|
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
564
|
-
returnData.push({ json: { error: errorMessage } });
|
|
537
|
+
returnData.push({ json: { error: errorMessage }, pairedItem: { item: i } });
|
|
565
538
|
continue;
|
|
566
539
|
}
|
|
567
540
|
throw new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex: i });
|