Add punctuation to property descriptions

This commit is contained in:
Iván Ovejero 2021-01-29 11:44:02 -03:00
parent f712b5214e
commit 7b5dccb05d
5 changed files with 391 additions and 391 deletions

View file

@ -1,68 +1,68 @@
import { import {
INodeProperties, INodeProperties,
} from 'n8n-workflow'; } from 'n8n-workflow';
export const commentOperations = [ export const commentOperations = [
{ {
displayName: 'Operation', displayName: 'Operation',
name: 'operation', name: 'operation',
type: 'options', type: 'options',
default: 'create', default: 'create',
description: 'Operation to perform', description: 'Operation to perform',
options: [ options: [
{ {
name: 'Create', name: 'Create',
value: 'create', value: 'create',
}, },
], ],
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'comment', 'comment',
], ],
}, },
}, },
}, },
] as INodeProperties[]; ] as INodeProperties[];
export const commentFields = [ export const commentFields = [
// ---------------------------------- // ----------------------------------
// comment: create // comment: create
// ---------------------------------- // ----------------------------------
{ {
displayName: 'Target', displayName: 'Target',
name: 'target', name: 'target',
type: 'string', type: 'string',
default: '', default: '',
description: 'ID of the comment target', description: 'ID of the comment target.',
placeholder: 't3_15bfi0', placeholder: 't3_15bfi0',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'comment', 'comment',
], ],
operation: [ operation: [
'create', 'create',
], ],
}, },
}, },
}, },
{ {
displayName: 'Text', displayName: 'Text',
name: 'text', name: 'text',
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
description: 'Text of the comment (Markdown supported)', description: 'Text of the comment. Markdown supported.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'comment', 'comment',
], ],
operation: [ operation: [
'create', 'create',
], ],
}, },
}, },
}, },
] as INodeProperties[]; ] as INodeProperties[];

View file

@ -1,306 +1,306 @@
import { import {
INodeProperties, INodeProperties,
} from 'n8n-workflow'; } from 'n8n-workflow';
export const postOperations = [ export const postOperations = [
{ {
displayName: 'Operation', displayName: 'Operation',
name: 'operation', name: 'operation',
type: 'options', type: 'options',
default: 'create', default: 'create',
description: 'Operation to perform', description: 'Operation to perform',
options: [ options: [
{ {
name: 'Create', name: 'Create',
value: 'create', value: 'create',
}, },
{ {
name: 'Get All', name: 'Get All',
value: 'getAll', value: 'getAll',
}, },
], ],
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
}, },
}, },
}, },
] as INodeProperties[]; ] as INodeProperties[];
export const postFields = [ export const postFields = [
// ---------------------------------- // ----------------------------------
// post: create // post: create
// ---------------------------------- // ----------------------------------
{ {
displayName: 'Subreddit', displayName: 'Subreddit',
name: 'subreddit', name: 'subreddit',
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
description: 'Subreddit to create the post in', description: 'Subreddit to create the post in.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
operation: [ operation: [
'create', 'create',
], ],
}, },
}, },
}, },
{ {
displayName: 'Kind', displayName: 'Kind',
name: 'kind', name: 'kind',
type: 'options', type: 'options',
options: [ options: [
{ {
name: 'Text Post', name: 'Text Post',
value: 'self', value: 'self',
}, },
{ {
name: 'Link Post', name: 'Link Post',
value: 'link', value: 'link',
}, },
{ {
name: 'Image Post', name: 'Image Post',
value: 'image', value: 'image',
}, },
{ {
name: 'Video Post', name: 'Video Post',
value: 'video', value: 'video',
}, },
{ {
name: 'Video GIF Post', name: 'Video GIF Post',
value: 'videogif', value: 'videogif',
}, },
], ],
default: 'self', default: 'self',
description: 'The kind of the post to create', description: 'The kind of the post to create',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
operation: [ operation: [
'create', 'create',
], ],
}, },
}, },
}, },
{ {
displayName: 'Title', displayName: 'Title',
name: 'title', name: 'title',
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
description: 'Title of the post, up to 300 characters long', description: 'Title of the post, up to 300 characters long.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
operation: [ operation: [
'create', 'create',
], ],
}, },
}, },
}, },
{ {
displayName: 'URL', displayName: 'URL',
name: 'url', name: 'url',
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
description: 'URL of the post', description: 'URL of the post.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
operation: [ operation: [
'create', 'create',
], ],
kind: [ kind: [
'link', 'link',
'image', 'image',
'video', 'video',
'videogif', 'videogif',
], ],
}, },
}, },
}, },
{ {
displayName: 'Text', displayName: 'Text',
name: 'text', name: 'text',
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
description: 'Text of the post (Markdown supported)', description: 'Text of the post. Markdown supported.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
operation: [ operation: [
'create', 'create',
], ],
kind: [ kind: [
'self', 'self',
], ],
}, },
}, },
}, },
{ {
displayName: 'Resubmit', displayName: 'Resubmit',
name: 'resubmit', name: 'resubmit',
type: 'boolean', type: 'boolean',
default: false, default: false,
description: 'If toggled on, the URL will be posted even if<br>it was already posted to the subreddit before.<br>Otherwise, the re-posting will trigger an error.', description: 'If toggled on, the URL will be posted even if<br>it was already posted to the subreddit before.<br>Otherwise, the re-posting will trigger an error.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
operation: [ operation: [
'create', 'create',
], ],
kind: [ kind: [
'link', 'link',
'image', 'image',
'video', 'video',
'videogif', 'videogif',
], ],
}, },
}, },
}, },
// ---------------------------------- // ----------------------------------
// post: getAll // post: getAll
// ---------------------------------- // ----------------------------------
{ {
displayName: 'Best', displayName: 'Best',
name: 'best', name: 'best',
type: 'boolean', type: 'boolean',
default: false, default: false,
description: 'Best posts in all of Reddit', description: 'Best posts in all of Reddit.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
operation: [ operation: [
'getAll', 'getAll',
], ],
}, },
}, },
}, },
{ {
displayName: 'Subreddit', displayName: 'Subreddit',
name: 'subreddit', name: 'subreddit',
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
description: 'The name of subreddit to retrieve the posts from', description: 'The name of subreddit to retrieve the posts from.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
operation: [ operation: [
'getAll', 'getAll',
], ],
best: [ best: [
false, false,
], ],
}, },
}, },
}, },
{ {
displayName: 'Content', displayName: 'Content',
name: 'content', name: 'content',
type: 'options', type: 'options',
required: true, required: true,
default: 'top', default: 'top',
description: 'Content of posts to retrieve', description: 'Content of the posts to retrieve.',
options: [ options: [
{ {
name: 'Top Posts', name: 'Top Posts',
value: 'top', value: 'top',
}, },
{ {
name: 'Hot Posts', name: 'Hot Posts',
value: 'hot', value: 'hot',
}, },
{ {
name: 'New Posts', name: 'New Posts',
value: 'new', value: 'new',
}, },
{ {
name: 'Rising Posts', name: 'Rising Posts',
value: 'rising', value: 'rising',
}, },
], ],
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
operation: [ operation: [
'getAll', 'getAll',
], ],
best: [ best: [
false, false,
], ],
}, },
}, },
}, },
{ {
displayName: 'Return All', displayName: 'Return All',
name: 'returnAll', name: 'returnAll',
type: 'boolean', type: 'boolean',
default: false, default: false,
description: 'Return all results', description: 'Return all results.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
operation: [ operation: [
'getAll', 'getAll',
], ],
best: [ best: [
false, false,
], ],
}, },
}, },
}, },
{ {
displayName: 'Limit', displayName: 'Limit',
name: 'limit', name: 'limit',
type: 'number', type: 'number',
default: 5, default: 5,
description: 'The number of results to return', description: 'The number of results to return.',
typeOptions: { typeOptions: {
minValue: 1, minValue: 1,
maxValue: 100, maxValue: 100,
}, },
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
'post', 'post',
], ],
operation: [ operation: [
'getAll', 'getAll',
], ],
returnAll: [ returnAll: [
false, false,
], ],
best: [ best: [
false, false,
], ],
}, },
}, },
}, },
] as INodeProperties[]; ] as INodeProperties[];

View file

