refactor: Update Notion nodes to remove beta from name (#4838)

This commit is contained in:
Jonathan Bennetts 2023-01-20 12:49:02 +00:00 committed by GitHub
parent b69f480d4c
commit 454375077f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 23 deletions

View file

@ -141,19 +141,6 @@ export const databaseFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* database:getAll */ /* database:getAll */
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
{
displayName:
'In Notion, make sure you <a href="https://www.notion.so/help/add-and-manage-connections-with-the-api#add-connections-to-pages" target="_blank">share your database with your integration</a> . Otherwise it won\'t be accessible, or listed here.',
name: 'notionNotice',
type: 'notice',
default: '',
displayOptions: {
show: {
resource: ['database'],
operation: ['getAll'],
},
},
},
{ {
displayName: 'Return All', displayName: 'Return All',
name: 'returnAll', name: 'returnAll',

View file

@ -6,12 +6,12 @@ import { NotionV2 } from './v2/NotionV2.node';
export class Notion extends VersionedNodeType { export class Notion extends VersionedNodeType {
constructor() { constructor() {
const baseDescription: INodeTypeBaseDescription = { const baseDescription: INodeTypeBaseDescription = {
displayName: 'Notion (Beta)', displayName: 'Notion',
name: 'notion', name: 'notion',
icon: 'file:notion.svg', icon: 'file:notion.svg',
group: ['output'], group: ['output'],
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Notion API (Beta)', description: 'Consume Notion API',
defaultVersion: 2, defaultVersion: 2,
}; };

View file

@ -10,7 +10,7 @@ import { getDatabases } from './SearchFunctions';
export class NotionTrigger implements INodeType { export class NotionTrigger implements INodeType {
description: INodeTypeDescription = { description: INodeTypeDescription = {
// eslint-disable-next-line n8n-nodes-base/node-class-description-display-name-unsuffixed-trigger-node // eslint-disable-next-line n8n-nodes-base/node-class-description-display-name-unsuffixed-trigger-node
displayName: 'Notion Trigger (Beta)', displayName: 'Notion Trigger',
name: 'notionTrigger', name: 'notionTrigger',
icon: 'file:notion.svg', icon: 'file:notion.svg',
group: ['trigger'], group: ['trigger'],
@ -49,7 +49,7 @@ export class NotionTrigger implements INodeType {
}, },
{ {
displayName: displayName:
'In Notion, make sure you <a href="https://www.notion.so/help/add-and-manage-connections-with-the-api#add-connections-to-pages" target="_blank">share your database with your integration</a> . Otherwise it won\'t be accessible, or listed here.', 'In Notion, make sure to <a href="https://www.notion.so/help/add-and-manage-connections-with-the-api" target="_blank">add your connection</a> to the pages you want to access.',
name: 'notionNotice', name: 'notionNotice',
type: 'notice', type: 'notice',
default: '', default: '',

View file

@ -12,13 +12,13 @@ import { databasePageFields, databasePageOperations } from '../DatabasePageDescr
import { INodeTypeDescription } from 'n8n-workflow'; import { INodeTypeDescription } from 'n8n-workflow';
export const versionDescription: INodeTypeDescription = { export const versionDescription: INodeTypeDescription = {
displayName: 'Notion (Beta)', displayName: 'Notion',
name: 'notion', name: 'notion',
icon: 'file:notion.svg', icon: 'file:notion.svg',
group: ['output'], group: ['output'],
version: 1, version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Notion API (Beta)', description: 'Consume Notion API',
defaults: { defaults: {
name: 'Notion (Beta)', name: 'Notion (Beta)',
}, },
@ -67,7 +67,8 @@ export const versionDescription: INodeTypeDescription = {
// description: 'The resource to operate on.', // description: 'The resource to operate on.',
// }, // },
{ {
displayName: "To access content, make sure it's shared with your integration in Notion", displayName:
'In Notion, make sure to <a href="https://www.notion.so/help/add-and-manage-connections-with-the-api" target="_blank">add your connection</a> to the pages you want to access.',
name: 'notionNotice', name: 'notionNotice',
type: 'notice', type: 'notice',
default: '', default: '',

View file

@ -12,13 +12,13 @@ import { databasePageFields, databasePageOperations } from '../DatabasePageDescr
import { INodeTypeDescription } from 'n8n-workflow'; import { INodeTypeDescription } from 'n8n-workflow';
export const versionDescription: INodeTypeDescription = { export const versionDescription: INodeTypeDescription = {
displayName: 'Notion (Beta)', displayName: 'Notion',
name: 'notion', name: 'notion',
icon: 'file:notion.svg', icon: 'file:notion.svg',
group: ['output'], group: ['output'],
version: 2, version: 2,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Notion API (Beta)', description: 'Consume Notion API',
defaults: { defaults: {
name: 'Notion (Beta)', name: 'Notion (Beta)',
}, },
@ -67,7 +67,8 @@ export const versionDescription: INodeTypeDescription = {
// description: 'The resource to operate on.', // description: 'The resource to operate on.',
// }, // },
{ {
displayName: "To access content, make sure it's shared with your integration in Notion", displayName:
'In Notion, make sure to <a href="https://www.notion.so/help/add-and-manage-connections-with-the-api" target="_blank">add your connection</a> to the pages you want to access.',
name: 'notionNotice', name: 'notionNotice',
type: 'notice', type: 'notice',
default: '', default: '',