diff --git a/apps/console/src/pages/HomePage.tsx b/apps/console/src/pages/HomePage.tsx index dc5f21055..0ab652f6e 100644 --- a/apps/console/src/pages/HomePage.tsx +++ b/apps/console/src/pages/HomePage.tsx @@ -8,16 +8,121 @@ import { import { Link } from "react-router"; import type { HomePageQuery as HomePageQueryType } from "./__generated__/HomePageQuery.graphql"; -export const HomePageQuery = graphql` - query HomePageQuery { - node(id: "AZSfP_xAcAC5IAAAAAAltA") { - id - ... on Organization { - name - } - } - } -`; + export const HomePageQuery = graphql` + query HomePageQuery { + node(id: "AZSfP_xAcAC5IAAAAAAltA") { + id + ... on Organization { + name + createdAt + updatedAt + vendors { + edges { + node { + id + name + createdAt + updatedAt + } + } + } + peoples { + edges { + node { + id + fullName + primaryEmailAddress + additionalEmailAddresses + createdAt + updatedAt + } + } + } + frameworks { + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + id + name + description + controls { + edges { + node { + id + name + state + stateTransisions { + edges { + node { + id + toState + fromState + createdAt + updatedAt + } + } + } + tasks { + edges { + node { + id + name + state + evidences { + edges { + node { + id + state + fileUrl + stateTransisions { + edges { + node { + id + fromState + toState + reason + createdAt + updatedAt + } + } + } + createdAt + updatedAt + } + } + } + stateTransisions { + edges { + node { + id + toState + fromState + reason + createdAt + updatedAt + } + } + } + createdAt + updatedAt + } + } + } + } + } + } + } + } + } + } + } + }`; export default function HomePage() { const [queryRef, loadQuery] = diff --git a/apps/console/src/pages/__generated__/HomePageQuery.graphql.ts b/apps/console/src/pages/__generated__/HomePageQuery.graphql.ts index cea92aa3c..5c41b063c 100644 --- a/apps/console/src/pages/__generated__/HomePageQuery.graphql.ts +++ b/apps/console/src/pages/__generated__/HomePageQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<269bb5911dc11e2bda71f8c506e1d7e7>> + * @generated SignedSource<<77e7a845bc8d788287f50a2f97600987>> * @lightSyntaxTransform * @nogrep */ @@ -9,11 +9,120 @@ // @ts-nocheck import { ConcreteRequest } from 'relay-runtime'; +export type ControlState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED"; +export type EvidenceState = "EXPIRED" | "INVALID" | "VALID"; +export type TaskState = "DONE" | "TODO"; export type HomePageQuery$variables = Record; export type HomePageQuery$data = { readonly node: { + readonly createdAt?: any; + readonly frameworks?: { + readonly edges: ReadonlyArray<{ + readonly cursor: any; + readonly node: { + readonly controls: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly id: string; + readonly name: string; + readonly state: ControlState; + readonly stateTransisions: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly createdAt: any; + readonly fromState: ControlState | null | undefined; + readonly id: string; + readonly toState: ControlState; + readonly updatedAt: any; + }; + }>; + }; + readonly tasks: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly createdAt: any; + readonly evidences: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly createdAt: any; + readonly fileUrl: string; + readonly id: string; + readonly state: EvidenceState; + readonly stateTransisions: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly createdAt: any; + readonly fromState: EvidenceState | null | undefined; + readonly id: string; + readonly reason: string | null | undefined; + readonly toState: EvidenceState; + readonly updatedAt: any; + }; + }>; + }; + readonly updatedAt: any; + }; + }>; + }; + readonly id: string; + readonly name: string; + readonly state: TaskState; + readonly stateTransisions: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly createdAt: any; + readonly fromState: TaskState | null | undefined; + readonly id: string; + readonly reason: string | null | undefined; + readonly toState: TaskState; + readonly updatedAt: any; + }; + }>; + }; + readonly updatedAt: any; + }; + }>; + }; + }; + }>; + }; + readonly description: string; + readonly id: string; + readonly name: string; + }; + }>; + readonly pageInfo: { + readonly endCursor: any | null | undefined; + readonly hasNextPage: boolean; + readonly hasPreviousPage: boolean; + readonly startCursor: any | null | undefined; + }; + }; readonly id: string; readonly name?: string; + readonly peoples?: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly additionalEmailAddresses: ReadonlyArray; + readonly createdAt: any; + readonly fullName: string; + readonly id: string; + readonly primaryEmailAddress: string; + readonly updatedAt: any; + }; + }>; + }; + readonly updatedAt?: any; + readonly vendors?: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly createdAt: any; + readonly id: string; + readonly name: string; + readonly updatedAt: any; + }; + }>; + }; }; }; export type HomePageQuery = { @@ -37,13 +146,474 @@ v1 = { "storageKey": null }, v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "createdAt", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "updatedAt", + "storageKey": null +}, +v5 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "state", + "storageKey": null +}, +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "toState", + "storageKey": null +}, +v7 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fromState", + "storageKey": null +}, +v8 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reason", + "storageKey": null +}, +v9 = { "kind": "InlineFragment", "selections": [ + (v2/*: any*/), + (v3/*: any*/), + (v4/*: any*/), { "alias": null, "args": null, - "kind": "ScalarField", - "name": "name", + "concreteType": "VendorConnection", + "kind": "LinkedField", + "name": "vendors", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "VendorEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Vendor", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + (v3/*: any*/), + (v4/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PeopleConnection", + "kind": "LinkedField", + "name": "peoples", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PeopleEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "People", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "primaryEmailAddress", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "additionalEmailAddresses", + "storageKey": null + }, + (v3/*: any*/), + (v4/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "FrameworkConnection", + "kind": "LinkedField", + "name": "frameworks", + "plural": false, + "selections": [ + { + "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": "hasPreviousPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "startCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "FrameworkEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Framework", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "description", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ControlConnection", + "kind": "LinkedField", + "name": "controls", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ControlEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Control", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + (v5/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "ControlStateTransitionConnection", + "kind": "LinkedField", + "name": "stateTransisions", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ControlStateTransitionEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ControlStateTransition", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v6/*: any*/), + (v7/*: any*/), + (v3/*: any*/), + (v4/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "TaskConnection", + "kind": "LinkedField", + "name": "tasks", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "TaskEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Task", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + (v5/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "EvidenceConnection", + "kind": "LinkedField", + "name": "evidences", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "EvidenceEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Evidence", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v5/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fileUrl", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "EvidenceStateTransitionConnection", + "kind": "LinkedField", + "name": "stateTransisions", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "EvidenceStateTransitionEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "EvidenceStateTransition", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v7/*: any*/), + (v6/*: any*/), + (v8/*: any*/), + (v3/*: any*/), + (v4/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + (v3/*: any*/), + (v4/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "TaskStateTransitionConnection", + "kind": "LinkedField", + "name": "stateTransisions", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "TaskStateTransitionEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "TaskStateTransition", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v6/*: any*/), + (v7/*: any*/), + (v8/*: any*/), + (v3/*: any*/), + (v4/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + (v3/*: any*/), + (v4/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], "storageKey": null } ], @@ -66,7 +636,7 @@ return { "plural": false, "selections": [ (v1/*: any*/), - (v2/*: any*/) + (v9/*: any*/) ], "storageKey": "node(id:\"AZSfP_xAcAC5IAAAAAAltA\")" } @@ -96,23 +666,23 @@ return { "storageKey": null }, (v1/*: any*/), - (v2/*: any*/) + (v9/*: any*/) ], "storageKey": "node(id:\"AZSfP_xAcAC5IAAAAAAltA\")" } ] }, "params": { - "cacheID": "5d18865912a8a8c16bc28f5506766d82", + "cacheID": "c73dd7150596d3c0f5a6182fa68bbdc7", "id": null, "metadata": {}, "name": "HomePageQuery", "operationKind": "query", - "text": "query HomePageQuery {\n node(id: \"AZSfP_xAcAC5IAAAAAAltA\") {\n __typename\n id\n ... on Organization {\n name\n }\n }\n}\n" + "text": "query HomePageQuery {\n node(id: \"AZSfP_xAcAC5IAAAAAAltA\") {\n __typename\n id\n ... on Organization {\n name\n createdAt\n updatedAt\n vendors {\n edges {\n node {\n id\n name\n createdAt\n updatedAt\n }\n }\n }\n peoples {\n edges {\n node {\n id\n fullName\n primaryEmailAddress\n additionalEmailAddresses\n createdAt\n updatedAt\n }\n }\n }\n frameworks {\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n edges {\n cursor\n node {\n id\n name\n description\n controls {\n edges {\n node {\n id\n name\n state\n stateTransisions {\n edges {\n node {\n id\n toState\n fromState\n createdAt\n updatedAt\n }\n }\n }\n tasks {\n edges {\n node {\n id\n name\n state\n evidences {\n edges {\n node {\n id\n state\n fileUrl\n stateTransisions {\n edges {\n node {\n id\n fromState\n toState\n reason\n createdAt\n updatedAt\n }\n }\n }\n createdAt\n updatedAt\n }\n }\n }\n stateTransisions {\n edges {\n node {\n id\n toState\n fromState\n reason\n createdAt\n updatedAt\n }\n }\n }\n createdAt\n updatedAt\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n" } }; })(); -(node as any).hash = "0da7306fdc31722644ce24a893020fae"; +(node as any).hash = "8ecbd457d85e0552b610b3942cc0c228"; export default node;