Add processing activity registries

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-08-27 16:18:18 +02:00
parent bb68af1d3c
commit 199de3bdb0
32 changed files with 9702 additions and 306 deletions

View File

@@ -0,0 +1,269 @@
import { graphql } from "relay-runtime";
import { useMutation } from "react-relay";
import { useConfirm } from "@probo/ui";
import { useTranslate } from "@probo/i18n";
import { promisifyMutation, sprintf } from "@probo/helpers";
import { useMutationWithToasts } from "../useMutationWithToasts";
export const ProcessingActivityRegistriesConnectionKey = "ProcessingActivityRegistriesPage_processingActivityRegistries";
export const processingActivityRegistriesQuery = graphql`
query ProcessingActivityRegistryGraphListQuery($organizationId: ID!) {
node(id: $organizationId) {
... on Organization {
...ProcessingActivityRegistriesPageFragment
}
}
}
`;
export const processingActivityRegistryNodeQuery = graphql`
query ProcessingActivityRegistryGraphNodeQuery($processingActivityRegistryId: ID!) {
node(id: $processingActivityRegistryId) {
... on ProcessingActivityRegistry {
id
name
purpose
dataSubjectCategory
personalDataCategory
specialOrCriminalData
consentEvidenceLink
lawfulBasis
recipients
location
internationalTransfers
transferSafeguards
retentionPeriod
securityMeasures
dataProtectionImpactAssessment
transferImpactAssessment
audit {
id
name
framework {
id
name
}
}
organization {
id
name
}
createdAt
updatedAt
}
}
}
`;
export const createProcessingActivityRegistryMutation = graphql`
mutation ProcessingActivityRegistryGraphCreateMutation(
$input: CreateProcessingActivityRegistryInput!
$connections: [ID!]!
) {
createProcessingActivityRegistry(input: $input) {
processingActivityRegistryEdge @prependEdge(connections: $connections) {
node {
id
name
purpose
dataSubjectCategory
personalDataCategory
specialOrCriminalData
consentEvidenceLink
lawfulBasis
recipients
location
internationalTransfers
transferSafeguards
retentionPeriod
securityMeasures
dataProtectionImpactAssessment
transferImpactAssessment
audit {
id
name
framework {
name
}
}
createdAt
}
}
}
}
`;
export const updateProcessingActivityRegistryMutation = graphql`
mutation ProcessingActivityRegistryGraphUpdateMutation($input: UpdateProcessingActivityRegistryInput!) {
updateProcessingActivityRegistry(input: $input) {
processingActivityRegistry {
id
name
purpose
dataSubjectCategory
personalDataCategory
specialOrCriminalData
consentEvidenceLink
lawfulBasis
recipients
location
internationalTransfers
transferSafeguards
retentionPeriod
securityMeasures
dataProtectionImpactAssessment
transferImpactAssessment
audit {
id
name
framework {
id
name
}
}
updatedAt
}
}
}
`;
export const deleteProcessingActivityRegistryMutation = graphql`
mutation ProcessingActivityRegistryGraphDeleteMutation(
$input: DeleteProcessingActivityRegistryInput!
$connections: [ID!]!
) {
deleteProcessingActivityRegistry(input: $input) {
deletedProcessingActivityRegistryId @deleteEdge(connections: $connections)
}
}
`;
export const useDeleteProcessingActivityRegistry = (
registry: { id: string; name: string },
connectionId: string
) => {
const { __ } = useTranslate();
const [mutate] = useMutationWithToasts(deleteProcessingActivityRegistryMutation, {
successMessage: __("Processing activity registry entry deleted successfully"),
errorMessage: __("Failed to delete processing activity registry entry"),
});
const confirm = useConfirm();
return () => {
confirm(
() =>
mutate({
variables: {
input: {
processingActivityRegistryId: registry.id,
},
connections: [connectionId],
},
}),
{
message: sprintf(
__(
"This will permanently delete the processing activity registry entry %s. This action cannot be undone."
),
registry.name
),
}
);
};
};
export const useCreateProcessingActivityRegistry = (connectionId?: string) => {
const [mutate] = useMutation(createProcessingActivityRegistryMutation);
const { __ } = useTranslate();
return (input: {
organizationId: string;
auditId: string;
name: string;
purpose?: string;
dataSubjectCategory?: string;
personalDataCategory?: string;
specialOrCriminalData?: string;
consentEvidenceLink?: string;
lawfulBasis?: string;
recipients?: string;
location?: string;
internationalTransfers: boolean;
transferSafeguards?: string;
retentionPeriod?: string;
securityMeasures?: string;
dataProtectionImpactAssessment?: string;
transferImpactAssessment?: string;
}) => {
if (!input.organizationId) {
return alert(__("Failed to create processing activity registry entry: organization is required"));
}
if (!input.name) {
return alert(__("Failed to create processing activity registry entry: name is required"));
}
if (!input.auditId) {
return alert(__("Failed to create processing activity registry entry: audit is required"));
}
return promisifyMutation(mutate)({
variables: {
input: {
organizationId: input.organizationId,
auditId: input.auditId,
name: input.name,
purpose: input.purpose,
dataSubjectCategory: input.dataSubjectCategory,
personalDataCategory: input.personalDataCategory,
specialOrCriminalData: input.specialOrCriminalData,
consentEvidenceLink: input.consentEvidenceLink,
lawfulBasis: input.lawfulBasis,
recipients: input.recipients,
location: input.location,
internationalTransfers: input.internationalTransfers,
transferSafeguards: input.transferSafeguards,
retentionPeriod: input.retentionPeriod,
securityMeasures: input.securityMeasures,
dataProtectionImpactAssessment: input.dataProtectionImpactAssessment,
transferImpactAssessment: input.transferImpactAssessment,
},
connections: connectionId ? [connectionId] : [],
},
});
};
};
export const useUpdateProcessingActivityRegistry = () => {
const [mutate] = useMutation(updateProcessingActivityRegistryMutation);
const { __ } = useTranslate();
return (input: {
id: string;
auditId?: string;
name?: string;
purpose?: string;
dataSubjectCategory?: string;
personalDataCategory?: string;
specialOrCriminalData?: string;
consentEvidenceLink?: string;
lawfulBasis?: string;
recipients?: string;
location?: string;
internationalTransfers?: boolean;
transferSafeguards?: string;
retentionPeriod?: string;
securityMeasures?: string;
dataProtectionImpactAssessment?: string;
transferImpactAssessment?: string;
}) => {
if (!input.id) {
return alert(__("Failed to update processing activity registry entry: registry ID is required"));
}
return promisifyMutation(mutate)({
variables: {
input,
},
});
};
};

