@activepieces/piece-respond-io 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 +118 -59
- package/src/index.d.ts +0 -4
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/add-comment-to-conversation.d.ts +0 -9
- package/src/lib/actions/add-comment-to-conversation.d.ts.map +0 -1
- package/src/lib/actions/add-comment-to-conversation.js +0 -45
- package/src/lib/actions/add-comment-to-conversation.js.map +0 -1
- package/src/lib/actions/add-tag-to-contact.d.ts +0 -9
- package/src/lib/actions/add-tag-to-contact.d.ts.map +0 -1
- package/src/lib/actions/add-tag-to-contact.js +0 -57
- package/src/lib/actions/add-tag-to-contact.js.map +0 -1
- package/src/lib/actions/assign-or-unassign-conversation.d.ts +0 -26
- package/src/lib/actions/assign-or-unassign-conversation.d.ts.map +0 -1
- package/src/lib/actions/assign-or-unassign-conversation.js +0 -46
- package/src/lib/actions/assign-or-unassign-conversation.js.map +0 -1
- package/src/lib/actions/create-contact.d.ts +0 -14
- package/src/lib/actions/create-contact.d.ts.map +0 -1
- package/src/lib/actions/create-contact.js +0 -129
- package/src/lib/actions/create-contact.js.map +0 -1
- package/src/lib/actions/create-or-update-contact.d.ts +0 -14
- package/src/lib/actions/create-or-update-contact.d.ts.map +0 -1
- package/src/lib/actions/create-or-update-contact.js +0 -131
- package/src/lib/actions/create-or-update-contact.js.map +0 -1
- package/src/lib/actions/delete-contact.d.ts +0 -8
- package/src/lib/actions/delete-contact.d.ts.map +0 -1
- package/src/lib/actions/delete-contact.js +0 -31
- package/src/lib/actions/delete-contact.js.map +0 -1
- package/src/lib/actions/find-contact.d.ts +0 -9
- package/src/lib/actions/find-contact.d.ts.map +0 -1
- package/src/lib/actions/find-contact.js +0 -68
- package/src/lib/actions/find-contact.js.map +0 -1
- package/src/lib/actions/open-conversation.d.ts +0 -8
- package/src/lib/actions/open-conversation.d.ts.map +0 -1
- package/src/lib/actions/open-conversation.js +0 -34
- package/src/lib/actions/open-conversation.js.map +0 -1
- package/src/lib/common/auth.d.ts +0 -5
- package/src/lib/common/auth.d.ts.map +0 -1
- package/src/lib/common/auth.js +0 -49
- package/src/lib/common/auth.js.map +0 -1
- package/src/lib/common/client.d.ts +0 -11
- package/src/lib/common/client.d.ts.map +0 -1
- package/src/lib/common/client.js +0 -56
- package/src/lib/common/client.js.map +0 -1
- package/src/lib/common/props.d.ts +0 -7
- package/src/lib/common/props.d.ts.map +0 -1
- package/src/lib/common/props.js +0 -119
- package/src/lib/common/props.js.map +0 -1
- package/src/lib/triggers/contact-tag-updated.d.ts +0 -19
- package/src/lib/triggers/contact-tag-updated.d.ts.map +0 -1
- package/src/lib/triggers/contact-tag-updated.js +0 -50
- package/src/lib/triggers/contact-tag-updated.js.map +0 -1
- package/src/lib/triggers/contact-updated.d.ts +0 -19
- package/src/lib/triggers/contact-updated.d.ts.map +0 -1
- package/src/lib/triggers/contact-updated.js +0 -50
- package/src/lib/triggers/contact-updated.js.map +0 -1
- package/src/lib/triggers/conversation-closed.d.ts +0 -19
- package/src/lib/triggers/conversation-closed.d.ts.map +0 -1
- package/src/lib/triggers/conversation-closed.js +0 -50
- package/src/lib/triggers/conversation-closed.js.map +0 -1
- package/src/lib/triggers/conversation-opened.d.ts +0 -19
- package/src/lib/triggers/conversation-opened.d.ts.map +0 -1
- package/src/lib/triggers/conversation-opened.js +0 -87
- package/src/lib/triggers/conversation-opened.js.map +0 -1
- package/src/lib/triggers/new-contact.d.ts +0 -19
- package/src/lib/triggers/new-contact.d.ts.map +0 -1
- package/src/lib/triggers/new-contact.js +0 -50
- package/src/lib/triggers/new-contact.js.map +0 -1
- package/src/lib/triggers/new-incoming-message.d.ts +0 -19
- package/src/lib/triggers/new-incoming-message.d.ts.map +0 -1
- package/src/lib/triggers/new-incoming-message.js +0 -50
- package/src/lib/triggers/new-incoming-message.js.map +0 -1
- package/src/lib/triggers/new-outgoing-message.d.ts +0 -19
- package/src/lib/triggers/new-outgoing-message.d.ts.map +0 -1
- package/src/lib/triggers/new-outgoing-message.js +0 -50
- package/src/lib/triggers/new-outgoing-message.js.map +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.conversationClosedTrigger = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../common/auth");
|
|
7
|
-
exports.conversationClosedTrigger = (0, pieces_framework_1.createTrigger)({
|
|
8
|
-
name: 'conversation_closed',
|
|
9
|
-
displayName: 'Conversation Closed',
|
|
10
|
-
description: 'Triggers when a conversation is closed.',
|
|
11
|
-
aiMetadata: {
|
|
12
|
-
description: 'Fires when a conversation is closed in Respond.io, delivering the contact and conversation that was closed. Use to run follow-up actions after a conversation is resolved. Requires manually configuring a conversation.closed webhook in Respond.io.',
|
|
13
|
-
},
|
|
14
|
-
auth: auth_1.respondIoAuth,
|
|
15
|
-
props: {
|
|
16
|
-
webhookInstructions: pieces_framework_1.Property.MarkDown({
|
|
17
|
-
value: `
|
|
18
|
-
To use this trigger, you need to manually set up a webhook in your Respond.io account:
|
|
19
|
-
|
|
20
|
-
1. Login to your Respond.io account.
|
|
21
|
-
2. Go to Settings > Integrations > Webhooks.
|
|
22
|
-
3. Click on "Add Webhook" or "Create New Webhook".
|
|
23
|
-
4. Add the following URL in the **Webhook URL** field:
|
|
24
|
-
\`\`\`text
|
|
25
|
-
{{webhookUrl}}
|
|
26
|
-
\`\`\`
|
|
27
|
-
5. Select **conversation.closed** from the event types.
|
|
28
|
-
6. Click Save to create the webhook.
|
|
29
|
-
`,
|
|
30
|
-
}),
|
|
31
|
-
},
|
|
32
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
33
|
-
sampleData: undefined,
|
|
34
|
-
onEnable(context) {
|
|
35
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
// No need to register webhooks programmatically as user will do it manually
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
onDisable(context) {
|
|
40
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
// No need to unregister webhooks as user will do it manually
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
run(context) {
|
|
45
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
return [context.payload.body];
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=conversation-closed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-closed.js","sourceRoot":"","sources":["../../../../src/lib/triggers/conversation-closed.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AAExC,yCAA+C;AAElC,QAAA,yBAAyB,GAAG,IAAA,gCAAa,EAAC;IACrD,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,yCAAyC;IACtD,UAAU,EAAE;QACV,WAAW,EAAE,uPAAuP;KACrQ;IACD,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACrC,KAAK,EAAE;;;;;;;;;;;;IAYT;SACC,CAAC;KACH;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,UAAU,EAAE,SAAS;IACf,QAAQ,CAAC,OAAO;;YACpB,4EAA4E;QAC9E,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;YACrB,6DAA6D;QAC/D,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const conversationOpenedTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
7
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>, {
|
|
9
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
12
|
-
}>, {
|
|
13
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
14
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
16
|
-
}>, {
|
|
17
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
18
|
-
}>;
|
|
19
|
-
//# sourceMappingURL=conversation-opened.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-opened.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/conversation-opened.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAChB,MAAM,gCAAgC,CAAC;AAIxC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;EAiFpC,CAAC"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.conversationOpenedTrigger = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../common/auth");
|
|
7
|
-
exports.conversationOpenedTrigger = (0, pieces_framework_1.createTrigger)({
|
|
8
|
-
auth: auth_1.respondIoAuth,
|
|
9
|
-
name: 'conversation_opened',
|
|
10
|
-
displayName: 'Conversation Opened',
|
|
11
|
-
description: 'Triggers when a new conversation is opened.',
|
|
12
|
-
aiMetadata: {
|
|
13
|
-
description: 'Fires when a conversation is opened in Respond.io, delivering the contact and conversation details (including source and first incoming message). Use to start a workflow when a new conversation begins. Requires manually configuring a conversation.opened webhook in Respond.io.',
|
|
14
|
-
},
|
|
15
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
16
|
-
props: {
|
|
17
|
-
webhookInstructions: pieces_framework_1.Property.MarkDown({
|
|
18
|
-
value: `
|
|
19
|
-
To use this trigger, you need to manually set up a webhook in your Respond.io account:
|
|
20
|
-
|
|
21
|
-
1. Login to your Respond.io account.
|
|
22
|
-
2. Go to Settings > Integrations > Webhooks.
|
|
23
|
-
3. Click on "Add Webhook" or "Create New Webhook".
|
|
24
|
-
4. Add the following URL in the **Webhook URL** field:
|
|
25
|
-
\`\`\`text
|
|
26
|
-
{{webhookUrl}}
|
|
27
|
-
\`\`\`
|
|
28
|
-
5. Select **conversation.opened** from the event types.
|
|
29
|
-
6. Click Save to create the webhook.
|
|
30
|
-
`,
|
|
31
|
-
}),
|
|
32
|
-
},
|
|
33
|
-
onEnable(context) {
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
// No need to register webhooks programmatically as user will do it manually
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
onDisable(context) {
|
|
39
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
// No need to unregister webhooks as user will do it manually
|
|
41
|
-
});
|
|
42
|
-
},
|
|
43
|
-
run(context) {
|
|
44
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
const payload = context.payload.body;
|
|
46
|
-
if (payload.event_type !== 'conversation.opened')
|
|
47
|
-
return [];
|
|
48
|
-
return [payload];
|
|
49
|
-
});
|
|
50
|
-
},
|
|
51
|
-
test() {
|
|
52
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
return [
|
|
54
|
-
{
|
|
55
|
-
event_type: 'conversation.opened',
|
|
56
|
-
event_id: '8b9c2905-7a38-4aad-a6b7-b9120dc140fe',
|
|
57
|
-
contact: {
|
|
58
|
-
id: 1,
|
|
59
|
-
firstName: 'John',
|
|
60
|
-
lastName: 'Doe',
|
|
61
|
-
phone: '+60123456789',
|
|
62
|
-
email: 'johndoe@sample.com',
|
|
63
|
-
language: 'en',
|
|
64
|
-
profilePic: 'https://cdn.chatapi.net/johndoe.png',
|
|
65
|
-
countryCode: 'MY',
|
|
66
|
-
status: 'open',
|
|
67
|
-
assignee: {
|
|
68
|
-
id: 2,
|
|
69
|
-
firstName: 'John',
|
|
70
|
-
lastName: 'Doe',
|
|
71
|
-
email: 'johndoe@sample.com',
|
|
72
|
-
},
|
|
73
|
-
created_at: 1663274081,
|
|
74
|
-
},
|
|
75
|
-
conversation: {
|
|
76
|
-
source: 'api',
|
|
77
|
-
conversationOpenedAt: 1663274081,
|
|
78
|
-
firstIncomingMessage: 'hello',
|
|
79
|
-
firstIncomingMessageChannelId: 1,
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
];
|
|
83
|
-
});
|
|
84
|
-
},
|
|
85
|
-
sampleData: {},
|
|
86
|
-
});
|
|
87
|
-
//# sourceMappingURL=conversation-opened.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-opened.js","sourceRoot":"","sources":["../../../../src/lib/triggers/conversation-opened.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AAExC,yCAA+C;AAElC,QAAA,yBAAyB,GAAG,IAAA,gCAAa,EAAC;IACrD,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,6CAA6C;IAC1D,UAAU,EAAE;QACV,WAAW,EAAE,sRAAsR;KACpS;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACrC,KAAK,EAAE;;;;;;;;;;;;WAYF;SACN,CAAC;KACH;IAEK,QAAQ,CAAC,OAAO;;YACpB,4EAA4E;QAC9E,CAAC;KAAA;IAEK,SAAS,CAAC,OAAO;;YACrB,6DAA6D;QAC/D,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAI/B,CAAC;YAEF,IAAI,OAAO,CAAC,UAAU,KAAK,qBAAqB;gBAAE,OAAO,EAAE,CAAC;YAE5D,OAAO,CAAC,OAAO,CAAC,CAAC;QACnB,CAAC;KAAA;IAEK,IAAI;;YACR,OAAO;gBACL;oBACE,UAAU,EAAE,qBAAqB;oBACjC,QAAQ,EAAE,sCAAsC;oBAChD,OAAO,EAAE;wBACP,EAAE,EAAE,CAAC;wBACL,SAAS,EAAE,MAAM;wBACjB,QAAQ,EAAE,KAAK;wBACf,KAAK,EAAE,cAAc;wBACrB,KAAK,EAAE,oBAAoB;wBAC3B,QAAQ,EAAE,IAAI;wBACd,UAAU,EAAE,qCAAqC;wBACjD,WAAW,EAAE,IAAI;wBACjB,MAAM,EAAE,MAAM;wBACd,QAAQ,EAAE;4BACR,EAAE,EAAE,CAAC;4BACL,SAAS,EAAE,MAAM;4BACjB,QAAQ,EAAE,KAAK;4BACf,KAAK,EAAE,oBAAoB;yBAC5B;wBACD,UAAU,EAAE,UAAU;qBACvB;oBACD,YAAY,EAAE;wBACZ,MAAM,EAAE,KAAK;wBACb,oBAAoB,EAAE,UAAU;wBAChC,oBAAoB,EAAE,OAAO;wBAC7B,6BAA6B,EAAE,CAAC;qBACjC;iBACF;aACF,CAAC;QACJ,CAAC;KAAA;IAED,UAAU,EAAE,EAAE;CACf,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newContactTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
7
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>, {
|
|
9
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
12
|
-
}>, {
|
|
13
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
14
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
16
|
-
}>, {
|
|
17
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
18
|
-
}>;
|
|
19
|
-
//# sourceMappingURL=new-contact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-contact.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/new-contact.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAChB,MAAM,gCAAgC,CAAC;AAIxC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;EAuC5B,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newContactTrigger = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../common/auth");
|
|
7
|
-
exports.newContactTrigger = (0, pieces_framework_1.createTrigger)({
|
|
8
|
-
name: 'new_contact',
|
|
9
|
-
displayName: 'New Contact',
|
|
10
|
-
description: 'Triggers when a new contact is created in Respond.io.',
|
|
11
|
-
aiMetadata: {
|
|
12
|
-
description: 'Fires when a new contact is created in Respond.io, delivering the newly created contact. Use to react to contact onboarding; for changes to existing contacts use the Contact Updated trigger instead. Requires manually configuring a contact.created webhook in Respond.io.',
|
|
13
|
-
},
|
|
14
|
-
auth: auth_1.respondIoAuth,
|
|
15
|
-
props: {
|
|
16
|
-
webhookInstructions: pieces_framework_1.Property.MarkDown({
|
|
17
|
-
value: `
|
|
18
|
-
To use this trigger, you need to manually set up a webhook in your Respond.io account:
|
|
19
|
-
|
|
20
|
-
1. Login to your Respond.io account.
|
|
21
|
-
2. Go to Settings > Integrations > Webhooks.
|
|
22
|
-
3. Click on "Add Webhook" or "Create New Webhook".
|
|
23
|
-
4. Add the following URL in the **Webhook URL** field:
|
|
24
|
-
\`\`\`text
|
|
25
|
-
{{webhookUrl}}
|
|
26
|
-
\`\`\`
|
|
27
|
-
5. Select **contact.created** from the event types.
|
|
28
|
-
6. Click Save to create the webhook.
|
|
29
|
-
`,
|
|
30
|
-
}),
|
|
31
|
-
},
|
|
32
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
33
|
-
sampleData: undefined,
|
|
34
|
-
onEnable(context) {
|
|
35
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
// No need to register webhooks programmatically as user will do it manually
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
onDisable(context) {
|
|
40
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
// No need to unregister webhooks as user will do it manually
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
run(context) {
|
|
45
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
return [context.payload.body];
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=new-contact.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-contact.js","sourceRoot":"","sources":["../../../../src/lib/triggers/new-contact.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AAExC,yCAA+C;AAElC,QAAA,iBAAiB,GAAG,IAAA,gCAAa,EAAC;IAC7C,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,uDAAuD;IACpE,UAAU,EAAE;QACV,WAAW,EAAE,+QAA+Q;KAC7R;IACD,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACrC,KAAK,EAAE;;;;;;;;;;;;IAYT;SACC,CAAC;KACH;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,UAAU,EAAE,SAAS;IAEf,QAAQ,CAAC,OAAO;;YACpB,4EAA4E;QAC9E,CAAC;KAAA;IAEK,SAAS,CAAC,OAAO;;YACrB,6DAA6D;QAC/D,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newIncomingMessageTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
7
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>, {
|
|
9
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
12
|
-
}>, {
|
|
13
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
14
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
16
|
-
}>, {
|
|
17
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
18
|
-
}>;
|
|
19
|
-
//# sourceMappingURL=new-incoming-message.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-incoming-message.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/new-incoming-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAChB,MAAM,gCAAgC,CAAC;AAGxC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;EAqCpC,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newIncomingMessageTrigger = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../common/auth");
|
|
7
|
-
exports.newIncomingMessageTrigger = (0, pieces_framework_1.createTrigger)({
|
|
8
|
-
name: 'new_incoming_message',
|
|
9
|
-
displayName: 'New Incoming Message',
|
|
10
|
-
description: 'Triggers when a new message is received from a contact.',
|
|
11
|
-
aiMetadata: {
|
|
12
|
-
description: 'Fires when a contact sends an inbound message into Respond.io, delivering the message and its contact. Use to react to incoming customer messages; for messages sent out from Respond.io use the New Outgoing Message trigger. Requires manually configuring a message.received webhook in Respond.io.',
|
|
13
|
-
},
|
|
14
|
-
auth: auth_1.respondIoAuth,
|
|
15
|
-
props: {
|
|
16
|
-
webhookInstructions: pieces_framework_1.Property.MarkDown({
|
|
17
|
-
value: `
|
|
18
|
-
To use this trigger, you need to manually set up a webhook in your Respond.io account:
|
|
19
|
-
|
|
20
|
-
1. Login to your Respond.io account.
|
|
21
|
-
2. Go to Settings > Integrations > Webhooks.
|
|
22
|
-
3. Click on "Add Webhook" or "Create New Webhook".
|
|
23
|
-
4. Add the following URL in the **Webhook URL** field:
|
|
24
|
-
\`\`\`text
|
|
25
|
-
{{webhookUrl}}
|
|
26
|
-
\`\`\`
|
|
27
|
-
5. Select **message.received** from the event types.
|
|
28
|
-
6. Click Save to create the webhook.
|
|
29
|
-
`,
|
|
30
|
-
}),
|
|
31
|
-
},
|
|
32
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
33
|
-
sampleData: undefined,
|
|
34
|
-
onEnable(context) {
|
|
35
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
// No need to register webhooks programmatically as user will do it manually
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
onDisable(context) {
|
|
40
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
// No need to unregister webhooks as user will do it manually
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
run(context) {
|
|
45
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
return [context.payload.body];
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=new-incoming-message.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-incoming-message.js","sourceRoot":"","sources":["../../../../src/lib/triggers/new-incoming-message.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,yCAA+C;AAElC,QAAA,yBAAyB,GAAG,IAAA,gCAAa,EAAC;IACrD,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,yDAAyD;IACtE,UAAU,EAAE;QACV,WAAW,EAAE,wSAAwS;KACtT;IACD,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACrC,KAAK,EAAE;;;;;;;;;;;;IAYT;SACC,CAAC;KACH;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,UAAU,EAAE,SAAS;IACf,QAAQ,CAAC,OAAO;;YACpB,4EAA4E;QAC9E,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;YACrB,6DAA6D;QAC/D,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newOutgoingMessageTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
7
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>, {
|
|
9
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
12
|
-
}>, {
|
|
13
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
14
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
16
|
-
}>, {
|
|
17
|
-
webhookInstructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
18
|
-
}>;
|
|
19
|
-
//# sourceMappingURL=new-outgoing-message.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-outgoing-message.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/new-outgoing-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAChB,MAAM,gCAAgC,CAAC;AAGxC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;EAqCpC,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newOutgoingMessageTrigger = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../common/auth");
|
|
7
|
-
exports.newOutgoingMessageTrigger = (0, pieces_framework_1.createTrigger)({
|
|
8
|
-
name: 'new_outgoing_message',
|
|
9
|
-
displayName: 'New Outgoing Message',
|
|
10
|
-
description: 'Triggers when a message is sent from Respond.io.',
|
|
11
|
-
aiMetadata: {
|
|
12
|
-
description: 'Fires when a message is sent out from Respond.io to a contact (by an agent, automation, or API), delivering the message and its contact. Use to react to outbound messages; for messages received from contacts use the New Incoming Message trigger. Requires manually configuring a message.sent webhook in Respond.io.',
|
|
13
|
-
},
|
|
14
|
-
auth: auth_1.respondIoAuth,
|
|
15
|
-
props: {
|
|
16
|
-
webhookInstructions: pieces_framework_1.Property.MarkDown({
|
|
17
|
-
value: `
|
|
18
|
-
To use this trigger, you need to manually set up a webhook in your Respond.io account:
|
|
19
|
-
|
|
20
|
-
1. Login to your Respond.io account.
|
|
21
|
-
2. Go to Settings > Integrations > Webhooks.
|
|
22
|
-
3. Click on "Add Webhook" or "Create New Webhook".
|
|
23
|
-
4. Add the following URL in the **Webhook URL** field:
|
|
24
|
-
\`\`\`text
|
|
25
|
-
{{webhookUrl}}
|
|
26
|
-
\`\`\`
|
|
27
|
-
5. Select **message.sent** from the event types.
|
|
28
|
-
6. Click Save to create the webhook.
|
|
29
|
-
`,
|
|
30
|
-
}),
|
|
31
|
-
},
|
|
32
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
33
|
-
sampleData: undefined,
|
|
34
|
-
onEnable(context) {
|
|
35
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
// No need to register webhooks programmatically as user will do it manually
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
onDisable(context) {
|
|
40
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
// No need to unregister webhooks as user will do it manually
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
run(context) {
|
|
45
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
return [context.payload.body];
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=new-outgoing-message.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-outgoing-message.js","sourceRoot":"","sources":["../../../../src/lib/triggers/new-outgoing-message.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,yCAA+C;AAElC,QAAA,yBAAyB,GAAG,IAAA,gCAAa,EAAC;IACrD,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,kDAAkD;IAC/D,UAAU,EAAE;QACV,WAAW,EAAE,2TAA2T;KACzU;IACD,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACrC,KAAK,EAAE;;;;;;;;;;;;IAYT;SACC,CAAC;KACH;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,UAAU,EAAE,SAAS;IACf,QAAQ,CAAC,OAAO;;YACpB,4EAA4E;QAC9E,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;YACrB,6DAA6D;QAC/D,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|