Skip to content

feat: update instrument_sessions subgraph to 0.4.1#176

Open
dls-graph-schema-federator[bot] wants to merge 1 commit into
mainfrom
instrument_sessions-0.4.1
Open

feat: update instrument_sessions subgraph to 0.4.1#176
dls-graph-schema-federator[bot] wants to merge 1 commit into
mainfrom
instrument_sessions-0.4.1

Conversation

@dls-graph-schema-federator
Copy link
Copy Markdown
Contributor

Repository

Subgraph maintainers

@DiamondLightSource/ulims

@github-actions
Copy link
Copy Markdown

diff --git a/tmp/old_sorted.json b/tmp/new_sorted.json
index cac7663..feae263 100644
--- a/tmp/old_sorted.json
+++ b/tmp/new_sorted.json
@@ -218,174 +218,6 @@
           }
         ]
       },
-      {
-        "childNodes": [
-          {
-            "fieldNames": [
-              "accountId",
-              "username",
-              "emailAddress",
-              "title",
-              "givenName",
-              "familyName",
-              "type",
-              "state",
-              "proposalRoles",
-              "instrumentSessionRoles"
-            ],
-            "typeName": "Account"
-          },
-          {
-            "fieldNames": [
-              "name",
-              "scienceGroup",
-              "description",
-              "proposals",
-              "instrumentSessions"
-            ],
-            "typeName": "Instrument"
-          },
-          {
-            "fieldNames": [
-              "instrumentSession",
-              "account",
-              "role",
-              "onSite"
-            ],
-            "typeName": "InstrumentSessionRole"
-          },
-          {
-            "fieldNames": [
-              "startCursor",
-              "endCursor",
-              "hasNextPage",
-              "hasPreviousPage"
-            ],
-            "typeName": "PageInfo"
-          },
-          {
-            "fieldNames": [
-              "proposal",
-              "account",
-              "role"
-            ],
-            "typeName": "ProposalAccount"
-          },
-          {
-            "fieldNames": [
-              "edges",
-              "pageInfo"
-            ],
-            "typeName": "ProposalConnection"
-          },
-          {
-            "fieldNames": [
-              "cursor",
-              "node"
-            ],
-            "typeName": "ProposalEdge"
-          }
-        ],
-        "customGraphql": {
-          "federation": {
-            "enabled": true,
-            "serviceSdl": "schema @link(url: \"https://specs.apollo.dev/federation/v2.7\", import: [\"@key\", \"@shareable\"]) {\n  query: Query\n  mutation: Mutation\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\n\"\"\"Date with time (isoformat)\"\"\"\nscalar DateTime\n\ntype Instrument {\n  name: String!\n  scienceGroup: String\n  description: String\n  proposals: [Proposal!]!\n  instrumentSessions: [InstrumentSession!]!\n}\n\ntype InstrumentSession @key(fields: \"instrumentSessionNumber proposal {proposalNumber}\") {\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}\n\ntype InstrumentSessionMutations @key(fields: \"instrumentSessionNumber proposalNumber\") {\n  instrumentSessionNumber: Int!\n  proposalNumber: Int!\n}\n\ntype InstrumentSessionRole {\n  instrumentSession: InstrumentSession!\n  account: Account!\n  role: String!\n  onSite: Boolean!\n}\n\ntype Mutation {\n  instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSessionMutations\n}\n\ntype PageInfo @shareable {\n  startCursor: String\n  endCursor: String\n  hasNextPage: Boolean!\n  hasPreviousPage: Boolean!\n}\n\ntype Proposal @key(fields: \"proposalNumber\") {\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 @shareable {\n  edges: [ProposalEdge!]!\n  pageInfo: PageInfo!\n}\n\ntype ProposalEdge @shareable {\n  cursor: String!\n  node: Proposal!\n}\n\nenum ProposalState {\n  Open\n  Closed\n  Cancelled\n}\n\ntype Query {\n  _entities(representations: [_Any!]!): [_Entity]!\n  _service: _Service!\n\n  \"\"\"Get a proposal by its number\"\"\"\n  proposal(proposalNumber: Int!): Proposal\n\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\n  \"\"\"Get a instrument session\"\"\"\n  instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSession\n\n  \"\"\"Get a instrument session\"\"\"\n  instrumentSessions(proposalNumber: Int = null, proposalCategory: String = null): [InstrumentSession!]\n\n  \"\"\"Get an instrument\"\"\"\n  instrument(instrumentName: String!): Instrument\n\n  \"\"\"Get a list of instruments\"\"\"\n  instruments(scienceGroup: String = null): [Instrument!]!\n\n  \"\"\"Get an account\"\"\"\n  account(username: String!): Account\n}\n\nscalar _Any\n\nunion _Entity = InstrumentSession | InstrumentSessionMutations | Proposal\n\ntype _Service {\n  sdl: String!\n}\n"
-          },
-          "fetch": {
-            "baseUrl": {},
-            "body": {},
-            "method": "POST",
-            "path": {},
-            "url": {
-              "staticVariableContent": "https://instrument-sessions.diamond.ac.uk/api/graphql"
-            }
-          },
-          "subscription": {
-            "enabled": true,
-            "protocol": "GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",
-            "url": {
-              "staticVariableContent": "https://instrument-sessions.diamond.ac.uk/api/graphql"
-            },
-            "websocketSubprotocol": "GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"
-          },
-          "upstreamSchema": {
-            "key": "636412ec8e6e8e278df46ce7da59047a6182733c"
-          }
-        },
-        "id": "1",
-        "keys": [
-          {
-            "selectionSet": "instrumentSessionNumber proposal { proposalNumber }",
-            "typeName": "InstrumentSession"
-          },
-          {
-            "selectionSet": "instrumentSessionNumber proposalNumber",
-            "typeName": "InstrumentSessionMutations"
-          },
-          {
-            "selectionSet": "proposalNumber",
-            "typeName": "Proposal"
-          }
-        ],
-        "kind": "GRAPHQL",
-        "overrideFieldPathFromAlias": true,
-        "requestTimeoutSeconds": "10",
-        "rootNodes": [
-          {
-            "fieldNames": [
-              "instrumentSessionId",
-              "instrumentSessionNumber",
-              "startTime",
-              "endTime",
-              "type",
-              "state",
-              "riskRating",
-              "proposal",
-              "instrument",
-              "roles"
-            ],
-            "typeName": "InstrumentSession"
-          },
-          {
-            "fieldNames": [
-              "instrumentSessionNumber",
-              "proposalNumber"
-            ],
-            "typeName": "InstrumentSessionMutations"
-          },
-          {
-            "fieldNames": [
-              "instrumentSession"
-            ],
-            "typeName": "Mutation"
-          },
-          {
-            "fieldNames": [
-              "proposalNumber",
-              "proposalCategory",
-              "title",
-              "summary",
-              "state",
-              "instrumentSessions",
-              "instruments",
-              "roles"
-            ],
-            "typeName": "Proposal"
-          },
-          {
-            "fieldNames": [
-              "proposal",
-              "proposals",
-              "instrumentSession",
-              "instrumentSessions",
-              "instrument",
-              "instruments",
-              "account"
-            ],
-            "typeName": "Query"
-          }
-        ]
-      },
       {
         "childNodes": [
           {
@@ -427,7 +259,7 @@
             "key": "ab9040c814f11559b1e7d93f67b38b284f1bf0d3"
           }
         },
-        "id": "2",
+        "id": "1",
         "kind": "GRAPHQL",
         "overrideFieldPathFromAlias": true,
         "requestTimeoutSeconds": "10",
@@ -563,7 +395,7 @@
             "key": "7e5c4524e9c7fbcc79549ca50a9bec18f0194dc2"
           }
         },
-        "id": "3",
+        "id": "2",
         "keys": [
           {
             "selectionSet": "instrumentSessionNumber proposal { proposalNumber }",
@@ -740,7 +572,7 @@
             "key": "60b3f57ff30215a4bb01d6659c2b5ac5e2a97765"
           }
         },
-        "id": "4",
+        "id": "3",
         "keys": [
           {
             "selectionSet": "id",
@@ -829,6 +661,203 @@
             "typeName": "Sample"
           }
         ]
