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:
Bryan Frimin
2026-07-20 18:08:34 +02:00
parent bb2f55574f
commit f90aa136ba
37 changed files with 128 additions and 128 deletions

View File

@@ -288,7 +288,7 @@ export async function execute(
trustPageUrl
certifications
countries
showOnTrustCenter
showOnCompliancePortal
level
createdAt
updatedAt

View File

@@ -130,7 +130,7 @@ export async function execute(
trustPageUrl
certifications
countries
showOnTrustCenter
showOnCompliancePortal
${organizationFragment}
${businessOwnerFragment}
${securityOwnerFragment}

View File

@@ -176,7 +176,7 @@ export async function execute(
trustPageUrl
certifications
countries
showOnTrustCenter
showOnCompliancePortal
level
ancestors {
id

View File

@@ -144,8 +144,8 @@ export const description: INodeProperties[] = [
description: 'The ID of the security owner (People ID)',
},
{
displayName: 'Show on Trust Center',
name: 'showOnTrustCenter',
displayName: 'Show on Compliance Portal',
name: 'showOnCompliancePortal',
type: 'boolean',
displayOptions: {
show: {
@@ -154,7 +154,7 @@ export const description: INodeProperties[] = [
},
},
default: false,
description: 'Whether to show the thirdParty on the trust center',
description: 'Whether to show the thirdParty on the compliance portal',
},
{
displayName: 'Additional Fields',
@@ -255,7 +255,7 @@ export async function execute(
const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '') as string;
const businessOwnerId = this.getNodeParameter('businessOwnerId', itemIndex, '') as string;
const securityOwnerId = this.getNodeParameter('securityOwnerId', itemIndex, '') as string;
const showOnTrustCenter = this.getNodeParameter('showOnTrustCenter', itemIndex) as boolean | undefined;
const showOnCompliancePortal = this.getNodeParameter('showOnCompliancePortal', itemIndex) as boolean | undefined;
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {}) as {
statusPageUrl?: string;
termsOfServiceUrl?: string;
@@ -292,7 +292,7 @@ export async function execute(
trustPageUrl
certifications
countries
showOnTrustCenter
showOnCompliancePortal
createdAt
updatedAt
}
@@ -309,7 +309,7 @@ export async function execute(
if (headquarterAddress !== undefined) input.headquarterAddress = headquarterAddress === '' ? null : headquarterAddress;
if (businessOwnerId !== undefined) input.businessOwnerId = businessOwnerId === '' ? null : businessOwnerId;
if (securityOwnerId !== undefined) input.securityOwnerId = securityOwnerId === '' ? null : securityOwnerId;
if (showOnTrustCenter !== undefined) input.showOnTrustCenter = showOnTrustCenter;
if (showOnCompliancePortal !== undefined) input.showOnCompliancePortal = showOnCompliancePortal;
if (additionalFields.statusPageUrl !== undefined) input.statusPageUrl = additionalFields.statusPageUrl === '' ? null : additionalFields.statusPageUrl;
if (additionalFields.termsOfServiceUrl !== undefined) input.termsOfServiceUrl = additionalFields.termsOfServiceUrl === '' ? null : additionalFields.termsOfServiceUrl;
if (additionalFields.privacyPolicyUrl !== undefined) input.privacyPolicyUrl = additionalFields.privacyPolicyUrl === '' ? null : additionalFields.privacyPolicyUrl;