@activepieces/piece-reachinbox 0.1.5 → 0.1.7
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/package.json +7 -12
- package/src/index.js +113 -86
- package/src/index.d.ts +0 -6
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/add-blocklist.d.ts +0 -6
- package/src/lib/actions/add-blocklist.d.ts.map +0 -1
- package/src/lib/actions/add-blocklist.js +0 -79
- package/src/lib/actions/add-blocklist.js.map +0 -1
- package/src/lib/actions/add-email.d.ts +0 -5
- package/src/lib/actions/add-email.d.ts.map +0 -1
- package/src/lib/actions/add-email.js +0 -93
- package/src/lib/actions/add-email.js.map +0 -1
- package/src/lib/actions/add-leads.d.ts +0 -8
- package/src/lib/actions/add-leads.d.ts.map +0 -1
- package/src/lib/actions/add-leads.js +0 -127
- package/src/lib/actions/add-leads.js.map +0 -1
- package/src/lib/actions/enable-warmup.d.ts +0 -4
- package/src/lib/actions/enable-warmup.d.ts.map +0 -1
- package/src/lib/actions/enable-warmup.js +0 -86
- package/src/lib/actions/enable-warmup.js.map +0 -1
- package/src/lib/actions/get-campaign-analytics.d.ts +0 -6
- package/src/lib/actions/get-campaign-analytics.d.ts.map +0 -1
- package/src/lib/actions/get-campaign-analytics.js +0 -94
- package/src/lib/actions/get-campaign-analytics.js.map +0 -1
- package/src/lib/actions/get-summary.d.ts +0 -5
- package/src/lib/actions/get-summary.d.ts.map +0 -1
- package/src/lib/actions/get-summary.js +0 -69
- package/src/lib/actions/get-summary.js.map +0 -1
- package/src/lib/actions/pause-campaign.d.ts +0 -4
- package/src/lib/actions/pause-campaign.d.ts.map +0 -1
- package/src/lib/actions/pause-campaign.js +0 -88
- package/src/lib/actions/pause-campaign.js.map +0 -1
- package/src/lib/actions/pause-warmup.d.ts +0 -4
- package/src/lib/actions/pause-warmup.d.ts.map +0 -1
- package/src/lib/actions/pause-warmup.js +0 -86
- package/src/lib/actions/pause-warmup.js.map +0 -1
- package/src/lib/actions/remove-email.d.ts +0 -4
- package/src/lib/actions/remove-email.d.ts.map +0 -1
- package/src/lib/actions/remove-email.js +0 -83
- package/src/lib/actions/remove-email.js.map +0 -1
- package/src/lib/actions/set-schedule.d.ts +0 -17
- package/src/lib/actions/set-schedule.d.ts.map +0 -1
- package/src/lib/actions/set-schedule.js +0 -171
- package/src/lib/actions/set-schedule.js.map +0 -1
- package/src/lib/actions/start-campaign.d.ts +0 -4
- package/src/lib/actions/start-campaign.d.ts.map +0 -1
- package/src/lib/actions/start-campaign.js +0 -80
- package/src/lib/actions/start-campaign.js.map +0 -1
- package/src/lib/actions/update-lead.d.ts +0 -9
- package/src/lib/actions/update-lead.d.ts.map +0 -1
- package/src/lib/actions/update-lead.js +0 -162
- package/src/lib/actions/update-lead.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -50
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -48
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/triggers/campaign-completed.d.ts +0 -11
- package/src/lib/triggers/campaign-completed.d.ts.map +0 -1
- package/src/lib/triggers/campaign-completed.js +0 -66
- package/src/lib/triggers/campaign-completed.js.map +0 -1
- package/src/lib/triggers/email-bounced.d.ts +0 -11
- package/src/lib/triggers/email-bounced.d.ts.map +0 -1
- package/src/lib/triggers/email-bounced.js +0 -67
- package/src/lib/triggers/email-bounced.js.map +0 -1
- package/src/lib/triggers/email-opened.d.ts +0 -11
- package/src/lib/triggers/email-opened.d.ts.map +0 -1
- package/src/lib/triggers/email-opened.js +0 -66
- package/src/lib/triggers/email-opened.js.map +0 -1
- package/src/lib/triggers/email-sent.d.ts +0 -11
- package/src/lib/triggers/email-sent.d.ts.map +0 -1
- package/src/lib/triggers/email-sent.js +0 -70
- package/src/lib/triggers/email-sent.js.map +0 -1
- package/src/lib/triggers/lead-interested.d.ts +0 -11
- package/src/lib/triggers/lead-interested.d.ts.map +0 -1
- package/src/lib/triggers/lead-interested.js +0 -70
- package/src/lib/triggers/lead-interested.js.map +0 -1
- package/src/lib/triggers/lead-not-interested.d.ts +0 -11
- package/src/lib/triggers/lead-not-interested.d.ts.map +0 -1
- package/src/lib/triggers/lead-not-interested.js +0 -68
- package/src/lib/triggers/lead-not-interested.js.map +0 -1
- package/src/lib/triggers/reply-received.d.ts +0 -11
- package/src/lib/triggers/reply-received.d.ts.map +0 -1
- package/src/lib/triggers/reply-received.js +0 -67
- package/src/lib/triggers/reply-received.js.map +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const emailSent: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
3
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
4
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
5
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
7
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
8
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
9
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
-
}>;
|
|
11
|
-
//# sourceMappingURL=email-sent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email-sent.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/email-sent.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAChB,MAAM,gCAAgC,CAAC;AAkBxC,eAAO,MAAM,SAAS;;;;;;;;EA8CpB,CAAC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.emailSent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const message = `
|
|
7
|
-
|
|
8
|
-
Follow the below steps:
|
|
9
|
-
|
|
10
|
-
1. Login to the ReachInbox dashboard.
|
|
11
|
-
2. Go to the "Profile" section and navigate to the "Settings" tab.
|
|
12
|
-
3. Click on the "Integrations" and go to the "Webhooks". Click on the "Add Webhook" button.
|
|
13
|
-
4. Copy the following webhook URL and paste it into the "Webhook URL" field.
|
|
14
|
-
\`\`\`text
|
|
15
|
-
{{webhookUrl}}
|
|
16
|
-
\`\`\`
|
|
17
|
-
|
|
18
|
-
5. Select the event type as "Email Sent".
|
|
19
|
-
6. Click on the "Test Trigger" button to simulate a test and capture the webhook response here.
|
|
20
|
-
`;
|
|
21
|
-
exports.emailSent = (0, pieces_framework_1.createTrigger)({
|
|
22
|
-
name: 'emailSent',
|
|
23
|
-
displayName: 'Email Sent',
|
|
24
|
-
description: 'Triggers when an email is successfully sent.',
|
|
25
|
-
aiMetadata: {
|
|
26
|
-
description: 'Fires when an outreach email is successfully sent to a lead (EMAIL_SENT). Represents a delivered sequence step; payload includes the lead, sending account, step, and campaign. Requires the webhook to be configured in ReachInbox.',
|
|
27
|
-
},
|
|
28
|
-
props: {
|
|
29
|
-
markdown: pieces_framework_1.Property.MarkDown({
|
|
30
|
-
value: message,
|
|
31
|
-
}),
|
|
32
|
-
},
|
|
33
|
-
sampleData: {
|
|
34
|
-
email_id: 1,
|
|
35
|
-
lead_id: 1,
|
|
36
|
-
lead_email: 'recipient@example.com',
|
|
37
|
-
email_account: 'sender@example.com',
|
|
38
|
-
step_number: 1,
|
|
39
|
-
message_id: '<test-message-id>',
|
|
40
|
-
timestamp: '2024-03-18T08:15:51.000Z',
|
|
41
|
-
campaign_id: 1,
|
|
42
|
-
campaign_name: 'Test Name',
|
|
43
|
-
event: 'EMAIL_SENT',
|
|
44
|
-
user_webhook_id: '1',
|
|
45
|
-
lead_first_name: 'Lead First Name',
|
|
46
|
-
lead_last_name: 'Lead Last Name',
|
|
47
|
-
email_sent_body: 'Sent Email body',
|
|
48
|
-
email_replied_body: 'Sent Replied body',
|
|
49
|
-
},
|
|
50
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
51
|
-
onEnable(context) {
|
|
52
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
// Here you would implement logic to enable the webhook with the external service
|
|
54
|
-
// Possibly create a webhook subscription by sending the webhook URL (context.webhookUrl) to the external service
|
|
55
|
-
});
|
|
56
|
-
},
|
|
57
|
-
onDisable(context) {
|
|
58
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
// Here you would implement logic to disable or delete the webhook subscription from the external service
|
|
60
|
-
// Likely sending a DELETE request to the service to remove the webhook
|
|
61
|
-
});
|
|
62
|
-
},
|
|
63
|
-
run(context) {
|
|
64
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
// This will handle the incoming webhook event and return the payload data
|
|
66
|
-
return [context.payload.body];
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
});
|
|
70
|
-
//# sourceMappingURL=email-sent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email-sent.js","sourceRoot":"","sources":["../../../../src/lib/triggers/email-sent.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AAExC,MAAM,OAAO,GAAG;;;;;;;;;;;;;;CAcf,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,gCAAa,EAAC;IACrC,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,8CAA8C;IAC3D,UAAU,EAAE;QACV,WAAW,EACT,sOAAsO;KACzO;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC1B,KAAK,EAAE,OAAO;SACf,CAAC;KACH;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,CAAC;QACX,OAAO,EAAE,CAAC;QACV,UAAU,EAAE,uBAAuB;QACnC,aAAa,EAAE,oBAAoB;QACnC,WAAW,EAAE,CAAC;QACd,UAAU,EAAE,mBAAmB;QAC/B,SAAS,EAAE,0BAA0B;QACrC,WAAW,EAAE,CAAC;QACd,aAAa,EAAE,WAAW;QAC1B,KAAK,EAAE,YAAY;QACnB,eAAe,EAAE,GAAG;QACpB,eAAe,EAAE,iBAAiB;QAClC,cAAc,EAAE,gBAAgB;QAChC,eAAe,EAAE,iBAAiB;QAClC,kBAAkB,EAAE,mBAAmB;KACxC;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IAEvB,QAAQ,CAAC,OAAO;;YACpB,iFAAiF;YACjF,iHAAiH;QACnH,CAAC;KAAA;IAEK,SAAS,CAAC,OAAO;;YACrB,yGAAyG;YACzG,uEAAuE;QACzE,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,0EAA0E;YAC1E,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const leadInterested: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
3
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
4
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
5
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
7
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
8
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
9
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
-
}>;
|
|
11
|
-
//# sourceMappingURL=lead-interested.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lead-interested.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/lead-interested.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAChB,MAAM,gCAAgC,CAAC;AAqBxC,eAAO,MAAM,cAAc;;;;;;;;EAwCzB,CAAC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.leadInterested = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const leadInterestedMessage = `
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Follow the below steps:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
1. Login to the ReachInbox dashboard.
|
|
13
|
-
2. Go to the "Profile" section and navigate to the "Settings" tab.
|
|
14
|
-
3. Click on the "Integrations" and go to the "Webhooks". Click on the "Add Webhook" button.
|
|
15
|
-
4. Copy the following webhook URL and paste it into the "Webhook URL" field.
|
|
16
|
-
\`\`\`text
|
|
17
|
-
{{webhookUrl}}
|
|
18
|
-
\`\`\`
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
5. Select the event type as "Lead Interested".
|
|
22
|
-
6. Click on the "Test Trigger" button to simulate a test and capture the webhook response here.
|
|
23
|
-
`;
|
|
24
|
-
exports.leadInterested = (0, pieces_framework_1.createTrigger)({
|
|
25
|
-
name: 'leadInterested',
|
|
26
|
-
displayName: 'Lead Interested',
|
|
27
|
-
description: 'Triggers when a lead is set to interested.',
|
|
28
|
-
aiMetadata: {
|
|
29
|
-
description: 'Fires when a lead is marked as interested in ReachInbox (LEAD_INTERESTED), signaling a positive reply or qualification. Use to route hot leads onward; payload includes the lead and campaign. Requires the webhook to be configured in ReachInbox.',
|
|
30
|
-
},
|
|
31
|
-
props: {
|
|
32
|
-
markdown: pieces_framework_1.Property.MarkDown({
|
|
33
|
-
value: leadInterestedMessage,
|
|
34
|
-
}),
|
|
35
|
-
},
|
|
36
|
-
sampleData: {
|
|
37
|
-
email_id: 1,
|
|
38
|
-
lead_id: 1,
|
|
39
|
-
lead_email: 'recipient@example.com',
|
|
40
|
-
email_account: 'sender@example.com',
|
|
41
|
-
step_number: 1,
|
|
42
|
-
message_id: '<test-message-id>',
|
|
43
|
-
timestamp: '2024-03-18T08:15:51.000Z',
|
|
44
|
-
campaign_id: 1,
|
|
45
|
-
campaign_name: 'Test Name',
|
|
46
|
-
event: 'LEAD_INTERESTED',
|
|
47
|
-
user_webhook_id: '1',
|
|
48
|
-
lead_first_name: 'Lead First Name',
|
|
49
|
-
lead_last_name: 'Lead Last Name',
|
|
50
|
-
email_sent_body: 'Sent Email body',
|
|
51
|
-
email_replied_body: 'Sent Replied body',
|
|
52
|
-
},
|
|
53
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
54
|
-
onEnable(context) {
|
|
55
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
// Implement webhook subscription logic here
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
onDisable(context) {
|
|
60
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
// Implement webhook unsubscription logic here
|
|
62
|
-
});
|
|
63
|
-
},
|
|
64
|
-
run(context) {
|
|
65
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
return [context.payload.body];
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
});
|
|
70
|
-
//# sourceMappingURL=lead-interested.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lead-interested.js","sourceRoot":"","sources":["../../../../src/lib/triggers/lead-interested.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AAExC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;GAiB3B,CAAC;AAES,QAAA,cAAc,GAAG,IAAA,gCAAa,EAAC;IAC1C,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,4CAA4C;IACzD,UAAU,EAAE;QACV,WAAW,EACT,qPAAqP;KACxP;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC1B,KAAK,EAAE,qBAAqB;SAC7B,CAAC;KACH;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,CAAC;QACX,OAAO,EAAE,CAAC;QACV,UAAU,EAAE,uBAAuB;QACnC,aAAa,EAAE,oBAAoB;QACnC,WAAW,EAAE,CAAC;QACd,UAAU,EAAE,mBAAmB;QAC/B,SAAS,EAAE,0BAA0B;QACrC,WAAW,EAAE,CAAC;QACd,aAAa,EAAE,WAAW;QAC1B,KAAK,EAAE,iBAAiB;QACxB,eAAe,EAAE,GAAG;QACpB,eAAe,EAAE,iBAAiB;QAClC,cAAc,EAAE,gBAAgB;QAChC,eAAe,EAAE,iBAAiB;QAClC,kBAAkB,EAAE,mBAAmB;KACxC;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IACvB,QAAQ,CAAC,OAAO;;YACpB,4CAA4C;QAC9C,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;YACrB,8CAA8C;QAChD,CAAC;KAAA;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const leadNotInterested: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
3
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
4
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
5
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
7
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
8
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
9
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
-
}>;
|
|
11
|
-
//# sourceMappingURL=lead-not-interested.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lead-not-interested.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/lead-not-interested.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAChB,MAAM,gCAAgC,CAAC;AAmBxC,eAAO,MAAM,iBAAiB;;;;;;;;EAwC5B,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.leadNotInterested = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const leadNotInterestedMessage = `
|
|
7
|
-
|
|
8
|
-
Follow the below steps:
|
|
9
|
-
|
|
10
|
-
1. Login to the ReachInbox dashboard.
|
|
11
|
-
2. Go to the "Profile" section and navigate to the "Settings" tab.
|
|
12
|
-
3. Click on the "Integrations" and go to the "Webhooks". Click on the "Add Webhook" button.
|
|
13
|
-
4. Copy the following webhook URL and paste it into the "Webhook URL" field.
|
|
14
|
-
\`\`\`text
|
|
15
|
-
{{webhookUrl}}
|
|
16
|
-
\`\`\`
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
5. Select the event type as "Lead Not Interested".
|
|
20
|
-
6. Click on the "Test Trigger" button to simulate a test and capture the webhook response here.
|
|
21
|
-
`;
|
|
22
|
-
exports.leadNotInterested = (0, pieces_framework_1.createTrigger)({
|
|
23
|
-
name: 'leadNotInterested',
|
|
24
|
-
displayName: 'Lead Not Interested',
|
|
25
|
-
description: 'Triggers when a lead is set to not interested.',
|
|
26
|
-
aiMetadata: {
|
|
27
|
-
description: 'Fires when a lead is marked as not interested in ReachInbox (LEAD_NOT_INTERESTED), signaling a negative or opt-out response. Use to suppress or follow up differently; payload includes the lead and campaign. Requires the webhook to be configured in ReachInbox.',
|
|
28
|
-
},
|
|
29
|
-
props: {
|
|
30
|
-
markdown: pieces_framework_1.Property.MarkDown({
|
|
31
|
-
value: leadNotInterestedMessage,
|
|
32
|
-
}),
|
|
33
|
-
},
|
|
34
|
-
sampleData: {
|
|
35
|
-
email_id: 1,
|
|
36
|
-
lead_id: 1,
|
|
37
|
-
lead_email: 'recipient@example.com',
|
|
38
|
-
email_account: 'sender@example.com',
|
|
39
|
-
step_number: 1,
|
|
40
|
-
message_id: '<test-message-id>',
|
|
41
|
-
timestamp: '2024-03-18T08:15:51.000Z',
|
|
42
|
-
campaign_id: 1,
|
|
43
|
-
campaign_name: 'Test Name',
|
|
44
|
-
event: 'LEAD_NOT_INTERESTED',
|
|
45
|
-
user_webhook_id: '1',
|
|
46
|
-
lead_first_name: 'Lead First Name',
|
|
47
|
-
lead_last_name: 'Lead Last Name',
|
|
48
|
-
email_sent_body: 'Sent Email body',
|
|
49
|
-
email_replied_body: 'Sent Replied body',
|
|
50
|
-
},
|
|
51
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
52
|
-
onEnable(context) {
|
|
53
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
// Implement webhook subscription logic here
|
|
55
|
-
});
|
|
56
|
-
},
|
|
57
|
-
onDisable(context) {
|
|
58
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
// Implement webhook unsubscription logic here
|
|
60
|
-
});
|
|
61
|
-
},
|
|
62
|
-
run(context) {
|
|
63
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
return [context.payload.body];
|
|
65
|
-
});
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
//# sourceMappingURL=lead-not-interested.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lead-not-interested.js","sourceRoot":"","sources":["../../../../src/lib/triggers/lead-not-interested.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AAExC,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;;;GAe9B,CAAC;AAES,QAAA,iBAAiB,GAAG,IAAA,gCAAa,EAAC;IAC7C,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,gDAAgD;IAC7D,UAAU,EAAE;QACV,WAAW,EACT,qQAAqQ;KACxQ;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC1B,KAAK,EAAE,wBAAwB;SAChC,CAAC;KACH;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,CAAC;QACX,OAAO,EAAE,CAAC;QACV,UAAU,EAAE,uBAAuB;QACnC,aAAa,EAAE,oBAAoB;QACnC,WAAW,EAAE,CAAC;QACd,UAAU,EAAE,mBAAmB;QAC/B,SAAS,EAAE,0BAA0B;QACrC,WAAW,EAAE,CAAC;QACd,aAAa,EAAE,WAAW;QAC1B,KAAK,EAAE,qBAAqB;QAC5B,eAAe,EAAE,GAAG;QACpB,eAAe,EAAE,iBAAiB;QAClC,cAAc,EAAE,gBAAgB;QAChC,eAAe,EAAE,iBAAiB;QAClC,kBAAkB,EAAE,mBAAmB;KACxC;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IACvB,QAAQ,CAAC,OAAO;;YACpB,4CAA4C;QAC9C,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;YACrB,8CAA8C;QAChD,CAAC;KAAA;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const replyReceived: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
3
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
4
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
5
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
7
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
8
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").PieceAuthProperty | undefined, {
|
|
9
|
-
markdown: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
-
}>;
|
|
11
|
-
//# sourceMappingURL=reply-received.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reply-received.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/reply-received.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAChB,MAAM,gCAAgC,CAAC;AAkBxC,eAAO,MAAM,aAAa;;;;;;;;EAwCxB,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.replyReceived = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const replyReceivedMessage = `
|
|
7
|
-
|
|
8
|
-
Follow the below steps:
|
|
9
|
-
|
|
10
|
-
1. Login to the ReachInbox dashboard.
|
|
11
|
-
2. Go to the "Profile" section and navigate to the "Settings" tab.
|
|
12
|
-
3. Click on the "Integrations" and go to the "Webhooks". Click on the "Add Webhook" button.
|
|
13
|
-
4. Copy the following webhook URL and paste it into the "Webhook URL" field.
|
|
14
|
-
\`\`\`text
|
|
15
|
-
{{webhookUrl}}
|
|
16
|
-
\`\`\`
|
|
17
|
-
|
|
18
|
-
5. Select the event type as "Reply Received".
|
|
19
|
-
6. Click on the "Test Trigger" button to simulate a test and capture the webhook response here.
|
|
20
|
-
`;
|
|
21
|
-
exports.replyReceived = (0, pieces_framework_1.createTrigger)({
|
|
22
|
-
name: 'replyReceived',
|
|
23
|
-
displayName: 'Reply Received',
|
|
24
|
-
description: 'Triggers when a reply to an email is received.',
|
|
25
|
-
aiMetadata: {
|
|
26
|
-
description: 'Fires when a lead replies to an outreach email (REPLY_RECEIVED). Represents an inbound response; payload includes the lead, sending account, campaign, and the replied message body. Requires the webhook to be configured in ReachInbox.',
|
|
27
|
-
},
|
|
28
|
-
props: {
|
|
29
|
-
markdown: pieces_framework_1.Property.MarkDown({
|
|
30
|
-
value: replyReceivedMessage,
|
|
31
|
-
}),
|
|
32
|
-
},
|
|
33
|
-
sampleData: {
|
|
34
|
-
email_id: 1,
|
|
35
|
-
lead_id: 1,
|
|
36
|
-
lead_email: 'recipient@example.com',
|
|
37
|
-
email_account: 'sender@example.com',
|
|
38
|
-
step_number: 1,
|
|
39
|
-
message_id: '<test-message-id>',
|
|
40
|
-
timestamp: '2024-03-18T08:15:51.000Z',
|
|
41
|
-
campaign_id: 1,
|
|
42
|
-
campaign_name: 'Test Name',
|
|
43
|
-
event: 'REPLY_RECEIVED',
|
|
44
|
-
user_webhook_id: '1',
|
|
45
|
-
lead_first_name: 'Lead First Name',
|
|
46
|
-
lead_last_name: 'Lead Last Name',
|
|
47
|
-
email_sent_body: 'Sent Email body',
|
|
48
|
-
email_replied_body: 'Sent Replied body',
|
|
49
|
-
},
|
|
50
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
51
|
-
onEnable(context) {
|
|
52
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
// Implement webhook subscription logic here
|
|
54
|
-
});
|
|
55
|
-
},
|
|
56
|
-
onDisable(context) {
|
|
57
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
// Implement webhook unsubscription logic here
|
|
59
|
-
});
|
|
60
|
-
},
|
|
61
|
-
run(context) {
|
|
62
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
return [context.payload.body];
|
|
64
|
-
});
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
|
-
//# sourceMappingURL=reply-received.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reply-received.js","sourceRoot":"","sources":["../../../../src/lib/triggers/reply-received.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AAExC,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;GAc1B,CAAC;AAES,QAAA,aAAa,GAAG,IAAA,gCAAa,EAAC;IACzC,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,gDAAgD;IAC7D,UAAU,EAAE;QACV,WAAW,EACT,2OAA2O;KAC9O;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC1B,KAAK,EAAE,oBAAoB;SAC5B,CAAC;KACH;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,CAAC;QACX,OAAO,EAAE,CAAC;QACV,UAAU,EAAE,uBAAuB;QACnC,aAAa,EAAE,oBAAoB;QACnC,WAAW,EAAE,CAAC;QACd,UAAU,EAAE,mBAAmB;QAC/B,SAAS,EAAE,0BAA0B;QACrC,WAAW,EAAE,CAAC;QACd,aAAa,EAAE,WAAW;QAC1B,KAAK,EAAE,gBAAgB;QACvB,eAAe,EAAE,GAAG;QACpB,eAAe,EAAE,iBAAiB;QAClC,cAAc,EAAE,gBAAgB;QAChC,eAAe,EAAE,iBAAiB;QAClC,kBAAkB,EAAE,mBAAmB;KACxC;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IACvB,QAAQ,CAAC,OAAO;;YACpB,4CAA4C;QAC9C,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;YACrB,8CAA8C;QAChD,CAAC;KAAA;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|