Move trust center profile onto the page

Store website, email, and headquarters on the trust center so
public and admin surfaces read branding from one place. Drop the
trust API organization type and wire console, MCP, CLI, and apps
through the updated schema.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-13 14:17:22 +02:00
parent ec80798243
commit ba53c94bdc
36 changed files with 167 additions and 155 deletions

View File

@@ -76,6 +76,19 @@ export const description: INodeProperties[] = [
default: '',
description: 'Whether search engines should index the trust center',
},
{
displayName: 'Title',
name: 'title',
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
operation: ['update'],
},
},
default: '',
description: 'The title shown on the public compliance page',
},
{
displayName: 'Description',
name: 'description',
@@ -142,6 +155,7 @@ export async function execute(
const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '') as string;
const email = this.getNodeParameter('email', itemIndex, '') as string;
const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '') as string;
const title = this.getNodeParameter('title', itemIndex, '') as string;
const query = `
mutation UpdateTrustCenter($input: UpdateTrustCenterInput!) {
@@ -150,6 +164,7 @@ export async function execute(
id
active
searchEngineIndexing
title
description
websiteUrl
email
@@ -168,6 +183,7 @@ export async function execute(
if (websiteUrl) input.websiteUrl = websiteUrl;
if (email) input.email = email;
if (headquarterAddress) input.headquarterAddress = headquarterAddress;
if (title) input.title = title;
const responseData = await proboApiRequest.call(this, query, { input });