UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

42 lines (37 loc) 1.23 kB
/** * Slack Node - Version 2.1 * Discriminator: resource=reaction, operation=add */ interface Credentials { slackApi: CredentialReference; slackOAuth2Api: CredentialReference; } /** Add a star to an item */ export type SlackV21ReactionAddParams = { resource: 'reaction'; operation: 'add'; authentication?: 'accessToken' | 'oAuth2' | Expression<string>; /** * The Slack channel to get the reactions from * @default {"mode":"list","value":""} */ channelId?: { __rl: true; mode: 'list' | 'id' | 'url'; value: string; cachedResultName?: string }; /** * Timestamp of the message to add, get or remove */ timestamp: number | Expression<number>; /** * Emoji code to use for the message reaction. Use emoji codes like +1, not an actual emoji like 👍. &lt;a target="_blank" href=" https://www.webfx.com/tools/emoji-cheat-sheet/"&gt;List of common emoji codes&lt;/a&gt; */ name?: string | Expression<string> | PlaceholderValue; }; export type SlackV21ReactionAddOutput = { ok?: boolean; }; export type SlackV21ReactionAddNode = { type: 'n8n-nodes-base.slack'; version: 2.1; credentials?: Credentials; config: NodeConfig<SlackV21ReactionAddParams>; output?: Items<SlackV21ReactionAddOutput>; };