diff --git a/packages/nodes-base/nodes/Notion/DatabaseDescription.ts b/packages/nodes-base/nodes/Notion/DatabaseDescription.ts index 93e59af7d0..d5932e9765 100644 --- a/packages/nodes-base/nodes/Notion/DatabaseDescription.ts +++ b/packages/nodes-base/nodes/Notion/DatabaseDescription.ts @@ -8,7 +8,7 @@ export const databaseOperations: INodeProperties[] = [ noDataExpression: true, displayOptions: { show: { - version: [2], + '@version': [2], resource: ['database'], }, }, @@ -41,7 +41,7 @@ export const databaseOperations: INodeProperties[] = [ noDataExpression: true, displayOptions: { show: { - version: [1], + '@version': [1], resource: ['database'], }, }, @@ -178,7 +178,7 @@ export const databaseFields: INodeProperties[] = [ type: 'boolean', displayOptions: { show: { - version: [2], + '@version': [2], resource: ['database'], operation: ['getAll', 'get'], }, diff --git a/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts b/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts index ee45894269..c28d61ed42 100644 --- a/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts +++ b/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts @@ -14,7 +14,7 @@ export const databasePageOperations: INodeProperties[] = [ noDataExpression: true, displayOptions: { show: { - version: [2], + '@version': [2], resource: ['databasePage'], }, }, @@ -53,7 +53,7 @@ export const databasePageOperations: INodeProperties[] = [ noDataExpression: true, displayOptions: { show: { - version: [1], + '@version': [1], resource: ['databasePage'], }, }, @@ -161,7 +161,7 @@ export const databasePageFields: INodeProperties[] = [ default: '', displayOptions: { show: { - version: [2], + '@version': [2], resource: ['databasePage'], operation: ['create'], }, @@ -502,7 +502,7 @@ export const databasePageFields: INodeProperties[] = [ }, displayOptions: { show: { - '/version': [2], + '@version': [2], type: ['files'], }, }, @@ -969,7 +969,7 @@ export const databasePageFields: INodeProperties[] = [ }, displayOptions: { show: { - '/version': [2], + '@version': [2], type: ['files'], }, }, @@ -1055,7 +1055,7 @@ export const databasePageFields: INodeProperties[] = [ ], displayOptions: { show: { - version: [2], + '@version': [2], resource: ['databasePage'], operation: ['get'], }, @@ -1068,7 +1068,7 @@ export const databasePageFields: INodeProperties[] = [ type: 'boolean', displayOptions: { show: { - version: [2], + '@version': [2], resource: ['databasePage'], operation: ['get'], }, @@ -1212,7 +1212,7 @@ export const databasePageFields: INodeProperties[] = [ type: 'boolean', displayOptions: { show: { - '/version': [2], + '@version': [2], '/resource': ['databasePage'], '/operation': ['getAll'], }, @@ -1230,7 +1230,7 @@ export const databasePageFields: INodeProperties[] = [ }, displayOptions: { show: { - '/version': [1], + '@version': [1], }, }, default: {}, diff --git a/packages/nodes-base/nodes/Notion/GenericFunctions.ts b/packages/nodes-base/nodes/Notion/GenericFunctions.ts index e41a32cc81..f93704b7ea 100644 --- a/packages/nodes-base/nodes/Notion/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Notion/GenericFunctions.ts @@ -880,7 +880,7 @@ export function getSearchFilters(resource: string) { ], displayOptions: { show: { - version: [2], + '@version': [2], resource: [resource], operation: ['getAll'], }, @@ -903,7 +903,7 @@ export function getSearchFilters(resource: string) { ], displayOptions: { show: { - version: [2], + '@version': [2], resource: [resource], operation: ['getAll'], filterType: ['manual'], @@ -920,7 +920,7 @@ export function getSearchFilters(resource: string) { }, displayOptions: { show: { - version: [2], + '@version': [2], resource: [resource], operation: ['getAll'], filterType: ['manual'], @@ -943,7 +943,7 @@ export function getSearchFilters(resource: string) { type: 'notice', displayOptions: { show: { - version: [2], + '@version': [2], resource: [resource], operation: ['getAll'], filterType: ['json'], @@ -957,7 +957,7 @@ export function getSearchFilters(resource: string) { type: 'string', displayOptions: { show: { - version: [2], + '@version': [2], resource: [resource], operation: ['getAll'], filterType: ['json'], diff --git a/packages/nodes-base/nodes/Notion/PageDescription.ts b/packages/nodes-base/nodes/Notion/PageDescription.ts index 5c4ec2d158..41dd8a0706 100644 --- a/packages/nodes-base/nodes/Notion/PageDescription.ts +++ b/packages/nodes-base/nodes/Notion/PageDescription.ts @@ -10,7 +10,7 @@ export const pageOperations: INodeProperties[] = [ noDataExpression: true, displayOptions: { show: { - version: [1], + '@version': [1], resource: ['page'], }, }, @@ -43,7 +43,7 @@ export const pageOperations: INodeProperties[] = [ noDataExpression: true, displayOptions: { show: { - version: [2], + '@version': [2], resource: ['page'], }, }, @@ -127,7 +127,7 @@ export const pageFields: INodeProperties[] = [ ], displayOptions: { show: { - version: [2], + '@version': [2], resource: ['page'], operation: ['archive'], }, @@ -140,7 +140,7 @@ export const pageFields: INodeProperties[] = [ type: 'boolean', displayOptions: { show: { - version: [2], + '@version': [2], resource: ['page'], operation: ['archive'], }, @@ -289,7 +289,7 @@ export const pageFields: INodeProperties[] = [ required: true, displayOptions: { show: { - version: [1], + '@version': [1], resource: ['page'], operation: ['get'], }, @@ -303,7 +303,7 @@ export const pageFields: INodeProperties[] = [ type: 'boolean', displayOptions: { show: { - version: [1], + '@version': [1], resource: ['page'], operation: ['get'], }, diff --git a/packages/nodes-base/nodes/Notion/v1/VersionDescription.ts b/packages/nodes-base/nodes/Notion/v1/VersionDescription.ts index 9398aa6e10..08e9a54cb0 100644 --- a/packages/nodes-base/nodes/Notion/v1/VersionDescription.ts +++ b/packages/nodes-base/nodes/Notion/v1/VersionDescription.ts @@ -73,12 +73,6 @@ export const versionDescription: INodeTypeDescription = { type: 'notice', default: '', }, - { - displayName: 'Version', - name: 'version', - type: 'hidden', - default: 1, - }, { displayName: 'Resource', name: 'resource', diff --git a/packages/nodes-base/nodes/Notion/v2/NotionV2.node.ts b/packages/nodes-base/nodes/Notion/v2/NotionV2.node.ts index f0050ab867..4f85773124 100644 --- a/packages/nodes-base/nodes/Notion/v2/NotionV2.node.ts +++ b/packages/nodes-base/nodes/Notion/v2/NotionV2.node.ts @@ -758,11 +758,6 @@ export class NotionV2 implements INodeType { } } - if (download) { - const rawData = returnData.map((data) => data.json); - return this.prepareOutputData(rawData as INodeExecutionData[]); - } - return this.prepareOutputData(returnData); } } diff --git a/packages/nodes-base/nodes/Notion/v2/VersionDescription.ts b/packages/nodes-base/nodes/Notion/v2/VersionDescription.ts index df0e116761..0ba2fffdd9 100644 --- a/packages/nodes-base/nodes/Notion/v2/VersionDescription.ts +++ b/packages/nodes-base/nodes/Notion/v2/VersionDescription.ts @@ -73,12 +73,6 @@ export const versionDescription: INodeTypeDescription = { type: 'notice', default: '', }, - { - displayName: 'Version', - name: 'version', - type: 'hidden', - default: 2, - }, { displayName: 'Resource', name: 'resource',