+      },
+      {
+        "childNodes": [
+          {
+            "fieldNames": [
+              "accountId",
+              "username",
+              "emailAddress",
+              "title",
+              "givenName",
+              "familyName",
+              "type",
+              "state",
+              "proposalRoles",
+              "instrumentSessionRoles"
+            ],
+            "typeName": "Account"
+          },
+          {
+            "fieldNames": [
+              "name",
+              "key",
+              "scienceGroup",
+              "description",
+              "proposals",
+              "instrumentSessions"
+            ],
+            "typeName": "Instrument"
+          },
+          {
+            "fieldNames": [
+              "edges",
+              "pageInfo"
+            ],
+            "typeName": "InstrumentSessionConnection"
+          },
+          {
+            "fieldNames": [
+              "cursor",
+              "node"
+            ],
+            "typeName": "InstrumentSessionEdge"
+          },
+          {
+            "fieldNames": [
+              "instrumentSession",
+              "account",
+              "role",
+              "onSite"
+            ],
+            "typeName": "InstrumentSessionRole"
+          },
+          {
+            "fieldNames": [
+              "startCursor",
+              "endCursor",
+              "hasNextPage",
+              "hasPreviousPage"
+            ],
+            "typeName": "PageInfo"
+          },
+          {
+            "fieldNames": [
+              "proposal",
+              "account",
+              "role"
+            ],
+            "typeName": "ProposalAccount"
+          },
+          {
+            "fieldNames": [
+              "edges",
+              "pageInfo"
+            ],
+            "typeName": "ProposalConnection"
+          },
+          {
+            "fieldNames": [
+              "cursor",
+              "node"
+            ],
+            "typeName": "ProposalEdge"
+          }
+        ],
+        "customGraphql": {
+          "federation": {
+            "enabled": true,
+            "serviceSdl": "schema @link(url: \"https://specs.apollo.dev/federation/v2.7\", import: [\"@key\", \"@shareable\"]) {\n  query: Query\n  mutation: Mutation\n}\n\ntype Account {\n  accountId: Int! @deprecated(reason: \"account_id is deprecated and will be removed in a future version.\")\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\ninput CreateInstrumentSessionInput {\n  \"\"\"Number of the proposal the session is for\"\"\"\n  proposalNumber: Int!\n\n  \"\"\"Name of the instrument the session is for\"\"\"\n  instrumentName: String!\n\n  \"\"\"\n  Instrument Session information that isn't needed by the Session Service but should be passed through the UAS\n  \"\"\"\n  sessionInfo: String!\n}\n\n\"\"\"Date with time (isoformat)\"\"\"\nscalar DateTime\n\ninput DateTimeFilterInput {\n  eq: DateTime = null\n  neq: DateTime = null\n  gt: DateTime = null\n  lt: DateTime = null\n  gte: DateTime = null\n  lte: DateTime = null\n}\n\ntype Instrument {\n  name: String!\n  key: String!\n  scienceGroup: String\n  description: String\n  proposals: [Proposal!]!\n  instrumentSessions: [InstrumentSession!]!\n}\n\ntype InstrumentSession @key(fields: \"instrumentSessionNumber proposal {proposalNumber}\") @key(fields: \"instrumentSessionReference\") {\n  instrumentSessionId: Int! @deprecated(reason: \"instrument_session_id is deprecated and will be removed in a future version.\")\n  instrumentSessionNumber: Int!\n  startTime: DateTime\n  endTime: DateTime\n  type: String\n  state: String\n  riskRating: String\n  proposal: Proposal!\n\n  \"\"\"\n  A human-readable reference for this session in the form '<PROPOSALCATEGORY><PROPOSALNUMBER>-<SESSIONNUMBER>' e.g. 'MX12345-1'.\n  \"\"\"\n  instrumentSessionReference: String\n  instrument: Instrument!\n  roles: [InstrumentSessionRole!]!\n}\n\ntype InstrumentSessionConnection @shareable {\n  edges: [InstrumentSessionEdge!]!\n  pageInfo: PageInfo!\n}\n\ntype InstrumentSessionEdge @shareable {\n  cursor: String!\n  node: InstrumentSession!\n}\n\ninput InstrumentSessionFilterInput {\n  instrumentSessionNumber: IntFilterInput = null\n  startTime: DateTimeFilterInput = null\n  endTime: DateTimeFilterInput = null\n  type: StringFilterInput = null\n  state: InstrumentSessionStateFilterInput = null\n  riskRating: StringFilterInput = null\n  proposalNumber: IntFilterInput = null\n}\n\ntype InstrumentSessionMutations @key(fields: \"instrumentSessionNumber proposalNumber\") {\n  instrumentSessionNumber: Int!\n  proposalNumber: Int!\n}\n\ntype InstrumentSessionRole {\n  instrumentSession: InstrumentSession!\n  account: Account!\n  role: String!\n  onSite: Boolean!\n}\n\nenum InstrumentSessionSortField {\n  instrumentSessionNumber\n  startTime\n  endTime\n  type\n  state\n  riskRating\n  proposalNumber\n}\n\ninput InstrumentSessionSortInput {\n  field: InstrumentSessionSortField!\n  orderBy: SortOrder!\n}\n\nenum InstrumentSessionState {\n  CANCELLED\n  COMPLETED\n  FUTURE\n  IN_PROGRESS\n}\n\ninput InstrumentSessionStateFilterInput {\n  eq: InstrumentSessionState = null\n  neq: InstrumentSessionState = null\n}\n\ninput IntFilterInput {\n  eq: Int = null\n  neq: Int = null\n  gt: Int = null\n  lt: Int = null\n  gte: Int = null\n  lte: Int = null\n}\n\ntype Mutation {\n  createInstrumentSession(input: CreateInstrumentSessionInput!): InstrumentSession!\n  instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSessionMutations\n}\n\ntype PageInfo @shareable {\n  startCursor: String\n  endCursor: String\n  hasNextPage: Boolean!\n  hasPreviousPage: Boolean!\n}\n\ntype Proposal @key(fields: \"proposalNumber\") @key(fields: \"proposalReference\") {\n  proposalNumber: Int!\n  proposalCategory: String\n  title: String\n  summary: String\n  state: ProposalState!\n\n  \"\"\"\n  A human-readable reference for this proposal in the form '<PROPOSALCATEGORY><PROPOSALNUMBER>' e.g. 'MX12345'.\n  \"\"\"\n  proposalReference: String\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 @shareable {\n  edges: [ProposalEdge!]!\n  pageInfo: PageInfo!\n}\n\ntype ProposalEdge @shareable {\n  cursor: String!\n  node: Proposal!\n}\n\ninput ProposalFilterInput {\n  proposalNumber: IntFilterInput = null\n  proposalCategory: StringFilterInput = null\n  title: StringFilterInput = null\n  state: ProposalStateFilterInput = null\n}\n\nenum ProposalSortField {\n  proposalNumber\n}\n\ninput ProposalSortInput {\n  field: ProposalSortField!\n  orderBy: SortOrder!\n}\n\nenum ProposalState {\n  OPEN\n  CLOSED\n  CANCELLED\n}\n\ninput ProposalStateFilterInput {\n  eq: ProposalState = null\n  neq: ProposalState = null\n}\n\ntype Query {\n  _entities(representations: [_Any!]!): [_Entity]!\n  _service: _Service!\n\n  \"\"\"Get a proposal by its number\"\"\"\n  proposal(proposalNumber: Int!): Proposal\n\n  \"\"\"Get a list of proposals\"\"\"\n  proposals(first: Int = null, last: Int = null, after: String = null, before: String = null, sortBy: [ProposalSortInput!] = null, filterBy: ProposalFilterInput = null): ProposalConnection!\n\n  \"\"\"\n  Get a proposal by its reference string e.g. 'MX12345'. The lookup is case-insensitive.\n  \"\"\"\n  proposalByReference(reference: String!): Proposal\n\n  \"\"\"Get a instrument session\"\"\"\n  instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSession\n\n  \"\"\"\n  Get an instrument session by its reference string e.g. 'MX12345-1'. The lookup is case-insensitive.\n  \"\"\"\n  instrumentSessionByReference(reference: String!): InstrumentSession\n\n  \"\"\"Get a list of instrument sessions\"\"\"\n  instrumentSessions(proposalNumber: Int = null, proposalCategory: String = null, first: Int = null, last: Int = null, after: String = null, before: String = null, sortBy: [InstrumentSessionSortInput!] = null, filterBy: InstrumentSessionFilterInput = null): InstrumentSessionConnection!\n\n  \"\"\"Get an instrument by name\"\"\"\n  instrumentByName(name: String!): Instrument\n\n  \"\"\"Get an instrument by key\"\"\"\n  instrumentByKey(key: String!): Instrument\n\n  \"\"\"Get a list of instruments\"\"\"\n  instruments(scienceGroup: String = null): [Instrument!]!\n\n  \"\"\"Get an account\"\"\"\n  account(username: String!): Account\n}\n\nenum SortOrder {\n  ASC\n  DESC\n}\n\ninput StringFilterInput {\n  eq: String = null\n  neq: String = null\n  contains: String = null\n  notContains: String = null\n  startsWith: String = null\n  endsWith: String = null\n}\n\nscalar _Any\n\nunion _Entity = InstrumentSession | InstrumentSessionMutations | Proposal\n\ntype _Service {\n  sdl: String!\n}\n"
+          },
+          "fetch": {
+            "baseUrl": {},
+            "body": {},
+            "method": "POST",
+            "path": {},
+            "url": {
+              "staticVariableContent": "https://instrument-sessions.diamond.ac.uk/api/graphql"
+            }
+          },
+          "subscription": {
+            "enabled": true,
+            "protocol": "GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",
+            "url": {
+              "staticVariableContent": "https://instrument-sessions.diamond.ac.uk/api/graphql"
+            },
+            "websocketSubprotocol": "GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"
+          },
+          "upstreamSchema": {
+            "key": "431c3e05570c8bd8d22e2e9c644f3ac3474bf213"
+          }
+        },
+        "id": "4",
+        "keys": [
+          {
+            "selectionSet": "instrumentSessionNumber proposal { proposalNumber }",
+            "typeName": "InstrumentSession"
+          },
+          {
+            "selectionSet": "instrumentSessionReference",
+            "typeName": "InstrumentSession"
+          },
+          {
+            "selectionSet": "instrumentSessionNumber proposalNumber",
+            "typeName": "InstrumentSessionMutations"
+          },
+          {
+            "selectionSet": "proposalNumber",
+            "typeName": "Proposal"
+          },
+          {
+            "selectionSet": "proposalReference",
+            "typeName": "Proposal"
+          }
+        ],
+        "kind": "GRAPHQL",
+        "overrideFieldPathFromAlias": true,
+        "requestTimeoutSeconds": "10",
+        "rootNodes": [
+          {
+            "fieldNames": [
+              "instrumentSessionId",
+              "instrumentSessionNumber",
+              "startTime",
+              "endTime",
+              "type",
+              "state",
+              "riskRating",
+              "proposal",
+              "instrumentSessionReference",
+              "instrument",
+              "roles"
+            ],
+            "typeName": "InstrumentSession"
+          },
+          {
+            "fieldNames": [
+              "instrumentSessionNumber",
+              "proposalNumber"
+            ],
+            "typeName": "InstrumentSessionMutations"
+          },
+          {
+            "fieldNames": [
+              "createInstrumentSession",
+              "instrumentSession"
+            ],
+            "typeName": "Mutation"
+          },
+          {
+            "fieldNames": [
+              "proposalNumber",
+              "proposalCategory",
+              "title",
+              "summary",
+              "state",
+              "proposalReference",
+              "instrumentSessions",
+              "instruments",
+              "roles"
+            ],
+            "typeName": "Proposal"
+          },
+          {
+            "fieldNames": [
+              "proposal",
+              "proposals",
+              "proposalByReference",
+              "instrumentSession",
+              "instrumentSessionByReference",
+              "instrumentSessions",
+              "instrumentByName",
+              "instrumentByKey",
+              "instruments",
+              "account"
+            ],
+            "typeName": "Query"
+          }
+        ]
       }
     ],
     "defaultFlushInterval": "500",
