mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
0448feec56
* ⚡ Initial setup
* 👕 Update `.eslintignore`
* 👕 Autofix node-param-default-missing (#3173)
* 🔥 Remove duplicate key
* 👕 Add exceptions
* 📦 Update package-lock.json
* 👕 Apply `node-class-description-inputs-wrong-trigger-node` (#3176)
* 👕 Apply `node-class-description-inputs-wrong-regular-node` (#3177)
* 👕 Apply `node-class-description-outputs-wrong` (#3178)
* 👕 Apply `node-execute-block-double-assertion-for-items` (#3179)
* 👕 Apply `node-param-default-wrong-for-collection` (#3180)
* 👕 Apply node-param-default-wrong-for-boolean (#3181)
* Autofixed default missing
* Autofixed booleans, worked well
* ⚡ Fix params
* ⏪ Undo exempted autofixes
* 📦 Update package-lock.json
* 👕 Apply node-class-description-missing-subtitle (#3182)
* ⚡ Fix missing comma
* 👕 Apply `node-param-default-wrong-for-fixed-collection` (#3184)
* 👕 Add exception for `node-class-description-missing-subtitle`
* 👕 Apply `node-param-default-wrong-for-multi-options` (#3185)
* 👕 Apply `node-param-collection-type-unsorted-items` (#3186)
* Missing coma
* 👕 Apply `node-param-default-wrong-for-simplify` (#3187)
* 👕 Apply `node-param-description-comma-separated-hyphen` (#3190)
* 👕 Apply `node-param-description-empty-string` (#3189)
* 👕 Apply `node-param-description-excess-inner-whitespace` (#3191)
* Rule looks good
* Add whitespace rule in eslint config
* :zao: fix
* 👕 Apply `node-param-description-identical-to-display-name` (#3193)
* 👕 Apply `node-param-description-missing-for-ignore-ssl-issues` (#3195)
* ⏪ Revert ":zao: fix"
This reverts commit ef8a76f3df
.
* 👕 Apply `node-param-description-missing-for-simplify` (#3196)
* 👕 Apply `node-param-description-missing-final-period` (#3194)
* Rule working as intended
* Add rule to eslint
* 👕 Apply node-param-description-missing-for-return-all (#3197)
* ⚡ Restore `lintfix` command
Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: agobrech <ael.gobrecht@gmail.com>
Co-authored-by: Michael Kret <michael.k@radency.com>
932 lines
16 KiB
TypeScript
932 lines
16 KiB
TypeScript
import {
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export const postOperations: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'contentApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
description: 'Get a post',
|
|
},
|
|
{
|
|
name: 'Get All',
|
|
value: 'getAll',
|
|
description: 'Get all posts',
|
|
},
|
|
],
|
|
default: 'get',
|
|
description: 'The operation to perform.',
|
|
},
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create a post',
|
|
},
|
|
{
|
|
name: 'Delete',
|
|
value: 'delete',
|
|
description: 'Delete a post',
|
|
},
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
description: 'Get a post',
|
|
},
|
|
{
|
|
name: 'Get All',
|
|
value: 'getAll',
|
|
description: 'Get all posts',
|
|
},
|
|
{
|
|
name: 'Update',
|
|
value: 'update',
|
|
description: 'Update a post',
|
|
},
|
|
],
|
|
default: 'get',
|
|
description: 'The operation to perform.',
|
|
},
|
|
];
|
|
|
|
export const postFields: INodeProperties[] = [
|
|
/* -------------------------------------------------------------------------- */
|
|
/* post:create */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Title',
|
|
name: 'title',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
description: `Post's title.`,
|
|
},
|
|
{
|
|
displayName: 'Content Format',
|
|
name: 'contentFormat',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'HTML',
|
|
value: 'html',
|
|
},
|
|
{
|
|
name: 'Mobile Doc',
|
|
value: 'mobileDoc',
|
|
},
|
|
],
|
|
default: 'html',
|
|
description: `The format of the post.`,
|
|
},
|
|
{
|
|
displayName: 'Content',
|
|
name: 'content',
|
|
type: 'string',
|
|
typeOptions: {
|
|
alwaysOpenEditWindow: true,
|
|
},
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
contentFormat: [
|
|
'html',
|
|
],
|
|
},
|
|
},
|
|
default: '',
|
|
description: 'The content of the post to create.',
|
|
},
|
|
{
|
|
displayName: 'Content (JSON)',
|
|
name: 'content',
|
|
type: 'json',
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
contentFormat: [
|
|
'mobileDoc',
|
|
],
|
|
},
|
|
},
|
|
|
|
default: '',
|
|
description: 'Mobiledoc is the raw JSON format that Ghost uses to store post contents. <a href="https://ghost.org/docs/concepts/posts/#document-storage">Info</a>.',
|
|
},
|
|
{
|
|
displayName: 'Additional Fields',
|
|
name: 'additionalFields',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
default: {},
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'Authors IDs',
|
|
name: 'authors',
|
|
type: 'multiOptions',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getAuthors',
|
|
},
|
|
default: [],
|
|
},
|
|
{
|
|
displayName: 'Cannonical URL',
|
|
name: 'canonical_url',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Code Injection Foot',
|
|
name: 'codeinjection_foot',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'The Code Injection allows you inject a small snippet into your Ghost site',
|
|
},
|
|
{
|
|
displayName: 'Code Injection Head',
|
|
name: 'codeinjection_head',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'The Code Injection allows you inject a small snippet into your Ghost site',
|
|
},
|
|
{
|
|
displayName: 'Featured',
|
|
name: 'featured',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
{
|
|
displayName: 'Meta Description',
|
|
name: 'meta_description',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Meta Title',
|
|
name: 'meta_title',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Open Graph Description',
|
|
name: 'og_description',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Open Graph Title',
|
|
name: 'og_title',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Open Graph Image',
|
|
name: 'og_image',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'URL of the image',
|
|
|
|
},
|
|
{
|
|
displayName: 'Published At',
|
|
name: 'published_at',
|
|
type: 'dateTime',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Slug',
|
|
name: 'slug',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Status',
|
|
name: 'status',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: 'Draft',
|
|
value: 'draft',
|
|
},
|
|
{
|
|
name: 'Published',
|
|
value: 'published',
|
|
},
|
|
{
|
|
name: 'Scheduled',
|
|
value: 'scheduled',
|
|
},
|
|
],
|
|
default: 'draft',
|
|
},
|
|
{
|
|
displayName: 'Tags IDs',
|
|
name: 'tags',
|
|
type: 'multiOptions',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getTags',
|
|
},
|
|
default: [],
|
|
},
|
|
{
|
|
displayName: 'Twitter Description',
|
|
name: 'twitter_description',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Twitter Image',
|
|
name: 'twitter_image',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'URL of the image',
|
|
},
|
|
{
|
|
displayName: 'Twitter Title',
|
|
name: 'twitter_title',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
],
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* post:delete */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Post ID',
|
|
name: 'postId',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'delete',
|
|
],
|
|
},
|
|
},
|
|
description: 'The ID of the post to delete.',
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* post:get */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'By',
|
|
name: 'by',
|
|
type: 'options',
|
|
default: '',
|
|
required: true,
|
|
options: [
|
|
{
|
|
name: 'ID',
|
|
value: 'id',
|
|
},
|
|
{
|
|
name: 'Slug',
|
|
value: 'slug',
|
|
},
|
|
],
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'contentApi',
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'get',
|
|
],
|
|
},
|
|
},
|
|
description: 'Get the post either by slug or ID.',
|
|
},
|
|
{
|
|
displayName: 'Identifier',
|
|
name: 'identifier',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'contentApi',
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'get',
|
|
],
|
|
},
|
|
},
|
|
description: 'The ID or slug of the post to get.',
|
|
},
|
|
{
|
|
displayName: 'Options',
|
|
name: 'options',
|
|
type: 'collection',
|
|
placeholder: 'Add Option',
|
|
default: {},
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'get',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'Fields',
|
|
name: 'fields',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'Limit the fields returned in the response object. E.g. for posts fields=title,url.',
|
|
},
|
|
{
|
|
displayName: 'Formats',
|
|
name: 'formats',
|
|
type: 'multiOptions',
|
|
options: [
|
|
{
|
|
name: 'HTML',
|
|
value: 'html',
|
|
},
|
|
{
|
|
name: 'Mobile Doc',
|
|
value: 'mobiledoc',
|
|
},
|
|
],
|
|
default: [
|
|
'mobiledoc',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
displayName: 'Options',
|
|
name: 'options',
|
|
type: 'collection',
|
|
placeholder: 'Add Option',
|
|
default: {},
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'contentApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'get',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'Fields',
|
|
name: 'fields',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'Limit the fields returned in the response object. E.g. for posts fields=title,url.',
|
|
},
|
|
{
|
|
displayName: 'Formats',
|
|
name: 'formats',
|
|
type: 'multiOptions',
|
|
options: [
|
|
{
|
|
name: 'HTML',
|
|
value: 'html',
|
|
},
|
|
{
|
|
name: 'Plaintext',
|
|
value: 'plaintext',
|
|
},
|
|
],
|
|
default: [
|
|
'html',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* post:getAll */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Return All',
|
|
name: 'returnAll',
|
|
type: 'boolean',
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'contentApi',
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
},
|
|
},
|
|
default: false,
|
|
description: 'Returns a list of your user contacts.',
|
|
},
|
|
{
|
|
displayName: 'Limit',
|
|
name: 'limit',
|
|
type: 'number',
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
'contentApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
returnAll: [
|
|
false,
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
minValue: 1,
|
|
maxValue: 100,
|
|
},
|
|
default: 50,
|
|
description: 'How many results to return.',
|
|
},
|
|
{
|
|
displayName: 'Options',
|
|
name: 'options',
|
|
type: 'collection',
|
|
placeholder: 'Add Option',
|
|
default: {},
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'contentApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'Include',
|
|
name: 'include',
|
|
type: 'multiOptions',
|
|
options: [
|
|
{
|
|
name: 'Authors',
|
|
value: 'authors',
|
|
},
|
|
{
|
|
name: 'Tags',
|
|
value: 'tags',
|
|
},
|
|
],
|
|
default: [],
|
|
description: 'Tells the API to return additional data related to the resource you have requested',
|
|
},
|
|
{
|
|
displayName: 'Fields',
|
|
name: 'fields',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'Limit the fields returned in the response object. E.g. for posts fields=title,url.',
|
|
},
|
|
{
|
|
displayName: 'Formats',
|
|
name: 'formats',
|
|
type: 'multiOptions',
|
|
options: [
|
|
{
|
|
name: 'HTML',
|
|
value: 'html',
|
|
},
|
|
{
|
|
name: 'Plaintext',
|
|
value: 'plaintext',
|
|
},
|
|
],
|
|
default: [
|
|
'html',
|
|
],
|
|
description: `By default, only html is returned, however each post and page in Ghost has 2 available formats: html and plaintext.`,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
displayName: 'Options',
|
|
name: 'options',
|
|
type: 'collection',
|
|
placeholder: 'Add Option',
|
|
default: {},
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'Include',
|
|
name: 'include',
|
|
type: 'multiOptions',
|
|
options: [
|
|
{
|
|
name: 'Authors',
|
|
value: 'authors',
|
|
},
|
|
{
|
|
name: 'Tags',
|
|
value: 'tags',
|
|
},
|
|
],
|
|
default: [],
|
|
description: 'Tells the API to return additional data related to the resource you have requested',
|
|
},
|
|
{
|
|
displayName: 'Fields',
|
|
name: 'fields',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'Limit the fields returned in the response object. E.g. for posts fields=title,url.',
|
|
},
|
|
{
|
|
displayName: 'Formats',
|
|
name: 'formats',
|
|
type: 'multiOptions',
|
|
options: [
|
|
{
|
|
name: 'HTML',
|
|
value: 'html',
|
|
},
|
|
{
|
|
name: 'Mobile Doc',
|
|
value: 'mobiledoc',
|
|
},
|
|
],
|
|
default: [
|
|
'mobiledoc',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* post:update */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Post ID',
|
|
name: 'postId',
|
|
type: 'string',
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'update',
|
|
],
|
|
},
|
|
},
|
|
default: '',
|
|
description: 'The ID of the post to update.',
|
|
},
|
|
{
|
|
displayName: 'Content Format',
|
|
name: 'contentFormat',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'update',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'HTML',
|
|
value: 'html',
|
|
},
|
|
{
|
|
name: 'Mobile Doc',
|
|
value: 'mobileDoc',
|
|
},
|
|
],
|
|
default: 'html',
|
|
description: `The format of the post.`,
|
|
},
|
|
{
|
|
displayName: 'Update Fields',
|
|
name: 'updateFields',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
default: {},
|
|
displayOptions: {
|
|
show: {
|
|
source: [
|
|
'adminApi',
|
|
],
|
|
resource: [
|
|
'post',
|
|
],
|
|
operation: [
|
|
'update',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'Authors IDs',
|
|
name: 'authors',
|
|
type: 'multiOptions',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getAuthors',
|
|
},
|
|
default: [],
|
|
},
|
|
{
|
|
displayName: 'Cannonical URL',
|
|
name: 'canonical_url',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Code Injection Foot',
|
|
name: 'codeinjection_foot',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Code Injection Head',
|
|
name: 'codeinjection_head',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Content',
|
|
name: 'content',
|
|
type: 'string',
|
|
displayOptions: {
|
|
show: {
|
|
'/contentFormat': [
|
|
'html',
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
alwaysOpenEditWindow: true,
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Content (JSON)',
|
|
name: 'contentJson',
|
|
type: 'json',
|
|
displayOptions: {
|
|
show: {
|
|
'/contentFormat': [
|
|
'mobileDoc',
|
|
],
|
|
},
|
|
},
|
|
default: '',
|
|
description: 'Mobiledoc is the raw JSON format that Ghost uses to store post contents. <a href="https://ghost.org/docs/concepts/posts/#document-storage">Info.</a>.',
|
|
},
|
|
{
|
|
displayName: 'Featured',
|
|
name: 'featured',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
{
|
|
displayName: 'Meta Description',
|
|
name: 'meta_description',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Meta Title',
|
|
name: 'meta_title',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Open Graph Description',
|
|
name: 'og_description',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Open Graph Title',
|
|
name: 'og_title',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Open Graph Image',
|
|
name: 'og_image',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'URL of the image',
|
|
},
|
|
{
|
|
displayName: 'Published At',
|
|
name: 'published_at',
|
|
type: 'dateTime',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Slug',
|
|
name: 'slug',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Status',
|
|
name: 'status',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: 'Draft',
|
|
value: 'draft',
|
|
},
|
|
{
|
|
name: 'Published',
|
|
value: 'published',
|
|
},
|
|
{
|
|
name: 'Scheduled',
|
|
value: 'scheduled',
|
|
},
|
|
],
|
|
default: 'draft',
|
|
},
|
|
{
|
|
displayName: 'Tags IDs',
|
|
name: 'tags',
|
|
type: 'multiOptions',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getTags',
|
|
},
|
|
default: [],
|
|
},
|
|
{
|
|
displayName: 'Title',
|
|
name: 'title',
|
|
type: 'string',
|
|
default: '',
|
|
description: `Post's title`,
|
|
},
|
|
{
|
|
displayName: 'Twitter Description',
|
|
name: 'twitter_description',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Twitter Image',
|
|
name: 'twitter_image',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'URL of the image',
|
|
},
|
|
{
|
|
displayName: 'Twitter Title',
|
|
name: 'twitter_title',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
],
|
|
},
|
|
];
|