@pipedream/slack 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/slack",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Pipedream Slack Components",
5
5
  "main": "slack.app.mjs",
6
6
  "keywords": [
@@ -0,0 +1,32 @@
1
+ import common from "../common/base.mjs";
2
+ import sampleEmit from "./test-event.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "slack-new-user-added",
7
+ name: "New User Added (Instant)",
8
+ version: "0.0.1",
9
+ description: "Emit new event when a new member joins a workspace.",
10
+ type: "source",
11
+ dedupe: "unique",
12
+ props: {
13
+ ...common.props,
14
+ // eslint-disable-next-line pipedream/props-description,pipedream/props-label
15
+ slackApphook: {
16
+ type: "$.interface.apphook",
17
+ appProp: "slack",
18
+ async eventNames() {
19
+ return [
20
+ "team_join",
21
+ ];
22
+ },
23
+ },
24
+ },
25
+ methods: {
26
+ ...common.methods,
27
+ getSummary({ user: { name } }) {
28
+ return `New User: ${name}`;
29
+ },
30
+ },
31
+ sampleEmit,
32
+ };
@@ -0,0 +1,48 @@
1
+ export default {
2
+ "type": "team_join",
3
+ "user": {
4
+ "id": "U080GULP8SD",
5
+ "team_id": "TS8319547",
6
+ "name": "",
7
+ "deleted": false,
8
+ "color": "9b3b45",
9
+ "real_name": "",
10
+ "tz": "America/New_York",
11
+ "tz_label": "Eastern Standard Time",
12
+ "tz_offset": -18000,
13
+ "profile": {
14
+ "title": "",
15
+ "phone": "",
16
+ "skype": "",
17
+ "real_name": "",
18
+ "real_name_normalized": "",
19
+ "display_name": "",
20
+ "display_name_normalized": "",
21
+ "fields": {},
22
+ "status_text": "",
23
+ "status_emoji": "",
24
+ "status_emoji_display_info": [],
25
+ "status_expiration": 0,
26
+ "avatar_hash": "g96b6e8b38c2",
27
+ "email": "",
28
+ "first_name": "",
29
+ "last_name": "",
30
+ "status_text_canonical": "",
31
+ "team": "TS8319547"
32
+ },
33
+ "is_admin": false,
34
+ "is_owner": false,
35
+ "is_primary_owner": false,
36
+ "is_restricted": false,
37
+ "is_ultra_restricted": false,
38
+ "is_bot": false,
39
+ "is_app_user": false,
40
+ "updated": 1731094476,
41
+ "is_email_confirmed": true,
42
+ "who_can_share_contact_card": "EVERYONE",
43
+ "presence": "away"
44
+ },
45
+ "cache_ts": 1731094476,
46
+ "event_ts": "1731094477.001400",
47
+ "pipedream_msg_id": "pd_1731094479305_v1ic236by8"
48
+ }