View File

@@ -0,0 +1,419 @@
/**
* @generated SignedSource<<8372cc0960f7642aa8619dbc091dc4de>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type ProcessingActivityRegistryDataProtectionImpactAssessment = "NEEDED" | "NOT_NEEDED";
export type ProcessingActivityRegistryLawfulBasis = "CONSENT" | "CONTRACTUAL_NECESSITY" | "LEGAL_OBLIGATION" | "LEGITIMATE_INTEREST" | "PUBLIC_TASK" | "VITAL_INTERESTS";
export type ProcessingActivityRegistrySpecialOrCriminalData = "NO" | "POSSIBLE" | "YES";
export type ProcessingActivityRegistryTransferImpactAssessment = "NEEDED" | "NOT_NEEDED";
export type ProcessingActivityRegistryTransferSafeguards = "ADEQUACY_DECISION" | "BINDING_CORPORATE_RULES" | "CERTIFICATION_MECHANISMS" | "CODES_OF_CONDUCT" | "DEROGATIONS" | "STANDARD_CONTRACTUAL_CLAUSES";
export type CreateProcessingActivityRegistryInput = {
auditId: string;
consentEvidenceLink?: string | null | undefined;
dataProtectionImpactAssessment: ProcessingActivityRegistryDataProtectionImpactAssessment;
dataSubjectCategory?: string | null | undefined;
internationalTransfers: boolean;
lawfulBasis: ProcessingActivityRegistryLawfulBasis;
location?: string | null | undefined;
name: string;
organizationId: string;
personalDataCategory?: string | null | undefined;
purpose?: string | null | undefined;
recipients?: string | null | undefined;
retentionPeriod?: string | null | undefined;
securityMeasures?: string | null | undefined;
specialOrCriminalData: ProcessingActivityRegistrySpecialOrCriminalData;
transferImpactAssessment: ProcessingActivityRegistryTransferImpactAssessment;
transferSafeguards: ProcessingActivityRegistryTransferSafeguards;
};
export type ProcessingActivityRegistryGraphCreateMutation$variables = {
connections: ReadonlyArray<string>;
input: CreateProcessingActivityRegistryInput;
};
export type ProcessingActivityRegistryGraphCreateMutation$data = {
readonly createProcessingActivityRegistry: {
readonly processingActivityRegistryEdge: {
readonly node: {
readonly audit: {
readonly framework: {
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly consentEvidenceLink: string | null | undefined;
readonly createdAt: any;
readonly dataProtectionImpactAssessment: ProcessingActivityRegistryDataProtectionImpactAssessment;
readonly dataSubjectCategory: string | null | undefined;
readonly id: string;
readonly internationalTransfers: boolean;
readonly lawfulBasis: ProcessingActivityRegistryLawfulBasis;
readonly location: string | null | undefined;
readonly name: string;
readonly personalDataCategory: string | null | undefined;
readonly purpose: string | null | undefined;
readonly recipients: string | null | undefined;
readonly retentionPeriod: string | null | undefined;
readonly securityMeasures: string | null | undefined;
readonly specialOrCriminalData: ProcessingActivityRegistrySpecialOrCriminalData;
readonly transferImpactAssessment: ProcessingActivityRegistryTransferImpactAssessment;
readonly transferSafeguards: ProcessingActivityRegistryTransferSafeguards;
};
};
};
};
export type ProcessingActivityRegistryGraphCreateMutation = {
response: ProcessingActivityRegistryGraphCreateMutation$data;
variables: ProcessingActivityRegistryGraphCreateMutation$variables;
};
const node: ConcreteRequest = (function(){
var v0 = {
"defaultValue": null,
"kind": "LocalArgument",
"name": "connections"
},
v1 = {
"defaultValue": null,
"kind": "LocalArgument",
"name": "input"
},
v2 = [
{
"kind": "Variable",
"name": "input",
"variableName": "input"
}
],
v3 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v4 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "purpose",
"storageKey": null
},
v6 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dataSubjectCategory",
"storageKey": null
},
v7 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "personalDataCategory",
"storageKey": null
},
v8 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "specialOrCriminalData",
"storageKey": null
},
v9 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "consentEvidenceLink",
"storageKey": null
},
v10 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lawfulBasis",
"storageKey": null
},
v11 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "recipients",
"storageKey": null
},
v12 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "location",
"storageKey": null
},
v13 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "internationalTransfers",
"storageKey": null
},
v14 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "transferSafeguards",
"storageKey": null
},
v15 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "retentionPeriod",
"storageKey": null
},
v16 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "securityMeasures",
"storageKey": null
},
v17 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dataProtectionImpactAssessment",
"storageKey": null
},
v18 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "transferImpactAssessment",
"storageKey": null
},
v19 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
};
return {
"fragment": {
"argumentDefinitions": [
(v0/*: any*/),
(v1/*: any*/)
],
"kind": "Fragment",
"metadata": null,
"name": "ProcessingActivityRegistryGraphCreateMutation",
"selections": [
{
"alias": null,
"args": (v2/*: any*/),
"concreteType": "CreateProcessingActivityRegistryPayload",
"kind": "LinkedField",
"name": "createProcessingActivityRegistry",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistryEdge",
"kind": "LinkedField",
"name": "processingActivityRegistryEdge",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/),
(v16/*: any*/),
(v17/*: any*/),
(v18/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v4/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
(v19/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
],
"type": "Mutation",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": [
(v1/*: any*/),
(v0/*: any*/)
],
"kind": "Operation",
"name": "ProcessingActivityRegistryGraphCreateMutation",
"selections": [
{
"alias": null,
"args": (v2/*: any*/),
"concreteType": "CreateProcessingActivityRegistryPayload",
"kind": "LinkedField",
"name": "createProcessingActivityRegistry",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistryEdge",
"kind": "LinkedField",
"name": "processingActivityRegistryEdge",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/),
(v16/*: any*/),
(v17/*: any*/),
(v18/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v4/*: any*/),
(v3/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
(v19/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"filters": null,
"handle": "prependEdge",
"key": "",
"kind": "LinkedHandle",
"name": "processingActivityRegistryEdge",
"handleArgs": [
{
"kind": "Variable",
"name": "connections",
"variableName": "connections"
}
]
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "9942999c0282d64a6250774f8a26f1f9",
"id": null,
"metadata": {},
"name": "ProcessingActivityRegistryGraphCreateMutation",
"operationKind": "mutation",
"text": "mutation ProcessingActivityRegistryGraphCreateMutation(\n $input: CreateProcessingActivityRegistryInput!\n) {\n createProcessingActivityRegistry(input: $input) {\n processingActivityRegistryEdge {\n node {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessment\n transferImpactAssessment\n audit {\n id\n name\n framework {\n name\n id\n }\n }\n createdAt\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "7563c6519bb6f538e3c211322a5a638f";
export default node;

View File

@@ -0,0 +1,132 @@
/**
* @generated SignedSource<<11633889a4d61df894b88dd483687cf9>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type DeleteProcessingActivityRegistryInput = {
processingActivityRegistryId: string;
};
export type ProcessingActivityRegistryGraphDeleteMutation$variables = {
connections: ReadonlyArray<string>;
input: DeleteProcessingActivityRegistryInput;
};
export type ProcessingActivityRegistryGraphDeleteMutation$data = {
readonly deleteProcessingActivityRegistry: {
readonly deletedProcessingActivityRegistryId: string;
};
};
export type ProcessingActivityRegistryGraphDeleteMutation = {
response: ProcessingActivityRegistryGraphDeleteMutation$data;
variables: ProcessingActivityRegistryGraphDeleteMutation$variables;
};
const node: ConcreteRequest = (function(){
var v0 = {
"defaultValue": null,
"kind": "LocalArgument",
"name": "connections"
},
v1 = {
"defaultValue": null,
"kind": "LocalArgument",
"name": "input"
},
v2 = [
{
"kind": "Variable",
"name": "input",
"variableName": "input"
}
],
v3 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "deletedProcessingActivityRegistryId",
"storageKey": null
};
return {
"fragment": {
"argumentDefinitions": [
(v0/*: any*/),
(v1/*: any*/)
],
"kind": "Fragment",
"metadata": null,
"name": "ProcessingActivityRegistryGraphDeleteMutation",
"selections": [
{
"alias": null,
"args": (v2/*: any*/),
"concreteType": "DeleteProcessingActivityRegistryPayload",
"kind": "LinkedField",
"name": "deleteProcessingActivityRegistry",
"plural": false,
"selections": [
(v3/*: any*/)
],
"storageKey": null
}
],
"type": "Mutation",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": [
(v1/*: any*/),
(v0/*: any*/)
],
"kind": "Operation",
"name": "ProcessingActivityRegistryGraphDeleteMutation",
"selections": [
{
"alias": null,
"args": (v2/*: any*/),
"concreteType": "DeleteProcessingActivityRegistryPayload",
"kind": "LinkedField",
"name": "deleteProcessingActivityRegistry",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"filters": null,
"handle": "deleteEdge",
"key": "",
"kind": "ScalarHandle",
"name": "deletedProcessingActivityRegistryId",
"handleArgs": [
{
"kind": "Variable",
"name": "connections",
"variableName": "connections"
}
]
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "7550d138c9636bbe930a5cdad260156b",
"id": null,
"metadata": {},
"name": "ProcessingActivityRegistryGraphDeleteMutation",
"operationKind": "mutation",
"text": "mutation ProcessingActivityRegistryGraphDeleteMutation(\n $input: DeleteProcessingActivityRegistryInput!\n) {\n deleteProcessingActivityRegistry(input: $input) {\n deletedProcessingActivityRegistryId\n }\n}\n"
}
};
})();
(node as any).hash = "8492e778e152e5910ee4c09c34ea4e68";
export default node;

