@activepieces/piece-slack 0.5.8 → 0.5.10
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 +3 -3
- package/src/lib/actions/add-reaction-to-message.js +15 -8
- package/src/lib/actions/add-reaction-to-message.js.map +1 -1
- package/src/lib/actions/send-message-action.d.ts +1 -1
- package/src/lib/actions/send-message-action.js +5 -5
- package/src/lib/actions/send-message-action.js.map +1 -1
- package/src/lib/actions/update-message.js +8 -3
- package/src/lib/actions/update-message.js.map +1 -1
- package/src/lib/common/utils.d.ts +1 -0
- package/src/lib/common/utils.js +20 -2
- package/src/lib/common/utils.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-slack",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@sinclair/typebox": "0.26.8",
|
|
6
6
|
"@slack/web-api": "7.0.4",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"nanoid": "3.3.6",
|
|
12
12
|
"semver": "7.6.0",
|
|
13
13
|
"@activepieces/pieces-common": "0.2.12",
|
|
14
|
-
"@activepieces/pieces-framework": "0.7.
|
|
15
|
-
"@activepieces/shared": "0.10.
|
|
14
|
+
"@activepieces/pieces-framework": "0.7.30",
|
|
15
|
+
"@activepieces/shared": "0.10.105",
|
|
16
16
|
"tslib": "1.14.1"
|
|
17
17
|
},
|
|
18
18
|
"main": "./src/index.js",
|
|
@@ -6,6 +6,7 @@ const __1 = require("../../");
|
|
|
6
6
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
7
|
const props_1 = require("../common/props");
|
|
8
8
|
const web_api_1 = require("@slack/web-api");
|
|
9
|
+
const utils_1 = require("../common/utils");
|
|
9
10
|
exports.addRectionToMessageAction = (0, pieces_framework_1.createAction)({
|
|
10
11
|
auth: __1.slackAuth,
|
|
11
12
|
name: 'slack-add-reaction-to-message',
|
|
@@ -15,8 +16,8 @@ exports.addRectionToMessageAction = (0, pieces_framework_1.createAction)({
|
|
|
15
16
|
info: props_1.slackInfo,
|
|
16
17
|
channel: props_1.slackChannel,
|
|
17
18
|
ts: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Message
|
|
19
|
-
description: '
|
|
19
|
+
displayName: 'Message Timestamp',
|
|
20
|
+
description: 'Please provide the timestamp of the message you wish to react, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.',
|
|
20
21
|
required: true,
|
|
21
22
|
}),
|
|
22
23
|
reaction: pieces_framework_1.Property.ShortText({
|
|
@@ -29,12 +30,18 @@ exports.addRectionToMessageAction = (0, pieces_framework_1.createAction)({
|
|
|
29
30
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
31
|
const { channel, ts, reaction } = context.propsValue;
|
|
31
32
|
const slack = new web_api_1.WebClient(context.auth.access_token);
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
const messageTimestamp = (0, utils_1.processMessageTimestamp)(ts);
|
|
34
|
+
if (messageTimestamp) {
|
|
35
|
+
const response = yield slack.reactions.add({
|
|
36
|
+
channel,
|
|
37
|
+
timestamp: messageTimestamp,
|
|
38
|
+
name: reaction,
|
|
39
|
+
});
|
|
40
|
+
return response;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
throw new Error('Invalid Timestamp Value.');
|
|
44
|
+
}
|
|
38
45
|
});
|
|
39
46
|
},
|
|
40
47
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-reaction-to-message.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/actions/add-reaction-to-message.ts"],"names":[],"mappings":";;;;AAAA,8BAAmC;AACnC,qEAAwE;AACxE,2CAA0D;AAE1D,4CAA2C;
|
|
1
|
+
{"version":3,"file":"add-reaction-to-message.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/actions/add-reaction-to-message.ts"],"names":[],"mappings":";;;;AAAA,8BAAmC;AACnC,qEAAwE;AACxE,2CAA0D;AAE1D,4CAA2C;AAC3C,2CAA0D;AAE7C,QAAA,yBAAyB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,qCAAqC;IAElD,KAAK,EAAE;QACL,IAAI,EAAE,iBAAS;QACf,OAAO,EAAE,oBAAY;QACrB,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,mBAAmB;YAChC,WAAW,EACT,2OAA2O;YAC7O,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,uBAAuB;YACpC,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,gBAAgB;SAC9B,CAAC;KACH;IAEK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAErD,MAAM,KAAK,GAAG,IAAI,mBAAS,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAEvD,MAAM,gBAAgB,GAAG,IAAA,+BAAuB,EAAC,EAAE,CAAC,CAAC;YAErD,IAAI,gBAAgB,EAAE,CAAC;gBACrB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC;oBACzC,OAAO;oBACP,SAAS,EAAE,gBAAgB;oBAC3B,IAAI,EAAE,QAAQ;iBACf,CAAC,CAAC;gBAEH,OAAO,QAAQ,CAAC;YAClB,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;YAC9C,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const slackSendMessageAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
info: import("../../../../../../../dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
3
3
|
channel: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
|
|
4
|
-
threadTs: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
4
|
text: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
6
5
|
username: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
6
|
profilePicture: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
7
|
file: import("@activepieces/pieces-framework").FileProperty<false>;
|
|
8
|
+
threadTs: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
9
|
blocks: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
10
10
|
}>;
|
|
@@ -14,11 +14,6 @@ exports.slackSendMessageAction = (0, pieces_framework_1.createAction)({
|
|
|
14
14
|
props: {
|
|
15
15
|
info: props_1.slackInfo,
|
|
16
16
|
channel: props_1.slackChannel,
|
|
17
|
-
threadTs: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Thread ts',
|
|
19
|
-
description: 'Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.',
|
|
20
|
-
required: false,
|
|
21
|
-
}),
|
|
22
17
|
text: pieces_framework_1.Property.LongText({
|
|
23
18
|
displayName: 'Message',
|
|
24
19
|
description: 'The text of your message',
|
|
@@ -30,6 +25,11 @@ exports.slackSendMessageAction = (0, pieces_framework_1.createAction)({
|
|
|
30
25
|
displayName: 'Attachment',
|
|
31
26
|
required: false,
|
|
32
27
|
}),
|
|
28
|
+
threadTs: pieces_framework_1.Property.ShortText({
|
|
29
|
+
displayName: 'Thread ts',
|
|
30
|
+
description: 'Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.',
|
|
31
|
+
required: false,
|
|
32
|
+
}),
|
|
33
33
|
blocks: props_1.blocks,
|
|
34
34
|
},
|
|
35
35
|
run(context) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-message-action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/actions/send-message-action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,2CAMyB;AACzB,2CAAmD;AACnD,8BAAmC;AAEtB,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,KAAK,EAAE;QACL,IAAI,EAAE,iBAAS;QACf,OAAO,EAAE,oBAAY;QACrB,
|
|
1
|
+
{"version":3,"file":"send-message-action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/actions/send-message-action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,2CAMyB;AACzB,2CAAmD;AACnD,8BAAmC;AAEtB,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,KAAK,EAAE;QACL,IAAI,EAAE,iBAAS;QACf,OAAO,EAAE,oBAAY;QACrB,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAR,gBAAQ;QACR,cAAc,EAAd,sBAAc;QACd,IAAI,EAAE,2BAAQ,CAAC,IAAI,CAAC;YAClB,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,WAAW;YACxB,WAAW,EACT,gMAAgM;YAClM,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,MAAM,EAAN,cAAM;KACP;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;YACxC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,GACvE,OAAO,CAAC,UAAU,CAAC;YAErB,OAAO,IAAA,wBAAgB,EAAC;gBACtB,KAAK;gBACL,IAAI;gBACJ,QAAQ;gBACR,cAAc;gBACd,cAAc,EAAE,OAAO;gBACvB,QAAQ;gBACR,IAAI;gBACJ,MAAM;aACP,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -6,6 +6,7 @@ const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
7
|
const __1 = require("../..");
|
|
8
8
|
const props_1 = require("../common/props");
|
|
9
|
+
const utils_1 = require("../common/utils");
|
|
9
10
|
exports.updateMessage = (0, pieces_framework_1.createAction)({
|
|
10
11
|
// auth: check https://www.activepieces.com/docs/developers/piece-reference/authentication,
|
|
11
12
|
name: 'updateMessage',
|
|
@@ -16,8 +17,8 @@ exports.updateMessage = (0, pieces_framework_1.createAction)({
|
|
|
16
17
|
info: props_1.slackInfo,
|
|
17
18
|
channel: props_1.slackChannel,
|
|
18
19
|
ts: pieces_framework_1.Property.ShortText({
|
|
19
|
-
displayName: 'Message
|
|
20
|
-
description: '
|
|
20
|
+
displayName: 'Message Timestamp',
|
|
21
|
+
description: 'Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.',
|
|
21
22
|
required: true,
|
|
22
23
|
}),
|
|
23
24
|
text: pieces_framework_1.Property.LongText({
|
|
@@ -29,12 +30,16 @@ exports.updateMessage = (0, pieces_framework_1.createAction)({
|
|
|
29
30
|
},
|
|
30
31
|
run({ auth, propsValue }) {
|
|
31
32
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
const messageTimestamp = (0, utils_1.processMessageTimestamp)(propsValue.ts);
|
|
34
|
+
if (!messageTimestamp) {
|
|
35
|
+
throw new Error('Invalid Timestamp Value.');
|
|
36
|
+
}
|
|
32
37
|
const request = {
|
|
33
38
|
method: pieces_common_1.HttpMethod.POST,
|
|
34
39
|
url: 'https://slack.com/api/chat.update',
|
|
35
40
|
body: {
|
|
36
41
|
channel: propsValue.channel,
|
|
37
|
-
ts:
|
|
42
|
+
ts: messageTimestamp,
|
|
38
43
|
text: propsValue.text,
|
|
39
44
|
blocks: propsValue.blocks,
|
|
40
45
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-message.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/actions/update-message.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAKqC;AACrC,6BAAkC;AAClC,2CAAkE;
|
|
1
|
+
{"version":3,"file":"update-message.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/actions/update-message.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAKqC;AACrC,6BAAkC;AAClC,2CAAkE;AAClE,2CAA0D;AAE7C,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,2FAA2F;IAC3F,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,4BAA4B;IACzC,IAAI,EAAE,aAAS;IACf,KAAK,EAAE;QACL,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"}
|
package/src/lib/common/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.slackSendMessage = void 0;
|
|
3
|
+
exports.processMessageTimestamp = exports.slackSendMessage = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
6
|
const slackSendMessage = ({ text, conversationId, username, profilePicture, blocks, threadTs, token, file, }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -57,7 +57,7 @@ const slackSendMessage = ({ text, conversationId, username, profilePicture, bloc
|
|
|
57
57
|
throw new Error(JSON.stringify({
|
|
58
58
|
message: 'The bot is not in the channel',
|
|
59
59
|
code: 'not_in_channel',
|
|
60
|
-
action: 'Invite the bot from the channel settings'
|
|
60
|
+
action: 'Invite the bot from the channel settings',
|
|
61
61
|
}));
|
|
62
62
|
default: {
|
|
63
63
|
throw new Error(response.body.error);
|
|
@@ -71,4 +71,22 @@ const slackSendMessage = ({ text, conversationId, username, profilePicture, bloc
|
|
|
71
71
|
};
|
|
72
72
|
});
|
|
73
73
|
exports.slackSendMessage = slackSendMessage;
|
|
74
|
+
function processMessageTimestamp(input) {
|
|
75
|
+
// Regular expression to match a URL containing the timestamp
|
|
76
|
+
const urlRegex = /\/p(\d+)(\d{6})$/;
|
|
77
|
+
// Check if the input is a URL
|
|
78
|
+
const urlMatch = input.match(urlRegex);
|
|
79
|
+
if (urlMatch) {
|
|
80
|
+
const timestamp = `${urlMatch[1]}.${urlMatch[2]}`;
|
|
81
|
+
return timestamp;
|
|
82
|
+
}
|
|
83
|
+
// Check if the input is already in the desired format
|
|
84
|
+
const timestampRegex = /^(\d+)\.(\d{6})$/;
|
|
85
|
+
const timestampMatch = input.match(timestampRegex);
|
|
86
|
+
if (timestampMatch) {
|
|
87
|
+
return input;
|
|
88
|
+
}
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
exports.processMessageTimestamp = processMessageTimestamp;
|
|
74
92
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/common/utils.ts"],"names":[],"mappings":";;;;AAAA,+DAMqC;AAG9B,MAAM,gBAAgB,GAAG,CAAO,EACrC,IAAI,EACJ,cAAc,EACd,QAAQ,EACR,cAAc,EACd,MAAM,EACN,QAAQ,EACR,KAAK,EACL,IAAI,GACmB,EAAE,EAAE;IAC3B,IAAI,QAAsB,CAAC;IAC3B,IAAI,OAAoB,CAAC;IAEzB,IAAI,IAAI,EAAE,CAAC;QACT,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAChC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC/C,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5C,QAAQ,CAAC,MAAM,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;QACzC,IAAI,QAAQ;YAAE,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAErD,OAAO,GAAG;YACR,GAAG,EAAE,oCAAoC;YACzC,MAAM,EAAE,0BAAU,CAAC,IAAI;YACvB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,qBAAqB;aACtC;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;gBACrC,KAAK;aACN;SACF,CAAC;QACF,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,GAAQ;YAChB,IAAI;YACJ,OAAO,EAAE,cAAc;SACxB,CAAC;QAEF,IA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