mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
✨ Add Notion node V2 (#2437)
* ⚡ Add versioning * ⚡ Add credentials verification * ⚡ Add folmula filtering * ⚡ Add file support * ⚡ Apply internal review * ⚡ Improvements * ⚡ Add page updated event to trigger * ⚡ Use name instead of id when setting expression in select type * ⚡ improvements * ⚡ Improvements * ⚡ Improvement to descriptions * ⚡ Add filter to databasePage:getAll * ⚡ Improvements * ⚡ Add database:search operation * ⚡ Add page:archive operation * ⚡ Allow clearing fields date type * ⚡ Allow setting single value in people type field * asasas * asasas * aaaaa * ⚡ Improvements * ⚡ Fix merging issues * 🐛 Fix filename * ⚡ Minor fix Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -95,35 +95,35 @@ const annotation: INodeProperties[] = [
|
||||
name: 'bold',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether the text is bolded.',
|
||||
description: 'Whether the text is bolded',
|
||||
},
|
||||
{
|
||||
displayName: 'Italic',
|
||||
name: 'italic',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether the text is italicized.',
|
||||
description: 'Whether the text is italicized',
|
||||
},
|
||||
{
|
||||
displayName: 'Strikethrough',
|
||||
name: 'strikethrough',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether the text is struck through.',
|
||||
description: 'Whether the text is struck through',
|
||||
},
|
||||
{
|
||||
displayName: 'Underline',
|
||||
name: 'underline',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether the text is underlined.',
|
||||
description: 'Whether the text is underlined',
|
||||
},
|
||||
{
|
||||
displayName: 'Code',
|
||||
name: 'code',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether the text is code style.',
|
||||
description: 'Whether the text is code style',
|
||||
},
|
||||
{
|
||||
displayName: 'Color',
|
||||
@@ -131,10 +131,10 @@ const annotation: INodeProperties[] = [
|
||||
type: 'options',
|
||||
options: colors,
|
||||
default: '',
|
||||
description: 'Color of the text.',
|
||||
description: 'Color of the text',
|
||||
},
|
||||
],
|
||||
description: 'All annotations that apply to this rich text.',
|
||||
description: 'All annotations that apply to this rich text',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -169,7 +169,7 @@ const typeMention: INodeProperties[] = [
|
||||
},
|
||||
],
|
||||
default: '',
|
||||
description: `An inline mention of a user, page, database, or date. In the app these are created by typing @ followed by the name of a user, page, database, or a date.`,
|
||||
description: `An inline mention of a user, page, database, or date. In the app these are created by typing @ followed by the name of a user, page, database, or a date`,
|
||||
},
|
||||
{
|
||||
displayName: 'User ID',
|
||||
@@ -186,7 +186,7 @@ const typeMention: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The id of the user being mentioned.',
|
||||
description: 'The ID of the user being mentioned',
|
||||
},
|
||||
{
|
||||
displayName: 'Page ID',
|
||||
@@ -200,7 +200,7 @@ const typeMention: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The id of the page being mentioned.',
|
||||
description: 'The ID of the page being mentioned',
|
||||
},
|
||||
{
|
||||
displayName: 'Database ID',
|
||||
@@ -217,7 +217,7 @@ const typeMention: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The id of the database being mentioned.',
|
||||
description: 'The ID of the database being mentioned',
|
||||
},
|
||||
{
|
||||
displayName: 'Range',
|
||||
@@ -231,7 +231,7 @@ const typeMention: INodeProperties[] = [
|
||||
},
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Weather or not you want to define a date range.',
|
||||
description: 'Weather or not you want to define a date range',
|
||||
},
|
||||
{
|
||||
displayName: 'Date',
|
||||
@@ -248,7 +248,7 @@ const typeMention: INodeProperties[] = [
|
||||
},
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'An ISO 8601 format date, with optional time.',
|
||||
description: 'An ISO 8601 format date, with optional time',
|
||||
},
|
||||
{
|
||||
displayName: 'Date Start',
|
||||
@@ -265,7 +265,7 @@ const typeMention: INodeProperties[] = [
|
||||
},
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'An ISO 8601 format date, with optional time.',
|
||||
description: 'An ISO 8601 format date, with optional time',
|
||||
},
|
||||
{
|
||||
displayName: 'Date End',
|
||||
@@ -282,7 +282,7 @@ const typeMention: INodeProperties[] = [
|
||||
},
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: `An ISO 8601 formatted date, with optional time. Represents the end of a date range.`,
|
||||
description: `An ISO 8601 formatted date, with optional time. Represents the end of a date range`,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -316,7 +316,8 @@ const typeText: INodeProperties[] = [
|
||||
},
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `Text content. This field contains the actual content of your text and is probably the field you'll use most often.`,
|
||||
description: `Text content. This field contains the actual content
|
||||
of your text and is probably the field you'll use most often`,
|
||||
},
|
||||
{
|
||||
displayName: 'Is Link',
|
||||
@@ -346,7 +347,7 @@ const typeText: INodeProperties[] = [
|
||||
},
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The URL that this link points to.',
|
||||
description: 'The URL that this link points to',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -395,8 +396,8 @@ export const text = (displayOptions: IDisplayOptions): INodeProperties[] => [
|
||||
],
|
||||
},
|
||||
],
|
||||
description: 'Rich text in the block.',
|
||||
}];
|
||||
description: 'Rich text in the block',
|
||||
}] as INodeProperties[];
|
||||
|
||||
|
||||
const todo = (type: string): INodeProperties[] => [{
|
||||
@@ -411,8 +412,8 @@ const todo = (type: string): INodeProperties[] => [{
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Whether the to_do is checked or not.',
|
||||
}];
|
||||
description: 'Whether the to_do is checked or not',
|
||||
}] as INodeProperties[];
|
||||
|
||||
const title = (type: string): INodeProperties[] => [{
|
||||
displayName: 'Title',
|
||||
@@ -426,8 +427,8 @@ const title = (type: string): INodeProperties[] => [{
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Plain text of page title.',
|
||||
}];
|
||||
description: 'Plain text of page title',
|
||||
}] as INodeProperties[];
|
||||
|
||||
const richText = (displayOptions: IDisplayOptions): INodeProperties[] => [
|
||||
{
|
||||
@@ -449,7 +450,7 @@ const textContent = (displayOptions: IDisplayOptions): INodeProperties[] => [
|
||||
},
|
||||
];
|
||||
|
||||
const block = (blockType: string) => {
|
||||
const block = (blockType: string): INodeProperties[] => {
|
||||
const data: INodeProperties[] = [];
|
||||
switch (blockType) {
|
||||
case 'to_do':
|
||||
@@ -549,7 +550,6 @@ export const blocks = (resource: string, operation: string): INodeProperties[] =
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getBlockTypes',
|
||||
},
|
||||
description: 'Type of block',
|
||||
default: 'paragraph',
|
||||
},
|
||||
...block('paragraph'),
|
||||
@@ -566,4 +566,3 @@ export const blocks = (resource: string, operation: string): INodeProperties[] =
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user