@nationalarchives/tdr-generated-graphql 1.0.141 → 1.0.142

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.
Files changed (2) hide show
  1. package/index.js +22 -22
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"AddAntivirusMetadata",(function(){return ae})),n.d(t,"AddConsignment",(function(){return oe})),n.d(t,"AddFfidMetadata",(function(){return ce})),n.d(t,"AddFileMetadata",(function(){return ue})),n.d(t,"AddFilesAndMetadata",(function(){return le})),n.d(t,"AddFinalJudgmentTransferConfirmation",(function(){return de})),n.d(t,"AddFinalTransferConfirmation",(function(){return pe})),n.d(t,"AddTransferAgreement",(function(){return he})),n.d(t,"GetConsignment",(function(){return fe})),n.d(t,"GetConsignmentForExport",(function(){return me})),n.d(t,"GetConsignmentFolderDetails",(function(){return Ee})),n.d(t,"GetConsignmentReference",(function(){return Ie})),n.d(t,"GetConsignmentStatus",(function(){return Te})),n.d(t,"GetConsignmentSummary",(function(){return Ne})),n.d(t,"GetFileCheckProgress",(function(){return ge})),n.d(t,"GetFileCheckProgressSummary",(function(){return Ae})),n.d(t,"GetOriginalPath",(function(){return ye})),n.d(t,"GetSeries",(function(){return Oe})),n.d(t,"MarkUploadAsCompleted",(function(){return _e})),n.d(t,"StartUpload",(function(){return ve})),n.d(t,"UpdateExportLocation",(function(){return De})),n.d(t,"UpdateTransferInitiated",(function(){return xe}));var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.create;Object.create;function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const s=/\r\n|[\n\r]/g;function a(e,t){let n=0,i=1;for(const a of e.body.matchAll(s)){if("number"==typeof a.index||r(!1),a.index>=t)break;n=a.index+a[0].length,i+=1}return{line:i,column:t+1-n}}function o(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,o=1===t.line?n:0,u=t.column+o,l=`${e.name}:${a}:${u}\n`,d=i.split(/\r\n|[\n\r]/g),p=d[r];if(p.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return l+c([[a+" |",n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return l+c([[a-1+" |",d[r-1]],[a+" |",p],["|","^".padStart(u)],[a+1+" |",d[r+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,n,i,r,s,o){var c,d,p;super(e),this.name="GraphQLError",this.path=null!=r?r:void 0,this.originalError=null!=s?s:void 0,this.nodes=l(Array.isArray(t)?t:t?[t]:void 0);const h=l(null===(c=this.nodes)||void 0===c?void 0:c.map(e=>e.loc).filter(e=>null!=e));this.source=null!=n?n:null==h||null===(d=h[0])||void 0===d?void 0:d.source,this.positions=null!=i?i:null==h?void 0:h.map(e=>e.start),this.locations=i&&n?i.map(e=>a(n,e)):null==h?void 0:h.map(e=>a(e.source,e.start));const f="object"==typeof(m=null==s?void 0:s.extensions)&&null!==m?null==s?void 0:s.extensions:void 0;var m;this.extensions=null!==(p=null!=o?o:f)&&void 0!==p?p: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!=s&&s.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):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 n of this.nodes)n.loc&&(e+="\n\n"+o((t=n.loc).source,a(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+o(this.source,t);var 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 d(e,t,n){return new u("Syntax Error: "+n,void 0,e,[t])}let p;!function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(p||(p={}));class h{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 f{constructor(e,t,n,i,r,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=s,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:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["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","locations"],SchemaExtension:["directives","operationTypes"],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"]}));let m,E;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(m||(m={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(E||(E={}));function I(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:I(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),i=e.length-n,r=[];for(let i=0;i<n;++i)r.push(I(e[i],t));1===i?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`);return"["+r.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";return"{ "+n.map(([e,n])=>e+": "+I(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function T(e,t){if(!Boolean(e))throw new Error(t)}const N=function(e,t){return e instanceof t};class g{constructor(e,t="GraphQL request",n={line:1,column:1}){var i;"string"==typeof e||T(!1,`Body must be a string. Received: ${i=e,I(i,[])}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||T(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||T(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}let A;function y(e){const t=e.split(/\r\n|[\n\r]/g),n=function(e){var t;let n=!0,i=!0,r=0,s=null;for(let t=0;t<e.length;++t)switch(e.charCodeAt(t)){case 13:10===e.charCodeAt(t+1)&&++t;case 10:n=!1,i=!0,r=0;break;case 9:case 32:++r;break;default:i&&!n&&(null===s||r<s)&&(s=r),i=!1}return null!==(t=s)&&void 0!==t?t:0}(e);if(0!==n)for(let e=1;e<t.length;e++)t[e]=t[e].slice(n);let i=0;for(;i<t.length&&O(t[i]);)++i;let r=t.length;for(;r>i&&O(t[r-1]);)--r;return t.slice(i,r).join("\n")}function O(e){for(const t of e)if(" "!==t&&"\t"!==t)return!1;return!0}function _(e){return e>=48&&e<=57}function v(e){return e>=97&&e<=122||e>=65&&e<=90}function D(e){return v(e)||95===e}function x(e){return v(e)||_(e)||95===e}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(A||(A={}));class C{constructor(e){const t=new f(E.SOF,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(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==E.EOF)do{if(e.next)e=e.next;else{const t=P(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===E.COMMENT);return e}}function k(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function S(e,t){return F(e.charCodeAt(t))&&b(e.charCodeAt(t+1))}function F(e){return e>=55296&&e<=56319}function b(e){return e>=56320&&e<=57343}function R(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return E.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function L(e,t,n,i,r){const s=e.line,a=1+n-e.lineStart;return new f(t,n,i,s,a,r)}function P(e,t){const n=e.source.body,i=n.length;let r=t;for(;r<i;){const t=n.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===n.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return M(e,r);case 33:return L(e,E.BANG,r,r+1);case 36:return L(e,E.DOLLAR,r,r+1);case 38:return L(e,E.AMP,r,r+1);case 40:return L(e,E.PAREN_L,r,r+1);case 41:return L(e,E.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return L(e,E.SPREAD,r,r+3);break;case 58:return L(e,E.COLON,r,r+1);case 61:return L(e,E.EQUALS,r,r+1);case 64:return L(e,E.AT,r,r+1);case 91:return L(e,E.BRACKET_L,r,r+1);case 93:return L(e,E.BRACKET_R,r,r+1);case 123:return L(e,E.BRACE_L,r,r+1);case 124:return L(e,E.PIPE,r,r+1);case 125:return L(e,E.BRACE_R,r,r+1);case 34:return 34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)?Y(e,r):V(e,r)}if(_(t)||45===t)return U(e,r,t);if(D(t))return J(e,r);throw d(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":k(t)||S(n,r)?`Unexpected character: ${R(e,r)}.`:`Invalid character: ${R(e,r)}.`)}return L(e,E.EOF,i,i)}function M(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const e=n.charCodeAt(r);if(10===e||13===e)break;if(k(e))++r;else{if(!S(n,r))break;r+=2}}return L(e,E.COMMENT,t,r,n.slice(t+1,r))}function U(e,t,n){const i=e.source.body;let r=t,s=n,a=!1;if(45===s&&(s=i.charCodeAt(++r)),48===s){if(s=i.charCodeAt(++r),_(s))throw d(e.source,r,`Invalid number, unexpected digit after 0: ${R(e,r)}.`)}else r=w(e,r,s),s=i.charCodeAt(r);if(46===s&&(a=!0,s=i.charCodeAt(++r),r=w(e,r,s),s=i.charCodeAt(r)),69!==s&&101!==s||(a=!0,s=i.charCodeAt(++r),43!==s&&45!==s||(s=i.charCodeAt(++r)),r=w(e,r,s),s=i.charCodeAt(r)),46===s||D(s))throw d(e.source,r,`Invalid number, expected digit but got: ${R(e,r)}.`);return L(e,a?E.FLOAT:E.INT,t,r,i.slice(t,r))}function w(e,t,n){if(!_(n))throw d(e.source,t,`Invalid number, expected digit but got: ${R(e,t)}.`);const i=e.source.body;let r=t+1;for(;_(i.charCodeAt(r));)++r;return r}function V(e,t){const n=e.source.body,i=n.length;let r=t+1,s=r,a="";for(;r<i;){const i=n.charCodeAt(r);if(34===i)return a+=n.slice(s,r),L(e,E.STRING,t,r+1,a);if(92!==i){if(10===i||13===i)break;if(k(i))++r;else{if(!S(n,r))throw d(e.source,r,`Invalid character within String: ${R(e,r)}.`);r+=2}}else{a+=n.slice(s,r);const t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?B(e,r):$(e,r):G(e,r);a+=t.value,r+=t.size,s=r}}throw d(e.source,r,"Unterminated string.")}function B(e,t){const n=e.source.body;let i=0,r=3;for(;r<12;){const e=n.charCodeAt(t+r++);if(125===e){if(r<5||!k(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|K(e),i<0)break}throw d(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function $(e,t){const n=e.source.body,i=j(n,t+2);if(k(i))return{value:String.fromCodePoint(i),size:6};if(F(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=j(n,t+8);if(b(e))return{value:String.fromCodePoint(i,e),size:12}}throw d(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function j(e,t){return K(e.charCodeAt(t))<<12|K(e.charCodeAt(t+1))<<8|K(e.charCodeAt(t+2))<<4|K(e.charCodeAt(t+3))}function K(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function G(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 d(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Y(e,t){const n=e.source.body,i=n.length,r=e.line,s=1+t-e.lineStart;let a=t+3,o=a,c="";for(;a<i;){const i=n.charCodeAt(a);if(34===i&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2))return c+=n.slice(o,a),new f(E.BLOCK_STRING,t,a+3,r,s,y(c));if(92!==i||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==i&&13!==i)if(k(i))++a;else{if(!S(n,a))throw d(e.source,a,`Invalid character within String: ${R(e,a)}.`);a+=2}else 13===i&&10===n.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;else c+=n.slice(o,a)+'"""',a+=4,o=a}throw d(e.source,a,"Unterminated string.")}function J(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){if(!x(n.charCodeAt(r)))break;++r}return L(e,E.NAME,t,r,n.slice(t,r))}class q{constructor(e,t){const n=function(e){return N(e,g)}(e)?e:new g(e);this._lexer=new C(n),this._options=t}parseName(){const e=this.expectToken(E.NAME);return this.node(e,{kind:p.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.DOCUMENT,definitions:this.many(E.SOF,this.parseDefinition,E.EOF)})}parseDefinition(){if(this.peek(E.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===E.NAME){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()}if(e)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(E.BRACE_L))return this.node(e,{kind:p.OPERATION_DEFINITION,operation:m.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(E.NAME)&&(n=this.parseName()),this.node(e,{kind:p.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(E.NAME);switch(e.value){case"query":return m.QUERY;case"mutation":return m.MUTATION;case"subscription":return m.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(E.PAREN_L,this.parseVariableDefinition,E.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(E.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(E.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(E.DOLLAR),this.node(e,{kind:p.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.SELECTION_SET,selections:this.many(E.BRACE_L,this.parseSelection,E.BRACE_R)})}parseSelection(){return this.peek(E.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(E.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:p.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(E.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(E.PAREN_L,t,E.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(E.COLON),this.node(t,{kind:p.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(E.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(E.NAME)?this.node(e,{kind:p.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:p.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:p.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:p.FRAGMENT_DEFINITION,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 E.BRACKET_L:return this.parseList(e);case E.BRACE_L:return this.parseObject(e);case E.INT:return this._lexer.advance(),this.node(t,{kind:p.INT,value:t.value});case E.FLOAT:return this._lexer.advance(),this.node(t,{kind:p.FLOAT,value:t.value});case E.STRING:case E.BLOCK_STRING:return this.parseStringLiteral();case E.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:p.BOOLEAN,value:!0});case"false":return this.node(t,{kind:p.BOOLEAN,value:!1});case"null":return this.node(t,{kind:p.NULL});default:return this.node(t,{kind:p.ENUM,value:t.value})}case E.DOLLAR:if(e){if(this.expectToken(E.DOLLAR),this._lexer.token.kind===E.NAME){const e=this._lexer.token.value;throw d(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:p.STRING,value:e.value,block:e.kind===E.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:p.LIST,values:this.any(E.BRACKET_L,()=>this.parseValueLiteral(e),E.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:p.OBJECT,fields:this.any(E.BRACE_L,()=>this.parseObjectField(e),E.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(E.COLON),this.node(t,{kind:p.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(E.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(E.AT),this.node(t,{kind:p.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(E.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(E.BRACKET_R),t=this.node(e,{kind:p.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(E.BANG)?this.node(e,{kind:p.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:p.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(E.STRING)||this.peek(E.BLOCK_STRING)}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(E.BRACE_L,this.parseOperationTypeDefinition,E.BRACE_R);return this.node(e,{kind:p.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(E.COLON);const n=this.parseNamedType();return this.node(e,{kind:p.OPERATION_TYPE_DEFINITION,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:p.SCALAR_TYPE_DEFINITION,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(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:p.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(E.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(E.BRACE_L,this.parseFieldDefinition,E.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(E.COLON);const r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:p.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(E.PAREN_L,this.parseInputValueDef,E.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(E.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(E.EQUALS)&&(r=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:p.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:p.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:p.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(E.EQUALS)?this.delimitedMany(E.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:p.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(E.BRACE_L,this.parseEnumValueDefinition,E.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:p.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw d(this._lexer.source,this._lexer.token.start,Q(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(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(E.BRACE_L,this.parseInputValueDef,E.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===E.NAME)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()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(E.BRACE_L,this.parseOperationTypeDefinition,E.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCALAR_TYPE_EXTENSION,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(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.UNION_TYPE_EXTENSION,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(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.ENUM_TYPE_EXTENSION,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(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(E.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:p.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(E.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(A,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new h(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._lexer.advance(),t;throw d(this._lexer.source,t.start,`Expected ${X(e)}, found ${Q(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==E.NAME||t.value!==e)throw d(this._lexer.source,t.start,`Expected "${e}", found ${Q(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===E.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return d(this._lexer.source,t.start,`Unexpected ${Q(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}return[]}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}}function Q(e){const t=e.value;return X(e.kind)+(null!=t?` "${t}"`:"")}function X(e){return function(e){return e===E.BANG||e===E.DOLLAR||e===E.AMP||e===E.PAREN_L||e===E.PAREN_R||e===E.SPREAD||e===E.COLON||e===E.EQUALS||e===E.AT||e===E.BRACKET_L||e===E.BRACKET_R||e===E.BRACE_L||e===E.PIPE||e===E.BRACE_R}(e)?`"${e}"`:e}var z=new Map,H=new Map,W=!0,Z=!1;function ee(e){return e.replace(/[\s,]+/g," ").trim()}function te(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=ee((a=e.loc).source.body.substring(a.start,a.end)),s=H.get(i);s&&!s.has(r)?W&&console.warn("Warning: fragment with name "+i+" 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"):s||H.set(i,s=new Set),s.add(r),t.has(r)||(t.add(r),n.push(e))}else n.push(e);var a})),i(i({},e),{definitions:n})}function ne(e){var t=ee(e);if(!z.has(t)){var n=function(e,t){return new q(e,t).parseDocument()}(e,{experimentalFragmentVariables:Z,allowLegacyFragmentVariables:Z});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");z.set(t,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}(te(n)))}return z.get(t)}function ie(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]})),ne(i)}var re,se={gql:ie,resetCaches:function(){z.clear(),H.clear()},disableFragmentWarnings:function(){W=!1},enableExperimentalFragmentVariables:function(){Z=!0},disableExperimentalFragmentVariables:function(){Z=!1}};(re=ie||(ie={})).gql=se.gql,re.resetCaches=se.resetCaches,re.disableFragmentWarnings=se.disableFragmentWarnings,re.enableExperimentalFragmentVariables=se.enableExperimentalFragmentVariables,re.disableExperimentalFragmentVariables=se.disableExperimentalFragmentVariables,ie.default=ie;const ae=ie`
1
+ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"AddAntivirusMetadata",(function(){return oe})),n.d(t,"AddConsignment",(function(){return ce})),n.d(t,"AddFfidMetadata",(function(){return ue})),n.d(t,"AddFileMetadata",(function(){return de})),n.d(t,"AddFilesAndMetadata",(function(){return le})),n.d(t,"AddFinalJudgmentTransferConfirmation",(function(){return pe})),n.d(t,"AddFinalTransferConfirmation",(function(){return he})),n.d(t,"AddTransferAgreement",(function(){return fe})),n.d(t,"GetConsignment",(function(){return me})),n.d(t,"GetConsignmentForExport",(function(){return Ee})),n.d(t,"GetConsignmentFolderDetails",(function(){return Ie})),n.d(t,"GetConsignmentReference",(function(){return Te})),n.d(t,"GetConsignmentStatus",(function(){return Ne})),n.d(t,"GetConsignmentSummary",(function(){return ge})),n.d(t,"GetFileCheckProgress",(function(){return Ae})),n.d(t,"GetFileCheckProgressSummary",(function(){return ye})),n.d(t,"GetOriginalPath",(function(){return Oe})),n.d(t,"GetSeries",(function(){return _e})),n.d(t,"MarkUploadAsCompleted",(function(){return ve})),n.d(t,"StartUpload",(function(){return De})),n.d(t,"UpdateExportLocation",(function(){return xe})),n.d(t,"UpdateTransferInitiated",(function(){return Ce}));var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.create;Object.create;function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const s=/\r\n|[\n\r]/g;function a(e,t){let n=0,i=1;for(const a of e.body.matchAll(s)){if("number"==typeof a.index||r(!1),a.index>=t)break;n=a.index+a[0].length,i+=1}return{line:i,column:t+1-n}}function o(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,o=1===t.line?n:0,u=t.column+o,d=`${e.name}:${a}:${u}\n`,l=i.split(/\r\n|[\n\r]/g),p=l[r];if(p.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return d+c([[a+" |",n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return d+c([[a-1+" |",l[r-1]],[a+" |",p],["|","^".padStart(u)],[a+1+" |",l[r+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,n,i,r,s,o){var c,l,p;super(e),this.name="GraphQLError",this.path=null!=r?r:void 0,this.originalError=null!=s?s:void 0,this.nodes=d(Array.isArray(t)?t:t?[t]:void 0);const h=d(null===(c=this.nodes)||void 0===c?void 0:c.map(e=>e.loc).filter(e=>null!=e));this.source=null!=n?n:null==h||null===(l=h[0])||void 0===l?void 0:l.source,this.positions=null!=i?i:null==h?void 0:h.map(e=>e.start),this.locations=i&&n?i.map(e=>a(n,e)):null==h?void 0:h.map(e=>a(e.source,e.start));const f="object"==typeof(m=null==s?void 0:s.extensions)&&null!==m?null==s?void 0:s.extensions:void 0;var m;this.extensions=null!==(p=null!=o?o:f)&&void 0!==p?p: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!=s&&s.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):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 n of this.nodes)n.loc&&(e+="\n\n"+o((t=n.loc).source,a(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+o(this.source,t);var 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 d(e){return void 0===e||0===e.length?void 0:e}function l(e,t,n){return new u("Syntax Error: "+n,void 0,e,[t])}let p;!function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(p||(p={}));class h{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 f{constructor(e,t,n,i,r,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=s,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:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["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","locations"],SchemaExtension:["directives","operationTypes"],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"]}));let m,E;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(m||(m={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(E||(E={}));function I(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:I(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),i=e.length-n,r=[];for(let i=0;i<n;++i)r.push(I(e[i],t));1===i?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`);return"["+r.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";return"{ "+n.map(([e,n])=>e+": "+I(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function T(e,t){if(!Boolean(e))throw new Error(t)}const N=function(e,t){return e instanceof t};class g{constructor(e,t="GraphQL request",n={line:1,column:1}){var i;"string"==typeof e||T(!1,`Body must be a string. Received: ${i=e,I(i,[])}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||T(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||T(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}let A;function y(e){return 9===e||32===e}function O(e){return e>=48&&e<=57}function _(e){return e>=97&&e<=122||e>=65&&e<=90}function v(e){return _(e)||95===e}function D(e){return _(e)||O(e)||95===e}function x(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let t=0;t<e.length;++t){var s;const a=e[t],o=C(a);o!==a.length&&(i=null!==(s=i)&&void 0!==s?s:t,r=t,0!==t&&o<n&&(n=o))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=i)&&void 0!==t?t:0,r+1)}function C(e){let t=0;for(;t<e.length&&y(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(A||(A={}));class k{constructor(e){const t=new f(E.SOF,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(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==E.EOF)do{if(e.next)e=e.next;else{const t=M(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===E.COMMENT);return e}}function S(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function F(e,t){return b(e.charCodeAt(t))&&R(e.charCodeAt(t+1))}function b(e){return e>=55296&&e<=56319}function R(e){return e>=56320&&e<=57343}function L(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return E.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function P(e,t,n,i,r){const s=e.line,a=1+n-e.lineStart;return new f(t,n,i,s,a,r)}function M(e,t){const n=e.source.body,i=n.length;let r=t;for(;r<i;){const t=n.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===n.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return U(e,r);case 33:return P(e,E.BANG,r,r+1);case 36:return P(e,E.DOLLAR,r,r+1);case 38:return P(e,E.AMP,r,r+1);case 40:return P(e,E.PAREN_L,r,r+1);case 41:return P(e,E.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return P(e,E.SPREAD,r,r+3);break;case 58:return P(e,E.COLON,r,r+1);case 61:return P(e,E.EQUALS,r,r+1);case 64:return P(e,E.AT,r,r+1);case 91:return P(e,E.BRACKET_L,r,r+1);case 93:return P(e,E.BRACKET_R,r,r+1);case 123:return P(e,E.BRACE_L,r,r+1);case 124:return P(e,E.PIPE,r,r+1);case 125:return P(e,E.BRACE_R,r,r+1);case 34:return 34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)?J(e,r):B(e,r)}if(O(t)||45===t)return w(e,r,t);if(v(t))return q(e,r);throw l(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":S(t)||F(n,r)?`Unexpected character: ${L(e,r)}.`:`Invalid character: ${L(e,r)}.`)}return P(e,E.EOF,i,i)}function U(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const e=n.charCodeAt(r);if(10===e||13===e)break;if(S(e))++r;else{if(!F(n,r))break;r+=2}}return P(e,E.COMMENT,t,r,n.slice(t+1,r))}function w(e,t,n){const i=e.source.body;let r=t,s=n,a=!1;if(45===s&&(s=i.charCodeAt(++r)),48===s){if(s=i.charCodeAt(++r),O(s))throw l(e.source,r,`Invalid number, unexpected digit after 0: ${L(e,r)}.`)}else r=V(e,r,s),s=i.charCodeAt(r);if(46===s&&(a=!0,s=i.charCodeAt(++r),r=V(e,r,s),s=i.charCodeAt(r)),69!==s&&101!==s||(a=!0,s=i.charCodeAt(++r),43!==s&&45!==s||(s=i.charCodeAt(++r)),r=V(e,r,s),s=i.charCodeAt(r)),46===s||v(s))throw l(e.source,r,`Invalid number, expected digit but got: ${L(e,r)}.`);return P(e,a?E.FLOAT:E.INT,t,r,i.slice(t,r))}function V(e,t,n){if(!O(n))throw l(e.source,t,`Invalid number, expected digit but got: ${L(e,t)}.`);const i=e.source.body;let r=t+1;for(;O(i.charCodeAt(r));)++r;return r}function B(e,t){const n=e.source.body,i=n.length;let r=t+1,s=r,a="";for(;r<i;){const i=n.charCodeAt(r);if(34===i)return a+=n.slice(s,r),P(e,E.STRING,t,r+1,a);if(92!==i){if(10===i||13===i)break;if(S(i))++r;else{if(!F(n,r))throw l(e.source,r,`Invalid character within String: ${L(e,r)}.`);r+=2}}else{a+=n.slice(s,r);const t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?$(e,r):j(e,r):Y(e,r);a+=t.value,r+=t.size,s=r}}throw l(e.source,r,"Unterminated string.")}function $(e,t){const n=e.source.body;let i=0,r=3;for(;r<12;){const e=n.charCodeAt(t+r++);if(125===e){if(r<5||!S(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|K(e),i<0)break}throw l(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function j(e,t){const n=e.source.body,i=G(n,t+2);if(S(i))return{value:String.fromCodePoint(i),size:6};if(b(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=G(n,t+8);if(R(e))return{value:String.fromCodePoint(i,e),size:12}}throw l(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function G(e,t){return K(e.charCodeAt(t))<<12|K(e.charCodeAt(t+1))<<8|K(e.charCodeAt(t+2))<<4|K(e.charCodeAt(t+3))}function K(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Y(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 l(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function J(e,t){const n=e.source.body,i=n.length;let r=e.lineStart,s=t+3,a=s,o="";const c=[];for(;s<i;){const i=n.charCodeAt(s);if(34===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){o+=n.slice(a,s),c.push(o);const i=P(e,E.BLOCK_STRING,t,s+3,x(c).join("\n"));return e.line+=c.length-1,e.lineStart=r,i}if(92!==i||34!==n.charCodeAt(s+1)||34!==n.charCodeAt(s+2)||34!==n.charCodeAt(s+3))if(10!==i&&13!==i)if(S(i))++s;else{if(!F(n,s))throw l(e.source,s,`Invalid character within String: ${L(e,s)}.`);s+=2}else o+=n.slice(a,s),c.push(o),13===i&&10===n.charCodeAt(s+1)?s+=2:++s,o="",a=s,r=s;else o+=n.slice(a,s),a=s+1,s+=4}throw l(e.source,s,"Unterminated string.")}function q(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){if(!D(n.charCodeAt(r)))break;++r}return P(e,E.NAME,t,r,n.slice(t,r))}class Q{constructor(e,t){const n=function(e){return N(e,g)}(e)?e:new g(e);this._lexer=new k(n),this._options=t}parseName(){const e=this.expectToken(E.NAME);return this.node(e,{kind:p.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.DOCUMENT,definitions:this.many(E.SOF,this.parseDefinition,E.EOF)})}parseDefinition(){if(this.peek(E.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===E.NAME){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()}if(e)throw l(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(E.BRACE_L))return this.node(e,{kind:p.OPERATION_DEFINITION,operation:m.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(E.NAME)&&(n=this.parseName()),this.node(e,{kind:p.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(E.NAME);switch(e.value){case"query":return m.QUERY;case"mutation":return m.MUTATION;case"subscription":return m.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(E.PAREN_L,this.parseVariableDefinition,E.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(E.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(E.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(E.DOLLAR),this.node(e,{kind:p.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.SELECTION_SET,selections:this.many(E.BRACE_L,this.parseSelection,E.BRACE_R)})}parseSelection(){return this.peek(E.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(E.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:p.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(E.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(E.PAREN_L,t,E.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(E.COLON),this.node(t,{kind:p.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(E.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(E.NAME)?this.node(e,{kind:p.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:p.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:p.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:p.FRAGMENT_DEFINITION,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 E.BRACKET_L:return this.parseList(e);case E.BRACE_L:return this.parseObject(e);case E.INT:return this._lexer.advance(),this.node(t,{kind:p.INT,value:t.value});case E.FLOAT:return this._lexer.advance(),this.node(t,{kind:p.FLOAT,value:t.value});case E.STRING:case E.BLOCK_STRING:return this.parseStringLiteral();case E.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:p.BOOLEAN,value:!0});case"false":return this.node(t,{kind:p.BOOLEAN,value:!1});case"null":return this.node(t,{kind:p.NULL});default:return this.node(t,{kind:p.ENUM,value:t.value})}case E.DOLLAR:if(e){if(this.expectToken(E.DOLLAR),this._lexer.token.kind===E.NAME){const e=this._lexer.token.value;throw l(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._lexer.advance(),this.node(e,{kind:p.STRING,value:e.value,block:e.kind===E.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:p.LIST,values:this.any(E.BRACKET_L,()=>this.parseValueLiteral(e),E.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:p.OBJECT,fields:this.any(E.BRACE_L,()=>this.parseObjectField(e),E.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(E.COLON),this.node(t,{kind:p.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(E.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(E.AT),this.node(t,{kind:p.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(E.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(E.BRACKET_R),t=this.node(e,{kind:p.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(E.BANG)?this.node(e,{kind:p.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:p.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(E.STRING)||this.peek(E.BLOCK_STRING)}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(E.BRACE_L,this.parseOperationTypeDefinition,E.BRACE_R);return this.node(e,{kind:p.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(E.COLON);const n=this.parseNamedType();return this.node(e,{kind:p.OPERATION_TYPE_DEFINITION,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:p.SCALAR_TYPE_DEFINITION,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(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:p.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(E.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(E.BRACE_L,this.parseFieldDefinition,E.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(E.COLON);const r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:p.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(E.PAREN_L,this.parseInputValueDef,E.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(E.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(E.EQUALS)&&(r=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:p.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:p.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:p.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(E.EQUALS)?this.delimitedMany(E.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:p.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(E.BRACE_L,this.parseEnumValueDefinition,E.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:p.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw l(this._lexer.source,this._lexer.token.start,X(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(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(E.BRACE_L,this.parseInputValueDef,E.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===E.NAME)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()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(E.BRACE_L,this.parseOperationTypeDefinition,E.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCALAR_TYPE_EXTENSION,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(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.UNION_TYPE_EXTENSION,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(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.ENUM_TYPE_EXTENSION,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(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(E.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:p.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(E.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(A,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new h(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._lexer.advance(),t;throw l(this._lexer.source,t.start,`Expected ${z(e)}, found ${X(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==E.NAME||t.value!==e)throw l(this._lexer.source,t.start,`Expected "${e}", found ${X(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===E.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return l(this._lexer.source,t.start,`Unexpected ${X(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}return[]}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}}function X(e){const t=e.value;return z(e.kind)+(null!=t?` "${t}"`:"")}function z(e){return function(e){return e===E.BANG||e===E.DOLLAR||e===E.AMP||e===E.PAREN_L||e===E.PAREN_R||e===E.SPREAD||e===E.COLON||e===E.EQUALS||e===E.AT||e===E.BRACKET_L||e===E.BRACKET_R||e===E.BRACE_L||e===E.PIPE||e===E.BRACE_R}(e)?`"${e}"`:e}var H=new Map,W=new Map,Z=!0,ee=!1;function te(e){return e.replace(/[\s,]+/g," ").trim()}function ne(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=te((a=e.loc).source.body.substring(a.start,a.end)),s=W.get(i);s&&!s.has(r)?Z&&console.warn("Warning: fragment with name "+i+" 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"):s||W.set(i,s=new Set),s.add(r),t.has(r)||(t.add(r),n.push(e))}else n.push(e);var a})),i(i({},e),{definitions:n})}function ie(e){var t=te(e);if(!H.has(t)){var n=function(e,t){return new Q(e,t).parseDocument()}(e,{experimentalFragmentVariables:ee,allowLegacyFragmentVariables:ee});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");H.set(t,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}(ne(n)))}return H.get(t)}function re(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]})),ie(i)}var se,ae={gql:re,resetCaches:function(){H.clear(),W.clear()},disableFragmentWarnings:function(){Z=!1},enableExperimentalFragmentVariables:function(){ee=!0},disableExperimentalFragmentVariables:function(){ee=!1}};(se=re||(re={})).gql=ae.gql,se.resetCaches=ae.resetCaches,se.disableFragmentWarnings=ae.disableFragmentWarnings,se.enableExperimentalFragmentVariables=ae.enableExperimentalFragmentVariables,se.disableExperimentalFragmentVariables=ae.disableExperimentalFragmentVariables,re.default=re;const oe=re`
2
2
  mutation AddAntivirusMetadata($input: AddAntivirusMetadataInput!) {
3
3
  addAntivirusMetadata(addAntivirusMetadataInput: $input) {
4
4
  fileId
@@ -9,34 +9,34 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
9
9
  datetime
10
10
  }
11
11
  }
12
- `,oe=ie`
12
+ `,ce=re`
13
13
  mutation addConsignment($addConsignmentInput: AddConsignmentInput!) {
14
14
  addConsignment(addConsignmentInput: $addConsignmentInput) {
15
15
  consignmentid
16
16
  seriesid
17
17
  }
18
18
  }
19
- `,ce=ie`
19
+ `,ue=re`
20
20
  mutation addFFIDMetadata($addFFIDMetadataInput: FFIDMetadataInput!) {
21
21
  addFFIDMetadata(addFFIDMetadataInput: $addFFIDMetadataInput) {
22
22
  fileId
23
23
  }
24
24
  }
25
- `,ue=ie`
25
+ `,de=re`
26
26
  mutation addFileMetadata($addFileMetadataInput: AddFileMetadataInput!) {
27
27
  addFileMetadata(addFileMetadataInput: $addFileMetadataInput) {
28
28
  fileId
29
29
  value
30
30
  }
31
31
  }
32
- `,le=ie`
32
+ `,le=re`
33
33
  mutation AddFilesAndMetadata($input: AddFileAndMetadataInput!) {
34
34
  addFilesAndMetadata(addFilesAndMetadataInput: $input) {
35
35
  fileId
36
36
  matchId
37
37
  }
38
38
  }
39
- `,de=ie`
39
+ `,pe=re`
40
40
  mutation AddFinalJudgmentTransferConfirmation($input: AddFinalJudgmentTransferConfirmationInput!) {
41
41
  addFinalJudgmentTransferConfirmation(
42
42
  addFinalJudgmentTransferConfirmationInput: $input
@@ -45,7 +45,7 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
45
45
  legalCustodyTransferConfirmed
46
46
  }
47
47
  }
48
- `,pe=ie`
48
+ `,he=re`
49
49
  mutation AddFinalTransferConfirmation($input: AddFinalTransferConfirmationInput!) {
50
50
  addFinalTransferConfirmation(addFinalTransferConfirmationInput: $input) {
51
51
  consignmentId
@@ -53,7 +53,7 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
53
53
  legalOwnershipTransferConfirmed
54
54
  }
55
55
  }
56
- `,he=ie`
56
+ `,fe=re`
57
57
  mutation AddTransferAgreement($input: AddTransferAgreementInput!) {
58
58
  addTransferAgreement(addTransferAgreementInput: $input) {
59
59
  consignmentId
@@ -65,14 +65,14 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
65
65
  initialOpenRecords
66
66
  }
67
67
  }
68
- `,fe=ie`
68
+ `,me=re`
69
69
  query getConsignment($consignmentId: UUID!) {
70
70
  getConsignment(consignmentid: $consignmentId) {
71
71
  userid
72
72
  seriesid
73
73
  }
74
74
  }
75
- `,me=ie`
75
+ `,Ee=re`
76
76
  query getConsignmentForExport($consignmentId: UUID!) {
77
77
  getConsignment(consignmentid: $consignmentId) {
78
78
  userid
@@ -119,20 +119,20 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
119
119
  }
120
120
  }
121
121
  }
122
- `,Ee=ie`
122
+ `,Ie=re`
123
123
  query getConsignmentFolderDetails($consignmentId: UUID!) {
124
124
  getConsignment(consignmentid: $consignmentId) {
125
125
  totalFiles
126
126
  parentFolder
127
127
  }
128
128
  }
129
- `,Ie=ie`
129
+ `,Te=re`
130
130
  query getConsignmentReference($consignmentId: UUID!) {
131
131
  getConsignment(consignmentid: $consignmentId) {
132
132
  consignmentReference
133
133
  }
134
134
  }
135
- `,Te=ie`
135
+ `,Ne=re`
136
136
  query getConsignmentStatus($consignmentId: UUID!) {
137
137
  getConsignment(consignmentid: $consignmentId) {
138
138
  currentStatus {
@@ -141,7 +141,7 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
141
141
  }
142
142
  }
143
143
  }
144
- `,Ne=ie`
144
+ `,ge=re`
145
145
  query getConsignmentSummary($consignmentId: UUID!) {
146
146
  getConsignment(consignmentid: $consignmentId) {
147
147
  series {
@@ -154,7 +154,7 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
154
154
  consignmentReference
155
155
  }
156
156
  }
157
- `,ge=ie`
157
+ `,Ae=re`
158
158
  query getFileCheckProgress($consignmentId: UUID!) {
159
159
  getConsignment(consignmentid: $consignmentId) {
160
160
  allChecksSucceeded
@@ -173,7 +173,7 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
173
173
  }
174
174
  }
175
175
  }
176
- `,Ae=ie`
176
+ `,ye=re`
177
177
  query getFileCheckProgressSummary($consignmentId: UUID!) {
178
178
  getConsignment(consignmentid: $consignmentId) {
179
179
  totalFiles
@@ -190,13 +190,13 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
190
190
  }
191
191
  }
192
192
  }
193
- `,ye=ie`
193
+ `,Oe=re`
194
194
  query getOriginalPath($fileId: UUID!) {
195
195
  getClientFileMetadata(fileId: $fileId) {
196
196
  originalPath
197
197
  }
198
198
  }
199
- `,Oe=ie`
199
+ `,_e=re`
200
200
  query getSeries($body: String!) {
201
201
  getSeries(body: $body) {
202
202
  seriesid
@@ -206,19 +206,19 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
206
206
  description
207
207
  }
208
208
  }
209
- `,_e=ie`
209
+ `,ve=re`
210
210
  mutation markUploadAsCompleted($consignmentId: UUID!) {
211
211
  markUploadAsCompleted(consignmentid: $consignmentId)
212
212
  }
213
- `,ve=ie`
213
+ `,De=re`
214
214
  mutation StartUpload($input: StartUploadInput!) {
215
215
  startUpload(startUploadInput: $input)
216
216
  }
217
- `,De=ie`
217
+ `,xe=re`
218
218
  mutation updateExportLocation($updateExportLocationInput: UpdateExportLocationInput!) {
219
219
  updateExportLocation(exportLocation: $updateExportLocationInput)
220
220
  }
221
- `,xe=ie`
221
+ `,Ce=re`
222
222
  mutation updateTransferInitiated($consignmentId: UUID!) {
223
223
  updateTransferInitiated(consignmentid: $consignmentId)
224
224
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nationalarchives/tdr-generated-graphql",
3
- "version": "1.0.141",
3
+ "version": "1.0.142",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -38,7 +38,7 @@
38
38
  "@graphql-codegen/cli": "^2.3.0",
39
39
  "apollo-link-http": "^1.5.17",
40
40
  "dts-bundle": "^0.7.3",
41
- "graphql": "^16.0.1",
41
+ "graphql": "^16.1.0",
42
42
  "y18n": "^5.0.8"
43
43
  }
44
44
  }