diff --git a/packages/nodes-base/nodes/Notion/DatabaseDescription.ts b/packages/nodes-base/nodes/Notion/DatabaseDescription.ts index d5932e9765c10..aee9c8d886f23 100644 --- a/packages/nodes-base/nodes/Notion/DatabaseDescription.ts +++ b/packages/nodes-base/nodes/Notion/DatabaseDescription.ts @@ -8,9 +8,11 @@ export const databaseOperations: INodeProperties[] = [ noDataExpression: true, displayOptions: { show: { - '@version': [2], resource: ['database'], }, + hide: { + '@version': [1], + }, }, options: [ { @@ -178,10 +180,12 @@ export const databaseFields: INodeProperties[] = [ type: 'boolean', displayOptions: { show: { - '@version': [2], resource: ['database'], operation: ['getAll', 'get'], }, + hide: { + '@version': [1], + }, }, default: true, description: 'Whether to return a simplified version of the response instead of the raw data', diff --git a/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts b/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts index 4ab8e423136ff..6ecf6d7b94037 100644 --- a/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts +++ b/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts @@ -14,9 +14,11 @@ export const databasePageOperations: INodeProperties[] = [ noDataExpression: true, displayOptions: { show: { - '@version': [2], resource: ['databasePage'], }, + hide: { + '@version': [1], + }, }, options: [ { @@ -161,10 +163,12 @@ export const databasePageFields: INodeProperties[] = [ default: '', displayOptions: { show: { - '@version': [2], resource: ['databasePage'], operation: ['create'], }, + hide: { + '@version': [1], + }, }, description: 'Page title. Appears at the top of the page and can be found via Quick Find.', }, @@ -502,9 +506,11 @@ export const databasePageFields: INodeProperties[] = [ }, displayOptions: { show: { - '@version': [2], type: ['files'], }, + hide: { + '@version': [1], + }, }, default: {}, options: [ @@ -969,9 +975,11 @@ export const databasePageFields: INodeProperties[] = [ }, displayOptions: { show: { - '@version': [2], type: ['files'], }, + hide: { + '@version': [1], + }, }, default: {}, options: [ @@ -1097,10 +1105,12 @@ export const databasePageFields: INodeProperties[] = [ ], displayOptions: { show: { - '@version': [2], resource: ['databasePage'], operation: ['get'], }, + hide: { + '@version': [1], + }, }, description: 'The Notion Database Page to get', }, @@ -1110,10 +1120,12 @@ export const databasePageFields: INodeProperties[] = [ type: 'boolean', displayOptions: { show: { - '@version': [2], resource: ['databasePage'], operation: ['get'], }, + hide: { + '@version': [1], + }, }, default: true, description: 'Whether to return a simplified version of the response instead of the raw data', @@ -1254,10 +1266,12 @@ export const databasePageFields: INodeProperties[] = [ type: 'boolean', displayOptions: { show: { - '@version': [2], '/resource': ['databasePage'], '/operation': ['getAll'], }, + hide: { + '@version': [1], + }, }, default: false, description: "Whether to download a file if a database's field contains it", diff --git a/packages/nodes-base/nodes/Notion/GenericFunctions.ts b/packages/nodes-base/nodes/Notion/GenericFunctions.ts index 74fc8a068ebcd..0ea5bd790dcfe 100644 --- a/packages/nodes-base/nodes/Notion/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Notion/GenericFunctions.ts @@ -935,10 +935,12 @@ export function getSearchFilters(resource: string) { ], displayOptions: { show: { - '@version': [2], resource: [resource], operation: ['getAll'], }, + hide: { + '@version': [1], + }, }, default: 'none', }, @@ -958,11 +960,13 @@ export function getSearchFilters(resource: string) { ], displayOptions: { show: { - '@version': [2], resource: [resource], operation: ['getAll'], filterType: ['manual'], }, + hide: { + '@version': [1], + }, }, default: 'anyFilter', }, @@ -975,11 +979,13 @@ export function getSearchFilters(resource: string) { }, displayOptions: { show: { - '@version': [2], resource: [resource], operation: ['getAll'], filterType: ['manual'], }, + hide: { + '@version': [1], + }, }, default: {}, placeholder: 'Add Condition', @@ -998,11 +1004,13 @@ export function getSearchFilters(resource: string) { type: 'notice', displayOptions: { show: { - '@version': [2], resource: [resource], operation: ['getAll'], filterType: ['json'], }, + hide: { + '@version': [1], + }, }, default: '', }, @@ -1012,11 +1020,13 @@ export function getSearchFilters(resource: string) { type: 'string', displayOptions: { show: { - '@version': [2], resource: [resource], operation: ['getAll'], filterType: ['json'], }, + hide: { + '@version': [1], + }, }, default: '', }, diff --git a/packages/nodes-base/nodes/Notion/PageDescription.ts b/packages/nodes-base/nodes/Notion/PageDescription.ts index 41dd8a07063f9..d0abb0f3f0cb1 100644 --- a/packages/nodes-base/nodes/Notion/PageDescription.ts +++ b/packages/nodes-base/nodes/Notion/PageDescription.ts @@ -43,9 +43,11 @@ export const pageOperations: INodeProperties[] = [ noDataExpression: true, displayOptions: { show: { - '@version': [2], resource: ['page'], }, + hide: { + '@version': [1], + }, }, options: [ { @@ -127,10 +129,12 @@ export const pageFields: INodeProperties[] = [ ], displayOptions: { show: { - '@version': [2], resource: ['page'], operation: ['archive'], }, + hide: { + '@version': [1], + }, }, description: 'The Notion Page to archive', }, @@ -140,10 +144,12 @@ export const pageFields: INodeProperties[] = [ type: 'boolean', displayOptions: { show: { - '@version': [2], resource: ['page'], operation: ['archive'], }, + hide: { + '@version': [1], + }, }, default: true, description: 'Whether to return a simplified version of the response instead of the raw data',