feat(Notion Node): Add icon support for page and database page creation (#5468)

This commit is contained in:
Jonathan Bennetts
2023-02-16 09:00:54 +00:00
committed by GitHub
parent a9f08fc5ba
commit 71cba06b7c
4 changed files with 120 additions and 1 deletions

View File

@@ -237,6 +237,47 @@ export const pageFields: INodeProperties[] = [
description: 'Whether to return a simplified version of the response instead of the raw data',
},
...blocks('page', 'create'),
{
displayName: 'Options',
name: 'options',
type: 'collection',
displayOptions: {
show: {
resource: ['page'],
operation: ['create'],
},
},
default: {},
placeholder: 'Add Option',
options: [
{
displayName: 'Icon Type',
name: 'iconType',
type: 'options',
options: [
{
name: 'Emoji',
value: 'emoji',
description: 'Use an Emoji for the icon',
},
{
name: 'File',
value: 'file',
description: 'Use a file for the icon',
},
],
default: 'emoji',
description: 'The icon type for the page, Either a URL or an Emoji',
},
{
displayName: 'Icon',
name: 'icon',
type: 'string',
default: '',
description: 'Emoji or File URL to use as the icon',
},
],
},
/* -------------------------------------------------------------------------- */
/* page:get */
/* -------------------------------------------------------------------------- */