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:
@@ -223,9 +223,9 @@ export class Probo implements INodeType {
|
|||||||
description: 'Manage tracker patterns',
|
description: 'Manage tracker patterns',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Trust Center',
|
name: 'Compliance Portal',
|
||||||
value: 'trustCenter',
|
value: 'compliancePortal',
|
||||||
description: 'Manage trust center',
|
description: 'Manage compliance portal',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'User',
|
name: 'User',
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ export async function execute(
|
|||||||
validFrom
|
validFrom
|
||||||
validUntil
|
validUntil
|
||||||
reportUrl
|
reportUrl
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export async function execute(
|
|||||||
validFrom
|
validFrom
|
||||||
validUntil
|
validUntil
|
||||||
reportUrl
|
reportUrl
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export async function execute(
|
|||||||
validFrom
|
validFrom
|
||||||
validUntil
|
validUntil
|
||||||
reportUrl
|
reportUrl
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export async function execute(
|
|||||||
validFrom
|
validFrom
|
||||||
validUntil
|
validUntil
|
||||||
reportUrl
|
reportUrl
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ export async function execute(
|
|||||||
validFrom
|
validFrom
|
||||||
validUntil
|
validUntil
|
||||||
reportUrl
|
reportUrl
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ export async function execute(
|
|||||||
validFrom
|
validFrom
|
||||||
validUntil
|
validUntil
|
||||||
reportUrl
|
reportUrl
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,17 +23,17 @@ import { proboApiRequest } from '../../GenericFunctions';
|
|||||||
|
|
||||||
export const description: INodeProperties[] = [
|
export const description: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
displayName: 'Trust Center ID',
|
displayName: 'Compliance Portal ID',
|
||||||
name: 'trustCenterId',
|
name: 'compliancePortalId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['createCustomLink'],
|
operation: ['createCustomLink'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The ID of the trust center',
|
description: 'The ID of the compliance portal',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -42,7 +42,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['createCustomLink'],
|
operation: ['createCustomLink'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -56,7 +56,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['createCustomLink'],
|
operation: ['createCustomLink'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -70,7 +70,7 @@ export async function execute(
|
|||||||
this: IExecuteFunctions,
|
this: IExecuteFunctions,
|
||||||
itemIndex: number,
|
itemIndex: number,
|
||||||
): Promise<INodeExecutionData> {
|
): 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 name = this.getNodeParameter('name', itemIndex) as string;
|
||||||
const url = this.getNodeParameter('url', 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, {
|
const responseData = await proboApiRequest.call(this, query, {
|
||||||
input: { trustCenterId, name, url },
|
input: { compliancePortalId, name, url },
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -23,17 +23,17 @@ import { proboApiRequest } from '../../GenericFunctions';
|
|||||||
|
|
||||||
export const description: INodeProperties[] = [
|
export const description: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
displayName: 'Trust Center ID',
|
displayName: 'Compliance Portal ID',
|
||||||
name: 'trustCenterId',
|
name: 'compliancePortalId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['createReference'],
|
operation: ['createReference'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The ID of the trust center',
|
description: 'The ID of the compliance portal',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -42,7 +42,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['createReference'],
|
operation: ['createReference'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -59,7 +59,7 @@ export const description: INodeProperties[] = [
|
|||||||
},
|
},
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['createReference'],
|
operation: ['createReference'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -72,7 +72,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['createReference'],
|
operation: ['createReference'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -85,15 +85,15 @@ export async function execute(
|
|||||||
this: IExecuteFunctions,
|
this: IExecuteFunctions,
|
||||||
itemIndex: number,
|
itemIndex: number,
|
||||||
): Promise<INodeExecutionData> {
|
): 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 name = this.getNodeParameter('name', itemIndex) as string;
|
||||||
const description = this.getNodeParameter('description', itemIndex, '') as string;
|
const description = this.getNodeParameter('description', itemIndex, '') as string;
|
||||||
const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '') as string;
|
const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '') as string;
|
||||||
|
|
||||||
const query = `
|
const query = `
|
||||||
mutation CreateTrustCenterReference($input: CreateTrustCenterReferenceInput!) {
|
mutation CreateCompliancePortalReference($input: CreateCompliancePortalReferenceInput!) {
|
||||||
createTrustCenterReference(input: $input) {
|
createCompliancePortalReference(input: $input) {
|
||||||
trustCenterReferenceEdge {
|
compliancePortalReferenceEdge {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
name
|
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 (description) input.description = description;
|
||||||
if (websiteUrl) input.websiteUrl = websiteUrl;
|
if (websiteUrl) input.websiteUrl = websiteUrl;
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['deleteCustomLink'],
|
operation: ['deleteCustomLink'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -23,17 +23,17 @@ import { proboApiRequest } from '../../GenericFunctions';
|
|||||||
|
|
||||||
export const description: INodeProperties[] = [
|
export const description: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
displayName: 'Trust Center File ID',
|
displayName: 'Compliance Portal File ID',
|
||||||
name: 'trustCenterFileId',
|
name: 'compliancePortalFileId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['deleteFile'],
|
operation: ['deleteFile'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The ID of the trust center file to delete',
|
description: 'The ID of the compliance portal file to delete',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -42,17 +42,17 @@ export async function execute(
|
|||||||
this: IExecuteFunctions,
|
this: IExecuteFunctions,
|
||||||
itemIndex: number,
|
itemIndex: number,
|
||||||
): Promise<INodeExecutionData> {
|
): Promise<INodeExecutionData> {
|
||||||
const trustCenterFileId = this.getNodeParameter('trustCenterFileId', itemIndex) as string;
|
const compliancePortalFileId = this.getNodeParameter('compliancePortalFileId', itemIndex) as string;
|
||||||
|
|
||||||
const query = `
|
const query = `
|
||||||
mutation DeleteTrustCenterFile($input: DeleteTrustCenterFileInput!) {
|
mutation DeleteCompliancePortalFile($input: DeleteCompliancePortalFileInput!) {
|
||||||
deleteTrustCenterFile(input: $input) {
|
deleteCompliancePortalFile(input: $input) {
|
||||||
deletedTrustCenterFileId
|
deletedCompliancePortalFileId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const responseData = await proboApiRequest.call(this, query, { input: { id: trustCenterFileId } });
|
const responseData = await proboApiRequest.call(this, query, { input: { id: compliancePortalFileId } });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
json: responseData,
|
json: responseData,
|
||||||
@@ -23,17 +23,17 @@ import { proboApiRequest } from '../../GenericFunctions';
|
|||||||
|
|
||||||
export const description: INodeProperties[] = [
|
export const description: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
displayName: 'Trust Center Reference ID',
|
displayName: 'Compliance Portal Reference ID',
|
||||||
name: 'trustCenterReferenceId',
|
name: 'compliancePortalReferenceId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['deleteReference'],
|
operation: ['deleteReference'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The ID of the trust center reference to delete',
|
description: 'The ID of the compliance portal reference to delete',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -42,17 +42,17 @@ export async function execute(
|
|||||||
this: IExecuteFunctions,
|
this: IExecuteFunctions,
|
||||||
itemIndex: number,
|
itemIndex: number,
|
||||||
): Promise<INodeExecutionData> {
|
): Promise<INodeExecutionData> {
|
||||||
const trustCenterReferenceId = this.getNodeParameter('trustCenterReferenceId', itemIndex) as string;
|
const compliancePortalReferenceId = this.getNodeParameter('compliancePortalReferenceId', itemIndex) as string;
|
||||||
|
|
||||||
const query = `
|
const query = `
|
||||||
mutation DeleteTrustCenterReference($input: DeleteTrustCenterReferenceInput!) {
|
mutation DeleteCompliancePortalReference($input: DeleteCompliancePortalReferenceInput!) {
|
||||||
deleteTrustCenterReference(input: $input) {
|
deleteCompliancePortalReference(input: $input) {
|
||||||
deletedTrustCenterReferenceId
|
deletedCompliancePortalReferenceId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const responseData = await proboApiRequest.call(this, query, { input: { id: trustCenterReferenceId } });
|
const responseData = await proboApiRequest.call(this, query, { input: { id: compliancePortalReferenceId } });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
json: responseData,
|
json: responseData,
|
||||||
@@ -28,7 +28,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['get'],
|
operation: ['get'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -45,10 +45,10 @@ export async function execute(
|
|||||||
const organizationId = this.getNodeParameter('organizationId', itemIndex) as string;
|
const organizationId = this.getNodeParameter('organizationId', itemIndex) as string;
|
||||||
|
|
||||||
const query = `
|
const query = `
|
||||||
query GetTrustCenter($organizationId: ID!) {
|
query GetCompliancePortal($organizationId: ID!) {
|
||||||
node(id: $organizationId) {
|
node(id: $organizationId) {
|
||||||
... on Organization {
|
... on Organization {
|
||||||
trustCenter {
|
compliancePortal {
|
||||||
id
|
id
|
||||||
active
|
active
|
||||||
searchEngineIndexing
|
searchEngineIndexing
|
||||||
@@ -28,7 +28,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['getAllFiles'],
|
operation: ['getAllFiles'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -42,7 +42,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['getAllFiles'],
|
operation: ['getAllFiles'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -55,7 +55,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'number',
|
type: 'number',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['getAllFiles'],
|
operation: ['getAllFiles'],
|
||||||
returnAll: [false],
|
returnAll: [false],
|
||||||
},
|
},
|
||||||
@@ -77,16 +77,16 @@ export async function execute(
|
|||||||
const limit = this.getNodeParameter('limit', itemIndex, 50) as number;
|
const limit = this.getNodeParameter('limit', itemIndex, 50) as number;
|
||||||
|
|
||||||
const query = `
|
const query = `
|
||||||
query GetTrustCenterFiles($organizationId: ID!, $first: Int, $after: CursorKey) {
|
query GetCompliancePortalFiles($organizationId: ID!, $first: Int, $after: CursorKey) {
|
||||||
node(id: $organizationId) {
|
node(id: $organizationId) {
|
||||||
... on Organization {
|
... on Organization {
|
||||||
trustCenterFiles(first: $first, after: $after) {
|
compliancePortalFiles(first: $first, after: $after) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
category
|
category
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
@@ -101,21 +101,21 @@ export async function execute(
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const trustCenterFiles = await proboApiRequestAllItems.call(
|
const compliancePortalFiles = await proboApiRequestAllItems.call(
|
||||||
this,
|
this,
|
||||||
query,
|
query,
|
||||||
{ organizationId },
|
{ organizationId },
|
||||||
(response) => {
|
(response) => {
|
||||||
const data = response?.data as IDataObject | undefined;
|
const data = response?.data as IDataObject | undefined;
|
||||||
const node = data?.node as IDataObject | undefined;
|
const node = data?.node as IDataObject | undefined;
|
||||||
return node?.trustCenterFiles as IDataObject | undefined;
|
return node?.compliancePortalFiles as IDataObject | undefined;
|
||||||
},
|
},
|
||||||
returnAll,
|
returnAll,
|
||||||
limit,
|
limit,
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
json: { trustCenterFiles },
|
json: { compliancePortalFiles },
|
||||||
pairedItem: { item: itemIndex },
|
pairedItem: { item: itemIndex },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -28,7 +28,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['getAllReferences'],
|
operation: ['getAllReferences'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -42,7 +42,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['getAllReferences'],
|
operation: ['getAllReferences'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -55,7 +55,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'number',
|
type: 'number',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['getAllReferences'],
|
operation: ['getAllReferences'],
|
||||||
returnAll: [false],
|
returnAll: [false],
|
||||||
},
|
},
|
||||||
@@ -77,10 +77,10 @@ export async function execute(
|
|||||||
const limit = this.getNodeParameter('limit', itemIndex, 50) as number;
|
const limit = this.getNodeParameter('limit', itemIndex, 50) as number;
|
||||||
|
|
||||||
const query = `
|
const query = `
|
||||||
query GetTrustCenterReferences($organizationId: ID!, $first: Int, $after: CursorKey) {
|
query GetCompliancePortalReferences($organizationId: ID!, $first: Int, $after: CursorKey) {
|
||||||
node(id: $organizationId) {
|
node(id: $organizationId) {
|
||||||
... on Organization {
|
... on Organization {
|
||||||
trustCenter {
|
compliancePortal {
|
||||||
references(first: $first, after: $after) {
|
references(first: $first, after: $after) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
@@ -111,8 +111,8 @@ export async function execute(
|
|||||||
(response) => {
|
(response) => {
|
||||||
const data = response?.data as IDataObject | undefined;
|
const data = response?.data as IDataObject | undefined;
|
||||||
const node = data?.node as IDataObject | undefined;
|
const node = data?.node as IDataObject | undefined;
|
||||||
const trustCenter = node?.trustCenter as IDataObject | undefined;
|
const compliancePortal = node?.compliancePortal as IDataObject | undefined;
|
||||||
return trustCenter?.references as IDataObject | undefined;
|
return compliancePortal?.references as IDataObject | undefined;
|
||||||
},
|
},
|
||||||
returnAll,
|
returnAll,
|
||||||
limit,
|
limit,
|
||||||
@@ -45,7 +45,7 @@ export const description: INodeProperties[] = [
|
|||||||
noDataExpression: true,
|
noDataExpression: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
@@ -70,8 +70,8 @@ export const description: INodeProperties[] = [
|
|||||||
{
|
{
|
||||||
name: 'Create Reference',
|
name: 'Create Reference',
|
||||||
value: 'createReference',
|
value: 'createReference',
|
||||||
description: 'Create a new trust center reference',
|
description: 'Create a new compliance portal reference',
|
||||||
action: 'Create a trust center reference',
|
action: 'Create a compliance portal reference',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Delete Commitment',
|
name: 'Delete Commitment',
|
||||||
@@ -94,20 +94,20 @@ export const description: INodeProperties[] = [
|
|||||||
{
|
{
|
||||||
name: 'Delete File',
|
name: 'Delete File',
|
||||||
value: 'deleteFile',
|
value: 'deleteFile',
|
||||||
description: 'Delete a trust center file',
|
description: 'Delete a compliance portal file',
|
||||||
action: 'Delete a trust center file',
|
action: 'Delete a compliance portal file',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Delete Reference',
|
name: 'Delete Reference',
|
||||||
value: 'deleteReference',
|
value: 'deleteReference',
|
||||||
description: 'Delete a trust center reference',
|
description: 'Delete a compliance portal reference',
|
||||||
action: 'Delete a trust center reference',
|
action: 'Delete a compliance portal reference',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Get',
|
name: 'Get',
|
||||||
value: 'get',
|
value: 'get',
|
||||||
description: 'Get trust center settings',
|
description: 'Get compliance portal settings',
|
||||||
action: 'Get trust center settings',
|
action: 'Get compliance portal settings',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Get Many Commitment Groups',
|
name: 'Get Many Commitment Groups',
|
||||||
@@ -124,20 +124,20 @@ export const description: INodeProperties[] = [
|
|||||||
{
|
{
|
||||||
name: 'Get Many Files',
|
name: 'Get Many Files',
|
||||||
value: 'getAllFiles',
|
value: 'getAllFiles',
|
||||||
description: 'Get many trust center files',
|
description: 'Get many compliance portal files',
|
||||||
action: 'Get many trust center files',
|
action: 'Get many compliance portal files',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Get Many References',
|
name: 'Get Many References',
|
||||||
value: 'getAllReferences',
|
value: 'getAllReferences',
|
||||||
description: 'Get many trust center references',
|
description: 'Get many compliance portal references',
|
||||||
action: 'Get many trust center references',
|
action: 'Get many compliance portal references',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Update',
|
name: 'Update',
|
||||||
value: 'update',
|
value: 'update',
|
||||||
description: 'Update trust center settings',
|
description: 'Update compliance portal settings',
|
||||||
action: 'Update trust center settings',
|
action: 'Update compliance portal settings',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Update Commitment',
|
name: 'Update Commitment',
|
||||||
@@ -23,17 +23,17 @@ import { proboApiRequest } from '../../GenericFunctions';
|
|||||||
|
|
||||||
export const description: INodeProperties[] = [
|
export const description: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
displayName: 'Trust Center ID',
|
displayName: 'Compliance Portal ID',
|
||||||
name: 'trustCenterId',
|
name: 'compliancePortalId',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['update'],
|
operation: ['update'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The ID of the trust center to update',
|
description: 'The ID of the compliance portal to update',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -42,12 +42,12 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['update'],
|
operation: ['update'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Whether the trust center is active',
|
description: 'Whether the compliance portal is active',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Search Engine Indexing',
|
displayName: 'Search Engine Indexing',
|
||||||
@@ -55,7 +55,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'options',
|
type: 'options',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['update'],
|
operation: ['update'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -74,7 +74,7 @@ export const description: INodeProperties[] = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Whether search engines should index the trust center',
|
description: 'Whether search engines should index the compliance portal',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Title',
|
displayName: 'Title',
|
||||||
@@ -82,7 +82,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['update'],
|
operation: ['update'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -95,7 +95,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['update'],
|
operation: ['update'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -108,7 +108,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['update'],
|
operation: ['update'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -122,7 +122,7 @@ export const description: INodeProperties[] = [
|
|||||||
placeholder: 'name@example.com',
|
placeholder: 'name@example.com',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['update'],
|
operation: ['update'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -135,7 +135,7 @@ export const description: INodeProperties[] = [
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['trustCenter'],
|
resource: ['compliancePortal'],
|
||||||
operation: ['update'],
|
operation: ['update'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -148,7 +148,7 @@ export async function execute(
|
|||||||
this: IExecuteFunctions,
|
this: IExecuteFunctions,
|
||||||
itemIndex: number,
|
itemIndex: number,
|
||||||
): Promise<INodeExecutionData> {
|
): 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 active = this.getNodeParameter('active', itemIndex) as boolean | undefined;
|
||||||
const searchEngineIndexing = this.getNodeParameter('searchEngineIndexing', itemIndex, '') as string;
|
const searchEngineIndexing = this.getNodeParameter('searchEngineIndexing', itemIndex, '') as string;
|
||||||
const description = this.getNodeParameter('description', 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 title = this.getNodeParameter('title', itemIndex, '') as string;
|
||||||
|
|
||||||
const query = `
|
const query = `
|
||||||
mutation UpdateTrustCenter($input: UpdateTrustCenterInput!) {
|
mutation UpdateCompliancePortal($input: UpdateCompliancePortalInput!) {
|
||||||
updateTrustCenter(input: $input) {
|
updateCompliancePortal(input: $input) {
|
||||||
trustCenter {
|
compliancePortal {
|
||||||
id
|
id
|
||||||
active
|
active
|
||||||
searchEngineIndexing
|
searchEngineIndexing
|
||||||
@@ -177,7 +177,7 @@ export async function execute(
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const input: Record<string, unknown> = {
|
const input: Record<string, unknown> = {
|
||||||
trustCenterId,
|
compliancePortalId,
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
websiteUrl,
|
websiteUrl,
|
||||||
@@ -50,7 +50,7 @@ export async function execute(
|
|||||||
document {
|
document {
|
||||||
id
|
id
|
||||||
status
|
status
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
currentPublishedMajor
|
currentPublishedMajor
|
||||||
currentPublishedMinor
|
currentPublishedMinor
|
||||||
archivedAt
|
archivedAt
|
||||||
|
|||||||
@@ -125,8 +125,8 @@ export const description: INodeProperties[] = [
|
|||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'Trust Center Visibility',
|
displayName: 'Compliance Portal Visibility',
|
||||||
name: 'trustCenterVisibility',
|
name: 'compliancePortalVisibility',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{ name: 'None', value: 'NONE' },
|
{ name: 'None', value: 'NONE' },
|
||||||
@@ -134,7 +134,7 @@ export const description: INodeProperties[] = [
|
|||||||
{ name: 'Public', value: 'PUBLIC' },
|
{ name: 'Public', value: 'PUBLIC' },
|
||||||
],
|
],
|
||||||
default: 'NONE',
|
default: 'NONE',
|
||||||
description: 'The trust center visibility of the document',
|
description: 'The compliance portal visibility of the document',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Default Approver IDs',
|
displayName: 'Default Approver IDs',
|
||||||
@@ -157,7 +157,7 @@ export async function execute(
|
|||||||
const classification = this.getNodeParameter('classification', itemIndex) as string;
|
const classification = this.getNodeParameter('classification', itemIndex) as string;
|
||||||
const content = this.getNodeParameter('content', itemIndex, '') as string;
|
const content = this.getNodeParameter('content', itemIndex, '') as string;
|
||||||
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {}) as {
|
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {}) as {
|
||||||
trustCenterVisibility?: string;
|
compliancePortalVisibility?: string;
|
||||||
defaultApproverIds?: string;
|
defaultApproverIds?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -168,7 +168,7 @@ export async function execute(
|
|||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
status
|
status
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
currentPublishedMajor
|
currentPublishedMajor
|
||||||
currentPublishedMinor
|
currentPublishedMinor
|
||||||
archivedAt
|
archivedAt
|
||||||
@@ -203,7 +203,7 @@ export async function execute(
|
|||||||
classification,
|
classification,
|
||||||
};
|
};
|
||||||
if (content) input.content = content;
|
if (content) input.content = content;
|
||||||
if (additionalFields.trustCenterVisibility) input.trustCenterVisibility = additionalFields.trustCenterVisibility;
|
if (additionalFields.compliancePortalVisibility) input.compliancePortalVisibility = additionalFields.compliancePortalVisibility;
|
||||||
if (additionalFields.defaultApproverIds) {
|
if (additionalFields.defaultApproverIds) {
|
||||||
input.defaultApproverIds = additionalFields.defaultApproverIds.split(',').map(id => id.trim()).filter(Boolean);
|
input.defaultApproverIds = additionalFields.defaultApproverIds.split(',').map(id => id.trim()).filter(Boolean);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export async function execute(
|
|||||||
... on Document {
|
... on Document {
|
||||||
id
|
id
|
||||||
status
|
status
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
currentPublishedMajor
|
currentPublishedMajor
|
||||||
currentPublishedMinor
|
currentPublishedMinor
|
||||||
archivedAt
|
archivedAt
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ export async function execute(
|
|||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
status
|
status
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
currentPublishedMajor
|
currentPublishedMajor
|
||||||
currentPublishedMinor
|
currentPublishedMinor
|
||||||
archivedAt
|
archivedAt
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ export async function execute(
|
|||||||
document {
|
document {
|
||||||
id
|
id
|
||||||
status
|
status
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
currentPublishedMajor
|
currentPublishedMajor
|
||||||
currentPublishedMinor
|
currentPublishedMinor
|
||||||
createdAt
|
createdAt
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export async function execute(
|
|||||||
document {
|
document {
|
||||||
id
|
id
|
||||||
status
|
status
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
currentPublishedMajor
|
currentPublishedMajor
|
||||||
currentPublishedMinor
|
currentPublishedMinor
|
||||||
archivedAt
|
archivedAt
|
||||||
|
|||||||
@@ -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.',
|
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',
|
displayName: 'Compliance Portal Visibility',
|
||||||
name: 'trustCenterVisibility',
|
name: 'compliancePortalVisibility',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{ name: 'None', value: 'NONE' },
|
{ name: 'None', value: 'NONE' },
|
||||||
@@ -114,7 +114,7 @@ export const description: INodeProperties[] = [
|
|||||||
{ name: 'Public', value: 'PUBLIC' },
|
{ name: 'Public', value: 'PUBLIC' },
|
||||||
],
|
],
|
||||||
default: 'NONE',
|
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;
|
content?: string;
|
||||||
classification?: string;
|
classification?: string;
|
||||||
documentType?: string;
|
documentType?: string;
|
||||||
trustCenterVisibility?: string;
|
compliancePortalVisibility?: string;
|
||||||
defaultApproverIds?: string;
|
defaultApproverIds?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@ export async function execute(
|
|||||||
document {
|
document {
|
||||||
id
|
id
|
||||||
status
|
status
|
||||||
trustCenterVisibility
|
compliancePortalVisibility
|
||||||
currentPublishedMajor
|
currentPublishedMajor
|
||||||
currentPublishedMinor
|
currentPublishedMinor
|
||||||
archivedAt
|
archivedAt
|
||||||
@@ -170,7 +170,7 @@ export async function execute(
|
|||||||
if (updateFields.content !== undefined && updateFields.content !== '') input.content = updateFields.content;
|
if (updateFields.content !== undefined && updateFields.content !== '') input.content = updateFields.content;
|
||||||
if (updateFields.classification !== undefined) input.classification = updateFields.classification;
|
if (updateFields.classification !== undefined) input.classification = updateFields.classification;
|
||||||
if (updateFields.documentType !== undefined) input.documentType = updateFields.documentType;
|
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 !== '') {
|
if (updateFields.defaultApproverIds !== undefined && updateFields.defaultApproverIds !== '') {
|
||||||
input.defaultApproverIds = updateFields.defaultApproverIds.split(',').map(id => id.trim()).filter(Boolean);
|
input.defaultApproverIds = updateFields.defaultApproverIds.split(',').map(id => id.trim()).filter(Boolean);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ import * as risk from './risk';
|
|||||||
import * as statementOfApplicability from './statementOfApplicability';
|
import * as statementOfApplicability from './statementOfApplicability';
|
||||||
import * as task from './task';
|
import * as task from './task';
|
||||||
import * as tia from './tia';
|
import * as tia from './tia';
|
||||||
import * as trustCenter from './trustCenter';
|
import * as compliancePortal from './compliancePortal';
|
||||||
import * as thirdParty from './thirdParty';
|
import * as thirdParty from './thirdParty';
|
||||||
import * as webhook from './webhook';
|
import * as webhook from './webhook';
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ export const resources: Record<string, ResourceModule> = {
|
|||||||
statementOfApplicability: statementOfApplicability as ResourceModule,
|
statementOfApplicability: statementOfApplicability as ResourceModule,
|
||||||
task: task as ResourceModule,
|
task: task as ResourceModule,
|
||||||
tia: tia as ResourceModule,
|
tia: tia as ResourceModule,
|
||||||
trustCenter: trustCenter as ResourceModule,
|
compliancePortal: compliancePortal as ResourceModule,
|
||||||
thirdParty: thirdParty as ResourceModule,
|
thirdParty: thirdParty as ResourceModule,
|
||||||
webhook: webhook as ResourceModule,
|
webhook: webhook as ResourceModule,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ export async function execute(
|
|||||||
trustPageUrl
|
trustPageUrl
|
||||||
certifications
|
certifications
|
||||||
countries
|
countries
|
||||||
showOnTrustCenter
|
showOnCompliancePortal
|
||||||
level
|
level
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ export async function execute(
|
|||||||
trustPageUrl
|
trustPageUrl
|
||||||
certifications
|
certifications
|
||||||
countries
|
countries
|
||||||
showOnTrustCenter
|
showOnCompliancePortal
|
||||||
${organizationFragment}
|
${organizationFragment}
|
||||||
${businessOwnerFragment}
|
${businessOwnerFragment}
|
||||||
${securityOwnerFragment}
|
${securityOwnerFragment}
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ export async function execute(
|
|||||||
trustPageUrl
|
trustPageUrl
|
||||||
certifications
|
certifications
|
||||||
countries
|
countries
|
||||||
showOnTrustCenter
|
showOnCompliancePortal
|
||||||
level
|
level
|
||||||
ancestors {
|
ancestors {
|
||||||
id
|
id
|
||||||
|
|||||||
@@ -144,8 +144,8 @@ export const description: INodeProperties[] = [
|
|||||||
description: 'The ID of the security owner (People ID)',
|
description: 'The ID of the security owner (People ID)',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Show on Trust Center',
|
displayName: 'Show on Compliance Portal',
|
||||||
name: 'showOnTrustCenter',
|
name: 'showOnCompliancePortal',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
@@ -154,7 +154,7 @@ export const description: INodeProperties[] = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: false,
|
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',
|
displayName: 'Additional Fields',
|
||||||
@@ -255,7 +255,7 @@ export async function execute(
|
|||||||
const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '') as string;
|
const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '') as string;
|
||||||
const businessOwnerId = this.getNodeParameter('businessOwnerId', itemIndex, '') as string;
|
const businessOwnerId = this.getNodeParameter('businessOwnerId', itemIndex, '') as string;
|
||||||
const securityOwnerId = this.getNodeParameter('securityOwnerId', 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 {
|
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {}) as {
|
||||||
statusPageUrl?: string;
|
statusPageUrl?: string;
|
||||||
termsOfServiceUrl?: string;
|
termsOfServiceUrl?: string;
|
||||||
@@ -292,7 +292,7 @@ export async function execute(
|
|||||||
trustPageUrl
|
trustPageUrl
|
||||||
certifications
|
certifications
|
||||||
countries
|
countries
|
||||||
showOnTrustCenter
|
showOnCompliancePortal
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
@@ -309,7 +309,7 @@ export async function execute(
|
|||||||
if (headquarterAddress !== undefined) input.headquarterAddress = headquarterAddress === '' ? null : headquarterAddress;
|
if (headquarterAddress !== undefined) input.headquarterAddress = headquarterAddress === '' ? null : headquarterAddress;
|
||||||
if (businessOwnerId !== undefined) input.businessOwnerId = businessOwnerId === '' ? null : businessOwnerId;
|
if (businessOwnerId !== undefined) input.businessOwnerId = businessOwnerId === '' ? null : businessOwnerId;
|
||||||
if (securityOwnerId !== undefined) input.securityOwnerId = securityOwnerId === '' ? null : securityOwnerId;
|
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.statusPageUrl !== undefined) input.statusPageUrl = additionalFields.statusPageUrl === '' ? null : additionalFields.statusPageUrl;
|
||||||
if (additionalFields.termsOfServiceUrl !== undefined) input.termsOfServiceUrl = additionalFields.termsOfServiceUrl === '' ? null : additionalFields.termsOfServiceUrl;
|
if (additionalFields.termsOfServiceUrl !== undefined) input.termsOfServiceUrl = additionalFields.termsOfServiceUrl === '' ? null : additionalFields.termsOfServiceUrl;
|
||||||
if (additionalFields.privacyPolicyUrl !== undefined) input.privacyPolicyUrl = additionalFields.privacyPolicyUrl === '' ? null : additionalFields.privacyPolicyUrl;
|
if (additionalFields.privacyPolicyUrl !== undefined) input.privacyPolicyUrl = additionalFields.privacyPolicyUrl === '' ? null : additionalFields.privacyPolicyUrl;
|
||||||
|
|||||||
Reference in New Issue
Block a user