@linkedcampai/n8n-nodes-linkedcamp 0.0.0-stage → 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +141 -2
- package/dist/credentials/LinkedcampApi.credentials.d.ts +10 -0
- package/dist/credentials/LinkedcampApi.credentials.js +61 -0
- package/dist/credentials/LinkedcampApi.credentials.js.map +1 -0
- package/dist/nodes/Linkedcamp/Linkedcamp.node.d.ts +17 -0
- package/dist/nodes/Linkedcamp/Linkedcamp.node.js +132 -0
- package/dist/nodes/Linkedcamp/Linkedcamp.node.js.map +1 -0
- package/dist/nodes/Linkedcamp/Linkedcamp.node.json +18 -0
- package/dist/nodes/Linkedcamp/LinkedcampPollTrigger.node.d.ts +14 -0
- package/dist/nodes/Linkedcamp/LinkedcampPollTrigger.node.js +132 -0
- package/dist/nodes/Linkedcamp/LinkedcampPollTrigger.node.js.map +1 -0
- package/dist/nodes/Linkedcamp/LinkedcampPollTrigger.node.json +18 -0
- package/dist/nodes/Linkedcamp/LinkedcampTrigger.node.d.ts +21 -0
- package/dist/nodes/Linkedcamp/LinkedcampTrigger.node.js +218 -0
- package/dist/nodes/Linkedcamp/LinkedcampTrigger.node.js.map +1 -0
- package/dist/nodes/Linkedcamp/LinkedcampTrigger.node.json +18 -0
- package/dist/nodes/Linkedcamp/descriptions/account.d.ts +10 -0
- package/dist/nodes/Linkedcamp/descriptions/account.js +136 -0
- package/dist/nodes/Linkedcamp/descriptions/account.js.map +1 -0
- package/dist/nodes/Linkedcamp/descriptions/blacklist.d.ts +5 -0
- package/dist/nodes/Linkedcamp/descriptions/blacklist.js +66 -0
- package/dist/nodes/Linkedcamp/descriptions/blacklist.js.map +1 -0
- package/dist/nodes/Linkedcamp/descriptions/campaign.d.ts +5 -0
- package/dist/nodes/Linkedcamp/descriptions/campaign.js +276 -0
- package/dist/nodes/Linkedcamp/descriptions/campaign.js.map +1 -0
- package/dist/nodes/Linkedcamp/descriptions/conversation.d.ts +5 -0
- package/dist/nodes/Linkedcamp/descriptions/conversation.js +293 -0
- package/dist/nodes/Linkedcamp/descriptions/conversation.js.map +1 -0
- package/dist/nodes/Linkedcamp/descriptions/crm.d.ts +11 -0
- package/dist/nodes/Linkedcamp/descriptions/crm.js +237 -0
- package/dist/nodes/Linkedcamp/descriptions/crm.js.map +1 -0
- package/dist/nodes/Linkedcamp/descriptions/lead.d.ts +5 -0
- package/dist/nodes/Linkedcamp/descriptions/lead.js +482 -0
- package/dist/nodes/Linkedcamp/descriptions/lead.js.map +1 -0
- package/dist/nodes/Linkedcamp/descriptions/tag.d.ts +5 -0
- package/dist/nodes/Linkedcamp/descriptions/tag.js +79 -0
- package/dist/nodes/Linkedcamp/descriptions/tag.js.map +1 -0
- package/dist/nodes/Linkedcamp/descriptions/types.d.ts +4 -0
- package/dist/nodes/Linkedcamp/descriptions/types.js +3 -0
- package/dist/nodes/Linkedcamp/descriptions/types.js.map +1 -0
- package/dist/nodes/Linkedcamp/linkedcamp.svg +1 -0
- package/dist/nodes/Linkedcamp/shared.d.ts +45 -0
- package/dist/nodes/Linkedcamp/shared.js +367 -0
- package/dist/nodes/Linkedcamp/shared.js.map +1 -0
- package/dist/nodes/Linkedcamp/transport/mcp.d.ts +16 -0
- package/dist/nodes/Linkedcamp/transport/mcp.js +88 -0
- package/dist/nodes/Linkedcamp/transport/mcp.js.map +1 -0
- package/dist/nodes/Linkedcamp/transport/mcpClient.d.ts +83 -0
- package/dist/nodes/Linkedcamp/transport/mcpClient.js +264 -0
- package/dist/nodes/Linkedcamp/transport/mcpClient.js.map +1 -0
- package/package.json +64 -4
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.leadHandlers = exports.leadFields = exports.leadOperations = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const mcp_1 = require("../transport/mcp");
|
|
6
|
+
const shared_1 = require("../shared");
|
|
7
|
+
const show = (operation) => ({ resource: ['lead'], operation });
|
|
8
|
+
exports.leadOperations = {
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: { show: { resource: ['lead'] } },
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Add Many to Campaign',
|
|
17
|
+
value: 'addManyToCampaign',
|
|
18
|
+
description: 'Upload a list of leads into a campaign that is not running yet. Rows without a LinkedIn URL or email are skipped.',
|
|
19
|
+
action: 'Add many leads to a campaign',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Add Note',
|
|
23
|
+
value: 'addNote',
|
|
24
|
+
description: 'Add an internal note to a lead. Notes are never sent to the lead.',
|
|
25
|
+
action: 'Add a note to a lead',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'Add to Blacklist',
|
|
29
|
+
value: 'addToBlacklist',
|
|
30
|
+
description: 'Blacklist a lead permanently across the whole account. No campaign will contact them again.',
|
|
31
|
+
action: 'Add a lead to the blacklist',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Add to Campaign',
|
|
35
|
+
value: 'addToCampaign',
|
|
36
|
+
description: 'Add one lead to a campaign by LinkedIn Profile URL or email',
|
|
37
|
+
action: 'Add a lead to a campaign',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Get',
|
|
41
|
+
value: 'get',
|
|
42
|
+
description: 'Retrieve one lead with its activity',
|
|
43
|
+
action: 'Get a lead',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Get Many',
|
|
47
|
+
value: 'getMany',
|
|
48
|
+
description: 'Retrieve a list of leads',
|
|
49
|
+
action: 'Get many leads',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'Update',
|
|
53
|
+
value: 'update',
|
|
54
|
+
description: 'Update the details or flags of a lead',
|
|
55
|
+
action: 'Update a lead',
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
default: 'addToCampaign',
|
|
59
|
+
};
|
|
60
|
+
const UPLOAD_TARGETS = [
|
|
61
|
+
{ name: 'Custom Variable (Merge Field)', value: 'customVariable' },
|
|
62
|
+
{ name: 'Email', value: 'email' },
|
|
63
|
+
{ name: 'First Name', value: 'firstName' },
|
|
64
|
+
{ name: 'Full Name', value: 'fullName' },
|
|
65
|
+
{ name: 'Last Name', value: 'lastName' },
|
|
66
|
+
{ name: 'LinkedIn Profile URL', value: 'profileUrl' },
|
|
67
|
+
{ name: 'Personalization', value: 'personalization' },
|
|
68
|
+
{ name: 'Phone', value: 'phone' },
|
|
69
|
+
{ name: 'Recruiter URL', value: 'recruiterUrl' },
|
|
70
|
+
{ name: 'Sales Navigator URL', value: 'salesNavUrl' },
|
|
71
|
+
{ name: 'Website', value: 'website' },
|
|
72
|
+
];
|
|
73
|
+
const leadDetailFields = [
|
|
74
|
+
{ displayName: 'Email', name: 'email', type: 'string', placeholder: 'e.g. jane@example.com', default: '' },
|
|
75
|
+
{ displayName: 'First Name', name: 'firstName', type: 'string', default: '', placeholder: 'e.g. Jane' },
|
|
76
|
+
{ displayName: 'Job Title', name: 'designation', type: 'string', default: '', placeholder: 'e.g. Head of Growth' },
|
|
77
|
+
{ displayName: 'Last Name', name: 'lastName', type: 'string', default: '', placeholder: 'e.g. Doe' },
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Personalization',
|
|
80
|
+
name: 'personalization',
|
|
81
|
+
type: 'string',
|
|
82
|
+
typeOptions: { rows: 3 },
|
|
83
|
+
default: '',
|
|
84
|
+
description: 'Text available to the sequence as a merge field',
|
|
85
|
+
},
|
|
86
|
+
{ displayName: 'Phone', name: 'phone', type: 'string', default: '' },
|
|
87
|
+
{ displayName: 'Website', name: 'website', type: 'string', default: '', placeholder: 'e.g. https://example.com' },
|
|
88
|
+
];
|
|
89
|
+
exports.leadFields = [
|
|
90
|
+
(0, shared_1.locatorField)({
|
|
91
|
+
name: 'campaignId',
|
|
92
|
+
displayName: 'Campaign',
|
|
93
|
+
searchMethod: 'searchCampaigns',
|
|
94
|
+
show: show(['addToCampaign', 'addManyToCampaign']),
|
|
95
|
+
}),
|
|
96
|
+
{
|
|
97
|
+
displayName: 'LinkedIn Profile URL',
|
|
98
|
+
name: 'profileLink',
|
|
99
|
+
type: 'string',
|
|
100
|
+
default: '',
|
|
101
|
+
placeholder: 'e.g. https://www.linkedin.com/in/jane-doe',
|
|
102
|
+
description: 'Required unless an email is given',
|
|
103
|
+
displayOptions: { show: show(['addToCampaign']) },
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
displayName: 'Email',
|
|
107
|
+
name: 'email',
|
|
108
|
+
type: 'string',
|
|
109
|
+
default: '',
|
|
110
|
+
placeholder: 'e.g. jane@example.com',
|
|
111
|
+
description: 'Required unless a LinkedIn Profile URL is given',
|
|
112
|
+
displayOptions: { show: show(['addToCampaign']) },
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
displayName: 'Additional Fields',
|
|
116
|
+
name: 'additionalFields',
|
|
117
|
+
type: 'collection',
|
|
118
|
+
placeholder: 'Add Field',
|
|
119
|
+
default: {},
|
|
120
|
+
displayOptions: { show: show(['addToCampaign']) },
|
|
121
|
+
options: [
|
|
122
|
+
shared_1.customFieldsCollection,
|
|
123
|
+
{ displayName: 'First Name', name: 'firstName', type: 'string', default: '', placeholder: 'e.g. Jane' },
|
|
124
|
+
{ displayName: 'Full Name', name: 'fullName', type: 'string', default: '', placeholder: 'e.g. Jane Doe' },
|
|
125
|
+
{ displayName: 'Job Title', name: 'designation', type: 'string', default: '', placeholder: 'e.g. Head of Growth' },
|
|
126
|
+
{ displayName: 'Last Name', name: 'lastName', type: 'string', default: '', placeholder: 'e.g. Doe' },
|
|
127
|
+
{ displayName: 'Location', name: 'location', type: 'string', default: '', placeholder: 'e.g. London, United Kingdom' },
|
|
128
|
+
{
|
|
129
|
+
displayName: 'Personalization',
|
|
130
|
+
name: 'personalization',
|
|
131
|
+
type: 'string',
|
|
132
|
+
typeOptions: { rows: 3 },
|
|
133
|
+
default: '',
|
|
134
|
+
description: 'Text available to the sequence as a merge field',
|
|
135
|
+
},
|
|
136
|
+
{ displayName: 'Phone', name: 'phone', type: 'string', default: '' },
|
|
137
|
+
{
|
|
138
|
+
displayName: 'Recruiter URL',
|
|
139
|
+
name: 'recruiterLink',
|
|
140
|
+
type: 'string',
|
|
141
|
+
default: '',
|
|
142
|
+
placeholder: 'e.g. https://www.linkedin.com/talent/profile/AEMAA...',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
displayName: 'Sales Navigator URL',
|
|
146
|
+
name: 'salesNavLink',
|
|
147
|
+
type: 'string',
|
|
148
|
+
default: '',
|
|
149
|
+
placeholder: 'e.g. https://www.linkedin.com/sales/lead/ACwAA...',
|
|
150
|
+
},
|
|
151
|
+
{ displayName: 'Website', name: 'website', type: 'string', default: '', placeholder: 'e.g. https://example.com' },
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
displayName: 'Rows Source',
|
|
156
|
+
name: 'rowsSource',
|
|
157
|
+
type: 'options',
|
|
158
|
+
default: 'items',
|
|
159
|
+
displayOptions: { show: show(['addManyToCampaign']) },
|
|
160
|
+
options: [
|
|
161
|
+
{
|
|
162
|
+
name: 'Input Items',
|
|
163
|
+
value: 'items',
|
|
164
|
+
description: 'Use every input item as one row and upload them in a single call',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: 'JSON',
|
|
168
|
+
value: 'json',
|
|
169
|
+
description: 'Give the rows as a JSON array of objects',
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
displayName: 'Rows (JSON)',
|
|
175
|
+
name: 'rowsJson',
|
|
176
|
+
type: 'json',
|
|
177
|
+
default: '[]',
|
|
178
|
+
required: true,
|
|
179
|
+
description: 'Array of row objects keyed by the column names mapped below (max 5,000 rows)',
|
|
180
|
+
displayOptions: { show: { ...show(['addManyToCampaign']), rowsSource: ['json'] } },
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
displayName: 'Column Mapping',
|
|
184
|
+
name: 'header',
|
|
185
|
+
type: 'fixedCollection',
|
|
186
|
+
typeOptions: { multipleValues: true },
|
|
187
|
+
required: true,
|
|
188
|
+
default: {},
|
|
189
|
+
placeholder: 'Add Column',
|
|
190
|
+
description: 'Map each column in the rows to a Linkedcamp field',
|
|
191
|
+
displayOptions: { show: show(['addManyToCampaign']) },
|
|
192
|
+
options: [
|
|
193
|
+
{
|
|
194
|
+
displayName: 'Column',
|
|
195
|
+
name: 'column',
|
|
196
|
+
values: [
|
|
197
|
+
{
|
|
198
|
+
displayName: 'Column Name',
|
|
199
|
+
name: 'name',
|
|
200
|
+
type: 'string',
|
|
201
|
+
default: '',
|
|
202
|
+
placeholder: 'e.g. linkedin_url',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
displayName: 'Linkedcamp Field',
|
|
206
|
+
name: 'field',
|
|
207
|
+
type: 'options',
|
|
208
|
+
default: 'profileUrl',
|
|
209
|
+
options: UPLOAD_TARGETS,
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
displayName: 'Options',
|
|
217
|
+
name: 'options',
|
|
218
|
+
type: 'collection',
|
|
219
|
+
placeholder: 'Add Option',
|
|
220
|
+
default: {},
|
|
221
|
+
displayOptions: { show: show(['addManyToCampaign']) },
|
|
222
|
+
options: [
|
|
223
|
+
{
|
|
224
|
+
displayName: 'Remove Duplicates',
|
|
225
|
+
name: 'removeDuplicates',
|
|
226
|
+
type: 'boolean',
|
|
227
|
+
default: true,
|
|
228
|
+
description: 'Whether to skip leads already in another active or paused campaign on this account',
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
(0, shared_1.locatorField)({
|
|
233
|
+
name: 'leadId',
|
|
234
|
+
displayName: 'Lead',
|
|
235
|
+
searchMethod: 'searchLeads',
|
|
236
|
+
show: show(['get', 'update', 'addNote', 'addToBlacklist']),
|
|
237
|
+
}),
|
|
238
|
+
{
|
|
239
|
+
displayName: 'Options',
|
|
240
|
+
name: 'options',
|
|
241
|
+
type: 'collection',
|
|
242
|
+
placeholder: 'Add Option',
|
|
243
|
+
default: {},
|
|
244
|
+
displayOptions: { show: show(['get']) },
|
|
245
|
+
options: [
|
|
246
|
+
{
|
|
247
|
+
displayName: 'Include Activities',
|
|
248
|
+
name: 'includeActivities',
|
|
249
|
+
type: 'boolean',
|
|
250
|
+
default: true,
|
|
251
|
+
description: 'Whether to include the sequence steps already run for this lead',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
displayName: 'Include Messages',
|
|
255
|
+
name: 'includeMessages',
|
|
256
|
+
type: 'boolean',
|
|
257
|
+
default: false,
|
|
258
|
+
description: 'Whether to include the conversation messages',
|
|
259
|
+
},
|
|
260
|
+
],
|
|
261
|
+
},
|
|
262
|
+
...(0, shared_1.returnAllAndLimit)(show(['getMany']), 1000),
|
|
263
|
+
{
|
|
264
|
+
displayName: 'Filters',
|
|
265
|
+
name: 'filters',
|
|
266
|
+
type: 'collection',
|
|
267
|
+
placeholder: 'Add Filter',
|
|
268
|
+
default: {},
|
|
269
|
+
displayOptions: { show: show(['getMany']) },
|
|
270
|
+
options: [
|
|
271
|
+
(0, shared_1.optionalLocator)('campaignId', 'Campaign', 'searchCampaigns', 'Leave empty to search all campaigns'),
|
|
272
|
+
...(0, shared_1.dateRangeFields)(),
|
|
273
|
+
{
|
|
274
|
+
displayName: 'Keyword',
|
|
275
|
+
name: 'keyword',
|
|
276
|
+
type: 'string',
|
|
277
|
+
default: '',
|
|
278
|
+
description: 'Match on name, email or company',
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
displayName: 'Status',
|
|
282
|
+
name: 'status',
|
|
283
|
+
type: 'options',
|
|
284
|
+
default: 'REPLIED',
|
|
285
|
+
options: (0, shared_1.enumOptions)(shared_1.LEAD_STATUSES),
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
displayName: 'Tag IDs',
|
|
289
|
+
name: 'tags',
|
|
290
|
+
type: 'string',
|
|
291
|
+
default: '',
|
|
292
|
+
placeholder: 'e.g. 64f1c2a9b7e4d10012ab34cd, 64f1c2a9b7e4d10012ab34ce',
|
|
293
|
+
description: 'Comma-separated tag IDs (from Tag → Get Many)',
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
},
|
|
297
|
+
(0, shared_1.simplifyField)(show(['getMany'])),
|
|
298
|
+
{
|
|
299
|
+
displayName: 'Update Fields',
|
|
300
|
+
name: 'updateFields',
|
|
301
|
+
type: 'collection',
|
|
302
|
+
placeholder: 'Add Field',
|
|
303
|
+
default: {},
|
|
304
|
+
displayOptions: { show: show(['update']) },
|
|
305
|
+
options: [
|
|
306
|
+
shared_1.customFieldsCollection,
|
|
307
|
+
...leadDetailFields,
|
|
308
|
+
{
|
|
309
|
+
displayName: 'Excluded',
|
|
310
|
+
name: 'isExcluded',
|
|
311
|
+
type: 'boolean',
|
|
312
|
+
default: false,
|
|
313
|
+
description: 'Whether the lead is excluded from the campaign',
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
displayName: 'Interested',
|
|
317
|
+
name: 'isInterested',
|
|
318
|
+
type: 'boolean',
|
|
319
|
+
default: false,
|
|
320
|
+
description: 'Whether the lead is marked as interested',
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
displayName: 'Paused',
|
|
324
|
+
name: 'paused',
|
|
325
|
+
type: 'boolean',
|
|
326
|
+
default: false,
|
|
327
|
+
description: 'Whether the sequence is paused for this lead',
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
displayName: 'Seen',
|
|
331
|
+
name: 'seen',
|
|
332
|
+
type: 'boolean',
|
|
333
|
+
default: false,
|
|
334
|
+
description: 'Whether the lead is marked as seen',
|
|
335
|
+
},
|
|
336
|
+
].sort((a, b) => a.displayName.localeCompare(b.displayName)),
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
displayName: 'Note',
|
|
340
|
+
name: 'content',
|
|
341
|
+
type: 'string',
|
|
342
|
+
typeOptions: { rows: 4 },
|
|
343
|
+
required: true,
|
|
344
|
+
default: '',
|
|
345
|
+
description: 'Internal note. It is never sent to the lead.',
|
|
346
|
+
displayOptions: { show: show(['addNote']) },
|
|
347
|
+
},
|
|
348
|
+
];
|
|
349
|
+
const SIMPLE_LEAD = [
|
|
350
|
+
'_id',
|
|
351
|
+
'fullName',
|
|
352
|
+
'designation',
|
|
353
|
+
'location',
|
|
354
|
+
'email',
|
|
355
|
+
'profileLink',
|
|
356
|
+
'status',
|
|
357
|
+
'tags',
|
|
358
|
+
'repliedAt',
|
|
359
|
+
'updatedAt',
|
|
360
|
+
];
|
|
361
|
+
exports.leadHandlers = {
|
|
362
|
+
async addToCampaign(ctx, client, i) {
|
|
363
|
+
const profileLink = ctx.getNodeParameter('profileLink', i, '').trim();
|
|
364
|
+
const email = ctx.getNodeParameter('email', i, '').trim();
|
|
365
|
+
if (!profileLink && !email) {
|
|
366
|
+
throw new n8n_workflow_1.NodeOperationError(ctx.getNode(), "Set 'LinkedIn Profile URL' or 'Email' to add a lead", {
|
|
367
|
+
itemIndex: i,
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
const extra = ctx.getNodeParameter('additionalFields', i, {});
|
|
371
|
+
const args = (0, mcp_1.compact)({
|
|
372
|
+
campaignId: (0, shared_1.locatorValue)(ctx, 'campaignId', i),
|
|
373
|
+
profileLink,
|
|
374
|
+
email,
|
|
375
|
+
firstName: extra.firstName,
|
|
376
|
+
lastName: extra.lastName,
|
|
377
|
+
fullName: extra.fullName,
|
|
378
|
+
designation: extra.designation,
|
|
379
|
+
location: extra.location,
|
|
380
|
+
phone: extra.phone,
|
|
381
|
+
website: extra.website,
|
|
382
|
+
salesNavLink: extra.salesNavLink,
|
|
383
|
+
recruiterLink: extra.recruiterLink,
|
|
384
|
+
personalization: extra.personalization,
|
|
385
|
+
customFields: (0, shared_1.keyValuePairs)(extra.customFields),
|
|
386
|
+
});
|
|
387
|
+
return (0, shared_1.asObject)(await (0, mcp_1.callTool)(ctx, client, 'lead_add', args, i));
|
|
388
|
+
},
|
|
389
|
+
async addManyToCampaign(ctx, client, i) {
|
|
390
|
+
var _a;
|
|
391
|
+
const columns = (0, shared_1.asArray)((0, shared_1.asObject)(ctx.getNodeParameter('header', i, {})).column);
|
|
392
|
+
const header = {};
|
|
393
|
+
for (const c of columns) {
|
|
394
|
+
const name = String((_a = c.name) !== null && _a !== void 0 ? _a : '').trim();
|
|
395
|
+
if (name)
|
|
396
|
+
header[name] = c.field;
|
|
397
|
+
}
|
|
398
|
+
if (!Object.keys(header).length) {
|
|
399
|
+
throw new n8n_workflow_1.NodeOperationError(ctx.getNode(), "Add at least one entry under 'Column Mapping'", {
|
|
400
|
+
itemIndex: i,
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
const source = ctx.getNodeParameter('rowsSource', i, 'items');
|
|
404
|
+
let rows;
|
|
405
|
+
if (source === 'json') {
|
|
406
|
+
const raw = ctx.getNodeParameter('rowsJson', i, '[]');
|
|
407
|
+
const parsed = typeof raw === 'string' ? JSON.parse(raw) : raw;
|
|
408
|
+
if (!Array.isArray(parsed)) {
|
|
409
|
+
throw new n8n_workflow_1.NodeOperationError(ctx.getNode(), "'Rows (JSON)' must be an array of objects", {
|
|
410
|
+
itemIndex: i,
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
rows = parsed;
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
rows = ctx.getInputData().map((item) => item.json);
|
|
417
|
+
}
|
|
418
|
+
if (rows.length > 5000) {
|
|
419
|
+
throw new n8n_workflow_1.NodeOperationError(ctx.getNode(), `Linkedcamp accepts at most 5,000 rows per upload; got ${rows.length}. Split the list with a Loop Over Items node.`, { itemIndex: i });
|
|
420
|
+
}
|
|
421
|
+
const options = ctx.getNodeParameter('options', i, {});
|
|
422
|
+
const args = (0, mcp_1.compact)({
|
|
423
|
+
campaignId: (0, shared_1.locatorValue)(ctx, 'campaignId', i),
|
|
424
|
+
header,
|
|
425
|
+
leads: rows,
|
|
426
|
+
removeDuplicates: options.removeDuplicates,
|
|
427
|
+
});
|
|
428
|
+
return (0, shared_1.asObject)(await (0, mcp_1.callTool)(ctx, client, 'campaign_upload_leads', args, i));
|
|
429
|
+
},
|
|
430
|
+
async get(ctx, client, i) {
|
|
431
|
+
const options = ctx.getNodeParameter('options', i, {});
|
|
432
|
+
const args = (0, mcp_1.compact)({
|
|
433
|
+
leadId: (0, shared_1.locatorValue)(ctx, 'leadId', i),
|
|
434
|
+
includeActivities: options.includeActivities,
|
|
435
|
+
includeMessages: options.includeMessages,
|
|
436
|
+
});
|
|
437
|
+
return (0, shared_1.asObject)(await (0, mcp_1.callTool)(ctx, client, 'lead_get', args, i));
|
|
438
|
+
},
|
|
439
|
+
async getMany(ctx, client, i) {
|
|
440
|
+
const filters = ctx.getNodeParameter('filters', i, {});
|
|
441
|
+
const returnAll = ctx.getNodeParameter('returnAll', i, false);
|
|
442
|
+
const limit = ctx.getNodeParameter('limit', i, 50);
|
|
443
|
+
const args = (0, mcp_1.compact)({
|
|
444
|
+
campaignId: (0, shared_1.nestedLocator)(filters.campaignId),
|
|
445
|
+
keyword: filters.keyword,
|
|
446
|
+
status: filters.status,
|
|
447
|
+
tags: (0, shared_1.splitIds)(filters.tags),
|
|
448
|
+
range: (0, mcp_1.buildRange)(filters.dateFrom, filters.dateTo),
|
|
449
|
+
});
|
|
450
|
+
const items = await (0, shared_1.collectPages)(ctx, client, 'lead_list', args, 'leads', {
|
|
451
|
+
returnAll,
|
|
452
|
+
limit,
|
|
453
|
+
pageSize: returnAll ? 100 : Math.min(100, limit),
|
|
454
|
+
pageSizeArg: 'pageSize',
|
|
455
|
+
i,
|
|
456
|
+
});
|
|
457
|
+
const simplify = ctx.getNodeParameter('simplify', i, true);
|
|
458
|
+
return simplify ? items.map((l) => (0, shared_1.pick)(l, SIMPLE_LEAD)) : items;
|
|
459
|
+
},
|
|
460
|
+
async update(ctx, client, i) {
|
|
461
|
+
const fields = ctx.getNodeParameter('updateFields', i, {});
|
|
462
|
+
const { customFields, ...rest } = fields;
|
|
463
|
+
const args = (0, mcp_1.compact)({
|
|
464
|
+
leadId: (0, shared_1.locatorValue)(ctx, 'leadId', i),
|
|
465
|
+
...rest,
|
|
466
|
+
customFields: (0, shared_1.keyValuePairs)(customFields),
|
|
467
|
+
});
|
|
468
|
+
return (0, shared_1.asObject)(await (0, mcp_1.callTool)(ctx, client, 'lead_update', args, i));
|
|
469
|
+
},
|
|
470
|
+
async addNote(ctx, client, i) {
|
|
471
|
+
const args = {
|
|
472
|
+
leadId: (0, shared_1.locatorValue)(ctx, 'leadId', i),
|
|
473
|
+
content: ctx.getNodeParameter('content', i),
|
|
474
|
+
};
|
|
475
|
+
return (0, shared_1.asObject)(await (0, mcp_1.callTool)(ctx, client, 'lead_note_add', args, i));
|
|
476
|
+
},
|
|
477
|
+
async addToBlacklist(ctx, client, i) {
|
|
478
|
+
const args = { leadId: (0, shared_1.locatorValue)(ctx, 'leadId', i) };
|
|
479
|
+
return (0, shared_1.asObject)(await (0, mcp_1.callTool)(ctx, client, 'lead_blacklist', args, i));
|
|
480
|
+
},
|
|
481
|
+
};
|
|
482
|
+
//# sourceMappingURL=lead.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lead.js","sourceRoot":"","sources":["../../../../nodes/Linkedcamp/descriptions/lead.ts"],"names":[],"mappings":";;;AACA,+CAAkD;AAElD,0CAAiE;AACjE,sCAiBmB;AAGnB,MAAM,IAAI,GAAG,CAAC,SAAmB,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,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MAAM,IAAA,cAAQ,EAAC,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACxE,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC;QAClC,MAAM,IAAI,GAAG,EAAE,MAAM,EAAE,IAAA,qBAAY,EAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC;QACxD,OAAO,IAAA,iBAAQ,EAAC,MAAM,IAAA,cAAQ,EAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;CACD,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tagHandlers = exports.tagFields = exports.tagOperations = void 0;
|
|
4
|
+
const mcp_1 = require("../transport/mcp");
|
|
5
|
+
const shared_1 = require("../shared");
|
|
6
|
+
const show = (operation) => ({ resource: ['tag'], operation });
|
|
7
|
+
exports.tagOperations = {
|
|
8
|
+
displayName: 'Operation',
|
|
9
|
+
name: 'operation',
|
|
10
|
+
type: 'options',
|
|
11
|
+
noDataExpression: true,
|
|
12
|
+
displayOptions: { show: { resource: ['tag'] } },
|
|
13
|
+
options: [
|
|
14
|
+
{
|
|
15
|
+
name: 'Create',
|
|
16
|
+
value: 'create',
|
|
17
|
+
description: 'Create a reply tag',
|
|
18
|
+
action: 'Create a tag',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Get Many',
|
|
22
|
+
value: 'getMany',
|
|
23
|
+
description: 'Retrieve a list of tags',
|
|
24
|
+
action: 'Get many tags',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
default: 'getMany',
|
|
28
|
+
};
|
|
29
|
+
exports.tagFields = [
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Name',
|
|
32
|
+
name: 'content',
|
|
33
|
+
type: 'string',
|
|
34
|
+
required: true,
|
|
35
|
+
default: '',
|
|
36
|
+
placeholder: 'e.g. Meeting booked',
|
|
37
|
+
displayOptions: { show: show(['create']) },
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Interest',
|
|
41
|
+
name: 'interest',
|
|
42
|
+
type: 'options',
|
|
43
|
+
required: true,
|
|
44
|
+
default: 'POSITIVE',
|
|
45
|
+
displayOptions: { show: show(['create']) },
|
|
46
|
+
options: [
|
|
47
|
+
{ name: 'Negative', value: 'NEGATIVE' },
|
|
48
|
+
{ name: 'Neutral', value: 'NEUTRAL' },
|
|
49
|
+
{ name: 'Positive', value: 'POSITIVE' },
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
...(0, shared_1.returnAllAndLimit)(show(['getMany']), 1000),
|
|
53
|
+
{
|
|
54
|
+
displayName: 'Options',
|
|
55
|
+
name: 'options',
|
|
56
|
+
type: 'collection',
|
|
57
|
+
placeholder: 'Add Option',
|
|
58
|
+
default: {},
|
|
59
|
+
displayOptions: { show: show(['getMany']) },
|
|
60
|
+
options: [(0, shared_1.clientLocator)()],
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
exports.tagHandlers = {
|
|
64
|
+
async create(ctx, client, i) {
|
|
65
|
+
const args = {
|
|
66
|
+
content: ctx.getNodeParameter('content', i),
|
|
67
|
+
interest: ctx.getNodeParameter('interest', i),
|
|
68
|
+
};
|
|
69
|
+
return (0, shared_1.asObject)(await (0, mcp_1.callTool)(ctx, client, 'tag_create', args, i));
|
|
70
|
+
},
|
|
71
|
+
async getMany(ctx, client, i) {
|
|
72
|
+
const options = ctx.getNodeParameter('options', i, {});
|
|
73
|
+
const out = (0, shared_1.asObject)(await (0, mcp_1.callTool)(ctx, client, 'tag_list', (0, mcp_1.compact)({ userId: (0, shared_1.nestedLocator)(options.userId) }), i));
|
|
74
|
+
const tags = (0, shared_1.asArray)(out.tags);
|
|
75
|
+
const returnAll = ctx.getNodeParameter('returnAll', i, false);
|
|
76
|
+
return returnAll ? tags : tags.slice(0, ctx.getNodeParameter('limit', i, 50));
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../../nodes/Linkedcamp/descriptions/tag.ts"],"names":[],"mappings":";;;AAEA,0CAAqD;AACrD,sCAA+F;AAG/F,MAAM,IAAI,GAAG,CAAC,SAAmB,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;AAE5D,QAAA,aAAa,GAAoB;IAC7C,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;IAC/C,OAAO,EAAE;QACR;YACC,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,oBAAoB;YACjC,MAAM,EAAE,cAAc;SACtB;QACD;YACC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,yBAAyB;YACtC,MAAM,EAAE,eAAe;SACvB;KACD;IACD,OAAO,EAAE,SAAS;CAClB,CAAC;AAEW,QAAA,SAAS,GAAsB;IAC3C;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qBAAqB;QAClC,cAAc,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE;KAC1C;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU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S,EAAE,CAAC,EAAE,EAAE,CAAgB,CAAC;QACtE,MAAM,GAAG,GAAG,IAAA,iBAAQ,EACnB,MAAM,IAAA,cAAQ,EAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,IAAA,aAAO,EAAC,EAAE,MAAM,EAAE,IAAA,sBAAa,EAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAC9F,CAAC;QACF,MAAM,IAAI,GAAG,IAAA,gBAAO,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC/B,MAAM,SAAS,GAAG,GAAG,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,EAAE,KAAK,CAAY,CAAC;QACzE,OAAO,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC,CAAC;IACzF,CAAC;CACD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IDataObject, IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
+
import type { McpClient } from '../transport/mcpClient';
|
|
3
|
+
export type OperationHandler = (ctx: IExecuteFunctions, client: McpClient, i: number) => Promise<IDataObject | IDataObject[]>;
|
|
4
|
+
export type HandlerMap = Record<string, OperationHandler>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../nodes/Linkedcamp/descriptions/types.ts"],"names":[],"mappings":""}
|