@ -33,27 +33,27 @@ export const profileFields = [
type: 'options', type: 'options',
required: true, required: true,
default: 'identity', default: 'identity',
description: 'Details of my account to retrieve', description: 'Details of my account to retrieve.',
options: [ options: [
{ {
name: 'Identity', name: 'Identity',
value: 'identity', value: 'identity',
description: 'Return the identity of the logged-in user', description: 'Return the identity of the logged-in user.',
}, },
{ {
name: 'Blocked Users', name: 'Blocked Users',
value: 'blockedUsers', value: 'blockedUsers',
description: 'Return the blocked users of the logged-in user', description: 'Return the blocked users of the logged-in user.',
}, },
{ {
name: 'Friends', name: 'Friends',
value: 'friends', value: 'friends',
description: 'Return the friends of the logged-in user', description: 'Return the friends of the logged-in user.',
}, },
{ {
name: 'Karma', name: 'Karma',
value: 'karma', value: 'karma',
description: 'Return the subreddit karma for the logged-in user', description: 'Return the subreddit karma for the logged-in user.',
}, },
{ {
name: 'Preferences', name: 'Preferences',
@ -63,7 +63,7 @@ export const profileFields = [
{ {
name: 'Trophies', name: 'Trophies',
value: 'trophies', value: 'trophies',
description: 'Return the trophies of the logged-in user', description: 'Return the trophies of the logged-in user.',
}, },
], ],
displayOptions: { displayOptions: {

View file

@ -39,7 +39,7 @@ export const subredditFields = [
type: 'options', type: 'options',
required: true, required: true,
default: 'about', default: 'about',
description: 'Subreddit content to retrieve', description: 'Subreddit content to retrieve.',
options: [ options: [
{ {
name: 'About', name: 'About',
@ -75,7 +75,7 @@ export const subredditFields = [
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
description: 'The name of subreddit to retrieve the content from', description: 'The name of subreddit to retrieve the content from.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
@ -92,7 +92,7 @@ export const subredditFields = [
name: 'returnAll', name: 'returnAll',
type: 'boolean', type: 'boolean',
default: false, default: false,
description: 'Return all results', description: 'Return all results.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
@ -109,7 +109,7 @@ export const subredditFields = [
name: 'limit', name: 'limit',
type: 'number', type: 'number',
default: 5, default: 5,
description: 'The number of results to return', description: 'The number of results to return.',
typeOptions: { typeOptions: {
minValue: 1, minValue: 1,
maxValue: 100, maxValue: 100,
@ -136,7 +136,7 @@ export const subredditFields = [
name: 'trending', name: 'trending',
type: 'boolean', type: 'boolean',
default: false, default: false,
description: 'Currently trending subreddits in all of Reddit', description: 'Currently trending subreddits in all of Reddit.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
@ -153,7 +153,7 @@ export const subredditFields = [
name: 'returnAll', name: 'returnAll',
type: 'boolean', type: 'boolean',
default: false, default: false,
description: 'Return all results', description: 'Return all results.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
@ -173,7 +173,7 @@ export const subredditFields = [
name: 'limit', name: 'limit',
type: 'number', type: 'number',
default: 5, default: 5,
description: 'The number of results to return', description: 'The number of results to return.',
typeOptions: { typeOptions: {
minValue: 1, minValue: 1,
maxValue: 100, maxValue: 100,

View file

@ -32,7 +32,7 @@ export const userFields = [
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
description: 'Reddit ID of the user to retrieve', description: 'Reddit ID of the user to retrieve.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
@ -50,7 +50,7 @@ export const userFields = [
type: 'options', type: 'options',
required: true, required: true,
default: 'about', default: 'about',
description: 'Details of the user to retrieve', description: 'Details of the user to retrieve.',
options: [ options: [
{ {
name: 'About', name: 'About',
@ -89,7 +89,7 @@ export const userFields = [
name: 'returnAll', name: 'returnAll',
type: 'boolean', type: 'boolean',
default: false, default: false,
description: 'Return all results', description: 'Return all results.',
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
@ -112,7 +112,7 @@ export const userFields = [
name: 'limit', name: 'limit',
type: 'number', type: 'number',
default: 5, default: 5,
description: 'The number of results to return', description: 'The number of results to return.',
typeOptions: { typeOptions: {
minValue: 1, minValue: 1,
maxValue: 100, maxValue: 100,