Change state of applicability

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-01-02 15:04:11 +01:00
parent c60e19a7a8
commit 4ed3f5a067
105 changed files with 18351 additions and 284 deletions

View File

@@ -100,6 +100,16 @@ export const frameworkControlNodeQuery = graphql`
status
exclusionJustification
...FrameworkControlDialogFragment
stateOfApplicabilityControls(first: 100)
@connection(key: "FrameworkGraphControl_stateOfApplicabilityControls") {
__id
edges {
node {
id
...LinkedStatesOfApplicabilityCardFragment
}
}
}
measures(first: 100)
@connection(key: "FrameworkGraphControl_measures") {
__id
@@ -130,6 +140,16 @@ export const frameworkControlNodeQuery = graphql`
}
}
}
obligations(first: 100)
@connection(key: "FrameworkGraphControl_obligations") {
__id
edges {
node {
id
...LinkedObligationsCardFragment
}
}
}
snapshots(first: 100)
@connection(key: "FrameworkGraphControl_snapshots") {
__id

View File

@@ -29,6 +29,7 @@ export const obligationNodeQuery = graphql`
requirement
actionsToBeImplemented
regulator
type
lastReviewDate
dueDate
status
@@ -61,6 +62,7 @@ export const createObligationMutation = graphql`
requirement
actionsToBeImplemented
regulator
type
lastReviewDate
dueDate
status
@@ -85,6 +87,7 @@ export const updateObligationMutation = graphql`
requirement
actionsToBeImplemented
regulator
type
lastReviewDate
dueDate
status
@@ -151,6 +154,7 @@ export const useCreateObligation = (connectionId: string) => {
requirement?: string;
actionsToBeImplemented?: string;
regulator?: string;
type: string;
ownerId: string;
lastReviewDate?: string;
dueDate?: string;
@@ -172,6 +176,7 @@ export const useCreateObligation = (connectionId: string) => {
requirement: input.requirement,
actionsToBeImplemented: input.actionsToBeImplemented,
regulator: input.regulator,
type: input.type,
ownerId: input.ownerId,
lastReviewDate: input.lastReviewDate,
dueDate: input.dueDate,
@@ -194,6 +199,7 @@ export const useUpdateObligation = () => {
requirement?: string;
actionsToBeImplemented?: string;
regulator?: string;
type?: string;
ownerId?: string;
lastReviewDate?: string | null;
dueDate?: string | null;

View File

@@ -0,0 +1,235 @@
import { graphql } from "relay-runtime";
import type { StateOfApplicabilityGraphPaginatedQuery } from "./__generated__/StateOfApplicabilityGraphPaginatedQuery.graphql";
import type { StateOfApplicabilityGraphPaginatedFragment$key } from "./__generated__/StateOfApplicabilityGraphPaginatedFragment.graphql";
import {
useMutation,
usePaginationFragment,
usePreloadedQuery,
type PreloadedQuery,
} from "react-relay";
import { useConfirm, useToast } from "@probo/ui";
import type { StateOfApplicabilityGraphDeleteMutation } from "./__generated__/StateOfApplicabilityGraphDeleteMutation.graphql";
import {
promisifyMutation,
sprintf,
formatError,
type GraphQLError,
} from "@probo/helpers";
import { useTranslate } from "@probo/i18n";
export const paginatedStateOfApplicabilityQuery = graphql`
query StateOfApplicabilityGraphPaginatedQuery($organizationId: ID!) {
organization: node(id: $organizationId) {
... on Organization {
id
...StateOfApplicabilityGraphPaginatedFragment
}
}
}
`;
export const paginatedStateOfApplicabilityFragment = graphql`
fragment StateOfApplicabilityGraphPaginatedFragment on Organization
@refetchable(queryName: "StateOfApplicabilityListQuery")
@argumentDefinitions(
first: { type: "Int", defaultValue: 50 }
order: {
type: "StateOfApplicabilityOrder"
defaultValue: { direction: DESC, field: CREATED_AT }
}
after: { type: "CursorKey", defaultValue: null }
before: { type: "CursorKey", defaultValue: null }
last: { type: "Int", defaultValue: null }
filter: { type: "StateOfApplicabilityFilter", defaultValue: { snapshotId: null } }
) {
statesOfApplicability(
first: $first
after: $after
last: $last
before: $before
orderBy: $order
filter: $filter
) @connection(key: "StateOfApplicabilityGraphPaginatedQuery_statesOfApplicability") {
__id
edges {
node {
id
name
sourceId
snapshotId
createdAt
updatedAt
controlsInfo: controls(first: 0) {
totalCount
}
}
}
}
}
`;
export function useStateOfApplicabilityQuery(
queryRef: PreloadedQuery<StateOfApplicabilityGraphPaginatedQuery>,
) {
const data = usePreloadedQuery(paginatedStateOfApplicabilityQuery, queryRef);
const pagination = usePaginationFragment(
paginatedStateOfApplicabilityFragment,
data.organization as StateOfApplicabilityGraphPaginatedFragment$key,
);
const statesOfApplicability = pagination.data.statesOfApplicability?.edges.map((edge) => edge.node);
return {
...pagination,
statesOfApplicability,
connectionId: pagination.data.statesOfApplicability.__id,
};
}
export const deleteStateOfApplicabilityMutation = graphql`
mutation StateOfApplicabilityGraphDeleteMutation(
$input: DeleteStateOfApplicabilityInput!
$connections: [ID!]!
) {
deleteStateOfApplicability(input: $input) {
deletedStateOfApplicabilityId @deleteEdge(connections: $connections)
}
}
`;
export const StateOfApplicabilityConnectionKey = "StateOfApplicabilityGraphPaginatedQuery_statesOfApplicability";
export const useDeleteStateOfApplicability = (
stateOfApplicability: { id?: string; name?: string },
connectionId: string,
onSuccess?: () => void,
) => {
const [mutate] = useMutation<StateOfApplicabilityGraphDeleteMutation>(deleteStateOfApplicabilityMutation);
const confirm = useConfirm();
const { toast } = useToast();
const { __ } = useTranslate();
return () => {
if (!stateOfApplicability.id || !stateOfApplicability.name) {
return alert(__("Failed to delete state of applicability: missing id or name"));
}
confirm(
() =>
promisifyMutation(mutate)({
variables: {
input: {
stateOfApplicabilityId: stateOfApplicability.id!,
},
connections: [connectionId],
},
})
.then(() => {
onSuccess?.();
})
.catch((error) => {
toast({
title: __("Error"),
description: formatError(
__("Failed to delete state of applicability"),
error as GraphQLError,
),
variant: "error",
});
}),
{
message: sprintf(
__(
'This will permanently delete "%s". This action cannot be undone.',
),
stateOfApplicability.name,
),
},
);
};
};
export const createStateOfApplicabilityMutation = graphql`
mutation StateOfApplicabilityGraphCreateMutation(
$input: CreateStateOfApplicabilityInput!
$connections: [ID!]!
) {
createStateOfApplicability(input: $input) {
stateOfApplicabilityEdge @prependEdge(connections: $connections) {
node {
id
name
sourceId
snapshotId
createdAt
updatedAt
}
}
}
}
`;
export const updateStateOfApplicabilityMutation = graphql`
mutation StateOfApplicabilityGraphUpdateMutation(
$input: UpdateStateOfApplicabilityInput!
) {
updateStateOfApplicability(input: $input) {
stateOfApplicability {
id
name
sourceId
snapshotId
createdAt
updatedAt
owner {
id
fullName
}
}
}
}
`;
export const stateOfApplicabilityNodeQuery = graphql`
query StateOfApplicabilityGraphNodeQuery($stateOfApplicabilityId: ID!) {
node(id: $stateOfApplicabilityId) {
... on StateOfApplicability {
id
name
sourceId
snapshotId
createdAt
updatedAt
organization {
id
}
owner {
id
fullName
}
...StateOfApplicabilityControlsTabFragment
}
}
}
`;
export const stateOfApplicabilityForEditQuery = graphql`
query StateOfApplicabilityGraphForEditQuery($stateOfApplicabilityId: ID!) {
node(id: $stateOfApplicabilityId) {
... on StateOfApplicability {
id
name
controls(first: 1000, orderBy: { field: SECTION_TITLE, direction: ASC }) {
edges {
node {
id
sectionTitle
name
framework {
id
name
}
}
}
}
}
}
}
`;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<54b072cf5a78b17f86e5fc810cac517a>>
* @generated SignedSource<<ec1b843d1afb3a82c747b8580b528fda>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -47,6 +47,15 @@ export type FrameworkGraphControlNodeQuery$data = {
}>;
};
readonly name?: string;
readonly obligations?: {
readonly __id: string;
readonly edges: ReadonlyArray<{
readonly node: {
readonly id: string;
readonly " $fragmentSpreads": FragmentRefs<"LinkedObligationsCardFragment">;
};
}>;
};
readonly sectionTitle?: string;
readonly snapshots?: {
readonly __id: string;
@@ -57,6 +66,15 @@ export type FrameworkGraphControlNodeQuery$data = {
};
}>;
};
readonly stateOfApplicabilityControls?: {
readonly __id: string;
readonly edges: ReadonlyArray<{
readonly node: {
readonly id: string;
readonly " $fragmentSpreads": FragmentRefs<"LinkedStatesOfApplicabilityCardFragment">;
};
}>;
};
readonly status?: ControlStatus;
readonly " $fragmentSpreads": FragmentRefs<"FrameworkControlDialogFragment">;
};
@@ -181,14 +199,18 @@ v12 = [
"value": 100
}
],
v13 = {
v13 = [
(v2/*: any*/),
(v3/*: any*/)
],
v14 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "state",
"storageKey": null
},
v14 = {
v15 = {
"alias": null,
"args": null,
"kind": "ScalarField",
@@ -224,6 +246,49 @@ return {
"kind": "FragmentSpread",
"name": "FrameworkControlDialogFragment"
},
{
"alias": "stateOfApplicabilityControls",
"args": null,
"concreteType": "StateOfApplicabilityControlConnection",
"kind": "LinkedField",
"name": "__FrameworkGraphControl_stateOfApplicabilityControls_connection",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicabilityControlEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicabilityControl",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v2/*: any*/),
{
"args": null,
"kind": "FragmentSpread",
"name": "LinkedStatesOfApplicabilityCardFragment"
},
(v8/*: any*/)
],
"storageKey": null
},
(v9/*: any*/)
],
"storageKey": null
},
(v10/*: any*/),
(v11/*: any*/)
],
"storageKey": null
},
{
"alias": "measures",
"args": null,
@@ -353,6 +418,49 @@ return {
],
"storageKey": null
},
{
"alias": "obligations",
"args": null,
"concreteType": "ObligationConnection",
"kind": "LinkedField",
"name": "__FrameworkGraphControl_obligations_connection",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ObligationEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "Obligation",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v2/*: any*/),
{
"args": null,
"kind": "FragmentSpread",
"name": "LinkedObligationsCardFragment"
},
(v8/*: any*/)
],
"storageKey": null
},
(v9/*: any*/)
],
"storageKey": null
},
(v10/*: any*/),
(v11/*: any*/)
],
"storageKey": null
},
{
"alias": "snapshots",
"args": null,
@@ -431,6 +539,98 @@ return {
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "bestPractice",
"storageKey": null
},
{
"alias": null,
"args": (v12/*: any*/),
"concreteType": "StateOfApplicabilityControlConnection",
"kind": "LinkedField",
"name": "stateOfApplicabilityControls",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicabilityControlEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicabilityControl",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "stateOfApplicabilityId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "controlId",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicability",
"kind": "LinkedField",
"name": "stateOfApplicability",
"plural": false,
"selections": (v13/*: any*/),
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "applicability",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "justification",
"storageKey": null
},
(v8/*: any*/)
],
"storageKey": null
},
(v9/*: any*/)
],
"storageKey": null
},
(v10/*: any*/),
(v11/*: any*/)
],
"storageKey": "stateOfApplicabilityControls(first:100)"
},
{
"alias": null,
"args": (v12/*: any*/),
"filters": null,
"handle": "connection",
"key": "FrameworkGraphControl_stateOfApplicabilityControls",
"kind": "LinkedHandle",
"name": "stateOfApplicabilityControls"
},
{
"alias": null,
"args": (v12/*: any*/),
@@ -457,7 +657,7 @@ return {
"selections": [
(v2/*: any*/),
(v3/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
(v8/*: any*/)
],
"storageKey": null
@@ -512,7 +712,7 @@ return {
"name": "title",
"storageKey": null
},
(v14/*: any*/),
(v15/*: any*/),
{
"alias": null,
"args": null,
@@ -609,8 +809,8 @@ return {
"selections": [
(v2/*: any*/),
(v3/*: any*/),
(v15/*: any*/),
(v14/*: any*/),
(v13/*: any*/),
{
"alias": null,
"args": null,
@@ -632,10 +832,7 @@ return {
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v2/*: any*/),
(v3/*: any*/)
],
"selections": (v13/*: any*/),
"storageKey": null
},
(v8/*: any*/)
@@ -660,6 +857,94 @@ return {
"kind": "LinkedHandle",
"name": "audits"
},
{
"alias": null,
"args": (v12/*: any*/),
"concreteType": "ObligationConnection",
"kind": "LinkedField",
"name": "obligations",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "ObligationEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "Obligation",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "requirement",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "area",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "source",
"storageKey": null
},
(v6/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "owner",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
},
(v2/*: any*/)
],
"storageKey": null
},
(v8/*: any*/)
],
"storageKey": null
},
(v9/*: any*/)
],
"storageKey": null
},
(v10/*: any*/),
(v11/*: any*/)
],
"storageKey": "obligations(first:100)"
},
{
"alias": null,
"args": (v12/*: any*/),
"filters": null,
"handle": "connection",
"key": "FrameworkGraphControl_obligations",
"kind": "LinkedHandle",
"name": "obligations"
},
{
"alias": null,
"args": (v12/*: any*/),
@@ -694,7 +979,7 @@ return {
"name": "type",
"storageKey": null
},
(v14/*: any*/),
(v15/*: any*/),
(v8/*: any*/)
],
"storageKey": null
@@ -727,10 +1012,19 @@ return {
]
},
"params": {
"cacheID": "2ce9eb2cbe052019e86b2d0baecfb6f0",
"cacheID": "f7773b474bf5f22e9a7075c685839001",
"id": null,
"metadata": {
"connection": [
{
"count": null,
"cursor": null,
"direction": "forward",
"path": [
"node",
"stateOfApplicabilityControls"
]
},
{
"count": null,
"cursor": null,
@@ -758,6 +1052,15 @@ return {
"audits"
]
},
{
"count": null,
"cursor": null,
"direction": "forward",
"path": [
"node",
"obligations"
]
},
{
"count": null,
"cursor": null,
@@ -771,11 +1074,11 @@ return {
},
"name": "FrameworkGraphControlNodeQuery",
"operationKind": "query",
"text": "query FrameworkGraphControlNodeQuery(\n $controlId: ID!\n) {\n node(id: $controlId) {\n __typename\n ... on Control {\n id\n name\n sectionTitle\n description\n status\n exclusionJustification\n ...FrameworkControlDialogFragment\n measures(first: 100) {\n edges {\n node {\n id\n ...LinkedMeasuresCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n documents(first: 100) {\n edges {\n node {\n id\n ...LinkedDocumentsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n audits(first: 100) {\n edges {\n node {\n id\n ...LinkedAuditsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n snapshots(first: 100) {\n edges {\n node {\n id\n ...LinkedSnapshotsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n id\n }\n}\n\nfragment FrameworkControlDialogFragment on Control {\n id\n name\n description\n sectionTitle\n status\n exclusionJustification\n}\n\nfragment LinkedAuditsCardFragment on Audit {\n id\n name\n createdAt\n state\n validFrom\n validUntil\n framework {\n id\n name\n }\n}\n\nfragment LinkedDocumentsCardFragment on Document {\n id\n title\n createdAt\n documentType\n versions(first: 1) {\n edges {\n node {\n id\n status\n }\n }\n }\n}\n\nfragment LinkedMeasuresCardFragment on Measure {\n id\n name\n state\n}\n\nfragment LinkedSnapshotsCardFragment on Snapshot {\n id\n name\n description\n type\n createdAt\n}\n"
"text": "query FrameworkGraphControlNodeQuery(\n $controlId: ID!\n) {\n node(id: $controlId) {\n __typename\n ... on Control {\n id\n name\n sectionTitle\n description\n status\n exclusionJustification\n ...FrameworkControlDialogFragment\n stateOfApplicabilityControls(first: 100) {\n edges {\n node {\n id\n ...LinkedStatesOfApplicabilityCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n measures(first: 100) {\n edges {\n node {\n id\n ...LinkedMeasuresCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n documents(first: 100) {\n edges {\n node {\n id\n ...LinkedDocumentsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n audits(first: 100) {\n edges {\n node {\n id\n ...LinkedAuditsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n obligations(first: 100) {\n edges {\n node {\n id\n ...LinkedObligationsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n snapshots(first: 100) {\n edges {\n node {\n id\n ...LinkedSnapshotsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n id\n }\n}\n\nfragment FrameworkControlDialogFragment on Control {\n id\n name\n description\n sectionTitle\n status\n exclusionJustification\n bestPractice\n}\n\nfragment LinkedAuditsCardFragment on Audit {\n id\n name\n createdAt\n state\n validFrom\n validUntil\n framework {\n id\n name\n }\n}\n\nfragment LinkedDocumentsCardFragment on Document {\n id\n title\n createdAt\n documentType\n versions(first: 1) {\n edges {\n node {\n id\n status\n }\n }\n }\n}\n\nfragment LinkedMeasuresCardFragment on Measure {\n id\n name\n state\n}\n\nfragment LinkedObligationsCardFragment on Obligation {\n id\n requirement\n area\n source\n status\n owner {\n fullName\n id\n }\n}\n\nfragment LinkedSnapshotsCardFragment on Snapshot {\n id\n name\n description\n type\n createdAt\n}\n\nfragment LinkedStatesOfApplicabilityCardFragment on StateOfApplicabilityControl {\n id\n stateOfApplicabilityId\n controlId\n stateOfApplicability {\n id\n name\n }\n applicability\n justification\n}\n"
}
};
})();
(node as any).hash = "afc4bbbce8d8b3cd57ac2bf77db58e55";
(node as any).hash = "b28838e3c3c4cdd68906247d129799c8";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<6fcc115e1ab6df38ede8756968ae7a6a>>
* @generated SignedSource<<43528dc19e67fdeca407f5081e6252b9>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -210,6 +210,13 @@ return {
"kind": "ScalarField",
"name": "exclusionJustification",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "bestPractice",
"storageKey": null
}
],
"storageKey": null
@@ -242,12 +249,12 @@ return {
]
},
"params": {
"cacheID": "68c09567aff1176075300c645f5d117d",
"cacheID": "5af3d5c9f8d466c5d6a78d7bd5da70d1",
"id": null,
"metadata": {},
"name": "FrameworkGraphNodeQuery",
"operationKind": "query",
"text": "query FrameworkGraphNodeQuery(\n $frameworkId: ID!\n) {\n node(id: $frameworkId) {\n __typename\n ... on Framework {\n id\n name\n ...FrameworkDetailPageFragment\n }\n id\n }\n}\n\nfragment FrameworkDetailPageFragment on Framework {\n id\n name\n description\n lightLogoURL\n darkLogoURL\n organization {\n name\n id\n }\n controls(first: 250, orderBy: {field: SECTION_TITLE, direction: ASC}) {\n edges {\n node {\n id\n sectionTitle\n name\n status\n exclusionJustification\n }\n }\n }\n}\n"
"text": "query FrameworkGraphNodeQuery(\n $frameworkId: ID!\n) {\n node(id: $frameworkId) {\n __typename\n ... on Framework {\n id\n name\n ...FrameworkDetailPageFragment\n }\n id\n }\n}\n\nfragment FrameworkDetailPageFragment on Framework {\n id\n name\n description\n lightLogoURL\n darkLogoURL\n organization {\n name\n id\n }\n controls(first: 250, orderBy: {field: SECTION_TITLE, direction: ASC}) {\n edges {\n node {\n id\n sectionTitle\n name\n status\n exclusionJustification\n bestPractice\n }\n }\n }\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<6c659dc34af3bc7107a55d45f49075b5>>
* @generated SignedSource<<46f875946badbe73d5c1ab10f442763d>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -10,6 +10,7 @@
import { ConcreteRequest } from 'relay-runtime';
export type ObligationStatus = "COMPLIANT" | "NON_COMPLIANT" | "PARTIALLY_COMPLIANT";
export type ObligationType = "CONTRACTUAL" | "LEGAL";
export type CreateObligationInput = {
actionsToBeImplemented?: string | null | undefined;
area?: string | null | undefined;
@@ -21,6 +22,7 @@ export type CreateObligationInput = {
requirement?: string | null | undefined;
source?: string | null | undefined;
status: ObligationStatus;
type: ObligationType;
};
export type ObligationGraphCreateMutation$variables = {
connections: ReadonlyArray<string>;
@@ -44,6 +46,7 @@ export type ObligationGraphCreateMutation$data = {
readonly requirement: string | null | undefined;
readonly source: string | null | undefined;
readonly status: ObligationStatus;
readonly type: ObligationType;
};
};
};
@@ -130,6 +133,13 @@ v4 = {
"name": "regulator",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "type",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -249,16 +259,16 @@ return {
]
},
"params": {
"cacheID": "76eae037102523c7378b07856332c9ff",
"cacheID": "495da8600659a64f5d59ed86a56c8762",
"id": null,
"metadata": {},
"name": "ObligationGraphCreateMutation",
"operationKind": "mutation",
"text": "mutation ObligationGraphCreateMutation(\n $input: CreateObligationInput!\n) {\n createObligation(input: $input) {\n obligationEdge {\n node {\n id\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n createdAt\n }\n }\n }\n}\n"
"text": "mutation ObligationGraphCreateMutation(\n $input: CreateObligationInput!\n) {\n createObligation(input: $input) {\n obligationEdge {\n node {\n id\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n type\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n createdAt\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "f3d8ddbef3566e26b3fe65543d93d07d";
(node as any).hash = "e28cc6399325e7288ce7a71d3400acdb";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<d1b09bb9cf9c608b8b3ac1c2b55a109a>>
* @generated SignedSource<<3542cd7b93f38df062a93a1b9e325ff3>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -10,6 +10,7 @@
import { ConcreteRequest } from 'relay-runtime';
export type ObligationStatus = "COMPLIANT" | "NON_COMPLIANT" | "PARTIALLY_COMPLIANT";
export type ObligationType = "CONTRACTUAL" | "LEGAL";
export type ObligationGraphNodeQuery$variables = {
obligationId: string;
};
@@ -35,6 +36,7 @@ export type ObligationGraphNodeQuery$data = {
readonly source?: string | null | undefined;
readonly sourceId?: string | null | undefined;
readonly status?: ObligationStatus;
readonly type?: ObligationType;
readonly updatedAt?: any;
};
};
@@ -118,24 +120,31 @@ v10 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lastReviewDate",
"name": "type",
"storageKey": null
},
v11 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "dueDate",
"name": "lastReviewDate",
"storageKey": null
},
v12 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "status",
"name": "dueDate",
"storageKey": null
},
v13 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "status",
"storageKey": null
},
v14 = {
"alias": null,
"args": null,
"concreteType": "People",
@@ -154,7 +163,7 @@ v13 = {
],
"storageKey": null
},
v14 = {
v15 = {
"alias": null,
"args": null,
"concreteType": "Organization",
@@ -173,14 +182,14 @@ v14 = {
],
"storageKey": null
},
v15 = {
v16 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
v16 = {
v17 = {
"alias": null,
"args": null,
"kind": "ScalarField",
@@ -219,7 +228,8 @@ return {
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/),
(v16/*: any*/)
(v16/*: any*/),
(v17/*: any*/)
],
"type": "Obligation",
"abstractKey": null
@@ -269,7 +279,8 @@ return {
(v13/*: any*/),
(v14/*: any*/),
(v15/*: any*/),
(v16/*: any*/)
(v16/*: any*/),
(v17/*: any*/)
],
"type": "Obligation",
"abstractKey": null
@@ -280,16 +291,16 @@ return {
]
},
"params": {
"cacheID": "6fd1c9d6e9f9a5baa60e4d270fc16db7",
"cacheID": "049eff8ed7a7476c04d09b64c061c3a6",
"id": null,
"metadata": {},
"name": "ObligationGraphNodeQuery",
"operationKind": "query",
"text": "query ObligationGraphNodeQuery(\n $obligationId: ID!\n) {\n node(id: $obligationId) {\n __typename\n ... on Obligation {\n id\n snapshotId\n sourceId\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n"
"text": "query ObligationGraphNodeQuery(\n $obligationId: ID!\n) {\n node(id: $obligationId) {\n __typename\n ... on Obligation {\n id\n snapshotId\n sourceId\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n type\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n"
}
};
})();
(node as any).hash = "ddefa1f2514f429a8ff174646bccf254";
(node as any).hash = "c50090bdd31fc24e0fdb067677999f77";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<2fb713ad39d2976a25e4fee57edec2f3>>
* @generated SignedSource<<879c7bec9540c7d9e46eecb2fd5243d7>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -10,6 +10,7 @@
import { ConcreteRequest } from 'relay-runtime';
export type ObligationStatus = "COMPLIANT" | "NON_COMPLIANT" | "PARTIALLY_COMPLIANT";
export type ObligationType = "CONTRACTUAL" | "LEGAL";
export type UpdateObligationInput = {
actionsToBeImplemented?: string | null | undefined;
area?: string | null | undefined;
@@ -21,6 +22,7 @@ export type UpdateObligationInput = {
requirement?: string | null | undefined;
source?: string | null | undefined;
status?: ObligationStatus | null | undefined;
type?: ObligationType | null | undefined;
};
export type ObligationGraphUpdateMutation$variables = {
input: UpdateObligationInput;
@@ -41,6 +43,7 @@ export type ObligationGraphUpdateMutation$data = {
readonly requirement: string | null | undefined;
readonly source: string | null | undefined;
readonly status: ObligationStatus;
readonly type: ObligationType;
readonly updatedAt: any;
};
};
@@ -124,6 +127,13 @@ v2 = [
"name": "regulator",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "type",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -196,16 +206,16 @@ return {
"selections": (v2/*: any*/)
},
"params": {
"cacheID": "e42654b0cfd6ebeb8c78e8ec2f62c9c7",
"cacheID": "f9c2c73fd39c2d25eb6aa8d9e6670652",
"id": null,
"metadata": {},
"name": "ObligationGraphUpdateMutation",
"operationKind": "mutation",
"text": "mutation ObligationGraphUpdateMutation(\n $input: UpdateObligationInput!\n) {\n updateObligation(input: $input) {\n obligation {\n id\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n updatedAt\n }\n }\n}\n"
"text": "mutation ObligationGraphUpdateMutation(\n $input: UpdateObligationInput!\n) {\n updateObligation(input: $input) {\n obligation {\n id\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n type\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n updatedAt\n }\n }\n}\n"
}
};
})();
(node as any).hash = "68013ca15f0e4eaaa0b1ef877b4f528c";
(node as any).hash = "07663daac0c8341a570a0bf3a41c8b77";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<11dd6f7de6693a626306b674bb8cc4f0>>
* @generated SignedSource<<2307fb5807f0d42458650cfaf8ebdbba>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -9,7 +9,7 @@
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type SnapshotsType = "ASSETS" | "CONTINUAL_IMPROVEMENTS" | "DATA" | "NONCONFORMITIES" | "OBLIGATIONS" | "PROCESSING_ACTIVITIES" | "RISKS" | "VENDORS";
export type SnapshotsType = "ASSETS" | "CONTINUAL_IMPROVEMENTS" | "DATA" | "NONCONFORMITIES" | "OBLIGATIONS" | "PROCESSING_ACTIVITIES" | "RISKS" | "STATES_OF_APPLICABILITY" | "VENDORS";
export type CreateSnapshotInput = {
description?: string | null | undefined;
name: string;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<d6dc9bf5a6c36f140bb864def22c0134>>
* @generated SignedSource<<0b5ef79fa213c96a316a4e0a94afade8>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -9,7 +9,7 @@
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type SnapshotsType = "ASSETS" | "CONTINUAL_IMPROVEMENTS" | "DATA" | "NONCONFORMITIES" | "OBLIGATIONS" | "PROCESSING_ACTIVITIES" | "RISKS" | "VENDORS";
export type SnapshotsType = "ASSETS" | "CONTINUAL_IMPROVEMENTS" | "DATA" | "NONCONFORMITIES" | "OBLIGATIONS" | "PROCESSING_ACTIVITIES" | "RISKS" | "STATES_OF_APPLICABILITY" | "VENDORS";
export type SnapshotGraphNodeQuery$variables = {
snapshotId: string;
};

View File

@@ -0,0 +1,200 @@
/**
* @generated SignedSource<<3a91be997803d4a28d0db40aebe53f25>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type CreateStateOfApplicabilityInput = {
name: string;
organizationId: string;
ownerId: string;
};
export type StateOfApplicabilityGraphCreateMutation$variables = {
connections: ReadonlyArray<string>;
input: CreateStateOfApplicabilityInput;
};
export type StateOfApplicabilityGraphCreateMutation$data = {
readonly createStateOfApplicability: {
readonly stateOfApplicabilityEdge: {
readonly node: {
readonly createdAt: any;
readonly id: string;
readonly name: string;
readonly snapshotId: string | null | undefined;
readonly sourceId: string | null | undefined;
readonly updatedAt: any;
};
};
};
};
export type StateOfApplicabilityGraphCreateMutation = {
response: StateOfApplicabilityGraphCreateMutation$data;
variables: StateOfApplicabilityGraphCreateMutation$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,
"concreteType": "StateOfApplicabilityEdge",
"kind": "LinkedField",
"name": "stateOfApplicabilityEdge",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicability",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "sourceId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "snapshotId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "updatedAt",
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
};
return {
"fragment": {
"argumentDefinitions": [
(v0/*: any*/),
(v1/*: any*/)
],
"kind": "Fragment",
"metadata": null,
"name": "StateOfApplicabilityGraphCreateMutation",
"selections": [
{
"alias": null,
"args": (v2/*: any*/),
"concreteType": "CreateStateOfApplicabilityPayload",
"kind": "LinkedField",
"name": "createStateOfApplicability",
"plural": false,
"selections": [
(v3/*: any*/)
],
"storageKey": null
}
],
"type": "Mutation",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": [
(v1/*: any*/),
(v0/*: any*/)
],
"kind": "Operation",
"name": "StateOfApplicabilityGraphCreateMutation",
"selections": [
{
"alias": null,
"args": (v2/*: any*/),
"concreteType": "CreateStateOfApplicabilityPayload",
"kind": "LinkedField",
"name": "createStateOfApplicability",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"filters": null,
"handle": "prependEdge",
"key": "",
"kind": "LinkedHandle",
"name": "stateOfApplicabilityEdge",
"handleArgs": [
{
"kind": "Variable",
"name": "connections",
"variableName": "connections"
}
]
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "c1a3721f591bc17ed455a326eb9edead",
"id": null,
"metadata": {},
"name": "StateOfApplicabilityGraphCreateMutation",
"operationKind": "mutation",
"text": "mutation StateOfApplicabilityGraphCreateMutation(\n $input: CreateStateOfApplicabilityInput!\n) {\n createStateOfApplicability(input: $input) {\n stateOfApplicabilityEdge {\n node {\n id\n name\n sourceId\n snapshotId\n createdAt\n updatedAt\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "294d4fe89f8cbbbb4b8170a46dd3cd7a";
export default node;

View File

@@ -0,0 +1,132 @@
/**
* @generated SignedSource<<deb6f38f36dc011d0fc4fc060303a57a>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type DeleteStateOfApplicabilityInput = {
stateOfApplicabilityId: string;
};
export type StateOfApplicabilityGraphDeleteMutation$variables = {
connections: ReadonlyArray<string>;
input: DeleteStateOfApplicabilityInput;
};
export type StateOfApplicabilityGraphDeleteMutation$data = {
readonly deleteStateOfApplicability: {
readonly deletedStateOfApplicabilityId: string;
};
};
export type StateOfApplicabilityGraphDeleteMutation = {
response: StateOfApplicabilityGraphDeleteMutation$data;
variables: StateOfApplicabilityGraphDeleteMutation$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": "deletedStateOfApplicabilityId",
"storageKey": null
};
return {
"fragment": {
"argumentDefinitions": [
(v0/*: any*/),
(v1/*: any*/)
],
"kind": "Fragment",
"metadata": null,
"name": "StateOfApplicabilityGraphDeleteMutation",
"selections": [
{
"alias": null,
"args": (v2/*: any*/),
"concreteType": "DeleteStateOfApplicabilityPayload",
"kind": "LinkedField",
"name": "deleteStateOfApplicability",
"plural": false,
"selections": [
(v3/*: any*/)
],
"storageKey": null
}
],
"type": "Mutation",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": [
(v1/*: any*/),
(v0/*: any*/)
],
"kind": "Operation",
"name": "StateOfApplicabilityGraphDeleteMutation",
"selections": [
{
"alias": null,
"args": (v2/*: any*/),
"concreteType": "DeleteStateOfApplicabilityPayload",
"kind": "LinkedField",
"name": "deleteStateOfApplicability",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"filters": null,
"handle": "deleteEdge",
"key": "",
"kind": "ScalarHandle",
"name": "deletedStateOfApplicabilityId",
"handleArgs": [
{
"kind": "Variable",
"name": "connections",
"variableName": "connections"
}
]
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "197a2ed2b48d43372e16deae6e9b98c2",
"id": null,
"metadata": {},
"name": "StateOfApplicabilityGraphDeleteMutation",
"operationKind": "mutation",
"text": "mutation StateOfApplicabilityGraphDeleteMutation(\n $input: DeleteStateOfApplicabilityInput!\n) {\n deleteStateOfApplicability(input: $input) {\n deletedStateOfApplicabilityId\n }\n}\n"
}
};
})();
(node as any).hash = "92ec928d4ad0fe7ff4ae78ad9f1f329a";
export default node;

View File

@@ -0,0 +1,218 @@
/**
* @generated SignedSource<<9e7f481aa8c95332bc03c3974a6752f8>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type StateOfApplicabilityGraphForEditQuery$variables = {
stateOfApplicabilityId: string;
};
export type StateOfApplicabilityGraphForEditQuery$data = {
readonly node: {
readonly controls?: {
readonly edges: ReadonlyArray<{
readonly node: {
readonly framework: {
readonly id: string;
readonly name: string;
};
readonly id: string;
readonly name: string;
readonly sectionTitle: string;
};
}>;
};
readonly id?: string;
readonly name?: string;
};
};
export type StateOfApplicabilityGraphForEditQuery = {
response: StateOfApplicabilityGraphForEditQuery$data;
variables: StateOfApplicabilityGraphForEditQuery$variables;
};
const node: ConcreteRequest = (function(){
var v0 = [
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "stateOfApplicabilityId"
}
],
v1 = [
{
"kind": "Variable",
"name": "id",
"variableName": "stateOfApplicabilityId"
}
],
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": [
{
"kind": "Literal",
"name": "first",
"value": 1000
},
{
"kind": "Literal",
"name": "orderBy",
"value": {
"direction": "ASC",
"field": "SECTION_TITLE"
}
}
],
"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": [
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "sectionTitle",
"storageKey": null
},
(v3/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "Framework",
"kind": "LinkedField",
"name": "framework",
"plural": false,
"selections": [
(v2/*: any*/),
(v3/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": "controls(first:1000,orderBy:{\"direction\":\"ASC\",\"field\":\"SECTION_TITLE\"})"
};
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Fragment",
"metadata": null,
"name": "StateOfApplicabilityGraphForEditQuery",
"selections": [
{
"alias": null,
"args": (v1/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"kind": "InlineFragment",
"selections": [
(v2/*: any*/),
(v3/*: any*/),
(v4/*: any*/)
],
"type": "StateOfApplicability",
"abstractKey": null
}
],
"storageKey": null
}
],
"type": "Query",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "StateOfApplicabilityGraphForEditQuery",
"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*/)
],
"type": "StateOfApplicability",
"abstractKey": null
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "b6b5490aa177e6e7e8339060eac14a9c",
"id": null,
"metadata": {},
"name": "StateOfApplicabilityGraphForEditQuery",
"operationKind": "query",
"text": "query StateOfApplicabilityGraphForEditQuery(\n $stateOfApplicabilityId: ID!\n) {\n node(id: $stateOfApplicabilityId) {\n __typename\n ... on StateOfApplicability {\n id\n name\n controls(first: 1000, orderBy: {field: SECTION_TITLE, direction: ASC}) {\n edges {\n node {\n id\n sectionTitle\n name\n framework {\n id\n name\n }\n }\n }\n }\n }\n id\n }\n}\n"
}
};
})();
(node as any).hash = "e89010d6f8d66b9df856280a59d5f0c8";
export default node;

View File

@@ -0,0 +1,343 @@
/**
* @generated SignedSource<<d96c71d40860ec6fc2e2ac8a5ab992f8>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
import { FragmentRefs } from "relay-runtime";
export type StateOfApplicabilityGraphNodeQuery$variables = {
stateOfApplicabilityId: string;
};
export type StateOfApplicabilityGraphNodeQuery$data = {
readonly node: {
readonly createdAt?: any;
readonly id?: string;
readonly name?: string;
readonly organization?: {
readonly id: string;
} | null | undefined;
readonly owner?: {
readonly fullName: string;
readonly id: string;
};
readonly snapshotId?: string | null | undefined;
readonly sourceId?: string | null | undefined;
readonly updatedAt?: any;
readonly " $fragmentSpreads": FragmentRefs<"StateOfApplicabilityControlsTabFragment">;
};
};
export type StateOfApplicabilityGraphNodeQuery = {
response: StateOfApplicabilityGraphNodeQuery$data;
variables: StateOfApplicabilityGraphNodeQuery$variables;
};
const node: ConcreteRequest = (function(){
var v0 = [
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "stateOfApplicabilityId"
}
],
v1 = [
{
"kind": "Variable",
"name": "id",
"variableName": "stateOfApplicabilityId"
}
],
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": "sourceId",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "snapshotId",
"storageKey": null
},
v6 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
v7 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "updatedAt",
"storageKey": null
},
v8 = {
"alias": null,
"args": null,
"concreteType": "Organization",
"kind": "LinkedField",
"name": "organization",
"plural": false,
"selections": [
(v2/*: any*/)
],
"storageKey": null
},
v9 = {
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "owner",
"plural": false,
"selections": [
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
}
],
"storageKey": null
};
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Fragment",
"metadata": null,
"name": "StateOfApplicabilityGraphNodeQuery",
"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*/),
{
"args": null,
"kind": "FragmentSpread",
"name": "StateOfApplicabilityControlsTabFragment"
}
],
"type": "StateOfApplicability",
"abstractKey": null
}
],
"storageKey": null
}
],
"type": "Query",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "StateOfApplicabilityGraphNodeQuery",
"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*/),
{
"alias": "controlsInfo",
"args": [
{
"kind": "Literal",
"name": "first",
"value": 0
}
],
"concreteType": "ControlConnection",
"kind": "LinkedField",
"name": "controls",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "totalCount",
"storageKey": null
}
],
"storageKey": "controls(first:0)"
},
{
"alias": null,
"args": null,
"concreteType": "AvailableStateOfApplicabilityControl",
"kind": "LinkedField",
"name": "availableControls",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "controlId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "sectionTitle",
"storageKey": null
},
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "frameworkId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "frameworkName",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "organizationId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "stateOfApplicabilityId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "applicability",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "justification",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "bestPractice",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "regulatory",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "contractual",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "riskAssessment",
"storageKey": null
}
],
"storageKey": null
}
],
"type": "StateOfApplicability",
"abstractKey": null
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "2c2c6535c53d2073bd41b39771d1afd9",
"id": null,
"metadata": {},
"name": "StateOfApplicabilityGraphNodeQuery",
"operationKind": "query",
"text": "query StateOfApplicabilityGraphNodeQuery(\n $stateOfApplicabilityId: ID!\n) {\n node(id: $stateOfApplicabilityId) {\n __typename\n ... on StateOfApplicability {\n id\n name\n sourceId\n snapshotId\n createdAt\n updatedAt\n organization {\n id\n }\n owner {\n id\n fullName\n }\n ...StateOfApplicabilityControlsTabFragment\n }\n id\n }\n}\n\nfragment StateOfApplicabilityControlsTabFragment on StateOfApplicability {\n id\n controlsInfo: controls(first: 0) {\n totalCount\n }\n availableControls {\n controlId\n sectionTitle\n name\n frameworkId\n frameworkName\n organizationId\n stateOfApplicabilityId\n applicability\n justification\n bestPractice\n regulatory\n contractual\n riskAssessment\n }\n}\n"
}
};
})();
(node as any).hash = "88e882f3c0f529cc7224eb19a91191cf";
export default node;

View File

@@ -0,0 +1,301 @@
/**
* @generated SignedSource<<28b9e5609f5d7c082c209bf839533d45>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ReaderFragment } from 'relay-runtime';
import { FragmentRefs } from "relay-runtime";
export type StateOfApplicabilityGraphPaginatedFragment$data = {
readonly id: string;
readonly statesOfApplicability: {
readonly __id: string;
readonly edges: ReadonlyArray<{
readonly node: {
readonly controlsInfo: {
readonly totalCount: number;
};
readonly createdAt: any;
readonly id: string;
readonly name: string;
readonly snapshotId: string | null | undefined;
readonly sourceId: string | null | undefined;
readonly updatedAt: any;
};
}>;
};
readonly " $fragmentType": "StateOfApplicabilityGraphPaginatedFragment";
};
export type StateOfApplicabilityGraphPaginatedFragment$key = {
readonly " $data"?: StateOfApplicabilityGraphPaginatedFragment$data;
readonly " $fragmentSpreads": FragmentRefs<"StateOfApplicabilityGraphPaginatedFragment">;
};
import StateOfApplicabilityListQuery_graphql from './StateOfApplicabilityListQuery.graphql';
const node: ReaderFragment = (function(){
var v0 = [
"statesOfApplicability"
],
v1 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
};
return {
"argumentDefinitions": [
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "after"
},
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "before"
},
{
"defaultValue": {
"snapshotId": null
},
"kind": "LocalArgument",
"name": "filter"
},
{
"defaultValue": 50,
"kind": "LocalArgument",
"name": "first"
},
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "last"
},
{
"defaultValue": {
"direction": "DESC",
"field": "CREATED_AT"
},
"kind": "LocalArgument",
"name": "order"
}
],
"kind": "Fragment",
"metadata": {
"connection": [
{
"count": null,
"cursor": null,
"direction": "bidirectional",
"path": (v0/*: any*/)
}
],
"refetch": {
"connection": {
"forward": {
"count": "first",
"cursor": "after"
},
"backward": {
"count": "last",
"cursor": "before"
},
"path": (v0/*: any*/)
},
"fragmentPathInResult": [
"node"
],
"operation": StateOfApplicabilityListQuery_graphql,
"identifierInfo": {
"identifierField": "id",
"identifierQueryVariableName": "id"
}
}
},
"name": "StateOfApplicabilityGraphPaginatedFragment",
"selections": [
{
"alias": "statesOfApplicability",
"args": [
{
"kind": "Variable",
"name": "filter",
"variableName": "filter"
},
{
"kind": "Variable",
"name": "orderBy",
"variableName": "order"
}
],
"concreteType": "StateOfApplicabilityConnection",
"kind": "LinkedField",
"name": "__StateOfApplicabilityGraphPaginatedQuery_statesOfApplicability_connection",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicabilityEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicability",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v1/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "sourceId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "snapshotId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "updatedAt",
"storageKey": null
},
{
"alias": "controlsInfo",
"args": [
{
"kind": "Literal",
"name": "first",
"value": 0
}
],
"concreteType": "ControlConnection",
"kind": "LinkedField",
"name": "controls",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "totalCount",
"storageKey": null
}
],
"storageKey": "controls(first:0)"
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
}
],
"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": "endCursor",
"storageKey": null
},
{
"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
}
],
"storageKey": null
},
{
"kind": "ClientExtension",
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__id",
"storageKey": null
}
]
}
],
"storageKey": null
},
(v1/*: any*/)
],
"type": "Organization",
"abstractKey": null
};
})();
(node as any).hash = "895fc79e61b95bf83997e3d5bcc7f367";
export default node;

View File

@@ -0,0 +1,318 @@
/**
* @generated SignedSource<<1c22107bf5691e7764aa30352d99631e>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
import { FragmentRefs } from "relay-runtime";
export type StateOfApplicabilityGraphPaginatedQuery$variables = {
organizationId: string;
};
export type StateOfApplicabilityGraphPaginatedQuery$data = {
readonly organization: {
readonly id?: string;
readonly " $fragmentSpreads": FragmentRefs<"StateOfApplicabilityGraphPaginatedFragment">;
};
};
export type StateOfApplicabilityGraphPaginatedQuery = {
response: StateOfApplicabilityGraphPaginatedQuery$data;
variables: StateOfApplicabilityGraphPaginatedQuery$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": "id",
"storageKey": null
},
v3 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
},
v4 = [
{
"kind": "Literal",
"name": "filter",
"value": {
"snapshotId": null
}
},
{
"kind": "Literal",
"name": "first",
"value": 50
},
{
"kind": "Literal",
"name": "orderBy",
"value": {
"direction": "DESC",
"field": "CREATED_AT"
}
}
];
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Fragment",
"metadata": null,
"name": "StateOfApplicabilityGraphPaginatedQuery",
"selections": [
{
"alias": "organization",
"args": (v1/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"kind": "InlineFragment",
"selections": [
(v2/*: any*/),
{
"args": null,
"kind": "FragmentSpread",
"name": "StateOfApplicabilityGraphPaginatedFragment"
}
],
"type": "Organization",
"abstractKey": null
}
],
"storageKey": null
}
],
"type": "Query",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "StateOfApplicabilityGraphPaginatedQuery",
"selections": [
{
"alias": "organization",
"args": (v1/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
(v2/*: any*/),
{
"kind": "InlineFragment",
"selections": [
{
"alias": null,
"args": (v4/*: any*/),
"concreteType": "StateOfApplicabilityConnection",
"kind": "LinkedField",
"name": "statesOfApplicability",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicabilityEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicability",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "sourceId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "snapshotId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "updatedAt",
"storageKey": null
},
{
"alias": "controlsInfo",
"args": [
{
"kind": "Literal",
"name": "first",
"value": 0
}
],
"concreteType": "ControlConnection",
"kind": "LinkedField",
"name": "controls",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "totalCount",
"storageKey": null
}
],
"storageKey": "controls(first:0)"
},
(v3/*: 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": "endCursor",
"storageKey": null
},
{
"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
}
],
"storageKey": null
},
{
"kind": "ClientExtension",
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__id",
"storageKey": null
}
]
}
],
"storageKey": "statesOfApplicability(filter:{\"snapshotId\":null},first:50,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})"
},
{
"alias": null,
"args": (v4/*: any*/),
"filters": [
"orderBy",
"filter"
],
"handle": "connection",
"key": "StateOfApplicabilityGraphPaginatedQuery_statesOfApplicability",
"kind": "LinkedHandle",
"name": "statesOfApplicability"
}
],
"type": "Organization",
"abstractKey": null
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "c5f5cb61622ba5e4309521002c23a530",
"id": null,
"metadata": {},
"name": "StateOfApplicabilityGraphPaginatedQuery",
"operationKind": "query",
"text": "query StateOfApplicabilityGraphPaginatedQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n ...StateOfApplicabilityGraphPaginatedFragment\n }\n id\n }\n}\n\nfragment StateOfApplicabilityGraphPaginatedFragment on Organization {\n statesOfApplicability(first: 50, orderBy: {direction: DESC, field: CREATED_AT}, filter: {snapshotId: null}) {\n edges {\n node {\n id\n name\n sourceId\n snapshotId\n createdAt\n updatedAt\n controlsInfo: controls(first: 0) {\n totalCount\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n"
}
};
})();
(node as any).hash = "e5eb3f251055f7dd34f7af30251226ca";
export default node;

View File

@@ -0,0 +1,171 @@
/**
* @generated SignedSource<<fe37fa58e9c374383c4f59dac08aed39>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type UpdateStateOfApplicabilityInput = {
id: string;
name?: string | null | undefined;
ownerId?: string | null | undefined;
};
export type StateOfApplicabilityGraphUpdateMutation$variables = {
input: UpdateStateOfApplicabilityInput;
};
export type StateOfApplicabilityGraphUpdateMutation$data = {
readonly updateStateOfApplicability: {
readonly stateOfApplicability: {
readonly createdAt: any;
readonly id: string;
readonly name: string;
readonly owner: {
readonly fullName: string;
readonly id: string;
};
readonly snapshotId: string | null | undefined;
readonly sourceId: string | null | undefined;
readonly updatedAt: any;
};
};
};
export type StateOfApplicabilityGraphUpdateMutation = {
response: StateOfApplicabilityGraphUpdateMutation$data;
variables: StateOfApplicabilityGraphUpdateMutation$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": [
{
"kind": "Variable",
"name": "input",
"variableName": "input"
}
],
"concreteType": "UpdateStateOfApplicabilityPayload",
"kind": "LinkedField",
"name": "updateStateOfApplicability",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicability",
"kind": "LinkedField",
"name": "stateOfApplicability",
"plural": false,
"selections": [
(v1/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "sourceId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "snapshotId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "updatedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "owner",
"plural": false,
"selections": [
(v1/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
}
];
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Fragment",
"metadata": null,
"name": "StateOfApplicabilityGraphUpdateMutation",
"selections": (v2/*: any*/),
"type": "Mutation",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "StateOfApplicabilityGraphUpdateMutation",
"selections": (v2/*: any*/)
},
"params": {
"cacheID": "609bd562b84162f2807ee89b3c3273aa",
"id": null,
"metadata": {},
"name": "StateOfApplicabilityGraphUpdateMutation",
"operationKind": "mutation",
"text": "mutation StateOfApplicabilityGraphUpdateMutation(\n $input: UpdateStateOfApplicabilityInput!\n) {\n updateStateOfApplicability(input: $input) {\n stateOfApplicability {\n id\n name\n sourceId\n snapshotId\n createdAt\n updatedAt\n owner {\n id\n fullName\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "e8810210629ef7fad113616c06f141ee";
export default node;

View File

@@ -0,0 +1,399 @@
/**
* @generated SignedSource<<e0d47d3fdb15b30f904396b7bcd1328f>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
import { FragmentRefs } from "relay-runtime";
export type OrderDirection = "ASC" | "DESC";
export type StateOfApplicabilityOrderField = "CREATED_AT" | "NAME";
export type StateOfApplicabilityFilter = {
snapshotId?: string | null | undefined;
};
export type StateOfApplicabilityOrder = {
direction: OrderDirection;
field: StateOfApplicabilityOrderField;
};
export type StateOfApplicabilityListQuery$variables = {
after?: any | null | undefined;
before?: any | null | undefined;
filter?: StateOfApplicabilityFilter | null | undefined;
first?: number | null | undefined;
id: string;
last?: number | null | undefined;
order?: StateOfApplicabilityOrder | null | undefined;
};
export type StateOfApplicabilityListQuery$data = {
readonly node: {
readonly " $fragmentSpreads": FragmentRefs<"StateOfApplicabilityGraphPaginatedFragment">;
};
};
export type StateOfApplicabilityListQuery = {
response: StateOfApplicabilityListQuery$data;
variables: StateOfApplicabilityListQuery$variables;
};
const node: ConcreteRequest = (function(){
var v0 = {
"defaultValue": null,
"kind": "LocalArgument",
"name": "after"
},
v1 = {
"defaultValue": null,
"kind": "LocalArgument",
"name": "before"
},
v2 = {
"defaultValue": {
"snapshotId": null
},
"kind": "LocalArgument",
"name": "filter"
},
v3 = {
"defaultValue": 50,
"kind": "LocalArgument",
"name": "first"
},
v4 = {
"defaultValue": null,
"kind": "LocalArgument",
"name": "id"
},
v5 = {
"defaultValue": null,
"kind": "LocalArgument",
"name": "last"
},
v6 = {
"defaultValue": {
"direction": "DESC",
"field": "CREATED_AT"
},
"kind": "LocalArgument",
"name": "order"
},
v7 = [
{
"kind": "Variable",
"name": "id",
"variableName": "id"
}
],
v8 = {
"kind": "Variable",
"name": "after",
"variableName": "after"
},
v9 = {
"kind": "Variable",
"name": "before",
"variableName": "before"
},
v10 = {
"kind": "Variable",
"name": "filter",
"variableName": "filter"
},
v11 = {
"kind": "Variable",
"name": "first",
"variableName": "first"
},
v12 = {
"kind": "Variable",
"name": "last",
"variableName": "last"
},
v13 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
},
v14 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v15 = [
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
{
"kind": "Variable",
"name": "orderBy",
"variableName": "order"
}
];
return {
"fragment": {
"argumentDefinitions": [
(v0/*: any*/),
(v1/*: any*/),
(v2/*: any*/),
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/)
],
"kind": "Fragment",
"metadata": null,
"name": "StateOfApplicabilityListQuery",
"selections": [
{
"alias": null,
"args": (v7/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"args": [
(v8/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
{
"kind": "Variable",
"name": "order",
"variableName": "order"
}
],
"kind": "FragmentSpread",
"name": "StateOfApplicabilityGraphPaginatedFragment"
}
],
"storageKey": null
}
],
"type": "Query",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": [
(v0/*: any*/),
(v1/*: any*/),
(v2/*: any*/),
(v3/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v4/*: any*/)
],
"kind": "Operation",
"name": "StateOfApplicabilityListQuery",
"selections": [
{
"alias": null,
"args": (v7/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v13/*: any*/),
(v14/*: any*/),
{
"kind": "InlineFragment",
"selections": [
{
"alias": null,
"args": (v15/*: any*/),
"concreteType": "StateOfApplicabilityConnection",
"kind": "LinkedField",
"name": "statesOfApplicability",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicabilityEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "StateOfApplicability",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v14/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "sourceId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "snapshotId",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "updatedAt",
"storageKey": null
},
{
"alias": "controlsInfo",
"args": [
{
"kind": "Literal",
"name": "first",
"value": 0
}
],
"concreteType": "ControlConnection",
"kind": "LinkedField",
"name": "controls",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "totalCount",
"storageKey": null
}
],
"storageKey": "controls(first:0)"
},
(v13/*: 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": "endCursor",
"storageKey": null
},
{
"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
}
],
"storageKey": null
},
{
"kind": "ClientExtension",
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__id",
"storageKey": null
}
]
}
],
"storageKey": null
},
{
"alias": null,
"args": (v15/*: any*/),
"filters": [
"orderBy",
"filter"
],
"handle": "connection",
"key": "StateOfApplicabilityGraphPaginatedQuery_statesOfApplicability",
"kind": "LinkedHandle",
"name": "statesOfApplicability"
}
],
"type": "Organization",
"abstractKey": null
}
],
"storageKey": null
}
]
},
"params": {
"cacheID": "d3227559321509a2a525848a0e26e20b",
"id": null,
"metadata": {},
"name": "StateOfApplicabilityListQuery",
"operationKind": "query",
"text": "query StateOfApplicabilityListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $filter: StateOfApplicabilityFilter = {snapshotId: null}\n $first: Int = 50\n $last: Int = null\n $order: StateOfApplicabilityOrder = {direction: DESC, field: CREATED_AT}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...StateOfApplicabilityGraphPaginatedFragment_4cFWzS\n id\n }\n}\n\nfragment StateOfApplicabilityGraphPaginatedFragment_4cFWzS on Organization {\n statesOfApplicability(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: $filter) {\n edges {\n node {\n id\n name\n sourceId\n snapshotId\n createdAt\n updatedAt\n controlsInfo: controls(first: 0) {\n totalCount\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n"
}
};
})();
(node as any).hash = "895fc79e61b95bf83997e3d5bcc7f367";
export default node;