View File

@@ -0,0 +1,322 @@
/**
* @generated SignedSource<<44f708dc14c5476a3b7c8cf751aca32f>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
import { FragmentRefs } from "relay-runtime";
export type ProcessingActivityRegistryGraphListQuery$variables = {
organizationId: string;
};
export type ProcessingActivityRegistryGraphListQuery$data = {
readonly node: {
readonly " $fragmentSpreads": FragmentRefs<"ProcessingActivityRegistriesPageFragment">;
};
};
export type ProcessingActivityRegistryGraphListQuery = {
response: ProcessingActivityRegistryGraphListQuery$data;
variables: ProcessingActivityRegistryGraphListQuery$variables;
};
const node: ConcreteRequest = (function(){
var v0 = [
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "organizationId"
}
],
v1 = [
{
"kind": "Variable",
"name": "id",
"variableName": "organizationId"
}
],
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
},
v3 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v4 = [
{
"kind": "Literal",
"name": "first",
"value": 10
}
],
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Fragment",
"metadata": null,
"name": "ProcessingActivityRegistryGraphListQuery",
"selections": [
{
"alias": null,
"args": (v1/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"kind": "InlineFragment",
"selections": [
{
"args": null,
"kind": "FragmentSpread",
"name": "ProcessingActivityRegistriesPageFragment"
}
],
"type": "Organization",
"abstractKey": null
}
],
"storageKey": null
}
],
"type": "Query",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "ProcessingActivityRegistryGraphListQuery",
"selections": [
{
"alias": null,
"args": (v1/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v2/*: any*/),
(v3/*: any*/),
{
"kind": "InlineFragment",
"selections": [
{
"alias": null,
"args": (v4/*: any*/),
"concreteType": "ProcessingActivityRegistryConnection",
"kind": "LinkedField",
"name": "processingActivityRegistries",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "totalCount",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistryEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistry",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "purpose",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dataSubjectCategory",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "personalDataCategory",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lawfulBasis",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "location",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "internationalTransfers",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "updatedAt",
"storageKey": null
},
(v2/*: any*/)
],
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "cursor",
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "PageInfo",
"kind": "LinkedField",
"name": "pageInfo",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "hasNextPage",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "endCursor",
"storageKey": null
}
],
"storageKey": null
},
{
"kind": "ClientExtension",
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__id",
"storageKey": null
}
]
}
],
"storageKey": "processingActivityRegistries(first:10)"
},
{
"alias": null,
"args": (v4/*: any*/),
"filters": null,
"handle": "connection",
"key": "ProcessingActivityRegistriesPage_processingActivityRegistries",
"kind": "LinkedHandle",
"name": "processingActivityRegistries"
}
],
"type": "Organization",
"abstractKey": null
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "b5b5c645e407c2bfb68aaa717b7d2ae7",
"id": null,
"metadata": {},
"name": "ProcessingActivityRegistryGraphListQuery",
"operationKind": "query",
"text": "query ProcessingActivityRegistryGraphListQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...ProcessingActivityRegistriesPageFragment\n }\n id\n }\n}\n\nfragment ProcessingActivityRegistriesPageFragment on Organization {\n id\n processingActivityRegistries(first: 10) {\n totalCount\n edges {\n node {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n lawfulBasis\n location\n internationalTransfers\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n"
}
};
})();
(node as any).hash = "c4a1ee426fd64c8605134d80ee873b62";
export default node;

