Rename n8n trust center actions
Replace the trustCenter resource with compliancePortal so the community node tracks the renamed GraphQL operations. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -105,8 +105,8 @@ export const description: INodeProperties[] = [
|
||||
description: 'The title of the document. Updating it edits the current draft version, creating one from the latest published version if none exists.',
|
||||
},
|
||||
{
|
||||
displayName: 'Trust Center Visibility',
|
||||
name: 'trustCenterVisibility',
|
||||
displayName: 'Compliance Portal Visibility',
|
||||
name: 'compliancePortalVisibility',
|
||||
type: 'options',
|
||||
options: [
|
||||
{ name: 'None', value: 'NONE' },
|
||||
@@ -114,7 +114,7 @@ export const description: INodeProperties[] = [
|
||||
{ name: 'Public', value: 'PUBLIC' },
|
||||
],
|
||||
default: 'NONE',
|
||||
description: 'The trust center visibility of the document',
|
||||
description: 'The compliance portal visibility of the document',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -130,7 +130,7 @@ export async function execute(
|
||||
content?: string;
|
||||
classification?: string;
|
||||
documentType?: string;
|
||||
trustCenterVisibility?: string;
|
||||
compliancePortalVisibility?: string;
|
||||
defaultApproverIds?: string;
|
||||
};
|
||||
|
||||
@@ -140,7 +140,7 @@ export async function execute(
|
||||
document {
|
||||
id
|
||||
status
|
||||
trustCenterVisibility
|
||||
compliancePortalVisibility
|
||||
currentPublishedMajor
|
||||
currentPublishedMinor
|
||||
archivedAt
|
||||
@@ -170,7 +170,7 @@ export async function execute(
|
||||
if (updateFields.content !== undefined && updateFields.content !== '') input.content = updateFields.content;
|
||||
if (updateFields.classification !== undefined) input.classification = updateFields.classification;
|
||||
if (updateFields.documentType !== undefined) input.documentType = updateFields.documentType;
|
||||
if (updateFields.trustCenterVisibility !== undefined) input.trustCenterVisibility = updateFields.trustCenterVisibility;
|
||||
if (updateFields.compliancePortalVisibility !== undefined) input.compliancePortalVisibility = updateFields.compliancePortalVisibility;
|
||||
if (updateFields.defaultApproverIds !== undefined && updateFields.defaultApproverIds !== '') {
|
||||
input.defaultApproverIds = updateFields.defaultApproverIds.split(',').map(id => id.trim()).filter(Boolean);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user