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

@@ -223,9 +223,9 @@ export class Probo implements INodeType {
description: 'Manage tracker patterns',
},
{
name: 'Trust Center',
value: 'trustCenter',
description: 'Manage trust center',
name: 'Compliance Portal',
value: 'compliancePortal',
description: 'Manage compliance portal',
},
{
name: 'User',

View File

@@ -141,7 +141,7 @@ export async function execute(
validFrom
validUntil
reportUrl
trustCenterVisibility
compliancePortalVisibility
createdAt
updatedAt
}

View File

@@ -54,7 +54,7 @@ export async function execute(
validFrom
validUntil
reportUrl
trustCenterVisibility
compliancePortalVisibility
createdAt
updatedAt
}

View File

@@ -54,7 +54,7 @@ export async function execute(
validFrom
validUntil
reportUrl
trustCenterVisibility
compliancePortalVisibility
createdAt
updatedAt
}

View File

@@ -89,7 +89,7 @@ export async function execute(
validFrom
validUntil
reportUrl
trustCenterVisibility
compliancePortalVisibility
createdAt
updatedAt
}

View File

@@ -125,7 +125,7 @@ export async function execute(
validFrom
validUntil
reportUrl
trustCenterVisibility
compliancePortalVisibility
createdAt
updatedAt
}

View File

@@ -75,7 +75,7 @@ export async function execute(
validFrom
validUntil
reportUrl
trustCenterVisibility
compliancePortalVisibility
createdAt
updatedAt
}

View File

@@ -23,17 +23,17 @@ import { proboApiRequest } from '../../GenericFunctions';
export const description: INodeProperties[] = [
{
displayName: 'Trust Center ID',
name: 'trustCenterId',
displayName: 'Compliance Portal ID',
name: 'compliancePortalId',
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['createCustomLink'],
},
},
default: '',
description: 'The ID of the trust center',
description: 'The ID of the compliance portal',
required: true,
},
{
@@ -42,7 +42,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['createCustomLink'],
},
},
@@ -56,7 +56,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['createCustomLink'],
},
},
@@ -70,7 +70,7 @@ export async function execute(
this: IExecuteFunctions,
itemIndex: number,
): Promise<INodeExecutionData> {
const trustCenterId = this.getNodeParameter('trustCenterId', itemIndex) as string;
const compliancePortalId = this.getNodeParameter('compliancePortalId', itemIndex) as string;
const name = this.getNodeParameter('name', itemIndex) as string;
const url = this.getNodeParameter('url', itemIndex) as string;
@@ -92,7 +92,7 @@ export async function execute(
`;
const responseData = await proboApiRequest.call(this, query, {
input: { trustCenterId, name, url },
input: { compliancePortalId, name, url },
});
return {

View File

@@ -23,17 +23,17 @@ import { proboApiRequest } from '../../GenericFunctions';
export const description: INodeProperties[] = [
{
displayName: 'Trust Center ID',
name: 'trustCenterId',
displayName: 'Compliance Portal ID',
name: 'compliancePortalId',
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['createReference'],
},
},
default: '',
description: 'The ID of the trust center',
description: 'The ID of the compliance portal',
required: true,
},
{
@@ -42,7 +42,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['createReference'],
},
},
@@ -59,7 +59,7 @@ export const description: INodeProperties[] = [
},
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['createReference'],
},
},
@@ -72,7 +72,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['createReference'],
},
},
@@ -85,15 +85,15 @@ export async function execute(
this: IExecuteFunctions,
itemIndex: number,
): Promise<INodeExecutionData> {
const trustCenterId = this.getNodeParameter('trustCenterId', itemIndex) as string;
const compliancePortalId = this.getNodeParameter('compliancePortalId', itemIndex) as string;
const name = this.getNodeParameter('name', itemIndex) as string;
const description = this.getNodeParameter('description', itemIndex, '') as string;
const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '') as string;
const query = `
mutation CreateTrustCenterReference($input: CreateTrustCenterReferenceInput!) {
createTrustCenterReference(input: $input) {
trustCenterReferenceEdge {
mutation CreateCompliancePortalReference($input: CreateCompliancePortalReferenceInput!) {
createCompliancePortalReference(input: $input) {
compliancePortalReferenceEdge {
node {
id
name
@@ -108,7 +108,7 @@ export async function execute(
}
`;
const input: Record<string, unknown> = { trustCenterId, name };
const input: Record<string, unknown> = { compliancePortalId, name };
if (description) input.description = description;
if (websiteUrl) input.websiteUrl = websiteUrl;

View File

@@ -28,7 +28,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['deleteCustomLink'],
},
},

View File

@@ -23,17 +23,17 @@ import { proboApiRequest } from '../../GenericFunctions';
export const description: INodeProperties[] = [
{
displayName: 'Trust Center File ID',
name: 'trustCenterFileId',
displayName: 'Compliance Portal File ID',
name: 'compliancePortalFileId',
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['deleteFile'],
},
},
default: '',
description: 'The ID of the trust center file to delete',
description: 'The ID of the compliance portal file to delete',
required: true,
},
];
@@ -42,17 +42,17 @@ export async function execute(
this: IExecuteFunctions,
itemIndex: number,
): Promise<INodeExecutionData> {
const trustCenterFileId = this.getNodeParameter('trustCenterFileId', itemIndex) as string;
const compliancePortalFileId = this.getNodeParameter('compliancePortalFileId', itemIndex) as string;
const query = `
mutation DeleteTrustCenterFile($input: DeleteTrustCenterFileInput!) {
deleteTrustCenterFile(input: $input) {
deletedTrustCenterFileId
mutation DeleteCompliancePortalFile($input: DeleteCompliancePortalFileInput!) {
deleteCompliancePortalFile(input: $input) {
deletedCompliancePortalFileId
}
}
`;
const responseData = await proboApiRequest.call(this, query, { input: { id: trustCenterFileId } });
const responseData = await proboApiRequest.call(this, query, { input: { id: compliancePortalFileId } });
return {
json: responseData,

View File

@@ -23,17 +23,17 @@ import { proboApiRequest } from '../../GenericFunctions';
export const description: INodeProperties[] = [
{
displayName: 'Trust Center Reference ID',
name: 'trustCenterReferenceId',
displayName: 'Compliance Portal Reference ID',
name: 'compliancePortalReferenceId',
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['deleteReference'],
},
},
default: '',
description: 'The ID of the trust center reference to delete',
description: 'The ID of the compliance portal reference to delete',
required: true,
},
];
@@ -42,17 +42,17 @@ export async function execute(
this: IExecuteFunctions,
itemIndex: number,
): Promise<INodeExecutionData> {
const trustCenterReferenceId = this.getNodeParameter('trustCenterReferenceId', itemIndex) as string;
const compliancePortalReferenceId = this.getNodeParameter('compliancePortalReferenceId', itemIndex) as string;
const query = `
mutation DeleteTrustCenterReference($input: DeleteTrustCenterReferenceInput!) {
deleteTrustCenterReference(input: $input) {
deletedTrustCenterReferenceId
mutation DeleteCompliancePortalReference($input: DeleteCompliancePortalReferenceInput!) {
deleteCompliancePortalReference(input: $input) {
deletedCompliancePortalReferenceId
}
}
`;
const responseData = await proboApiRequest.call(this, query, { input: { id: trustCenterReferenceId } });
const responseData = await proboApiRequest.call(this, query, { input: { id: compliancePortalReferenceId } });
return {
json: responseData,

View File

@@ -28,7 +28,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['get'],
},
},
@@ -45,10 +45,10 @@ export async function execute(
const organizationId = this.getNodeParameter('organizationId', itemIndex) as string;
const query = `
query GetTrustCenter($organizationId: ID!) {
query GetCompliancePortal($organizationId: ID!) {
node(id: $organizationId) {
... on Organization {
trustCenter {
compliancePortal {
id
active
searchEngineIndexing

View File

@@ -28,7 +28,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['getAllFiles'],
},
},
@@ -42,7 +42,7 @@ export const description: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['getAllFiles'],
},
},
@@ -55,7 +55,7 @@ export const description: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['getAllFiles'],
returnAll: [false],
},
@@ -77,16 +77,16 @@ export async function execute(
const limit = this.getNodeParameter('limit', itemIndex, 50) as number;
const query = `
query GetTrustCenterFiles($organizationId: ID!, $first: Int, $after: CursorKey) {
query GetCompliancePortalFiles($organizationId: ID!, $first: Int, $after: CursorKey) {
node(id: $organizationId) {
... on Organization {
trustCenterFiles(first: $first, after: $after) {
compliancePortalFiles(first: $first, after: $after) {
edges {
node {
id
name
category
trustCenterVisibility
compliancePortalVisibility
createdAt
updatedAt
}
@@ -101,21 +101,21 @@ export async function execute(
}
`;
const trustCenterFiles = await proboApiRequestAllItems.call(
const compliancePortalFiles = await proboApiRequestAllItems.call(
this,
query,
{ organizationId },
(response) => {
const data = response?.data as IDataObject | undefined;
const node = data?.node as IDataObject | undefined;
return node?.trustCenterFiles as IDataObject | undefined;
return node?.compliancePortalFiles as IDataObject | undefined;
},
returnAll,
limit,
);
return {
json: { trustCenterFiles },
json: { compliancePortalFiles },
pairedItem: { item: itemIndex },
};
}

View File

@@ -28,7 +28,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['getAllReferences'],
},
},
@@ -42,7 +42,7 @@ export const description: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['getAllReferences'],
},
},
@@ -55,7 +55,7 @@ export const description: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['getAllReferences'],
returnAll: [false],
},
@@ -77,10 +77,10 @@ export async function execute(
const limit = this.getNodeParameter('limit', itemIndex, 50) as number;
const query = `
query GetTrustCenterReferences($organizationId: ID!, $first: Int, $after: CursorKey) {
query GetCompliancePortalReferences($organizationId: ID!, $first: Int, $after: CursorKey) {
node(id: $organizationId) {
... on Organization {
trustCenter {
compliancePortal {
references(first: $first, after: $after) {
edges {
node {
@@ -111,8 +111,8 @@ export async function execute(
(response) => {
const data = response?.data as IDataObject | undefined;
const node = data?.node as IDataObject | undefined;
const trustCenter = node?.trustCenter as IDataObject | undefined;
return trustCenter?.references as IDataObject | undefined;
const compliancePortal = node?.compliancePortal as IDataObject | undefined;
return compliancePortal?.references as IDataObject | undefined;
},
returnAll,
limit,

View File

@@ -45,7 +45,7 @@ export const description: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
},
},
options: [
@@ -70,8 +70,8 @@ export const description: INodeProperties[] = [
{
name: 'Create Reference',
value: 'createReference',
description: 'Create a new trust center reference',
action: 'Create a trust center reference',
description: 'Create a new compliance portal reference',
action: 'Create a compliance portal reference',
},
{
name: 'Delete Commitment',
@@ -94,20 +94,20 @@ export const description: INodeProperties[] = [
{
name: 'Delete File',
value: 'deleteFile',
description: 'Delete a trust center file',
action: 'Delete a trust center file',
description: 'Delete a compliance portal file',
action: 'Delete a compliance portal file',
},
{
name: 'Delete Reference',
value: 'deleteReference',
description: 'Delete a trust center reference',
action: 'Delete a trust center reference',
description: 'Delete a compliance portal reference',
action: 'Delete a compliance portal reference',
},
{
name: 'Get',
value: 'get',
description: 'Get trust center settings',
action: 'Get trust center settings',
description: 'Get compliance portal settings',
action: 'Get compliance portal settings',
},
{
name: 'Get Many Commitment Groups',
@@ -124,20 +124,20 @@ export const description: INodeProperties[] = [
{
name: 'Get Many Files',
value: 'getAllFiles',
description: 'Get many trust center files',
action: 'Get many trust center files',
description: 'Get many compliance portal files',
action: 'Get many compliance portal files',
},
{
name: 'Get Many References',
value: 'getAllReferences',
description: 'Get many trust center references',
action: 'Get many trust center references',
description: 'Get many compliance portal references',
action: 'Get many compliance portal references',
},
{
name: 'Update',
value: 'update',
description: 'Update trust center settings',
action: 'Update trust center settings',
description: 'Update compliance portal settings',
action: 'Update compliance portal settings',
},
{
name: 'Update Commitment',

View File

@@ -23,17 +23,17 @@ import { proboApiRequest } from '../../GenericFunctions';
export const description: INodeProperties[] = [
{
displayName: 'Trust Center ID',
name: 'trustCenterId',
displayName: 'Compliance Portal ID',
name: 'compliancePortalId',
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['update'],
},
},
default: '',
description: 'The ID of the trust center to update',
description: 'The ID of the compliance portal to update',
required: true,
},
{
@@ -42,12 +42,12 @@ export const description: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['update'],
},
},
default: false,
description: 'Whether the trust center is active',
description: 'Whether the compliance portal is active',
},
{
displayName: 'Search Engine Indexing',
@@ -55,7 +55,7 @@ export const description: INodeProperties[] = [
type: 'options',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['update'],
},
},
@@ -74,7 +74,7 @@ export const description: INodeProperties[] = [
},
],
default: '',
description: 'Whether search engines should index the trust center',
description: 'Whether search engines should index the compliance portal',
},
{
displayName: 'Title',
@@ -82,7 +82,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['update'],
},
},
@@ -95,7 +95,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['update'],
},
},
@@ -108,7 +108,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['update'],
},
},
@@ -122,7 +122,7 @@ export const description: INodeProperties[] = [
placeholder: 'name@example.com',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['update'],
},
},
@@ -135,7 +135,7 @@ export const description: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
resource: ['compliancePortal'],
operation: ['update'],
},
},
@@ -148,7 +148,7 @@ export async function execute(
this: IExecuteFunctions,
itemIndex: number,
): Promise<INodeExecutionData> {
const trustCenterId = this.getNodeParameter('trustCenterId', itemIndex) as string;
const compliancePortalId = this.getNodeParameter('compliancePortalId', itemIndex) as string;
const active = this.getNodeParameter('active', itemIndex) as boolean | undefined;
const searchEngineIndexing = this.getNodeParameter('searchEngineIndexing', itemIndex, '') as string;
const description = this.getNodeParameter('description', itemIndex, '') as string;
@@ -158,9 +158,9 @@ export async function execute(
const title = this.getNodeParameter('title', itemIndex, '') as string;
const query = `
mutation UpdateTrustCenter($input: UpdateTrustCenterInput!) {
updateTrustCenter(input: $input) {
trustCenter {
mutation UpdateCompliancePortal($input: UpdateCompliancePortalInput!) {
updateCompliancePortal(input: $input) {
compliancePortal {
id
active
searchEngineIndexing
@@ -177,7 +177,7 @@ export async function execute(
`;
const input: Record<string, unknown> = {
trustCenterId,
compliancePortalId,
title,
description,
websiteUrl,

View File

@@ -50,7 +50,7 @@ export async function execute(
document {
id
status
trustCenterVisibility
compliancePortalVisibility
currentPublishedMajor
currentPublishedMinor
archivedAt

View File

@@ -125,8 +125,8 @@ export const description: INodeProperties[] = [
},
options: [
{
displayName: 'Trust Center Visibility',
name: 'trustCenterVisibility',
displayName: 'Compliance Portal Visibility',
name: 'compliancePortalVisibility',
type: 'options',
options: [
{ name: 'None', value: 'NONE' },
@@ -134,7 +134,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',
},
{
displayName: 'Default Approver IDs',
@@ -157,7 +157,7 @@ export async function execute(
const classification = this.getNodeParameter('classification', itemIndex) as string;
const content = this.getNodeParameter('content', itemIndex, '') as string;
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {}) as {
trustCenterVisibility?: string;
compliancePortalVisibility?: string;
defaultApproverIds?: string;
};
@@ -168,7 +168,7 @@ export async function execute(
node {
id
status
trustCenterVisibility
compliancePortalVisibility
currentPublishedMajor
currentPublishedMinor
archivedAt
@@ -203,7 +203,7 @@ export async function execute(
classification,
};
if (content) input.content = content;
if (additionalFields.trustCenterVisibility) input.trustCenterVisibility = additionalFields.trustCenterVisibility;
if (additionalFields.compliancePortalVisibility) input.compliancePortalVisibility = additionalFields.compliancePortalVisibility;
if (additionalFields.defaultApproverIds) {
input.defaultApproverIds = additionalFields.defaultApproverIds.split(',').map(id => id.trim()).filter(Boolean);
}

View File

@@ -50,7 +50,7 @@ export async function execute(
... on Document {
id
status
trustCenterVisibility
compliancePortalVisibility
currentPublishedMajor
currentPublishedMinor
archivedAt

View File

@@ -169,7 +169,7 @@ export async function execute(
node {
id
status
trustCenterVisibility
compliancePortalVisibility
currentPublishedMajor
currentPublishedMinor
archivedAt

View File

@@ -97,7 +97,7 @@ export async function execute(
document {
id
status
trustCenterVisibility
compliancePortalVisibility
currentPublishedMajor
currentPublishedMinor
createdAt

View File

@@ -50,7 +50,7 @@ export async function execute(
document {
id
status
trustCenterVisibility
compliancePortalVisibility
currentPublishedMajor
currentPublishedMinor
archivedAt

View File

@@ -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);
}

View File

@@ -48,7 +48,7 @@ import * as risk from './risk';
import * as statementOfApplicability from './statementOfApplicability';
import * as task from './task';
import * as tia from './tia';
import * as trustCenter from './trustCenter';
import * as compliancePortal from './compliancePortal';
import * as thirdParty from './thirdParty';
import * as webhook from './webhook';
@@ -92,7 +92,7 @@ export const resources: Record<string, ResourceModule> = {
statementOfApplicability: statementOfApplicability as ResourceModule,
task: task as ResourceModule,
tia: tia as ResourceModule,
trustCenter: trustCenter as ResourceModule,
compliancePortal: compliancePortal as ResourceModule,
thirdParty: thirdParty as ResourceModule,
webhook: webhook as ResourceModule,
};

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;