@@ -854,25 +883,31 @@
       {
         "argumentsConfiguration": [
           {
-            "name": "proposalNumber",
+            "name": "input",
             "sourceType": "FIELD_ARGUMENT"
-          },
+          }
+        ],
+        "fieldName": "createOrValidateSamples",
+        "typeName": "Mutation"
+      },
+      {
+        "argumentsConfiguration": [
           {
-            "name": "instrumentSessionNumber",
+            "name": "input",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "instrumentSession",
+        "fieldName": "createSamples",
         "typeName": "Mutation"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "input",
+            "name": "sampleId",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "createOrValidateSamples",
+        "fieldName": "sample",
         "typeName": "Mutation"
       },
       {
@@ -882,17 +917,17 @@
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "createSamples",
+        "fieldName": "createExperimentDefinition",
         "typeName": "Mutation"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "sampleId",
+            "name": "id",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "sample",
+        "fieldName": "experimentDefinition",
         "typeName": "Mutation"
       },
       {
@@ -902,17 +937,21 @@
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "createExperimentDefinition",
+        "fieldName": "createInstrumentSession",
         "typeName": "Mutation"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "id",
+            "name": "proposalNumber",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "instrumentSessionNumber",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "experimentDefinition",
+        "fieldName": "instrumentSession",
         "typeName": "Mutation"
       },
       {
@@ -992,129 +1031,151 @@
       {
         "argumentsConfiguration": [
           {
-            "name": "proposalNumber",
+            "name": "url",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "proposal",
+        "fieldName": "jsonSchema",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "proposalCategory",
-            "sourceType": "FIELD_ARGUMENT"
-          },
-          {
-            "name": "first",
-            "sourceType": "FIELD_ARGUMENT"
-          },
-          {
-            "name": "last",
-            "sourceType": "FIELD_ARGUMENT"
-          },
-          {
-            "name": "after",
+            "name": "type",
             "sourceType": "FIELD_ARGUMENT"
           },
           {
-            "name": "before",
+            "name": "instrument",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "proposals",
+        "fieldName": "jsonSchemas",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "proposalNumber",
-            "sourceType": "FIELD_ARGUMENT"
-          },
-          {
-            "name": "instrumentSessionNumber",
+            "name": "sampleId",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "instrumentSession",
+        "fieldName": "sample",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "proposalNumber",
+            "name": "first",
             "sourceType": "FIELD_ARGUMENT"
           },
           {
-            "name": "proposalCategory",
+            "name": "instrumentSessions",
             "sourceType": "FIELD_ARGUMENT"
-          }
-        ],
-        "fieldName": "instrumentSessions",
-        "typeName": "Query"
-      },
-      {
-        "argumentsConfiguration": [
+          },
+          {
+            "name": "filter",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "before",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "after",
+            "sourceType": "FIELD_ARGUMENT"
+          },
           {
-            "name": "instrumentName",
+            "name": "last",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "orderBy",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "instrument",
+        "fieldName": "samples",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "scienceGroup",
+            "name": "id",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "instruments",
+        "fieldName": "experimentDefinition",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "username",
+            "name": "instrumentSessions",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "first",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "last",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "after",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "before",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "account",
+        "fieldName": "experimentDefinitions",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "url",
+            "name": "id",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "jsonSchema",
+        "fieldName": "experiment",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "type",
+            "name": "instrumentSessions",
             "sourceType": "FIELD_ARGUMENT"
           },
           {
-            "name": "instrument",
+            "name": "first",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "last",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "after",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "before",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "jsonSchemas",
+        "fieldName": "experiments",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "sampleId",
+            "name": "proposalNumber",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "sample",
+        "fieldName": "proposal",
         "typeName": "Query"
       },
       {
@@ -1124,11 +1185,11 @@
             "sourceType": "FIELD_ARGUMENT"
           },
           {
-            "name": "instrumentSessions",
+            "name": "last",
             "sourceType": "FIELD_ARGUMENT"
           },
           {
-            "name": "filter",
+            "name": "after",
             "sourceType": "FIELD_ARGUMENT"
           },
           {
@@ -1136,35 +1197,59 @@
             "sourceType": "FIELD_ARGUMENT"
           },
           {
-            "name": "after",
+            "name": "sortBy",
             "sourceType": "FIELD_ARGUMENT"
           },
           {
-            "name": "last",
+            "name": "filterBy",
+            "sourceType": "FIELD_ARGUMENT"
+          }
+        ],
+        "fieldName": "proposals",
+        "typeName": "Query"
+      },
+      {
+        "argumentsConfiguration": [
+          {
+            "name": "reference",
+            "sourceType": "FIELD_ARGUMENT"
+          }
+        ],
+        "fieldName": "proposalByReference",
+        "typeName": "Query"
+      },
+      {
+        "argumentsConfiguration": [
+          {
+            "name": "proposalNumber",
             "sourceType": "FIELD_ARGUMENT"
           },
           {
-            "name": "orderBy",
+            "name": "instrumentSessionNumber",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "samples",
+        "fieldName": "instrumentSession",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "id",
+            "name": "reference",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "experimentDefinition",
+        "fieldName": "instrumentSessionByReference",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "instrumentSessions",
+            "name": "proposalNumber",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "proposalCategory",
             "sourceType": "FIELD_ARGUMENT"
           },
           {
@@ -1182,45 +1267,57 @@
           {
             "name": "before",
             "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "sortBy",
+            "sourceType": "FIELD_ARGUMENT"
+          },
+          {
+            "name": "filterBy",
+            "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "experimentDefinitions",
+        "fieldName": "instrumentSessions",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "id",
+            "name": "name",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "experiment",
+        "fieldName": "instrumentByName",
         "typeName": "Query"
       },
       {
         "argumentsConfiguration": [
           {
-            "name": "instrumentSessions",
+            "name": "key",
             "sourceType": "FIELD_ARGUMENT"
-          },
-          {
-            "name": "first",
-            "sourceType": "FIELD_ARGUMENT"
-          },
-          {
-            "name": "last",
-            "sourceType": "FIELD_ARGUMENT"
-          },
+          }
+        ],
+        "fieldName": "instrumentByKey",
+        "typeName": "Query"
+      },
+      {
+        "argumentsConfiguration": [
           {
-            "name": "after",
+            "name": "scienceGroup",
             "sourceType": "FIELD_ARGUMENT"
-          },
+          }
+        ],
+        "fieldName": "instruments",
+        "typeName": "Query"
+      },
+      {
+        "argumentsConfiguration": [
           {
-            "name": "before",
+            "name": "username",
             "sourceType": "FIELD_ARGUMENT"
           }
         ],
-        "fieldName": "experiments",
+        "fieldName": "account",
         "typeName": "Query"
       },
       {
@@ -1468,10 +1565,10 @@
         "typeName": "ExperimentDefinitionMutations"
       }
     ],
-    "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  createExperimentDefinition(input: CreateExperimentDefinitionInput!): ExperimentDefinition\n  experimentDefinition(id: UUID!): ExperimentDefinitionMutations\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  jsonSchema(url: String!): JSONSchema\n  jsonSchemas(type: String = null, instrument: String = null): [JSONSchema!]!\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(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  experimentDefinition(id: UUID!): ExperimentDefinition\n  experimentDefinitions(instrumentSessions: [InstrumentSessionInput!]!, first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentDefinitionConnection\n  experiment(id: UUID!): Experiment\n  experiments(instrumentSessions: [InstrumentSessionInput!]!, first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentConnection\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  \"\"\"Experiment Definitions\"\"\"\n  experimentDefinitions(first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentDefinitionConnection!\n  \"\"\"Experiments associated with this session\"\"\"\n  experiments(first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentConnection!\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\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\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\n\"\"\"Values required to uniquely identify an instrument session\"\"\"\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: [InstrumentSession!]!\n  images: [SampleImage!]!\n  experiments: [Experiment!]!\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  updateSample(input: UpdateSampleInput!): UpdateSampleResponse!\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\ninput UpdateSampleInput {\n  \"\"\"Name of the sample\"\"\"\n  name: String\n  \"\"\"Data of the sample\"\"\"\n  data: JSON\n  \"\"\"URL of the JSON schema the samples' `data` should be validated against\"\"\"\n  dataSchemaUrl: String\n}\n\n\"\"\"Return type when creating or validating samples\"\"\"\ntype UpdateSampleResponse {\n  \"\"\"Whether the operation has succeeded without validation errors\"\"\"\n  success: Boolean!\n  \"\"\"Sample that has been updated\"\"\"\n  sample: Sample\n  \"\"\"Errors that occurred during sample validation\"\"\"\n  errors: [SampleValidationError!]!\n}\n\n\"\"\"Represents NULL values\"\"\"\nscalar Void\n\n\"\"\"Values required to create an experiment definition\"\"\"\ninput CreateExperimentDefinitionInput {\n  name: String!\n  data: JSON!\n  dataSchemaUrl: String!\n  proposalNumber: Int!\n  instrumentSessionNumber: Int!\n}\n\n\"\"\"Values required for the createExperiments mutation\"\"\"\ninput CreateExperimentsInput {\n  experiments: [ExperimentInput!]!\n}\n\ntype Experiment {\n  id: UUID!\n  name: String!\n  createdTime: DateTime!\n  updatedTime: DateTime!\n  experimentDefinition: ExperimentDefinition!\n  \"\"\"The sample that this experiment is associated with\"\"\"\n  sample: Sample!\n}\n\ntype ExperimentConnection {\n  edges: [ExperimentEdge!]!\n  pageInfo: PageInfo!\n}\n\ntype ExperimentDefinition {\n  id: UUID!\n  name: String!\n  createdTime: DateTime!\n  updatedTime: DateTime!\n  data: JSON!\n  dataSchemaUrl: String!\n  proposalNumber: Int!\n  instrumentSessionNumber: Int!\n  \"\"\"\n  The instrument session that this experiment definition is associated with\n  \"\"\"\n  instrumentSession: InstrumentSession!\n  \"\"\"Experiments associated with this experiment definition\"\"\"\n  experiments: [Experiment!]!\n}\n\ntype ExperimentDefinitionConnection {\n  edges: [ExperimentDefinitionEdge!]!\n  pageInfo: PageInfo!\n}\n\ntype ExperimentDefinitionEdge {\n  cursor: String!\n  node: ExperimentDefinition!\n}\n\n\"\"\"Mutations for a given experiment defintion\"\"\"\ntype ExperimentDefinitionMutations {\n  createExperiments(input: CreateExperimentsInput!): [Experiment!]!\n}\n\ntype ExperimentEdge {\n  cursor: String!\n  node: Experiment!\n}\n\n\"\"\"Values required to create an experiment\"\"\"\ninput ExperimentInput {\n  name: String!\n  sampleId: UUID!\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  createOrValidateSamples(input: CreateOrValidateSampleInput!): CreateSamplesResponse!\n  createSamples(input: CreateSampleInput!): [Sample!]! @deprecated(reason: \"Will be replaced by createOrValidateSamples\")\n  sample(sampleId: UUID!): SampleMutations\n  createExperimentDefinition(input: CreateExperimentDefinitionInput!): ExperimentDefinition\n  experimentDefinition(id: UUID!): ExperimentDefinitionMutations\n  createInstrumentSession(input: CreateInstrumentSessionInput!): InstrumentSession!\n  instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSessionMutations\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  jsonSchema(url: String!): JSONSchema\n  jsonSchemas(type: String = null, instrument: String = null): [JSONSchema!]!\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(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  experimentDefinition(id: UUID!): ExperimentDefinition\n  experimentDefinitions(instrumentSessions: [InstrumentSessionInput!]!, first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentDefinitionConnection\n  experiment(id: UUID!): Experiment\n  experiments(instrumentSessions: [InstrumentSessionInput!]!, first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentConnection\n  \"\"\"Get a proposal by its number\"\"\"\n  proposal(proposalNumber: Int!): Proposal\n  \"\"\"Get a list of proposals\"\"\"\n  proposals(first: Int = null, last: Int = null, after: String = null, before: String = null, sortBy: [ProposalSortInput!] = null, filterBy: ProposalFilterInput = null): ProposalConnection!\n  \"\"\"\n  Get a proposal by its reference string e.g. 'MX12345'. The lookup is case-insensitive.\n  \"\"\"\n  proposalByReference(reference: String!): Proposal\n  \"\"\"Get a instrument session\"\"\"\n  instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSession\n  \"\"\"\n  Get an instrument session by its reference string e.g. 'MX12345-1'. The lookup is case-insensitive.\n  \"\"\"\n  instrumentSessionByReference(reference: String!): InstrumentSession\n  \"\"\"Get a list of instrument sessions\"\"\"\n  instrumentSessions(proposalNumber: Int = null, proposalCategory: String = null, first: Int = null, last: Int = null, after: String = null, before: String = null, sortBy: [InstrumentSessionSortInput!] = null, filterBy: InstrumentSessionFilterInput = null): InstrumentSessionConnection!\n  \"\"\"Get an instrument by name\"\"\"\n  instrumentByName(name: String!): Instrument\n  \"\"\"Get an instrument by key\"\"\"\n  instrumentByKey(key: String!): Instrument\n  \"\"\"Get a list of instruments\"\"\"\n  instruments(scienceGroup: String = null): [Instrument!]!\n  \"\"\"Get an account\"\"\"\n  account(username: String!): Account\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\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\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 InstrumentSession {\n  instrumentSessionNumber: Int!\n  proposal: Proposal\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  \"\"\"Experiment Definitions\"\"\"\n  experimentDefinitions(first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentDefinitionConnection!\n  \"\"\"Experiments associated with this session\"\"\"\n  experiments(first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentConnection!\n  instrumentSessionId: Int! @deprecated(reason: \"instrument_session_id is deprecated and will be removed in a future version.\")\n  startTime: DateTime\n  endTime: DateTime\n  type: String\n  state: String\n  riskRating: String\n  \"\"\"\n  A human-readable reference for this session in the form '<PROPOSALCATEGORY><PROPOSALNUMBER>-<SESSIONNUMBER>' e.g. 'MX12345-1'.\n  \"\"\"\n  instrumentSessionReference: String\n  instrument: Instrument!\n  roles: [InstrumentSessionRole!]!\n}\n\n\"\"\"Values required to uniquely identify an instrument session\"\"\"\ninput InstrumentSessionInput {\n  proposalNumber: Int!\n  instrumentSessionNumber: Int!\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\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 Proposal {\n  proposalNumber: Int!\n  proposalCategory: String\n  title: String\n  summary: String\n  state: ProposalState!\n  \"\"\"\n  A human-readable reference for this proposal in the form '<PROPOSALCATEGORY><PROPOSALNUMBER>' e.g. 'MX12345'.\n  \"\"\"\n  proposalReference: String\n  instrumentSessions: [InstrumentSession!]!\n  instruments: [Instrument!]!\n  roles: [ProposalAccount!]!\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: [InstrumentSession!]!\n  images: [SampleImage!]!\n  experiments: [Experiment!]!\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  updateSample(input: UpdateSampleInput!): UpdateSampleResponse!\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\ninput UpdateSampleInput {\n  \"\"\"Name of the sample\"\"\"\n  name: String\n  \"\"\"Data of the sample\"\"\"\n  data: JSON\n  \"\"\"URL of the JSON schema the samples' `data` should be validated against\"\"\"\n  dataSchemaUrl: String\n}\n\n\"\"\"Return type when creating or validating samples\"\"\"\ntype UpdateSampleResponse {\n  \"\"\"Whether the operation has succeeded without validation errors\"\"\"\n  success: Boolean!\n  \"\"\"Sample that has been updated\"\"\"\n  sample: Sample\n  \"\"\"Errors that occurred during sample validation\"\"\"\n  errors: [SampleValidationError!]!\n}\n\n\"\"\"Represents NULL values\"\"\"\nscalar Void\n\n\"\"\"Values required to create an experiment definition\"\"\"\ninput CreateExperimentDefinitionInput {\n  name: String!\n  data: JSON!\n  dataSchemaUrl: String!\n  proposalNumber: Int!\n  instrumentSessionNumber: Int!\n}\n\n\"\"\"Values required for the createExperiments mutation\"\"\"\ninput CreateExperimentsInput {\n  experiments: [ExperimentInput!]!\n}\n\ntype Experiment {\n  id: UUID!\n  name: String!\n  createdTime: DateTime!\n  updatedTime: DateTime!\n  experimentDefinition: ExperimentDefinition!\n  \"\"\"The sample that this experiment is associated with\"\"\"\n  sample: Sample!\n}\n\ntype ExperimentConnection {\n  edges: [ExperimentEdge!]!\n  pageInfo: PageInfo!\n}\n\ntype ExperimentDefinition {\n  id: UUID!\n  name: String!\n  createdTime: DateTime!\n  updatedTime: DateTime!\n  data: JSON!\n  dataSchemaUrl: String!\n  proposalNumber: Int!\n  instrumentSessionNumber: Int!\n  \"\"\"\n  The instrument session that this experiment definition is associated with\n  \"\"\"\n  instrumentSession: InstrumentSession!\n  \"\"\"Experiments associated with this experiment definition\"\"\"\n  experiments: [Experiment!]!\n}\n\ntype ExperimentDefinitionConnection {\n  edges: [ExperimentDefinitionEdge!]!\n  pageInfo: PageInfo!\n}\n\ntype ExperimentDefinitionEdge {\n  cursor: String!\n  node: ExperimentDefinition!\n}\n\n\"\"\"Mutations for a given experiment defintion\"\"\"\ntype ExperimentDefinitionMutations {\n  createExperiments(input: CreateExperimentsInput!): [Experiment!]!\n}\n\ntype ExperimentEdge {\n  cursor: String!\n  node: Experiment!\n}\n\n\"\"\"Values required to create an experiment\"\"\"\ninput ExperimentInput {\n  name: String!\n  sampleId: UUID!\n}\n\ntype Account {\n  accountId: Int! @deprecated(reason: \"account_id is deprecated and will be removed in a future version.\")\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\ninput CreateInstrumentSessionInput {\n  \"\"\"Number of the proposal the session is for\"\"\"\n  proposalNumber: Int!\n  \"\"\"Name of the instrument the session is for\"\"\"\n  instrumentName: String!\n  \"\"\"\n  Instrument Session information that isn't needed by the Session Service but should be passed through the UAS\n  \"\"\"\n  sessionInfo: String!\n}\n\ninput DateTimeFilterInput {\n  eq: DateTime = null\n  neq: DateTime = null\n  gt: DateTime = null\n  lt: DateTime = null\n  gte: DateTime = null\n  lte: DateTime = null\n}\n\ntype Instrument {\n  name: String!\n  key: String!\n  scienceGroup: String\n  description: String\n  proposals: [Proposal!]!\n  instrumentSessions: [InstrumentSession!]!\n}\n\ntype InstrumentSessionConnection {\n  edges: [InstrumentSessionEdge!]!\n  pageInfo: PageInfo!\n}\n\ntype InstrumentSessionEdge {\n  cursor: String!\n  node: InstrumentSession!\n}\n\ninput InstrumentSessionFilterInput {\n  instrumentSessionNumber: IntFilterInput = null\n  startTime: DateTimeFilterInput = null\n  endTime: DateTimeFilterInput = null\n  type: StringFilterInput = null\n  state: InstrumentSessionStateFilterInput = null\n  riskRating: StringFilterInput = null\n  proposalNumber: IntFilterInput = null\n}\n\ntype InstrumentSessionRole {\n  instrumentSession: InstrumentSession!\n  account: Account!\n  role: String!\n  onSite: Boolean!\n}\n\nenum InstrumentSessionSortField {\n  instrumentSessionNumber\n  startTime\n  endTime\n  type\n  state\n  riskRating\n  proposalNumber\n}\n\ninput InstrumentSessionSortInput {\n  field: InstrumentSessionSortField!\n  orderBy: SortOrder!\n}\n\nenum InstrumentSessionState {\n  CANCELLED\n  COMPLETED\n  FUTURE\n  IN_PROGRESS\n}\n\ninput InstrumentSessionStateFilterInput {\n  eq: InstrumentSessionState = null\n  neq: InstrumentSessionState = null\n}\n\ninput IntFilterInput {\n  eq: Int = null\n  neq: Int = null\n  gt: Int = null\n  lt: Int = null\n  gte: Int = null\n  lte: Int = null\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\ninput ProposalFilterInput {\n  proposalNumber: IntFilterInput = null\n  proposalCategory: StringFilterInput = null\n  title: StringFilterInput = null\n  state: ProposalStateFilterInput = null\n}\n\nenum ProposalSortField {\n  proposalNumber\n}\n\ninput ProposalSortInput {\n  field: ProposalSortField!\n  orderBy: SortOrder!\n}\n\nenum ProposalState {\n  OPEN\n  CLOSED\n  CANCELLED\n}\n\ninput ProposalStateFilterInput {\n  eq: ProposalState = null\n  neq: ProposalState = null\n}\n\nenum SortOrder {\n  ASC\n  DESC\n}\n\ninput StringFilterInput {\n  eq: String = null\n  neq: String = null\n  contains: String = null\n  notContains: String = null\n  startsWith: String = null\n  endsWith: String = null\n}",
     "stringStorage": {
+      "431c3e05570c8bd8d22e2e9c644f3ac3474bf213": "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! @deprecated(reason: \"account_id is deprecated and will be removed in a future version.\")\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\ninput CreateInstrumentSessionInput {\n  \"\"\"Name of the instrument the session is for\"\"\"\n  instrumentName: String!\n  \"\"\"Number of the proposal the session is for\"\"\"\n  proposalNumber: Int!\n  \"\"\"\n  Instrument Session information that isn't needed by the Session Service but should be passed through the UAS\n  \"\"\"\n  sessionInfo: String!\n}\n\n\"\"\"Date with time (isoformat)\"\"\"\nscalar DateTime\n\ninput DateTimeFilterInput {\n  eq: DateTime = null\n  gt: DateTime = null\n  gte: DateTime = null\n  lt: DateTime = null\n  lte: DateTime = null\n  neq: DateTime = null\n}\n\ntype Instrument {\n  description: String\n  instrumentSessions: [InstrumentSession!]!\n  key: String!\n  name: String!\n  proposals: [Proposal!]!\n  scienceGroup: String\n}\n\ntype InstrumentSession @key(fields: \"instrumentSessionNumber proposal {proposalNumber}\") @key(fields: \"instrumentSessionReference\") {\n  endTime: DateTime\n  instrument: Instrument!\n  instrumentSessionId: Int! @deprecated(reason: \"instrument_session_id is deprecated and will be removed in a future version.\")\n  instrumentSessionNumber: Int!\n  \"\"\"\n  A human-readable reference for this session in the form '<PROPOSALCATEGORY><PROPOSALNUMBER>-<SESSIONNUMBER>' e.g. 'MX12345-1'.\n  \"\"\"\n  instrumentSessionReference: String\n  proposal: Proposal!\n  riskRating: String\n  roles: [InstrumentSessionRole!]!\n  startTime: DateTime\n  state: String\n  type: String\n}\n\ntype InstrumentSessionConnection {\n  edges: [InstrumentSessionEdge!]! @shareable\n  pageInfo: PageInfo! @shareable\n}\n\ntype InstrumentSessionEdge {\n  cursor: String! @shareable\n  node: InstrumentSession! @shareable\n}\n\ninput InstrumentSessionFilterInput {\n  endTime: DateTimeFilterInput = null\n  instrumentSessionNumber: IntFilterInput = null\n  proposalNumber: IntFilterInput = null\n  riskRating: StringFilterInput = null\n  startTime: DateTimeFilterInput = null\n  state: InstrumentSessionStateFilterInput = null\n  type: StringFilterInput = null\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\nenum InstrumentSessionSortField {\n  endTime\n  instrumentSessionNumber\n  proposalNumber\n  riskRating\n  startTime\n  state\n  type\n}\n\ninput InstrumentSessionSortInput {\n  field: InstrumentSessionSortField!\n  orderBy: SortOrder!\n}\n\nenum InstrumentSessionState {\n  CANCELLED\n  COMPLETED\n  FUTURE\n  IN_PROGRESS\n}\n\ninput InstrumentSessionStateFilterInput {\n  eq: InstrumentSessionState = null\n  neq: InstrumentSessionState = null\n}\n\ninput IntFilterInput {\n  eq: Int = null\n  gt: Int = null\n  gte: Int = null\n  lt: Int = null\n  lte: Int = null\n  neq: Int = null\n}\n\ntype Mutation {\n  createInstrumentSession(input: CreateInstrumentSessionInput!): InstrumentSession!\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\") @key(fields: \"proposalReference\") {\n  instrumentSessions: [InstrumentSession!]!\n  instruments: [Instrument!]!\n  proposalCategory: String\n  proposalNumber: Int!\n  \"\"\"\n  A human-readable reference for this proposal in the form '<PROPOSALCATEGORY><PROPOSALNUMBER>' e.g. 'MX12345'.\n  \"\"\"\n  proposalReference: String\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\ninput ProposalFilterInput {\n  proposalCategory: StringFilterInput = null\n  proposalNumber: IntFilterInput = null\n  state: ProposalStateFilterInput = null\n  title: StringFilterInput = null\n}\n\nenum ProposalSortField {\n  proposalNumber\n}\n\ninput ProposalSortInput {\n  field: ProposalSortField!\n  orderBy: SortOrder!\n}\n\nenum ProposalState {\n  CANCELLED\n  CLOSED\n  OPEN\n}\n\ninput ProposalStateFilterInput {\n  eq: ProposalState = null\n  neq: ProposalState = null\n}\n\ntype Query {\n  \"\"\"Get an account\"\"\"\n  account(username: String!): Account\n  \"\"\"Get an instrument by key\"\"\"\n  instrumentByKey(key: String!): Instrument\n  \"\"\"Get an instrument by name\"\"\"\n  instrumentByName(name: String!): Instrument\n  \"\"\"Get a instrument session\"\"\"\n  instrumentSession(instrumentSessionNumber: Int!, proposalNumber: Int!): InstrumentSession\n  \"\"\"\n  Get an instrument session by its reference string e.g. 'MX12345-1'. The lookup is case-insensitive.\n  \"\"\"\n  instrumentSessionByReference(reference: String!): InstrumentSession\n  \"\"\"Get a list of instrument sessions\"\"\"\n  instrumentSessions(after: String = null, before: String = null, filterBy: InstrumentSessionFilterInput = null, first: Int = null, last: Int = null, proposalCategory: String = null, proposalNumber: Int = null, sortBy: [InstrumentSessionSortInput!] = null): InstrumentSessionConnection!\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  \"\"\"\n  Get a proposal by its reference string e.g. 'MX12345'. The lookup is case-insensitive.\n  \"\"\"\n  proposalByReference(reference: String!): Proposal\n  \"\"\"Get a list of proposals\"\"\"\n  proposals(after: String = null, before: String = null, filterBy: ProposalFilterInput = null, first: Int = null, last: Int = null, sortBy: [ProposalSortInput!] = null): ProposalConnection!\n}\n\nenum SortOrder {\n  ASC\n  DESC\n}\n\ninput StringFilterInput {\n  contains: String = null\n  endsWith: String = null\n  eq: String = null\n  neq: String = null\n  notContains: String = null\n  startsWith: String = null\n}\n\nscalar link__Import\n\nenum link__Purpose {\n  EXECUTION\n  SECURITY\n}\n\nscalar openfed__FieldSet",
       "60b3f57ff30215a4bb01d6659c2b5ac5e2a97765": "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\"\"\"Values required to create an experiment definition\"\"\"\ninput CreateExperimentDefinitionInput {\n  data: JSON!\n  dataSchemaUrl: String!\n  instrumentSessionNumber: Int!\n  name: String!\n  proposalNumber: Int!\n}\n\n\"\"\"Values required for the createExperiments mutation\"\"\"\ninput CreateExperimentsInput {\n  experiments: [ExperimentInput!]!\n}\n\n\"\"\"Date with time (isoformat)\"\"\"\nscalar DateTime\n\ntype Experiment @key(fields: \"id\") {\n  createdTime: DateTime!\n  experimentDefinition: ExperimentDefinition!\n  id: UUID!\n  name: String!\n  \"\"\"The sample that this experiment is associated with\"\"\"\n  sample: Sample! @provides(fields: \"id\")\n  updatedTime: DateTime!\n}\n\ntype ExperimentConnection {\n  edges: [ExperimentEdge!]! @shareable\n  pageInfo: PageInfo! @shareable\n}\n\ntype ExperimentDefinition {\n  createdTime: DateTime!\n  data: JSON!\n  dataSchemaUrl: String!\n  \"\"\"Experiments associated with this experiment definition\"\"\"\n  experiments: [Experiment!]!\n  id: UUID!\n  \"\"\"\n  The instrument session that this experiment definition is associated with\n  \"\"\"\n  instrumentSession: InstrumentSession! @provides(fields: \"instrumentSessionNumber proposal{ proposalNumber }\")\n  instrumentSessionNumber: Int!\n  name: String!\n  proposalNumber: Int!\n  updatedTime: DateTime!\n}\n\ntype ExperimentDefinitionConnection {\n  edges: [ExperimentDefinitionEdge!]! @shareable\n  pageInfo: PageInfo! @shareable\n}\n\ntype ExperimentDefinitionEdge {\n  cursor: String! @shareable\n  node: ExperimentDefinition! @shareable\n}\n\n\"\"\"Mutations for a given experiment defintion\"\"\"\ntype ExperimentDefinitionMutations {\n  createExperiments(input: CreateExperimentsInput!): [Experiment!]!\n}\n\ntype ExperimentEdge {\n  cursor: String! @shareable\n  node: Experiment! @shareable\n}\n\n\"\"\"Values required to create an experiment\"\"\"\ninput ExperimentInput {\n  name: String!\n  sampleId: UUID!\n}\n\ntype InstrumentSession @key(fields: \"instrumentSessionNumber proposal { proposalNumber }\") {\n  \"\"\"Experiment Definitions\"\"\"\n  experimentDefinitions(after: String = null, before: String = null, first: Int = null, last: Int = null): ExperimentDefinitionConnection!\n  \"\"\"Experiments associated with this session\"\"\"\n  experiments(after: String = null, before: String = null, first: Int = null, last: Int = null): ExperimentConnection!\n  instrumentSessionNumber: Int! @external\n  proposal: Proposal @external\n}\n\n\"\"\"Values required to uniquely identify an instrument session\"\"\"\ninput InstrumentSessionInput {\n  instrumentSessionNumber: Int!\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\ntype Mutation {\n  createExperimentDefinition(input: CreateExperimentDefinitionInput!): ExperimentDefinition\n  experimentDefinition(id: UUID!): ExperimentDefinitionMutations\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  experiment(id: UUID!): Experiment\n  experimentDefinition(id: UUID!): ExperimentDefinition\n  experimentDefinitions(after: String = null, before: String = null, first: Int = null, instrumentSessions: [InstrumentSessionInput!]!, last: Int = null): ExperimentDefinitionConnection\n  experiments(after: String = null, before: String = null, first: Int = null, instrumentSessions: [InstrumentSessionInput!]!, last: Int = null): ExperimentConnection\n}\n\ntype Sample @key(fields: \"id\") {\n  experiments: [Experiment!]!\n  id: UUID! @external\n}\n\nscalar UUID\n\nscalar link__Import\n\nenum link__Purpose {\n  EXECUTION\n  SECURITY\n}\n\nscalar openfed__FieldSet",
-      "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",
       "7e5c4524e9c7fbcc79549ca50a9bec18f0194dc2": "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\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 @key(fields: \"id\") {\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: [InstrumentSession!]! @provides(fields: \"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!]! @shareable\n  pageInfo: PageInfo! @shareable\n}\n\ntype SampleEdge {\n  cursor: String! @shareable\n  node: Sample! @shareable\n}\n\ntype SampleEvent {\n  description: String!\n  id: UUID!\n  timestamp: DateTime!\n}\n\ntype SampleEventConnection {\n  edges: [SampleEventEdge!]! @shareable\n  pageInfo: PageInfo! @shareable\n}\n\ntype SampleEventEdge {\n  cursor: String! @shareable\n  node: SampleEvent! @shareable\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  updateSample(input: UpdateSampleInput!): UpdateSampleResponse!\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\ninput UpdateSampleInput {\n  \"\"\"Data of the sample\"\"\"\n  data: JSON\n  \"\"\"URL of the JSON schema the samples' `data` should be validated against\"\"\"\n  dataSchemaUrl: String\n  \"\"\"Name of the sample\"\"\"\n  name: String\n}\n\n\"\"\"Return type when creating or validating samples\"\"\"\ntype UpdateSampleResponse {\n  \"\"\"Errors that occurred during sample validation\"\"\"\n  errors: [SampleValidationError!]!\n  \"\"\"Sample that has been updated\"\"\"\n  sample: Sample\n  \"\"\"Whether the operation has succeeded without validation errors\"\"\"\n  success: Boolean!\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",
       "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}"
@@ -1485,23 +1582,23 @@
     },
     {
       "id": "1",
-      "name": "instrument_sessions",
-      "routingUrl": "https://instrument-sessions.diamond.ac.uk/api/graphql"
-    },
-    {
-      "id": "2",
       "name": "schemas",
       "routingUrl": "https://schemas.diamond.ac.uk/graphql"
     },
     {
-      "id": "3",
+      "id": "2",
       "name": "samples",
       "routingUrl": "https://sample-information.diamond.ac.uk/api/graphql"
     },
     {
-      "id": "4",
+      "id": "3",
       "name": "experiments",
       "routingUrl": "https://api.experiment-definition.diamond.ac.uk/graphql"
+    },
+    {
+      "id": "4",
+      "name": "instrument_sessions",
+      "routingUrl": "https://instrument-sessions.diamond.ac.uk/api/graphql"
     }
   ],
   "version": "00000000-0000-0000-0000-000000000000"

@github-actions
Copy link
Copy Markdown

diff --git a/tmp/old_supergraph.graphql b/tmp/new_supergraph.graphql
index 945a9f6..84c9fa8 100644
--- a/tmp/old_supergraph.graphql
+++ b/tmp/new_supergraph.graphql
@@ -38,12 +38,13 @@ type LogEntry {
 """The root mutation of the service"""
 type Mutation {
   submitWorkflowTemplate(name: String!, visit: VisitInput!, parameters: JSON!): Workflow!
-  instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSessionMutations
   createOrValidateSamples(input: CreateOrValidateSampleInput!): CreateSamplesResponse!
   createSamples(input: CreateSampleInput!): [Sample!]! @deprecated(reason: "Will be replaced by createOrValidateSamples")
   sample(sampleId: UUID!): SampleMutations
   createExperimentDefinition(input: CreateExperimentDefinitionInput!): ExperimentDefinition
   experimentDefinition(id: UUID!): ExperimentDefinitionMutations
+  createInstrumentSession(input: CreateInstrumentSessionInput!): InstrumentSession!
+  instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSessionMutations
 }
 
 """Represents Relay Node types"""
@@ -73,39 +74,52 @@ type Query {
   workflows(visit: VisitInput!, cursor: String, limit: Int, filter: WorkflowFilter): WorkflowConnection!
   workflowTemplate(name: String!): WorkflowTemplate!
   workflowTemplates(cursor: String, limit: Int, filter: WorkflowTemplatesFilter): WorkflowTemplateConnection!
+  jsonSchema(url: String!): JSONSchema
+  jsonSchemas(type: String = null, instrument: String = null): [JSONSchema!]!
+
+  """Get a sample by its id"""
+  sample(sampleId: UUID!): Sample
+
+  """Get a list of samples associated with a given instrument session"""
+  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!
+  experimentDefinition(id: UUID!): ExperimentDefinition
+  experimentDefinitions(instrumentSessions: [InstrumentSessionInput!]!, first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentDefinitionConnection
+  experiment(id: UUID!): Experiment
+  experiments(instrumentSessions: [InstrumentSessionInput!]!, first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentConnection
 
   """Get a proposal by its number"""
   proposal(proposalNumber: Int!): Proposal
 
   """Get a list of proposals"""
-  proposals(proposalCategory: String = null, first: Int = null, last: Int = null, after: String = null, before: String = null): ProposalConnection!
+  proposals(first: Int = null, last: Int = null, after: String = null, before: String = null, sortBy: [ProposalSortInput!] = null, filterBy: ProposalFilterInput = null): ProposalConnection!
+
+  """
+  Get a proposal by its reference string e.g. 'MX12345'. The lookup is case-insensitive.
+  """
+  proposalByReference(reference: String!): Proposal
 
   """Get a instrument session"""
   instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSession
 
-  """Get a instrument session"""
-  instrumentSessions(proposalNumber: Int = null, proposalCategory: String = null): [InstrumentSession!]
+  """
+  Get an instrument session by its reference string e.g. 'MX12345-1'. The lookup is case-insensitive.
+  """
+  instrumentSessionByReference(reference: String!): InstrumentSession
+
+  """Get a list of instrument sessions"""
+  instrumentSessions(proposalNumber: Int = null, proposalCategory: String = null, first: Int = null, last: Int = null, after: String = null, before: String = null, sortBy: [InstrumentSessionSortInput!] = null, filterBy: InstrumentSessionFilterInput = null): InstrumentSessionConnection!
 
-  """Get an instrument"""
-  instrument(instrumentName: String!): Instrument
+  """Get an instrument by name"""
+  instrumentByName(name: String!): Instrument
+
+  """Get an instrument by key"""
+  instrumentByKey(key: String!): Instrument
 
   """Get a list of instruments"""
   instruments(scienceGroup: String = null): [Instrument!]!
 
   """Get an account"""
   account(username: String!): Account
-  jsonSchema(url: String!): JSONSchema
-  jsonSchemas(type: String = null, instrument: String = null): [JSONSchema!]!
-
-  """Get a sample by its id"""
-  sample(sampleId: UUID!): Sample
-
-  """Get a list of samples associated with a given instrument session"""
-  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!
-  experimentDefinition(id: UUID!): ExperimentDefinition
-  experimentDefinitions(instrumentSessions: [InstrumentSessionInput!]!, first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentDefinitionConnection
-  experiment(id: UUID!): Experiment
-  experiments(instrumentSessions: [InstrumentSessionInput!]!, first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentConnection
 }
 
 """Supported DLS science groups"""
@@ -435,108 +449,6 @@ input WorkflowTemplatesFilter {
   scienceGroup: [ScienceGroup!]
 }
 
-type Account {
-  accountId: Int!
-  username: String!
-  emailAddress: String
-  title: String
-  givenName: String
-  familyName: String
-  type: AccountType!
-  state: AccountState!
-  proposalRoles: [ProposalAccount!]!
-  instrumentSessionRoles: [InstrumentSessionRole!]!
-}
-
-enum AccountState {
-  enabled
-  disabled
-}
-
-enum AccountType {
-  user
-  staff
-  functional
-}
-
-type Instrument {
-  name: String!
-  scienceGroup: String
-  description: String
-  proposals: [Proposal!]!
-  instrumentSessions: [InstrumentSession!]!
-}
-
-type InstrumentSession {
-  instrumentSessionId: Int!
-  instrumentSessionNumber: Int!
-  startTime: DateTime
-  endTime: DateTime
-  type: String
-  state: String
-  riskRating: String
-  proposal: Proposal
-  instrument: Instrument!
-  roles: [InstrumentSessionRole!]!
-
-  """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!
-
-  """Experiment Definitions"""
-  experimentDefinitions(first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentDefinitionConnection!
-
-  """Experiments associated with this session"""
-  experiments(first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentConnection!
-}
-
-type InstrumentSessionMutations {
-  instrumentSessionNumber: Int!
-  proposalNumber: Int!
-
-  """Create or validate samples associated with this instrument session"""
-  createOrValidateSamples(input: CreateOrValidateSampleInputBase!): CreateSamplesResponse!
-}
-
-type InstrumentSessionRole {
-  instrumentSession: InstrumentSession!
-  account: Account!
-  role: String!
-  onSite: Boolean!
-}
-
-type Proposal {
-  proposalNumber: Int!
-  proposalCategory: String
-  title: String
-  summary: String
-  state: ProposalState!
-  instrumentSessions: [InstrumentSession!]!
-  instruments: [Instrument!]!
-  roles: [ProposalAccount!]!
-}
-
-type ProposalAccount {
-  proposal: Proposal!
-  account: Account!
-  role: String!
-}
-
-type ProposalConnection {
-  edges: [ProposalEdge!]!
-  pageInfo: PageInfo!
-}
-
-type ProposalEdge {
-  cursor: String!
-  node: Proposal!
-}
-
-enum ProposalState {
-  Open
-  Closed
-  Cancelled
-}
-
 """A JSON schema"""
 type JSONSchema {
   """The identifier of the schema"""
@@ -642,12 +554,47 @@ type ErrorDetails {
   message: String!
 }
 
+type InstrumentSession {
+  instrumentSessionNumber: Int!
+  proposal: Proposal
+
+  """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!
+
+  """Experiment Definitions"""
+  experimentDefinitions(first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentDefinitionConnection!
+
+  """Experiments associated with this session"""
+  experiments(first: Int = null, last: Int = null, after: String = null, before: String = null): ExperimentConnection!
+  instrumentSessionId: Int! @deprecated(reason: "instrument_session_id is deprecated and will be removed in a future version.")
+  startTime: DateTime
+  endTime: DateTime
+  type: String
+  state: String
+  riskRating: String
+
+  """
+  A human-readable reference for this session in the form '<PROPOSALCATEGORY><PROPOSALNUMBER>-<SESSIONNUMBER>' e.g. 'MX12345-1'.
+  """
+  instrumentSessionReference: String
+  instrument: Instrument!
+  roles: [InstrumentSessionRole!]!
+}
+
 """Values required to uniquely identify an instrument session"""
 input InstrumentSessionInput {
   proposalNumber: Int!
   instrumentSessionNumber: Int!
 }
 
+type InstrumentSessionMutations {
+  instrumentSessionNumber: Int!
+  proposalNumber: Int!
+
+  """Create or validate samples associated with this instrument session"""
+  createOrValidateSamples(input: CreateOrValidateSampleInputBase!): CreateSamplesResponse!
+}
+
 input JSONOperator @oneOf {
   stringOperator: StringOperatorInput = null
   datetimeOperator: DatetimeOperatorInput = null
@@ -674,6 +621,22 @@ input NumericOperatorInput {
   lt: Float = null
 }
 
+type Proposal {
+  proposalNumber: Int!
+  proposalCategory: String
+  title: String
+  summary: String
+  state: ProposalState!
+
+  """
+  A human-readable reference for this proposal in the form '<PROPOSALCATEGORY><PROPOSALNUMBER>' e.g. 'MX12345'.
+  """
+  proposalReference: String
+  instrumentSessions: [InstrumentSession!]!
+  instruments: [Instrument!]!
+  roles: [ProposalAccount!]!
+}
+
 type Sample {
   id: UUID!
   name: String!
@@ -923,4 +886,179 @@ type ExperimentEdge {
 input ExperimentInput {
   name: String!
   sampleId: UUID!
+}
+
+type Account {
+  accountId: Int! @deprecated(reason: "account_id is deprecated and will be removed in a future version.")
+  username: String!
+  emailAddress: String
+  title: String
+  givenName: String
+  familyName: String
+  type: AccountType!
+  state: AccountState!
+  proposalRoles: [ProposalAccount!]!
+  instrumentSessionRoles: [InstrumentSessionRole!]!
+}
+
+enum AccountState {
+  enabled
+  disabled
+}
+
+enum AccountType {
+  user
+  staff
+  functional
+}
+
+input CreateInstrumentSessionInput {
+  """Number of the proposal the session is for"""
+  proposalNumber: Int!
+
+  """Name of the instrument the session is for"""
+  instrumentName: String!
+
+  """
+  Instrument Session information that isn't needed by the Session Service but should be passed through the UAS
+  """
+  sessionInfo: String!
+}
+
+input DateTimeFilterInput {
+  eq: DateTime = null
+  neq: DateTime = null
+  gt: DateTime = null
+  lt: DateTime = null
+  gte: DateTime = null
+  lte: DateTime = null
+}
+
+type Instrument {
+  name: String!
+  key: String!
+  scienceGroup: String
+  description: String
+  proposals: [Proposal!]!
+  instrumentSessions: [InstrumentSession!]!
+}
+
+type InstrumentSessionConnection {
+  edges: [InstrumentSessionEdge!]!
+  pageInfo: PageInfo!
+}
+
+type InstrumentSessionEdge {
+  cursor: String!
+  node: InstrumentSession!
+}
+
+input InstrumentSessionFilterInput {
+  instrumentSessionNumber: IntFilterInput = null
+  startTime: DateTimeFilterInput = null
+  endTime: DateTimeFilterInput = null
+  type: StringFilterInput = null
+  state: InstrumentSessionStateFilterInput = null
+  riskRating: StringFilterInput = null
+  proposalNumber: IntFilterInput = null
+}
+
+type InstrumentSessionRole {
+  instrumentSession: InstrumentSession!
+  account: Account!
+  role: String!
+  onSite: Boolean!
+}
+
+enum InstrumentSessionSortField {
+  instrumentSessionNumber
+  startTime
+  endTime
+  type
+  state
+  riskRating
+  proposalNumber
+}
+
+input InstrumentSessionSortInput {
+  field: InstrumentSessionSortField!
+  orderBy: SortOrder!
+}
+
+enum InstrumentSessionState {
+  CANCELLED
+  COMPLETED
+  FUTURE
+  IN_PROGRESS
+}
+
+input InstrumentSessionStateFilterInput {
+  eq: InstrumentSessionState = null
+  neq: InstrumentSessionState = null
+}
+
+input IntFilterInput {
+  eq: Int = null
+  neq: Int = null
+  gt: Int = null
+  lt: Int = null
+  gte: Int = null
+  lte: Int = null
+}
+
+type ProposalAccount {
+  proposal: Proposal!
+  account: Account!
+  role: String!
+}
+
+type ProposalConnection {
+  edges: [ProposalEdge!]!
+  pageInfo: PageInfo!
+}
+
+type ProposalEdge {
+  cursor: String!
+  node: Proposal!
+}
+
+input ProposalFilterInput {
+  proposalNumber: IntFilterInput = null
+  proposalCategory: StringFilterInput = null
+  title: StringFilterInput = null
+  state: ProposalStateFilterInput = null
+}
+
+enum ProposalSortField {
+  proposalNumber
+}
+
+input ProposalSortInput {
+  field: ProposalSortField!
+  orderBy: SortOrder!
+}
+
+enum ProposalState {
+  OPEN
+  CLOSED
+  CANCELLED
+}
+
+input ProposalStateFilterInput {
+  eq: ProposalState = null
+  neq: ProposalState = null
+}
+
+enum SortOrder {
+  ASC
+  DESC
+}
+
+input StringFilterInput {
+  eq: String = null
+  neq: String = null
+  contains: String = null
+  notContains: String = null
+  startsWith: String = null
+  endsWith: String = null
 }
\ No newline at end of file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants