From 608768e66823c36aa82379d6b6ee2e6ab435d891 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Fri, 23 May 2025 14:33:58 -0700 Subject: [PATCH] Fix graphql queries Signed-off-by: Bryan Frimin --- .../frameworks/controls/Control.tsx | 58 +++++++++++-------- ...rolCreateMeasureMappingMutation.graphql.ts | 40 ++++++++++--- ...trolCreatePolicyMappingMutation.graphql.ts | 40 ++++++++++--- ...rolDeleteMeasureMappingMutation.graphql.ts | 12 ++-- ...trolDeletePolicyMappingMutation.graphql.ts | 12 ++-- .../organizations/measures/MeasureView.tsx | 8 ++- ...iewCreateControlMappingMutation.graphql.ts | 40 ++++++++++--- ...iewDeleteControlMappingMutation.graphql.ts | 12 ++-- .../organizations/risks/ShowRiskView.tsx | 16 +++-- ...reateRiskMeasureMappingMutation.graphql.ts | 40 ++++++++++--- ...CreateRiskPolicyMappingMutation.graphql.ts | 40 ++++++++++--- ...eleteRiskMeasureMappingMutation.graphql.ts | 12 ++-- ...DeleteRiskPolicyMappingMutation.graphql.ts | 12 ++-- 13 files changed, 246 insertions(+), 96 deletions(-) diff --git a/apps/console/src/pages/organizations/frameworks/controls/Control.tsx b/apps/console/src/pages/organizations/frameworks/controls/Control.tsx index 45b70b397..68920493b 100644 --- a/apps/console/src/pages/organizations/frameworks/controls/Control.tsx +++ b/apps/console/src/pages/organizations/frameworks/controls/Control.tsx @@ -156,7 +156,11 @@ const createMeasureMappingMutation = graphql` $input: CreateControlMeasureMappingInput! ) { createControlMeasureMapping(input: $input) { - success + controlEdge { + node { + id + } + } } } `; @@ -167,7 +171,7 @@ const deleteMeasureMappingMutation = graphql` $input: DeleteControlMeasureMappingInput! ) { deleteControlMeasureMapping(input: $input) { - success + deletedMeasureId } } `; @@ -178,7 +182,11 @@ const createPolicyMappingMutation = graphql` $input: CreateControlPolicyMappingInput! ) { createControlPolicyMapping(input: $input) { - success + controlEdge { + node { + id + } + } } } `; @@ -189,7 +197,7 @@ const deletePolicyMappingMutation = graphql` $input: DeleteControlPolicyMappingInput! ) { deleteControlPolicyMapping(input: $input) { - success + deletedPolicyId } } `; @@ -234,10 +242,10 @@ export function Control({ // Create mutation hooks const [commitCreateMeasureMapping] = useMutation( - createMeasureMappingMutation, + createMeasureMappingMutation ); const [commitDeleteMeasureMapping] = useMutation( - deleteMeasureMappingMutation, + deleteMeasureMappingMutation ); const [commitCreatePolicyMapping] = useMutation(createPolicyMappingMutation); const [commitDeletePolicyMapping] = useMutation(deletePolicyMappingMutation); @@ -273,7 +281,7 @@ export function Control({ organizationMeasuresQuery, { organizationId, - }, + } ).subscribe({ next: (data) => { setOrganizationMeasuresData(data); @@ -285,7 +293,7 @@ export function Control({ linkedMeasuresQuery, { controlId: control.id, - }, + } ).subscribe({ next: (data) => { setLinkedMeasuresData(data); @@ -318,7 +326,7 @@ export function Control({ const getMeasures = useCallback(() => { if (!organizationMeasuresData?.organization?.measures?.edges) return []; return organizationMeasuresData.organization.measures.edges.map( - (edge) => edge.node, + (edge) => edge.node ); }, [organizationMeasuresData]); @@ -332,7 +340,7 @@ export function Control({ const linkedMeasures = getLinkedMeasures(); return linkedMeasures.some((measure) => measure.id === measureId); }, - [getLinkedMeasures], + [getLinkedMeasures] ); const getMeasureCategories = useCallback(() => { @@ -405,7 +413,7 @@ export function Control({ linkedMeasuresQuery, { controlId: control.id, - }, + } ).subscribe({ next: (data) => { setLinkedMeasuresData(data); @@ -431,7 +439,7 @@ export function Control({ }, }); }, - [commitCreateMeasureMapping, control.id, environment, toast], + [commitCreateMeasureMapping, control.id, environment, toast] ); const handleUnlinkMeasure = useCallback( @@ -466,7 +474,7 @@ export function Control({ linkedMeasuresQuery, { controlId: control.id, - }, + } ).subscribe({ next: (data) => { setLinkedMeasuresData(data); @@ -492,7 +500,7 @@ export function Control({ }, }); }, - [commitDeleteMeasureMapping, control.id, environment, toast], + [commitDeleteMeasureMapping, control.id, environment, toast] ); const handleOpenMeasureMappingDialog = useCallback(() => { @@ -531,7 +539,7 @@ export function Control({ organizationPoliciesQuery, { organizationId, - }, + } ).subscribe({ next: (data) => { setOrganizationPoliciesData(data); @@ -543,7 +551,7 @@ export function Control({ linkedPoliciesQuery, { controlId: control.id, - }, + } ).subscribe({ next: (data) => { setLinkedPoliciesData(data); @@ -576,7 +584,7 @@ export function Control({ const getPolicies = useCallback(() => { if (!organizationPoliciesData?.organization?.policies?.edges) return []; return organizationPoliciesData.organization.policies.edges.map( - (edge) => edge.node, + (edge) => edge.node ); }, [organizationPoliciesData]); @@ -590,7 +598,7 @@ export function Control({ const linkedPolicies = getLinkedPolicies(); return linkedPolicies.some((policy) => policy.id === policyId); }, - [getLinkedPolicies], + [getLinkedPolicies] ); const filteredPolicies = useCallback(() => { @@ -642,7 +650,7 @@ export function Control({ linkedPoliciesQuery, { controlId: control.id, - }, + } ).subscribe({ next: (data) => { setLinkedPoliciesData(data); @@ -668,7 +676,7 @@ export function Control({ }, }); }, - [commitCreatePolicyMapping, control.id, environment, toast], + [commitCreatePolicyMapping, control.id, environment, toast] ); const handleUnlinkPolicy = useCallback( @@ -703,7 +711,7 @@ export function Control({ linkedPoliciesQuery, { controlId: control.id, - }, + } ).subscribe({ next: (data) => { setLinkedPoliciesData(data); @@ -729,7 +737,7 @@ export function Control({ }, }); }, - [commitDeletePolicyMapping, control.id, environment, toast], + [commitDeletePolicyMapping, control.id, environment, toast] ); const handleOpenPolicyMappingDialog = useCallback(() => { @@ -879,7 +887,7 @@ export function Control({
{formatState(measure.state)} @@ -992,7 +1000,7 @@ export function Control({
{formatState(measure.state)} @@ -1113,7 +1121,7 @@ export function Control({ {policy.updatedAt ? new Date( - policy.updatedAt, + policy.updatedAt ).toLocaleDateString() : "Not set"} diff --git a/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlCreateMeasureMappingMutation.graphql.ts b/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlCreateMeasureMappingMutation.graphql.ts index b156d3cb6..d072ce98d 100644 --- a/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlCreateMeasureMappingMutation.graphql.ts +++ b/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlCreateMeasureMappingMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<369cb72e422d254a5e4956d17c47a8ae>> + * @generated SignedSource<<97db419e0a721e3a40619b1dbe4f9cde>> * @lightSyntaxTransform * @nogrep */ @@ -18,7 +18,11 @@ export type ControlCreateMeasureMappingMutation$variables = { }; export type ControlCreateMeasureMappingMutation$data = { readonly createControlMeasureMapping: { - readonly success: boolean; + readonly controlEdge: { + readonly node: { + readonly id: string; + }; + }; }; }; export type ControlCreateMeasureMappingMutation = { @@ -52,8 +56,30 @@ v1 = [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "success", + "concreteType": "ControlEdge", + "kind": "LinkedField", + "name": "controlEdge", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Control", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ], + "storageKey": null + } + ], "storageKey": null } ], @@ -78,16 +104,16 @@ return { "selections": (v1/*: any*/) }, "params": { - "cacheID": "5ff3b52a5f40607556617a17e44dc3b1", + "cacheID": "47a25e6c0c8c8695cf742b3cb5dfc90e", "id": null, "metadata": {}, "name": "ControlCreateMeasureMappingMutation", "operationKind": "mutation", - "text": "mutation ControlCreateMeasureMappingMutation(\n $input: CreateControlMeasureMappingInput!\n) {\n createControlMeasureMapping(input: $input) {\n success\n }\n}\n" + "text": "mutation ControlCreateMeasureMappingMutation(\n $input: CreateControlMeasureMappingInput!\n) {\n createControlMeasureMapping(input: $input) {\n controlEdge {\n node {\n id\n }\n }\n }\n}\n" } }; })(); -(node as any).hash = "2c0061b6e180971d0e0f8b8b5c44d566"; +(node as any).hash = "4d5a5c705066af948f689da7e1ae491e"; export default node; diff --git a/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlCreatePolicyMappingMutation.graphql.ts b/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlCreatePolicyMappingMutation.graphql.ts index 337208e01..03a401b16 100644 --- a/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlCreatePolicyMappingMutation.graphql.ts +++ b/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlCreatePolicyMappingMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<9e8a7131004ab3ef4f20c36c904bd9db>> * @lightSyntaxTransform * @nogrep */ @@ -18,7 +18,11 @@ export type ControlCreatePolicyMappingMutation$variables = { }; export type ControlCreatePolicyMappingMutation$data = { readonly createControlPolicyMapping: { - readonly success: boolean; + readonly controlEdge: { + readonly node: { + readonly id: string; + }; + }; }; }; export type ControlCreatePolicyMappingMutation = { @@ -52,8 +56,30 @@ v1 = [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "success", + "concreteType": "ControlEdge", + "kind": "LinkedField", + "name": "controlEdge", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Control", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ], + "storageKey": null + } + ], "storageKey": null } ], @@ -78,16 +104,16 @@ return { "selections": (v1/*: any*/) }, "params": { - "cacheID": "bde220ef49867cec6b77bffc06878258", + "cacheID": "d2cf3e45fcc9109399c3b80addb03b20", "id": null, "metadata": {}, "name": "ControlCreatePolicyMappingMutation", "operationKind": "mutation", - "text": "mutation ControlCreatePolicyMappingMutation(\n $input: CreateControlPolicyMappingInput!\n) {\n createControlPolicyMapping(input: $input) {\n success\n }\n}\n" + "text": "mutation ControlCreatePolicyMappingMutation(\n $input: CreateControlPolicyMappingInput!\n) {\n createControlPolicyMapping(input: $input) {\n controlEdge {\n node {\n id\n }\n }\n }\n}\n" } }; })(); -(node as any).hash = "8e6ef41146efb59340331e16ce0493d6"; +(node as any).hash = "9deabb78c91eca04673b23cf5d0b68f5"; export default node; diff --git a/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlDeleteMeasureMappingMutation.graphql.ts b/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlDeleteMeasureMappingMutation.graphql.ts index 6d38cb2f9..be6caa610 100644 --- a/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlDeleteMeasureMappingMutation.graphql.ts +++ b/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlDeleteMeasureMappingMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<6208e6173d03bbf497b38e0f8dece2a7>> + * @generated SignedSource<<92ccd3ebf9c0f657aa025589621b5bb9>> * @lightSyntaxTransform * @nogrep */ @@ -18,7 +18,7 @@ export type ControlDeleteMeasureMappingMutation$variables = { }; export type ControlDeleteMeasureMappingMutation$data = { readonly deleteControlMeasureMapping: { - readonly success: boolean; + readonly deletedMeasureId: string; }; }; export type ControlDeleteMeasureMappingMutation = { @@ -53,7 +53,7 @@ v1 = [ "alias": null, "args": null, "kind": "ScalarField", - "name": "success", + "name": "deletedMeasureId", "storageKey": null } ], @@ -78,16 +78,16 @@ return { "selections": (v1/*: any*/) }, "params": { - "cacheID": "446e0d6cc32e0c0dfc4f5e74e11bdb84", + "cacheID": "f04fc5d41446167e628d231693adacb5", "id": null, "metadata": {}, "name": "ControlDeleteMeasureMappingMutation", "operationKind": "mutation", - "text": "mutation ControlDeleteMeasureMappingMutation(\n $input: DeleteControlMeasureMappingInput!\n) {\n deleteControlMeasureMapping(input: $input) {\n success\n }\n}\n" + "text": "mutation ControlDeleteMeasureMappingMutation(\n $input: DeleteControlMeasureMappingInput!\n) {\n deleteControlMeasureMapping(input: $input) {\n deletedMeasureId\n }\n}\n" } }; })(); -(node as any).hash = "f6a94c260a98dffe7d48e4aa9e690845"; +(node as any).hash = "3585131b3599d0926a1e53979eafc0a3"; export default node; diff --git a/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlDeletePolicyMappingMutation.graphql.ts b/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlDeletePolicyMappingMutation.graphql.ts index f2675a061..49b3bd372 100644 --- a/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlDeletePolicyMappingMutation.graphql.ts +++ b/apps/console/src/pages/organizations/frameworks/controls/__generated__/ControlDeletePolicyMappingMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<5988b98a6e2ae42a565e51fc13fa5c91>> + * @generated SignedSource<<16f8815c8b1db694fb8cd18be95c3f53>> * @lightSyntaxTransform * @nogrep */ @@ -18,7 +18,7 @@ export type ControlDeletePolicyMappingMutation$variables = { }; export type ControlDeletePolicyMappingMutation$data = { readonly deleteControlPolicyMapping: { - readonly success: boolean; + readonly deletedPolicyId: string; }; }; export type ControlDeletePolicyMappingMutation = { @@ -53,7 +53,7 @@ v1 = [ "alias": null, "args": null, "kind": "ScalarField", - "name": "success", + "name": "deletedPolicyId", "storageKey": null } ], @@ -78,16 +78,16 @@ return { "selections": (v1/*: any*/) }, "params": { - "cacheID": "3b84cd899eee67303695eae81d1ba453", + "cacheID": "ae87d43859683362f6c7024e7f371425", "id": null, "metadata": {}, "name": "ControlDeletePolicyMappingMutation", "operationKind": "mutation", - "text": "mutation ControlDeletePolicyMappingMutation(\n $input: DeleteControlPolicyMappingInput!\n) {\n deleteControlPolicyMapping(input: $input) {\n success\n }\n}\n" + "text": "mutation ControlDeletePolicyMappingMutation(\n $input: DeleteControlPolicyMappingInput!\n) {\n deleteControlPolicyMapping(input: $input) {\n deletedPolicyId\n }\n}\n" } }; })(); -(node as any).hash = "e706f52dac09ef3fcadeb588ccd0274d"; +(node as any).hash = "39306cd73fd5af5c603272f0bba45a8f"; export default node; diff --git a/apps/console/src/pages/organizations/measures/MeasureView.tsx b/apps/console/src/pages/organizations/measures/MeasureView.tsx index ca48d3d96..5d7c865cf 100644 --- a/apps/console/src/pages/organizations/measures/MeasureView.tsx +++ b/apps/console/src/pages/organizations/measures/MeasureView.tsx @@ -431,7 +431,11 @@ const createControlMappingMutation = graphql` $input: CreateControlMeasureMappingInput! ) { createControlMeasureMapping(input: $input) { - success + controlEdge { + node { + id + } + } } } `; @@ -441,7 +445,7 @@ const deleteControlMappingMutation = graphql` $input: DeleteControlMeasureMappingInput! ) { deleteControlMeasureMapping(input: $input) { - success + deletedMeasureId } } `; diff --git a/apps/console/src/pages/organizations/measures/__generated__/MeasureViewCreateControlMappingMutation.graphql.ts b/apps/console/src/pages/organizations/measures/__generated__/MeasureViewCreateControlMappingMutation.graphql.ts index 853efd209..3e7d86c37 100644 --- a/apps/console/src/pages/organizations/measures/__generated__/MeasureViewCreateControlMappingMutation.graphql.ts +++ b/apps/console/src/pages/organizations/measures/__generated__/MeasureViewCreateControlMappingMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<441cfaaf785e0628a8c954249ef87bdf>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -18,7 +18,11 @@ export type MeasureViewCreateControlMappingMutation$variables = { }; export type MeasureViewCreateControlMappingMutation$data = { readonly createControlMeasureMapping: { - readonly success: boolean; + readonly controlEdge: { + readonly node: { + readonly id: string; + }; + }; }; }; export type MeasureViewCreateControlMappingMutation = { @@ -52,8 +56,30 @@ v1 = [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "success", + "concreteType": "ControlEdge", + "kind": "LinkedField", + "name": "controlEdge", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Control", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ], + "storageKey": null + } + ], "storageKey": null } ], @@ -78,16 +104,16 @@ return { "selections": (v1/*: any*/) }, "params": { - "cacheID": "ea74e0148d320dbfb79859bb6286427b", + "cacheID": "27359a60a5a935f7d707c11d25c5d656", "id": null, "metadata": {}, "name": "MeasureViewCreateControlMappingMutation", "operationKind": "mutation", - "text": "mutation MeasureViewCreateControlMappingMutation(\n $input: CreateControlMeasureMappingInput!\n) {\n createControlMeasureMapping(input: $input) {\n success\n }\n}\n" + "text": "mutation MeasureViewCreateControlMappingMutation(\n $input: CreateControlMeasureMappingInput!\n) {\n createControlMeasureMapping(input: $input) {\n controlEdge {\n node {\n id\n }\n }\n }\n}\n" } }; })(); -(node as any).hash = "dfe964679c82f9c47d418122595989a8"; +(node as any).hash = "8621dd4bf5bdb9d06c1451004493fac9"; export default node; diff --git a/apps/console/src/pages/organizations/measures/__generated__/MeasureViewDeleteControlMappingMutation.graphql.ts b/apps/console/src/pages/organizations/measures/__generated__/MeasureViewDeleteControlMappingMutation.graphql.ts index 26ffe7aac..aefbf2edb 100644 --- a/apps/console/src/pages/organizations/measures/__generated__/MeasureViewDeleteControlMappingMutation.graphql.ts +++ b/apps/console/src/pages/organizations/measures/__generated__/MeasureViewDeleteControlMappingMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<9136dd4c154f9e4b2ba8b91316edbf4a>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -18,7 +18,7 @@ export type MeasureViewDeleteControlMappingMutation$variables = { }; export type MeasureViewDeleteControlMappingMutation$data = { readonly deleteControlMeasureMapping: { - readonly success: boolean; + readonly deletedMeasureId: string; }; }; export type MeasureViewDeleteControlMappingMutation = { @@ -53,7 +53,7 @@ v1 = [ "alias": null, "args": null, "kind": "ScalarField", - "name": "success", + "name": "deletedMeasureId", "storageKey": null } ], @@ -78,16 +78,16 @@ return { "selections": (v1/*: any*/) }, "params": { - "cacheID": "8e779137f0502f324968a4c414bff2e6", + "cacheID": "7cdb64662f8f7c05b6ab0698c234970f", "id": null, "metadata": {}, "name": "MeasureViewDeleteControlMappingMutation", "operationKind": "mutation", - "text": "mutation MeasureViewDeleteControlMappingMutation(\n $input: DeleteControlMeasureMappingInput!\n) {\n deleteControlMeasureMapping(input: $input) {\n success\n }\n}\n" + "text": "mutation MeasureViewDeleteControlMappingMutation(\n $input: DeleteControlMeasureMappingInput!\n) {\n deleteControlMeasureMapping(input: $input) {\n deletedMeasureId\n }\n}\n" } }; })(); -(node as any).hash = "7c74e8e787022c1c51fbfc38388445e4"; +(node as any).hash = "73049774597ac1235e58527f7aa46564"; export default node; diff --git a/apps/console/src/pages/organizations/risks/ShowRiskView.tsx b/apps/console/src/pages/organizations/risks/ShowRiskView.tsx index 0a109c4c7..543bc1e30 100644 --- a/apps/console/src/pages/organizations/risks/ShowRiskView.tsx +++ b/apps/console/src/pages/organizations/risks/ShowRiskView.tsx @@ -169,7 +169,11 @@ const createRiskMeasureMappingMutation = graphql` $input: CreateRiskMeasureMappingInput! ) { createRiskMeasureMapping(input: $input) { - success + riskEdge { + node { + id + } + } } } `; @@ -180,7 +184,7 @@ const deleteRiskMeasureMappingMutation = graphql` $input: DeleteRiskMeasureMappingInput! ) { deleteRiskMeasureMapping(input: $input) { - success + deletedMeasureId } } `; @@ -191,7 +195,11 @@ const createRiskPolicyMappingMutation = graphql` $input: CreateRiskPolicyMappingInput! ) { createRiskPolicyMapping(input: $input) { - success + riskEdge { + node { + id + } + } } } `; @@ -202,7 +210,7 @@ const deleteRiskPolicyMappingMutation = graphql` $input: DeleteRiskPolicyMappingInput! ) { deleteRiskPolicyMapping(input: $input) { - success + deletedPolicyId } } `; diff --git a/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewCreateRiskMeasureMappingMutation.graphql.ts b/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewCreateRiskMeasureMappingMutation.graphql.ts index f8a856e57..932555498 100644 --- a/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewCreateRiskMeasureMappingMutation.graphql.ts +++ b/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewCreateRiskMeasureMappingMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<87f06a7e4f736af29d5dafddd750eaff>> * @lightSyntaxTransform * @nogrep */ @@ -18,7 +18,11 @@ export type ShowRiskViewCreateRiskMeasureMappingMutation$variables = { }; export type ShowRiskViewCreateRiskMeasureMappingMutation$data = { readonly createRiskMeasureMapping: { - readonly success: boolean; + readonly riskEdge: { + readonly node: { + readonly id: string; + }; + }; }; }; export type ShowRiskViewCreateRiskMeasureMappingMutation = { @@ -52,8 +56,30 @@ v1 = [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "success", + "concreteType": "RiskEdge", + "kind": "LinkedField", + "name": "riskEdge", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Risk", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ], + "storageKey": null + } + ], "storageKey": null } ], @@ -78,16 +104,16 @@ return { "selections": (v1/*: any*/) }, "params": { - "cacheID": "f9e85548eb6e6aeb601fc36f92803ab6", + "cacheID": "d767dfb986b187e7eaad1e442e9a2822", "id": null, "metadata": {}, "name": "ShowRiskViewCreateRiskMeasureMappingMutation", "operationKind": "mutation", - "text": "mutation ShowRiskViewCreateRiskMeasureMappingMutation(\n $input: CreateRiskMeasureMappingInput!\n) {\n createRiskMeasureMapping(input: $input) {\n success\n }\n}\n" + "text": "mutation ShowRiskViewCreateRiskMeasureMappingMutation(\n $input: CreateRiskMeasureMappingInput!\n) {\n createRiskMeasureMapping(input: $input) {\n riskEdge {\n node {\n id\n }\n }\n }\n}\n" } }; })(); -(node as any).hash = "6246bbb8af3e7c1a2e968eb5482c91ce"; +(node as any).hash = "11529c76ce2bb6c0d0b6813c51f3ae9d"; export default node; diff --git a/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewCreateRiskPolicyMappingMutation.graphql.ts b/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewCreateRiskPolicyMappingMutation.graphql.ts index 28d3165c7..2fc7183c3 100644 --- a/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewCreateRiskPolicyMappingMutation.graphql.ts +++ b/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewCreateRiskPolicyMappingMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<0ecdbc802635f485dd265dac34b04386>> + * @generated SignedSource<<0a4cb496e3dd17d135eaa689ebba360a>> * @lightSyntaxTransform * @nogrep */ @@ -18,7 +18,11 @@ export type ShowRiskViewCreateRiskPolicyMappingMutation$variables = { }; export type ShowRiskViewCreateRiskPolicyMappingMutation$data = { readonly createRiskPolicyMapping: { - readonly success: boolean; + readonly riskEdge: { + readonly node: { + readonly id: string; + }; + }; }; }; export type ShowRiskViewCreateRiskPolicyMappingMutation = { @@ -52,8 +56,30 @@ v1 = [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "success", + "concreteType": "RiskEdge", + "kind": "LinkedField", + "name": "riskEdge", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Risk", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ], + "storageKey": null + } + ], "storageKey": null } ], @@ -78,16 +104,16 @@ return { "selections": (v1/*: any*/) }, "params": { - "cacheID": "7aac9b6766d79dcc4785f72b6f6805a8", + "cacheID": "57ab115614eb72c930a05a4496827702", "id": null, "metadata": {}, "name": "ShowRiskViewCreateRiskPolicyMappingMutation", "operationKind": "mutation", - "text": "mutation ShowRiskViewCreateRiskPolicyMappingMutation(\n $input: CreateRiskPolicyMappingInput!\n) {\n createRiskPolicyMapping(input: $input) {\n success\n }\n}\n" + "text": "mutation ShowRiskViewCreateRiskPolicyMappingMutation(\n $input: CreateRiskPolicyMappingInput!\n) {\n createRiskPolicyMapping(input: $input) {\n riskEdge {\n node {\n id\n }\n }\n }\n}\n" } }; })(); -(node as any).hash = "5a10339ed779d863662406775e38ea7b"; +(node as any).hash = "ca3e1eee912cd4b7ac2702e4192dd544"; export default node; diff --git a/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewDeleteRiskMeasureMappingMutation.graphql.ts b/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewDeleteRiskMeasureMappingMutation.graphql.ts index ff8f3580a..ad172ef65 100644 --- a/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewDeleteRiskMeasureMappingMutation.graphql.ts +++ b/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewDeleteRiskMeasureMappingMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<2cf110e09c6e34e64c013c6fc260e918>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -18,7 +18,7 @@ export type ShowRiskViewDeleteRiskMeasureMappingMutation$variables = { }; export type ShowRiskViewDeleteRiskMeasureMappingMutation$data = { readonly deleteRiskMeasureMapping: { - readonly success: boolean; + readonly deletedMeasureId: string; }; }; export type ShowRiskViewDeleteRiskMeasureMappingMutation = { @@ -53,7 +53,7 @@ v1 = [ "alias": null, "args": null, "kind": "ScalarField", - "name": "success", + "name": "deletedMeasureId", "storageKey": null } ], @@ -78,16 +78,16 @@ return { "selections": (v1/*: any*/) }, "params": { - "cacheID": "76adf5d3867e6179bb11daeda4de9fc5", + "cacheID": "7d0915a443335171854ece73a62d38d8", "id": null, "metadata": {}, "name": "ShowRiskViewDeleteRiskMeasureMappingMutation", "operationKind": "mutation", - "text": "mutation ShowRiskViewDeleteRiskMeasureMappingMutation(\n $input: DeleteRiskMeasureMappingInput!\n) {\n deleteRiskMeasureMapping(input: $input) {\n success\n }\n}\n" + "text": "mutation ShowRiskViewDeleteRiskMeasureMappingMutation(\n $input: DeleteRiskMeasureMappingInput!\n) {\n deleteRiskMeasureMapping(input: $input) {\n deletedMeasureId\n }\n}\n" } }; })(); -(node as any).hash = "c51d0282a2d54bab88d56d9f2fdc9e49"; +(node as any).hash = "f6dbd4c81c9c6cc167ee8816a1f698cc"; export default node; diff --git a/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewDeleteRiskPolicyMappingMutation.graphql.ts b/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewDeleteRiskPolicyMappingMutation.graphql.ts index 39d9e2e1c..876ec6c1e 100644 --- a/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewDeleteRiskPolicyMappingMutation.graphql.ts +++ b/apps/console/src/pages/organizations/risks/__generated__/ShowRiskViewDeleteRiskPolicyMappingMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<8f8d550cd2bbc73744ba0b7a97720a49>> * @lightSyntaxTransform * @nogrep */ @@ -18,7 +18,7 @@ export type ShowRiskViewDeleteRiskPolicyMappingMutation$variables = { }; export type ShowRiskViewDeleteRiskPolicyMappingMutation$data = { readonly deleteRiskPolicyMapping: { - readonly success: boolean; + readonly deletedPolicyId: string; }; }; export type ShowRiskViewDeleteRiskPolicyMappingMutation = { @@ -53,7 +53,7 @@ v1 = [ "alias": null, "args": null, "kind": "ScalarField", - "name": "success", + "name": "deletedPolicyId", "storageKey": null } ], @@ -78,16 +78,16 @@ return { "selections": (v1/*: any*/) }, "params": { - "cacheID": "a3e208ccc9b5c1248450edaec7ef8417", + "cacheID": "d10c9ccbc01259fb7fea2bf463d6ecc6", "id": null, "metadata": {}, "name": "ShowRiskViewDeleteRiskPolicyMappingMutation", "operationKind": "mutation", - "text": "mutation ShowRiskViewDeleteRiskPolicyMappingMutation(\n $input: DeleteRiskPolicyMappingInput!\n) {\n deleteRiskPolicyMapping(input: $input) {\n success\n }\n}\n" + "text": "mutation ShowRiskViewDeleteRiskPolicyMappingMutation(\n $input: DeleteRiskPolicyMappingInput!\n) {\n deleteRiskPolicyMapping(input: $input) {\n deletedPolicyId\n }\n}\n" } }; })(); -(node as any).hash = "5e6b5677587f3c8bad3cec9d751952e1"; +(node as any).hash = "26177c99b1c35723f913637a1d6ac54b"; export default node;