Add name to audit

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-08-14 13:42:47 +02:00
parent ee456aaa0f
commit 215e97d9f5
22 changed files with 276 additions and 122 deletions

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<fd92d4fe2e50fc37c5ae6eda9058f650>>
* @generated SignedSource<<a3c134dcea5981e6a45b623ec2905962>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -12,6 +12,7 @@ import { ConcreteRequest } from 'relay-runtime';
export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED";
export type CreateAuditInput = {
frameworkId: string;
name?: string | null | undefined;
organizationId: string;
state?: AuditState | null | undefined;
validFrom?: any | null | undefined;
@@ -31,6 +32,7 @@ export type AuditGraphCreateMutation$data = {
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
readonly report: {
readonly filename: string;
readonly id: string;
@@ -73,6 +75,13 @@ v3 = {
"storageKey": null
},
v4 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"concreteType": "AuditEdge",
@@ -89,6 +98,7 @@ v4 = {
"plural": false,
"selections": [
(v3/*: any*/),
(v4/*: any*/),
{
"alias": null,
"args": null,
@@ -138,13 +148,7 @@ v4 = {
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
}
(v4/*: any*/)
],
"storageKey": null
},
@@ -179,7 +183,7 @@ return {
"name": "createAudit",
"plural": false,
"selections": [
(v4/*: any*/)
(v5/*: any*/)
],
"storageKey": null
}
@@ -204,7 +208,7 @@ return {
"name": "createAudit",
"plural": false,
"selections": [
(v4/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
@@ -227,16 +231,16 @@ return {
]
},
"params": {
"cacheID": "5c941d42e42700b5e06a5a64c861054b",
"cacheID": "04d44dfd419c2cde11b0138ca175203f",
"id": null,
"metadata": {},
"name": "AuditGraphCreateMutation",
"operationKind": "mutation",
"text": "mutation AuditGraphCreateMutation(\n $input: CreateAuditInput!\n) {\n createAudit(input: $input) {\n auditEdge {\n node {\n id\n validFrom\n validUntil\n report {\n id\n filename\n }\n state\n framework {\n id\n name\n }\n createdAt\n }\n }\n }\n}\n"
"text": "mutation AuditGraphCreateMutation(\n $input: CreateAuditInput!\n) {\n createAudit(input: $input) {\n auditEdge {\n node {\n id\n name\n validFrom\n validUntil\n report {\n id\n filename\n }\n state\n framework {\n id\n name\n }\n createdAt\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "231fafa942acf107e2f0187bccc844da";
(node as any).hash = "4d014b16e02353df354085a151ccfe06";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<421ff1807db813d87849e15e60fc958e>>
* @generated SignedSource<<145565eb150c67f2f1b3c70fe6f6e748>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -58,7 +58,14 @@ v4 = [
"name": "first",
"value": 10
}
];
],
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
@@ -137,6 +144,7 @@ return {
"plural": false,
"selections": [
(v3/*: any*/),
(v5/*: any*/),
{
"alias": null,
"args": null,
@@ -186,13 +194,7 @@ return {
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
}
(v5/*: any*/)
],
"storageKey": null
},
@@ -292,12 +294,12 @@ return {
]
},
"params": {
"cacheID": "1c53759e5b25eb390345fee12e536896",
"cacheID": "d96d2332efb5f43e2dcb09669173ad7e",
"id": null,
"metadata": {},
"name": "AuditGraphListQuery",
"operationKind": "query",
"text": "query AuditGraphListQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...AuditsPageFragment\n }\n id\n }\n}\n\nfragment AuditsPageFragment on Organization {\n audits(first: 10) {\n edges {\n node {\n id\n validFrom\n validUntil\n report {\n id\n filename\n }\n state\n framework {\n id\n name\n }\n createdAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n"
"text": "query AuditGraphListQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n ...AuditsPageFragment\n }\n id\n }\n}\n\nfragment AuditsPageFragment on Organization {\n audits(first: 10) {\n edges {\n node {\n id\n name\n validFrom\n validUntil\n report {\n id\n filename\n }\n state\n framework {\n id\n name\n }\n createdAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<597dc89a18faf5837517c12ab6046991>>
* @generated SignedSource<<fc4103e0e8b03c1b6b8ea07c4adcf095>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -21,6 +21,7 @@ export type AuditGraphNodeQuery$data = {
readonly name: string;
};
readonly id?: string;
readonly name?: string | null | undefined;
readonly organization?: {
readonly id: string;
readonly name: string;
@@ -71,24 +72,31 @@ v3 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "validFrom",
"name": "name",
"storageKey": null
},
v4 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "validUntil",
"name": "validFrom",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"name": "validUntil",
"storageKey": null
},
v6 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
v7 = {
"alias": null,
"args": null,
"concreteType": "Report",
@@ -125,55 +133,49 @@ v6 = {
"name": "downloadUrl",
"storageKey": null
},
(v5/*: any*/)
(v6/*: any*/)
],
"storageKey": null
},
v7 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "reportUrl",
"storageKey": null
},
v8 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "reportUrl",
"storageKey": null
},
v9 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "state",
"storageKey": null
},
v9 = [
v10 = [
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
}
(v3/*: any*/)
],
v10 = {
v11 = {
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": (v9/*: any*/),
"selections": (v10/*: any*/),
"storageKey": null
},
v11 = {
v12 = {
"alias": null,
"args": null,
"concreteType": "Organization",
"kind": "LinkedField",
"name": "organization",
"plural": false,
"selections": (v9/*: any*/),
"selections": (v10/*: any*/),
"storageKey": null
},
v12 = {
v13 = {
"alias": null,
"args": null,
"kind": "ScalarField",
@@ -201,13 +203,14 @@ return {
(v2/*: any*/),
(v3/*: any*/),
(v4/*: any*/),
(v6/*: any*/),
(v5/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v10/*: any*/),
(v9/*: any*/),
(v11/*: any*/),
(v5/*: any*/),
(v12/*: any*/)
(v12/*: any*/),
(v6/*: any*/),
(v13/*: any*/)
],
"type": "Audit",
"abstractKey": null
@@ -246,13 +249,14 @@ return {
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v6/*: any*/),
(v5/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v10/*: any*/),
(v9/*: any*/),
(v11/*: any*/),
(v5/*: any*/),
(v12/*: any*/)
(v12/*: any*/),
(v6/*: any*/),
(v13/*: any*/)
],
"type": "Audit",
"abstractKey": null
@@ -263,16 +267,16 @@ return {
]
},
"params": {
"cacheID": "8cab4d1083ea5990e42dbec0b435b7bd",
"cacheID": "eede00ab53ccd396e92b7fe6c1f1c2a2",
"id": null,
"metadata": {},
"name": "AuditGraphNodeQuery",
"operationKind": "query",
"text": "query AuditGraphNodeQuery(\n $auditId: ID!\n) {\n node(id: $auditId) {\n __typename\n ... on Audit {\n id\n validFrom\n validUntil\n report {\n id\n filename\n mimeType\n size\n downloadUrl\n createdAt\n }\n reportUrl\n state\n framework {\n id\n name\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n"
"text": "query AuditGraphNodeQuery(\n $auditId: ID!\n) {\n node(id: $auditId) {\n __typename\n ... on Audit {\n id\n name\n validFrom\n validUntil\n report {\n id\n filename\n mimeType\n size\n downloadUrl\n createdAt\n }\n reportUrl\n state\n framework {\n id\n name\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n"
}
};
})();
(node as any).hash = "3263f3b8f244acf3c982464daa078f7b";
(node as any).hash = "c07896ae39a7d16b42c7ee4216dc28fa";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<d2c542541d5bfda5464af2b34ccae603>>
* @generated SignedSource<<4255866a0c7fe3c9c3416fe2603b5f63>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -12,6 +12,7 @@ import { ConcreteRequest } from 'relay-runtime';
export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED";
export type UpdateAuditInput = {
id: string;
name?: string | null | undefined;
showOnTrustCenter?: boolean | null | undefined;
state?: AuditState | null | undefined;
validFrom?: any | null | undefined;
@@ -28,6 +29,7 @@ export type AuditGraphUpdateMutation$data = {
readonly name: string;
};
readonly id: string;
readonly name: string | null | undefined;
readonly report: {
readonly filename: string;
readonly id: string;
@@ -59,7 +61,14 @@ v1 = {
"name": "id",
"storageKey": null
},
v2 = [
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
v3 = [
{
"alias": null,
"args": [
@@ -83,6 +92,7 @@ v2 = [
"plural": false,
"selections": [
(v1/*: any*/),
(v2/*: any*/),
{
"alias": null,
"args": null,
@@ -132,13 +142,7 @@ v2 = [
"plural": false,
"selections": [
(v1/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
}
(v2/*: any*/)
],
"storageKey": null
},
@@ -162,7 +166,7 @@ return {
"kind": "Fragment",
"metadata": null,
"name": "AuditGraphUpdateMutation",
"selections": (v2/*: any*/),
"selections": (v3/*: any*/),
"type": "Mutation",
"abstractKey": null
},
@@ -171,19 +175,19 @@ return {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "AuditGraphUpdateMutation",
"selections": (v2/*: any*/)
"selections": (v3/*: any*/)
},
"params": {
"cacheID": "afd98ba771c6c437c46c275655333eb6",
"cacheID": "7257cd170b7441f3ce85966556e00ac3",
"id": null,
"metadata": {},
"name": "AuditGraphUpdateMutation",
"operationKind": "mutation",
"text": "mutation AuditGraphUpdateMutation(\n $input: UpdateAuditInput!\n) {\n updateAudit(input: $input) {\n audit {\n id\n validFrom\n validUntil\n report {\n id\n filename\n }\n state\n framework {\n id\n name\n }\n updatedAt\n }\n }\n}\n"
"text": "mutation AuditGraphUpdateMutation(\n $input: UpdateAuditInput!\n) {\n updateAudit(input: $input) {\n audit {\n id\n name\n validFrom\n validUntil\n report {\n id\n filename\n }\n state\n framework {\n id\n name\n }\n updatedAt\n }\n }\n}\n"
}
};
})();
(node as any).hash = "3ddd17832768611675505d76da1839a1";
(node as any).hash = "7fb5d28c8c5fdffddb1c8926e66965ec";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<2a5e6cd48ca8a8fd7fe448c3a6190ccc>>
* @generated SignedSource<<5773d0630d11596682d41b4df95716c3>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -13,6 +13,7 @@ import { FragmentRefs } from "relay-runtime";
export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED";
export type UpdateAuditInput = {
id: string;
name?: string | null | undefined;
showOnTrustCenter?: boolean | null | undefined;
state?: AuditState | null | undefined;
validFrom?: any | null | undefined;
@@ -63,6 +64,13 @@ v3 = {
"kind": "ScalarField",
"name": "showOnTrustCenter",
"storageKey": null
},
v4 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
return {
"fragment": {
@@ -128,6 +136,7 @@ return {
"selections": [
(v2/*: any*/),
(v3/*: any*/),
(v4/*: any*/),
{
"alias": null,
"args": null,
@@ -136,13 +145,7 @@ return {
"name": "framework",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
(v4/*: any*/),
(v2/*: any*/)
],
"storageKey": null
@@ -184,12 +187,12 @@ return {
]
},
"params": {
"cacheID": "9cb78f25506e1a67b5f29d4f742f8773",
"cacheID": "d27b79a065314a22dbcbd8216de1268b",
"id": null,
"metadata": {},
"name": "TrustCenterAuditGraphUpdateMutation",
"operationKind": "mutation",
"text": "mutation TrustCenterAuditGraphUpdateMutation(\n $input: UpdateAuditInput!\n) {\n updateAudit(input: $input) {\n audit {\n id\n showOnTrustCenter\n ...TrustCenterAuditsCardFragment\n }\n }\n}\n\nfragment TrustCenterAuditsCardFragment on Audit {\n id\n framework {\n name\n id\n }\n validFrom\n validUntil\n state\n showOnTrustCenter\n createdAt\n}\n"
"text": "mutation TrustCenterAuditGraphUpdateMutation(\n $input: UpdateAuditInput!\n) {\n updateAudit(input: $input) {\n audit {\n id\n showOnTrustCenter\n ...TrustCenterAuditsCardFragment\n }\n }\n}\n\nfragment TrustCenterAuditsCardFragment on Audit {\n id\n name\n framework {\n name\n id\n }\n validFrom\n validUntil\n state\n showOnTrustCenter\n createdAt\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<46a922efef96e5c7d015bd0f27467bf3>>
* @generated SignedSource<<25550a93c5459c3b405c782be19ac888>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -437,6 +437,7 @@ return {
"plural": false,
"selections": [
(v2/*: any*/),
(v3/*: any*/),
{
"alias": null,
"args": null,
@@ -543,12 +544,12 @@ return {
]
},
"params": {
"cacheID": "a22d734ee326d24f3f67ffecf4653b2f",
"cacheID": "28c1a32327e2fee9320fd091100ec800",
"id": null,
"metadata": {},
"name": "TrustCenterGraphQuery",
"operationKind": "query",
"text": "query TrustCenterGraphQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n name\n trustCenter {\n id\n active\n slug\n createdAt\n updatedAt\n }\n documents(first: 100) {\n edges {\n node {\n id\n ...TrustCenterDocumentsCardFragment\n }\n }\n }\n audits(first: 100) {\n edges {\n node {\n id\n ...TrustCenterAuditsCardFragment\n }\n }\n }\n vendors(first: 100) {\n edges {\n node {\n id\n ...TrustCenterVendorsCardFragment\n }\n }\n }\n }\n id\n }\n}\n\nfragment TrustCenterAuditsCardFragment on Audit {\n id\n framework {\n name\n id\n }\n validFrom\n validUntil\n state\n showOnTrustCenter\n createdAt\n}\n\nfragment TrustCenterDocumentsCardFragment on Document {\n id\n title\n createdAt\n documentType\n showOnTrustCenter\n versions(first: 1) {\n edges {\n node {\n id\n status\n }\n }\n }\n}\n\nfragment TrustCenterVendorsCardFragment on Vendor {\n id\n name\n category\n description\n showOnTrustCenter\n createdAt\n}\n"
"text": "query TrustCenterGraphQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n name\n trustCenter {\n id\n active\n slug\n createdAt\n updatedAt\n }\n documents(first: 100) {\n edges {\n node {\n id\n ...TrustCenterDocumentsCardFragment\n }\n }\n }\n audits(first: 100) {\n edges {\n node {\n id\n ...TrustCenterAuditsCardFragment\n }\n }\n }\n vendors(first: 100) {\n edges {\n node {\n id\n ...TrustCenterVendorsCardFragment\n }\n }\n }\n }\n id\n }\n}\n\nfragment TrustCenterAuditsCardFragment on Audit {\n id\n name\n framework {\n name\n id\n }\n validFrom\n validUntil\n state\n showOnTrustCenter\n createdAt\n}\n\nfragment TrustCenterDocumentsCardFragment on Document {\n id\n title\n createdAt\n documentType\n showOnTrustCenter\n versions(first: 1) {\n edges {\n node {\n id\n status\n }\n }\n }\n}\n\nfragment TrustCenterVendorsCardFragment on Vendor {\n id\n name\n category\n description\n showOnTrustCenter\n createdAt\n}\n"
}
};
})();