@nationalarchives/tdr-generated-graphql 1.0.594 → 1.0.596

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -511,7 +511,7 @@ export type GetFilesWithUniqueAssetIdKeyQuery = {
511
511
  } | null;
512
512
  };
513
513
  export type GetSeriesQueryVariables = Exact<{
514
- body: string;
514
+ bodies: Array<string> | string;
515
515
  }>;
516
516
  export type GetSeriesQuery = {
517
517
  getSeries: Array<{
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{"use strict";var e={909(e,t,n){n.r(t),n.d(t,{default:()=>Re,disableExperimentalFragmentVariables:()=>Oe,disableFragmentWarnings:()=>Me,enableExperimentalFragmentVariables:()=>Ee,gql:()=>Ae,resetCaches:()=>Ne});var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},i.apply(this,arguments)};function s(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}Object.create,Object.create;const a=/\r\n|[\n\r]/g;function r(e,t){let n=0,i=1;for(const r of e.body.matchAll(a)){if("number"!=typeof r.index&&s(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function o(e){return d(e.source,r(e.source,e.start))}function d(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,s=t.line-1,a=e.locationOffset.line-1,r=t.line+a,o=1===t.line?n:0,d=t.column+o,u=`${e.name}:${r}:${d}\n`,l=i.split(/\r\n|[\n\r]/g),p=l[s];if(p.length>120){const e=Math.floor(d/80),t=d%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+c([[`${r} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+c([[r-1+" |",l[s-1]],[`${r} |`,p],["|","^".padStart(d)],[`${r+1} |`,l[s+1]]])}function c(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class u extends Error{constructor(e,t={}){const{nodes:n,source:i,positions:s,path:a,originalError:o,cause:d,extensions:c}=t,p="cause"in t;super(e,p||null!=o?{cause:p?d:o}:void 0),this.name="GraphQLError",this.path=a??void 0;const m=o??(d instanceof Error?d:void 0);this.originalError=m,this.nodes=l(Array.isArray(n)?n:n?[n]:void 0);const h=l(this.nodes?.map(e=>e.loc).filter(e=>null!=e));this.source=i??h?.[0]?.source,this.positions=s??h?.map(e=>e.start),this.locations=s&&i?s.map(e=>r(i,e)):h?.map(e=>r(e.source,e.start));const f=(g=m?.extensions,"object"==typeof g&&null!==g?m.extensions:void 0);var g;this.extensions=c??f??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=o?.stack?Object.defineProperty(this,"stack",{value:o.stack,writable:!0,configurable:!0}):null!=Error.captureStackTrace?Error.captureStackTrace(this,u):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+o(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+d(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function l(e){return void 0===e||0===e.length?void 0:e}function p(e,t,n){return new u(`Syntax Error: ${n}`,{source:e,positions:[t]})}const m=function(){let e;try{const t=globalThis.process;"function"==typeof t?.getBuiltinModule&&(e=t.getBuiltinModule("node:diagnostics_channel"))}catch{}return e}(),h=m?.tracingChannel("graphql:parse"),f=(m?.tracingChannel("graphql:validate"),m?.tracingChannel("graphql:execute"),m?.tracingChannel("graphql:execute:variableCoercion"),m?.tracingChannel("graphql:execute:rootSelectionSet"),m?.tracingChannel("graphql:subscribe"),m?.tracingChannel("graphql:resolve"),["start","end","asyncStart","asyncEnd","error"]);class g{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class v{constructor(e,t,n,i,s,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}new Set(Object.keys({Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentArgument:["name","value"],FragmentSpread:["name","arguments","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]}));const y="query",I={QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",FRAGMENT_VARIABLE_DEFINITION:"FRAGMENT_VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION",DIRECTIVE_DEFINITION:"DIRECTIVE_DEFINITION"},x="OperationDefinition",C="FragmentSpread",k="FragmentDefinition",D="BooleanValue";function F(e){return 9===e||32===e}function T(e){return e>=48&&e<=57}function S(e){return e>=97&&e<=122||e>=65&&e<=90}function b(e){return S(e)||95===e}function A(e){return S(e)||T(e)||95===e}function N(e){let t=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let s=0;s<e.length;++s){const a=e[s],r=M(a);r!==a.length&&(n??=s,i=s,0!==s&&r<t&&(t=r))}return e.map((e,n)=>0===n?e:e.slice(t)).slice(n??0,i+1)}function M(e){let t=0;for(;t<e.length&&F(e.charCodeAt(t));)++t;return t}const E="<SOF>",O="<EOF>",w="$",_="(",$=")",U="...",V=":",P="=",R="@",L="[",G="]",B="{",j="|",q="}",K="Name",z="Float",J="String",Q="BlockString",W="Comment";class H{constructor(e){const t=new v(E,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==O)do{if(e.next)e=e.next;else{const t=ie(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===W);return e}}function Y(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function X(e,t){return Z(e.charCodeAt(t))&&ee(e.charCodeAt(t+1))}function Z(e){return e>=55296&&e<=56319}function ee(e){return e>=56320&&e<=57343}function te(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return O;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ne(e,t,n,i,s){const a=e.line,r=1+n-e.lineStart;return new v(t,n,i,a,r,s)}function ie(e,t){const n=e.source.body,i=n.length;let s=t;for(;s<i;){const t=n.charCodeAt(s);switch(t){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===n.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;case 35:return se(e,s);case 33:return ne(e,"!",s,s+1);case 36:return ne(e,w,s,s+1);case 38:return ne(e,"&",s,s+1);case 40:return ne(e,_,s,s+1);case 41:return ne(e,$,s,s+1);case 46:{const t=n.charCodeAt(s+1);if(46===t&&46===n.charCodeAt(s+2))return ne(e,U,s,s+3);if(46===t)throw p(e.source,s,'Unexpected "..", did you mean "..."?');if(T(t)){const n=e.source.body.slice(s+1,re(e,s+1,t));throw p(e.source,s,`Invalid number, expected digit before ".", did you mean "0.${n}"?`)}break}case 58:return ne(e,V,s,s+1);case 61:return ne(e,P,s,s+1);case 64:return ne(e,R,s,s+1);case 91:return ne(e,L,s,s+1);case 93:return ne(e,G,s,s+1);case 123:return ne(e,B,s,s+1);case 124:return ne(e,j,s,s+1);case 125:return ne(e,q,s,s+1);case 34:return 34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)?me(e,s):oe(e,s)}if(T(t)||45===t)return ae(e,s,t);if(b(t))return he(e,s);throw p(e.source,s,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Y(t)||X(n,s)?`Unexpected character: ${te(e,s)}.`:`Invalid character: ${te(e,s)}.`)}return ne(e,O,i,i)}function se(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i;){const e=n.charCodeAt(s);if(10===e||13===e)break;if(Y(e))++s;else{if(!X(n,s))break;s+=2}}return ne(e,W,t,s,n.slice(t+1,s))}function ae(e,t,n){const i=e.source.body;let s=t,a=n,r=!1;if(45===a&&(a=i.charCodeAt(++s)),48===a){if(a=i.charCodeAt(++s),T(a))throw p(e.source,s,`Invalid number, unexpected digit after 0: ${te(e,s)}.`)}else s=re(e,s,a),a=i.charCodeAt(s);if(46===a&&(r=!0,a=i.charCodeAt(++s),s=re(e,s,a),a=i.charCodeAt(s)),69!==a&&101!==a||(r=!0,a=i.charCodeAt(++s),43!==a&&45!==a||(a=i.charCodeAt(++s)),s=re(e,s,a),a=i.charCodeAt(s)),46===a||b(a))throw p(e.source,s,`Invalid number, expected digit but got: ${te(e,s)}.`);return ne(e,r?z:"Int",t,s,i.slice(t,s))}function re(e,t,n){if(!T(n))throw p(e.source,t,`Invalid number, expected digit but got: ${te(e,t)}.`);const i=e.source.body;let s=t+1;for(;T(i.charCodeAt(s));)++s;return s}function oe(e,t){const n=e.source.body,i=n.length;let s=t+1,a=s,r="";for(;s<i;){const i=n.charCodeAt(s);if(34===i)return r+=n.slice(a,s),ne(e,J,t,s+1,r);if(92===i){r+=n.slice(a,s);const t=117===n.charCodeAt(s+1)?123===n.charCodeAt(s+2)?de(e,s):ce(e,s):pe(e,s);r+=t.value,s+=t.size,a=s;continue}if(10===i||13===i)break;if(Y(i))++s;else{if(!X(n,s))throw p(e.source,s,`Invalid character within String: ${te(e,s)}.`);s+=2}}throw p(e.source,s,"Unterminated string.")}function de(e,t){const n=e.source.body;let i=0,s=3;for(;s<12;){const e=n.charCodeAt(t+s++);if(125===e){if(s<5||!Y(i))break;return{value:String.fromCodePoint(i),size:s}}if(i=i<<4|le(e),i<0)break}throw p(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+s)}".`)}function ce(e,t){const n=e.source.body,i=ue(n,t+2);if(Y(i))return{value:String.fromCodePoint(i),size:6};if(Z(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=ue(n,t+8);if(ee(e))return{value:String.fromCodePoint(i,e),size:12}}throw p(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function ue(e,t){return le(e.charCodeAt(t))<<12|le(e.charCodeAt(t+1))<<8|le(e.charCodeAt(t+2))<<4|le(e.charCodeAt(t+3))}function le(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function pe(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw p(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function me(e,t){const n=e.source.body,i=n.length;let s=e.lineStart,a=t+3,r=a,o="";const d=[];for(;a<i;){const i=n.charCodeAt(a);if(34===i&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){o+=n.slice(r,a),d.push(o);const i=ne(e,Q,t,a+3,N(d).join("\n"));return e.line+=d.length-1,e.lineStart=s,i}if(92!==i||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==i&&13!==i)if(Y(i))++a;else{if(!X(n,a))throw p(e.source,a,`Invalid character within String: ${te(e,a)}.`);a+=2}else o+=n.slice(r,a),d.push(o),13===i&&10===n.charCodeAt(a+1)?a+=2:++a,o="",r=a,s=a;else o+=n.slice(r,a),r=a+1,a+=4}throw p(e.source,a,"Unterminated string.")}function he(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i&&A(n.charCodeAt(s));)++s;return ne(e,K,t,s,n.slice(t,s))}function fe(e,t){if(!e)throw new Error(t)}const ge=Symbol("Source");class ve{constructor(e,t="GraphQL request",n={line:1,column:1}){this.__kind=ge,this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||fe(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||fe(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function ye(e,t){const n=new Ie(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}class Ie{constructor(e,t={}){const{lexer:n,...i}=t;if(n)this._lexer=n;else{const t=function(e){return t=e,n=ge,t?.__kind===n;var t,n}(e)?e:new ve(e);this._lexer=new H(t)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(K);return this.node(e,{kind:"Name",value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:"Document",definitions:this.many(E,this.parseDefinition,O)})}parseDefinition(){if(this.peek(B))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===B)throw p(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===K){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw p(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(B))return this.node(e,{kind:x,operation:y,description:void 0,name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let i;return this.peek(K)&&(i=this.parseName()),this.node(e,{kind:x,operation:n,description:t,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(K);switch(e.value){case"query":return y;case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(_,this.parseVariableDefinition,$)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:"VariableDefinition",description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(V),this.parseTypeReference()),defaultValue:this.expectOptionalToken(P)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(w),this.node(e,{kind:"Variable",name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:"SelectionSet",selections:this.many(B,this.parseSelection,q)})}parseSelection(){return this.peek(U)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(V)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:"Field",alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(B)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(_,t,$)}parseFragmentArguments(){const e=this.parseFragmentArgument;return this.optionalMany(_,e,$)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(V),this.node(t,{kind:"Argument",name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragmentArgument(){const e=this._lexer.token,t=this.parseName();return this.expectToken(V),this.node(e,{kind:"FragmentArgument",name:t,value:this.parseValueLiteral(!1)})}parseFragment(){const e=this._lexer.token;this.expectToken(U);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(K)){const t=this.parseFragmentName();return this.peek(_)&&this._options.experimentalFragmentArguments?this.node(e,{kind:C,name:t,arguments:this.parseFragmentArguments(),directives:this.parseDirectives(!1)}):this.node(e,{kind:C,name:t,directives:this.parseDirectives(!1)})}return this.node(e,{kind:"InlineFragment",typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.experimentalFragmentArguments?this.node(e,{kind:k,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:k,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case L:return this.parseList(e);case B:return this.parseObject(e);case"Int":return this.advanceLexer(),this.node(t,{kind:"IntValue",value:t.value});case z:return this.advanceLexer(),this.node(t,{kind:"FloatValue",value:t.value});case J:case Q:return this.parseStringLiteral();case K:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:D,value:!0});case"false":return this.node(t,{kind:D,value:!1});case"null":return this.node(t,{kind:"NullValue"});default:return this.node(t,{kind:"EnumValue",value:t.value})}case w:if(e){if(this.expectToken(w),this._lexer.token.kind===K){const e=this._lexer.token.value;throw p(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:"StringValue",value:e.value,block:e.kind===Q})}parseList(e){return this.node(this._lexer.token,{kind:"ListValue",values:this.any(L,()=>this.parseValueLiteral(e),G)})}parseObject(e){return this.node(this._lexer.token,{kind:"ObjectValue",fields:this.any(B,()=>this.parseObjectField(e),q)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(V),this.node(t,{kind:"ObjectField",name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(R);)t.push(this.parseDirective(e));if(t.length)return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(R),this.node(t,{kind:"Directive",name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(L)){const n=this.parseTypeReference();this.expectToken(G),t=this.node(e,{kind:"ListType",type:n})}else t=this.parseNamedType();return this.expectOptionalToken("!")?this.node(e,{kind:"NonNullType",type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:"NamedType",name:this.parseName()})}peekDescription(){return this.peek(J)||this.peek(Q)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(B,this.parseOperationTypeDefinition,q);return this.node(e,{kind:"SchemaDefinition",description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(V);const n=this.parseNamedType();return this.node(e,{kind:"OperationTypeDefinition",operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:"ScalarTypeDefinition",description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:"ObjectTypeDefinition",description:t,name:n,interfaces:i,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany("&",this.parseNamedType):void 0}parseFieldsDefinition(){return this.optionalMany(B,this.parseFieldDefinition,q)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(V);const s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:"FieldDefinition",description:t,name:n,arguments:i,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(_,this.parseInputValueDef,$)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(V);const i=this.parseTypeReference();let s;this.expectOptionalToken(P)&&(s=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:"InputValueDefinition",description:t,name:n,type:i,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:"InterfaceTypeDefinition",description:t,name:n,interfaces:i,directives:s,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:"UnionTypeDefinition",description:t,name:n,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(P)?this.delimitedMany(j,this.parseNamedType):void 0}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:"EnumTypeDefinition",description:t,name:n,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(B,this.parseEnumValueDefinition,q)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:"EnumValueDefinition",description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw p(this._lexer.source,this._lexer.token.start,`${xe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:"InputObjectTypeDefinition",description:t,name:n,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(B,this.parseInputValueDef,q)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===K)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":return this.parseDirectiveExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(B,this.parseOperationTypeDefinition,q);if(void 0===t&&void 0===n)throw this.unexpected();return this.node(e,{kind:"SchemaExtension",directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(void 0===n)throw this.unexpected();return this.node(e,{kind:"ScalarTypeExtension",name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(void 0===n&&void 0===i&&void 0===s)throw this.unexpected();return this.node(e,{kind:"ObjectTypeExtension",name:t,interfaces:n,directives:i,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(void 0===n&&void 0===i&&void 0===s)throw this.unexpected();return this.node(e,{kind:"InterfaceTypeExtension",name:t,interfaces:n,directives:i,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(void 0===n&&void 0===i)throw this.unexpected();return this.node(e,{kind:"UnionTypeExtension",name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(void 0===n&&void 0===i)throw this.unexpected();return this.node(e,{kind:"EnumTypeExtension",name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(void 0===n&&void 0===i)throw this.unexpected();return this.node(e,{kind:"InputObjectTypeExtension",name:t,directives:n,fields:i})}parseDirectiveExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(R);const t=this.parseName(),n=this.parseConstDirectives();if(void 0===n)throw this.unexpected();return this.node(e,{kind:"DirectiveExtension",name:t,directives:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(R);const n=this.parseName(),i=this.parseArgumentDefs(),s=this.parseConstDirectives(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const r=this.parseDirectiveLocations();return this.node(e,{kind:"DirectiveDefinition",description:t,name:n,arguments:i,directives:s,repeatable:a,locations:r})}parseDirectiveLocations(){return this.delimitedMany(j,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.hasOwn(I,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(R),n=this.parseName();let i,s;return!t&&this.expectOptionalToken(".")&&(i=this.parseName()),(t||i)&&this.expectOptionalToken(_)&&(s=this.parseName(),this.expectToken(V),this.expectToken($)),t?s?this.node(e,{kind:"DirectiveArgumentCoordinate",name:n,argumentName:s}):this.node(e,{kind:"DirectiveCoordinate",name:n}):i?s?this.node(e,{kind:"ArgumentCoordinate",name:n,fieldName:i,argumentName:s}):this.node(e,{kind:"MemberCoordinate",name:n,memberName:i}):this.node(e,{kind:"TypeCoordinate",name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new g(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw p(this._lexer.source,t.start,`Expected ${Ce(e)}, found ${xe(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==K||t.value!==e)throw p(this._lexer.source,t.start,`Expected "${e}", found ${xe(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===K&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=e??this._lexer.token;return p(this._lexer.source,t.start,`Unexpected ${xe(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==O&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw p(this._lexer.source,t.start,`Document contains more than ${e} tokens. Parsing aborted.`)}}function xe(e){const t=e.value;return Ce(e.kind)+(null!=t?` "${t}"`:"")}function Ce(e){return function(e){return"!"===e||e===w||"&"===e||e===_||e===$||"."===e||e===U||e===V||e===P||e===R||e===L||e===G||e===B||e===j||e===q}(e)?`"${e}"`:e}var ke=new Map,De=new Map,Fe=!0,Te=!1;function Se(e){return e.replace(/[\s,]+/g," ").trim()}function be(e){var t,n,s,a=Se(e);if(!ke.has(a)){var r=function(e,t){return function(e){if(null==e)return!1;const t=e.hasSubscribers;if(void 0!==t)return t;for(const t of f)if(e[t].hasSubscribers)return!0;return!1}(h)?h.traceSync(()=>ye(e,t),{source:e}):ye(e,t)}(e,{experimentalFragmentVariables:Te,allowLegacyFragmentVariables:Te,experimentalFragmentArguments:Te});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");ke.set(a,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=r,n=new Set,s=[],t.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=Se((r=e.loc).source.body.substring(r.start,r.end)),a=De.get(t);a&&!a.has(i)?Fe&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||De.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),s.push(e))}else s.push(e);var r}),i(i({},t),{definitions:s}))))}return ke.get(a)}function Ae(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]}),be(i)}function Ne(){ke.clear(),De.clear()}function Me(){Fe=!1}function Ee(){Te=!0}function Oe(){Te=!1}var we,_e=Ae,$e=Ne,Ue=Me,Ve=Ee,Pe=Oe;(we=Ae||(Ae={})).gql=_e,we.resetCaches=$e,we.disableFragmentWarnings=Ue,we.enableExperimentalFragmentVariables=Ve,we.disableExperimentalFragmentVariables=Pe,Ae.default=Ae;const Re=Ae},156(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTransferInitiated=t.UpdateParentFolder=t.UpdateExportData=t.UpdateConsignmentStatus=t.UpdateConsignmentSeriesId=t.UpdateConsignmentMetadataSchemaLibraryVersion=t.UpdateClientSideDraftMetadataFileName=t.StartUpload=t.GetSeries=t.GetFilesWithUniqueAssetIdKey=t.GetFileCheckProgressSummary=t.GetFileCheckProgress=t.GetConsignmentForMetadataReviewRequest=t.GetConsignmentsForMetadataReview=t.GetConsignments=t.GetConsignmentType=t.GetConsignmentSummary=t.GetConsignmentStatus=t.GetConsignmentReviewDetails=t.GetConsignmentReference=t.GetConsignmentPaginatedFiles=t.GetConsignmentMetadata=t.GetConsignmentFolderDetails=t.GetConsignmentFilesMetadata=t.GetConsignmentFiles=t.GetConsignmentForExport=t.GetConsignmentDetailsForMetadataReview=t.GetConsignment=t.AddTransferAgreementPrivateBeta=t.AddTransferAgreementCompliance=t.AddOrUpdateConsignmentMetadata=t.AddOrUpdateBulkFileMetadata=t.AddMultipleFileStatuses=t.AddMultipleFileMetadata=t.AddFinalTransferConfirmation=t.AddFilesAndMetadata=t.AddConsignmentStatus=t.AddConsignment=t.AddBulkFfidMetadata=t.AddBulkAntivirusMetadata=void 0;const r=a(n(909));s(n(365),t),t.AddBulkAntivirusMetadata=r.default`
1
+ (()=>{"use strict";var e={909(e,t,n){n.r(t),n.d(t,{default:()=>Re,disableExperimentalFragmentVariables:()=>Oe,disableFragmentWarnings:()=>Me,enableExperimentalFragmentVariables:()=>Ee,gql:()=>Ae,resetCaches:()=>Ne});var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},i.apply(this,arguments)};function s(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}Object.create,Object.create;const a=/\r\n|[\n\r]/g;function r(e,t){let n=0,i=1;for(const r of e.body.matchAll(a)){if("number"!=typeof r.index&&s(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function o(e){return d(e.source,r(e.source,e.start))}function d(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,s=t.line-1,a=e.locationOffset.line-1,r=t.line+a,o=1===t.line?n:0,d=t.column+o,u=`${e.name}:${r}:${d}\n`,l=i.split(/\r\n|[\n\r]/g),p=l[s];if(p.length>120){const e=Math.floor(d/80),t=d%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+c([[`${r} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+c([[r-1+" |",l[s-1]],[`${r} |`,p],["|","^".padStart(d)],[`${r+1} |`,l[s+1]]])}function c(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class u extends Error{constructor(e,t={}){const{nodes:n,source:i,positions:s,path:a,originalError:o,cause:d,extensions:c}=t,p="cause"in t;super(e,p||null!=o?{cause:p?d:o}:void 0),this.name="GraphQLError",this.path=a??void 0;const m=o??(d instanceof Error?d:void 0);this.originalError=m,this.nodes=l(Array.isArray(n)?n:n?[n]:void 0);const h=l(this.nodes?.map(e=>e.loc).filter(e=>null!=e));this.source=i??h?.[0]?.source,this.positions=s??h?.map(e=>e.start),this.locations=s&&i?s.map(e=>r(i,e)):h?.map(e=>r(e.source,e.start));const f=(g=m?.extensions,"object"==typeof g&&null!==g?m.extensions:void 0);var g;this.extensions=c??f??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=o?.stack?Object.defineProperty(this,"stack",{value:o.stack,writable:!0,configurable:!0}):null!=Error.captureStackTrace?Error.captureStackTrace(this,u):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+o(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+d(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function l(e){return void 0===e||0===e.length?void 0:e}function p(e,t,n){return new u(`Syntax Error: ${n}`,{source:e,positions:[t]})}const m=function(){let e;try{const t=globalThis.process;"function"==typeof t?.getBuiltinModule&&(e=t.getBuiltinModule("node:diagnostics_channel"))}catch{}return e}(),h=m?.tracingChannel("graphql:parse"),f=(m?.tracingChannel("graphql:validate"),m?.tracingChannel("graphql:execute"),m?.tracingChannel("graphql:execute:variableCoercion"),m?.tracingChannel("graphql:execute:rootSelectionSet"),m?.tracingChannel("graphql:subscribe"),m?.tracingChannel("graphql:resolve"),["start","end","asyncStart","asyncEnd","error"]);class g{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class v{constructor(e,t,n,i,s,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}new Set(Object.keys({Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentArgument:["name","value"],FragmentSpread:["name","arguments","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]}));const I="query",y={QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",FRAGMENT_VARIABLE_DEFINITION:"FRAGMENT_VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION",DIRECTIVE_DEFINITION:"DIRECTIVE_DEFINITION"},x="OperationDefinition",C="FragmentSpread",k="FragmentDefinition",D="BooleanValue";function F(e){return 9===e||32===e}function T(e){return e>=48&&e<=57}function S(e){return e>=97&&e<=122||e>=65&&e<=90}function b(e){return S(e)||95===e}function A(e){return S(e)||T(e)||95===e}function N(e){let t=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let s=0;s<e.length;++s){const a=e[s],r=M(a);r!==a.length&&(n??=s,i=s,0!==s&&r<t&&(t=r))}return e.map((e,n)=>0===n?e:e.slice(t)).slice(n??0,i+1)}function M(e){let t=0;for(;t<e.length&&F(e.charCodeAt(t));)++t;return t}const E="<SOF>",O="<EOF>",w="$",_="(",$=")",U="...",V=":",P="=",R="@",L="[",G="]",B="{",j="|",q="}",K="Name",z="Float",J="String",Q="BlockString",W="Comment";class H{constructor(e){const t=new v(E,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==O)do{if(e.next)e=e.next;else{const t=ie(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===W);return e}}function Y(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function X(e,t){return Z(e.charCodeAt(t))&&ee(e.charCodeAt(t+1))}function Z(e){return e>=55296&&e<=56319}function ee(e){return e>=56320&&e<=57343}function te(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return O;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ne(e,t,n,i,s){const a=e.line,r=1+n-e.lineStart;return new v(t,n,i,a,r,s)}function ie(e,t){const n=e.source.body,i=n.length;let s=t;for(;s<i;){const t=n.charCodeAt(s);switch(t){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===n.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;case 35:return se(e,s);case 33:return ne(e,"!",s,s+1);case 36:return ne(e,w,s,s+1);case 38:return ne(e,"&",s,s+1);case 40:return ne(e,_,s,s+1);case 41:return ne(e,$,s,s+1);case 46:{const t=n.charCodeAt(s+1);if(46===t&&46===n.charCodeAt(s+2))return ne(e,U,s,s+3);if(46===t)throw p(e.source,s,'Unexpected "..", did you mean "..."?');if(T(t)){const n=e.source.body.slice(s+1,re(e,s+1,t));throw p(e.source,s,`Invalid number, expected digit before ".", did you mean "0.${n}"?`)}break}case 58:return ne(e,V,s,s+1);case 61:return ne(e,P,s,s+1);case 64:return ne(e,R,s,s+1);case 91:return ne(e,L,s,s+1);case 93:return ne(e,G,s,s+1);case 123:return ne(e,B,s,s+1);case 124:return ne(e,j,s,s+1);case 125:return ne(e,q,s,s+1);case 34:return 34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)?me(e,s):oe(e,s)}if(T(t)||45===t)return ae(e,s,t);if(b(t))return he(e,s);throw p(e.source,s,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Y(t)||X(n,s)?`Unexpected character: ${te(e,s)}.`:`Invalid character: ${te(e,s)}.`)}return ne(e,O,i,i)}function se(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i;){const e=n.charCodeAt(s);if(10===e||13===e)break;if(Y(e))++s;else{if(!X(n,s))break;s+=2}}return ne(e,W,t,s,n.slice(t+1,s))}function ae(e,t,n){const i=e.source.body;let s=t,a=n,r=!1;if(45===a&&(a=i.charCodeAt(++s)),48===a){if(a=i.charCodeAt(++s),T(a))throw p(e.source,s,`Invalid number, unexpected digit after 0: ${te(e,s)}.`)}else s=re(e,s,a),a=i.charCodeAt(s);if(46===a&&(r=!0,a=i.charCodeAt(++s),s=re(e,s,a),a=i.charCodeAt(s)),69!==a&&101!==a||(r=!0,a=i.charCodeAt(++s),43!==a&&45!==a||(a=i.charCodeAt(++s)),s=re(e,s,a),a=i.charCodeAt(s)),46===a||b(a))throw p(e.source,s,`Invalid number, expected digit but got: ${te(e,s)}.`);return ne(e,r?z:"Int",t,s,i.slice(t,s))}function re(e,t,n){if(!T(n))throw p(e.source,t,`Invalid number, expected digit but got: ${te(e,t)}.`);const i=e.source.body;let s=t+1;for(;T(i.charCodeAt(s));)++s;return s}function oe(e,t){const n=e.source.body,i=n.length;let s=t+1,a=s,r="";for(;s<i;){const i=n.charCodeAt(s);if(34===i)return r+=n.slice(a,s),ne(e,J,t,s+1,r);if(92===i){r+=n.slice(a,s);const t=117===n.charCodeAt(s+1)?123===n.charCodeAt(s+2)?de(e,s):ce(e,s):pe(e,s);r+=t.value,s+=t.size,a=s;continue}if(10===i||13===i)break;if(Y(i))++s;else{if(!X(n,s))throw p(e.source,s,`Invalid character within String: ${te(e,s)}.`);s+=2}}throw p(e.source,s,"Unterminated string.")}function de(e,t){const n=e.source.body;let i=0,s=3;for(;s<12;){const e=n.charCodeAt(t+s++);if(125===e){if(s<5||!Y(i))break;return{value:String.fromCodePoint(i),size:s}}if(i=i<<4|le(e),i<0)break}throw p(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+s)}".`)}function ce(e,t){const n=e.source.body,i=ue(n,t+2);if(Y(i))return{value:String.fromCodePoint(i),size:6};if(Z(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=ue(n,t+8);if(ee(e))return{value:String.fromCodePoint(i,e),size:12}}throw p(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function ue(e,t){return le(e.charCodeAt(t))<<12|le(e.charCodeAt(t+1))<<8|le(e.charCodeAt(t+2))<<4|le(e.charCodeAt(t+3))}function le(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function pe(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw p(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function me(e,t){const n=e.source.body,i=n.length;let s=e.lineStart,a=t+3,r=a,o="";const d=[];for(;a<i;){const i=n.charCodeAt(a);if(34===i&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){o+=n.slice(r,a),d.push(o);const i=ne(e,Q,t,a+3,N(d).join("\n"));return e.line+=d.length-1,e.lineStart=s,i}if(92!==i||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==i&&13!==i)if(Y(i))++a;else{if(!X(n,a))throw p(e.source,a,`Invalid character within String: ${te(e,a)}.`);a+=2}else o+=n.slice(r,a),d.push(o),13===i&&10===n.charCodeAt(a+1)?a+=2:++a,o="",r=a,s=a;else o+=n.slice(r,a),r=a+1,a+=4}throw p(e.source,a,"Unterminated string.")}function he(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i&&A(n.charCodeAt(s));)++s;return ne(e,K,t,s,n.slice(t,s))}function fe(e,t){if(!e)throw new Error(t)}const ge=Symbol("Source");class ve{constructor(e,t="GraphQL request",n={line:1,column:1}){this.__kind=ge,this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||fe(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||fe(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Ie(e,t){const n=new ye(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}class ye{constructor(e,t={}){const{lexer:n,...i}=t;if(n)this._lexer=n;else{const t=function(e){return t=e,n=ge,t?.__kind===n;var t,n}(e)?e:new ve(e);this._lexer=new H(t)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(K);return this.node(e,{kind:"Name",value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:"Document",definitions:this.many(E,this.parseDefinition,O)})}parseDefinition(){if(this.peek(B))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===B)throw p(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===K){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw p(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(B))return this.node(e,{kind:x,operation:I,description:void 0,name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let i;return this.peek(K)&&(i=this.parseName()),this.node(e,{kind:x,operation:n,description:t,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(K);switch(e.value){case"query":return I;case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(_,this.parseVariableDefinition,$)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:"VariableDefinition",description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(V),this.parseTypeReference()),defaultValue:this.expectOptionalToken(P)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(w),this.node(e,{kind:"Variable",name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:"SelectionSet",selections:this.many(B,this.parseSelection,q)})}parseSelection(){return this.peek(U)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(V)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:"Field",alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(B)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(_,t,$)}parseFragmentArguments(){const e=this.parseFragmentArgument;return this.optionalMany(_,e,$)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(V),this.node(t,{kind:"Argument",name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragmentArgument(){const e=this._lexer.token,t=this.parseName();return this.expectToken(V),this.node(e,{kind:"FragmentArgument",name:t,value:this.parseValueLiteral(!1)})}parseFragment(){const e=this._lexer.token;this.expectToken(U);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(K)){const t=this.parseFragmentName();return this.peek(_)&&this._options.experimentalFragmentArguments?this.node(e,{kind:C,name:t,arguments:this.parseFragmentArguments(),directives:this.parseDirectives(!1)}):this.node(e,{kind:C,name:t,directives:this.parseDirectives(!1)})}return this.node(e,{kind:"InlineFragment",typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.experimentalFragmentArguments?this.node(e,{kind:k,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:k,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case L:return this.parseList(e);case B:return this.parseObject(e);case"Int":return this.advanceLexer(),this.node(t,{kind:"IntValue",value:t.value});case z:return this.advanceLexer(),this.node(t,{kind:"FloatValue",value:t.value});case J:case Q:return this.parseStringLiteral();case K:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:D,value:!0});case"false":return this.node(t,{kind:D,value:!1});case"null":return this.node(t,{kind:"NullValue"});default:return this.node(t,{kind:"EnumValue",value:t.value})}case w:if(e){if(this.expectToken(w),this._lexer.token.kind===K){const e=this._lexer.token.value;throw p(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:"StringValue",value:e.value,block:e.kind===Q})}parseList(e){return this.node(this._lexer.token,{kind:"ListValue",values:this.any(L,()=>this.parseValueLiteral(e),G)})}parseObject(e){return this.node(this._lexer.token,{kind:"ObjectValue",fields:this.any(B,()=>this.parseObjectField(e),q)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(V),this.node(t,{kind:"ObjectField",name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(R);)t.push(this.parseDirective(e));if(t.length)return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(R),this.node(t,{kind:"Directive",name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(L)){const n=this.parseTypeReference();this.expectToken(G),t=this.node(e,{kind:"ListType",type:n})}else t=this.parseNamedType();return this.expectOptionalToken("!")?this.node(e,{kind:"NonNullType",type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:"NamedType",name:this.parseName()})}peekDescription(){return this.peek(J)||this.peek(Q)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(B,this.parseOperationTypeDefinition,q);return this.node(e,{kind:"SchemaDefinition",description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(V);const n=this.parseNamedType();return this.node(e,{kind:"OperationTypeDefinition",operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:"ScalarTypeDefinition",description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:"ObjectTypeDefinition",description:t,name:n,interfaces:i,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany("&",this.parseNamedType):void 0}parseFieldsDefinition(){return this.optionalMany(B,this.parseFieldDefinition,q)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(V);const s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:"FieldDefinition",description:t,name:n,arguments:i,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(_,this.parseInputValueDef,$)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(V);const i=this.parseTypeReference();let s;this.expectOptionalToken(P)&&(s=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:"InputValueDefinition",description:t,name:n,type:i,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:"InterfaceTypeDefinition",description:t,name:n,interfaces:i,directives:s,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:"UnionTypeDefinition",description:t,name:n,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(P)?this.delimitedMany(j,this.parseNamedType):void 0}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:"EnumTypeDefinition",description:t,name:n,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(B,this.parseEnumValueDefinition,q)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:"EnumValueDefinition",description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw p(this._lexer.source,this._lexer.token.start,`${xe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:"InputObjectTypeDefinition",description:t,name:n,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(B,this.parseInputValueDef,q)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===K)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":return this.parseDirectiveExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(B,this.parseOperationTypeDefinition,q);if(void 0===t&&void 0===n)throw this.unexpected();return this.node(e,{kind:"SchemaExtension",directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(void 0===n)throw this.unexpected();return this.node(e,{kind:"ScalarTypeExtension",name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(void 0===n&&void 0===i&&void 0===s)throw this.unexpected();return this.node(e,{kind:"ObjectTypeExtension",name:t,interfaces:n,directives:i,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(void 0===n&&void 0===i&&void 0===s)throw this.unexpected();return this.node(e,{kind:"InterfaceTypeExtension",name:t,interfaces:n,directives:i,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(void 0===n&&void 0===i)throw this.unexpected();return this.node(e,{kind:"UnionTypeExtension",name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(void 0===n&&void 0===i)throw this.unexpected();return this.node(e,{kind:"EnumTypeExtension",name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(void 0===n&&void 0===i)throw this.unexpected();return this.node(e,{kind:"InputObjectTypeExtension",name:t,directives:n,fields:i})}parseDirectiveExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(R);const t=this.parseName(),n=this.parseConstDirectives();if(void 0===n)throw this.unexpected();return this.node(e,{kind:"DirectiveExtension",name:t,directives:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(R);const n=this.parseName(),i=this.parseArgumentDefs(),s=this.parseConstDirectives(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const r=this.parseDirectiveLocations();return this.node(e,{kind:"DirectiveDefinition",description:t,name:n,arguments:i,directives:s,repeatable:a,locations:r})}parseDirectiveLocations(){return this.delimitedMany(j,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.hasOwn(y,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(R),n=this.parseName();let i,s;return!t&&this.expectOptionalToken(".")&&(i=this.parseName()),(t||i)&&this.expectOptionalToken(_)&&(s=this.parseName(),this.expectToken(V),this.expectToken($)),t?s?this.node(e,{kind:"DirectiveArgumentCoordinate",name:n,argumentName:s}):this.node(e,{kind:"DirectiveCoordinate",name:n}):i?s?this.node(e,{kind:"ArgumentCoordinate",name:n,fieldName:i,argumentName:s}):this.node(e,{kind:"MemberCoordinate",name:n,memberName:i}):this.node(e,{kind:"TypeCoordinate",name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new g(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw p(this._lexer.source,t.start,`Expected ${Ce(e)}, found ${xe(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==K||t.value!==e)throw p(this._lexer.source,t.start,`Expected "${e}", found ${xe(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===K&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=e??this._lexer.token;return p(this._lexer.source,t.start,`Unexpected ${xe(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==O&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw p(this._lexer.source,t.start,`Document contains more than ${e} tokens. Parsing aborted.`)}}function xe(e){const t=e.value;return Ce(e.kind)+(null!=t?` "${t}"`:"")}function Ce(e){return function(e){return"!"===e||e===w||"&"===e||e===_||e===$||"."===e||e===U||e===V||e===P||e===R||e===L||e===G||e===B||e===j||e===q}(e)?`"${e}"`:e}var ke=new Map,De=new Map,Fe=!0,Te=!1;function Se(e){return e.replace(/[\s,]+/g," ").trim()}function be(e){var t,n,s,a=Se(e);if(!ke.has(a)){var r=function(e,t){return function(e){if(null==e)return!1;const t=e.hasSubscribers;if(void 0!==t)return t;for(const t of f)if(e[t].hasSubscribers)return!0;return!1}(h)?h.traceSync(()=>Ie(e,t),{source:e}):Ie(e,t)}(e,{experimentalFragmentVariables:Te,allowLegacyFragmentVariables:Te,experimentalFragmentArguments:Te});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");ke.set(a,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=r,n=new Set,s=[],t.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=Se((r=e.loc).source.body.substring(r.start,r.end)),a=De.get(t);a&&!a.has(i)?Fe&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||De.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),s.push(e))}else s.push(e);var r}),i(i({},t),{definitions:s}))))}return ke.get(a)}function Ae(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]}),be(i)}function Ne(){ke.clear(),De.clear()}function Me(){Fe=!1}function Ee(){Te=!0}function Oe(){Te=!1}var we,_e=Ae,$e=Ne,Ue=Me,Ve=Ee,Pe=Oe;(we=Ae||(Ae={})).gql=_e,we.resetCaches=$e,we.disableFragmentWarnings=Ue,we.enableExperimentalFragmentVariables=Ve,we.disableExperimentalFragmentVariables=Pe,Ae.default=Ae;const Re=Ae},156(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTransferInitiated=t.UpdateParentFolder=t.UpdateExportData=t.UpdateConsignmentStatus=t.UpdateConsignmentSeriesId=t.UpdateConsignmentMetadataSchemaLibraryVersion=t.UpdateClientSideDraftMetadataFileName=t.StartUpload=t.GetSeries=t.GetFilesWithUniqueAssetIdKey=t.GetFileCheckProgressSummary=t.GetFileCheckProgress=t.GetConsignmentForMetadataReviewRequest=t.GetConsignmentsForMetadataReview=t.GetConsignments=t.GetConsignmentType=t.GetConsignmentSummary=t.GetConsignmentStatus=t.GetConsignmentReviewDetails=t.GetConsignmentReference=t.GetConsignmentPaginatedFiles=t.GetConsignmentMetadata=t.GetConsignmentFolderDetails=t.GetConsignmentFilesMetadata=t.GetConsignmentFiles=t.GetConsignmentForExport=t.GetConsignmentDetailsForMetadataReview=t.GetConsignment=t.AddTransferAgreementPrivateBeta=t.AddTransferAgreementCompliance=t.AddOrUpdateConsignmentMetadata=t.AddOrUpdateBulkFileMetadata=t.AddMultipleFileStatuses=t.AddMultipleFileMetadata=t.AddFinalTransferConfirmation=t.AddFilesAndMetadata=t.AddConsignmentStatus=t.AddConsignment=t.AddBulkFfidMetadata=t.AddBulkAntivirusMetadata=void 0;const r=a(n(909));s(n(365),t),t.AddBulkAntivirusMetadata=r.default`
2
2
  mutation addBulkAntivirusMetadata($input: AddAntivirusMetadataInput!) {
3
3
  addBulkAntivirusMetadata(addBulkAntivirusMetadataInput: $input) {
4
4
  fileId
@@ -445,8 +445,8 @@
445
445
  }
446
446
  }
447
447
  `,t.GetSeries=r.default`
448
- query getSeries($body: String!) {
449
- getSeries(body: $body) {
448
+ query getSeries($bodies: [String!]!) {
449
+ getSeries(bodies: $bodies) {
450
450
  seriesid
451
451
  bodyid
452
452
  name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nationalarchives/tdr-generated-graphql",
3
- "version": "1.0.594",
3
+ "version": "1.0.596",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {
package/schema-types.d.ts CHANGED
@@ -553,7 +553,7 @@ export type QueryGetFileCheckFailuresArgs = {
553
553
  getFileCheckFailuresInput?: InputMaybe<GetFileCheckFailuresInput>;
554
554
  };
555
555
  export type QueryGetSeriesArgs = {
556
- body: Scalars['String']['input'];
556
+ bodies: Array<Scalars['String']['input']>;
557
557
  };
558
558
  export type Series = {
559
559
  __typename?: 'Series';