Rename Vendor → Subprocessor, VendorConnection → SubprocessorConnection, and VendorEdge → SubprocessorEdge across the GraphQL schema, Go resolvers, and React frontend components. Internal coredata types remain unchanged. User-facing labels in console app updated to reflect terminology change. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
119 lines
2.2 KiB
TypeScript
119 lines
2.2 KiB
TypeScript
import { graphql } from "relay-runtime";
|
|
|
|
/* eslint-disable relay/unused-fields, relay/must-colocate-fragment-spreads */
|
|
|
|
// Queries for custom domain (subdomain) approach
|
|
export const currentTrustGraphQuery = graphql`
|
|
query TrustGraphCurrentQuery {
|
|
viewer {
|
|
id
|
|
}
|
|
currentTrustCenter @required(action: THROW) {
|
|
id
|
|
slug
|
|
viewerSubscription {
|
|
id
|
|
email
|
|
createdAt
|
|
updatedAt
|
|
}
|
|
logoFileUrl
|
|
darkLogoFileUrl
|
|
nonDisclosureAgreement {
|
|
fileName
|
|
fileUrl
|
|
viewerSignature {
|
|
status
|
|
}
|
|
}
|
|
organization {
|
|
name
|
|
description
|
|
websiteUrl
|
|
email
|
|
headquarterAddress
|
|
}
|
|
externalUrls(first: 20) {
|
|
edges {
|
|
node {
|
|
id
|
|
name
|
|
url
|
|
}
|
|
}
|
|
}
|
|
...OverviewPageFragment
|
|
subprocessorInfo: subprocessors(first: 0) {
|
|
totalCount
|
|
}
|
|
audits(first: 50) {
|
|
edges {
|
|
node {
|
|
id
|
|
...AuditRowFragment
|
|
}
|
|
}
|
|
}
|
|
complianceFrameworks(first: 50) {
|
|
edges {
|
|
node {
|
|
id
|
|
framework {
|
|
...FrameworkBadgeFragment
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const currentTrustDocumentsQuery = graphql`
|
|
query TrustGraphCurrentDocumentsQuery {
|
|
currentTrustCenter {
|
|
id
|
|
organization {
|
|
name
|
|
}
|
|
documents(first: 50) {
|
|
edges {
|
|
node {
|
|
id
|
|
documentType
|
|
...DocumentRowFragment
|
|
}
|
|
}
|
|
}
|
|
trustCenterFiles(first: 50) {
|
|
edges {
|
|
node {
|
|
id
|
|
category
|
|
...TrustCenterFileRowFragment
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const currentTrustSubprocessorsQuery = graphql`
|
|
query TrustGraphCurrentSubprocessorsQuery {
|
|
currentTrustCenter {
|
|
id
|
|
organization {
|
|
name
|
|
}
|
|
subprocessors(first: 50) {
|
|
edges {
|
|
node {
|
|
id
|
|
countries
|
|
...SubprocessorRowFragment
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|