From 1996545125feca7730f0c468cf6d73512049c02d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Fri, 1 May 2026 17:59:11 +0400 Subject: [PATCH] Add excluded field to cookie pattern operations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- .../actions/cookiePattern/create.operation.ts | 1 + .../actions/cookiePattern/get.operation.ts | 1 + .../actions/cookiePattern/getAll.operation.ts | 1 + .../actions/cookiePattern/move.operation.ts | 1 + .../actions/cookiePattern/update.operation.ts | 30 +++++++++++++++++++ 5 files changed, 34 insertions(+) diff --git a/packages/n8n-node/nodes/Probo/actions/cookiePattern/create.operation.ts b/packages/n8n-node/nodes/Probo/actions/cookiePattern/create.operation.ts index fe84f1077..b6ac54a66 100644 --- a/packages/n8n-node/nodes/Probo/actions/cookiePattern/create.operation.ts +++ b/packages/n8n-node/nodes/Probo/actions/cookiePattern/create.operation.ts @@ -134,6 +134,7 @@ export async function execute( maxAgeSeconds description source + excluded createdAt updatedAt } diff --git a/packages/n8n-node/nodes/Probo/actions/cookiePattern/get.operation.ts b/packages/n8n-node/nodes/Probo/actions/cookiePattern/get.operation.ts index 8f017886d..731a4b961 100644 --- a/packages/n8n-node/nodes/Probo/actions/cookiePattern/get.operation.ts +++ b/packages/n8n-node/nodes/Probo/actions/cookiePattern/get.operation.ts @@ -49,6 +49,7 @@ export async function execute( maxAgeSeconds description source + excluded createdAt updatedAt } diff --git a/packages/n8n-node/nodes/Probo/actions/cookiePattern/getAll.operation.ts b/packages/n8n-node/nodes/Probo/actions/cookiePattern/getAll.operation.ts index 501b4e1d7..97e1a2512 100644 --- a/packages/n8n-node/nodes/Probo/actions/cookiePattern/getAll.operation.ts +++ b/packages/n8n-node/nodes/Probo/actions/cookiePattern/getAll.operation.ts @@ -84,6 +84,7 @@ export async function execute( maxAgeSeconds description source + excluded createdAt updatedAt } diff --git a/packages/n8n-node/nodes/Probo/actions/cookiePattern/move.operation.ts b/packages/n8n-node/nodes/Probo/actions/cookiePattern/move.operation.ts index b3e1e3e3f..8763958ff 100644 --- a/packages/n8n-node/nodes/Probo/actions/cookiePattern/move.operation.ts +++ b/packages/n8n-node/nodes/Probo/actions/cookiePattern/move.operation.ts @@ -64,6 +64,7 @@ export async function execute( maxAgeSeconds description source + excluded createdAt updatedAt } diff --git a/packages/n8n-node/nodes/Probo/actions/cookiePattern/update.operation.ts b/packages/n8n-node/nodes/Probo/actions/cookiePattern/update.operation.ts index 16a470184..cb5928040 100644 --- a/packages/n8n-node/nodes/Probo/actions/cookiePattern/update.operation.ts +++ b/packages/n8n-node/nodes/Probo/actions/cookiePattern/update.operation.ts @@ -56,6 +56,33 @@ export const description: INodeProperties[] = [ default: 0, description: 'The maximum age of the cookie in seconds (0 to clear)', }, + { + displayName: 'Excluded', + name: 'excluded', + type: 'options', + displayOptions: { + show: { + resource: ['cookiePattern'], + operation: ['update'], + }, + }, + options: [ + { + name: '(Unchanged)', + value: '', + }, + { + name: 'False', + value: 'false', + }, + { + name: 'True', + value: 'true', + }, + ], + default: '', + description: 'Whether the cookie pattern is excluded from the banner', + }, { displayName: 'Description', name: 'patternDescription', @@ -78,6 +105,7 @@ export async function execute( const cookiePatternId = this.getNodeParameter('cookiePatternId', itemIndex) as string; const displayName = this.getNodeParameter('displayName', itemIndex, '') as string; const maxAgeSeconds = this.getNodeParameter('maxAgeSeconds', itemIndex, 0) as number; + const excluded = this.getNodeParameter('excluded', itemIndex, '') as string; const patternDescription = this.getNodeParameter('patternDescription', itemIndex, '') as string; const query = ` @@ -91,6 +119,7 @@ export async function execute( maxAgeSeconds description source + excluded createdAt updatedAt } @@ -107,6 +136,7 @@ export async function execute( if (maxAgeSeconds !== undefined) { input.maxAgeSeconds = maxAgeSeconds === 0 ? null : maxAgeSeconds; } + if (excluded) input.excluded = excluded === 'true'; if (patternDescription) input.description = patternDescription; const responseData = await proboApiRequest.call(this, query, { input });