* 👕 Enable `consistent-type-imports` for nodes-base * 👕 Apply to nodes-base * ⏪ Undo unrelated changes * 🚚 Move to `.eslintrc.js` in nodes-base * ⏪ Revert "Enable `consistent-type-imports` for nodes-base" This reverts commit 529ad72b051478fa1633aaf84b2864f2fdc7613c. * 👕 Fix severity
54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
import type { ReactionProperties } from '../../Interfaces';
|
|
|
|
export const reactionDeleteDescription: ReactionProperties = [
|
|
{
|
|
displayName: 'User Name or ID',
|
|
name: 'userId',
|
|
type: 'options',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getUsers',
|
|
},
|
|
options: [],
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['reaction'],
|
|
operation: ['delete'],
|
|
},
|
|
},
|
|
description:
|
|
'ID of the user whose reaction to delete. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
|
},
|
|
{
|
|
displayName: 'Post ID',
|
|
name: 'postId',
|
|
type: 'string',
|
|
default: '',
|
|
placeholder: '3moacfqxmbdw38r38fjprh6zsr',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['reaction'],
|
|
operation: ['delete'],
|
|
},
|
|
},
|
|
description:
|
|
'ID of the post whose reaction to delete. Obtainable from the post link: <code>https://mattermost.internal.n8n.io/[server]/pl/[postId]</code>',
|
|
},
|
|
{
|
|
displayName: 'Emoji Name',
|
|
name: 'emojiName',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['reaction'],
|
|
operation: ['delete'],
|
|
},
|
|
},
|
|
description: 'Name of the emoji to delete',
|
|
},
|
|
];
|