UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

87 lines 2.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.reactionFields = exports.reactionOperations = void 0; const utils_1 = require("./utils"); exports.reactionOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['reaction'], }, }, options: [ { name: 'Add', value: 'add', description: 'Adds a reaction to a message', action: 'Add a reaction', }, { name: 'Get', value: 'get', description: 'Get the reactions of a message', action: 'Get a reaction', }, { name: 'Remove', value: 'remove', description: 'Remove a reaction of a message', action: 'Remove a reaction', }, ], default: 'add', }, ]; exports.reactionFields = [ { displayName: 'Channel', name: 'channelId', type: 'resourceLocator', default: { mode: 'list', value: '' }, placeholder: 'Select a channel...', modes: utils_1.slackChannelModes, required: true, displayOptions: { show: { resource: ['reaction'], operation: ['add', 'get', 'remove'], }, }, description: 'The Slack channel to get the reactions from', }, { displayName: 'Message Timestamp', name: 'timestamp', required: true, type: 'number', default: undefined, displayOptions: { show: { resource: ['reaction'], operation: ['add', 'get', 'remove'], }, }, description: 'Timestamp of the message to add, get or remove', placeholder: '1663233118.856619', }, { displayName: 'Emoji Code', name: 'name', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['reaction'], operation: ['add', 'remove'], }, }, description: 'Emoji code to use for the message reaction. Use emoji codes like +1, not an actual emoji like 👍. <a target="_blank" href=" https://www.webfx.com/tools/emoji-cheat-sheet/">List of common emoji codes</a>', placeholder: '+1', }, ]; //# sourceMappingURL=ReactionDescription.js.map