feat: update datacat subgraph to 0.1.0#155
Open
dls-graph-schema-federator[bot] wants to merge 1 commit into
Open
feat: update datacat subgraph to 0.1.0#155dls-graph-schema-federator[bot] wants to merge 1 commit into
dls-graph-schema-federator[bot] wants to merge 1 commit into
Conversation
diff --git a/tmp/old_sorted.json b/tmp/new_sorted.json
index 7175404..e2ee369 100644
--- a/tmp/old_sorted.json
+++ b/tmp/new_sorted.json
@@ -653,6 +653,159 @@
"typeName": "Query"
}
]
+ },
+ {
+ "childNodes": [
+ {
+ "fieldNames": [
+ "id",
+ "title",
+ "description",
+ "createdTime",
+ "updatedTime",
+ "location",
+ "type",
+ "dataset"
+ ],
+ "typeName": "Attachment"
+ },
+ {
+ "fieldNames": [
+ "id",
+ "title",
+ "description",
+ "createdTime",
+ "updatedTime",
+ "type",
+ "data",
+ "dataSchema",
+ "scanNumber",
+ "attachments",
+ "tags",
+ "instrumentSession"
+ ],
+ "typeName": "Dataset"
+ },
+ {
+ "fieldNames": [
+ "edges",
+ "pageInfo"
+ ],
+ "typeName": "DatasetConnection"
+ },
+ {
+ "fieldNames": [
+ "node",
+ "cursor"
+ ],
+ "typeName": "DatasetEdge"
+ },
+ {
+ "fieldNames": [
+ "hasNextPage",
+ "hasPreviousPage",
+ "startCursor",
+ "endCursor"
+ ],
+ "typeName": "PageInfo"
+ },
+ {
+ "fieldNames": [
+ "datasetId",
+ "uploadUrl",
+ "location"
+ ],
+ "typeName": "PresignedUrlInfo"
+ }
+ ],
+ "customGraphql": {
+ "federation": {
+ "enabled": true,
+ "serviceSdl": "directive @oneOf on INPUT_OBJECT\n\nschema @link(url: \"https://specs.apollo.dev/federation/v2.7\", import: [\"@external\", \"@key\", \"@provides\", \"@shareable\"]) {\n query: Query\n mutation: Mutation\n}\n\n\"\"\"Attachment to dataset\"\"\"\ntype Attachment {\n \"\"\"Internal identifier for attachment\"\"\"\n id: Int!\n\n \"\"\"Title of attachment\"\"\"\n title: String\n\n \"\"\"Short summary of attachment\"\"\"\n description: String\n\n \"\"\"Created timestamp\"\"\"\n createdTime: DateTime!\n\n \"\"\"Modified timestamp\"\"\"\n updatedTime: DateTime!\n\n \"\"\"Where attachment can be accessed\"\"\"\n location: String!\n\n \"\"\"Type of attachment (could be file type)\"\"\"\n type: String!\n dataset: Dataset!\n}\n\n\"\"\"Values to add attachment to dataset\"\"\"\ninput AttachmentCreateInput {\n \"\"\"Title of attachment\"\"\"\n title: String\n\n \"\"\"Short summary of attachment\"\"\"\n description: String\n\n \"\"\"\n Where attachment can be accessed. This should be an s3 object key if attachment type is 'image'\n \"\"\"\n location: String!\n\n \"\"\"Type of attachment (could be file type)\"\"\"\n type: String!\n\n \"\"\"Local identifier for dataset.\"\"\"\n datasetId: Int!\n}\n\n\"\"\"Required fields to get presigned upload URL\"\"\"\ninput AttachmentCreateUrlInput {\n \"\"\"Local identifier for dataset.\"\"\"\n datasetId: Int!\n\n \"\"\"Name of the attachment file\"\"\"\n fileName: String!\n\n \"\"\"Type of attachment (could be file type)\"\"\"\n fileType: String!\n\n \"\"\"Size of the attachemnt file (in Bytes)\"\"\"\n fileSize: Int!\n}\n\n\"\"\"Values to update an existing attachment\"\"\"\ninput AttachmentUpdateInput {\n \"\"\"Title of attachment\"\"\"\n title: String\n\n \"\"\"Short summary of attachment\"\"\"\n description: String\n}\n\n\"\"\"Dataset information\"\"\"\ntype Dataset {\n \"\"\"Local identifier for dataset.\"\"\"\n id: Int!\n\n \"\"\"Title of dataset\"\"\"\n title: String!\n\n \"\"\"Short description about dataset\"\"\"\n description: String\n\n \"\"\"Created timestamp\"\"\"\n createdTime: DateTime!\n\n \"\"\"Modified timestamp\"\"\"\n updatedTime: DateTime!\n\n \"\"\"Type of dataset (raw or derived)\"\"\"\n type: DatasetTypeEnum!\n\n \"\"\"Data about the dataset\"\"\"\n data: JSON!\n\n \"\"\"JSON schema used to validate data\"\"\"\n dataSchema: String!\n\n \"\"\"Scan that produced this dataset\"\"\"\n scanNumber: Int\n attachments: [Attachment!]!\n tags: [String!]!\n\n \"\"\"The instrument sessions that this dataset is associated with\"\"\"\n instrumentSession: InstrumentSession! @provides(fields: \"instrumentSessionNumber proposal{ proposalNumber }\")\n}\n\ntype DatasetConnection {\n edges: [DatasetEdge!]!\n pageInfo: PageInfo!\n}\n\n\"\"\"Values to create a new dataset\"\"\"\ninput DatasetCreateInput {\n \"\"\"Title of dataset\"\"\"\n title: String!\n\n \"\"\"Short description about dataset\"\"\"\n description: String = null\n\n \"\"\"Type of dataset (raw or derived)\"\"\"\n type: DatasetTypeEnum!\n\n \"\"\"Data about the dataset\"\"\"\n data: JSON!\n\n \"\"\"JSON schema used to validate data\"\"\"\n dataSchema: String!\n\n \"\"\"Proposal number (often 5 digits)\"\"\"\n proposalNumber: Int!\n\n \"\"\"Session dataset was created (often single digit appended to proposal)\"\"\"\n instrumentSessionNumber: Int!\n\n \"\"\"Scan that produced this dataset\"\"\"\n scanNumber: Int = null\n}\n\ntype DatasetEdge {\n node: Dataset!\n cursor: String!\n}\n\ninput DatasetFilterInput {\n \"\"\"Filter on the `name` field of `Dataset`\"\"\"\n title: StringOperatorInput = null\n\n \"\"\"Filter on the `data` field of `Dataset`\"\"\"\n data: [JSONOperatorInput!] = null\n\n \"\"\"Filter on tags\"\"\"\n tags: TagStringArrayOperatorInput = null\n}\n\nenum DatasetTypeEnum {\n \"\"\"A raw scan without processing\"\"\"\n RAW\n\n \"\"\"The result of a processed scan\"\"\"\n DERIVED\n}\n\n\"\"\"Values to update an existing dataset\"\"\"\ninput DatasetUpdateInput {\n \"\"\"Title of dataset\"\"\"\n title: String\n\n \"\"\"Short description about dataset\"\"\"\n description: String\n}\n\n\"\"\"Date with time (isoformat)\"\"\"\nscalar DateTime\n\ninput DatetimeOperatorInput {\n \"\"\"\n Will filter to items where the `DateTime` field is greater than (i.e. after) the provided value\n \"\"\"\n gt: DateTime = null\n\n \"\"\"\n Will filter to items where the `DateTime` field is less than (i.e. before) the provided value\n \"\"\"\n lt: DateTime = null\n}\n\ntype InstrumentSession @key(fields: \"instrumentSessionNumber proposal { proposalNumber }\") {\n instrumentSessionNumber: Int! @external\n proposal: Proposal @external\n\n \"\"\"Datasets associated with a given instrument session\"\"\"\n datasets(pagination: PaginationInput = null, filter: DatasetFilterInput = null): DatasetConnection!\n}\n\n\"\"\"Values required to uniquely identify an instrument session\"\"\"\ninput InstrumentSessionKey {\n \"\"\"Proposal number (often 5 digits)\"\"\"\n proposalNumber: Int!\n\n \"\"\"Session dataset was created (often single digit appended to proposal)\"\"\"\n instrumentSessionNumber: Int!\n}\n\n\"\"\"\nThe `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).\n\"\"\"\nscalar JSON @specifiedBy(url: \"https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf\")\n\ninput JSONOperator @oneOf {\n stringOperator: StringOperatorInput = null\n datetimeOperator: DatetimeOperatorInput = null\n numericOperator: NumericOperatorInput = null\n}\n\ninput JSONOperatorInput {\n \"\"\"A JSON path specifying the value to filter. Must start with '$.'\"\"\"\n path: String!\n\n \"\"\"The operator to apply to the JSON field\"\"\"\n operator: JSONOperator!\n}\n\ntype Mutation {\n addDataset(createInput: DatasetCreateInput!): Dataset!\n updateDataset(id: Int!, updateInput: DatasetUpdateInput!): Dataset\n addAttachment(createInput: AttachmentCreateInput!): Attachment!\n updateAttachment(id: Int!, updateInput: AttachmentUpdateInput!): Attachment\n createAttachmentUploadUrl(createInput: [AttachmentCreateUrlInput!]!): [PresignedUrlInfo!]!\n addTags(tagInput: TagCreateInput!): [String!]!\n deleteDataset(id: Int!): Void\n deleteAttachment(id: Int!): Void\n removeTags(tagInput: TagRemoveInput!): Void\n}\n\ninput NumericOperatorInput {\n \"\"\"\n Will filter to items where the numeric field is greater than the provided value\n \"\"\"\n gt: Float = null\n\n \"\"\"\n Will filter to items where the numeric field is less than the provided value\n \"\"\"\n lt: Float = null\n}\n\ntype PageInfo @shareable {\n hasNextPage: Boolean!\n hasPreviousPage: Boolean!\n startCursor: String\n endCursor: String\n}\n\ninput PaginationInput {\n sortBy: String = null\n sortOrder: String = null\n first: Int = null\n after: String = null\n last: Int = null\n before: String = null\n}\n\ntype PresignedUrlInfo {\n datasetId: Int!\n uploadUrl: String!\n location: String!\n}\n\ntype Proposal @key(fields: \"proposalNumber\") {\n proposalNumber: Int! @external\n}\n\ntype Query {\n _entities(representations: [_Any!]!): [_Entity]!\n _service: _Service!\n dataset(id: Int!): Dataset\n datasets(instrumentSessions: [InstrumentSessionKey!]!, pagination: PaginationInput = null, filter: DatasetFilterInput = null): DatasetConnection!\n attachment(id: Int!): Attachment\n tags: [String!]!\n}\n\n\"\"\"Conditions used to filter results based on the value of a String field\"\"\"\ninput StringOperatorInput {\n \"\"\"\n Will filter to items where the `String` field is equal to the provided value\n \"\"\"\n eq: String = null\n\n \"\"\"\n Will filter to items where the `String` field is not equal to the provided value\n \"\"\"\n ne: String = null\n\n \"\"\"\n Will filter to items where the `String` field is a member of the provided value\n \"\"\"\n in: [String!] = null\n\n \"\"\"\n Will filter to items where the `String` field is not a member of the provided value\n \"\"\"\n nin: [String!] = null\n\n \"\"\"\n Will filter to items where the `String` field is contains the provided value\n \"\"\"\n contains: String = null\n}\n\n\"\"\"Values to add tags to dataset\"\"\"\ninput TagCreateInput {\n \"\"\"Tags on a dataset\"\"\"\n values: [String!]!\n\n \"\"\"Identifier of the dataset\"\"\"\n datasetId: Int!\n}\n\n\"\"\"Values to remove tags from dataset\"\"\"\ninput TagRemoveInput {\n \"\"\"Tags on a dataset\"\"\"\n values: [String!]!\n\n \"\"\"Identifier of the dataset\"\"\"\n datasetId: Int!\n}\n\ninput TagStringArrayOperatorInput {\n allOf: [String!]!\n}\n\n\"\"\"Represents NULL values\"\"\"\nscalar Void\n\nscalar _Any\n\nunion _Entity = InstrumentSession | Proposal\n\ntype _Service {\n sdl: String!\n}\n"
+ },
+ "fetch": {
+ "baseUrl": {},
+ "body": {},
+ "method": "POST",
+ "path": {},
+ "url": {
+ "staticVariableContent": "https://api.cats.diamond.ac.uk/graphql"
+ }
+ },
+ "subscription": {
+ "enabled": true,
+ "protocol": "GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",
+ "url": {
+ "staticVariableContent": "https://api.cats.diamond.ac.uk/graphql"
+ },
+ "websocketSubprotocol": "GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"
+ },
+ "upstreamSchema": {
+ "key": "eaa4374d7e4324fd8a406826eef29d77c4a9d526"
+ }
+ },
+ "id": "4",
+ "keys": [
+ {
+ "selectionSet": "instrumentSessionNumber proposal { proposalNumber }",
+ "typeName": "InstrumentSession"
+ },
+ {
+ "selectionSet": "proposalNumber",
+ "typeName": "Proposal"
+ }
+ ],
+ "kind": "GRAPHQL",
+ "overrideFieldPathFromAlias": true,
+ "provides": [
+ {
+ "fieldName": "instrumentSession",
+ "selectionSet": "instrumentSessionNumber proposal { proposalNumber }",
+ "typeName": "Dataset"
+ }
+ ],
+ "requestTimeoutSeconds": "10",
+ "rootNodes": [
+ {
+ "externalFieldNames": [
+ "instrumentSessionNumber",
+ "proposal"
+ ],
+ "fieldNames": [
+ "datasets"
+ ],
+ "typeName": "InstrumentSession"
+ },
+ {
+ "fieldNames": [
+ "addDataset",
+ "updateDataset",
+ "addAttachment",
+ "updateAttachment",
+ "createAttachmentUploadUrl",
+ "addTags",
+ "deleteDataset",
+ "deleteAttachment",
+ "removeTags"
+ ],
+ "typeName": "Mutation"
+ },
+ {
+ "externalFieldNames": [
+ "proposalNumber"
+ ],
+ "typeName": "Proposal"
+ },
+ {
+ "fieldNames": [
+ "dataset",
+ "datasets",
+ "attachment",
+ "tags"
+ ],
+ "typeName": "Query"
+ }
+ ]
}
],
"defaultFlushInterval": "500",
@@ -719,6 +872,104 @@
"fieldName": "sample",
"typeName": "Mutation"
},
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "createInput",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "addDataset",
+ "typeName": "Mutation"
+ },
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "id",
+ "sourceType": "FIELD_ARGUMENT"
+ },
+ {
+ "name": "updateInput",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "updateDataset",
+ "typeName": "Mutation"
+ },
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "createInput",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "addAttachment",
+ "typeName": "Mutation"
+ },
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "id",
+ "sourceType": "FIELD_ARGUMENT"
+ },
+ {
+ "name": "updateInput",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "updateAttachment",
+ "typeName": "Mutation"
+ },
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "createInput",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "createAttachmentUploadUrl",
+ "typeName": "Mutation"
+ },
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "tagInput",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "addTags",
+ "typeName": "Mutation"
+ },
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "id",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "deleteDataset",
+ "typeName": "Mutation"
+ },
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "id",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "deleteAttachment",
+ "typeName": "Mutation"
+ },
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "tagInput",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "removeTags",
+ "typeName": "Mutation"
+ },
{
"argumentsConfiguration": [
{
@@ -955,6 +1206,44 @@
"fieldName": "jsonSchemas",
"typeName": "Query"
},
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "id",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "dataset",
+ "typeName": "Query"
+ },
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "instrumentSessions",
+ "sourceType": "FIELD_ARGUMENT"
+ },
+ {
+ "name": "pagination",
+ "sourceType": "FIELD_ARGUMENT"
+ },
+ {
+ "name": "filter",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "datasets",
+ "typeName": "Query"
+ },
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "id",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "attachment",
+ "typeName": "Query"
+ },
{
"argumentsConfiguration": [
{
@@ -1017,6 +1306,20 @@
"fieldName": "samples",
"typeName": "InstrumentSession"
},
+ {
+ "argumentsConfiguration": [
+ {
+ "name": "pagination",
+ "sourceType": "FIELD_ARGUMENT"
+ },
+ {
+ "name": "filter",
+ "sourceType": "FIELD_ARGUMENT"
+ }
+ ],
+ "fieldName": "datasets",
+ "typeName": "InstrumentSession"
+ },
{
"argumentsConfiguration": [
{
@@ -1136,12 +1439,13 @@
"typeName": "SampleMutations"
}
],
- "graphqlSchema": "schema {\n query: Query\n mutation: Mutation\n subscription: Subscription\n}\n\ntype Artifact {\n \"\"\"The file name of the artifact\"\"\"\n name: String!\n \"\"\"The download URL for the artifact\"\"\"\n url: Url!\n \"\"\"The MIME type of the artifact data\"\"\"\n mimeType: String!\n}\n\nscalar Creator\n\n\"\"\"\nImplement the DateTime<Utc> scalar\n\nThe input/output is a string in RFC3339 format.\n\"\"\"\nscalar DateTime\n\n\"\"\"\nThe `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).\n\"\"\"\nscalar JSON\n\n\"\"\"A scalar that can represent any JSON Object value.\"\"\"\nscalar JSONObject\n\n\"\"\"A single log line streamed from a pod\"\"\"\ntype LogEntry {\n \"\"\"The log line content\"\"\"\n content: String!\n \"\"\"The name of the pod producing the log\"\"\"\n podName: String!\n}\n\n\"\"\"The root mutation of the service\"\"\"\ntype Mutation {\n submitWorkflowTemplate(name: String!, visit: VisitInput!, parameters: JSON!): Workflow!\n instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSessionMutations\n createOrValidateSamples(input: CreateOrValidateSampleInput!): CreateSamplesResponse!\n createSamples(input: CreateSampleInput!): [Sample!]! @deprecated(reason: \"Will be replaced by createOrValidateSamples\")\n sample(sampleId: UUID!): SampleMutations\n}\n\n\"\"\"Represents Relay Node types\"\"\"\nunion NodeValue = Workflow\n\n\"\"\"Information about pagination in a connection\"\"\"\ntype PageInfo {\n \"\"\"When paginating backwards, are there more items?\"\"\"\n hasPreviousPage: Boolean!\n \"\"\"When paginating forwards, are there more items?\"\"\"\n hasNextPage: Boolean!\n \"\"\"When paginating backwards, the cursor to continue.\"\"\"\n startCursor: String\n \"\"\"When paginating forwards, the cursor to continue.\"\"\"\n endCursor: String\n}\n\n\"\"\"The root query of the service\"\"\"\ntype Query {\n node(id: ID!): NodeValue\n \"\"\"Get a single [`Workflow`] by proposal, visit, and name\"\"\"\n workflow(visit: VisitInput!, name: String!): Workflow!\n workflows(visit: VisitInput!, cursor: String, limit: Int, filter: WorkflowFilter): WorkflowConnection!\n workflowTemplate(name: String!): WorkflowTemplate!\n workflowTemplates(cursor: String, limit: Int, filter: WorkflowTemplatesFilter): WorkflowTemplateConnection!\n \"\"\"Get a proposal by its number\"\"\"\n proposal(proposalNumber: Int!): Proposal\n \"\"\"Get a list of proposals\"\"\"\n proposals(proposalCategory: String = null, first: Int = null, last: Int = null, after: String = null, before: String = null): ProposalConnection!\n \"\"\"Get a instrument session\"\"\"\n instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSession\n \"\"\"Get a instrument session\"\"\"\n instrumentSessions(proposalNumber: Int = null, proposalCategory: String = null): [InstrumentSession!]\n \"\"\"Get an instrument\"\"\"\n instrument(instrumentName: String!): Instrument\n \"\"\"Get a list of instruments\"\"\"\n instruments(scienceGroup: String = null): [Instrument!]!\n \"\"\"Get an account\"\"\"\n account(username: String!): Account\n \"\"\"Get a list of samples associated with a given instrument session\"\"\"\n samples(first: Int!, instrumentSessions: [InstrumentSessionInput!] = null, filter: SampleFilterInput! = {schemaUrl: null, createdTime: null, updatedTime: null, name: null, data: null}, before: String = null, after: String = null, last: Int = null, orderBy: SampleOrder! = {name: null, createdTime: null, updatedTime: null}): SampleConnection!\n \"\"\"Get a sample by its id\"\"\"\n sample(sampleId: UUID!): Sample\n jsonSchema(url: String!): JSONSchema\n jsonSchemas(type: String = null, instrument: String = null): [JSONSchema!]!\n}\n\n\"\"\"Supported DLS science groups\"\"\"\nenum ScienceGroup {\n \"\"\"Macromolecular Crystallography\"\"\"\n MX\n \"\"\"Workflows Examples\"\"\"\n EXAMPLES\n \"\"\"Magnetic Materials\"\"\"\n MAGNETIC_MATERIALS\n \"\"\"Soft Condensed Matter\"\"\"\n CONDENSED_MATTER\n \"\"\"Imaging and Microscopy\"\"\"\n IMAGING\n \"\"\"Biological Cryo-Imaging\"\"\"\n BIO_CRYO_IMAGING\n \"\"\"Structures and Surfaces\"\"\"\n SURFACES\n \"\"\"Crystallography\"\"\"\n CRYSTALLOGRAPHY\n \"\"\"Spectroscopy\"\"\"\n SPECTROSCOPY\n}\n\n\"\"\"The root mutation of the service\"\"\"\ntype Subscription {\n \"\"\"Processing to subscribe to logs for a single pod of a workflow\"\"\"\n logs(visit: VisitInput!, workflowName: String!, taskId: String!): LogEntry!\n \"\"\"Processing to subscribe to data for all workflows in a session\"\"\"\n workflow(visit: VisitInput!, name: String!): Workflow!\n}\n\ntype Task {\n \"\"\"Unique name of the task\"\"\"\n id: String!\n \"\"\"Display name of the task\"\"\"\n name: String!\n \"\"\"Current status of a task\"\"\"\n status: TaskStatus!\n \"\"\"Parent of a task\"\"\"\n depends: [String!]!\n \"\"\"Children of a task\"\"\"\n dependencies: [String!]!\n \"\"\"Artifacts produced by a task\"\"\"\n artifacts: [Artifact!]!\n \"\"\"Node type - Pod, DAG, etc\"\"\"\n stepType: String!\n \"\"\"Start time for a task on a workflow\"\"\"\n startTime: DateTime\n \"\"\"End time for a task on a workflow\"\"\"\n endTime: DateTime\n \"\"\"\n A human readable message indicating details about why this step is in this condition\n \"\"\"\n message: String\n}\n\nenum TaskStatus {\n PENDING\n RUNNING\n SUCCEEDED\n SKIPPED\n FAILED\n ERROR\n OMITTED\n}\n\nscalar Template\n\n\"\"\"Information about where the template is stored\"\"\"\ntype TemplateSource {\n \"\"\"The URL of the GitHub repository\"\"\"\n repositoryUrl: String!\n \"\"\"The path to the template within the repository\"\"\"\n path: String!\n \"\"\"The current tracked branch of the repository\"\"\"\n targetRevision: String!\n}\n\n\"\"\"\nURL is a String implementing the [URL Standard](http://url.spec.whatwg.org/)\n\"\"\"\nscalar Url\n\n\"\"\"A visit to an instrument as part of a session\"\"\"\ntype Visit {\n \"\"\"Project Proposal Code\"\"\"\n proposalCode: String!\n \"\"\"Project Proposal Number\"\"\"\n proposalNumber: Int!\n \"\"\"Session visit Number\"\"\"\n number: Int!\n}\n\n\"\"\"A visit to an instrument as part of a session\"\"\"\ninput VisitInput {\n \"\"\"Project Proposal Code\"\"\"\n proposalCode: String!\n \"\"\"Project Proposal Number\"\"\"\n proposalNumber: Int!\n \"\"\"Session visit Number\"\"\"\n number: Int!\n}\n\ntype Workflow {\n \"\"\"The unique ID derived from the visit and name\"\"\"\n id: ID!\n \"\"\"The name given to the workflow, unique within a given visit\"\"\"\n name: String!\n \"\"\"The visit the Workflow was run against\"\"\"\n visit: Visit!\n \"\"\"The current status of the workflow\"\"\"\n status: WorkflowStatus\n \"\"\"The top-level workflow parameters\"\"\"\n parameters: JSONObject\n \"\"\"The name of the template used to run the workflow\"\"\"\n templateRef: String\n \"\"\"The workflow creator\"\"\"\n creator: WorkflowCreator!\n}\n\ntype WorkflowConnection {\n \"\"\"Information to aid in pagination.\"\"\"\n pageInfo: PageInfo!\n \"\"\"A list of edges.\"\"\"\n edges: [WorkflowEdge!]!\n \"\"\"A list of nodes.\"\"\"\n nodes: [Workflow!]!\n}\n\n\"\"\"Information about the creator of a workflow.\"\"\"\ntype WorkflowCreator {\n \"\"\"\n An identifier unique to the creator of the workflow.\n Typically this is the creator's Fed-ID.\n \"\"\"\n creatorId: String!\n}\n\n\"\"\"An edge in a connection.\"\"\"\ntype WorkflowEdge {\n \"\"\"The item at the end of the edge\"\"\"\n node: Workflow!\n \"\"\"A cursor for use in pagination\"\"\"\n cursor: String!\n}\n\n\"\"\"All tasks in the workflow have errored\"\"\"\ntype WorkflowErroredStatus {\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"Time at which this workflow completed\"\"\"\n endTime: DateTime!\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\n\"\"\"All tasks in the workflow have failed\"\"\"\ntype WorkflowFailedStatus {\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"Time at which this workflow completed\"\"\"\n endTime: DateTime!\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\n\"\"\"All the supported Workflows filters\"\"\"\ninput WorkflowFilter {\n \"\"\"The status field for a workflow\"\"\"\n workflowStatusFilter: WorkflowStatusFilter\n \"\"\"The fedid of the user who created the workflow\"\"\"\n creator: Creator\n \"\"\"The name of the workflow template\"\"\"\n template: Template\n}\n\ntype WorkflowPendingStatus {\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n}\n\ntype WorkflowRunningStatus {\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\n\"\"\"The status of a workflow\"\"\"\nunion WorkflowStatus = WorkflowPendingStatus | WorkflowRunningStatus | WorkflowSucceededStatus | WorkflowFailedStatus | WorkflowErroredStatus\n\n\"\"\"Represents workflow status filters\"\"\"\ninput WorkflowStatusFilter {\n pending: Boolean! = false\n running: Boolean! = false\n succeeded: Boolean! = false\n failed: Boolean! = false\n error: Boolean! = false\n}\n\n\"\"\"All tasks in the workflow have succeded\"\"\"\ntype WorkflowSucceededStatus {\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"Time at which this workflow completed\"\"\"\n endTime: DateTime!\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\ntype WorkflowTemplate {\n \"\"\"The name given to the workflow template, globally unique\"\"\"\n name: String!\n \"\"\"The group who maintains the workflow template\"\"\"\n maintainer: String!\n \"\"\"A human readable title for the workflow template\"\"\"\n title: String\n \"\"\"A human readable description of the workflow which is created\"\"\"\n description: String\n \"\"\"The repository storing the code associated with this template.\"\"\"\n repository: String\n \"\"\"A JSON Schema describing the arguments of a Workflow Template\"\"\"\n arguments: JSON!\n \"\"\"\n A JSON Forms UI Schema describing how to render the arguments of the Workflow Template\n \"\"\"\n uiSchema: JSON\n \"\"\"Information about where the template is obtained from\"\"\"\n templateSource: TemplateSource\n}\n\ntype WorkflowTemplateConnection {\n \"\"\"Information to aid in pagination.\"\"\"\n pageInfo: PageInfo!\n \"\"\"A list of edges.\"\"\"\n edges: [WorkflowTemplateEdge!]!\n \"\"\"A list of nodes.\"\"\"\n nodes: [WorkflowTemplate!]!\n}\n\n\"\"\"An edge in a connection.\"\"\"\ntype WorkflowTemplateEdge {\n \"\"\"The item at the end of the edge\"\"\"\n node: WorkflowTemplate!\n \"\"\"A cursor for use in pagination\"\"\"\n cursor: String!\n}\n\n\"\"\"Supported label filters for ClusterWorkflowTemplates\"\"\"\ninput WorkflowTemplatesFilter {\n \"\"\"The science group owning the template eg imaging\"\"\"\n scienceGroup: [ScienceGroup!]\n}\n\ntype Account {\n accountId: Int!\n username: String!\n emailAddress: String\n title: String\n givenName: String\n familyName: String\n type: AccountType!\n state: AccountState!\n proposalRoles: [ProposalAccount!]!\n instrumentSessionRoles: [InstrumentSessionRole!]!\n}\n\nenum AccountState {\n enabled\n disabled\n}\n\nenum AccountType {\n user\n staff\n functional\n}\n\ntype Instrument {\n name: String!\n scienceGroup: String\n description: String\n proposals: [Proposal!]!\n instrumentSessions: [InstrumentSession!]!\n}\n\ntype InstrumentSession {\n instrumentSessionId: Int!\n instrumentSessionNumber: Int!\n startTime: DateTime\n endTime: DateTime\n type: String\n state: String\n riskRating: String\n proposal: Proposal\n instrument: Instrument!\n roles: [InstrumentSessionRole!]!\n \"\"\"Samples associated with a given instrument session\"\"\"\n samples(first: Int!, filter: SampleFilterInput! = {schemaUrl: null, createdTime: null, updatedTime: null, name: null, data: null}, before: String = null, after: String = null, last: Int = null, orderBy: SampleOrder! = {name: null, createdTime: null, updatedTime: null}): SampleConnection!\n}\n\ntype InstrumentSessionMutations {\n instrumentSessionNumber: Int!\n proposalNumber: Int!\n \"\"\"Create or validate samples associated with this instrument session\"\"\"\n createOrValidateSamples(input: CreateOrValidateSampleInputBase!): CreateSamplesResponse!\n}\n\ntype InstrumentSessionRole {\n instrumentSession: InstrumentSession!\n account: Account!\n role: String!\n onSite: Boolean!\n}\n\ntype Proposal {\n proposalNumber: Int!\n proposalCategory: String\n title: String\n summary: String\n state: ProposalState!\n instrumentSessions: [InstrumentSession!]!\n instruments: [Instrument!]!\n roles: [ProposalAccount!]!\n}\n\ntype ProposalAccount {\n proposal: Proposal!\n account: Account!\n role: String!\n}\n\ntype ProposalConnection {\n edges: [ProposalEdge!]!\n pageInfo: PageInfo!\n}\n\ntype ProposalEdge {\n cursor: String!\n node: Proposal!\n}\n\nenum ProposalState {\n Open\n Closed\n Cancelled\n}\n\ninput AddSampleEventInput {\n description: String!\n}\n\ninput CreateOrValidateSampleInput {\n \"\"\"URL of the JSON schema the samples' `data` should be validated against\"\"\"\n dataSchemaUrl: String!\n \"\"\"Samples to be created\"\"\"\n samples: [SampleIn!]!\n \"\"\"\n Whether or not the provided samples should only be validated and not created\n \"\"\"\n validateOnly: Boolean! = false\n \"\"\"Number of the proposal the samples should be associated with\"\"\"\n proposalNumber: Int!\n \"\"\"Number of the instrument session the samples should be associated with\"\"\"\n instrumentSessionNumber: Int!\n}\n\ninput CreateOrValidateSampleInputBase {\n \"\"\"URL of the JSON schema the samples' `data` should be validated against\"\"\"\n dataSchemaUrl: String!\n \"\"\"Samples to be created\"\"\"\n samples: [SampleIn!]!\n \"\"\"\n Whether or not the provided samples should only be validated and not created\n \"\"\"\n validateOnly: Boolean! = false\n}\n\ninput CreateSampleInput {\n proposalNumber: Int!\n instrumentSessionNumber: Int!\n samples: [SampleInLegacy!]!\n validateOnly: Boolean! = false\n}\n\n\"\"\"Return type when creating or validating samples\"\"\"\ntype CreateSamplesResponse {\n \"\"\"Whether the operation has succeeded without validation errors\"\"\"\n success: Boolean!\n \"\"\"Samples that have been created\"\"\"\n samples: [Sample!]!\n \"\"\"Errors that occurred during sample validation\"\"\"\n errors: [SampleValidationError!]!\n}\n\ninput DatetimeOperatorInput {\n \"\"\"\n Will filter to items where the `DateTime` field is greater than (i.e. after) the provided value\n \"\"\"\n gt: DateTime = null\n \"\"\"\n Will filter to items where the `DateTime` field is less than (i.e. before) the provided value\n \"\"\"\n lt: DateTime = null\n}\n\n\"\"\"The details of sample validation error\"\"\"\ntype ErrorDetails {\n \"\"\"The type of error that occurred\"\"\"\n type: String!\n \"\"\"\n Tuple of strings identifying where in the sample schema the error occurred.\n \"\"\"\n location: [String!]!\n \"\"\"A human readable error message.\"\"\"\n message: String!\n}\n\ntype InstrumentSessionConnection {\n edges: [InstrumentSessionEdge!]!\n pageInfo: PageInfo!\n}\n\ntype InstrumentSessionEdge {\n cursor: String!\n node: InstrumentSession!\n}\n\ninput InstrumentSessionInput {\n proposalNumber: Int!\n instrumentSessionNumber: Int!\n}\n\ninput JSONOperator @oneOf {\n stringOperator: StringOperatorInput = null\n datetimeOperator: DatetimeOperatorInput = null\n numericOperator: NumericOperatorInput = null\n}\n\ninput JSONOperatorInput {\n \"\"\"A JSON path specifying the value to filter. Must start with '$.'\"\"\"\n path: String!\n \"\"\"The operator to apply to the JSON field\"\"\"\n operator: JSONOperator!\n}\n\ninput NumericOperatorInput {\n \"\"\"\n Will filter to items where the numeric field is greater than the provided value\n \"\"\"\n gt: Float = null\n \"\"\"\n Will filter to items where the numeric field is less than the provided value\n \"\"\"\n lt: Float = null\n}\n\ntype Sample {\n id: UUID!\n name: String!\n data: JSON!\n createdTime: DateTime!\n updatedTime: DateTime!\n dataSchemaUrl: String!\n \"\"\"Samples from which this sample is derived\"\"\"\n parents(first: Int = null, before: String = null, after: String = null, last: Int = null): SampleConnection!\n \"\"\"Samples derived from this sample\"\"\"\n children(first: Int = null, before: String = null, after: String = null, last: Int = null): SampleConnection!\n \"\"\"Events linked to this sample\"\"\"\n events(first: Int = null, before: String = null, after: String = null, last: Int = null): SampleEventConnection!\n \"\"\"The JSON schema that the sample's `data` conforms to\"\"\"\n dataSchema: JSON!\n \"\"\"The instrument sessions that this sample is associated with\"\"\"\n instrumentSessions: InstrumentSessionConnection!\n images: [SampleImage!]!\n}\n\ntype SampleConnection {\n edges: [SampleEdge!]!\n pageInfo: PageInfo!\n}\n\ntype SampleEdge {\n cursor: String!\n node: Sample!\n}\n\ntype SampleEvent {\n id: UUID!\n timestamp: DateTime!\n description: String!\n}\n\ntype SampleEventConnection {\n edges: [SampleEventEdge!]!\n pageInfo: PageInfo!\n}\n\ntype SampleEventEdge {\n cursor: String!\n node: SampleEvent!\n}\n\ninput SampleFilterInput {\n \"\"\"Filter on the `schemaUrl` field of `Sample`\"\"\"\n schemaUrl: StringOperatorInput = null\n \"\"\"Filter on the `createdTime` field of `Sample`\"\"\"\n createdTime: DatetimeOperatorInput = null\n \"\"\"Filter on the `createdTime` field of `Sample`\"\"\"\n updatedTime: DatetimeOperatorInput = null\n \"\"\"Filter on the `name` field of `Sample`\"\"\"\n name: StringOperatorInput = null\n \"\"\"Filter on the `data` field of `Sample`\"\"\"\n data: [JSONOperatorInput!] = null\n}\n\ntype SampleImage {\n url: String!\n filename: String!\n}\n\ninput SampleIn {\n \"\"\"Name of the sample\"\"\"\n name: String!\n \"\"\"Data of the sample\"\"\"\n data: JSON!\n}\n\ninput SampleInLegacy {\n name: String!\n data: JSON!\n dataSchemaUrl: String!\n parentIds: [Int!] = null\n children: [SampleInLegacy!] = null\n}\n\ntype SampleMutations {\n sampleId: UUID!\n linkInstrumentSessionToSample(proposalNumber: Int!, instrumentSessionNumber: Int!): Void\n addSampleEvent(sampleEvent: AddSampleEventInput!): SampleEvent!\n createSampleImageUploadUrl(filename: String!, contentType: String!, contentLength: Int!): String!\n}\n\ninput SampleOrder {\n name: SortingOrder = null\n createdTime: SortingOrder = null\n updatedTime: SortingOrder = null\n}\n\n\"\"\"The details of errors occurred when validating a sample\"\"\"\ntype SampleValidationError {\n \"\"\"\n The index of the sample in CreateSampleInput.samples for which the error occurred\n \"\"\"\n index: Int!\n \"\"\"Errors that occurred when validating the sample\"\"\"\n errors: [ErrorDetails!]!\n}\n\nenum SortingOrder {\n ASC\n DESC\n}\n\n\"\"\"Conditions used to filter results based on the value of a String field\"\"\"\ninput StringOperatorInput {\n \"\"\"\n Will filter to items where the `String` field is equal to the provided value\n \"\"\"\n eq: String = null\n \"\"\"\n Will filter to items where the `String` field is not equal to the provided value\n \"\"\"\n ne: String = null\n \"\"\"\n Will filter to items where the `String` field is a member of the provided value\n \"\"\"\n in: [String!] = null\n \"\"\"\n Will filter to items where the `String` field is not a member of the provided value\n \"\"\"\n nin: [String!] = null\n \"\"\"\n Will filter to items where the `String` field is contains the provided value\n \"\"\"\n contains: String = null\n}\n\nscalar UUID\n\n\"\"\"Represents NULL values\"\"\"\nscalar Void\n\n\"\"\"A JSON schema\"\"\"\ntype JSONSchema {\n \"\"\"The identifier of the schema\"\"\"\n id: String!\n \"\"\"A URL from which the schema can be accessed\"\"\"\n url: String!\n \"\"\"The type of object the shema describes (if known)\"\"\"\n type: String\n \"\"\"The title of the schema\"\"\"\n title: String\n \"\"\"The version of the schema\"\"\"\n version: String\n \"\"\"The instrument the schema was created for\"\"\"\n instrument: String\n \"\"\"The description og the schema\"\"\"\n description: String\n}",
+ "graphqlSchema": "schema {\n query: Query\n mutation: Mutation\n subscription: Subscription\n}\n\ntype Artifact {\n \"\"\"The file name of the artifact\"\"\"\n name: String!\n \"\"\"The download URL for the artifact\"\"\"\n url: Url!\n \"\"\"The MIME type of the artifact data\"\"\"\n mimeType: String!\n}\n\nscalar Creator\n\n\"\"\"\nImplement the DateTime<Utc> scalar\n\nThe input/output is a string in RFC3339 format.\n\"\"\"\nscalar DateTime\n\n\"\"\"\nThe `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).\n\"\"\"\nscalar JSON\n\n\"\"\"A scalar that can represent any JSON Object value.\"\"\"\nscalar JSONObject\n\n\"\"\"A single log line streamed from a pod\"\"\"\ntype LogEntry {\n \"\"\"The log line content\"\"\"\n content: String!\n \"\"\"The name of the pod producing the log\"\"\"\n podName: String!\n}\n\n\"\"\"The root mutation of the service\"\"\"\ntype Mutation {\n submitWorkflowTemplate(name: String!, visit: VisitInput!, parameters: JSON!): Workflow!\n instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSessionMutations\n createOrValidateSamples(input: CreateOrValidateSampleInput!): CreateSamplesResponse!\n createSamples(input: CreateSampleInput!): [Sample!]! @deprecated(reason: \"Will be replaced by createOrValidateSamples\")\n sample(sampleId: UUID!): SampleMutations\n addDataset(createInput: DatasetCreateInput!): Dataset!\n updateDataset(id: Int!, updateInput: DatasetUpdateInput!): Dataset\n addAttachment(createInput: AttachmentCreateInput!): Attachment!\n updateAttachment(id: Int!, updateInput: AttachmentUpdateInput!): Attachment\n createAttachmentUploadUrl(createInput: [AttachmentCreateUrlInput!]!): [PresignedUrlInfo!]!\n addTags(tagInput: TagCreateInput!): [String!]!\n deleteDataset(id: Int!): Void\n deleteAttachment(id: Int!): Void\n removeTags(tagInput: TagRemoveInput!): Void\n}\n\n\"\"\"Represents Relay Node types\"\"\"\nunion NodeValue = Workflow\n\n\"\"\"Information about pagination in a connection\"\"\"\ntype PageInfo {\n \"\"\"When paginating backwards, are there more items?\"\"\"\n hasPreviousPage: Boolean!\n \"\"\"When paginating forwards, are there more items?\"\"\"\n hasNextPage: Boolean!\n \"\"\"When paginating backwards, the cursor to continue.\"\"\"\n startCursor: String\n \"\"\"When paginating forwards, the cursor to continue.\"\"\"\n endCursor: String\n}\n\n\"\"\"The root query of the service\"\"\"\ntype Query {\n node(id: ID!): NodeValue\n \"\"\"Get a single [`Workflow`] by proposal, visit, and name\"\"\"\n workflow(visit: VisitInput!, name: String!): Workflow!\n workflows(visit: VisitInput!, cursor: String, limit: Int, filter: WorkflowFilter): WorkflowConnection!\n workflowTemplate(name: String!): WorkflowTemplate!\n workflowTemplates(cursor: String, limit: Int, filter: WorkflowTemplatesFilter): WorkflowTemplateConnection!\n \"\"\"Get a proposal by its number\"\"\"\n proposal(proposalNumber: Int!): Proposal\n \"\"\"Get a list of proposals\"\"\"\n proposals(proposalCategory: String = null, first: Int = null, last: Int = null, after: String = null, before: String = null): ProposalConnection!\n \"\"\"Get a instrument session\"\"\"\n instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSession\n \"\"\"Get a instrument session\"\"\"\n instrumentSessions(proposalNumber: Int = null, proposalCategory: String = null): [InstrumentSession!]\n \"\"\"Get an instrument\"\"\"\n instrument(instrumentName: String!): Instrument\n \"\"\"Get a list of instruments\"\"\"\n instruments(scienceGroup: String = null): [Instrument!]!\n \"\"\"Get an account\"\"\"\n account(username: String!): Account\n \"\"\"Get a list of samples associated with a given instrument session\"\"\"\n samples(first: Int!, instrumentSessions: [InstrumentSessionInput!] = null, filter: SampleFilterInput! = {schemaUrl: null, createdTime: null, updatedTime: null, name: null, data: null}, before: String = null, after: String = null, last: Int = null, orderBy: SampleOrder! = {name: null, createdTime: null, updatedTime: null}): SampleConnection!\n \"\"\"Get a sample by its id\"\"\"\n sample(sampleId: UUID!): Sample\n jsonSchema(url: String!): JSONSchema\n jsonSchemas(type: String = null, instrument: String = null): [JSONSchema!]!\n dataset(id: Int!): Dataset\n datasets(instrumentSessions: [InstrumentSessionKey!]!, pagination: PaginationInput = null, filter: DatasetFilterInput = null): DatasetConnection!\n attachment(id: Int!): Attachment\n tags: [String!]!\n}\n\n\"\"\"Supported DLS science groups\"\"\"\nenum ScienceGroup {\n \"\"\"Macromolecular Crystallography\"\"\"\n MX\n \"\"\"Workflows Examples\"\"\"\n EXAMPLES\n \"\"\"Magnetic Materials\"\"\"\n MAGNETIC_MATERIALS\n \"\"\"Soft Condensed Matter\"\"\"\n CONDENSED_MATTER\n \"\"\"Imaging and Microscopy\"\"\"\n IMAGING\n \"\"\"Biological Cryo-Imaging\"\"\"\n BIO_CRYO_IMAGING\n \"\"\"Structures and Surfaces\"\"\"\n SURFACES\n \"\"\"Crystallography\"\"\"\n CRYSTALLOGRAPHY\n \"\"\"Spectroscopy\"\"\"\n SPECTROSCOPY\n}\n\n\"\"\"The root mutation of the service\"\"\"\ntype Subscription {\n \"\"\"Processing to subscribe to logs for a single pod of a workflow\"\"\"\n logs(visit: VisitInput!, workflowName: String!, taskId: String!): LogEntry!\n \"\"\"Processing to subscribe to data for all workflows in a session\"\"\"\n workflow(visit: VisitInput!, name: String!): Workflow!\n}\n\ntype Task {\n \"\"\"Unique name of the task\"\"\"\n id: String!\n \"\"\"Display name of the task\"\"\"\n name: String!\n \"\"\"Current status of a task\"\"\"\n status: TaskStatus!\n \"\"\"Parent of a task\"\"\"\n depends: [String!]!\n \"\"\"Children of a task\"\"\"\n dependencies: [String!]!\n \"\"\"Artifacts produced by a task\"\"\"\n artifacts: [Artifact!]!\n \"\"\"Node type - Pod, DAG, etc\"\"\"\n stepType: String!\n \"\"\"Start time for a task on a workflow\"\"\"\n startTime: DateTime\n \"\"\"End time for a task on a workflow\"\"\"\n endTime: DateTime\n \"\"\"\n A human readable message indicating details about why this step is in this condition\n \"\"\"\n message: String\n}\n\nenum TaskStatus {\n PENDING\n RUNNING\n SUCCEEDED\n SKIPPED\n FAILED\n ERROR\n OMITTED\n}\n\nscalar Template\n\n\"\"\"Information about where the template is stored\"\"\"\ntype TemplateSource {\n \"\"\"The URL of the GitHub repository\"\"\"\n repositoryUrl: String!\n \"\"\"The path to the template within the repository\"\"\"\n path: String!\n \"\"\"The current tracked branch of the repository\"\"\"\n targetRevision: String!\n}\n\n\"\"\"\nURL is a String implementing the [URL Standard](http://url.spec.whatwg.org/)\n\"\"\"\nscalar Url\n\n\"\"\"A visit to an instrument as part of a session\"\"\"\ntype Visit {\n \"\"\"Project Proposal Code\"\"\"\n proposalCode: String!\n \"\"\"Project Proposal Number\"\"\"\n proposalNumber: Int!\n \"\"\"Session visit Number\"\"\"\n number: Int!\n}\n\n\"\"\"A visit to an instrument as part of a session\"\"\"\ninput VisitInput {\n \"\"\"Project Proposal Code\"\"\"\n proposalCode: String!\n \"\"\"Project Proposal Number\"\"\"\n proposalNumber: Int!\n \"\"\"Session visit Number\"\"\"\n number: Int!\n}\n\ntype Workflow {\n \"\"\"The unique ID derived from the visit and name\"\"\"\n id: ID!\n \"\"\"The name given to the workflow, unique within a given visit\"\"\"\n name: String!\n \"\"\"The visit the Workflow was run against\"\"\"\n visit: Visit!\n \"\"\"The current status of the workflow\"\"\"\n status: WorkflowStatus\n \"\"\"The top-level workflow parameters\"\"\"\n parameters: JSONObject\n \"\"\"The name of the template used to run the workflow\"\"\"\n templateRef: String\n \"\"\"The workflow creator\"\"\"\n creator: WorkflowCreator!\n}\n\ntype WorkflowConnection {\n \"\"\"Information to aid in pagination.\"\"\"\n pageInfo: PageInfo!\n \"\"\"A list of edges.\"\"\"\n edges: [WorkflowEdge!]!\n \"\"\"A list of nodes.\"\"\"\n nodes: [Workflow!]!\n}\n\n\"\"\"Information about the creator of a workflow.\"\"\"\ntype WorkflowCreator {\n \"\"\"\n An identifier unique to the creator of the workflow.\n Typically this is the creator's Fed-ID.\n \"\"\"\n creatorId: String!\n}\n\n\"\"\"An edge in a connection.\"\"\"\ntype WorkflowEdge {\n \"\"\"The item at the end of the edge\"\"\"\n node: Workflow!\n \"\"\"A cursor for use in pagination\"\"\"\n cursor: String!\n}\n\n\"\"\"All tasks in the workflow have errored\"\"\"\ntype WorkflowErroredStatus {\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"Time at which this workflow completed\"\"\"\n endTime: DateTime!\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\n\"\"\"All tasks in the workflow have failed\"\"\"\ntype WorkflowFailedStatus {\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"Time at which this workflow completed\"\"\"\n endTime: DateTime!\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\n\"\"\"All the supported Workflows filters\"\"\"\ninput WorkflowFilter {\n \"\"\"The status field for a workflow\"\"\"\n workflowStatusFilter: WorkflowStatusFilter\n \"\"\"The fedid of the user who created the workflow\"\"\"\n creator: Creator\n \"\"\"The name of the workflow template\"\"\"\n template: Template\n}\n\ntype WorkflowPendingStatus {\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n}\n\ntype WorkflowRunningStatus {\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\n\"\"\"The status of a workflow\"\"\"\nunion WorkflowStatus = WorkflowPendingStatus | WorkflowRunningStatus | WorkflowSucceededStatus | WorkflowFailedStatus | WorkflowErroredStatus\n\n\"\"\"Represents workflow status filters\"\"\"\ninput WorkflowStatusFilter {\n pending: Boolean! = false\n running: Boolean! = false\n succeeded: Boolean! = false\n failed: Boolean! = false\n error: Boolean! = false\n}\n\n\"\"\"All tasks in the workflow have succeded\"\"\"\ntype WorkflowSucceededStatus {\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"Time at which this workflow completed\"\"\"\n endTime: DateTime!\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\ntype WorkflowTemplate {\n \"\"\"The name given to the workflow template, globally unique\"\"\"\n name: String!\n \"\"\"The group who maintains the workflow template\"\"\"\n maintainer: String!\n \"\"\"A human readable title for the workflow template\"\"\"\n title: String\n \"\"\"A human readable description of the workflow which is created\"\"\"\n description: String\n \"\"\"The repository storing the code associated with this template.\"\"\"\n repository: String\n \"\"\"A JSON Schema describing the arguments of a Workflow Template\"\"\"\n arguments: JSON!\n \"\"\"\n A JSON Forms UI Schema describing how to render the arguments of the Workflow Template\n \"\"\"\n uiSchema: JSON\n \"\"\"Information about where the template is obtained from\"\"\"\n templateSource: TemplateSource\n}\n\ntype WorkflowTemplateConnection {\n \"\"\"Information to aid in pagination.\"\"\"\n pageInfo: PageInfo!\n \"\"\"A list of edges.\"\"\"\n edges: [WorkflowTemplateEdge!]!\n \"\"\"A list of nodes.\"\"\"\n nodes: [WorkflowTemplate!]!\n}\n\n\"\"\"An edge in a connection.\"\"\"\ntype WorkflowTemplateEdge {\n \"\"\"The item at the end of the edge\"\"\"\n node: WorkflowTemplate!\n \"\"\"A cursor for use in pagination\"\"\"\n cursor: String!\n}\n\n\"\"\"Supported label filters for ClusterWorkflowTemplates\"\"\"\ninput WorkflowTemplatesFilter {\n \"\"\"The science group owning the template eg imaging\"\"\"\n scienceGroup: [ScienceGroup!]\n}\n\ntype Account {\n accountId: Int!\n username: String!\n emailAddress: String\n title: String\n givenName: String\n familyName: String\n type: AccountType!\n state: AccountState!\n proposalRoles: [ProposalAccount!]!\n instrumentSessionRoles: [InstrumentSessionRole!]!\n}\n\nenum AccountState {\n enabled\n disabled\n}\n\nenum AccountType {\n user\n staff\n functional\n}\n\ntype Instrument {\n name: String!\n scienceGroup: String\n description: String\n proposals: [Proposal!]!\n instrumentSessions: [InstrumentSession!]!\n}\n\ntype InstrumentSession {\n instrumentSessionId: Int!\n instrumentSessionNumber: Int!\n startTime: DateTime\n endTime: DateTime\n type: String\n state: String\n riskRating: String\n proposal: Proposal\n instrument: Instrument!\n roles: [InstrumentSessionRole!]!\n \"\"\"Samples associated with a given instrument session\"\"\"\n samples(first: Int!, filter: SampleFilterInput! = {schemaUrl: null, createdTime: null, updatedTime: null, name: null, data: null}, before: String = null, after: String = null, last: Int = null, orderBy: SampleOrder! = {name: null, createdTime: null, updatedTime: null}): SampleConnection!\n \"\"\"Datasets associated with a given instrument session\"\"\"\n datasets(pagination: PaginationInput = null, filter: DatasetFilterInput = null): DatasetConnection!\n}\n\ntype InstrumentSessionMutations {\n instrumentSessionNumber: Int!\n proposalNumber: Int!\n \"\"\"Create or validate samples associated with this instrument session\"\"\"\n createOrValidateSamples(input: CreateOrValidateSampleInputBase!): CreateSamplesResponse!\n}\n\ntype InstrumentSessionRole {\n instrumentSession: InstrumentSession!\n account: Account!\n role: String!\n onSite: Boolean!\n}\n\ntype Proposal {\n proposalNumber: Int!\n proposalCategory: String\n title: String\n summary: String\n state: ProposalState!\n instrumentSessions: [InstrumentSession!]!\n instruments: [Instrument!]!\n roles: [ProposalAccount!]!\n}\n\ntype ProposalAccount {\n proposal: Proposal!\n account: Account!\n role: String!\n}\n\ntype ProposalConnection {\n edges: [ProposalEdge!]!\n pageInfo: PageInfo!\n}\n\ntype ProposalEdge {\n cursor: String!\n node: Proposal!\n}\n\nenum ProposalState {\n Open\n Closed\n Cancelled\n}\n\ninput AddSampleEventInput {\n description: String!\n}\n\ninput CreateOrValidateSampleInput {\n \"\"\"URL of the JSON schema the samples' `data` should be validated against\"\"\"\n dataSchemaUrl: String!\n \"\"\"Samples to be created\"\"\"\n samples: [SampleIn!]!\n \"\"\"\n Whether or not the provided samples should only be validated and not created\n \"\"\"\n validateOnly: Boolean! = false\n \"\"\"Number of the proposal the samples should be associated with\"\"\"\n proposalNumber: Int!\n \"\"\"Number of the instrument session the samples should be associated with\"\"\"\n instrumentSessionNumber: Int!\n}\n\ninput CreateOrValidateSampleInputBase {\n \"\"\"URL of the JSON schema the samples' `data` should be validated against\"\"\"\n dataSchemaUrl: String!\n \"\"\"Samples to be created\"\"\"\n samples: [SampleIn!]!\n \"\"\"\n Whether or not the provided samples should only be validated and not created\n \"\"\"\n validateOnly: Boolean! = false\n}\n\ninput CreateSampleInput {\n proposalNumber: Int!\n instrumentSessionNumber: Int!\n samples: [SampleInLegacy!]!\n validateOnly: Boolean! = false\n}\n\n\"\"\"Return type when creating or validating samples\"\"\"\ntype CreateSamplesResponse {\n \"\"\"Whether the operation has succeeded without validation errors\"\"\"\n success: Boolean!\n \"\"\"Samples that have been created\"\"\"\n samples: [Sample!]!\n \"\"\"Errors that occurred during sample validation\"\"\"\n errors: [SampleValidationError!]!\n}\n\ninput DatetimeOperatorInput {\n \"\"\"\n Will filter to items where the `DateTime` field is greater than (i.e. after) the provided value\n \"\"\"\n gt: DateTime = null\n \"\"\"\n Will filter to items where the `DateTime` field is less than (i.e. before) the provided value\n \"\"\"\n lt: DateTime = null\n}\n\n\"\"\"The details of sample validation error\"\"\"\ntype ErrorDetails {\n \"\"\"The type of error that occurred\"\"\"\n type: String!\n \"\"\"\n Tuple of strings identifying where in the sample schema the error occurred.\n \"\"\"\n location: [String!]!\n \"\"\"A human readable error message.\"\"\"\n message: String!\n}\n\ntype InstrumentSessionConnection {\n edges: [InstrumentSessionEdge!]!\n pageInfo: PageInfo!\n}\n\ntype InstrumentSessionEdge {\n cursor: String!\n node: InstrumentSession!\n}\n\ninput InstrumentSessionInput {\n proposalNumber: Int!\n instrumentSessionNumber: Int!\n}\n\ninput JSONOperator @oneOf {\n stringOperator: StringOperatorInput = null\n datetimeOperator: DatetimeOperatorInput = null\n numericOperator: NumericOperatorInput = null\n}\n\ninput JSONOperatorInput {\n \"\"\"A JSON path specifying the value to filter. Must start with '$.'\"\"\"\n path: String!\n \"\"\"The operator to apply to the JSON field\"\"\"\n operator: JSONOperator!\n}\n\ninput NumericOperatorInput {\n \"\"\"\n Will filter to items where the numeric field is greater than the provided value\n \"\"\"\n gt: Float = null\n \"\"\"\n Will filter to items where the numeric field is less than the provided value\n \"\"\"\n lt: Float = null\n}\n\ntype Sample {\n id: UUID!\n name: String!\n data: JSON!\n createdTime: DateTime!\n updatedTime: DateTime!\n dataSchemaUrl: String!\n \"\"\"Samples from which this sample is derived\"\"\"\n parents(first: Int = null, before: String = null, after: String = null, last: Int = null): SampleConnection!\n \"\"\"Samples derived from this sample\"\"\"\n children(first: Int = null, before: String = null, after: String = null, last: Int = null): SampleConnection!\n \"\"\"Events linked to this sample\"\"\"\n events(first: Int = null, before: String = null, after: String = null, last: Int = null): SampleEventConnection!\n \"\"\"The JSON schema that the sample's `data` conforms to\"\"\"\n dataSchema: JSON!\n \"\"\"The instrument sessions that this sample is associated with\"\"\"\n instrumentSessions: InstrumentSessionConnection!\n images: [SampleImage!]!\n}\n\ntype SampleConnection {\n edges: [SampleEdge!]!\n pageInfo: PageInfo!\n}\n\ntype SampleEdge {\n cursor: String!\n node: Sample!\n}\n\ntype SampleEvent {\n id: UUID!\n timestamp: DateTime!\n description: String!\n}\n\ntype SampleEventConnection {\n edges: [SampleEventEdge!]!\n pageInfo: PageInfo!\n}\n\ntype SampleEventEdge {\n cursor: String!\n node: SampleEvent!\n}\n\ninput SampleFilterInput {\n \"\"\"Filter on the `schemaUrl` field of `Sample`\"\"\"\n schemaUrl: StringOperatorInput = null\n \"\"\"Filter on the `createdTime` field of `Sample`\"\"\"\n createdTime: DatetimeOperatorInput = null\n \"\"\"Filter on the `createdTime` field of `Sample`\"\"\"\n updatedTime: DatetimeOperatorInput = null\n \"\"\"Filter on the `name` field of `Sample`\"\"\"\n name: StringOperatorInput = null\n \"\"\"Filter on the `data` field of `Sample`\"\"\"\n data: [JSONOperatorInput!] = null\n}\n\ntype SampleImage {\n url: String!\n filename: String!\n}\n\ninput SampleIn {\n \"\"\"Name of the sample\"\"\"\n name: String!\n \"\"\"Data of the sample\"\"\"\n data: JSON!\n}\n\ninput SampleInLegacy {\n name: String!\n data: JSON!\n dataSchemaUrl: String!\n parentIds: [Int!] = null\n children: [SampleInLegacy!] = null\n}\n\ntype SampleMutations {\n sampleId: UUID!\n linkInstrumentSessionToSample(proposalNumber: Int!, instrumentSessionNumber: Int!): Void\n addSampleEvent(sampleEvent: AddSampleEventInput!): SampleEvent!\n createSampleImageUploadUrl(filename: String!, contentType: String!, contentLength: Int!): String!\n}\n\ninput SampleOrder {\n name: SortingOrder = null\n createdTime: SortingOrder = null\n updatedTime: SortingOrder = null\n}\n\n\"\"\"The details of errors occurred when validating a sample\"\"\"\ntype SampleValidationError {\n \"\"\"\n The index of the sample in CreateSampleInput.samples for which the error occurred\n \"\"\"\n index: Int!\n \"\"\"Errors that occurred when validating the sample\"\"\"\n errors: [ErrorDetails!]!\n}\n\nenum SortingOrder {\n ASC\n DESC\n}\n\n\"\"\"Conditions used to filter results based on the value of a String field\"\"\"\ninput StringOperatorInput {\n \"\"\"\n Will filter to items where the `String` field is equal to the provided value\n \"\"\"\n eq: String = null\n \"\"\"\n Will filter to items where the `String` field is not equal to the provided value\n \"\"\"\n ne: String = null\n \"\"\"\n Will filter to items where the `String` field is a member of the provided value\n \"\"\"\n in: [String!] = null\n \"\"\"\n Will filter to items where the `String` field is not a member of the provided value\n \"\"\"\n nin: [String!] = null\n \"\"\"\n Will filter to items where the `String` field is contains the provided value\n \"\"\"\n contains: String = null\n}\n\nscalar UUID\n\n\"\"\"Represents NULL values\"\"\"\nscalar Void\n\n\"\"\"A JSON schema\"\"\"\ntype JSONSchema {\n \"\"\"The identifier of the schema\"\"\"\n id: String!\n \"\"\"A URL from which the schema can be accessed\"\"\"\n url: String!\n \"\"\"The type of object the shema describes (if known)\"\"\"\n type: String\n \"\"\"The title of the schema\"\"\"\n title: String\n \"\"\"The version of the schema\"\"\"\n version: String\n \"\"\"The instrument the schema was created for\"\"\"\n instrument: String\n \"\"\"The description og the schema\"\"\"\n description: String\n}\n\n\"\"\"Attachment to dataset\"\"\"\ntype Attachment {\n \"\"\"Internal identifier for attachment\"\"\"\n id: Int!\n \"\"\"Title of attachment\"\"\"\n title: String\n \"\"\"Short summary of attachment\"\"\"\n description: String\n \"\"\"Created timestamp\"\"\"\n createdTime: DateTime!\n \"\"\"Modified timestamp\"\"\"\n updatedTime: DateTime!\n \"\"\"Where attachment can be accessed\"\"\"\n location: String!\n \"\"\"Type of attachment (could be file type)\"\"\"\n type: String!\n dataset: Dataset!\n}\n\n\"\"\"Values to add attachment to dataset\"\"\"\ninput AttachmentCreateInput {\n \"\"\"Title of attachment\"\"\"\n title: String\n \"\"\"Short summary of attachment\"\"\"\n description: String\n \"\"\"\n Where attachment can be accessed. This should be an s3 object key if attachment type is 'image'\n \"\"\"\n location: String!\n \"\"\"Type of attachment (could be file type)\"\"\"\n type: String!\n \"\"\"Local identifier for dataset.\"\"\"\n datasetId: Int!\n}\n\n\"\"\"Required fields to get presigned upload URL\"\"\"\ninput AttachmentCreateUrlInput {\n \"\"\"Local identifier for dataset.\"\"\"\n datasetId: Int!\n \"\"\"Name of the attachment file\"\"\"\n fileName: String!\n \"\"\"Type of attachment (could be file type)\"\"\"\n fileType: String!\n \"\"\"Size of the attachemnt file (in Bytes)\"\"\"\n fileSize: Int!\n}\n\n\"\"\"Values to update an existing attachment\"\"\"\ninput AttachmentUpdateInput {\n \"\"\"Title of attachment\"\"\"\n title: String\n \"\"\"Short summary of attachment\"\"\"\n description: String\n}\n\n\"\"\"Dataset information\"\"\"\ntype Dataset {\n \"\"\"Local identifier for dataset.\"\"\"\n id: Int!\n \"\"\"Title of dataset\"\"\"\n title: String!\n \"\"\"Short description about dataset\"\"\"\n description: String\n \"\"\"Created timestamp\"\"\"\n createdTime: DateTime!\n \"\"\"Modified timestamp\"\"\"\n updatedTime: DateTime!\n \"\"\"Type of dataset (raw or derived)\"\"\"\n type: DatasetTypeEnum!\n \"\"\"Data about the dataset\"\"\"\n data: JSON!\n \"\"\"JSON schema used to validate data\"\"\"\n dataSchema: String!\n \"\"\"Scan that produced this dataset\"\"\"\n scanNumber: Int\n attachments: [Attachment!]!\n tags: [String!]!\n \"\"\"The instrument sessions that this dataset is associated with\"\"\"\n instrumentSession: InstrumentSession!\n}\n\ntype DatasetConnection {\n edges: [DatasetEdge!]!\n pageInfo: PageInfo!\n}\n\n\"\"\"Values to create a new dataset\"\"\"\ninput DatasetCreateInput {\n \"\"\"Title of dataset\"\"\"\n title: String!\n \"\"\"Short description about dataset\"\"\"\n description: String = null\n \"\"\"Type of dataset (raw or derived)\"\"\"\n type: DatasetTypeEnum!\n \"\"\"Data about the dataset\"\"\"\n data: JSON!\n \"\"\"JSON schema used to validate data\"\"\"\n dataSchema: String!\n \"\"\"Proposal number (often 5 digits)\"\"\"\n proposalNumber: Int!\n \"\"\"Session dataset was created (often single digit appended to proposal)\"\"\"\n instrumentSessionNumber: Int!\n \"\"\"Scan that produced this dataset\"\"\"\n scanNumber: Int = null\n}\n\ntype DatasetEdge {\n node: Dataset!\n cursor: String!\n}\n\ninput DatasetFilterInput {\n \"\"\"Filter on the `name` field of `Dataset`\"\"\"\n title: StringOperatorInput = null\n \"\"\"Filter on the `data` field of `Dataset`\"\"\"\n data: [JSONOperatorInput!] = null\n \"\"\"Filter on tags\"\"\"\n tags: TagStringArrayOperatorInput = null\n}\n\nenum DatasetTypeEnum {\n \"\"\"A raw scan without processing\"\"\"\n RAW\n \"\"\"The result of a processed scan\"\"\"\n DERIVED\n}\n\n\"\"\"Values to update an existing dataset\"\"\"\ninput DatasetUpdateInput {\n \"\"\"Title of dataset\"\"\"\n title: String\n \"\"\"Short description about dataset\"\"\"\n description: String\n}\n\n\"\"\"Values required to uniquely identify an instrument session\"\"\"\ninput InstrumentSessionKey {\n \"\"\"Proposal number (often 5 digits)\"\"\"\n proposalNumber: Int!\n \"\"\"Session dataset was created (often single digit appended to proposal)\"\"\"\n instrumentSessionNumber: Int!\n}\n\ninput PaginationInput {\n sortBy: String = null\n sortOrder: String = null\n first: Int = null\n after: String = null\n last: Int = null\n before: String = null\n}\n\ntype PresignedUrlInfo {\n datasetId: Int!\n uploadUrl: String!\n location: String!\n}\n\n\"\"\"Values to add tags to dataset\"\"\"\ninput TagCreateInput {\n \"\"\"Tags on a dataset\"\"\"\n values: [String!]!\n \"\"\"Identifier of the dataset\"\"\"\n datasetId: Int!\n}\n\n\"\"\"Values to remove tags from dataset\"\"\"\ninput TagRemoveInput {\n \"\"\"Tags on a dataset\"\"\"\n values: [String!]!\n \"\"\"Identifier of the dataset\"\"\"\n datasetId: Int!\n}\n\ninput TagStringArrayOperatorInput {\n allOf: [String!]!\n}",
"stringStorage": {
"636412ec8e6e8e278df46ce7da59047a6182733c": "schema @link(url: \"https://specs.apollo.dev/federation/v2.7\", import: [\"@key\", \"@shareable\"]) {\n query: Query\n mutation: Mutation\n}\n\ndirective @key(fields: openfed__FieldSet!, resolvable: Boolean = true) repeatable on INTERFACE | OBJECT\n\ndirective @link(as: String, for: link__Purpose, import: [link__Import], url: String!) repeatable on SCHEMA\n\ndirective @shareable repeatable on FIELD_DEFINITION | OBJECT\n\ntype Account {\n accountId: Int!\n emailAddress: String\n familyName: String\n givenName: String\n instrumentSessionRoles: [InstrumentSessionRole!]!\n proposalRoles: [ProposalAccount!]!\n state: AccountState!\n title: String\n type: AccountType!\n username: String!\n}\n\nenum AccountState {\n disabled\n enabled\n}\n\nenum AccountType {\n functional\n staff\n user\n}\n\n\"\"\"Date with time (isoformat)\"\"\"\nscalar DateTime\n\ntype Instrument {\n description: String\n instrumentSessions: [InstrumentSession!]!\n name: String!\n proposals: [Proposal!]!\n scienceGroup: String\n}\n\ntype InstrumentSession @key(fields: \"instrumentSessionNumber proposal {proposalNumber}\") {\n endTime: DateTime\n instrument: Instrument!\n instrumentSessionId: Int!\n instrumentSessionNumber: Int!\n proposal: Proposal\n riskRating: String\n roles: [InstrumentSessionRole!]!\n startTime: DateTime\n state: String\n type: String\n}\n\ntype InstrumentSessionMutations @key(fields: \"instrumentSessionNumber proposalNumber\") {\n instrumentSessionNumber: Int!\n proposalNumber: Int!\n}\n\ntype InstrumentSessionRole {\n account: Account!\n instrumentSession: InstrumentSession!\n onSite: Boolean!\n role: String!\n}\n\ntype Mutation {\n instrumentSession(instrumentSessionNumber: Int!, proposalNumber: Int!): InstrumentSessionMutations\n}\n\ntype PageInfo {\n endCursor: String @shareable\n hasNextPage: Boolean! @shareable\n hasPreviousPage: Boolean! @shareable\n startCursor: String @shareable\n}\n\ntype Proposal @key(fields: \"proposalNumber\") {\n instrumentSessions: [InstrumentSession!]!\n instruments: [Instrument!]!\n proposalCategory: String\n proposalNumber: Int!\n roles: [ProposalAccount!]!\n state: ProposalState!\n summary: String\n title: String\n}\n\ntype ProposalAccount {\n account: Account!\n proposal: Proposal!\n role: String!\n}\n\ntype ProposalConnection {\n edges: [ProposalEdge!]! @shareable\n pageInfo: PageInfo! @shareable\n}\n\ntype ProposalEdge {\n cursor: String! @shareable\n node: Proposal! @shareable\n}\n\nenum ProposalState {\n Cancelled\n Closed\n Open\n}\n\ntype Query {\n \"\"\"Get an account\"\"\"\n account(username: String!): Account\n \"\"\"Get an instrument\"\"\"\n instrument(instrumentName: String!): Instrument\n \"\"\"Get a instrument session\"\"\"\n instrumentSession(instrumentSessionNumber: Int!, proposalNumber: Int!): InstrumentSession\n \"\"\"Get a instrument session\"\"\"\n instrumentSessions(proposalCategory: String = null, proposalNumber: Int = null): [InstrumentSession!]\n \"\"\"Get a list of instruments\"\"\"\n instruments(scienceGroup: String = null): [Instrument!]!\n \"\"\"Get a proposal by its number\"\"\"\n proposal(proposalNumber: Int!): Proposal\n \"\"\"Get a list of proposals\"\"\"\n proposals(after: String = null, before: String = null, first: Int = null, last: Int = null, proposalCategory: String = null): ProposalConnection!\n}\n\nscalar link__Import\n\nenum link__Purpose {\n EXECUTION\n SECURITY\n}\n\nscalar openfed__FieldSet",
"6f02287e3cbb3840d5136c3ef6f75c1e24560b94": "schema @link(url: \"https://specs.apollo.dev/federation/v2.7\", import: [\"@external\", \"@key\", \"@provides\", \"@shareable\"]) {\n query: Query\n mutation: Mutation\n}\n\ndirective @external on FIELD_DEFINITION | OBJECT\n\ndirective @key(fields: openfed__FieldSet!, resolvable: Boolean = true) repeatable on INTERFACE | OBJECT\n\ndirective @link(as: String, for: link__Purpose, import: [link__Import], url: String!) repeatable on SCHEMA\n\ndirective @provides(fields: openfed__FieldSet!) on FIELD_DEFINITION\n\ndirective @shareable repeatable on FIELD_DEFINITION | OBJECT\n\ninput AddSampleEventInput {\n description: String!\n}\n\ninput CreateOrValidateSampleInput {\n \"\"\"URL of the JSON schema the samples' `data` should be validated against\"\"\"\n dataSchemaUrl: String!\n \"\"\"Number of the instrument session the samples should be associated with\"\"\"\n instrumentSessionNumber: Int!\n \"\"\"Number of the proposal the samples should be associated with\"\"\"\n proposalNumber: Int!\n \"\"\"Samples to be created\"\"\"\n samples: [SampleIn!]!\n \"\"\"\n Whether or not the provided samples should only be validated and not created\n \"\"\"\n validateOnly: Boolean! = false\n}\n\ninput CreateOrValidateSampleInputBase {\n \"\"\"URL of the JSON schema the samples' `data` should be validated against\"\"\"\n dataSchemaUrl: String!\n \"\"\"Samples to be created\"\"\"\n samples: [SampleIn!]!\n \"\"\"\n Whether or not the provided samples should only be validated and not created\n \"\"\"\n validateOnly: Boolean! = false\n}\n\ninput CreateSampleInput {\n instrumentSessionNumber: Int!\n proposalNumber: Int!\n samples: [SampleInLegacy!]!\n validateOnly: Boolean! = false\n}\n\n\"\"\"Return type when creating or validating samples\"\"\"\ntype CreateSamplesResponse {\n \"\"\"Errors that occurred during sample validation\"\"\"\n errors: [SampleValidationError!]!\n \"\"\"Samples that have been created\"\"\"\n samples: [Sample!]!\n \"\"\"Whether the operation has succeeded without validation errors\"\"\"\n success: Boolean!\n}\n\n\"\"\"Date with time (isoformat)\"\"\"\nscalar DateTime\n\ninput DatetimeOperatorInput {\n \"\"\"\n Will filter to items where the `DateTime` field is greater than (i.e. after) the provided value\n \"\"\"\n gt: DateTime = null\n \"\"\"\n Will filter to items where the `DateTime` field is less than (i.e. before) the provided value\n \"\"\"\n lt: DateTime = null\n}\n\n\"\"\"The details of sample validation error\"\"\"\ntype ErrorDetails {\n \"\"\"\n Tuple of strings identifying where in the sample schema the error occurred.\n \"\"\"\n location: [String!]!\n \"\"\"A human readable error message.\"\"\"\n message: String!\n \"\"\"The type of error that occurred\"\"\"\n type: String!\n}\n\ntype InstrumentSession @key(fields: \"instrumentSessionNumber proposal { proposalNumber }\") {\n instrumentSessionNumber: Int! @external\n proposal: Proposal @external\n \"\"\"Samples associated with a given instrument session\"\"\"\n samples(after: String = null, before: String = null, filter: SampleFilterInput! = {createdTime: null, data: null, name: null, schemaUrl: null, updatedTime: null}, first: Int!, last: Int = null, orderBy: SampleOrder! = {createdTime: null, name: null, updatedTime: null}): SampleConnection!\n}\n\ntype InstrumentSessionConnection {\n edges: [InstrumentSessionEdge!]!\n pageInfo: PageInfo!\n}\n\ntype InstrumentSessionEdge {\n cursor: String!\n node: InstrumentSession!\n}\n\ninput InstrumentSessionInput {\n instrumentSessionNumber: Int!\n proposalNumber: Int!\n}\n\ntype InstrumentSessionMutations @key(fields: \"instrumentSessionNumber proposalNumber\") {\n \"\"\"Create or validate samples associated with this instrument session\"\"\"\n createOrValidateSamples(input: CreateOrValidateSampleInputBase!): CreateSamplesResponse!\n instrumentSessionNumber: Int! @external\n proposalNumber: Int! @external\n}\n\n\"\"\"\nThe `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).\n\"\"\"\nscalar JSON @specifiedBy(url: \"https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf\")\n\ninput JSONOperator @oneOf {\n datetimeOperator: DatetimeOperatorInput = null\n numericOperator: NumericOperatorInput = null\n stringOperator: StringOperatorInput = null\n}\n\ninput JSONOperatorInput {\n \"\"\"The operator to apply to the JSON field\"\"\"\n operator: JSONOperator!\n \"\"\"A JSON path specifying the value to filter. Must start with '$.'\"\"\"\n path: String!\n}\n\ntype Mutation {\n createOrValidateSamples(input: CreateOrValidateSampleInput!): CreateSamplesResponse!\n createSamples(input: CreateSampleInput!): [Sample!]! @deprecated(reason: \"Will be replaced by createOrValidateSamples\")\n sample(sampleId: UUID!): SampleMutations\n}\n\ninput NumericOperatorInput {\n \"\"\"\n Will filter to items where the numeric field is greater than the provided value\n \"\"\"\n gt: Float = null\n \"\"\"\n Will filter to items where the numeric field is less than the provided value\n \"\"\"\n lt: Float = null\n}\n\ntype PageInfo {\n endCursor: String @shareable\n hasNextPage: Boolean! @shareable\n hasPreviousPage: Boolean! @shareable\n startCursor: String @shareable\n}\n\ntype Proposal @key(fields: \"proposalNumber\") {\n proposalNumber: Int! @external\n}\n\ntype Query {\n \"\"\"Get a sample by its id\"\"\"\n sample(sampleId: UUID!): Sample\n \"\"\"Get a list of samples associated with a given instrument session\"\"\"\n samples(after: String = null, before: String = null, filter: SampleFilterInput! = {createdTime: null, data: null, name: null, schemaUrl: null, updatedTime: null}, first: Int!, instrumentSessions: [InstrumentSessionInput!] = null, last: Int = null, orderBy: SampleOrder! = {createdTime: null, name: null, updatedTime: null}): SampleConnection!\n}\n\ntype Sample {\n \"\"\"Samples derived from this sample\"\"\"\n children(after: String = null, before: String = null, first: Int = null, last: Int = null): SampleConnection!\n createdTime: DateTime!\n data: JSON!\n \"\"\"The JSON schema that the sample's `data` conforms to\"\"\"\n dataSchema: JSON!\n dataSchemaUrl: String!\n \"\"\"Events linked to this sample\"\"\"\n events(after: String = null, before: String = null, first: Int = null, last: Int = null): SampleEventConnection!\n id: UUID!\n images: [SampleImage!]!\n \"\"\"The instrument sessions that this sample is associated with\"\"\"\n instrumentSessions: InstrumentSessionConnection! @provides(fields: \"edges{ node{ instrumentSessionNumber proposal{ proposalNumber }}}\")\n name: String!\n \"\"\"Samples from which this sample is derived\"\"\"\n parents(after: String = null, before: String = null, first: Int = null, last: Int = null): SampleConnection!\n updatedTime: DateTime!\n}\n\ntype SampleConnection {\n edges: [SampleEdge!]!\n pageInfo: PageInfo!\n}\n\ntype SampleEdge {\n cursor: String!\n node: Sample!\n}\n\ntype SampleEvent {\n description: String!\n id: UUID!\n timestamp: DateTime!\n}\n\ntype SampleEventConnection {\n edges: [SampleEventEdge!]!\n pageInfo: PageInfo!\n}\n\ntype SampleEventEdge {\n cursor: String!\n node: SampleEvent!\n}\n\ninput SampleFilterInput {\n \"\"\"Filter on the `createdTime` field of `Sample`\"\"\"\n createdTime: DatetimeOperatorInput = null\n \"\"\"Filter on the `data` field of `Sample`\"\"\"\n data: [JSONOperatorInput!] = null\n \"\"\"Filter on the `name` field of `Sample`\"\"\"\n name: StringOperatorInput = null\n \"\"\"Filter on the `schemaUrl` field of `Sample`\"\"\"\n schemaUrl: StringOperatorInput = null\n \"\"\"Filter on the `createdTime` field of `Sample`\"\"\"\n updatedTime: DatetimeOperatorInput = null\n}\n\ntype SampleImage {\n filename: String!\n url: String!\n}\n\ninput SampleIn {\n \"\"\"Data of the sample\"\"\"\n data: JSON!\n \"\"\"Name of the sample\"\"\"\n name: String!\n}\n\ninput SampleInLegacy {\n children: [SampleInLegacy!] = null\n data: JSON!\n dataSchemaUrl: String!\n name: String!\n parentIds: [Int!] = null\n}\n\ntype SampleMutations {\n addSampleEvent(sampleEvent: AddSampleEventInput!): SampleEvent!\n createSampleImageUploadUrl(contentLength: Int!, contentType: String!, filename: String!): String!\n linkInstrumentSessionToSample(instrumentSessionNumber: Int!, proposalNumber: Int!): Void\n sampleId: UUID!\n}\n\ninput SampleOrder {\n createdTime: SortingOrder = null\n name: SortingOrder = null\n updatedTime: SortingOrder = null\n}\n\n\"\"\"The details of errors occurred when validating a sample\"\"\"\ntype SampleValidationError {\n \"\"\"Errors that occurred when validating the sample\"\"\"\n errors: [ErrorDetails!]!\n \"\"\"\n The index of the sample in CreateSampleInput.samples for which the error occurred\n \"\"\"\n index: Int!\n}\n\nenum SortingOrder {\n ASC\n DESC\n}\n\n\"\"\"Conditions used to filter results based on the value of a String field\"\"\"\ninput StringOperatorInput {\n \"\"\"\n Will filter to items where the `String` field is contains the provided value\n \"\"\"\n contains: String = null\n \"\"\"\n Will filter to items where the `String` field is equal to the provided value\n \"\"\"\n eq: String = null\n \"\"\"\n Will filter to items where the `String` field is a member of the provided value\n \"\"\"\n in: [String!] = null\n \"\"\"\n Will filter to items where the `String` field is not equal to the provided value\n \"\"\"\n ne: String = null\n \"\"\"\n Will filter to items where the `String` field is not a member of the provided value\n \"\"\"\n nin: [String!] = null\n}\n\nscalar UUID\n\n\"\"\"Represents NULL values\"\"\"\nscalar Void\n\nscalar link__Import\n\nenum link__Purpose {\n EXECUTION\n SECURITY\n}\n\nscalar openfed__FieldSet",
"9a94e595184badd514b2996e26945dd3a01edbf4": "schema {\n query: Query\n mutation: Mutation\n subscription: Subscription\n}\n\ndirective @link(as: String, for: link__Purpose, import: [link__Import], url: String!) repeatable on SCHEMA\n\ndirective @shareable repeatable on FIELD_DEFINITION | OBJECT\n\ntype Artifact {\n \"\"\"The MIME type of the artifact data\"\"\"\n mimeType: String!\n \"\"\"The file name of the artifact\"\"\"\n name: String!\n \"\"\"The download URL for the artifact\"\"\"\n url: Url!\n}\n\nscalar Creator\n\n\"\"\"\nImplement the DateTime<Utc> scalar\n\nThe input/output is a string in RFC3339 format.\n\"\"\"\nscalar DateTime\n\n\"\"\"A scalar that can represent any JSON value.\"\"\"\nscalar JSON\n\n\"\"\"A scalar that can represent any JSON Object value.\"\"\"\nscalar JSONObject\n\n\"\"\"A single log line streamed from a pod\"\"\"\ntype LogEntry {\n \"\"\"The log line content\"\"\"\n content: String!\n \"\"\"The name of the pod producing the log\"\"\"\n podName: String!\n}\n\n\"\"\"The root mutation of the service\"\"\"\ntype Mutation {\n submitWorkflowTemplate(name: String!, parameters: JSON!, visit: VisitInput!): Workflow!\n}\n\n\"\"\"Represents Relay Node types\"\"\"\nunion NodeValue = Workflow\n\n\"\"\"Information about pagination in a connection\"\"\"\ntype PageInfo {\n \"\"\"When paginating forwards, the cursor to continue.\"\"\"\n endCursor: String @shareable\n \"\"\"When paginating forwards, are there more items?\"\"\"\n hasNextPage: Boolean! @shareable\n \"\"\"When paginating backwards, are there more items?\"\"\"\n hasPreviousPage: Boolean! @shareable\n \"\"\"When paginating backwards, the cursor to continue.\"\"\"\n startCursor: String @shareable\n}\n\n\"\"\"The root query of the service\"\"\"\ntype Query {\n node(id: ID!): NodeValue\n \"\"\"Get a single [`Workflow`] by proposal, visit, and name\"\"\"\n workflow(name: String!, visit: VisitInput!): Workflow!\n workflowTemplate(name: String!): WorkflowTemplate!\n workflowTemplates(cursor: String, filter: WorkflowTemplatesFilter, limit: Int): WorkflowTemplateConnection!\n workflows(cursor: String, filter: WorkflowFilter, limit: Int, visit: VisitInput!): WorkflowConnection!\n}\n\n\"\"\"Supported DLS science groups\"\"\"\nenum ScienceGroup {\n \"\"\"Biological Cryo-Imaging\"\"\"\n BIO_CRYO_IMAGING\n \"\"\"Soft Condensed Matter\"\"\"\n CONDENSED_MATTER\n \"\"\"Crystallography\"\"\"\n CRYSTALLOGRAPHY\n \"\"\"Workflows Examples\"\"\"\n EXAMPLES\n \"\"\"Imaging and Microscopy\"\"\"\n IMAGING\n \"\"\"Magnetic Materials\"\"\"\n MAGNETIC_MATERIALS\n \"\"\"Macromolecular Crystallography\"\"\"\n MX\n \"\"\"Spectroscopy\"\"\"\n SPECTROSCOPY\n \"\"\"Structures and Surfaces\"\"\"\n SURFACES\n}\n\n\"\"\"The root mutation of the service\"\"\"\ntype Subscription {\n \"\"\"Processing to subscribe to logs for a single pod of a workflow\"\"\"\n logs(taskId: String!, visit: VisitInput!, workflowName: String!): LogEntry!\n \"\"\"Processing to subscribe to data for all workflows in a session\"\"\"\n workflow(name: String!, visit: VisitInput!): Workflow!\n}\n\ntype Task {\n \"\"\"Artifacts produced by a task\"\"\"\n artifacts: [Artifact!]!\n \"\"\"Children of a task\"\"\"\n dependencies: [String!]!\n \"\"\"Parent of a task\"\"\"\n depends: [String!]!\n \"\"\"End time for a task on a workflow\"\"\"\n endTime: DateTime\n \"\"\"Unique name of the task\"\"\"\n id: String!\n \"\"\"\n A human readable message indicating details about why this step is in this condition\n \"\"\"\n message: String\n \"\"\"Display name of the task\"\"\"\n name: String!\n \"\"\"Start time for a task on a workflow\"\"\"\n startTime: DateTime\n \"\"\"Current status of a task\"\"\"\n status: TaskStatus!\n \"\"\"Node type - Pod, DAG, etc\"\"\"\n stepType: String!\n}\n\nenum TaskStatus {\n ERROR\n FAILED\n OMITTED\n PENDING\n RUNNING\n SKIPPED\n SUCCEEDED\n}\n\nscalar Template\n\n\"\"\"Information about where the template is stored\"\"\"\ntype TemplateSource {\n \"\"\"The path to the template within the repository\"\"\"\n path: String!\n \"\"\"The URL of the GitHub repository\"\"\"\n repositoryUrl: String!\n \"\"\"The current tracked branch of the repository\"\"\"\n targetRevision: String!\n}\n\n\"\"\"\nURL is a String implementing the [URL Standard](http://url.spec.whatwg.org/)\n\"\"\"\nscalar Url\n\n\"\"\"A visit to an instrument as part of a session\"\"\"\ntype Visit {\n \"\"\"Session visit Number\"\"\"\n number: Int!\n \"\"\"Project Proposal Code\"\"\"\n proposalCode: String!\n \"\"\"Project Proposal Number\"\"\"\n proposalNumber: Int!\n}\n\n\"\"\"A visit to an instrument as part of a session\"\"\"\ninput VisitInput {\n \"\"\"Session visit Number\"\"\"\n number: Int!\n \"\"\"Project Proposal Code\"\"\"\n proposalCode: String!\n \"\"\"Project Proposal Number\"\"\"\n proposalNumber: Int!\n}\n\ntype Workflow {\n \"\"\"The workflow creator\"\"\"\n creator: WorkflowCreator!\n \"\"\"The unique ID derived from the visit and name\"\"\"\n id: ID!\n \"\"\"The name given to the workflow, unique within a given visit\"\"\"\n name: String!\n \"\"\"The top-level workflow parameters\"\"\"\n parameters: JSONObject\n \"\"\"The current status of the workflow\"\"\"\n status: WorkflowStatus\n \"\"\"The name of the template used to run the workflow\"\"\"\n templateRef: String\n \"\"\"The visit the Workflow was run against\"\"\"\n visit: Visit!\n}\n\ntype WorkflowConnection {\n \"\"\"A list of edges.\"\"\"\n edges: [WorkflowEdge!]! @shareable\n \"\"\"A list of nodes.\"\"\"\n nodes: [Workflow!]! @shareable\n \"\"\"Information to aid in pagination.\"\"\"\n pageInfo: PageInfo! @shareable\n}\n\n\"\"\"Information about the creator of a workflow.\"\"\"\ntype WorkflowCreator {\n \"\"\"\n An identifier unique to the creator of the workflow.\n Typically this is the creator's Fed-ID.\n \"\"\"\n creatorId: String!\n}\n\n\"\"\"An edge in a connection.\"\"\"\ntype WorkflowEdge {\n \"\"\"A cursor for use in pagination\"\"\"\n cursor: String! @shareable\n \"\"\"The item at the end of the edge\"\"\"\n node: Workflow! @shareable\n}\n\n\"\"\"All tasks in the workflow have errored\"\"\"\ntype WorkflowErroredStatus {\n \"\"\"Time at which this workflow completed\"\"\"\n endTime: DateTime!\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\n\"\"\"All tasks in the workflow have failed\"\"\"\ntype WorkflowFailedStatus {\n \"\"\"Time at which this workflow completed\"\"\"\n endTime: DateTime!\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\n\"\"\"All the supported Workflows filters\"\"\"\ninput WorkflowFilter {\n \"\"\"The fedid of the user who created the workflow\"\"\"\n creator: Creator\n \"\"\"The name of the workflow template\"\"\"\n template: Template\n \"\"\"The status field for a workflow\"\"\"\n workflowStatusFilter: WorkflowStatusFilter\n}\n\ntype WorkflowPendingStatus {\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n}\n\ntype WorkflowRunningStatus {\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\n\"\"\"The status of a workflow\"\"\"\nunion WorkflowStatus = WorkflowErroredStatus | WorkflowFailedStatus | WorkflowPendingStatus | WorkflowRunningStatus | WorkflowSucceededStatus\n\n\"\"\"Represents workflow status filters\"\"\"\ninput WorkflowStatusFilter {\n error: Boolean! = false\n failed: Boolean! = false\n pending: Boolean! = false\n running: Boolean! = false\n succeeded: Boolean! = false\n}\n\n\"\"\"All tasks in the workflow have succeded\"\"\"\ntype WorkflowSucceededStatus {\n \"\"\"Time at which this workflow completed\"\"\"\n endTime: DateTime!\n \"\"\"\n A human readable message indicating details about why the workflow is in this condition\n \"\"\"\n message: String\n \"\"\"Time at which this workflow started\"\"\"\n startTime: DateTime!\n \"\"\"Tasks created by the workflow\"\"\"\n tasks: [Task!]!\n}\n\ntype WorkflowTemplate {\n \"\"\"A JSON Schema describing the arguments of a Workflow Template\"\"\"\n arguments: JSON!\n \"\"\"A human readable description of the workflow which is created\"\"\"\n description: String\n \"\"\"The group who maintains the workflow template\"\"\"\n maintainer: String!\n \"\"\"The name given to the workflow template, globally unique\"\"\"\n name: String!\n \"\"\"The repository storing the code associated with this template.\"\"\"\n repository: String\n \"\"\"Information about where the template is obtained from\"\"\"\n templateSource: TemplateSource\n \"\"\"A human readable title for the workflow template\"\"\"\n title: String\n \"\"\"\n A JSON Forms UI Schema describing how to render the arguments of the Workflow Template\n \"\"\"\n uiSchema: JSON\n}\n\ntype WorkflowTemplateConnection {\n \"\"\"A list of edges.\"\"\"\n edges: [WorkflowTemplateEdge!]! @shareable\n \"\"\"A list of nodes.\"\"\"\n nodes: [WorkflowTemplate!]! @shareable\n \"\"\"Information to aid in pagination.\"\"\"\n pageInfo: PageInfo! @shareable\n}\n\n\"\"\"An edge in a connection.\"\"\"\ntype WorkflowTemplateEdge {\n \"\"\"A cursor for use in pagination\"\"\"\n cursor: String! @shareable\n \"\"\"The item at the end of the edge\"\"\"\n node: WorkflowTemplate! @shareable\n}\n\n\"\"\"Supported label filters for ClusterWorkflowTemplates\"\"\"\ninput WorkflowTemplatesFilter {\n \"\"\"The science group owning the template eg imaging\"\"\"\n scienceGroup: [ScienceGroup!]\n}\n\nscalar link__Import\n\nenum link__Purpose {\n EXECUTION\n SECURITY\n}",
- "ab9040c814f11559b1e7d93f67b38b284f1bf0d3": "schema {\n query: Query\n}\n\n\"\"\"A JSON schema\"\"\"\ntype JSONSchema {\n \"\"\"The description og the schema\"\"\"\n description: String\n \"\"\"The identifier of the schema\"\"\"\n id: String!\n \"\"\"The instrument the schema was created for\"\"\"\n instrument: String\n \"\"\"The title of the schema\"\"\"\n title: String\n \"\"\"The type of object the shema describes (if known)\"\"\"\n type: String\n \"\"\"A URL from which the schema can be accessed\"\"\"\n url: String!\n \"\"\"The version of the schema\"\"\"\n version: String\n}\n\ntype Query {\n jsonSchema(url: String!): JSONSchema\n jsonSchemas(instrument: String = null, type: String = null): [JSONSchema!]!\n}"
+ "ab9040c814f11559b1e7d93f67b38b284f1bf0d3": "schema {\n query: Query\n}\n\n\"\"\"A JSON schema\"\"\"\ntype JSONSchema {\n \"\"\"The description og the schema\"\"\"\n description: String\n \"\"\"The identifier of the schema\"\"\"\n id: String!\n \"\"\"The instrument the schema was created for\"\"\"\n instrument: String\n \"\"\"The title of the schema\"\"\"\n title: String\n \"\"\"The type of object the shema describes (if known)\"\"\"\n type: String\n \"\"\"A URL from which the schema can be accessed\"\"\"\n url: String!\n \"\"\"The version of the schema\"\"\"\n version: String\n}\n\ntype Query {\n jsonSchema(url: String!): JSONSchema\n jsonSchemas(instrument: String = null, type: String = null): [JSONSchema!]!\n}",
+ "eaa4374d7e4324fd8a406826eef29d77c4a9d526": "schema @link(url: \"https://specs.apollo.dev/federation/v2.7\", import: [\"@external\", \"@key\", \"@provides\", \"@shareable\"]) {\n query: Query\n mutation: Mutation\n}\n\ndirective @external on FIELD_DEFINITION | OBJECT\n\ndirective @key(fields: openfed__FieldSet!, resolvable: Boolean = true) repeatable on INTERFACE | OBJECT\n\ndirective @link(as: String, for: link__Purpose, import: [link__Import], url: String!) repeatable on SCHEMA\n\ndirective @provides(fields: openfed__FieldSet!) on FIELD_DEFINITION\n\ndirective @shareable repeatable on FIELD_DEFINITION | OBJECT\n\n\"\"\"Attachment to dataset\"\"\"\ntype Attachment {\n \"\"\"Created timestamp\"\"\"\n createdTime: DateTime!\n dataset: Dataset!\n \"\"\"Short summary of attachment\"\"\"\n description: String\n \"\"\"Internal identifier for attachment\"\"\"\n id: Int!\n \"\"\"Where attachment can be accessed\"\"\"\n location: String!\n \"\"\"Title of attachment\"\"\"\n title: String\n \"\"\"Type of attachment (could be file type)\"\"\"\n type: String!\n \"\"\"Modified timestamp\"\"\"\n updatedTime: DateTime!\n}\n\n\"\"\"Values to add attachment to dataset\"\"\"\ninput AttachmentCreateInput {\n \"\"\"Local identifier for dataset.\"\"\"\n datasetId: Int!\n \"\"\"Short summary of attachment\"\"\"\n description: String\n \"\"\"\n Where attachment can be accessed. This should be an s3 object key if attachment type is 'image'\n \"\"\"\n location: String!\n \"\"\"Title of attachment\"\"\"\n title: String\n \"\"\"Type of attachment (could be file type)\"\"\"\n type: String!\n}\n\n\"\"\"Required fields to get presigned upload URL\"\"\"\ninput AttachmentCreateUrlInput {\n \"\"\"Local identifier for dataset.\"\"\"\n datasetId: Int!\n \"\"\"Name of the attachment file\"\"\"\n fileName: String!\n \"\"\"Size of the attachemnt file (in Bytes)\"\"\"\n fileSize: Int!\n \"\"\"Type of attachment (could be file type)\"\"\"\n fileType: String!\n}\n\n\"\"\"Values to update an existing attachment\"\"\"\ninput AttachmentUpdateInput {\n \"\"\"Short summary of attachment\"\"\"\n description: String\n \"\"\"Title of attachment\"\"\"\n title: String\n}\n\n\"\"\"Dataset information\"\"\"\ntype Dataset {\n attachments: [Attachment!]!\n \"\"\"Created timestamp\"\"\"\n createdTime: DateTime!\n \"\"\"Data about the dataset\"\"\"\n data: JSON!\n \"\"\"JSON schema used to validate data\"\"\"\n dataSchema: String!\n \"\"\"Short description about dataset\"\"\"\n description: String\n \"\"\"Local identifier for dataset.\"\"\"\n id: Int!\n \"\"\"The instrument sessions that this dataset is associated with\"\"\"\n instrumentSession: InstrumentSession! @provides(fields: \"instrumentSessionNumber proposal{ proposalNumber }\")\n \"\"\"Scan that produced this dataset\"\"\"\n scanNumber: Int\n tags: [String!]!\n \"\"\"Title of dataset\"\"\"\n title: String!\n \"\"\"Type of dataset (raw or derived)\"\"\"\n type: DatasetTypeEnum!\n \"\"\"Modified timestamp\"\"\"\n updatedTime: DateTime!\n}\n\ntype DatasetConnection {\n edges: [DatasetEdge!]!\n pageInfo: PageInfo!\n}\n\n\"\"\"Values to create a new dataset\"\"\"\ninput DatasetCreateInput {\n \"\"\"Data about the dataset\"\"\"\n data: JSON!\n \"\"\"JSON schema used to validate data\"\"\"\n dataSchema: String!\n \"\"\"Short description about dataset\"\"\"\n description: String = null\n \"\"\"Session dataset was created (often single digit appended to proposal)\"\"\"\n instrumentSessionNumber: Int!\n \"\"\"Proposal number (often 5 digits)\"\"\"\n proposalNumber: Int!\n \"\"\"Scan that produced this dataset\"\"\"\n scanNumber: Int = null\n \"\"\"Title of dataset\"\"\"\n title: String!\n \"\"\"Type of dataset (raw or derived)\"\"\"\n type: DatasetTypeEnum!\n}\n\ntype DatasetEdge {\n cursor: String!\n node: Dataset!\n}\n\ninput DatasetFilterInput {\n \"\"\"Filter on the `data` field of `Dataset`\"\"\"\n data: [JSONOperatorInput!] = null\n \"\"\"Filter on tags\"\"\"\n tags: TagStringArrayOperatorInput = null\n \"\"\"Filter on the `name` field of `Dataset`\"\"\"\n title: StringOperatorInput = null\n}\n\nenum DatasetTypeEnum {\n \"\"\"The result of a processed scan\"\"\"\n DERIVED\n \"\"\"A raw scan without processing\"\"\"\n RAW\n}\n\n\"\"\"Values to update an existing dataset\"\"\"\ninput DatasetUpdateInput {\n \"\"\"Short description about dataset\"\"\"\n description: String\n \"\"\"Title of dataset\"\"\"\n title: String\n}\n\n\"\"\"Date with time (isoformat)\"\"\"\nscalar DateTime\n\ninput DatetimeOperatorInput {\n \"\"\"\n Will filter to items where the `DateTime` field is greater than (i.e. after) the provided value\n \"\"\"\n gt: DateTime = null\n \"\"\"\n Will filter to items where the `DateTime` field is less than (i.e. before) the provided value\n \"\"\"\n lt: DateTime = null\n}\n\ntype InstrumentSession @key(fields: \"instrumentSessionNumber proposal { proposalNumber }\") {\n \"\"\"Datasets associated with a given instrument session\"\"\"\n datasets(filter: DatasetFilterInput = null, pagination: PaginationInput = null): DatasetConnection!\n instrumentSessionNumber: Int! @external\n proposal: Proposal @external\n}\n\n\"\"\"Values required to uniquely identify an instrument session\"\"\"\ninput InstrumentSessionKey {\n \"\"\"Session dataset was created (often single digit appended to proposal)\"\"\"\n instrumentSessionNumber: Int!\n \"\"\"Proposal number (often 5 digits)\"\"\"\n proposalNumber: Int!\n}\n\n\"\"\"\nThe `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).\n\"\"\"\nscalar JSON @specifiedBy(url: \"https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf\")\n\ninput JSONOperator @oneOf {\n datetimeOperator: DatetimeOperatorInput = null\n numericOperator: NumericOperatorInput = null\n stringOperator: StringOperatorInput = null\n}\n\ninput JSONOperatorInput {\n \"\"\"The operator to apply to the JSON field\"\"\"\n operator: JSONOperator!\n \"\"\"A JSON path specifying the value to filter. Must start with '$.'\"\"\"\n path: String!\n}\n\ntype Mutation {\n addAttachment(createInput: AttachmentCreateInput!): Attachment!\n addDataset(createInput: DatasetCreateInput!): Dataset!\n addTags(tagInput: TagCreateInput!): [String!]!\n createAttachmentUploadUrl(createInput: [AttachmentCreateUrlInput!]!): [PresignedUrlInfo!]!\n deleteAttachment(id: Int!): Void\n deleteDataset(id: Int!): Void\n removeTags(tagInput: TagRemoveInput!): Void\n updateAttachment(id: Int!, updateInput: AttachmentUpdateInput!): Attachment\n updateDataset(id: Int!, updateInput: DatasetUpdateInput!): Dataset\n}\n\ninput NumericOperatorInput {\n \"\"\"\n Will filter to items where the numeric field is greater than the provided value\n \"\"\"\n gt: Float = null\n \"\"\"\n Will filter to items where the numeric field is less than the provided value\n \"\"\"\n lt: Float = null\n}\n\ntype PageInfo {\n endCursor: String @shareable\n hasNextPage: Boolean! @shareable\n hasPreviousPage: Boolean! @shareable\n startCursor: String @shareable\n}\n\ninput PaginationInput {\n after: String = null\n before: String = null\n first: Int = null\n last: Int = null\n sortBy: String = null\n sortOrder: String = null\n}\n\ntype PresignedUrlInfo {\n datasetId: Int!\n location: String!\n uploadUrl: String!\n}\n\ntype Proposal @key(fields: \"proposalNumber\") {\n proposalNumber: Int! @external\n}\n\ntype Query {\n attachment(id: Int!): Attachment\n dataset(id: Int!): Dataset\n datasets(filter: DatasetFilterInput = null, instrumentSessions: [InstrumentSessionKey!]!, pagination: PaginationInput = null): DatasetConnection!\n tags: [String!]!\n}\n\n\"\"\"Conditions used to filter results based on the value of a String field\"\"\"\ninput StringOperatorInput {\n \"\"\"\n Will filter to items where the `String` field is contains the provided value\n \"\"\"\n contains: String = null\n \"\"\"\n Will filter to items where the `String` field is equal to the provided value\n \"\"\"\n eq: String = null\n \"\"\"\n Will filter to items where the `String` field is a member of the provided value\n \"\"\"\n in: [String!] = null\n \"\"\"\n Will filter to items where the `String` field is not equal to the provided value\n \"\"\"\n ne: String = null\n \"\"\"\n Will filter to items where the `String` field is not a member of the provided value\n \"\"\"\n nin: [String!] = null\n}\n\n\"\"\"Values to add tags to dataset\"\"\"\ninput TagCreateInput {\n \"\"\"Identifier of the dataset\"\"\"\n datasetId: Int!\n \"\"\"Tags on a dataset\"\"\"\n values: [String!]!\n}\n\n\"\"\"Values to remove tags from dataset\"\"\"\ninput TagRemoveInput {\n \"\"\"Identifier of the dataset\"\"\"\n datasetId: Int!\n \"\"\"Tags on a dataset\"\"\"\n values: [String!]!\n}\n\ninput TagStringArrayOperatorInput {\n allOf: [String!]!\n}\n\n\"\"\"Represents NULL values\"\"\"\nscalar Void\n\nscalar link__Import\n\nenum link__Purpose {\n EXECUTION\n SECURITY\n}\n\nscalar openfed__FieldSet"
}
},
"subgraphs": [
@@ -1164,6 +1468,11 @@
"id": "3",
"name": "schemas",
"routingUrl": "https://schemas.diamond.ac.uk/graphql"
+ },
+ {
+ "id": "4",
+ "name": "datacat",
+ "routingUrl": "https://api.cats.diamond.ac.uk/graphql"
}
],
"version": "00000000-0000-0000-0000-000000000000" |
diff --git a/tmp/old_supergraph.graphql b/tmp/new_supergraph.graphql
index 36ce517..0bf266f 100644
--- a/tmp/old_supergraph.graphql
+++ b/tmp/new_supergraph.graphql
@@ -42,6 +42,15 @@ type Mutation {
createOrValidateSamples(input: CreateOrValidateSampleInput!): CreateSamplesResponse!
createSamples(input: CreateSampleInput!): [Sample!]! @deprecated(reason: "Will be replaced by createOrValidateSamples")
sample(sampleId: UUID!): SampleMutations
+ addDataset(createInput: DatasetCreateInput!): Dataset!
+ updateDataset(id: Int!, updateInput: DatasetUpdateInput!): Dataset
+ addAttachment(createInput: AttachmentCreateInput!): Attachment!
+ updateAttachment(id: Int!, updateInput: AttachmentUpdateInput!): Attachment
+ createAttachmentUploadUrl(createInput: [AttachmentCreateUrlInput!]!): [PresignedUrlInfo!]!
+ addTags(tagInput: TagCreateInput!): [String!]!
+ deleteDataset(id: Int!): Void
+ deleteAttachment(id: Int!): Void
+ removeTags(tagInput: TagRemoveInput!): Void
}
"""Represents Relay Node types"""
@@ -100,6 +109,10 @@ type Query {
sample(sampleId: UUID!): Sample
jsonSchema(url: String!): JSONSchema
jsonSchemas(type: String = null, instrument: String = null): [JSONSchema!]!
+ dataset(id: Int!): Dataset
+ datasets(instrumentSessions: [InstrumentSessionKey!]!, pagination: PaginationInput = null, filter: DatasetFilterInput = null): DatasetConnection!
+ attachment(id: Int!): Attachment
+ tags: [String!]!
}
"""Supported DLS science groups"""
@@ -475,6 +488,9 @@ type InstrumentSession {
"""Samples associated with a given instrument session"""
samples(first: Int!, filter: SampleFilterInput! = {schemaUrl: null, createdTime: null, updatedTime: null, name: null, data: null}, before: String = null, after: String = null, last: Int = null, orderBy: SampleOrder! = {name: null, createdTime: null, updatedTime: null}): SampleConnection!
+
+ """Datasets associated with a given instrument session"""
+ datasets(pagination: PaginationInput = null, filter: DatasetFilterInput = null): DatasetConnection!
}
type InstrumentSessionMutations {
@@ -820,4 +836,219 @@ type JSONSchema {
"""The description og the schema"""
description: String
+}
+
+"""Attachment to dataset"""
+type Attachment {
+ """Internal identifier for attachment"""
+ id: Int!
+
+ """Title of attachment"""
+ title: String
+
+ """Short summary of attachment"""
+ description: String
+
+ """Created timestamp"""
+ createdTime: DateTime!
+
+ """Modified timestamp"""
+ updatedTime: DateTime!
+
+ """Where attachment can be accessed"""
+ location: String!
+
+ """Type of attachment (could be file type)"""
+ type: String!
+ dataset: Dataset!
+}
+
+"""Values to add attachment to dataset"""
+input AttachmentCreateInput {
+ """Title of attachment"""
+ title: String
+
+ """Short summary of attachment"""
+ description: String
+
+ """
+ Where attachment can be accessed. This should be an s3 object key if attachment type is 'image'
+ """
+ location: String!
+
+ """Type of attachment (could be file type)"""
+ type: String!
+
+ """Local identifier for dataset."""
+ datasetId: Int!
+}
+
+"""Required fields to get presigned upload URL"""
+input AttachmentCreateUrlInput {
+ """Local identifier for dataset."""
+ datasetId: Int!
+
+ """Name of the attachment file"""
+ fileName: String!
+
+ """Type of attachment (could be file type)"""
+ fileType: String!
+
+ """Size of the attachemnt file (in Bytes)"""
+ fileSize: Int!
+}
+
+"""Values to update an existing attachment"""
+input AttachmentUpdateInput {
+ """Title of attachment"""
+ title: String
+
+ """Short summary of attachment"""
+ description: String
+}
+
+"""Dataset information"""
+type Dataset {
+ """Local identifier for dataset."""
+ id: Int!
+
+ """Title of dataset"""
+ title: String!
+
+ """Short description about dataset"""
+ description: String
+
+ """Created timestamp"""
+ createdTime: DateTime!
+
+ """Modified timestamp"""
+ updatedTime: DateTime!
+
+ """Type of dataset (raw or derived)"""
+ type: DatasetTypeEnum!
+
+ """Data about the dataset"""
+ data: JSON!
+
+ """JSON schema used to validate data"""
+ dataSchema: String!
+
+ """Scan that produced this dataset"""
+ scanNumber: Int
+ attachments: [Attachment!]!
+ tags: [String!]!
+
+ """The instrument sessions that this dataset is associated with"""
+ instrumentSession: InstrumentSession!
+}
+
+type DatasetConnection {
+ edges: [DatasetEdge!]!
+ pageInfo: PageInfo!
+}
+
+"""Values to create a new dataset"""
+input DatasetCreateInput {
+ """Title of dataset"""
+ title: String!
+
+ """Short description about dataset"""
+ description: String = null
+
+ """Type of dataset (raw or derived)"""
+ type: DatasetTypeEnum!
+
+ """Data about the dataset"""
+ data: JSON!
+
+ """JSON schema used to validate data"""
+ dataSchema: String!
+
+ """Proposal number (often 5 digits)"""
+ proposalNumber: Int!
+
+ """Session dataset was created (often single digit appended to proposal)"""
+ instrumentSessionNumber: Int!
+
+ """Scan that produced this dataset"""
+ scanNumber: Int = null
+}
+
+type DatasetEdge {
+ node: Dataset!
+ cursor: String!
+}
+
+input DatasetFilterInput {
+ """Filter on the `name` field of `Dataset`"""
+ title: StringOperatorInput = null
+
+ """Filter on the `data` field of `Dataset`"""
+ data: [JSONOperatorInput!] = null
+
+ """Filter on tags"""
+ tags: TagStringArrayOperatorInput = null
+}
+
+enum DatasetTypeEnum {
+ """A raw scan without processing"""
+ RAW
+
+ """The result of a processed scan"""
+ DERIVED
+}
+
+"""Values to update an existing dataset"""
+input DatasetUpdateInput {
+ """Title of dataset"""
+ title: String
+
+ """Short description about dataset"""
+ description: String
+}
+
+"""Values required to uniquely identify an instrument session"""
+input InstrumentSessionKey {
+ """Proposal number (often 5 digits)"""
+ proposalNumber: Int!
+
+ """Session dataset was created (often single digit appended to proposal)"""
+ instrumentSessionNumber: Int!
+}
+
+input PaginationInput {
+ sortBy: String = null
+ sortOrder: String = null
+ first: Int = null
+ after: String = null
+ last: Int = null
+ before: String = null
+}
+
+type PresignedUrlInfo {
+ datasetId: Int!
+ uploadUrl: String!
+ location: String!
+}
+
+"""Values to add tags to dataset"""
+input TagCreateInput {
+ """Tags on a dataset"""
+ values: [String!]!
+
+ """Identifier of the dataset"""
+ datasetId: Int!
+}
+
+"""Values to remove tags from dataset"""
+input TagRemoveInput {
+ """Tags on a dataset"""
+ values: [String!]!
+
+ """Identifier of the dataset"""
+ datasetId: Int!
+}
+
+input TagStringArrayOperatorInput {
+ allOf: [String!]!
}
\ No newline at end of file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repository
Subgraph maintainers
@DiamondLightSource/ulims