View File

@@ -0,0 +1,352 @@
/**
* @generated SignedSource<<681e1d8f8073e0efd781bdf322b893ab>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type ProcessingActivityRegistryDataProtectionImpactAssessment = "NEEDED" | "NOT_NEEDED";
export type ProcessingActivityRegistryLawfulBasis = "CONSENT" | "CONTRACTUAL_NECESSITY" | "LEGAL_OBLIGATION" | "LEGITIMATE_INTEREST" | "PUBLIC_TASK" | "VITAL_INTERESTS";
export type ProcessingActivityRegistrySpecialOrCriminalData = "NO" | "POSSIBLE" | "YES";
export type ProcessingActivityRegistryTransferImpactAssessment = "NEEDED" | "NOT_NEEDED";
export type ProcessingActivityRegistryTransferSafeguards = "ADEQUACY_DECISION" | "BINDING_CORPORATE_RULES" | "CERTIFICATION_MECHANISMS" | "CODES_OF_CONDUCT" | "DEROGATIONS" | "STANDARD_CONTRACTUAL_CLAUSES";
export type ProcessingActivityRegistryGraphNodeQuery$variables = {
processingActivityRegistryId: string;
};
export type ProcessingActivityRegistryGraphNodeQuery$data = {
readonly node: {
readonly audit?: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly consentEvidenceLink?: string | null | undefined;
readonly createdAt?: any;
readonly dataProtectionImpactAssessment?: ProcessingActivityRegistryDataProtectionImpactAssessment;
readonly dataSubjectCategory?: string | null | undefined;
readonly id?: string;
readonly internationalTransfers?: boolean;
readonly lawfulBasis?: ProcessingActivityRegistryLawfulBasis;
readonly location?: string | null | undefined;
readonly name?: string;
readonly organization?: {
readonly id: string;
readonly name: string;
};
readonly personalDataCategory?: string | null | undefined;
readonly purpose?: string | null | undefined;
readonly recipients?: string | null | undefined;
readonly retentionPeriod?: string | null | undefined;
readonly securityMeasures?: string | null | undefined;
readonly specialOrCriminalData?: ProcessingActivityRegistrySpecialOrCriminalData;
readonly transferImpactAssessment?: ProcessingActivityRegistryTransferImpactAssessment;
readonly transferSafeguards?: ProcessingActivityRegistryTransferSafeguards;
readonly updatedAt?: any;
};
};
export type ProcessingActivityRegistryGraphNodeQuery = {
response: ProcessingActivityRegistryGraphNodeQuery$data;
variables: ProcessingActivityRegistryGraphNodeQuery$variables;
};
const node: ConcreteRequest = (function(){
var v0 = [
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "processingActivityRegistryId"
}
],
v1 = [
{
"kind": "Variable",
"name": "id",
"variableName": "processingActivityRegistryId"
}
],
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v3 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v4 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "purpose",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dataSubjectCategory",
"storageKey": null
},
v6 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "personalDataCategory",
"storageKey": null
},
v7 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "specialOrCriminalData",
"storageKey": null
},
v8 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "consentEvidenceLink",
"storageKey": null
},
v9 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lawfulBasis",
"storageKey": null
},
v10 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "recipients",
"storageKey": null
},
v11 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "location",
"storageKey": null
},
v12 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "internationalTransfers",
"storageKey": null
},
v13 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "transferSafeguards",
"storageKey": null
},
v14 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "retentionPeriod",
"storageKey": null
},
v15 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "securityMeasures",
"storageKey": null
},
v16 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dataProtectionImpactAssessment",
"storageKey": null
},
v17 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "transferImpactAssessment",
"storageKey": null
},
v18 = [
(v2/*: any*/),
(v3/*: any*/)
],
v19 = {
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v2/*: any*/),
(v3/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": (v18/*: any*/),
"storageKey": null
}
],
"storageKey": null
},
v20 = {
"alias": null,
"args": null,
"concreteType": "Organization",
"kind": "LinkedField",
"name": "organization",
"plural": false,
"selections": (v18/*: any*/),
"storageKey": null
},
v21 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
v22 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "updatedAt",
"storageKey": null
};
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Fragment",
"metadata": null,
"name": "ProcessingActivityRegistryGraphNodeQuery",
"selections": [
{
"alias": null,
"args": (v1/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"kind": "InlineFragment",
"selections": [
(v2/*: any*/),
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/),
(v16/*: any*/),
(v17/*: any*/),
(v19/*: any*/),
(v20/*: any*/),
(v21/*: any*/),
(v22/*: any*/)
],
"type": "ProcessingActivityRegistry",
"abstractKey": null
}
],
"storageKey": null
}
],
"type": "Query",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "ProcessingActivityRegistryGraphNodeQuery",
"selections": [
{
"alias": null,
"args": (v1/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
},
(v2/*: any*/),
{
"kind": "InlineFragment",
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/),
(v16/*: any*/),
(v17/*: any*/),
(v19/*: any*/),
(v20/*: any*/),
(v21/*: any*/),
(v22/*: any*/)
],
"type": "ProcessingActivityRegistry",
"abstractKey": null
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "74eed9b882f3bf3b11af0c15f65ef870",
"id": null,
"metadata": {},
"name": "ProcessingActivityRegistryGraphNodeQuery",
"operationKind": "query",
"text": "query ProcessingActivityRegistryGraphNodeQuery(\n $processingActivityRegistryId: ID!\n) {\n node(id: $processingActivityRegistryId) {\n __typename\n ... on ProcessingActivityRegistry {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessment\n transferImpactAssessment\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n"
}
};
})();
(node as any).hash = "979f4b05c845c90dd6359d24821e44fd";
export default node;

