n8n/packages/nodes-base/nodes/Slack/V1/MessageDescription.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

1596 lines
40 KiB
TypeScript
Raw Normal View History

import type { INodeProperties } from 'n8n-workflow';
2020-03-05 15:25:18 -08:00
export const messageOperations: INodeProperties[] = [
2020-03-05 15:25:18 -08:00
{
displayName: 'Operation',
name: 'operation',
type: 'options',
refactor: Apply more nodelinting rules (#3324) * :pencil2: Alphabetize lint rules * :fire: Remove duplicates * :zap: Update `lintfix` script * :shirt: Apply `node-param-operation-without-no-data-expression` (#3329) * :shirt: Apply `node-param-operation-without-no-data-expression` * :shirt: Add exceptions * :shirt: Apply `node-param-description-weak` (#3328) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-option-value-duplicate` (#3331) * :shirt: Apply `node-param-description-miscased-json` (#3337) * :shirt: Apply `node-param-display-name-excess-inner-whitespace` (#3335) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-type-options-missing-from-limit` (#3336) * Rule workig as intended * :pencil2: Uncomment rules Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-option-name-duplicate` (#3338) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-wrong-for-simplify` (#3334) * :zap: fix * :zap: exceptions * :zap: changed rule ignoring from file to line * :shirt: Apply `node-param-resource-without-no-data-expression` (#3339) * :shirt: Apply `node-param-display-name-untrimmed` (#3341) * :shirt: Apply `node-param-display-name-miscased-id` (#3340) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-resource-with-plural-option` (#3342) * :shirt: Apply `node-param-description-wrong-for-upsert` (#3333) * :zap: fix * :zap: replaced record with contact in description * :zap: fix Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-option-description-identical-to-name` (#3343) * :shirt: Apply `node-param-option-name-containing-star` (#3347) * :shirt: Apply `node-param-display-name-wrong-for-update-fields` (#3348) * :shirt: Apply `node-param-option-name-wrong-for-get-all` (#3345) * :zap: fix * :zap: exceptions * :shirt: Apply node-param-display-name-wrong-for-simplify (#3344) * Rule working as intended * Uncomented other rules * :shirt: Undo and add exceptions Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :zap: Alphabetize lint rules * :zap: Restore `lintfix` script Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com> Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
2022-05-20 14:47:24 -07:00
noDataExpression: true,
2020-03-05 15:25:18 -08:00
displayOptions: {
show: {
resource: ['message'],
2020-03-05 15:25:18 -08:00
},
},
options: [
2021-01-25 05:56:59 -08:00
{
name: 'Delete',
value: 'delete',
description: 'Deletes a message',
action: 'Delete a message',
2021-01-25 05:56:59 -08:00
},
{
name: 'Get Permalink',
value: 'getPermalink',
description: 'Get Permanent Link of a message',
action: 'Get a message permalink',
},
2020-03-05 15:25:18 -08:00
{
name: 'Post',
value: 'post',
description: 'Post a message into a channel',
action: 'Post a message',
2020-03-05 15:25:18 -08:00
},
{
name: 'Post (Ephemeral)',
value: 'postEphemeral',
description: 'Post an ephemeral message to a user in channel',
action: 'Post an ephemeral message',
},
2020-03-08 15:22:33 -07:00
{
name: 'Update',
value: 'update',
2021-01-25 05:56:59 -08:00
description: 'Updates a message',
action: 'Update a message',
},
2020-03-05 15:25:18 -08:00
],
default: 'post',
},
];
2020-03-05 15:25:18 -08:00
export const messageFields: INodeProperties[] = [
/* ----------------------------------------------------------------------- */
/* message:getPermalink
/* ----------------------------------------------------------------------- */
{
refactor: Apply more `eslint-plugin-n8n-nodes-base` autofixable rules (#3432) * :zap: Update `lintfix` script * :shirt: Remove unneeded lint exceptions * :shirt: Run baseline `lintfix` * :shirt: Apply `node-param-description-miscased-url` (#3441) * :shirt: Apply `rule node-param-placeholder-miscased-id` (#3443) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-option-name-wrong-for-upsert` (#3446) * :shirt: Apply `node-param-min-value-wrong-for-limit` (#3442) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-wrong-for-dynamic-options` (#3454) * :hammer: fix * :zap: Fix `Assigned To` fields Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `rule node-param-default-wrong-for-number` (#3453) * :shirt: Apply `node-param-default-wrong-for-string` (#3452) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-miscased` (#3449) * :hammer: fix * :hammer: exceptions * :zap: review fixes * :shirt: Apply `node-param-description-lowercase-first-char` (#3451) * :zap: fix * :zap: review fixes * :zap: fix Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-options` (#3456) * Rule working as intended * Add rule * :fire: Remove repetitions * :shirt: Add exceptions Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Small fix for `node-param-description-wrong-for-dynamic-options` * :shirt: Apply `node-param-default-wrong-for-fixed-collection` (#3460) * :shirt: Apply `node-param-description-line-break-html-tag` (#3462) * :shirt: Run baseline `lintfix` * :shirt: Apply `node-param-options-type-unsorted-items` (#3459) * :zap: fix * :hammer: exceptions * Add exception for Salesmate and Zoom Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :zap: Restore `lintfix` command Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com> Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
2022-06-03 10:23:49 -07:00
displayName: 'Channel Name or ID',
name: 'channelId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getChannels',
},
required: true,
default: '',
displayOptions: {
show: {
resource: ['message'],
operation: ['getPermalink'],
},
},
description:
'Channel containing the message. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
},
{
displayName: 'Timestamp',
name: 'timestamp',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['message'],
operation: ['getPermalink'],
},
},
description: 'Timestamp of the message to get permanent link',
},
/* -------------------------------------------------------------------------- */
/* message:post/postEphemeral */
/* -------------------------------------------------------------------------- */
2020-03-05 15:25:18 -08:00
{
displayName: 'Channel',
name: 'channel',
type: 'string',
default: '',
placeholder: 'Channel name',
displayOptions: {
show: {
operation: ['post', 'postEphemeral'],
resource: ['message'],
2020-03-05 15:25:18 -08:00
},
},
required: true,
description: 'The channel to send the message to',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'User',
name: 'user',
type: 'string',
default: '',
placeholder: 'User ID',
displayOptions: {
show: {
operation: ['postEphemeral'],
resource: ['message'],
},
},
required: true,
description: 'The user ID to send the message to',
},
2020-03-05 15:25:18 -08:00
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
displayOptions: {
show: {
operation: ['post', 'postEphemeral'],
resource: ['message'],
2020-03-05 15:25:18 -08:00
},
},
description: 'The text to send',
2020-03-05 15:25:18 -08:00
},
{
refactor: Apply more `eslint-plugin-n8n-nodes-base` autofixable rules (#3432) * :zap: Update `lintfix` script * :shirt: Remove unneeded lint exceptions * :shirt: Run baseline `lintfix` * :shirt: Apply `node-param-description-miscased-url` (#3441) * :shirt: Apply `rule node-param-placeholder-miscased-id` (#3443) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-option-name-wrong-for-upsert` (#3446) * :shirt: Apply `node-param-min-value-wrong-for-limit` (#3442) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-wrong-for-dynamic-options` (#3454) * :hammer: fix * :zap: Fix `Assigned To` fields Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `rule node-param-default-wrong-for-number` (#3453) * :shirt: Apply `node-param-default-wrong-for-string` (#3452) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-miscased` (#3449) * :hammer: fix * :hammer: exceptions * :zap: review fixes * :shirt: Apply `node-param-description-lowercase-first-char` (#3451) * :zap: fix * :zap: review fixes * :zap: fix Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-options` (#3456) * Rule working as intended * Add rule * :fire: Remove repetitions * :shirt: Add exceptions Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Small fix for `node-param-description-wrong-for-dynamic-options` * :shirt: Apply `node-param-default-wrong-for-fixed-collection` (#3460) * :shirt: Apply `node-param-description-line-break-html-tag` (#3462) * :shirt: Run baseline `lintfix` * :shirt: Apply `node-param-options-type-unsorted-items` (#3459) * :zap: fix * :hammer: exceptions * Add exception for Salesmate and Zoom Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :zap: Restore `lintfix` command Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com> Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
2022-06-03 10:23:49 -07:00
displayName: 'JSON Parameters',
name: 'jsonParameters',
type: 'boolean',
default: false,
displayOptions: {
show: {
operation: ['post', 'postEphemeral'],
resource: ['message'],
},
},
},
{
displayName: 'Options',
name: 'otherOptions',
type: 'collection',
displayOptions: {
show: {
operation: ['post', 'postEphemeral'],
resource: ['message'],
},
},
default: {},
description: 'Other options to set',
placeholder: 'Add option',
options: [
{
displayName: 'Icon Emoji',
name: 'icon_emoji',
type: 'string',
default: '',
description: 'Emoji to use as the icon for this message. Overrides icon_url.',
},
{
displayName: 'Icon URL',
name: 'icon_url',
type: 'string',
default: '',
description: 'URL to an image to use as the icon for this message',
},
{
displayName: 'Link Names',
name: 'link_names',
type: 'boolean',
default: false,
refactor: Apply more `eslint-plugin-n8n-nodes-base` rules (#3534) * :zap: Update `lintfix` script * :zap: Run baseline `lintfix` * :fire: Remove unneeded exceptions (#3538) * :fire: Remove exceptions for `node-param-default-wrong-for-simplify` * :fire: Remove exceptions for `node-param-placeholder-miscased-id` * :zap: Update version * :shirt: Apply `node-param-placeholder-missing` (#3542) * :shirt: Apply `filesystem-wrong-cred-filename` (#3543) * :shirt: Apply `node-param-description-missing-from-dynamic-options` (#3545) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-class-description-empty-string` (#3546) * :shirt: Apply `node-class-description-icon-not-svg` (#3548) * :shirt: Apply `filesystem-wrong-node-filename` (#3549) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Expand lintings to credentials (#3550) * :shirt: Apply `node-param-multi-options-type-unsorted-items` (#3552) * :zap: fix * :zap: Minor fixes Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-multi-options` (#3541) * :zap: Add new lint rule, node-param-description-wrong-for-dynamic-multi-options * :zap: Fix with updated linting rules * :zap: Minor fixes Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-boolean-without-whether` (#3553) * :zap: fix * Update packages/nodes-base/nodes/Clockify/ProjectDescription.ts Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply node-param-display-name-wrong-for-dynamic-multi-options (#3537) * :shirt: Add exceptions * :shirt: Add exception * :pencil2: Alphabetize rules * :zap: Restore `lintfix` command Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
2022-06-20 07:54:01 -07:00
description: 'Whether to find and link channel names and usernames',
},
{
displayName: 'Make Reply',
name: 'thread_ts',
type: 'string',
default: '',
description: "Provide another message's ts value to make this message a reply",
},
{
displayName: 'Markdown',
name: 'mrkdwn',
type: 'boolean',
default: true,
refactor: Apply more `eslint-plugin-n8n-nodes-base` rules (#3534) * :zap: Update `lintfix` script * :zap: Run baseline `lintfix` * :fire: Remove unneeded exceptions (#3538) * :fire: Remove exceptions for `node-param-default-wrong-for-simplify` * :fire: Remove exceptions for `node-param-placeholder-miscased-id` * :zap: Update version * :shirt: Apply `node-param-placeholder-missing` (#3542) * :shirt: Apply `filesystem-wrong-cred-filename` (#3543) * :shirt: Apply `node-param-description-missing-from-dynamic-options` (#3545) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-class-description-empty-string` (#3546) * :shirt: Apply `node-class-description-icon-not-svg` (#3548) * :shirt: Apply `filesystem-wrong-node-filename` (#3549) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Expand lintings to credentials (#3550) * :shirt: Apply `node-param-multi-options-type-unsorted-items` (#3552) * :zap: fix * :zap: Minor fixes Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-multi-options` (#3541) * :zap: Add new lint rule, node-param-description-wrong-for-dynamic-multi-options * :zap: Fix with updated linting rules * :zap: Minor fixes Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-boolean-without-whether` (#3553) * :zap: fix * Update packages/nodes-base/nodes/Clockify/ProjectDescription.ts Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply node-param-display-name-wrong-for-dynamic-multi-options (#3537) * :shirt: Add exceptions * :shirt: Add exception * :pencil2: Alphabetize rules * :zap: Restore `lintfix` command Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
2022-06-20 07:54:01 -07:00
description: 'Whether to use Slack Markdown parsing',
},
{
displayName: 'Reply Broadcast',
name: 'reply_broadcast',
type: 'boolean',
default: false,
description:
'Whether the reply should be made visible to everyone in the channel or conversation. Use in conjunction with thread_ts.',
},
{
displayName: 'Unfurl Links',
name: 'unfurl_links',
type: 'boolean',
default: false,
refactor: Apply more `eslint-plugin-n8n-nodes-base` rules (#3534) * :zap: Update `lintfix` script * :zap: Run baseline `lintfix` * :fire: Remove unneeded exceptions (#3538) * :fire: Remove exceptions for `node-param-default-wrong-for-simplify` * :fire: Remove exceptions for `node-param-placeholder-miscased-id` * :zap: Update version * :shirt: Apply `node-param-placeholder-missing` (#3542) * :shirt: Apply `filesystem-wrong-cred-filename` (#3543) * :shirt: Apply `node-param-description-missing-from-dynamic-options` (#3545) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-class-description-empty-string` (#3546) * :shirt: Apply `node-class-description-icon-not-svg` (#3548) * :shirt: Apply `filesystem-wrong-node-filename` (#3549) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Expand lintings to credentials (#3550) * :shirt: Apply `node-param-multi-options-type-unsorted-items` (#3552) * :zap: fix * :zap: Minor fixes Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-multi-options` (#3541) * :zap: Add new lint rule, node-param-description-wrong-for-dynamic-multi-options * :zap: Fix with updated linting rules * :zap: Minor fixes Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-boolean-without-whether` (#3553) * :zap: fix * Update packages/nodes-base/nodes/Clockify/ProjectDescription.ts Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply node-param-display-name-wrong-for-dynamic-multi-options (#3537) * :shirt: Add exceptions * :shirt: Add exception * :pencil2: Alphabetize rules * :zap: Restore `lintfix` command Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
2022-06-20 07:54:01 -07:00
description: 'Whether to enable unfurling of primarily text-based content',
},
{
displayName: 'Unfurl Media',
name: 'unfurl_media',
type: 'boolean',
default: true,
refactor: Apply more `eslint-plugin-n8n-nodes-base` rules (#3534) * :zap: Update `lintfix` script * :zap: Run baseline `lintfix` * :fire: Remove unneeded exceptions (#3538) * :fire: Remove exceptions for `node-param-default-wrong-for-simplify` * :fire: Remove exceptions for `node-param-placeholder-miscased-id` * :zap: Update version * :shirt: Apply `node-param-placeholder-missing` (#3542) * :shirt: Apply `filesystem-wrong-cred-filename` (#3543) * :shirt: Apply `node-param-description-missing-from-dynamic-options` (#3545) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-class-description-empty-string` (#3546) * :shirt: Apply `node-class-description-icon-not-svg` (#3548) * :shirt: Apply `filesystem-wrong-node-filename` (#3549) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Expand lintings to credentials (#3550) * :shirt: Apply `node-param-multi-options-type-unsorted-items` (#3552) * :zap: fix * :zap: Minor fixes Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-multi-options` (#3541) * :zap: Add new lint rule, node-param-description-wrong-for-dynamic-multi-options * :zap: Fix with updated linting rules * :zap: Minor fixes Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-boolean-without-whether` (#3553) * :zap: fix * Update packages/nodes-base/nodes/Clockify/ProjectDescription.ts Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply node-param-display-name-wrong-for-dynamic-multi-options (#3537) * :shirt: Add exceptions * :shirt: Add exception * :pencil2: Alphabetize rules * :zap: Restore `lintfix` command Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
2022-06-20 07:54:01 -07:00
description: 'Whether to disable unfurling of media content',
},
{
displayName: 'Send as User',
name: 'sendAsUser',
type: 'string',
displayOptions: {
show: {
'/authentication': ['accessToken'],
},
},
default: '',
description:
'The message will be sent from this username (i.e. as if this individual sent the message).',
},
],
},
2020-03-05 15:25:18 -08:00
{
displayName: 'Attachments',
name: 'attachments',
type: 'collection',
typeOptions: {
multipleValues: true,
multipleValueButtonText: 'Add attachment',
},
displayOptions: {
show: {
operation: ['post', 'postEphemeral'],
resource: ['message'],
2020-03-05 15:25:18 -08:00
},
},
default: {}, // TODO: Remove comment: has to make default array for the main property, check where that happens in UI
description: 'The attachment to add',
placeholder: 'Add attachment item',
options: [
{
displayName: 'Fallback Text',
name: 'fallback',
type: 'string',
default: '',
description: 'Required plain-text summary of the attachment',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
description: 'Text to send',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
description: 'Title of the message',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Title Link',
name: 'title_link',
type: 'string',
default: '',
description: 'Link of the title',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Color',
name: 'color',
type: 'color',
default: '#ff0000',
description: 'Color of the line left of text',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Pretext',
name: 'pretext',
type: 'string',
default: '',
description: 'Text which appears before the message block',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Author Name',
name: 'author_name',
type: 'string',
default: '',
description: 'Name that should appear',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Author Link',
name: 'author_link',
type: 'string',
default: '',
description: 'Link for the author',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Author Icon',
name: 'author_icon',
type: 'string',
default: '',
description: 'Icon which should appear for the user',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Image URL',
name: 'image_url',
type: 'string',
default: '',
description: 'URL of image',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Thumbnail URL',
name: 'thumb_url',
type: 'string',
default: '',
description: 'URL of thumbnail',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Footer',
name: 'footer',
type: 'string',
default: '',
description: 'Text of footer to add',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Footer Icon',
name: 'footer_icon',
type: 'string',
default: '',
description: 'Icon which should appear next to footer',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Timestamp',
name: 'ts',
type: 'dateTime',
default: '',
description: 'Time message relates to',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Fields',
name: 'fields',
placeholder: 'Add Fields',
description: 'Fields to add to message',
2020-03-05 15:25:18 -08:00
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
default: {},
options: [
{
name: 'item',
displayName: 'Item',
values: [
{
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
description: 'Title of the item',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'Value of the item',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Short',
name: 'short',
type: 'boolean',
default: true,
refactor: Apply more `eslint-plugin-n8n-nodes-base` rules (#3534) * :zap: Update `lintfix` script * :zap: Run baseline `lintfix` * :fire: Remove unneeded exceptions (#3538) * :fire: Remove exceptions for `node-param-default-wrong-for-simplify` * :fire: Remove exceptions for `node-param-placeholder-miscased-id` * :zap: Update version * :shirt: Apply `node-param-placeholder-missing` (#3542) * :shirt: Apply `filesystem-wrong-cred-filename` (#3543) * :shirt: Apply `node-param-description-missing-from-dynamic-options` (#3545) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-class-description-empty-string` (#3546) * :shirt: Apply `node-class-description-icon-not-svg` (#3548) * :shirt: Apply `filesystem-wrong-node-filename` (#3549) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Expand lintings to credentials (#3550) * :shirt: Apply `node-param-multi-options-type-unsorted-items` (#3552) * :zap: fix * :zap: Minor fixes Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-multi-options` (#3541) * :zap: Add new lint rule, node-param-description-wrong-for-dynamic-multi-options * :zap: Fix with updated linting rules * :zap: Minor fixes Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-boolean-without-whether` (#3553) * :zap: fix * Update packages/nodes-base/nodes/Clockify/ProjectDescription.ts Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply node-param-display-name-wrong-for-dynamic-multi-options (#3537) * :shirt: Add exceptions * :shirt: Add exception * :pencil2: Alphabetize rules * :zap: Restore `lintfix` command Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
2022-06-20 07:54:01 -07:00
description: 'Whether items can be displayed next to each other',
2020-03-05 15:25:18 -08:00
},
2020-10-22 06:46:03 -07:00
],
2020-03-05 15:25:18 -08:00
},
],
2020-10-22 06:46:03 -07:00
},
2020-03-05 15:25:18 -08:00
],
},
/* ----------------------------------------------------------------------- */
/* message:update */
/* ----------------------------------------------------------------------- */
2020-03-05 15:25:18 -08:00
{
refactor: Apply more `eslint-plugin-n8n-nodes-base` autofixable rules (#3432) * :zap: Update `lintfix` script * :shirt: Remove unneeded lint exceptions * :shirt: Run baseline `lintfix` * :shirt: Apply `node-param-description-miscased-url` (#3441) * :shirt: Apply `rule node-param-placeholder-miscased-id` (#3443) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-option-name-wrong-for-upsert` (#3446) * :shirt: Apply `node-param-min-value-wrong-for-limit` (#3442) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-wrong-for-dynamic-options` (#3454) * :hammer: fix * :zap: Fix `Assigned To` fields Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `rule node-param-default-wrong-for-number` (#3453) * :shirt: Apply `node-param-default-wrong-for-string` (#3452) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-miscased` (#3449) * :hammer: fix * :hammer: exceptions * :zap: review fixes * :shirt: Apply `node-param-description-lowercase-first-char` (#3451) * :zap: fix * :zap: review fixes * :zap: fix Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-options` (#3456) * Rule working as intended * Add rule * :fire: Remove repetitions * :shirt: Add exceptions Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Small fix for `node-param-description-wrong-for-dynamic-options` * :shirt: Apply `node-param-default-wrong-for-fixed-collection` (#3460) * :shirt: Apply `node-param-description-line-break-html-tag` (#3462) * :shirt: Run baseline `lintfix` * :shirt: Apply `node-param-options-type-unsorted-items` (#3459) * :zap: fix * :hammer: exceptions * Add exception for Salesmate and Zoom Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :zap: Restore `lintfix` command Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com> Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
2022-06-03 10:23:49 -07:00
displayName: 'Channel Name or ID',
2020-03-08 15:22:33 -07:00
name: 'channelId',
2020-03-15 07:51:49 -07:00
type: 'options',
typeOptions: {
loadOptionsMethod: 'getChannels',
},
2020-03-05 15:25:18 -08:00
required: true,
default: '',
displayOptions: {
show: {
resource: ['message'],
operation: ['update'],
2020-03-05 15:25:18 -08:00
},
},
description:
'Channel containing the message to be updated. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
2020-03-08 15:22:33 -07:00
},
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
displayOptions: {
show: {
resource: ['message'],
operation: ['update'],
2020-03-08 15:22:33 -07:00
},
},
description:
"New text for the message, using the default formatting rules. It's not required when presenting attachments.",
2020-03-08 15:22:33 -07:00
},
{
displayName: 'TS',
name: 'ts',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['message'],
operation: ['update'],
2020-03-08 15:22:33 -07:00
},
},
description: 'Timestamp of the message to be updated',
2020-03-08 15:22:33 -07:00
},
{
refactor: Apply more `eslint-plugin-n8n-nodes-base` autofixable rules (#3432) * :zap: Update `lintfix` script * :shirt: Remove unneeded lint exceptions * :shirt: Run baseline `lintfix` * :shirt: Apply `node-param-description-miscased-url` (#3441) * :shirt: Apply `rule node-param-placeholder-miscased-id` (#3443) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-option-name-wrong-for-upsert` (#3446) * :shirt: Apply `node-param-min-value-wrong-for-limit` (#3442) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-wrong-for-dynamic-options` (#3454) * :hammer: fix * :zap: Fix `Assigned To` fields Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `rule node-param-default-wrong-for-number` (#3453) * :shirt: Apply `node-param-default-wrong-for-string` (#3452) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-miscased` (#3449) * :hammer: fix * :hammer: exceptions * :zap: review fixes * :shirt: Apply `node-param-description-lowercase-first-char` (#3451) * :zap: fix * :zap: review fixes * :zap: fix Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-options` (#3456) * Rule working as intended * Add rule * :fire: Remove repetitions * :shirt: Add exceptions Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Small fix for `node-param-description-wrong-for-dynamic-options` * :shirt: Apply `node-param-default-wrong-for-fixed-collection` (#3460) * :shirt: Apply `node-param-description-line-break-html-tag` (#3462) * :shirt: Run baseline `lintfix` * :shirt: Apply `node-param-options-type-unsorted-items` (#3459) * :zap: fix * :hammer: exceptions * Add exception for Salesmate and Zoom Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :zap: Restore `lintfix` command Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com> Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
2022-06-03 10:23:49 -07:00
displayName: 'JSON Parameters',
name: 'jsonParameters',
type: 'boolean',
default: false,
displayOptions: {
show: {
operation: ['update'],
resource: ['message'],
},
},
},
2020-03-05 15:25:18 -08:00
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['message'],
operation: ['update'],
2020-03-05 15:25:18 -08:00
},
},
options: [
{
2020-03-08 15:22:33 -07:00
displayName: 'Link Names',
name: 'link_names',
type: 'boolean',
default: false,
refactor: Apply more `eslint-plugin-n8n-nodes-base` rules (#3534) * :zap: Update `lintfix` script * :zap: Run baseline `lintfix` * :fire: Remove unneeded exceptions (#3538) * :fire: Remove exceptions for `node-param-default-wrong-for-simplify` * :fire: Remove exceptions for `node-param-placeholder-miscased-id` * :zap: Update version * :shirt: Apply `node-param-placeholder-missing` (#3542) * :shirt: Apply `filesystem-wrong-cred-filename` (#3543) * :shirt: Apply `node-param-description-missing-from-dynamic-options` (#3545) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-class-description-empty-string` (#3546) * :shirt: Apply `node-class-description-icon-not-svg` (#3548) * :shirt: Apply `filesystem-wrong-node-filename` (#3549) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Expand lintings to credentials (#3550) * :shirt: Apply `node-param-multi-options-type-unsorted-items` (#3552) * :zap: fix * :zap: Minor fixes Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-multi-options` (#3541) * :zap: Add new lint rule, node-param-description-wrong-for-dynamic-multi-options * :zap: Fix with updated linting rules * :zap: Minor fixes Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-boolean-without-whether` (#3553) * :zap: fix * Update packages/nodes-base/nodes/Clockify/ProjectDescription.ts Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply node-param-display-name-wrong-for-dynamic-multi-options (#3537) * :shirt: Add exceptions * :shirt: Add exception * :pencil2: Alphabetize rules * :zap: Restore `lintfix` command Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
2022-06-20 07:54:01 -07:00
description: 'Whether to find and link channel names and usernames',
2020-03-08 15:22:33 -07:00
},
{
displayName: 'Parse',
name: 'parse',
type: 'options',
options: [
{
name: 'Client',
value: 'client',
},
{
name: 'Full',
value: 'full',
},
{
name: 'None',
value: 'none',
},
],
default: 'client',
description: 'Change how messages are treated',
2020-03-05 15:25:18 -08:00
},
2020-03-08 15:22:33 -07:00
],
},
{
displayName: 'Attachments',
name: 'attachmentsJson',
type: 'json',
default: '',
typeOptions: {
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {
resource: ['message'],
operation: ['update'],
jsonParameters: [true],
},
},
description: 'The attachments to add',
},
{
displayName: 'Blocks',
name: 'blocksJson',
type: 'json',
default: '',
typeOptions: {
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {
resource: ['message'],
operation: ['update'],
jsonParameters: [true],
},
},
description: 'The blocks to add',
},
{
displayName: 'Blocks',
name: 'blocksUi',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
multipleValueButtonText: 'Add Block',
},
displayOptions: {
show: {
operation: ['post'],
resource: ['message'],
jsonParameters: [false],
},
},
default: {},
description: 'The blocks to add',
placeholder: 'Add Block',
options: [
{
name: 'blocksValues',
displayName: 'Block',
values: [
{
displayName: 'Type',
name: 'type',
type: 'options',
options: [
{
name: 'Actions',
value: 'actions',
},
{
name: 'Section',
value: 'section',
},
],
default: 'actions',
},
{
displayName: 'Block ID',
name: 'blockId',
type: 'string',
displayOptions: {
show: {
type: ['actions'],
},
},
default: '',
description:
'A string acting as a unique identifier for a block. You can use this block_id when you receive an interaction payload to identify the source of the action. If not specified, a block_id will be generated. Maximum length for this field is 255 characters.',
},
{
displayName: 'Elements',
name: 'elementsUi',
placeholder: 'Add Element',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
displayOptions: {
show: {
type: ['actions'],
},
},
default: {},
options: [
{
name: 'elementsValues',
displayName: 'Element',
values: [
{
displayName: 'Type',
name: 'type',
type: 'options',
options: [
{
name: 'Button',
value: 'button',
},
],
default: 'button',
description: 'The type of element',
},
{
displayName: 'Text',
name: 'text',
type: 'string',
displayOptions: {
show: {
type: ['button'],
},
},
default: '',
description: 'The text for the block',
},
{
displayName: 'Emoji',
name: 'emoji',
type: 'boolean',
displayOptions: {
show: {
type: ['button'],
},
},
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format',
},
{
displayName: 'Action ID',
name: 'actionId',
type: 'string',
displayOptions: {
show: {
type: ['button'],
},
},
default: '',
description:
'An identifier for this action. You can use this when you receive an interaction payload to identify the source of the action. Should be unique among all other action_ids used elsewhere by your app.',
},
{
displayName: 'URL',
name: 'url',
type: 'string',
displayOptions: {
show: {
type: ['button'],
},
},
default: '',
description:
"A URL to load in the user's browser when the button is clicked. Maximum length for this field is 3000 characters. If you're using URL, you'll still receive an interaction payload and will need to send an acknowledgement response.",
},
{
displayName: 'Value',
name: 'value',
type: 'string',
displayOptions: {
show: {
type: ['button'],
},
},
default: '',
description: 'The value to send along with the interaction payload',
},
{
displayName: 'Style',
name: 'style',
type: 'options',
displayOptions: {
show: {
type: ['button'],
},
},
options: [
{
name: 'Danger',
value: 'danger',
},
{
name: 'Default',
value: 'default',
},
{
name: 'Primary',
value: 'primary',
},
],
default: 'default',
description: 'Decorates buttons with alternative visual color schemes',
},
{
displayName: 'Confirm',
name: 'confirmUi',
placeholder: 'Add Confirm',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
default: {},
options: [
{
name: 'confirmValue',
displayName: 'Confirm',
values: [
{
displayName: 'Title',
name: 'titleUi',
placeholder: 'Add Title',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
default: {},
options: [
{
name: 'titleValue',
displayName: 'Title',
values: [
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
description: 'Text of the title',
},
{
displayName: 'Emoji',
name: 'emoji',
type: 'boolean',
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
],
description: "Defines the dialog's title",
},
{
displayName: 'Text',
name: 'textUi',
placeholder: 'Add Text',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
default: {},
options: [
{
name: 'textValue',
displayName: 'Text',
values: [
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
description: 'The text for the block',
},
{
displayName: 'Emoji',
name: 'emoji',
type: 'boolean',
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
],
description:
'Defines the explanatory text that appears in the confirm dialog',
},
{
displayName: 'Confirm',
name: 'confirmTextUi',
placeholder: 'Add Confirm',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
default: {},
options: [
{
name: 'confirmValue',
displayName: 'Confirm',
values: [
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
description:
'Defines the explanatory text that appears in the confirm dialog',
},
{
displayName: 'Emoji',
name: 'emoji',
type: 'boolean',
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
],
description: 'Defines the text of the button that confirms the action',
},
{
displayName: 'Deny',
name: 'denyUi',
placeholder: 'Add Deny',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
default: {},
options: [
{
name: 'denyValue',
displayName: 'Deny',
values: [
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
description:
'Defines the text of the button that cancels the action',
},
{
displayName: 'Emoji',
name: 'emoji',
type: 'boolean',
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
],
description: 'Defines the text of the button that cancels the action',
},
{
displayName: 'Style',
name: 'style',
type: 'options',
options: [
{
name: 'Danger',
value: 'danger',
},
{
name: 'Default',
value: 'default',
},
{
name: 'Primary',
value: 'primary',
},
],
default: 'default',
description: 'Defines the color scheme applied to the confirm button',
},
],
},
],
description:
'Defines an optional confirmation dialog after the button is clicked',
},
],
},
],
},
{
displayName: 'Block ID',
name: 'blockId',
type: 'string',
displayOptions: {
show: {
type: ['section'],
},
},
default: '',
description:
'A string acting as a unique identifier for a block. You can use this block_id when you receive an interaction payload to identify the source of the action. If not specified, a block_id will be generated. Maximum length for this field is 255 characters.',
},
{
displayName: 'Text',
name: 'textUi',
placeholder: 'Add Text',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
displayOptions: {
show: {
type: ['section'],
},
},
default: {},
options: [
{
name: 'textValue',
displayName: 'Text',
values: [
{
displayName: 'Type',
name: 'type',
type: 'options',
options: [
{
name: 'Markdown',
value: 'mrkwdn',
},
{
name: 'Plain Text',
value: 'plainText',
},
],
default: 'mrkwdn',
description: 'The formatting to use for this text object',
},
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
description:
'The text for the block. This field accepts any of the standard text formatting markup when type is mrkdwn.',
},
{
displayName: 'Emoji',
name: 'emoji',
displayOptions: {
show: {
type: ['plainText'],
},
},
type: 'boolean',
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format. This field is only usable when type is plain_text.',
},
{
displayName: 'Verbatim',
name: 'verbatim',
displayOptions: {
show: {
type: ['mrkwdn'],
},
},
type: 'boolean',
default: false,
description:
'Whether to set to false (as is default) URLs will be auto-converted into links, conversation names will be link-ified, and certain mentions will be automatically parsed',
},
],
},
],
description: 'Define the text of the button that cancels the action',
},
{
displayName: 'Fields',
name: 'fieldsUi',
placeholder: 'Add Fields',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
displayOptions: {
show: {
type: ['section'],
},
},
default: {},
options: [
{
name: 'fieldsValues',
displayName: 'Text',
values: [
{
displayName: 'Type',
name: 'type',
type: 'options',
options: [
{
name: 'Markdown',
value: 'mrkwdn',
},
{
name: 'Plain Text',
value: 'plainText',
},
],
default: 'mrkwdn',
description: 'The formatting to use for this text object',
},
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
description:
'The text for the block. This field accepts any of the standard text formatting markup when type is mrkdwn.',
},
{
displayName: 'Emoji',
name: 'emoji',
type: 'boolean',
displayOptions: {
show: {
type: ['plainText'],
},
},
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format. This field is only usable when type is plain_text.',
},
{
displayName: 'Verbatim',
name: 'verbatim',
displayOptions: {
show: {
type: ['mrkwdn'],
},
},
type: 'boolean',
default: false,
refactor: Apply more `eslint-plugin-n8n-nodes-base` rules (#3534) * :zap: Update `lintfix` script * :zap: Run baseline `lintfix` * :fire: Remove unneeded exceptions (#3538) * :fire: Remove exceptions for `node-param-default-wrong-for-simplify` * :fire: Remove exceptions for `node-param-placeholder-miscased-id` * :zap: Update version * :shirt: Apply `node-param-placeholder-missing` (#3542) * :shirt: Apply `filesystem-wrong-cred-filename` (#3543) * :shirt: Apply `node-param-description-missing-from-dynamic-options` (#3545) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-class-description-empty-string` (#3546) * :shirt: Apply `node-class-description-icon-not-svg` (#3548) * :shirt: Apply `filesystem-wrong-node-filename` (#3549) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Expand lintings to credentials (#3550) * :shirt: Apply `node-param-multi-options-type-unsorted-items` (#3552) * :zap: fix * :zap: Minor fixes Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-multi-options` (#3541) * :zap: Add new lint rule, node-param-description-wrong-for-dynamic-multi-options * :zap: Fix with updated linting rules * :zap: Minor fixes Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-boolean-without-whether` (#3553) * :zap: fix * Update packages/nodes-base/nodes/Clockify/ProjectDescription.ts Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply node-param-display-name-wrong-for-dynamic-multi-options (#3537) * :shirt: Add exceptions * :shirt: Add exception * :pencil2: Alphabetize rules * :zap: Restore `lintfix` command Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
2022-06-20 07:54:01 -07:00
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
description:
'When set to false (as is default) URLs will be auto-converted into links, conversation names will be link-ified, and certain mentions will be automatically parsed',
},
],
},
],
description:
'An array of text objects. Any text objects included with fields will be rendered in a compact format that allows for 2 columns of side-by-side text. Maximum number of items is 10.',
},
{
displayName: 'Accessory',
name: 'accessoryUi',
placeholder: 'Add Accessory',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
displayOptions: {
show: {
type: ['section'],
},
},
default: {},
options: [
{
name: 'accessoriesValues',
displayName: 'Accessory',
values: [
{
displayName: 'Type',
name: 'type',
type: 'options',
options: [
{
name: 'Button',
value: 'button',
},
],
default: 'button',
description: 'The type of element',
},
{
displayName: 'Text',
name: 'text',
displayOptions: {
show: {
type: ['button'],
},
},
type: 'string',
default: '',
description: 'The text for the block',
},
{
displayName: 'Emoji',
name: 'emoji',
displayOptions: {
show: {
type: ['button'],
},
},
type: 'boolean',
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format',
},
{
displayName: 'Action ID',
name: 'actionId',
displayOptions: {
show: {
type: ['button'],
},
},
type: 'string',
default: '',
description:
'An identifier for this action. You can use this when you receive an interaction payload to identify the source of the action. Should be unique among all other action_ids used elsewhere by your app.',
},
{
displayName: 'URL',
name: 'url',
displayOptions: {
show: {
type: ['button'],
},
},
type: 'string',
default: '',
description:
"A URL to load in the user's browser when the button is clicked. Maximum length for this field is 3000 characters. If you're using URL, you'll still receive an interaction payload and will need to send an acknowledgement response.",
},
{
displayName: 'Value',
name: 'value',
displayOptions: {
show: {
type: ['button'],
},
},
type: 'string',
default: '',
description: 'The value to send along with the interaction payload',
},
{
displayName: 'Style',
name: 'style',
displayOptions: {
show: {
type: ['button'],
},
},
type: 'options',
options: [
{
name: 'Danger',
value: 'danger',
},
{
name: 'Default',
value: 'default',
},
{
name: 'Primary',
value: 'primary',
},
],
default: 'default',
description: 'Decorates buttons with alternative visual color schemes',
},
{
displayName: 'Confirm',
name: 'confirmUi',
placeholder: 'Add Confirm',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
displayOptions: {
show: {
type: ['button'],
},
},
default: {},
options: [
{
name: 'confirmValue',
displayName: 'Confirm',
values: [
{
displayName: 'Title',
name: 'titleUi',
placeholder: 'Add Title',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
default: {},
options: [
{
name: 'titleValue',
displayName: 'Title',
values: [
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
description: 'Text of the title',
},
{
displayName: 'Emoji',
name: 'emoji',
type: 'boolean',
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
],
description:
'Defines an optional confirmation dialog after the button is clicked',
},
{
displayName: 'Text',
name: 'textUi',
placeholder: 'Add Text',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
default: {},
options: [
{
name: 'textValue',
displayName: 'Text',
values: [
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
description: 'The text for the block',
},
{
displayName: 'Emoji',
name: 'emoji',
type: 'boolean',
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
],
description:
'Defines the explanatory text that appears in the confirm dialog',
},
{
displayName: 'Confirm',
name: 'confirmTextUi',
placeholder: 'Add Confirm',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
default: {},
options: [
{
name: 'confirmValue',
displayName: 'Confirm',
values: [
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
description:
'Defines the explanatory text that appears in the confirm dialog',
},
{
displayName: 'Emoji',
name: 'emoji',
type: 'boolean',
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
],
description:
'Defines the explanatory text that appears in the confirm dialog',
},
{
displayName: 'Deny',
name: 'denyUi',
placeholder: 'Add Deny',
type: 'fixedCollection',
typeOptions: {
multipleValues: false,
},
default: {},
options: [
{
name: 'denyValue',
displayName: 'Deny',
values: [
{
displayName: 'Text',
name: 'text',
type: 'string',
default: '',
description:
'Define the text of the button that cancels the action',
},
{
displayName: 'Emoji',
name: 'emoji',
type: 'boolean',
default: false,
description:
'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
],
description: 'Define the text of the button that cancels the action',
},
{
displayName: 'Style',
name: 'style',
type: 'options',
options: [
{
name: 'Danger',
value: 'danger',
},
{
name: 'Default',
value: 'default',
},
{
name: 'Primary',
value: 'primary',
},
],
default: 'default',
description: 'Defines the color scheme applied to the confirm button',
},
],
},
],
description:
'Defines an optional confirmation dialog after the button is clicked',
},
],
},
],
},
],
},
],
},
{
displayName: 'Attachments',
name: 'attachmentsJson',
type: 'json',
default: '',
typeOptions: {
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {
resource: ['message'],
operation: ['post'],
jsonParameters: [true],
},
},
description: 'The attachments to add',
},
{
displayName: 'Blocks',
name: 'blocksJson',
type: 'json',
default: '',
typeOptions: {
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {
resource: ['message'],
operation: ['post'],
jsonParameters: [true],
},
},
description: 'The blocks to add',
},
2020-03-08 15:22:33 -07:00
{
displayName: 'Attachments',
name: 'attachments',
type: 'collection',
typeOptions: {
multipleValues: true,
multipleValueButtonText: 'Add attachment',
},
displayOptions: {
show: {
jsonParameters: [false],
operation: ['update'],
resource: ['message'],
2020-03-08 15:22:33 -07:00
},
},
default: {}, // TODO: Remove comment: has to make default array for the main property, check where that happens in UI
description: 'The attachment to add',
placeholder: 'Add attachment item',
options: [
2020-03-05 15:25:18 -08:00
{
2020-03-08 15:22:33 -07:00
displayName: 'Fallback Text',
name: 'fallback',
2020-03-05 15:25:18 -08:00
type: 'string',
default: '',
description: 'Required plain-text summary of the attachment',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Text',
name: 'text',
2020-03-05 15:25:18 -08:00
type: 'string',
default: '',
description: 'Text to send',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
description: 'Title of the message',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Title Link',
name: 'title_link',
2020-03-05 15:25:18 -08:00
type: 'string',
2020-03-08 15:22:33 -07:00
default: '',
description: 'Link of the title',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Color',
name: 'color',
type: 'color',
default: '#ff0000',
description: 'Color of the line left of text',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Pretext',
name: 'pretext',
type: 'string',
2020-03-05 15:25:18 -08:00
default: '',
description: 'Text which appears before the message block',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Author Name',
name: 'author_name',
type: 'string',
2020-03-05 15:25:18 -08:00
default: '',
description: 'Name that should appear',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Author Link',
name: 'author_link',
type: 'string',
default: '',
description: 'Link for the author',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Author Icon',
name: 'author_icon',
type: 'string',
2020-03-05 15:25:18 -08:00
default: '',
description: 'Icon which should appear for the user',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Image URL',
name: 'image_url',
type: 'string',
2020-03-05 15:25:18 -08:00
default: '',
description: 'URL of image',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Thumbnail URL',
name: 'thumb_url',
type: 'string',
2020-03-05 15:25:18 -08:00
default: '',
description: 'URL of thumbnail',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Footer',
name: 'footer',
type: 'string',
2020-03-05 15:25:18 -08:00
default: '',
description: 'Text of footer to add',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Footer Icon',
name: 'footer_icon',
2020-03-05 15:25:18 -08:00
type: 'string',
default: '',
description: 'Icon which should appear next to footer',
2020-03-05 15:25:18 -08:00
},
{
2020-03-08 15:22:33 -07:00
displayName: 'Timestamp',
name: 'ts',
type: 'dateTime',
2020-03-05 15:25:18 -08:00
default: '',
description: 'Time message relates to',
2020-03-05 15:25:18 -08:00
},
{
displayName: 'Fields',
name: 'fields',
2020-03-08 15:22:33 -07:00
placeholder: 'Add Fields',
description: 'Fields to add to message',
2020-03-08 15:22:33 -07:00
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
default: {},
options: [
{
name: 'item',
displayName: 'Item',
values: [
{
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
description: 'Title of the item',
2020-03-08 15:22:33 -07:00
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'Value of the item',
2020-03-08 15:22:33 -07:00
},
{
displayName: 'Short',
name: 'short',
type: 'boolean',
default: true,
refactor: Apply more `eslint-plugin-n8n-nodes-base` rules (#3534) * :zap: Update `lintfix` script * :zap: Run baseline `lintfix` * :fire: Remove unneeded exceptions (#3538) * :fire: Remove exceptions for `node-param-default-wrong-for-simplify` * :fire: Remove exceptions for `node-param-placeholder-miscased-id` * :zap: Update version * :shirt: Apply `node-param-placeholder-missing` (#3542) * :shirt: Apply `filesystem-wrong-cred-filename` (#3543) * :shirt: Apply `node-param-description-missing-from-dynamic-options` (#3545) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-class-description-empty-string` (#3546) * :shirt: Apply `node-class-description-icon-not-svg` (#3548) * :shirt: Apply `filesystem-wrong-node-filename` (#3549) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Expand lintings to credentials (#3550) * :shirt: Apply `node-param-multi-options-type-unsorted-items` (#3552) * :zap: fix * :zap: Minor fixes Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-multi-options` (#3541) * :zap: Add new lint rule, node-param-description-wrong-for-dynamic-multi-options * :zap: Fix with updated linting rules * :zap: Minor fixes Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-boolean-without-whether` (#3553) * :zap: fix * Update packages/nodes-base/nodes/Clockify/ProjectDescription.ts Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply node-param-display-name-wrong-for-dynamic-multi-options (#3537) * :shirt: Add exceptions * :shirt: Add exception * :pencil2: Alphabetize rules * :zap: Restore `lintfix` command Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
2022-06-20 07:54:01 -07:00
description: 'Whether items can be displayed next to each other',
2020-03-08 15:22:33 -07:00
},
2020-10-22 06:46:03 -07:00
],
2020-03-08 15:22:33 -07:00
},
],
2020-10-22 06:46:03 -07:00
},
2020-03-08 15:22:33 -07:00
],
2020-03-05 15:25:18 -08:00
},
/* ----------------------------------------------------------------------- */
/* message:delete
/* ----------------------------------------------------------------------- */
{
refactor: Apply more `eslint-plugin-n8n-nodes-base` autofixable rules (#3432) * :zap: Update `lintfix` script * :shirt: Remove unneeded lint exceptions * :shirt: Run baseline `lintfix` * :shirt: Apply `node-param-description-miscased-url` (#3441) * :shirt: Apply `rule node-param-placeholder-miscased-id` (#3443) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-option-name-wrong-for-upsert` (#3446) * :shirt: Apply `node-param-min-value-wrong-for-limit` (#3442) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-wrong-for-dynamic-options` (#3454) * :hammer: fix * :zap: Fix `Assigned To` fields Co-authored-by: Michael Kret <michael.k@radency.com> * :shirt: Apply `rule node-param-default-wrong-for-number` (#3453) * :shirt: Apply `node-param-default-wrong-for-string` (#3452) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-miscased` (#3449) * :hammer: fix * :hammer: exceptions * :zap: review fixes * :shirt: Apply `node-param-description-lowercase-first-char` (#3451) * :zap: fix * :zap: review fixes * :zap: fix Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Apply `node-param-description-wrong-for-dynamic-options` (#3456) * Rule working as intended * Add rule * :fire: Remove repetitions * :shirt: Add exceptions Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :shirt: Small fix for `node-param-description-wrong-for-dynamic-options` * :shirt: Apply `node-param-default-wrong-for-fixed-collection` (#3460) * :shirt: Apply `node-param-description-line-break-html-tag` (#3462) * :shirt: Run baseline `lintfix` * :shirt: Apply `node-param-options-type-unsorted-items` (#3459) * :zap: fix * :hammer: exceptions * Add exception for Salesmate and Zoom Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * :zap: Restore `lintfix` command Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com> Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
2022-06-03 10:23:49 -07:00
displayName: 'Channel Name or ID',
name: 'channelId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getChannels',
},
required: true,
default: '',
displayOptions: {
show: {
resource: ['message'],
operation: ['delete'],
},
},
description:
'Channel containing the message to be deleted. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
},
{
displayName: 'Timestamp',
2021-01-25 05:56:59 -08:00
name: 'timestamp',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['message'],
operation: ['delete'],
},
},
description: 'Timestamp of the message to be deleted',
},
];