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',
name: 'baseUrl',
type: 'string',
default: 'https://api.seclore.com',
default: '',
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,
},
{

View File

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