View File

@@ -0,0 +1,290 @@
/**
* @generated SignedSource<<945fa4ed1c5bab25f39047b601307e03>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type ProcessingActivityRegistryDataProtectionImpactAssessment = "NEEDED" | "NOT_NEEDED";
export type ProcessingActivityRegistryLawfulBasis = "CONSENT" | "CONTRACTUAL_NECESSITY" | "LEGAL_OBLIGATION" | "LEGITIMATE_INTEREST" | "PUBLIC_TASK" | "VITAL_INTERESTS";
export type ProcessingActivityRegistrySpecialOrCriminalData = "NO" | "POSSIBLE" | "YES";
export type ProcessingActivityRegistryTransferImpactAssessment = "NEEDED" | "NOT_NEEDED";
export type ProcessingActivityRegistryTransferSafeguards = "ADEQUACY_DECISION" | "BINDING_CORPORATE_RULES" | "CERTIFICATION_MECHANISMS" | "CODES_OF_CONDUCT" | "DEROGATIONS" | "STANDARD_CONTRACTUAL_CLAUSES";
export type UpdateProcessingActivityRegistryInput = {
auditId?: string | null | undefined;
consentEvidenceLink?: string | null | undefined;
dataProtectionImpactAssessment?: ProcessingActivityRegistryDataProtectionImpactAssessment | null | undefined;
dataSubjectCategory?: string | null | undefined;
id: string;
internationalTransfers?: boolean | null | undefined;
lawfulBasis?: ProcessingActivityRegistryLawfulBasis | null | undefined;
location?: string | null | undefined;
name?: string | null | undefined;
personalDataCategory?: string | null | undefined;
purpose?: string | null | undefined;
recipients?: string | null | undefined;
retentionPeriod?: string | null | undefined;
securityMeasures?: string | null | undefined;
specialOrCriminalData?: ProcessingActivityRegistrySpecialOrCriminalData | null | undefined;
transferImpactAssessment?: ProcessingActivityRegistryTransferImpactAssessment | null | undefined;
transferSafeguards?: ProcessingActivityRegistryTransferSafeguards | null | undefined;
};
export type ProcessingActivityRegistryGraphUpdateMutation$variables = {
input: UpdateProcessingActivityRegistryInput;
};
export type ProcessingActivityRegistryGraphUpdateMutation$data = {
readonly updateProcessingActivityRegistry: {
readonly processingActivityRegistry: {
readonly audit: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
};
readonly consentEvidenceLink: string | null | undefined;
readonly dataProtectionImpactAssessment: ProcessingActivityRegistryDataProtectionImpactAssessment;
readonly dataSubjectCategory: string | null | undefined;
readonly id: string;
readonly internationalTransfers: boolean;
readonly lawfulBasis: ProcessingActivityRegistryLawfulBasis;
readonly location: string | null | undefined;
readonly name: string;
readonly personalDataCategory: string | null | undefined;
readonly purpose: string | null | undefined;
readonly recipients: string | null | undefined;
readonly retentionPeriod: string | null | undefined;
readonly securityMeasures: string | null | undefined;
readonly specialOrCriminalData: ProcessingActivityRegistrySpecialOrCriminalData;
readonly transferImpactAssessment: ProcessingActivityRegistryTransferImpactAssessment;
readonly transferSafeguards: ProcessingActivityRegistryTransferSafeguards;
readonly updatedAt: any;
};
};
};
export type ProcessingActivityRegistryGraphUpdateMutation = {
response: ProcessingActivityRegistryGraphUpdateMutation$data;
variables: ProcessingActivityRegistryGraphUpdateMutation$variables;
};
const node: ConcreteRequest = (function(){
var v0 = [
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "input"
}
],
v1 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v3 = [
{
"alias": null,
"args": [
{
"kind": "Variable",
"name": "input",
"variableName": "input"
}
],
"concreteType": "UpdateProcessingActivityRegistryPayload",
"kind": "LinkedField",
"name": "updateProcessingActivityRegistry",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ProcessingActivityRegistry",
"kind": "LinkedField",
"name": "processingActivityRegistry",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "purpose",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dataSubjectCategory",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "personalDataCategory",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "specialOrCriminalData",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "consentEvidenceLink",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lawfulBasis",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "recipients",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "location",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "internationalTransfers",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "transferSafeguards",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "retentionPeriod",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "securityMeasures",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dataProtectionImpactAssessment",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "transferImpactAssessment",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "audit",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "updatedAt",
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
];
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Fragment",
"metadata": null,
"name": "ProcessingActivityRegistryGraphUpdateMutation",
"selections": (v3/*: any*/),
"type": "Mutation",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "ProcessingActivityRegistryGraphUpdateMutation",
"selections": (v3/*: any*/)
},
"params": {
"cacheID": "40f01e772e5377add784e6c455b173a9",
"id": null,
"metadata": {},
"name": "ProcessingActivityRegistryGraphUpdateMutation",
"operationKind": "mutation",
"text": "mutation ProcessingActivityRegistryGraphUpdateMutation(\n $input: UpdateProcessingActivityRegistryInput!\n) {\n updateProcessingActivityRegistry(input: $input) {\n processingActivityRegistry {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessment\n transferImpactAssessment\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n updatedAt\n }\n }\n}\n"
}
};
})();
(node as any).hash = "0833d096c755275a5255d98276922c04";
export default node;