(PS-378) Seclore custom n8n node #1

Merged
atharva.dev merged 22 commits from ticket/PS-378 into main 2025-11-13 04:43:55 +00:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit 043c06e7ac - Show all commits

View File

@ -11,7 +11,7 @@ export class SecloreProtect implements INodeType {
displayName: 'Seclore',
name: 'secloreProtect',
icon: 'file:../../icons/seclore.svg',
usableAsTool: true, // TODO: make it false/ don't allow it to be used as a tool
usableAsTool: true,
nitin.baranwal marked this conversation as resolved Outdated

Resolve this TODO

Resolve this TODO
group: ['transform'],
version: 1,
subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}',
@ -59,7 +59,7 @@ export class SecloreProtect implements INodeType {
},
options: [
{
name: 'Protect using Policy',
name: 'Protect Using Policy',
value: 'protectWithHotFolder',
description: 'Protect a file using HotFolder ID configuration',
action: 'Protect file using policy',

View File

@ -189,7 +189,7 @@ export async function protectWithHotFolder(this: IExecuteFunctions): Promise<Nod
Logger.debug(who + 'Getting node parameters', { itemIndex: i });
const hotfolderId = this.getNodeParameter('hotfolderId', i) as string;
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;
const correlationId = crypto.randomUUID().toString();
const correlationId = crypto.randomUUID();
nitin.baranwal marked this conversation as resolved Outdated

toString() fxn is redundant here.

toString() fxn is redundant here.
const retryCount = this.getNodeParameter('retryCount', i) as number;
// Validate required parameters

View File

@ -186,7 +186,7 @@ export async function unprotect(this: IExecuteFunctions): Promise<NodeOutput> {
// Get parameters for this item
Logger.debug(who + 'Getting node parameters', { itemIndex: i });
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;
const correlationId = crypto.randomUUID().toString();
const correlationId = crypto.randomUUID();
nitin.baranwal marked this conversation as resolved Outdated

toString() fxn is redundant here.

toString() fxn is redundant here.
const retryCount = this.getNodeParameter('retryCount', i) as number;
Logger.debug(who + 'Asserting binary data', { binaryPropertyName, itemIndex: i });