Signed-off-by: Bryan Frimin <bryan@getprobo.com> Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
256 lines
6.0 KiB
TypeScript
256 lines
6.0 KiB
TypeScript
/**
|
|
* @generated SignedSource<<ec5910871c59f229db361be238007976>>
|
|
* @lightSyntaxTransform
|
|
* @nogrep
|
|
*/
|
|
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
// @ts-nocheck
|
|
|
|
import { ConcreteRequest } from 'relay-runtime';
|
|
export type DocumentType = "ISMS" | "OTHER" | "POLICY";
|
|
export type DocumentLinkDialogQuery$variables = {
|
|
organizationId: string;
|
|
};
|
|
export type DocumentLinkDialogQuery$data = {
|
|
readonly organization: {
|
|
readonly documents?: {
|
|
readonly edges: ReadonlyArray<{
|
|
readonly node: {
|
|
readonly documentType: DocumentType;
|
|
readonly id: string;
|
|
readonly title: string;
|
|
};
|
|
}>;
|
|
};
|
|
readonly id: string;
|
|
};
|
|
};
|
|
export type DocumentLinkDialogQuery = {
|
|
response: DocumentLinkDialogQuery$data;
|
|
variables: DocumentLinkDialogQuery$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 = [
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"concreteType": "DocumentEdge",
|
|
"kind": "LinkedField",
|
|
"name": "edges",
|
|
"plural": true,
|
|
"selections": [
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"concreteType": "Document",
|
|
"kind": "LinkedField",
|
|
"name": "node",
|
|
"plural": false,
|
|
"selections": [
|
|
(v2/*: any*/),
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"kind": "ScalarField",
|
|
"name": "title",
|
|
"storageKey": null
|
|
},
|
|
{
|
|
"alias": null,
|
|
"args": null,
|
|
"kind": "ScalarField",
|
|
"name": "documentType",
|
|
"storageKey": null
|
|
},
|
|
(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
|
|
}
|
|
],
|
|
"storageKey": null
|
|
}
|
|
],
|
|
v5 = [
|
|
{
|
|
"kind": "Literal",
|
|
"name": "first",
|
|
"value": 100
|
|
}
|
|
];
|
|
return {
|
|
"fragment": {
|
|
"argumentDefinitions": (v0/*: any*/),
|
|
"kind": "Fragment",
|
|
"metadata": null,
|
|
"name": "DocumentLinkDialogQuery",
|
|
"selections": [
|
|
{
|
|
"alias": "organization",
|
|
"args": (v1/*: any*/),
|
|
"concreteType": null,
|
|
"kind": "LinkedField",
|
|
"name": "node",
|
|
"plural": false,
|
|
"selections": [
|
|
(v2/*: any*/),
|
|
{
|
|
"kind": "InlineFragment",
|
|
"selections": [
|
|
{
|
|
"alias": "documents",
|
|
"args": null,
|
|
"concreteType": "DocumentConnection",
|
|
"kind": "LinkedField",
|
|
"name": "__Organization__documents_connection",
|
|
"plural": false,
|
|
"selections": (v4/*: any*/),
|
|
"storageKey": null
|
|
}
|
|
],
|
|
"type": "Organization",
|
|
"abstractKey": null
|
|
}
|
|
],
|
|
"storageKey": null
|
|
}
|
|
],
|
|
"type": "Query",
|
|
"abstractKey": null
|
|
},
|
|
"kind": "Request",
|
|
"operation": {
|
|
"argumentDefinitions": (v0/*: any*/),
|
|
"kind": "Operation",
|
|
"name": "DocumentLinkDialogQuery",
|
|
"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": (v5/*: any*/),
|
|
"concreteType": "DocumentConnection",
|
|
"kind": "LinkedField",
|
|
"name": "documents",
|
|
"plural": false,
|
|
"selections": (v4/*: any*/),
|
|
"storageKey": "documents(first:100)"
|
|
},
|
|
{
|
|
"alias": null,
|
|
"args": (v5/*: any*/),
|
|
"filters": null,
|
|
"handle": "connection",
|
|
"key": "Organization__documents",
|
|
"kind": "LinkedHandle",
|
|
"name": "documents"
|
|
}
|
|
],
|
|
"type": "Organization",
|
|
"abstractKey": null
|
|
}
|
|
],
|
|
"storageKey": null
|
|
}
|
|
]
|
|
},
|
|
"params": {
|
|
"cacheID": "0905fffe448540bf9c3d8abcbb5b7583",
|
|
"id": null,
|
|
"metadata": {
|
|
"connection": [
|
|
{
|
|
"count": null,
|
|
"cursor": null,
|
|
"direction": "forward",
|
|
"path": [
|
|
"organization",
|
|
"documents"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "DocumentLinkDialogQuery",
|
|
"operationKind": "query",
|
|
"text": "query DocumentLinkDialogQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n documents(first: 100) {\n edges {\n node {\n id\n title\n documentType\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n"
|
|
}
|
|
};
|
|
})();
|
|
|
|
(node as any).hash = "6994e268de74f2102f48dc3e8156a797";
|
|
|
|
export default node;
|