@replyio/n8n-nodes-reply 0.3.0 → 0.5.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/dist/nodes/Reply/ReplyTrigger.node.js +8 -26
- package/dist/nodes/Reply/ReplyTrigger.node.js.map +1 -1
- package/dist/nodes/Reply/actions/contact/create.operation.js +20 -3
- package/dist/nodes/Reply/actions/contact/create.operation.js.map +1 -1
- package/dist/nodes/Reply/actions/contact/delete.operation.js +1 -11
- package/dist/nodes/Reply/actions/contact/delete.operation.js.map +1 -1
- package/dist/nodes/Reply/actions/contact/get.operation.js +35 -0
- package/dist/nodes/Reply/actions/contact/get.operation.js.map +1 -0
- package/dist/nodes/Reply/actions/contact/index.d.ts +2 -4
- package/dist/nodes/Reply/actions/contact/index.js +91 -199
- package/dist/nodes/Reply/actions/contact/index.js.map +1 -1
- package/dist/nodes/Reply/actions/contact/update.operation.js +26 -64
- package/dist/nodes/Reply/actions/contact/update.operation.js.map +1 -1
- package/dist/nodes/Reply/actions/contactStatus/clearStatus.operation.js +39 -0
- package/dist/nodes/Reply/actions/contactStatus/clearStatus.operation.js.map +1 -0
- package/dist/nodes/Reply/actions/contactStatus/index.d.ts +4 -20
- package/dist/nodes/Reply/actions/contactStatus/index.js +141 -102
- package/dist/nodes/Reply/actions/contactStatus/index.js.map +1 -1
- package/dist/nodes/Reply/actions/contactStatus/statusHelper.d.ts +1 -3
- package/dist/nodes/Reply/actions/contactStatus/statusHelper.js +3 -69
- package/dist/nodes/Reply/actions/contactStatus/statusHelper.js.map +1 -1
- package/dist/nodes/Reply/actions/contactStatus/updateStatus.operation.js +35 -0
- package/dist/nodes/Reply/actions/contactStatus/updateStatus.operation.js.map +1 -0
- package/dist/nodes/Reply/actions/sequence/addContact.operation.js +45 -25
- package/dist/nodes/Reply/actions/sequence/addContact.operation.js.map +1 -1
- package/dist/nodes/Reply/actions/sequence/archive.operation.js +1 -11
- package/dist/nodes/Reply/actions/sequence/archive.operation.js.map +1 -1
- package/dist/nodes/Reply/actions/sequence/get.operation.js +10 -0
- package/dist/nodes/Reply/actions/sequence/get.operation.js.map +1 -0
- package/dist/nodes/Reply/actions/sequence/getAll.operation.js +4 -0
- package/dist/nodes/Reply/actions/sequence/getAll.operation.js.map +1 -1
- package/dist/nodes/Reply/actions/sequence/getContacts.operation.js +1 -11
- package/dist/nodes/Reply/actions/sequence/getContacts.operation.js.map +1 -1
- package/dist/nodes/Reply/actions/sequence/index.d.ts +2 -2
- package/dist/nodes/Reply/actions/sequence/index.js +103 -100
- package/dist/nodes/Reply/actions/sequence/index.js.map +1 -1
- package/dist/nodes/Reply/actions/sequence/pause.operation.js +1 -11
- package/dist/nodes/Reply/actions/sequence/pause.operation.js.map +1 -1
- package/dist/nodes/Reply/actions/sequence/start.operation.js +1 -11
- package/dist/nodes/Reply/actions/sequence/start.operation.js.map +1 -1
- package/dist/nodes/Reply/utils/GenericFunctions.d.ts +8 -0
- package/dist/nodes/Reply/utils/GenericFunctions.js +76 -0
- package/dist/nodes/Reply/utils/GenericFunctions.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/nodes/Reply/actions/contact/getByEmail.operation.js +0 -23
- package/dist/nodes/Reply/actions/contact/getByEmail.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/contact/getById.operation.js +0 -20
- package/dist/nodes/Reply/actions/contact/getById.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/contactStatus/markAsActive.operation.js +0 -8
- package/dist/nodes/Reply/actions/contactStatus/markAsActive.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/contactStatus/markAsBounced.operation.js +0 -8
- package/dist/nodes/Reply/actions/contactStatus/markAsBounced.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/contactStatus/markAsCalled.operation.d.ts +0 -2
- package/dist/nodes/Reply/actions/contactStatus/markAsCalled.operation.js +0 -8
- package/dist/nodes/Reply/actions/contactStatus/markAsCalled.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/contactStatus/markAsFinished.operation.d.ts +0 -2
- package/dist/nodes/Reply/actions/contactStatus/markAsFinished.operation.js +0 -8
- package/dist/nodes/Reply/actions/contactStatus/markAsFinished.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/contactStatus/markAsMeetingBooked.operation.d.ts +0 -2
- package/dist/nodes/Reply/actions/contactStatus/markAsMeetingBooked.operation.js +0 -8
- package/dist/nodes/Reply/actions/contactStatus/markAsMeetingBooked.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/contactStatus/markAsOptedOut.operation.d.ts +0 -2
- package/dist/nodes/Reply/actions/contactStatus/markAsOptedOut.operation.js +0 -8
- package/dist/nodes/Reply/actions/contactStatus/markAsOptedOut.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/contactStatus/markAsOutOfOffice.operation.d.ts +0 -2
- package/dist/nodes/Reply/actions/contactStatus/markAsOutOfOffice.operation.js +0 -8
- package/dist/nodes/Reply/actions/contactStatus/markAsOutOfOffice.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/contactStatus/markAsPaused.operation.d.ts +0 -2
- package/dist/nodes/Reply/actions/contactStatus/markAsPaused.operation.js +0 -8
- package/dist/nodes/Reply/actions/contactStatus/markAsPaused.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/contactStatus/markAsReplied.operation.d.ts +0 -2
- package/dist/nodes/Reply/actions/contactStatus/markAsReplied.operation.js +0 -8
- package/dist/nodes/Reply/actions/contactStatus/markAsReplied.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/contactStatus/markAsToCall.operation.d.ts +0 -2
- package/dist/nodes/Reply/actions/contactStatus/markAsToCall.operation.js +0 -8
- package/dist/nodes/Reply/actions/contactStatus/markAsToCall.operation.js.map +0 -1
- package/dist/nodes/Reply/actions/sequence/getById.operation.d.ts +0 -2
- package/dist/nodes/Reply/actions/sequence/getById.operation.js +0 -20
- package/dist/nodes/Reply/actions/sequence/getById.operation.js.map +0 -1
- /package/dist/nodes/Reply/actions/contact/{getByEmail.operation.d.ts → get.operation.d.ts} +0 -0
- /package/dist/nodes/Reply/actions/{contact/getById.operation.d.ts → contactStatus/clearStatus.operation.d.ts} +0 -0
- /package/dist/nodes/Reply/actions/contactStatus/{markAsActive.operation.d.ts → updateStatus.operation.d.ts} +0 -0
- /package/dist/nodes/Reply/actions/{contactStatus/markAsBounced.operation.d.ts → sequence/get.operation.d.ts} +0 -0
|
@@ -293,27 +293,11 @@ class ReplyTrigger {
|
|
|
293
293
|
],
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
|
-
displayName: '
|
|
297
|
-
name: '
|
|
298
|
-
type: '
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
options: [
|
|
302
|
-
{
|
|
303
|
-
displayName: 'Include Email URL',
|
|
304
|
-
name: 'includeEmailUrl',
|
|
305
|
-
type: 'boolean',
|
|
306
|
-
default: false,
|
|
307
|
-
description: 'Whether to include the email URL in the webhook payload',
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
displayName: 'Include Prospect Custom Fields',
|
|
311
|
-
name: 'includeProspectCustomFields',
|
|
312
|
-
type: 'boolean',
|
|
313
|
-
default: false,
|
|
314
|
-
description: 'Whether to include prospect custom fields in the webhook payload',
|
|
315
|
-
},
|
|
316
|
-
],
|
|
296
|
+
displayName: 'Include Prospect Custom Fields',
|
|
297
|
+
name: 'includeProspectCustomFields',
|
|
298
|
+
type: 'boolean',
|
|
299
|
+
default: false,
|
|
300
|
+
description: 'Whether to include prospect custom fields in the webhook payload',
|
|
317
301
|
},
|
|
318
302
|
],
|
|
319
303
|
};
|
|
@@ -353,9 +337,7 @@ class ReplyTrigger {
|
|
|
353
337
|
const webhookUrl = this.getNodeWebhookUrl('default');
|
|
354
338
|
const rawEvents = this.getNodeParameter('events', []);
|
|
355
339
|
const events = expandEvents(rawEvents);
|
|
356
|
-
const
|
|
357
|
-
const includeEmailUrl = options.includeEmailUrl || false;
|
|
358
|
-
const includeProspectCustomFields = options.includeProspectCustomFields || false;
|
|
340
|
+
const includeProspectCustomFields = this.getNodeParameter('includeProspectCustomFields', false);
|
|
359
341
|
let existingWebhooks = [];
|
|
360
342
|
try {
|
|
361
343
|
const response = await GenericFunctions_1.replyWebhookApiRequest.call(this, 'GET', '/v2/webhooks');
|
|
@@ -375,7 +357,7 @@ class ReplyTrigger {
|
|
|
375
357
|
await GenericFunctions_1.replyWebhookApiRequest.call(this, 'PATCH', `/v2/webhooks/${existingWebhook.id}`, {
|
|
376
358
|
isDisabled: false,
|
|
377
359
|
payload: {
|
|
378
|
-
includeEmailUrl,
|
|
360
|
+
includeEmailUrl: true,
|
|
379
361
|
includeProspectCustomFields,
|
|
380
362
|
},
|
|
381
363
|
});
|
|
@@ -388,7 +370,7 @@ class ReplyTrigger {
|
|
|
388
370
|
url: webhookUrl,
|
|
389
371
|
isDisabled: false,
|
|
390
372
|
payload: {
|
|
391
|
-
includeEmailUrl,
|
|
373
|
+
includeEmailUrl: true,
|
|
392
374
|
includeProspectCustomFields,
|
|
393
375
|
},
|
|
394
376
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReplyTrigger.node.js","sourceRoot":"","sources":["../../../nodes/Reply/ReplyTrigger.node.ts"],"names":[],"mappings":";;;AAQA,+CAAmD;AAEnD,+DAAkE;AAClE,iDAW2B;AAE3B,SAAS,YAAY,CAAC,MAAgB;IACrC,IAAI,MAAM,CAAC,QAAQ,CAAC,6BAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5C,OAAO,CAAC,GAAG,8BAAkB,CAAC,CAAC;IAChC,CAAC;IAED,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC5B,IAAI,KAAK,KAAK,6BAAiB,CAAC,KAAK,EAAE,CAAC;YACvC,QAAQ,CAAC,IAAI,CAAC,GAAG,4BAAgB,CAAC,CAAC;QACpC,CAAC;aAAM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AwB;yBAChC;wBACD;4BACC,IAAI,EAAE,gBAAgB;4BACtB,KAAK,EAAE,2BAAe,CAAC,cAAc;4BACrC,WAAW,EAAE,2BAA2B;4BACxC,MAAM,EAAE,mBAAmB;yBAC3B;wBACD;4BACC,IAAI,EAAE,kBAAkB;4BACxB,KAAK,EAAE,2BAAe,CAAC,gBAAgB;4BACvC,WAAW,EAAE,2BAA2B;4BACxC,MAAM,EAAE,qBAAqB;yBAC7B;wBACD;4BACC,IAAI,EAAE,mBAAmB;4BACzB,KAAK,EAAE,2BAAe,CAAC,iBAAiB;4BACxC,WAAW,EAAE,oCAAoC;4BACjD,MAAM,EAAE,sBAAsB;yBAC9B;qBACD;iBACD;gBACD;oBACC,WAAW,EAAE,QAAQ;oBACrB,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,cAAc;oBACpB,QAAQ,EAAE,IAAI;oBACd,OAAO,EAAE,EAAE;oBACX,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,eAAe,CAAC;yBAC5B;qBACD;oBACD,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,GAAG;4BACT,KAAK,EAAE,6BAAiB,CAAC,cAAc;4BACvC,WAAW,EAAE,2BAA2B;4BACxC,MAAM,EAAE,8BAA8B;yBACtC;wBACD;4BACC,IAAI,EAAE,+BAA+B;4BACrC,KAAK,EAAE,iCAAqB,CAAC,qBAAqB;4BAClD,WAAW,EAAE,4BAA4B;4BACzC,MAAM,EAAE,kCAAkC;yBAC1C;wBACD;4BACC,IAAI,EAAE,qBAAqB;4BAC3B,KAAK,EAAE,iCAAqB,CAAC,WAAW;4BACxC,WAAW,EAAE,8BAA8B;4BAC3C,MAAM,EAAE,wBAAwB;yBAChC;qBACD;iBACD;gBACD;oBACC,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"ReplyTrigger.node.js","sourceRoot":"","sources":["../../../nodes/Reply/ReplyTrigger.node.ts"],"names":[],"mappings":";;;AAQA,+CAAmD;A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require("../../utils/validation");
|
|
7
7
|
async function execute(i) {
|
|
8
8
|
const firstName = this.getNodeParameter('firstName', i);
|
|
9
|
+
const lastName = this.getNodeParameter('lastName', i, '');
|
|
10
|
+
const email = this.getNodeParameter('email', i, '');
|
|
11
|
+
const linkedInProfile = this.getNodeParameter('linkedInProfile', i, '');
|
|
12
|
+
const phone = this.getNodeParameter('phone', i, '');
|
|
13
|
+
const company = this.getNodeParameter('company', i, '');
|
|
9
14
|
const additionalFields = this.getNodeParameter('additionalFields', i);
|
|
10
15
|
if (!firstName || firstName.trim() === '') {
|
|
11
16
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'First name is required', {
|
|
12
17
|
itemIndex: i,
|
|
13
18
|
});
|
|
14
19
|
}
|
|
15
|
-
const body = {
|
|
16
|
-
|
|
20
|
+
const body = {
|
|
21
|
+
firstName: firstName.trim(),
|
|
22
|
+
...additionalFields,
|
|
23
|
+
};
|
|
24
|
+
if (lastName)
|
|
25
|
+
body.lastName = lastName;
|
|
26
|
+
if (email) {
|
|
17
27
|
try {
|
|
18
|
-
(0, validation_1.validateEmail)(
|
|
28
|
+
(0, validation_1.validateEmail)(email);
|
|
19
29
|
}
|
|
20
30
|
catch (validationError) {
|
|
21
31
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), validationError.message, {
|
|
22
32
|
itemIndex: i,
|
|
23
33
|
});
|
|
24
34
|
}
|
|
35
|
+
body.email = email;
|
|
25
36
|
}
|
|
37
|
+
if (linkedInProfile)
|
|
38
|
+
body.linkedInProfile = linkedInProfile;
|
|
39
|
+
if (phone)
|
|
40
|
+
body.phone = phone;
|
|
41
|
+
if (company)
|
|
42
|
+
body.company = company;
|
|
26
43
|
const response = await GenericFunctions_1.replyApiRequest.call(this, 'POST', '/v3/contacts', body);
|
|
27
44
|
return [{ json: response }];
|
|
28
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Reply/actions/contact/create.operation.ts"],"names":[],"mappings":";;AAMA,
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Reply/actions/contact/create.operation.ts"],"names":[],"mappings":";;AAMA,0BAqCC;AA1CD,+CAAkD;AAElD,mEAA+D;AAC/D,uDAAuD;AAEhD,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC/D,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAClE,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;IACpE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;IAC9D,MAAM,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;IAClF,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;IAC9D,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;IAClE,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,CAAgB,CAAC;IAErF,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC3C,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,wBAAwB,EAAE;YACtE,SAAS,EAAE,CAAC;SACZ,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAgB;QACzB,SAAS,EAAE,SAAS,CAAC,IAAI,EAAE;QAC3B,GAAG,gBAAgB;KACnB,CAAC;IAEF,IAAI,QAAQ;QAAE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACvC,IAAI,KAAK,EAAE,CAAC;QACX,IAAI,CAAC;YACJ,IAAA,0BAAa,EAAC,KAAK,CAAC,CAAC;QACtB,CAAC;QAAC,OAAO,eAAe,EAAE,CAAC;YAC1B,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAG,eAAyB,CAAC,OAAO,EAAE;gBAChF,SAAS,EAAE,CAAC;aACZ,CAAC,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,CAAC;IACD,IAAI,eAAe;QAAE,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IAC5D,IAAI,KAAK;QAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAC9B,IAAI,OAAO;QAAE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAEpC,MAAM,QAAQ,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChF,OAAO,CAAC,EAAE,IAAI,EAAE,QAAuB,EAAE,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.execute = execute;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
4
|
const GenericFunctions_1 = require("../../utils/GenericFunctions");
|
|
6
|
-
const validation_1 = require("../../utils/validation");
|
|
7
5
|
async function execute(i) {
|
|
8
|
-
const contactId =
|
|
9
|
-
try {
|
|
10
|
-
(0, validation_1.validateContactId)(contactId);
|
|
11
|
-
}
|
|
12
|
-
catch (validationError) {
|
|
13
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), validationError.message, {
|
|
14
|
-
itemIndex: i,
|
|
15
|
-
});
|
|
16
|
-
}
|
|
6
|
+
const contactId = await (0, GenericFunctions_1.resolveContactId)(this, i);
|
|
17
7
|
const response = await GenericFunctions_1.replyApiRequest.call(this, 'DELETE', `/v3/contacts/${contactId}`);
|
|
18
8
|
return [
|
|
19
9
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Reply/actions/contact/delete.operation.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Reply/actions/contact/delete.operation.ts"],"names":[],"mappings":";;AAIA,0BAYC;AAdD,mEAAiF;AAE1E,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC/D,MAAM,SAAS,GAAG,MAAM,IAAA,mCAAgB,EAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAElD,MAAM,QAAQ,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,gBAAgB,SAAS,EAAE,CAAC,CAAC;IAEzF,OAAO;QACN;YACC,IAAI,EAAE,QAAQ;gBACb,CAAC,CAAE,QAAwB;gBAC3B,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,iBAAiB,EAAE;SAC3D;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execute = execute;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const GenericFunctions_1 = require("../../utils/GenericFunctions");
|
|
6
|
+
async function execute(i) {
|
|
7
|
+
const contactLocator = this.getNodeParameter('contactLocator', i, undefined, {
|
|
8
|
+
extractValue: true,
|
|
9
|
+
});
|
|
10
|
+
const locatorMode = this.getNodeParameter('contactLocator.mode', i);
|
|
11
|
+
if (locatorMode === 'id') {
|
|
12
|
+
const contactId = parseInt(contactLocator, 10);
|
|
13
|
+
if (isNaN(contactId) || contactId <= 0) {
|
|
14
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Contact ID must be a positive number', {
|
|
15
|
+
itemIndex: i,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
const response = await GenericFunctions_1.replyApiRequest.call(this, 'GET', `/v3/contacts/${contactId}`);
|
|
19
|
+
return [{ json: response }];
|
|
20
|
+
}
|
|
21
|
+
const qs = {};
|
|
22
|
+
if (locatorMode === 'email') {
|
|
23
|
+
qs.email = contactLocator;
|
|
24
|
+
}
|
|
25
|
+
else if (locatorMode === 'linkedIn') {
|
|
26
|
+
qs.linkedIn = contactLocator;
|
|
27
|
+
}
|
|
28
|
+
const response = (await GenericFunctions_1.replyApiRequest.call(this, 'GET', '/v3/contacts', undefined, qs));
|
|
29
|
+
const contacts = response.items || [];
|
|
30
|
+
if (contacts.length === 0) {
|
|
31
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Contact with ${locatorMode} "${contactLocator}" not found`, { itemIndex: i });
|
|
32
|
+
}
|
|
33
|
+
return [{ json: contacts[0] }];
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=get.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Reply/actions/contact/get.operation.ts"],"names":[],"mappings":";;AAKA,0BA4CC;AAhDD,+CAAkD;AAElD,mEAA+D;AAExD,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC/D,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC,EAAE,SAAS,EAAE;QAC5E,YAAY,EAAE,IAAI;KAClB,CAAW,CAAC;IACb,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,CAAC,CAAW,CAAC;IAE9E,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;QAC1B,MAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;QAC/C,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,SAAS,IAAI,CAAC,EAAE,CAAC;YACxC,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,sCAAsC,EAAE;gBACpF,SAAS,EAAE,CAAC;aACZ,CAAC,CAAC;QACJ,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,gBAAgB,SAAS,EAAE,CAAC,CAAC;QACtF,OAAO,CAAC,EAAE,IAAI,EAAE,QAAuB,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED,MAAM,EAAE,GAAgB,EAAE,CAAC;IAE3B,IAAI,WAAW,KAAK,OAAO,EAAE,CAAC;QAC7B,EAAE,CAAC,KAAK,GAAG,cAAc,CAAC;IAC3B,CAAC;SAAM,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;QACvC,EAAE,CAAC,QAAQ,GAAG,cAAc,CAAC;IAC9B,CAAC;IAED,MAAM,QAAQ,GAAG,CAAC,MAAM,kCAAe,CAAC,IAAI,CAC3C,IAAI,EACJ,KAAK,EACL,cAAc,EACd,SAAS,EACT,EAAE,CACF,CAAgB,CAAC;IAElB,MAAM,QAAQ,GAAI,QAAQ,CAAC,KAAuB,IAAI,EAAE,CAAC;IAEzD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,gBAAgB,WAAW,KAAK,cAAc,aAAa,EAC3D,EAAE,SAAS,EAAE,CAAC,EAAE,CAChB,CAAC;IACH,CAAC;IAED,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -2,15 +2,13 @@ import type { INodeProperties } from 'n8n-workflow';
|
|
|
2
2
|
import * as create from './create.operation';
|
|
3
3
|
import * as update from './update.operation';
|
|
4
4
|
import * as del from './delete.operation';
|
|
5
|
-
import * as
|
|
6
|
-
import * as getById from './getById.operation';
|
|
5
|
+
import * as get from './get.operation';
|
|
7
6
|
import * as getAll from './getAll.operation';
|
|
8
7
|
export declare const operations: {
|
|
9
8
|
create: typeof create;
|
|
10
9
|
update: typeof update;
|
|
11
10
|
delete: typeof del;
|
|
12
|
-
|
|
13
|
-
getById: typeof getById;
|
|
11
|
+
get: typeof get;
|
|
14
12
|
getAll: typeof getAll;
|
|
15
13
|
};
|
|
16
14
|
export declare const description: INodeProperties[];
|
|
@@ -37,17 +37,35 @@ exports.description = exports.operations = void 0;
|
|
|
37
37
|
const create = __importStar(require("./create.operation"));
|
|
38
38
|
const update = __importStar(require("./update.operation"));
|
|
39
39
|
const del = __importStar(require("./delete.operation"));
|
|
40
|
-
const
|
|
41
|
-
const getById = __importStar(require("./getById.operation"));
|
|
40
|
+
const get = __importStar(require("./get.operation"));
|
|
42
41
|
const getAll = __importStar(require("./getAll.operation"));
|
|
43
42
|
exports.operations = {
|
|
44
43
|
create,
|
|
45
44
|
update,
|
|
46
45
|
delete: del,
|
|
47
|
-
|
|
48
|
-
getById,
|
|
46
|
+
get,
|
|
49
47
|
getAll,
|
|
50
48
|
};
|
|
49
|
+
const CONTACT_LOCATOR_MODES = [
|
|
50
|
+
{
|
|
51
|
+
displayName: 'By ID',
|
|
52
|
+
name: 'id',
|
|
53
|
+
type: 'string',
|
|
54
|
+
placeholder: 'e.g. 12345',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'By Email',
|
|
58
|
+
name: 'email',
|
|
59
|
+
type: 'string',
|
|
60
|
+
placeholder: 'e.g. name@email.com',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
displayName: 'By LinkedIn',
|
|
64
|
+
name: 'linkedIn',
|
|
65
|
+
type: 'string',
|
|
66
|
+
placeholder: 'e.g. https://linkedin.com/in/username',
|
|
67
|
+
},
|
|
68
|
+
];
|
|
51
69
|
exports.description = [
|
|
52
70
|
{
|
|
53
71
|
displayName: 'Operation',
|
|
@@ -69,20 +87,14 @@ exports.description = [
|
|
|
69
87
|
{
|
|
70
88
|
name: 'Delete',
|
|
71
89
|
value: 'delete',
|
|
72
|
-
description: 'Delete a contact
|
|
90
|
+
description: 'Delete a contact',
|
|
73
91
|
action: 'Delete a contact',
|
|
74
92
|
},
|
|
75
93
|
{
|
|
76
|
-
name: 'Get
|
|
77
|
-
value: '
|
|
78
|
-
description: 'Get a contact
|
|
79
|
-
action: 'Get contact
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: 'Get by ID',
|
|
83
|
-
value: 'getById',
|
|
84
|
-
description: 'Get a contact by ID',
|
|
85
|
-
action: 'Get contact by ID',
|
|
94
|
+
name: 'Get',
|
|
95
|
+
value: 'get',
|
|
96
|
+
description: 'Get a contact',
|
|
97
|
+
action: 'Get a contact',
|
|
86
98
|
},
|
|
87
99
|
{
|
|
88
100
|
name: 'Get Many',
|
|
@@ -99,117 +111,126 @@ exports.description = [
|
|
|
99
111
|
],
|
|
100
112
|
default: 'create',
|
|
101
113
|
},
|
|
114
|
+
{
|
|
115
|
+
displayName: 'Contact',
|
|
116
|
+
name: 'contactLocator',
|
|
117
|
+
type: 'resourceLocator',
|
|
118
|
+
default: { mode: 'id', value: '' },
|
|
119
|
+
required: true,
|
|
120
|
+
description: 'The contact to operate on',
|
|
121
|
+
displayOptions: {
|
|
122
|
+
show: {
|
|
123
|
+
resource: ['contact'],
|
|
124
|
+
operation: ['delete', 'get', 'update'],
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
modes: CONTACT_LOCATOR_MODES,
|
|
128
|
+
},
|
|
102
129
|
{
|
|
103
130
|
displayName: 'First Name',
|
|
104
131
|
name: 'firstName',
|
|
105
132
|
type: 'string',
|
|
106
|
-
required: true,
|
|
107
133
|
default: '',
|
|
108
|
-
description: 'First name of the contact',
|
|
134
|
+
description: 'First name of the contact (required for create)',
|
|
109
135
|
displayOptions: {
|
|
110
136
|
show: {
|
|
111
137
|
resource: ['contact'],
|
|
112
|
-
operation: ['create'],
|
|
138
|
+
operation: ['create', 'update'],
|
|
113
139
|
},
|
|
114
140
|
},
|
|
115
141
|
},
|
|
116
142
|
{
|
|
117
|
-
displayName: '
|
|
118
|
-
name: '
|
|
119
|
-
type: '
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
description: 'How to identify the contact to update',
|
|
123
|
-
options: [
|
|
124
|
-
{
|
|
125
|
-
name: 'Contact ID',
|
|
126
|
-
value: 'id',
|
|
127
|
-
description: 'Update contact by ID',
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
name: 'Email',
|
|
131
|
-
value: 'email',
|
|
132
|
-
description: 'Find contact by email then update',
|
|
133
|
-
},
|
|
134
|
-
],
|
|
143
|
+
displayName: 'Last Name',
|
|
144
|
+
name: 'lastName',
|
|
145
|
+
type: 'string',
|
|
146
|
+
default: '',
|
|
147
|
+
description: 'Last name of the contact',
|
|
135
148
|
displayOptions: {
|
|
136
149
|
show: {
|
|
137
150
|
resource: ['contact'],
|
|
138
|
-
operation: ['update'],
|
|
151
|
+
operation: ['create', 'update'],
|
|
139
152
|
},
|
|
140
153
|
},
|
|
141
154
|
},
|
|
142
155
|
{
|
|
143
|
-
displayName: '
|
|
144
|
-
name: '
|
|
145
|
-
type: '
|
|
146
|
-
|
|
147
|
-
default:
|
|
148
|
-
description: '
|
|
156
|
+
displayName: 'Email',
|
|
157
|
+
name: 'email',
|
|
158
|
+
type: 'string',
|
|
159
|
+
placeholder: 'name@email.com',
|
|
160
|
+
default: '',
|
|
161
|
+
description: 'Email address of the contact',
|
|
149
162
|
displayOptions: {
|
|
150
163
|
show: {
|
|
151
164
|
resource: ['contact'],
|
|
152
|
-
operation: ['
|
|
153
|
-
identifyBy: ['id'],
|
|
165
|
+
operation: ['create'],
|
|
154
166
|
},
|
|
155
167
|
},
|
|
156
168
|
},
|
|
157
169
|
{
|
|
158
170
|
displayName: 'Email',
|
|
159
|
-
name: '
|
|
171
|
+
name: 'updateEmail',
|
|
160
172
|
type: 'string',
|
|
161
173
|
placeholder: 'name@email.com',
|
|
162
|
-
required: true,
|
|
163
174
|
default: '',
|
|
164
|
-
description: '
|
|
175
|
+
description: 'New email address for the contact',
|
|
165
176
|
displayOptions: {
|
|
166
177
|
show: {
|
|
167
178
|
resource: ['contact'],
|
|
168
179
|
operation: ['update'],
|
|
169
|
-
identifyBy: ['email'],
|
|
170
180
|
},
|
|
171
181
|
},
|
|
172
182
|
},
|
|
173
183
|
{
|
|
174
|
-
displayName: '
|
|
175
|
-
name: '
|
|
176
|
-
type: '
|
|
177
|
-
|
|
178
|
-
default:
|
|
179
|
-
description: '
|
|
184
|
+
displayName: 'LinkedIn Profile',
|
|
185
|
+
name: 'linkedInProfile',
|
|
186
|
+
type: 'string',
|
|
187
|
+
placeholder: 'https://linkedin.com/in/username',
|
|
188
|
+
default: '',
|
|
189
|
+
description: 'LinkedIn profile URL of the contact',
|
|
180
190
|
displayOptions: {
|
|
181
191
|
show: {
|
|
182
192
|
resource: ['contact'],
|
|
183
|
-
operation: ['
|
|
193
|
+
operation: ['create'],
|
|
184
194
|
},
|
|
185
195
|
},
|
|
186
196
|
},
|
|
187
197
|
{
|
|
188
|
-
displayName: '
|
|
189
|
-
name: '
|
|
190
|
-
type: '
|
|
191
|
-
|
|
192
|
-
default:
|
|
193
|
-
description: '
|
|
198
|
+
displayName: 'LinkedIn Profile',
|
|
199
|
+
name: 'updateLinkedInProfile',
|
|
200
|
+
type: 'string',
|
|
201
|
+
placeholder: 'https://linkedin.com/in/username',
|
|
202
|
+
default: '',
|
|
203
|
+
description: 'New LinkedIn profile URL for the contact',
|
|
194
204
|
displayOptions: {
|
|
195
205
|
show: {
|
|
196
206
|
resource: ['contact'],
|
|
197
|
-
operation: ['
|
|
207
|
+
operation: ['update'],
|
|
198
208
|
},
|
|
199
209
|
},
|
|
200
210
|
},
|
|
201
211
|
{
|
|
202
|
-
displayName: '
|
|
203
|
-
name: '
|
|
212
|
+
displayName: 'Phone',
|
|
213
|
+
name: 'phone',
|
|
204
214
|
type: 'string',
|
|
205
|
-
placeholder: 'name@email.com',
|
|
206
|
-
required: true,
|
|
207
215
|
default: '',
|
|
208
|
-
description: '
|
|
216
|
+
description: 'Phone number of the contact',
|
|
209
217
|
displayOptions: {
|
|
210
218
|
show: {
|
|
211
219
|
resource: ['contact'],
|
|
212
|
-
operation: ['
|
|
220
|
+
operation: ['create', 'update'],
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
displayName: 'Company',
|
|
226
|
+
name: 'company',
|
|
227
|
+
type: 'string',
|
|
228
|
+
default: '',
|
|
229
|
+
description: 'Company name',
|
|
230
|
+
displayOptions: {
|
|
231
|
+
show: {
|
|
232
|
+
resource: ['contact'],
|
|
233
|
+
operation: ['create', 'update'],
|
|
213
234
|
},
|
|
214
235
|
},
|
|
215
236
|
},
|
|
@@ -255,93 +276,7 @@ exports.description = [
|
|
|
255
276
|
displayOptions: {
|
|
256
277
|
show: {
|
|
257
278
|
resource: ['contact'],
|
|
258
|
-
operation: ['create'],
|
|
259
|
-
},
|
|
260
|
-
},
|
|
261
|
-
options: [
|
|
262
|
-
{
|
|
263
|
-
displayName: 'City',
|
|
264
|
-
name: 'city',
|
|
265
|
-
type: 'string',
|
|
266
|
-
default: '',
|
|
267
|
-
description: 'City of the contact',
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
displayName: 'Company',
|
|
271
|
-
name: 'company',
|
|
272
|
-
type: 'string',
|
|
273
|
-
default: '',
|
|
274
|
-
description: 'Company name',
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
displayName: 'Country',
|
|
278
|
-
name: 'country',
|
|
279
|
-
type: 'string',
|
|
280
|
-
default: '',
|
|
281
|
-
description: 'Country of the contact',
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
displayName: 'Email',
|
|
285
|
-
name: 'email',
|
|
286
|
-
type: 'string',
|
|
287
|
-
placeholder: 'name@email.com',
|
|
288
|
-
default: '',
|
|
289
|
-
description: 'Email address of the contact',
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
displayName: 'Last Name',
|
|
293
|
-
name: 'lastName',
|
|
294
|
-
type: 'string',
|
|
295
|
-
default: '',
|
|
296
|
-
description: 'Last name of the contact',
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
displayName: 'LinkedIn Profile',
|
|
300
|
-
name: 'linkedInProfile',
|
|
301
|
-
type: 'string',
|
|
302
|
-
default: '',
|
|
303
|
-
description: 'LinkedIn profile URL of the contact',
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
displayName: 'Phone',
|
|
307
|
-
name: 'phone',
|
|
308
|
-
type: 'string',
|
|
309
|
-
default: '',
|
|
310
|
-
description: 'Phone number of the contact',
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
displayName: 'State',
|
|
314
|
-
name: 'state',
|
|
315
|
-
type: 'string',
|
|
316
|
-
default: '',
|
|
317
|
-
description: 'State or region of the contact',
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
displayName: 'Time Zone',
|
|
321
|
-
name: 'timeZone',
|
|
322
|
-
type: 'string',
|
|
323
|
-
default: '',
|
|
324
|
-
description: 'Time zone identifier for the contact',
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
displayName: 'Title',
|
|
328
|
-
name: 'title',
|
|
329
|
-
type: 'string',
|
|
330
|
-
default: '',
|
|
331
|
-
description: 'Job title of the contact',
|
|
332
|
-
},
|
|
333
|
-
],
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
displayName: 'Update Fields',
|
|
337
|
-
name: 'updateFields',
|
|
338
|
-
type: 'collection',
|
|
339
|
-
placeholder: 'Add Field',
|
|
340
|
-
default: {},
|
|
341
|
-
displayOptions: {
|
|
342
|
-
show: {
|
|
343
|
-
resource: ['contact'],
|
|
344
|
-
operation: ['update'],
|
|
279
|
+
operation: ['create', 'update'],
|
|
345
280
|
},
|
|
346
281
|
},
|
|
347
282
|
options: [
|
|
@@ -352,13 +287,6 @@ exports.description = [
|
|
|
352
287
|
default: '',
|
|
353
288
|
description: 'City of the contact',
|
|
354
289
|
},
|
|
355
|
-
{
|
|
356
|
-
displayName: 'Company',
|
|
357
|
-
name: 'company',
|
|
358
|
-
type: 'string',
|
|
359
|
-
default: '',
|
|
360
|
-
description: 'Company name',
|
|
361
|
-
},
|
|
362
290
|
{
|
|
363
291
|
displayName: 'Country',
|
|
364
292
|
name: 'country',
|
|
@@ -366,42 +294,6 @@ exports.description = [
|
|
|
366
294
|
default: '',
|
|
367
295
|
description: 'Country of the contact',
|
|
368
296
|
},
|
|
369
|
-
{
|
|
370
|
-
displayName: 'Email',
|
|
371
|
-
name: 'email',
|
|
372
|
-
type: 'string',
|
|
373
|
-
placeholder: 'name@email.com',
|
|
374
|
-
default: '',
|
|
375
|
-
description: 'Email address of the contact',
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
displayName: 'First Name',
|
|
379
|
-
name: 'firstName',
|
|
380
|
-
type: 'string',
|
|
381
|
-
default: '',
|
|
382
|
-
description: 'First name of the contact',
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
displayName: 'Last Name',
|
|
386
|
-
name: 'lastName',
|
|
387
|
-
type: 'string',
|
|
388
|
-
default: '',
|
|
389
|
-
description: 'Last name of the contact',
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
displayName: 'LinkedIn Profile',
|
|
393
|
-
name: 'linkedInProfile',
|
|
394
|
-
type: 'string',
|
|
395
|
-
default: '',
|
|
396
|
-
description: 'LinkedIn profile URL of the contact',
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
displayName: 'Phone',
|
|
400
|
-
name: 'phone',
|
|
401
|
-
type: 'string',
|
|
402
|
-
default: '',
|
|
403
|
-
description: 'Phone number of the contact',
|
|
404
|
-
},
|
|
405
297
|
{
|
|
406
298
|
displayName: 'State',
|
|
407
299
|
name: 'state',
|