@activepieces/piece-slack 0.17.1 → 0.17.3
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 -15
- package/src/index.js +96 -208
- 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-reaction-to-message.d.ts +0 -14
- package/src/lib/actions/add-reaction-to-message.d.ts.map +0 -1
- package/src/lib/actions/add-reaction-to-message.js +0 -58
- package/src/lib/actions/add-reaction-to-message.js.map +0 -1
- package/src/lib/actions/create-channel.d.ts +0 -8
- package/src/lib/actions/create-channel.d.ts.map +0 -1
- package/src/lib/actions/create-channel.js +0 -35
- package/src/lib/actions/create-channel.js.map +0 -1
- package/src/lib/actions/delete-message.d.ts +0 -12
- package/src/lib/actions/delete-message.d.ts.map +0 -1
- package/src/lib/actions/delete-message.js +0 -51
- package/src/lib/actions/delete-message.js.map +0 -1
- package/src/lib/actions/find-user-by-email.d.ts +0 -7
- package/src/lib/actions/find-user-by-email.d.ts.map +0 -1
- package/src/lib/actions/find-user-by-email.js +0 -30
- package/src/lib/actions/find-user-by-email.js.map +0 -1
- package/src/lib/actions/find-user-by-handle.d.ts +0 -7
- package/src/lib/actions/find-user-by-handle.d.ts.map +0 -1
- package/src/lib/actions/find-user-by-handle.js +0 -53
- package/src/lib/actions/find-user-by-handle.js.map +0 -1
- package/src/lib/actions/find-user-by-id.d.ts +0 -7
- package/src/lib/actions/find-user-by-id.d.ts.map +0 -1
- package/src/lib/actions/find-user-by-id.js +0 -29
- package/src/lib/actions/find-user-by-id.js.map +0 -1
- package/src/lib/actions/get-channel-history.d.ts +0 -15
- package/src/lib/actions/get-channel-history.d.ts.map +0 -1
- package/src/lib/actions/get-channel-history.js +0 -77
- package/src/lib/actions/get-channel-history.js.map +0 -1
- package/src/lib/actions/get-file.d.ts +0 -7
- package/src/lib/actions/get-file.d.ts.map +0 -1
- package/src/lib/actions/get-file.js +0 -48
- package/src/lib/actions/get-file.js.map +0 -1
- package/src/lib/actions/get-group-by-handle.d.ts +0 -7
- package/src/lib/actions/get-group-by-handle.d.ts.map +0 -1
- package/src/lib/actions/get-group-by-handle.js +0 -36
- package/src/lib/actions/get-group-by-handle.js.map +0 -1
- package/src/lib/actions/get-message.d.ts +0 -12
- package/src/lib/actions/get-message.d.ts.map +0 -1
- package/src/lib/actions/get-message.js +0 -41
- package/src/lib/actions/get-message.js.map +0 -1
- package/src/lib/actions/invite-user-to-channel.d.ts +0 -15
- package/src/lib/actions/invite-user-to-channel.d.ts.map +0 -1
- package/src/lib/actions/invite-user-to-channel.js +0 -30
- package/src/lib/actions/invite-user-to-channel.js.map +0 -1
- package/src/lib/actions/list-users.d.ts +0 -8
- package/src/lib/actions/list-users.d.ts.map +0 -1
- package/src/lib/actions/list-users.js +0 -57
- package/src/lib/actions/list-users.js.map +0 -1
- package/src/lib/actions/markdown-to-slack-format.d.ts +0 -4
- package/src/lib/actions/markdown-to-slack-format.d.ts.map +0 -1
- package/src/lib/actions/markdown-to-slack-format.js +0 -24
- package/src/lib/actions/markdown-to-slack-format.js.map +0 -1
- package/src/lib/actions/request-action-direct-message.d.ts +0 -15
- package/src/lib/actions/request-action-direct-message.d.ts.map +0 -1
- package/src/lib/actions/request-action-direct-message.js +0 -31
- package/src/lib/actions/request-action-direct-message.js.map +0 -1
- package/src/lib/actions/request-action-message.d.ts +0 -18
- package/src/lib/actions/request-action-message.d.ts.map +0 -1
- package/src/lib/actions/request-action-message.js +0 -39
- package/src/lib/actions/request-action-message.js.map +0 -1
- package/src/lib/actions/request-approval-direct-message.d.ts +0 -14
- package/src/lib/actions/request-approval-direct-message.d.ts.map +0 -1
- package/src/lib/actions/request-approval-direct-message.js +0 -128
- package/src/lib/actions/request-approval-direct-message.js.map +0 -1
- package/src/lib/actions/request-approval-message.d.ts +0 -15
- package/src/lib/actions/request-approval-message.d.ts.map +0 -1
- package/src/lib/actions/request-approval-message.js +0 -128
- package/src/lib/actions/request-approval-message.js.map +0 -1
- package/src/lib/actions/retrieve-thread-messages.d.ts +0 -11
- package/src/lib/actions/retrieve-thread-messages.d.ts.map +0 -1
- package/src/lib/actions/retrieve-thread-messages.js +0 -38
- package/src/lib/actions/retrieve-thread-messages.js.map +0 -1
- package/src/lib/actions/search-messages.d.ts +0 -7
- package/src/lib/actions/search-messages.d.ts.map +0 -1
- package/src/lib/actions/search-messages.js +0 -48
- package/src/lib/actions/search-messages.js.map +0 -1
- package/src/lib/actions/send-direct-message-action.d.ts +0 -17
- package/src/lib/actions/send-direct-message-action.d.ts.map +0 -1
- package/src/lib/actions/send-direct-message-action.js +0 -58
- package/src/lib/actions/send-direct-message-action.js.map +0 -1
- package/src/lib/actions/send-message-action.d.ts +0 -22
- package/src/lib/actions/send-message-action.d.ts.map +0 -1
- package/src/lib/actions/send-message-action.js +0 -84
- package/src/lib/actions/send-message-action.js.map +0 -1
- package/src/lib/actions/set-channel-topic.d.ts +0 -12
- package/src/lib/actions/set-channel-topic.d.ts.map +0 -1
- package/src/lib/actions/set-channel-topic.js +0 -34
- package/src/lib/actions/set-channel-topic.js.map +0 -1
- package/src/lib/actions/set-user-status.d.ts +0 -9
- package/src/lib/actions/set-user-status.d.ts.map +0 -1
- package/src/lib/actions/set-user-status.js +0 -48
- package/src/lib/actions/set-user-status.js.map +0 -1
- package/src/lib/actions/update-message.d.ts +0 -15
- package/src/lib/actions/update-message.d.ts.map +0 -1
- package/src/lib/actions/update-message.js +0 -57
- package/src/lib/actions/update-message.js.map +0 -1
- package/src/lib/actions/update-profile.d.ts +0 -10
- package/src/lib/actions/update-profile.d.ts.map +0 -1
- package/src/lib/actions/update-profile.js +0 -48
- package/src/lib/actions/update-profile.js.map +0 -1
- package/src/lib/actions/update-user-groups.d.ts +0 -9
- package/src/lib/actions/update-user-groups.d.ts.map +0 -1
- package/src/lib/actions/update-user-groups.js +0 -61
- package/src/lib/actions/update-user-groups.js.map +0 -1
- package/src/lib/actions/upload-file.d.ts +0 -13
- package/src/lib/actions/upload-file.d.ts.map +0 -1
- package/src/lib/actions/upload-file.js +0 -43
- package/src/lib/actions/upload-file.js.map +0 -1
- package/src/lib/auth.d.ts +0 -6
- package/src/lib/auth.d.ts.map +0 -1
- package/src/lib/auth.js +0 -84
- package/src/lib/auth.js.map +0 -1
- package/src/lib/common/auth-helpers.d.ts +0 -9
- package/src/lib/common/auth-helpers.d.ts.map +0 -1
- package/src/lib/common/auth-helpers.js +0 -82
- package/src/lib/common/auth-helpers.js.map +0 -1
- package/src/lib/common/props.d.ts +0 -37
- package/src/lib/common/props.d.ts.map +0 -1
- package/src/lib/common/props.js +0 -247
- package/src/lib/common/props.js.map +0 -1
- package/src/lib/common/request-action.d.ts +0 -41
- package/src/lib/common/request-action.d.ts.map +0 -1
- package/src/lib/common/request-action.js +0 -114
- package/src/lib/common/request-action.js.map +0 -1
- package/src/lib/common/types.d.ts +0 -10
- package/src/lib/common/types.d.ts.map +0 -1
- package/src/lib/common/types.js +0 -3
- package/src/lib/common/types.js.map +0 -1
- package/src/lib/common/utils.d.ts +0 -41
- package/src/lib/common/utils.d.ts.map +0 -1
- package/src/lib/common/utils.js +0 -134
- package/src/lib/common/utils.js.map +0 -1
- package/src/lib/triggers/new-channel.d.ts +0 -15
- package/src/lib/triggers/new-channel.d.ts.map +0 -1
- package/src/lib/triggers/new-channel.js +0 -63
- package/src/lib/triggers/new-channel.js.map +0 -1
- package/src/lib/triggers/new-command-in-direct-message.d.ts +0 -47
- package/src/lib/triggers/new-command-in-direct-message.d.ts.map +0 -1
- package/src/lib/triggers/new-command-in-direct-message.js +0 -74
- package/src/lib/triggers/new-command-in-direct-message.js.map +0 -1
- package/src/lib/triggers/new-command.d.ts +0 -63
- package/src/lib/triggers/new-command.d.ts.map +0 -1
- package/src/lib/triggers/new-command.js +0 -98
- package/src/lib/triggers/new-command.js.map +0 -1
- package/src/lib/triggers/new-direct-message.d.ts +0 -27
- package/src/lib/triggers/new-direct-message.d.ts.map +0 -1
- package/src/lib/triggers/new-direct-message.js +0 -54
- package/src/lib/triggers/new-direct-message.js.map +0 -1
- package/src/lib/triggers/new-mention-in-direct-message.d.ts +0 -43
- package/src/lib/triggers/new-mention-in-direct-message.d.ts.map +0 -1
- package/src/lib/triggers/new-mention-in-direct-message.js +0 -63
- package/src/lib/triggers/new-mention-in-direct-message.js.map +0 -1
- package/src/lib/triggers/new-mention.d.ts +0 -79
- package/src/lib/triggers/new-mention.d.ts.map +0 -1
- package/src/lib/triggers/new-mention.js +0 -104
- package/src/lib/triggers/new-mention.js.map +0 -1
- package/src/lib/triggers/new-message-in-channel.d.ts +0 -43
- package/src/lib/triggers/new-message-in-channel.d.ts.map +0 -1
- package/src/lib/triggers/new-message-in-channel.js +0 -57
- package/src/lib/triggers/new-message-in-channel.js.map +0 -1
- package/src/lib/triggers/new-message.d.ts +0 -23
- package/src/lib/triggers/new-message.d.ts.map +0 -1
- package/src/lib/triggers/new-message.js +0 -45
- package/src/lib/triggers/new-message.js.map +0 -1
- package/src/lib/triggers/new-modal-interaction.d.ts +0 -23
- package/src/lib/triggers/new-modal-interaction.d.ts.map +0 -1
- package/src/lib/triggers/new-modal-interaction.js +0 -51
- package/src/lib/triggers/new-modal-interaction.js.map +0 -1
- package/src/lib/triggers/new-reaction-added.d.ts +0 -59
- package/src/lib/triggers/new-reaction-added.d.ts.map +0 -1
- package/src/lib/triggers/new-reaction-added.js +0 -80
- package/src/lib/triggers/new-reaction-added.js.map +0 -1
- package/src/lib/triggers/new-reaction-removed.d.ts +0 -59
- package/src/lib/triggers/new-reaction-removed.d.ts.map +0 -1
- package/src/lib/triggers/new-reaction-removed.js +0 -77
- package/src/lib/triggers/new-reaction-removed.js.map +0 -1
- package/src/lib/triggers/new-saved-message.d.ts +0 -15
- package/src/lib/triggers/new-saved-message.d.ts.map +0 -1
- package/src/lib/triggers/new-saved-message.js +0 -35
- package/src/lib/triggers/new-saved-message.js.map +0 -1
- package/src/lib/triggers/new-team-custom-emoji.d.ts +0 -15
- package/src/lib/triggers/new-team-custom-emoji.d.ts.map +0 -1
- package/src/lib/triggers/new-team-custom-emoji.js +0 -50
- package/src/lib/triggers/new-team-custom-emoji.js.map +0 -1
- package/src/lib/triggers/new-user.d.ts +0 -15
- package/src/lib/triggers/new-user.d.ts.map +0 -1
- package/src/lib/triggers/new-user.js +0 -90
- package/src/lib/triggers/new-user.js.map +0 -1
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.requestSendApprovalMessageAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const utils_1 = require("../common/utils");
|
|
7
|
-
const auth_1 = require("../auth");
|
|
8
|
-
const shared_1 = require("@activepieces/shared");
|
|
9
|
-
const props_1 = require("../common/props");
|
|
10
|
-
const web_api_1 = require("@slack/web-api");
|
|
11
|
-
const auth_helpers_1 = require("../common/auth-helpers");
|
|
12
|
-
exports.requestSendApprovalMessageAction = (0, pieces_framework_1.createAction)({
|
|
13
|
-
auth: auth_1.slackAuth,
|
|
14
|
-
name: 'request_approval_message',
|
|
15
|
-
displayName: 'Request Approval in a Channel',
|
|
16
|
-
description: 'Send approval message to a channel and then wait until the message is approved or disapproved',
|
|
17
|
-
props: {
|
|
18
|
-
info: props_1.singleSelectChannelInfo,
|
|
19
|
-
channel: (0, props_1.slackChannel)(true),
|
|
20
|
-
text: props_1.text,
|
|
21
|
-
username: props_1.username,
|
|
22
|
-
profilePicture: props_1.profilePicture,
|
|
23
|
-
mentionOriginFlow: props_1.mentionOriginFlow,
|
|
24
|
-
},
|
|
25
|
-
run(context) {
|
|
26
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
if (context.executionType === shared_1.ExecutionType.BEGIN) {
|
|
28
|
-
const token = (0, auth_helpers_1.getBotToken)(context.auth);
|
|
29
|
-
const { channel, username, profilePicture, mentionOriginFlow } = context.propsValue;
|
|
30
|
-
(0, shared_1.assertNotNullOrUndefined)(token, 'token');
|
|
31
|
-
(0, shared_1.assertNotNullOrUndefined)(props_1.text, 'text');
|
|
32
|
-
(0, shared_1.assertNotNullOrUndefined)(channel, 'channel');
|
|
33
|
-
const waitpoint = yield context.run.createWaitpoint({
|
|
34
|
-
type: 'WEBHOOK',
|
|
35
|
-
});
|
|
36
|
-
const postMessage = yield (0, utils_1.slackSendMessage)({
|
|
37
|
-
token,
|
|
38
|
-
text: `${context.propsValue.text}`,
|
|
39
|
-
username,
|
|
40
|
-
profilePicture,
|
|
41
|
-
conversationId: channel,
|
|
42
|
-
});
|
|
43
|
-
const messageTs = postMessage.ts;
|
|
44
|
-
const approvalLink = waitpoint.buildResumeUrl({
|
|
45
|
-
queryParams: { action: 'approve', channel, messageTs },
|
|
46
|
-
});
|
|
47
|
-
const disapprovalLink = waitpoint.buildResumeUrl({
|
|
48
|
-
queryParams: { action: 'disapprove', channel, messageTs },
|
|
49
|
-
});
|
|
50
|
-
const client = new web_api_1.WebClient(token);
|
|
51
|
-
yield client.chat.update({
|
|
52
|
-
channel: channel,
|
|
53
|
-
ts: messageTs,
|
|
54
|
-
text: context.propsValue.text,
|
|
55
|
-
blocks: [
|
|
56
|
-
...(0, utils_1.textToSectionBlocks)(`${context.propsValue.text}`),
|
|
57
|
-
{
|
|
58
|
-
type: 'actions',
|
|
59
|
-
block_id: 'actions',
|
|
60
|
-
elements: [
|
|
61
|
-
{
|
|
62
|
-
type: 'button',
|
|
63
|
-
text: {
|
|
64
|
-
type: 'plain_text',
|
|
65
|
-
text: 'Approve',
|
|
66
|
-
},
|
|
67
|
-
style: 'primary',
|
|
68
|
-
value: approvalLink,
|
|
69
|
-
action_id: 'approve',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
type: 'button',
|
|
73
|
-
text: {
|
|
74
|
-
type: 'plain_text',
|
|
75
|
-
text: 'Disapprove',
|
|
76
|
-
},
|
|
77
|
-
style: 'danger',
|
|
78
|
-
value: disapprovalLink,
|
|
79
|
-
action_id: 'disapprove',
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
},
|
|
83
|
-
...(mentionOriginFlow ? [(0, utils_1.buildFlowOriginContextBlock)(context)] : []),
|
|
84
|
-
],
|
|
85
|
-
});
|
|
86
|
-
context.run.waitForWaitpoint(waitpoint.id);
|
|
87
|
-
return {
|
|
88
|
-
approved: false, // default approval is false
|
|
89
|
-
messageTs
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
const approved = context.resumePayload.queryParams['action'] === 'approve';
|
|
94
|
-
const channel = context.resumePayload.queryParams['channel'];
|
|
95
|
-
const messageTs = context.resumePayload.queryParams['messageTs'];
|
|
96
|
-
const token = (0, auth_helpers_1.getBotToken)(context.auth);
|
|
97
|
-
try {
|
|
98
|
-
if (token && channel && messageTs) {
|
|
99
|
-
const client = new web_api_1.WebClient(token);
|
|
100
|
-
const statusText = approved ? 'Approved' : 'Disapproved';
|
|
101
|
-
yield client.chat.update({
|
|
102
|
-
channel,
|
|
103
|
-
ts: messageTs,
|
|
104
|
-
text: `${context.propsValue.text}\n\n${statusText}`,
|
|
105
|
-
blocks: [
|
|
106
|
-
...(0, utils_1.textToSectionBlocks)(`${context.propsValue.text}`),
|
|
107
|
-
{
|
|
108
|
-
type: 'section',
|
|
109
|
-
text: {
|
|
110
|
-
type: 'mrkdwn',
|
|
111
|
-
text: approved
|
|
112
|
-
? ':white_check_mark: *Approved*'
|
|
113
|
-
: ':x: *Disapproved*',
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
catch (e) {
|
|
121
|
-
// Ignore errors from updating the message, as it's cosmetic
|
|
122
|
-
}
|
|
123
|
-
return { approved, messageTs };
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
},
|
|
127
|
-
});
|
|
128
|
-
//# sourceMappingURL=request-approval-message.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-approval-message.js","sourceRoot":"","sources":["../../../../src/lib/actions/request-approval-message.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,2CAAqG;AACrG,kCAAoC;AACpC,iDAG8B;AAC9B,2CAOyB;AACzB,4CAAoE;AACpE,yDAAqE;AAExD,QAAA,gCAAgC,GAAG,IAAA,+BAAY,EAAC;IAC3D,IAAI,EAAE,gBAAS;IACf,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,+BAA+B;IAC5C,WAAW,EACT,+FAA+F;IACjG,KAAK,EAAE;QACL,IAAI,EAAE,+BAAuB;QAC7B,OAAO,EAAE,IAAA,oBAAY,EAAC,IAAI,CAAC;QAC3B,IAAI,EAAJ,YAAI;QACJ,QAAQ,EAAR,gBAAQ;QACR,cAAc,EAAd,sBAAc;QACd,iBAAiB,EAAjB,yBAAiB;KAClB;IACK,GAAG,CAAC,OAAO;;YACf,IAAI,OAAO,CAAC,aAAa,KAAK,sBAAa,CAAC,KAAK,EAAE,CAAC;gBAClD,MAAM,KAAK,GAAG,IAAA,0BAAW,EAAC,OAAO,CAAC,IAAsB,CAAC,CAAC;gBAC1D,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;gBAEpF,IAAA,iCAAwB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBACzC,IAAA,iCAAwB,EAAC,YAAI,EAAE,MAAM,CAAC,CAAC;gBACvC,IAAA,iCAAwB,EAAC,OAAO,EAAE,SAAS,CAAC,CAAC;gBAE7C,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;oBAClD,IAAI,EAAE,SAAS;iBAChB,CAAC,CAAC;gBAEH,MAAM,WAAW,GAAG,MAAM,IAAA,wBAAgB,EAAC;oBACzC,KAA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CACd,IAAI,EAAE,QAAQ;4CACZ,CAAC,CAAC,+BAA+B;4CACjC,CAAC,CAAC,mBAAmB;qCACxB;iCACF;6BACF;yBACF,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACX,4DAA4D;gBAC9D,CAAC;gBAED,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;YACjC,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const retrieveThreadMessages: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
4
|
-
}>)[], {
|
|
5
|
-
channel: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
7
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
8
|
-
}>)[]>;
|
|
9
|
-
threadTs: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
-
}>;
|
|
11
|
-
//# sourceMappingURL=retrieve-thread-messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-thread-messages.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/retrieve-thread-messages.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,sBAAsB;;;;;;;;;EAyBjC,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.retrieveThreadMessages = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const web_api_1 = require("@slack/web-api");
|
|
8
|
-
const props_1 = require("../common/props");
|
|
9
|
-
const utils_1 = require("../common/utils");
|
|
10
|
-
const auth_helpers_1 = require("../common/auth-helpers");
|
|
11
|
-
exports.retrieveThreadMessages = (0, pieces_framework_1.createAction)({
|
|
12
|
-
name: 'retrieveThreadMessages',
|
|
13
|
-
displayName: 'Retrieve Thread Messages',
|
|
14
|
-
description: 'Retrieves thread messages by channel and thread timestamp.',
|
|
15
|
-
auth: auth_1.slackAuth,
|
|
16
|
-
props: {
|
|
17
|
-
channel: (0, props_1.slackChannel)(true),
|
|
18
|
-
threadTs: pieces_framework_1.Property.ShortText({
|
|
19
|
-
displayName: 'Thread ts',
|
|
20
|
-
description: 'Provide the ts (timestamp) value of the **parent** message to retrieve replies of this message. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.',
|
|
21
|
-
required: true,
|
|
22
|
-
}),
|
|
23
|
-
},
|
|
24
|
-
run(_a) {
|
|
25
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
26
|
-
const client = new web_api_1.WebClient((0, auth_helpers_1.getBotToken)(auth));
|
|
27
|
-
const messageTimestamp = (0, utils_1.processMessageTimestamp)(propsValue.threadTs);
|
|
28
|
-
if (!messageTimestamp) {
|
|
29
|
-
throw new Error('Invalid Timestamp Value.');
|
|
30
|
-
}
|
|
31
|
-
return yield client.conversations.replies({
|
|
32
|
-
channel: propsValue.channel,
|
|
33
|
-
ts: messageTimestamp,
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=retrieve-thread-messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-thread-messages.js","sourceRoot":"","sources":["../../../../src/lib/actions/retrieve-thread-messages.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAoC;AACpC,4CAA2C;AAC3C,2CAA+C;AAC/C,2CAA0D;AAC1D,yDAAqE;AAExD,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,4DAA4D;IACzE,IAAI,EAAE,gBAAS;IACf,KAAK,EAAE;QACL,OAAO,EAAE,IAAA,oBAAY,EAAC,IAAI,CAAC;QAC3B,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,WAAW;YACxB,WAAW,EACT,2VAA2V;YAC7V,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,MAAM,GAAG,IAAI,mBAAS,CAAC,IAAA,0BAAW,EAAC,IAAsB,CAAC,CAAC,CAAC;YAChE,MAAM,gBAAgB,GAAG,IAAA,+BAAuB,EAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YACpE,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;YAC9C,CAAC;YACL,OAAO,MAAM,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC;gBACxC,OAAO,EAAE,UAAU,CAAC,OAAO;gBAC3B,EAAE,EAAE,gBAAgB;aACrB,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const searchMessages: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
4
|
-
}>)[], {
|
|
5
|
-
query: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=search-messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-messages.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-messages.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;;;EAqCzB,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchMessages = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const web_api_1 = require("@slack/web-api");
|
|
8
|
-
const auth_helpers_1 = require("../common/auth-helpers");
|
|
9
|
-
exports.searchMessages = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'searchMessages',
|
|
11
|
-
displayName: 'Search messages',
|
|
12
|
-
description: 'Searches for messages matching a query',
|
|
13
|
-
auth: auth_1.slackAuth,
|
|
14
|
-
props: {
|
|
15
|
-
query: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Search query',
|
|
17
|
-
required: true,
|
|
18
|
-
}),
|
|
19
|
-
},
|
|
20
|
-
run(_a) {
|
|
21
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
22
|
-
var _b, _c, _d;
|
|
23
|
-
const userToken = (0, auth_helpers_1.requireUserToken)(auth);
|
|
24
|
-
const client = new web_api_1.WebClient(userToken);
|
|
25
|
-
const matches = [];
|
|
26
|
-
// We can't use the usual "for await ... of" syntax with client.paginate
|
|
27
|
-
// Because search.messages uses a bastardized version of cursor-based pagination
|
|
28
|
-
// Where you need to pass * as first cursor
|
|
29
|
-
// https://api.slack.com/methods/search.messages#arg_cursor
|
|
30
|
-
let cursor = '*';
|
|
31
|
-
do {
|
|
32
|
-
const page = yield client.search.messages({
|
|
33
|
-
query: propsValue.query,
|
|
34
|
-
count: 100,
|
|
35
|
-
// @ts-expect-error TS2353 - SDK is not aware cursor is actually supported
|
|
36
|
-
cursor,
|
|
37
|
-
});
|
|
38
|
-
if ((_b = page.messages) === null || _b === void 0 ? void 0 : _b.matches) {
|
|
39
|
-
matches.push(...page.messages.matches);
|
|
40
|
-
}
|
|
41
|
-
// @ts-expect-error TS2353 - SDK is not aware next_cursor is actually returned
|
|
42
|
-
cursor = (_d = (_c = page.messages) === null || _c === void 0 ? void 0 : _c.pagination) === null || _d === void 0 ? void 0 : _d.next_cursor;
|
|
43
|
-
} while (cursor);
|
|
44
|
-
return matches;
|
|
45
|
-
});
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
//# sourceMappingURL=search-messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-messages.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-messages.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAoC;AACpC,4CAA2C;AAC3C,yDAA0E;AAE7D,QAAA,cAAc,GAAG,IAAA,+BAAY,EAAC;IACzC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,wCAAwC;IACrD,IAAI,EAAE,gBAAS;IACf,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;;YAC5B,MAAM,SAAS,GAAG,IAAA,+BAAgB,EAAC,IAAsB,CAAC,CAAC;YAC3D,MAAM,MAAM,GAAG,IAAI,mBAAS,CAAC,SAAS,CAAC,CAAC;YACxC,MAAM,OAAO,GAAG,EAAE,CAAC;YAEnB,wEAAwE;YACxE,gFAAgF;YAChF,2CAA2C;YAC3C,2DAA2D;YAC3D,IAAI,MAAM,GAAG,GAAG,CAAC;YACjB,GAAG,CAAC;gBACF,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;oBACxC,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,KAAK,EAAE,GAAG;oBACV,0EAA0E;oBAC1E,MAAM;iBACP,CAAC,CAAC;gBACH,IAAI,MAAA,IAAI,CAAC,QAAQ,0CAAE,OAAO,EAAE,CAAC;oBAC3B,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;gBACzC,CAAC;gBACD,8EAA8E;gBAC9E,MAAM,GAAG,MAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,UAAU,0CAAE,WAAW,CAAC;YAClD,CAAC,QAAQ,MAAM,EAAE;YAEjB,OAAO,OAAO,CAAC;QACjB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const slackSendDirectMessageAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
4
|
-
}>)[], {
|
|
5
|
-
userId: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
7
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
8
|
-
}>)[]>;
|
|
9
|
-
text: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
10
|
-
username: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
11
|
-
profilePicture: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
12
|
-
iconEmoji: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
13
|
-
mentionOriginFlow: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
14
|
-
blocks: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
15
|
-
unfurlLinks: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
16
|
-
}>;
|
|
17
|
-
//# sourceMappingURL=send-direct-message-action.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-direct-message-action.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/send-direct-message-action.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;EAiDvC,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.slackSendDirectMessageAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const utils_1 = require("../common/utils");
|
|
7
|
-
const auth_1 = require("../auth");
|
|
8
|
-
const shared_1 = require("@activepieces/shared");
|
|
9
|
-
const props_1 = require("../common/props");
|
|
10
|
-
const auth_helpers_1 = require("../common/auth-helpers");
|
|
11
|
-
exports.slackSendDirectMessageAction = (0, pieces_framework_1.createAction)({
|
|
12
|
-
auth: auth_1.slackAuth,
|
|
13
|
-
name: 'send_direct_message',
|
|
14
|
-
displayName: 'Send Message To A User',
|
|
15
|
-
description: 'Send message to a user',
|
|
16
|
-
props: {
|
|
17
|
-
userId: (0, props_1.userId)(true),
|
|
18
|
-
text: props_1.text,
|
|
19
|
-
username: props_1.username,
|
|
20
|
-
profilePicture: props_1.profilePicture,
|
|
21
|
-
iconEmoji: props_1.iconEmoji,
|
|
22
|
-
mentionOriginFlow: props_1.mentionOriginFlow,
|
|
23
|
-
blocks: props_1.blocks,
|
|
24
|
-
unfurlLinks: pieces_framework_1.Property.Checkbox({
|
|
25
|
-
displayName: 'Unfurl Links',
|
|
26
|
-
description: 'Enable link unfurling for this message',
|
|
27
|
-
required: false,
|
|
28
|
-
defaultValue: true,
|
|
29
|
-
}),
|
|
30
|
-
},
|
|
31
|
-
run(context) {
|
|
32
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const token = (0, auth_helpers_1.getBotToken)(context.auth);
|
|
34
|
-
const { text, userId, blocks, unfurlLinks, mentionOriginFlow } = context.propsValue;
|
|
35
|
-
(0, shared_1.assertNotNullOrUndefined)(token, 'token');
|
|
36
|
-
(0, shared_1.assertNotNullOrUndefined)(text, 'text');
|
|
37
|
-
(0, shared_1.assertNotNullOrUndefined)(userId, 'userId');
|
|
38
|
-
const blockList = [...(0, utils_1.textToSectionBlocks)(text)];
|
|
39
|
-
if (blocks && Array.isArray(blocks)) {
|
|
40
|
-
blockList.push(...blocks);
|
|
41
|
-
}
|
|
42
|
-
if (mentionOriginFlow) {
|
|
43
|
-
blockList.push((0, utils_1.buildFlowOriginContextBlock)(context));
|
|
44
|
-
}
|
|
45
|
-
return (0, utils_1.slackSendMessage)({
|
|
46
|
-
token,
|
|
47
|
-
text,
|
|
48
|
-
username: context.propsValue.username,
|
|
49
|
-
profilePicture: context.propsValue.profilePicture,
|
|
50
|
-
iconEmoji: context.propsValue.iconEmoji,
|
|
51
|
-
conversationId: userId,
|
|
52
|
-
blocks: blockList,
|
|
53
|
-
unfurlLinks,
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
//# sourceMappingURL=send-direct-message-action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-direct-message-action.js","sourceRoot":"","sources":["../../../../src/lib/actions/send-direct-message-action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,2CAAqG;AACrG,kCAAoC;AACpC,iDAAgE;AAChE,2CAQyB;AAEzB,yDAAqE;AAGxD,QAAA,4BAA4B,GAAG,IAAA,+BAAY,EAAC;IACvD,IAAI,EAAE,gBAAS;IACf,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE,wBAAwB;IACrC,KAAK,EAAE;QACL,MAAM,EAAE,IAAA,cAAM,EAAC,IAAI,CAAC;QACpB,IAAI,EAAJ,YAAI;QACJ,QAAQ,EAAR,gBAAQ;QACR,cAAc,EAAd,sBAAc;QACd,SAAS,EAAT,iBAAS;QACT,iBAAiB,EAAjB,yBAAiB;QACjB,MAAM,EAAN,cAAM;QACN,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC7B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,IAAI;SACnB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,KAAK,GAAG,IAAA,0BAAW,EAAC,OAAO,CAAC,IAAsB,CAAC,CAAC;YAC1D,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEpF,IAAA,iCAAwB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YACzC,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YACvC,IAAA,iCAAwB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAE3C,MAAM,SAAS,GAA2B,CAAC,GAAG,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC,CAAA;YAExE,IAAG,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;gBACnC,SAAS,CAAC,IAAI,CAAC,GAAI,MAA4C,CAAC,CAAA;YAClE,CAAC;YAED,IAAG,iBAAiB,EAAE,CAAC;gBACrB,SAAS,CAAC,IAAI,CAAC,IAAA,mCAA2B,EAAC,OAAO,CAAC,CAAC,CAAC;YACvD,CAAC;YAED,OAAO,IAAA,wBAAgB,EAAC;gBACtB,KAAK;gBACL,IAAI;gBACJ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ;gBACrC,cAAc,EAAE,OAAO,CAAC,UAAU,CAAC,cAAc;gBACjD,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;gBACvC,cAAc,EAAE,MAAM;gBACtB,MAAM,EAAC,SAAS;gBAChB,WAAW;aACZ,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const slackSendMessageAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
4
|
-
}>)[], {
|
|
5
|
-
info: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
-
channel: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
7
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
9
|
-
}>)[]>;
|
|
10
|
-
text: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
11
|
-
sendAsBot: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
12
|
-
threadTs: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
13
|
-
username: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
-
profilePicture: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
15
|
-
iconEmoji: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
16
|
-
file: import("@activepieces/pieces-framework").FileProperty<false>;
|
|
17
|
-
replyBroadcast: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
18
|
-
mentionOriginFlow: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
19
|
-
unfurlLinks: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
20
|
-
blocks: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
21
|
-
}>;
|
|
22
|
-
//# sourceMappingURL=send-message-action.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-message-action.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/send-message-action.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;EAgFjC,CAAC"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.slackSendMessageAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const props_1 = require("../common/props");
|
|
7
|
-
const utils_1 = require("../common/utils");
|
|
8
|
-
const auth_1 = require("../auth");
|
|
9
|
-
const auth_helpers_1 = require("../common/auth-helpers");
|
|
10
|
-
exports.slackSendMessageAction = (0, pieces_framework_1.createAction)({
|
|
11
|
-
auth: auth_1.slackAuth,
|
|
12
|
-
name: 'send_channel_message',
|
|
13
|
-
displayName: 'Send Message To A Channel',
|
|
14
|
-
description: 'Send message to a channel',
|
|
15
|
-
props: {
|
|
16
|
-
info: props_1.singleSelectChannelInfo,
|
|
17
|
-
channel: (0, props_1.slackChannel)(true),
|
|
18
|
-
text: pieces_framework_1.Property.LongText({
|
|
19
|
-
displayName: 'Message',
|
|
20
|
-
description: 'The text of your message. When using Block Kit blocks, this is used as a fallback for notifications.',
|
|
21
|
-
required: false,
|
|
22
|
-
}),
|
|
23
|
-
sendAsBot: pieces_framework_1.Property.Checkbox({
|
|
24
|
-
displayName: 'Send as a bot?',
|
|
25
|
-
required: true,
|
|
26
|
-
defaultValue: true
|
|
27
|
-
}),
|
|
28
|
-
threadTs: props_1.threadTs,
|
|
29
|
-
username: props_1.username,
|
|
30
|
-
profilePicture: props_1.profilePicture,
|
|
31
|
-
iconEmoji: props_1.iconEmoji,
|
|
32
|
-
file: pieces_framework_1.Property.File({
|
|
33
|
-
displayName: 'Attachment',
|
|
34
|
-
required: false,
|
|
35
|
-
}),
|
|
36
|
-
replyBroadcast: pieces_framework_1.Property.Checkbox({
|
|
37
|
-
displayName: 'Broadcast reply to channel',
|
|
38
|
-
description: 'When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)',
|
|
39
|
-
required: false,
|
|
40
|
-
defaultValue: false,
|
|
41
|
-
}),
|
|
42
|
-
mentionOriginFlow: props_1.mentionOriginFlow,
|
|
43
|
-
unfurlLinks: pieces_framework_1.Property.Checkbox({
|
|
44
|
-
displayName: 'Unfurl Links',
|
|
45
|
-
description: 'Enable link unfurling for this message',
|
|
46
|
-
required: false,
|
|
47
|
-
defaultValue: true,
|
|
48
|
-
}),
|
|
49
|
-
blocks: props_1.blocks,
|
|
50
|
-
},
|
|
51
|
-
run(context) {
|
|
52
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
const { text, channel, sendAsBot, username, profilePicture, iconEmoji, threadTs, file, mentionOriginFlow, blocks, replyBroadcast, unfurlLinks } = context.propsValue;
|
|
54
|
-
const token = sendAsBot ? (0, auth_helpers_1.getBotToken)(context.auth) : (0, auth_helpers_1.requireUserToken)(context.auth);
|
|
55
|
-
if (!text && (!blocks || !Array.isArray(blocks) || blocks.length === 0)) {
|
|
56
|
-
throw new Error('Either Message or Block Kit blocks must be provided');
|
|
57
|
-
}
|
|
58
|
-
const blockList = [];
|
|
59
|
-
if (text) {
|
|
60
|
-
blockList.push(...(0, utils_1.textToSectionBlocks)(text));
|
|
61
|
-
}
|
|
62
|
-
if (blocks && Array.isArray(blocks) && blocks.length > 0) {
|
|
63
|
-
blockList.push(...blocks);
|
|
64
|
-
}
|
|
65
|
-
if (mentionOriginFlow) {
|
|
66
|
-
blockList.push((0, utils_1.buildFlowOriginContextBlock)(context));
|
|
67
|
-
}
|
|
68
|
-
return (0, utils_1.slackSendMessage)({
|
|
69
|
-
token,
|
|
70
|
-
text: text || undefined,
|
|
71
|
-
username,
|
|
72
|
-
profilePicture,
|
|
73
|
-
iconEmoji,
|
|
74
|
-
conversationId: channel,
|
|
75
|
-
threadTs: threadTs ? (0, utils_1.processMessageTimestamp)(threadTs) : undefined,
|
|
76
|
-
file,
|
|
77
|
-
blocks: blockList.length > 0 ? blockList : undefined,
|
|
78
|
-
replyBroadcast,
|
|
79
|
-
unfurlLinks,
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
//# sourceMappingURL=send-message-action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-message-action.js","sourceRoot":"","sources":["../../../../src/lib/actions/send-message-action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,2CASyB;AACzB,2CAA8H;AAC9H,kCAAoC;AAEpC,yDAAuF;AAG1E,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,gBAAS;IACf,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,KAAK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are const setChannelTopicAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
4
|
-
}>)[], {
|
|
5
|
-
info: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
-
channel: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
7
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
9
|
-
}>)[]>;
|
|
10
|
-
topic: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=set-channel-topic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-channel-topic.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/set-channel-topic.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB;;;;;;;;;;EAsBhC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setChannelTopicAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const auth_1 = require("../auth");
|
|
6
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
-
const props_1 = require("../common/props");
|
|
8
|
-
const web_api_1 = require("@slack/web-api");
|
|
9
|
-
const auth_helpers_1 = require("../common/auth-helpers");
|
|
10
|
-
exports.setChannelTopicAction = (0, pieces_framework_1.createAction)({
|
|
11
|
-
auth: auth_1.slackAuth,
|
|
12
|
-
name: 'set-channel-topic',
|
|
13
|
-
displayName: 'Set Channel Topic',
|
|
14
|
-
description: 'Sets the topic on a selected channel.',
|
|
15
|
-
props: {
|
|
16
|
-
info: props_1.singleSelectChannelInfo,
|
|
17
|
-
channel: (0, props_1.slackChannel)(true),
|
|
18
|
-
topic: pieces_framework_1.Property.LongText({
|
|
19
|
-
displayName: 'Topic',
|
|
20
|
-
required: true,
|
|
21
|
-
}),
|
|
22
|
-
},
|
|
23
|
-
run(context) {
|
|
24
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const { channel, topic } = context.propsValue;
|
|
26
|
-
const client = new web_api_1.WebClient((0, auth_helpers_1.getBotToken)(context.auth));
|
|
27
|
-
return yield client.conversations.setTopic({
|
|
28
|
-
channel,
|
|
29
|
-
topic,
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=set-channel-topic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-channel-topic.js","sourceRoot":"","sources":["../../../../src/lib/actions/set-channel-topic.ts"],"names":[],"mappings":";;;;AAAA,kCAAoC;AACpC,qEAAwE;AACxE,2CAAwE;AACxE,4CAA2C;AAC3C,yDAAqE;AAExD,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,gBAAS;IACf,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,uCAAuC;IACpD,KAAK,EAAE;QACN,IAAI,EAAE,+BAAuB;QAC7B,OAAO,EAAE,IAAA,oBAAY,EAAC,IAAI,CAAC;QAC3B,KAAK,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC9C,MAAM,MAAM,GAAG,IAAI,mBAAS,CAAC,IAAA,0BAAW,EAAC,OAAO,CAAC,IAAsB,CAAC,CAAC,CAAC;YAE1E,OAAO,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC;gBAC1C,OAAO;gBACP,KAAK;aACL,CAAC,CAAC;QACJ,CAAC;KAAA;CACD,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const setUserStatusAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
4
|
-
}>)[], {
|
|
5
|
-
text: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
emoji: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
expiration: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=set-user-status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-user-status.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/set-user-status.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB;;;;;;;EAoC9B,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setUserStatusAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const auth_1 = require("../auth");
|
|
6
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
-
const web_api_1 = require("@slack/web-api");
|
|
8
|
-
const zod_1 = require("zod");
|
|
9
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
10
|
-
const auth_helpers_1 = require("../common/auth-helpers");
|
|
11
|
-
exports.setUserStatusAction = (0, pieces_framework_1.createAction)({
|
|
12
|
-
auth: auth_1.slackAuth,
|
|
13
|
-
name: 'slack-set-user-status',
|
|
14
|
-
displayName: 'Set User Status',
|
|
15
|
-
description: "Sets a user's custom status",
|
|
16
|
-
props: {
|
|
17
|
-
text: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Text',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
emoji: pieces_framework_1.Property.ShortText({
|
|
22
|
-
displayName: 'Emoji',
|
|
23
|
-
required: false,
|
|
24
|
-
description: 'Emoji shortname (standard or custom), e.g. :tada: or :train:',
|
|
25
|
-
}),
|
|
26
|
-
expiration: pieces_framework_1.Property.Number({
|
|
27
|
-
displayName: 'Expires at',
|
|
28
|
-
description: 'Unix timestamp - if not set, the status will not expire',
|
|
29
|
-
required: false,
|
|
30
|
-
}),
|
|
31
|
-
},
|
|
32
|
-
run(_a) {
|
|
33
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
34
|
-
yield pieces_common_1.propsValidation.validateZod(propsValue, {
|
|
35
|
-
text: zod_1.z.string().max(100),
|
|
36
|
-
});
|
|
37
|
-
const client = new web_api_1.WebClient((0, auth_helpers_1.requireUserToken)(auth));
|
|
38
|
-
return yield client.users.profile.set({
|
|
39
|
-
profile: {
|
|
40
|
-
status_text: propsValue.text,
|
|
41
|
-
status_emoji: propsValue.emoji,
|
|
42
|
-
status_expiration: propsValue.expiration,
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
//# sourceMappingURL=set-user-status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-user-status.js","sourceRoot":"","sources":["../../../../src/lib/actions/set-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1
|
-
export declare const updateMessage: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
4
|
-
}>)[], {
|
|
5
|
-
info: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
-
channel: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
7
|
-
botToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
userToken: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
9
|
-
}>)[]>;
|
|
10
|
-
ts: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
text: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
12
|
-
mentionOriginFlow: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
13
|
-
blocks: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
14
|
-
}>;
|
|
15
|
-
//# sourceMappingURL=update-message.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-message.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-message.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa;;;;;;;;;;;;;EAgDxB,CAAC"}
|