Updated SecloreProtect API credentials and node operations to reflect DRM terminology.

This commit is contained in:
atharva.dev 2025-11-05 11:09:26 +05:30
parent 645ea3889f
commit 2bdafdf7ce
2 changed files with 44 additions and 23 deletions

View File

@ -10,9 +10,9 @@ export class SecloreProtectApi implements ICredentialType {
displayName: 'Base URL', displayName: 'Base URL',
name: 'baseUrl', name: 'baseUrl',
type: 'string', type: 'string',
default: 'https://api.seclore.com', default: '',
placeholder: 'https://api.seclore.com', placeholder: 'https://api.seclore.com',
description: 'The base URL of your Seclore API instance', description: 'The base URL of your Seclore DRM Server',
required: true, required: true,
}, },
{ {

View File

@ -35,12 +35,17 @@ export class SecloreProtect implements INodeType {
noDataExpression: true, noDataExpression: true,
options: [ options: [
{ {
name: 'Protection', name: 'DRM Protection',
value: 'protection', value: 'drmProtection',
description: 'File protection operations', description: 'DRM file protection operations',
},
{
name: 'DRM Unprotection',
value: 'drmUnprotection',
description: 'DRM file unprotection operations',
}, },
], ],
default: 'protection', default: 'drmProtection',
}, },
{ {
displayName: 'Operation', displayName: 'Operation',
@ -49,36 +54,50 @@ export class SecloreProtect implements INodeType {
noDataExpression: true, noDataExpression: true,
displayOptions: { displayOptions: {
show: { show: {
resource: ['protection'], resource: ['drmProtection'],
}, },
}, },
options: [ options: [
{ {
name: 'Protect with Hot Folder', name: 'Protect using Policy',
value: 'protectWithHotFolder', value: 'protectWithHotFolder',
description: 'Protect a file using HotFolder ID configuration', description: 'Protect a file using HotFolder ID configuration',
action: 'Protect with hotfolder', action: 'Protect file using policy',
},
{
name: 'Unprotect',
value: 'unprotect',
description: 'Unprotect a file using file ID',
action: 'Unprotect',
}, },
], ],
default: 'protectWithHotFolder', default: 'protectWithHotFolder',
}, },
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['drmUnprotection'],
},
},
options: [
{
name: 'Unprotect',
value: 'unprotect',
description: 'Unprotect a protected file',
action: 'Unprotect file',
},
],
default: 'unprotect',
},
{ {
displayName: 'HotFolder ID', displayName: 'HotFolder ID',
name: 'hotfolderId', name: 'hotfolderId',
type: 'string', type: 'string',
required: true, required: true,
default: '1000201', default: '',
placeholder: '1000201', placeholder: '',
description: 'The ID of the HotFolder configuration to use for protection', description: 'The ID of the HotFolder configuration to use for protection',
displayOptions: { displayOptions: {
show: { show: {
resource: ['protection'], resource: ['drmProtection'],
operation: ['protectWithHotFolder'], operation: ['protectWithHotFolder'],
}, },
}, },
@ -92,7 +111,7 @@ export class SecloreProtect implements INodeType {
description: 'Name of the binary property that contains the file to protect', description: 'Name of the binary property that contains the file to protect',
displayOptions: { displayOptions: {
show: { show: {
resource: ['protection'], resource: ['drmProtection'],
operation: ['protectWithHotFolder'], operation: ['protectWithHotFolder'],
}, },
}, },
@ -105,7 +124,7 @@ export class SecloreProtect implements INodeType {
description: 'Number of retry attempts for failed requests', description: 'Number of retry attempts for failed requests',
displayOptions: { displayOptions: {
show: { show: {
resource: ['protection'], resource: ['drmProtection'],
operation: ['protectWithHotFolder'], operation: ['protectWithHotFolder'],
}, },
}, },
@ -120,7 +139,7 @@ export class SecloreProtect implements INodeType {
description: 'Name of the binary property that contains the protected file to unprotect', description: 'Name of the binary property that contains the protected file to unprotect',
displayOptions: { displayOptions: {
show: { show: {
resource: ['protection'], resource: ['drmUnprotection'],
operation: ['unprotect'], operation: ['unprotect'],
}, },
}, },
@ -133,7 +152,7 @@ export class SecloreProtect implements INodeType {
description: 'Number of retry attempts for failed requests', description: 'Number of retry attempts for failed requests',
displayOptions: { displayOptions: {
show: { show: {
resource: ['protection'], resource: ['drmUnprotection'],
operation: ['unprotect'], operation: ['unprotect'],
}, },
}, },
@ -142,8 +161,10 @@ export class SecloreProtect implements INodeType {
}; };
customOperations = { customOperations = {
protection: { drmProtection: {
protectWithHotFolder, protectWithHotFolder,
},
drmUnprotection: {
unprotect, unprotect,
}, },
}; };