From 340d114661cc3fca46b43f809dc5f5f72ba94940 Mon Sep 17 00:00:00 2001 From: Fil Maj Date: Mon, 28 Oct 2024 11:46:08 -0400 Subject: [PATCH] fix: updating available event trigger data (#114) --- .../triggers/event-data/channel_archived.ts | 2 +- .../workflows/triggers/event-data/message_posted.ts | 4 ---- .../workflows/triggers/event-data/reaction_added.ts | 12 ++++++++++++ .../triggers/event-data/user_joined_channel.ts | 4 ---- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/typed-method-types/workflows/triggers/event-data/channel_archived.ts b/src/typed-method-types/workflows/triggers/event-data/channel_archived.ts index a525a2c..85e95cf 100644 --- a/src/typed-method-types/workflows/triggers/event-data/channel_archived.ts +++ b/src/typed-method-types/workflows/triggers/event-data/channel_archived.ts @@ -11,7 +11,7 @@ export const ChannelArchived = { */ channel_name: "{{data.channel_name}}", /** - * The channel type for the channel that was archived. Can be one of "public" or "private". + * The channel type for the channel that was archived. Can be one of `public`, `private`, `im` or `mpim`. */ channel_type: "{{data.channel_type}}", /** diff --git a/src/typed-method-types/workflows/triggers/event-data/message_posted.ts b/src/typed-method-types/workflows/triggers/event-data/message_posted.ts index 8a962a6..f38fbe3 100644 --- a/src/typed-method-types/workflows/triggers/event-data/message_posted.ts +++ b/src/typed-method-types/workflows/triggers/event-data/message_posted.ts @@ -2,10 +2,6 @@ import base_trigger_data from "./common-objects/all_triggers.ts"; export const MessagePosted = { ...base_trigger_data, - /** - * A unique identifier for the app that posted the message. Only available when message is posted by an app. - */ - app_id: "{{data.app_id}}", /** * A unique identifier for the {@link https://api.slack.com/automation/types#channelid Slack channel} where message was posted. */ diff --git a/src/typed-method-types/workflows/triggers/event-data/reaction_added.ts b/src/typed-method-types/workflows/triggers/event-data/reaction_added.ts index dad1d90..535a164 100644 --- a/src/typed-method-types/workflows/triggers/event-data/reaction_added.ts +++ b/src/typed-method-types/workflows/triggers/event-data/reaction_added.ts @@ -10,14 +10,26 @@ export const ReactionAdded = { * The event type being invoked. At runtime will always be "slack#/events/reaction_added". */ event_type: "{{data.event_type}}", + /** + * A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who sent the message that was reacted to. + */ + item_user: "{{data.item_user}}", /** * A {@link https://api.slack.com/automation/types#message-context Message Context} object representing the message being reacted to. */ message_context: "{{data.message_context}}", + /** + * Link to the message that was reacted to. + */ + message_link: "{{data.message_link}}", /** * A unique {@link https://api.slack.com/automation/types#message-ts Slack message timestamp string} indicating when the message being reacted to was sent. */ message_ts: "{{data.message_ts}}", + /** + * Link to the parent of the message that was reacted to. Only available if reaction was added to a threaded reply. + */ + parent_message_link: "{{data.parent_message_link}}", /** * A string representing the emoji name. */ diff --git a/src/typed-method-types/workflows/triggers/event-data/user_joined_channel.ts b/src/typed-method-types/workflows/triggers/event-data/user_joined_channel.ts index 25cf785..90df06b 100644 --- a/src/typed-method-types/workflows/triggers/event-data/user_joined_channel.ts +++ b/src/typed-method-types/workflows/triggers/event-data/user_joined_channel.ts @@ -14,10 +14,6 @@ export const UserJoinedChannel = { * The event type being invoked. At runtime will always be "slack#/events/user_joined_channel". */ event_type: "{{data.event_type}}", - /** - * A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who invited the member to the channel. - */ - inviter_id: "{{data.inviter_id}}", /** * A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who joined the channel. */