@nationalarchives/tdr-generated-graphql 1.0.183 → 1.0.186
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.js +4 -8
- package/package.json +3 -4
- package/index.d.ts +0 -833
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,"DataType",(function(){return oe})),n.d(t,"PropertyType",(function(){return ce})),n.d(t,"AddAntivirusMetadata",(function(){return de})),n.d(t,"AddConsignment",(function(){return le})),n.d(t,"AddFfidMetadata",(function(){return pe})),n.d(t,"AddFileMetadata",(function(){return he})),n.d(t,"AddFilesAndMetadata",(function(){return fe})),n.d(t,"AddFinalJudgmentTransferConfirmation",(function(){return me})),n.d(t,"AddFinalTransferConfirmation",(function(){return Ee})),n.d(t,"AddTransferAgreementCompliance",(function(){return Ie})),n.d(t,"AddTransferAgreementPrivateBeta",(function(){return Te})),n.d(t,"GetClosureMetadata",(function(){return ge})),n.d(t,"GetConsignment",(function(){return Ne})),n.d(t,"GetConsignmentForExport",(function(){return ye})),n.d(t,"GetConsignmentFiles",(function(){return Ae})),n.d(t,"GetConsignmentFolderDetails",(function(){return De})),n.d(t,"GetConsignmentReference",(function(){return ve})),n.d(t,"GetConsignmentStatus",(function(){return Oe})),n.d(t,"GetConsignmentSummary",(function(){return xe})),n.d(t,"GetConsignmentType",(function(){return _e})),n.d(t,"GetFileCheckProgress",(function(){return Ce})),n.d(t,"GetFileCheckProgressSummary",(function(){return ke})),n.d(t,"GetOriginalPath",(function(){return Se})),n.d(t,"GetSeries",(function(){return Fe})),n.d(t,"MarkUploadAsCompleted",(function(){return be})),n.d(t,"StartUpload",(function(){return Re})),n.d(t,"UpdateExportData",(function(){return Le})),n.d(t,"UpdateExportLocation",(function(){return Pe})),n.d(t,"UpdateTransferInitiated",(function(){return Ue}));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){var n,i,r;const{nodes:s,source:o,positions:c,path:l,originalError:p,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=p?p:void 0,this.nodes=d(Array.isArray(s)?s:s?[s]:void 0);const f=d(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==f||null===(i=f[0])||void 0===i?void 0:i.source,this.positions=null!=c?c:null==f?void 0:f.map(e=>e.start),this.locations=c&&o?c.map(e=>a(o,e)):null==f?void 0:f.map(e=>a(e.source,e.start));const m="object"==typeof(E=null==p?void 0:p.extensions)&&null!==E?null==p?void 0:p.extensions:void 0;var E;this.extensions=null!==(r=null!=h?h:m)&&void 0!==r?r: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!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.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])}class p{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 h{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 f,m,E,I;function T(e){return 9===e||32===e}function g(e){return e>=48&&e<=57}function N(e){return e>=97&&e<=122||e>=65&&e<=90}function y(e){return N(e)||95===e}function A(e){return N(e)||g(e)||95===e}function D(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=v(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 v(e){let t=0;for(;t<e.length&&T(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(f||(f={})),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"}(m||(m={})),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"}(E||(E={})),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"}(I||(I={}));class O{constructor(e){const t=new h(I.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!==I.EOF)do{if(e.next)e=e.next;else{const t=b(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===I.COMMENT);return e}}function x(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function _(e,t){return C(e.charCodeAt(t))&&k(e.charCodeAt(t+1))}function C(e){return e>=55296&&e<=56319}function k(e){return e>=56320&&e<=57343}function S(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return I.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function F(e,t,n,i,r){const s=e.line,a=1+n-e.lineStart;return new h(t,n,i,s,a,r)}function b(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 R(e,r);case 33:return F(e,I.BANG,r,r+1);case 36:return F(e,I.DOLLAR,r,r+1);case 38:return F(e,I.AMP,r,r+1);case 40:return F(e,I.PAREN_L,r,r+1);case 41:return F(e,I.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return F(e,I.SPREAD,r,r+3);break;case 58:return F(e,I.COLON,r,r+1);case 61:return F(e,I.EQUALS,r,r+1);case 64:return F(e,I.AT,r,r+1);case 91:return F(e,I.BRACKET_L,r,r+1);case 93:return F(e,I.BRACKET_R,r,r+1);case 123:return F(e,I.BRACE_L,r,r+1);case 124:return F(e,I.PIPE,r,r+1);case 125:return F(e,I.BRACE_R,r,r+1);case 34:return 34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)?j(e,r):U(e,r)}if(g(t)||45===t)return L(e,r,t);if(y(t))return G(e,r);throw l(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":x(t)||_(n,r)?`Unexpected character: ${S(e,r)}.`:`Invalid character: ${S(e,r)}.`)}return F(e,I.EOF,i,i)}function R(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(x(e))++r;else{if(!_(n,r))break;r+=2}}return F(e,I.COMMENT,t,r,n.slice(t+1,r))}function L(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),g(s))throw l(e.source,r,`Invalid number, unexpected digit after 0: ${S(e,r)}.`)}else r=P(e,r,s),s=i.charCodeAt(r);if(46===s&&(a=!0,s=i.charCodeAt(++r),r=P(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=P(e,r,s),s=i.charCodeAt(r)),46===s||y(s))throw l(e.source,r,`Invalid number, expected digit but got: ${S(e,r)}.`);return F(e,a?I.FLOAT:I.INT,t,r,i.slice(t,r))}function P(e,t,n){if(!g(n))throw l(e.source,t,`Invalid number, expected digit but got: ${S(e,t)}.`);const i=e.source.body;let r=t+1;for(;g(i.charCodeAt(r));)++r;return r}function U(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),F(e,I.STRING,t,r+1,a);if(92!==i){if(10===i||13===i)break;if(x(i))++r;else{if(!_(n,r))throw l(e.source,r,`Invalid character within String: ${S(e,r)}.`);r+=2}}else{a+=n.slice(s,r);const t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?M(e,r):w(e,r):$(e,r);a+=t.value,r+=t.size,s=r}}throw l(e.source,r,"Unterminated string.")}function M(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||!x(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|B(e),i<0)break}throw l(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function w(e,t){const n=e.source.body,i=V(n,t+2);if(x(i))return{value:String.fromCodePoint(i),size:6};if(C(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=V(n,t+8);if(k(e))return{value:String.fromCodePoint(i,e),size:12}}throw l(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function V(e,t){return B(e.charCodeAt(t))<<12|B(e.charCodeAt(t+1))<<8|B(e.charCodeAt(t+2))<<4|B(e.charCodeAt(t+3))}function B(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function $(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=F(e,I.BLOCK_STRING,t,s+3,D(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(x(i))++s;else{if(!_(n,s))throw l(e.source,s,`Invalid character within String: ${S(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 G(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){if(!A(n.charCodeAt(r)))break;++r}return F(e,I.NAME,t,r,n.slice(t,r))}function K(e,t){if(!Boolean(e))throw new Error(t)}function Y(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:Y(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(Y(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+": "+Y(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const q=function(e,t){return e instanceof t};class J{constructor(e,t="GraphQL request",n={line:1,column:1}){var i;"string"==typeof e||K(!1,`Body must be a string. Received: ${i=e,Y(i,[])}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||K(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||K(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Q{constructor(e,t){const n=function(e){return q(e,J)}(e)?e:new J(e);this._lexer=new O(n),this._options=t}parseName(){const e=this.expectToken(I.NAME);return this.node(e,{kind:E.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:E.DOCUMENT,definitions:this.many(I.SOF,this.parseDefinition,I.EOF)})}parseDefinition(){if(this.peek(I.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===I.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(I.BRACE_L))return this.node(e,{kind:E.OPERATION_DEFINITION,operation:f.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(I.NAME)&&(n=this.parseName()),this.node(e,{kind:E.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(I.NAME);switch(e.value){case"query":return f.QUERY;case"mutation":return f.MUTATION;case"subscription":return f.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(I.PAREN_L,this.parseVariableDefinition,I.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:E.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(I.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(I.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(I.DOLLAR),this.node(e,{kind:E.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:E.SELECTION_SET,selections:this.many(I.BRACE_L,this.parseSelection,I.BRACE_R)})}parseSelection(){return this.peek(I.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(I.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:E.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(I.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(I.PAREN_L,t,I.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(I.COLON),this.node(t,{kind:E.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(I.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(I.NAME)?this.node(e,{kind:E.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:E.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:E.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:E.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 I.BRACKET_L:return this.parseList(e);case I.BRACE_L:return this.parseObject(e);case I.INT:return this._lexer.advance(),this.node(t,{kind:E.INT,value:t.value});case I.FLOAT:return this._lexer.advance(),this.node(t,{kind:E.FLOAT,value:t.value});case I.STRING:case I.BLOCK_STRING:return this.parseStringLiteral();case I.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:E.BOOLEAN,value:!0});case"false":return this.node(t,{kind:E.BOOLEAN,value:!1});case"null":return this.node(t,{kind:E.NULL});default:return this.node(t,{kind:E.ENUM,value:t.value})}case I.DOLLAR:if(e){if(this.expectToken(I.DOLLAR),this._lexer.token.kind===I.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:E.STRING,value:e.value,block:e.kind===I.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:E.LIST,values:this.any(I.BRACKET_L,()=>this.parseValueLiteral(e),I.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:E.OBJECT,fields:this.any(I.BRACE_L,()=>this.parseObjectField(e),I.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(I.COLON),this.node(t,{kind:E.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(I.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(I.AT),this.node(t,{kind:E.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(I.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(I.BRACKET_R),t=this.node(e,{kind:E.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(I.BANG)?this.node(e,{kind:E.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:E.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(I.STRING)||this.peek(I.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(I.BRACE_L,this.parseOperationTypeDefinition,I.BRACE_R);return this.node(e,{kind:E.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(I.COLON);const n=this.parseNamedType();return this.node(e,{kind:E.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:E.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:E.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(I.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(I.BRACE_L,this.parseFieldDefinition,I.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(I.COLON);const r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:E.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(I.PAREN_L,this.parseInputValueDef,I.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(I.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(I.EQUALS)&&(r=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:E.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:E.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:E.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(I.EQUALS)?this.delimitedMany(I.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:E.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(I.BRACE_L,this.parseEnumValueDefinition,I.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:E.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:E.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(I.BRACE_L,this.parseInputValueDef,I.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===I.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(I.BRACE_L,this.parseOperationTypeDefinition,I.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:E.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:E.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:E.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:E.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:E.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:E.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:E.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(I.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:E.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(I.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(m,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 p(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!==I.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===I.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===I.BANG||e===I.DOLLAR||e===I.AMP||e===I.PAREN_L||e===I.PAREN_R||e===I.SPREAD||e===I.COLON||e===I.EQUALS||e===I.AT||e===I.BRACKET_L||e===I.BRACKET_R||e===I.BRACE_L||e===I.PIPE||e===I.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;var oe,ce,ue=re;!function(e){e.DateTime="DateTime",e.Decimal="Decimal",e.Integer="Integer",e.Text="Text"}(oe||(oe={})),function(e){e.Defined="Defined",e.Supplied="Supplied",e.System="System"}(ce||(ce={}));const de=ue`
|
|
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,"DataType",(function(){return oe})),n.d(t,"PropertyType",(function(){return ce})),n.d(t,"AddAntivirusMetadata",(function(){return de})),n.d(t,"AddConsignment",(function(){return le})),n.d(t,"AddFfidMetadata",(function(){return pe})),n.d(t,"AddFileMetadata",(function(){return he})),n.d(t,"AddFilesAndMetadata",(function(){return fe})),n.d(t,"AddFinalJudgmentTransferConfirmation",(function(){return me})),n.d(t,"AddFinalTransferConfirmation",(function(){return Ee})),n.d(t,"AddTransferAgreementCompliance",(function(){return Ie})),n.d(t,"AddTransferAgreementPrivateBeta",(function(){return Te})),n.d(t,"GetClosureMetadata",(function(){return ge})),n.d(t,"GetConsignment",(function(){return Ne})),n.d(t,"GetConsignmentForExport",(function(){return ye})),n.d(t,"GetConsignmentFiles",(function(){return Ae})),n.d(t,"GetConsignmentFolderDetails",(function(){return De})),n.d(t,"GetConsignmentReference",(function(){return ve})),n.d(t,"GetConsignmentStatus",(function(){return Oe})),n.d(t,"GetConsignmentSummary",(function(){return _e})),n.d(t,"GetConsignmentType",(function(){return Ce})),n.d(t,"GetFileCheckProgress",(function(){return xe})),n.d(t,"GetFileCheckProgressSummary",(function(){return ke})),n.d(t,"GetOriginalPath",(function(){return Se})),n.d(t,"GetSeries",(function(){return Fe})),n.d(t,"MarkUploadAsCompleted",(function(){return be})),n.d(t,"StartUpload",(function(){return Re})),n.d(t,"UpdateExportData",(function(){return Le})),n.d(t,"UpdateTransferInitiated",(function(){return Pe}));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){var n,i,r;const{nodes:s,source:o,positions:c,path:l,originalError:p,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=p?p:void 0,this.nodes=d(Array.isArray(s)?s:s?[s]:void 0);const f=d(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==f||null===(i=f[0])||void 0===i?void 0:i.source,this.positions=null!=c?c:null==f?void 0:f.map(e=>e.start),this.locations=c&&o?c.map(e=>a(o,e)):null==f?void 0:f.map(e=>a(e.source,e.start));const m="object"==typeof(E=null==p?void 0:p.extensions)&&null!==E?null==p?void 0:p.extensions:void 0;var E;this.extensions=null!==(r=null!=h?h:m)&&void 0!==r?r: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!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.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])}class p{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 h{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 f,m,E,I;function T(e){return 9===e||32===e}function g(e){return e>=48&&e<=57}function N(e){return e>=97&&e<=122||e>=65&&e<=90}function y(e){return N(e)||95===e}function A(e){return N(e)||g(e)||95===e}function D(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=v(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 v(e){let t=0;for(;t<e.length&&T(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(f||(f={})),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"}(m||(m={})),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"}(E||(E={})),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"}(I||(I={}));class O{constructor(e){const t=new h(I.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!==I.EOF)do{if(e.next)e=e.next;else{const t=b(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===I.COMMENT);return e}}function _(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function C(e,t){return x(e.charCodeAt(t))&&k(e.charCodeAt(t+1))}function x(e){return e>=55296&&e<=56319}function k(e){return e>=56320&&e<=57343}function S(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return I.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function F(e,t,n,i,r){const s=e.line,a=1+n-e.lineStart;return new h(t,n,i,s,a,r)}function b(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 R(e,r);case 33:return F(e,I.BANG,r,r+1);case 36:return F(e,I.DOLLAR,r,r+1);case 38:return F(e,I.AMP,r,r+1);case 40:return F(e,I.PAREN_L,r,r+1);case 41:return F(e,I.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return F(e,I.SPREAD,r,r+3);break;case 58:return F(e,I.COLON,r,r+1);case 61:return F(e,I.EQUALS,r,r+1);case 64:return F(e,I.AT,r,r+1);case 91:return F(e,I.BRACKET_L,r,r+1);case 93:return F(e,I.BRACKET_R,r,r+1);case 123:return F(e,I.BRACE_L,r,r+1);case 124:return F(e,I.PIPE,r,r+1);case 125:return F(e,I.BRACE_R,r,r+1);case 34:return 34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)?j(e,r):U(e,r)}if(g(t)||45===t)return L(e,r,t);if(y(t))return G(e,r);throw l(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":_(t)||C(n,r)?`Unexpected character: ${S(e,r)}.`:`Invalid character: ${S(e,r)}.`)}return F(e,I.EOF,i,i)}function R(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(_(e))++r;else{if(!C(n,r))break;r+=2}}return F(e,I.COMMENT,t,r,n.slice(t+1,r))}function L(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),g(s))throw l(e.source,r,`Invalid number, unexpected digit after 0: ${S(e,r)}.`)}else r=P(e,r,s),s=i.charCodeAt(r);if(46===s&&(a=!0,s=i.charCodeAt(++r),r=P(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=P(e,r,s),s=i.charCodeAt(r)),46===s||y(s))throw l(e.source,r,`Invalid number, expected digit but got: ${S(e,r)}.`);return F(e,a?I.FLOAT:I.INT,t,r,i.slice(t,r))}function P(e,t,n){if(!g(n))throw l(e.source,t,`Invalid number, expected digit but got: ${S(e,t)}.`);const i=e.source.body;let r=t+1;for(;g(i.charCodeAt(r));)++r;return r}function U(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),F(e,I.STRING,t,r+1,a);if(92!==i){if(10===i||13===i)break;if(_(i))++r;else{if(!C(n,r))throw l(e.source,r,`Invalid character within String: ${S(e,r)}.`);r+=2}}else{a+=n.slice(s,r);const t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?M(e,r):w(e,r):$(e,r);a+=t.value,r+=t.size,s=r}}throw l(e.source,r,"Unterminated string.")}function M(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||!_(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|B(e),i<0)break}throw l(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function w(e,t){const n=e.source.body,i=V(n,t+2);if(_(i))return{value:String.fromCodePoint(i),size:6};if(x(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=V(n,t+8);if(k(e))return{value:String.fromCodePoint(i,e),size:12}}throw l(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function V(e,t){return B(e.charCodeAt(t))<<12|B(e.charCodeAt(t+1))<<8|B(e.charCodeAt(t+2))<<4|B(e.charCodeAt(t+3))}function B(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function $(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=F(e,I.BLOCK_STRING,t,s+3,D(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(_(i))++s;else{if(!C(n,s))throw l(e.source,s,`Invalid character within String: ${S(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 G(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){if(!A(n.charCodeAt(r)))break;++r}return F(e,I.NAME,t,r,n.slice(t,r))}function K(e,t){if(!Boolean(e))throw new Error(t)}function Y(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:Y(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(Y(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+": "+Y(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const q=function(e,t){return e instanceof t};class J{constructor(e,t="GraphQL request",n={line:1,column:1}){var i;"string"==typeof e||K(!1,`Body must be a string. Received: ${i=e,Y(i,[])}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||K(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||K(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Q{constructor(e,t){const n=function(e){return q(e,J)}(e)?e:new J(e);this._lexer=new O(n),this._options=t}parseName(){const e=this.expectToken(I.NAME);return this.node(e,{kind:E.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:E.DOCUMENT,definitions:this.many(I.SOF,this.parseDefinition,I.EOF)})}parseDefinition(){if(this.peek(I.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===I.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(I.BRACE_L))return this.node(e,{kind:E.OPERATION_DEFINITION,operation:f.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(I.NAME)&&(n=this.parseName()),this.node(e,{kind:E.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(I.NAME);switch(e.value){case"query":return f.QUERY;case"mutation":return f.MUTATION;case"subscription":return f.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(I.PAREN_L,this.parseVariableDefinition,I.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:E.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(I.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(I.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(I.DOLLAR),this.node(e,{kind:E.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:E.SELECTION_SET,selections:this.many(I.BRACE_L,this.parseSelection,I.BRACE_R)})}parseSelection(){return this.peek(I.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(I.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:E.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(I.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(I.PAREN_L,t,I.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(I.COLON),this.node(t,{kind:E.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(I.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(I.NAME)?this.node(e,{kind:E.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:E.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:E.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:E.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 I.BRACKET_L:return this.parseList(e);case I.BRACE_L:return this.parseObject(e);case I.INT:return this._lexer.advance(),this.node(t,{kind:E.INT,value:t.value});case I.FLOAT:return this._lexer.advance(),this.node(t,{kind:E.FLOAT,value:t.value});case I.STRING:case I.BLOCK_STRING:return this.parseStringLiteral();case I.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:E.BOOLEAN,value:!0});case"false":return this.node(t,{kind:E.BOOLEAN,value:!1});case"null":return this.node(t,{kind:E.NULL});default:return this.node(t,{kind:E.ENUM,value:t.value})}case I.DOLLAR:if(e){if(this.expectToken(I.DOLLAR),this._lexer.token.kind===I.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:E.STRING,value:e.value,block:e.kind===I.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:E.LIST,values:this.any(I.BRACKET_L,()=>this.parseValueLiteral(e),I.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:E.OBJECT,fields:this.any(I.BRACE_L,()=>this.parseObjectField(e),I.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(I.COLON),this.node(t,{kind:E.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(I.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(I.AT),this.node(t,{kind:E.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(I.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(I.BRACKET_R),t=this.node(e,{kind:E.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(I.BANG)?this.node(e,{kind:E.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:E.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(I.STRING)||this.peek(I.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(I.BRACE_L,this.parseOperationTypeDefinition,I.BRACE_R);return this.node(e,{kind:E.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(I.COLON);const n=this.parseNamedType();return this.node(e,{kind:E.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:E.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:E.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(I.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(I.BRACE_L,this.parseFieldDefinition,I.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(I.COLON);const r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:E.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(I.PAREN_L,this.parseInputValueDef,I.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(I.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(I.EQUALS)&&(r=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:E.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:E.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:E.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(I.EQUALS)?this.delimitedMany(I.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:E.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(I.BRACE_L,this.parseEnumValueDefinition,I.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:E.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:E.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(I.BRACE_L,this.parseInputValueDef,I.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===I.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(I.BRACE_L,this.parseOperationTypeDefinition,I.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:E.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:E.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:E.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:E.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:E.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:E.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:E.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(I.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:E.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(I.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(m,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 p(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!==I.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===I.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===I.BANG||e===I.DOLLAR||e===I.AMP||e===I.PAREN_L||e===I.PAREN_R||e===I.SPREAD||e===I.COLON||e===I.EQUALS||e===I.AT||e===I.BRACKET_L||e===I.BRACKET_R||e===I.BRACE_L||e===I.PIPE||e===I.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;var oe,ce,ue=re;!function(e){e.DateTime="DateTime",e.Decimal="Decimal",e.Integer="Integer",e.Text="Text"}(oe||(oe={})),function(e){e.Defined="Defined",e.Supplied="Supplied",e.System="System"}(ce||(ce={}));const de=ue`
|
|
2
2
|
mutation addAntivirusMetadata($input: AddAntivirusMetadataInput!) {
|
|
3
3
|
addAntivirusMetadata(addAntivirusMetadataInput: $input) {
|
|
4
4
|
fileId
|
|
@@ -188,7 +188,7 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
`,
|
|
191
|
+
`,_e=ue`
|
|
192
192
|
query getConsignmentSummary($consignmentId: UUID!) {
|
|
193
193
|
getConsignment(consignmentid: $consignmentId) {
|
|
194
194
|
series {
|
|
@@ -201,13 +201,13 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
|
|
|
201
201
|
consignmentReference
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
`,
|
|
204
|
+
`,Ce=ue`
|
|
205
205
|
query getConsignmentType($consignmentId: UUID!) {
|
|
206
206
|
getConsignment(consignmentid: $consignmentId) {
|
|
207
207
|
consignmentType
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
`,
|
|
210
|
+
`,xe=ue`
|
|
211
211
|
query getFileCheckProgress($consignmentId: UUID!) {
|
|
212
212
|
getConsignment(consignmentid: $consignmentId) {
|
|
213
213
|
allChecksSucceeded
|
|
@@ -275,10 +275,6 @@ module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;va
|
|
|
275
275
|
updateExportData(exportData: $updateExportDataInput)
|
|
276
276
|
}
|
|
277
277
|
`,Pe=ue`
|
|
278
|
-
mutation updateExportLocation($updateExportLocationInput: UpdateExportLocationInput!) {
|
|
279
|
-
updateExportLocation(exportLocation: $updateExportLocationInput)
|
|
280
|
-
}
|
|
281
|
-
`,Ue=ue`
|
|
282
278
|
mutation updateTransferInitiated($consignmentId: UUID!) {
|
|
283
279
|
updateTransferInitiated(consignmentid: $consignmentId)
|
|
284
280
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nationalarchives/tdr-generated-graphql",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.186",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@graphql-codegen/introspection": "^2.1.1",
|
|
28
28
|
"@graphql-codegen/typescript": "^2.4.7",
|
|
29
|
-
"@graphql-codegen/typescript-document-nodes": "^2.2.
|
|
29
|
+
"@graphql-codegen/typescript-document-nodes": "^2.2.8",
|
|
30
30
|
"@graphql-codegen/typescript-graphql-files-modules": "^2.1.1",
|
|
31
|
-
"@graphql-codegen/typescript-operations": "^2.3.
|
|
31
|
+
"@graphql-codegen/typescript-operations": "^2.3.5",
|
|
32
32
|
"ts-loader": "^7.0.5",
|
|
33
33
|
"typescript": "^4.6.2",
|
|
34
34
|
"webpack": "^4.46.0",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@graphql-codegen/cli": "^2.6.2",
|
|
39
39
|
"apollo-link-http": "^1.5.17",
|
|
40
|
-
"dts-bundle": "^0.7.3",
|
|
41
40
|
"graphql": "^16.3.0",
|
|
42
41
|
"y18n": "^5.0.8"
|
|
43
42
|
}
|
package/index.d.ts
DELETED
|
@@ -1,833 +0,0 @@
|
|
|
1
|
-
// Generated by dts-bundle v0.7.3
|
|
2
|
-
|
|
3
|
-
export type Maybe<T> = T | null;
|
|
4
|
-
export type InputMaybe<T> = Maybe<T>;
|
|
5
|
-
export type Exact<T extends {
|
|
6
|
-
[key: string]: unknown;
|
|
7
|
-
}> = {
|
|
8
|
-
[K in keyof T]: T[K];
|
|
9
|
-
};
|
|
10
|
-
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
11
|
-
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
12
|
-
};
|
|
13
|
-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
14
|
-
[SubKey in K]: Maybe<T[SubKey]>;
|
|
15
|
-
};
|
|
16
|
-
/** All built-in and custom scalars, mapped to their actual values */
|
|
17
|
-
export type Scalars = {
|
|
18
|
-
ID: string;
|
|
19
|
-
String: string;
|
|
20
|
-
Boolean: boolean;
|
|
21
|
-
Int: number;
|
|
22
|
-
Float: number;
|
|
23
|
-
LocalDateTime: any;
|
|
24
|
-
/** The `Long` scalar type represents non-fractional signed whole numeric values. Long can represent values between -(2^63) and 2^63 - 1. */
|
|
25
|
-
Long: number;
|
|
26
|
-
UUID: any;
|
|
27
|
-
ZonedDateTime: any;
|
|
28
|
-
};
|
|
29
|
-
export type AddAntivirusMetadataInput = {
|
|
30
|
-
databaseVersion: Scalars['String'];
|
|
31
|
-
datetime: Scalars['Long'];
|
|
32
|
-
fileId: Scalars['UUID'];
|
|
33
|
-
result: Scalars['String'];
|
|
34
|
-
software: Scalars['String'];
|
|
35
|
-
softwareVersion: Scalars['String'];
|
|
36
|
-
};
|
|
37
|
-
export type AddConsignmentInput = {
|
|
38
|
-
consignmentType: Scalars['String'];
|
|
39
|
-
seriesid?: InputMaybe<Scalars['UUID']>;
|
|
40
|
-
};
|
|
41
|
-
export type AddFileAndMetadataInput = {
|
|
42
|
-
consignmentId: Scalars['UUID'];
|
|
43
|
-
emptyDirectories?: InputMaybe<Array<Scalars['String']>>;
|
|
44
|
-
metadataInput: Array<ClientSideMetadataInput>;
|
|
45
|
-
};
|
|
46
|
-
export type AddFileMetadataInput = {
|
|
47
|
-
fileId: Scalars['UUID'];
|
|
48
|
-
filePropertyName: Scalars['String'];
|
|
49
|
-
value: Scalars['String'];
|
|
50
|
-
};
|
|
51
|
-
export type AddFinalJudgmentTransferConfirmationInput = {
|
|
52
|
-
consignmentId: Scalars['UUID'];
|
|
53
|
-
legalCustodyTransferConfirmed: Scalars['Boolean'];
|
|
54
|
-
};
|
|
55
|
-
export type AddFinalTransferConfirmationInput = {
|
|
56
|
-
consignmentId: Scalars['UUID'];
|
|
57
|
-
finalOpenRecordsConfirmed: Scalars['Boolean'];
|
|
58
|
-
legalCustodyTransferConfirmed: Scalars['Boolean'];
|
|
59
|
-
};
|
|
60
|
-
export type AddTransferAgreementComplianceInput = {
|
|
61
|
-
appraisalSelectionSignedOff: Scalars['Boolean'];
|
|
62
|
-
consignmentId: Scalars['UUID'];
|
|
63
|
-
initialOpenRecords: Scalars['Boolean'];
|
|
64
|
-
sensitivityReviewSignedOff: Scalars['Boolean'];
|
|
65
|
-
};
|
|
66
|
-
export type AddTransferAgreementPrivateBetaInput = {
|
|
67
|
-
allCrownCopyright: Scalars['Boolean'];
|
|
68
|
-
allEnglish: Scalars['Boolean'];
|
|
69
|
-
allPublicRecords: Scalars['Boolean'];
|
|
70
|
-
consignmentId: Scalars['UUID'];
|
|
71
|
-
};
|
|
72
|
-
export type AntivirusMetadata = {
|
|
73
|
-
__typename?: 'AntivirusMetadata';
|
|
74
|
-
databaseVersion: Scalars['String'];
|
|
75
|
-
datetime: Scalars['Long'];
|
|
76
|
-
fileId: Scalars['UUID'];
|
|
77
|
-
result: Scalars['String'];
|
|
78
|
-
software: Scalars['String'];
|
|
79
|
-
softwareVersion: Scalars['String'];
|
|
80
|
-
};
|
|
81
|
-
export type AntivirusProgress = {
|
|
82
|
-
__typename?: 'AntivirusProgress';
|
|
83
|
-
filesProcessed: Scalars['Int'];
|
|
84
|
-
};
|
|
85
|
-
export type ChecksumProgress = {
|
|
86
|
-
__typename?: 'ChecksumProgress';
|
|
87
|
-
filesProcessed: Scalars['Int'];
|
|
88
|
-
};
|
|
89
|
-
export type ClientFileMetadata = {
|
|
90
|
-
__typename?: 'ClientFileMetadata';
|
|
91
|
-
checksum?: Maybe<Scalars['String']>;
|
|
92
|
-
checksumType?: Maybe<Scalars['String']>;
|
|
93
|
-
fileId: Scalars['UUID'];
|
|
94
|
-
fileSize?: Maybe<Scalars['Long']>;
|
|
95
|
-
lastModified: Scalars['Long'];
|
|
96
|
-
originalPath?: Maybe<Scalars['String']>;
|
|
97
|
-
};
|
|
98
|
-
export type ClientSideMetadataInput = {
|
|
99
|
-
checksum: Scalars['String'];
|
|
100
|
-
fileSize: Scalars['Long'];
|
|
101
|
-
lastModified: Scalars['Long'];
|
|
102
|
-
matchId: Scalars['Long'];
|
|
103
|
-
originalPath: Scalars['String'];
|
|
104
|
-
};
|
|
105
|
-
export type Consignment = {
|
|
106
|
-
__typename?: 'Consignment';
|
|
107
|
-
allChecksSucceeded: Scalars['Boolean'];
|
|
108
|
-
consignmentReference: Scalars['String'];
|
|
109
|
-
consignmentType?: Maybe<Scalars['String']>;
|
|
110
|
-
consignmentid?: Maybe<Scalars['UUID']>;
|
|
111
|
-
createdDatetime?: Maybe<Scalars['ZonedDateTime']>;
|
|
112
|
-
currentStatus: CurrentStatus;
|
|
113
|
-
exportDatetime?: Maybe<Scalars['ZonedDateTime']>;
|
|
114
|
-
fileChecks: FileChecks;
|
|
115
|
-
files: Array<File>;
|
|
116
|
-
parentFolder?: Maybe<Scalars['String']>;
|
|
117
|
-
series?: Maybe<Series>;
|
|
118
|
-
seriesid?: Maybe<Scalars['UUID']>;
|
|
119
|
-
totalFiles: Scalars['Int'];
|
|
120
|
-
transferInitiatedDatetime?: Maybe<Scalars['ZonedDateTime']>;
|
|
121
|
-
transferringBody?: Maybe<TransferringBody>;
|
|
122
|
-
userid: Scalars['UUID'];
|
|
123
|
-
};
|
|
124
|
-
/** A connection to a list of items. */
|
|
125
|
-
export type ConsignmentConnection = {
|
|
126
|
-
__typename?: 'ConsignmentConnection';
|
|
127
|
-
/** A list of edges. */
|
|
128
|
-
edges?: Maybe<Array<Maybe<ConsignmentEdge>>>;
|
|
129
|
-
/** Information to aid in pagination. */
|
|
130
|
-
pageInfo: PageInfo;
|
|
131
|
-
};
|
|
132
|
-
/** An edge in a connection. */
|
|
133
|
-
export type ConsignmentEdge = {
|
|
134
|
-
__typename?: 'ConsignmentEdge';
|
|
135
|
-
/** A cursor for use in pagination. */
|
|
136
|
-
cursor: Scalars['String'];
|
|
137
|
-
/** The item at the end of the edge. */
|
|
138
|
-
node: Consignment;
|
|
139
|
-
};
|
|
140
|
-
export type CurrentStatus = {
|
|
141
|
-
__typename?: 'CurrentStatus';
|
|
142
|
-
confirmTransfer?: Maybe<Scalars['String']>;
|
|
143
|
-
transferAgreement?: Maybe<Scalars['String']>;
|
|
144
|
-
upload?: Maybe<Scalars['String']>;
|
|
145
|
-
};
|
|
146
|
-
export type CustomMetadataField = {
|
|
147
|
-
__typename?: 'CustomMetadataField';
|
|
148
|
-
dataType: DataType;
|
|
149
|
-
defaultValue?: Maybe<Scalars['String']>;
|
|
150
|
-
description?: Maybe<Scalars['String']>;
|
|
151
|
-
editable: Scalars['Boolean'];
|
|
152
|
-
fullName?: Maybe<Scalars['String']>;
|
|
153
|
-
multiValue: Scalars['Boolean'];
|
|
154
|
-
name: Scalars['String'];
|
|
155
|
-
propertyGroup?: Maybe<Scalars['String']>;
|
|
156
|
-
propertyType: PropertyType;
|
|
157
|
-
values: Array<CustomMetadataValues>;
|
|
158
|
-
};
|
|
159
|
-
export type CustomMetadataValues = {
|
|
160
|
-
__typename?: 'CustomMetadataValues';
|
|
161
|
-
dependencies: Array<CustomMetadataField>;
|
|
162
|
-
value: Scalars['String'];
|
|
163
|
-
};
|
|
164
|
-
export enum DataType {
|
|
165
|
-
DateTime = "DateTime",
|
|
166
|
-
Decimal = "Decimal",
|
|
167
|
-
Integer = "Integer",
|
|
168
|
-
Text = "Text"
|
|
169
|
-
}
|
|
170
|
-
export type FfidMetadata = {
|
|
171
|
-
__typename?: 'FFIDMetadata';
|
|
172
|
-
binarySignatureFileVersion: Scalars['String'];
|
|
173
|
-
containerSignatureFileVersion: Scalars['String'];
|
|
174
|
-
datetime: Scalars['Long'];
|
|
175
|
-
fileId: Scalars['UUID'];
|
|
176
|
-
matches: Array<FfidMetadataMatches>;
|
|
177
|
-
method: Scalars['String'];
|
|
178
|
-
software: Scalars['String'];
|
|
179
|
-
softwareVersion: Scalars['String'];
|
|
180
|
-
};
|
|
181
|
-
export type FfidMetadataInput = {
|
|
182
|
-
binarySignatureFileVersion: Scalars['String'];
|
|
183
|
-
containerSignatureFileVersion: Scalars['String'];
|
|
184
|
-
fileId: Scalars['UUID'];
|
|
185
|
-
matches: Array<FfidMetadataInputMatches>;
|
|
186
|
-
method: Scalars['String'];
|
|
187
|
-
software: Scalars['String'];
|
|
188
|
-
softwareVersion: Scalars['String'];
|
|
189
|
-
};
|
|
190
|
-
export type FfidMetadataInputMatches = {
|
|
191
|
-
extension?: InputMaybe<Scalars['String']>;
|
|
192
|
-
identificationBasis: Scalars['String'];
|
|
193
|
-
puid?: InputMaybe<Scalars['String']>;
|
|
194
|
-
};
|
|
195
|
-
export type FfidMetadataMatches = {
|
|
196
|
-
__typename?: 'FFIDMetadataMatches';
|
|
197
|
-
extension?: Maybe<Scalars['String']>;
|
|
198
|
-
identificationBasis: Scalars['String'];
|
|
199
|
-
puid?: Maybe<Scalars['String']>;
|
|
200
|
-
};
|
|
201
|
-
export type FfidProgress = {
|
|
202
|
-
__typename?: 'FFIDProgress';
|
|
203
|
-
filesProcessed: Scalars['Int'];
|
|
204
|
-
};
|
|
205
|
-
export type File = {
|
|
206
|
-
__typename?: 'File';
|
|
207
|
-
antivirusMetadata?: Maybe<AntivirusMetadata>;
|
|
208
|
-
ffidMetadata?: Maybe<FfidMetadata>;
|
|
209
|
-
fileId: Scalars['UUID'];
|
|
210
|
-
fileName?: Maybe<Scalars['String']>;
|
|
211
|
-
fileStatus?: Maybe<Scalars['String']>;
|
|
212
|
-
fileType?: Maybe<Scalars['String']>;
|
|
213
|
-
metadata: FileMetadataValues;
|
|
214
|
-
parentId?: Maybe<Scalars['UUID']>;
|
|
215
|
-
};
|
|
216
|
-
export type FileChecks = {
|
|
217
|
-
__typename?: 'FileChecks';
|
|
218
|
-
antivirusProgress: AntivirusProgress;
|
|
219
|
-
checksumProgress: ChecksumProgress;
|
|
220
|
-
ffidProgress: FfidProgress;
|
|
221
|
-
};
|
|
222
|
-
export type FileMatches = {
|
|
223
|
-
__typename?: 'FileMatches';
|
|
224
|
-
fileId: Scalars['UUID'];
|
|
225
|
-
matchId: Scalars['Long'];
|
|
226
|
-
};
|
|
227
|
-
export type FileMetadata = {
|
|
228
|
-
__typename?: 'FileMetadata';
|
|
229
|
-
fileId: Scalars['UUID'];
|
|
230
|
-
filePropertyName: Scalars['String'];
|
|
231
|
-
value: Scalars['String'];
|
|
232
|
-
};
|
|
233
|
-
export type FileMetadataValues = {
|
|
234
|
-
__typename?: 'FileMetadataValues';
|
|
235
|
-
clientSideFileSize?: Maybe<Scalars['Long']>;
|
|
236
|
-
clientSideLastModifiedDate?: Maybe<Scalars['LocalDateTime']>;
|
|
237
|
-
clientSideOriginalFilePath?: Maybe<Scalars['String']>;
|
|
238
|
-
foiExemptionCode?: Maybe<Scalars['String']>;
|
|
239
|
-
heldBy?: Maybe<Scalars['String']>;
|
|
240
|
-
language?: Maybe<Scalars['String']>;
|
|
241
|
-
legalStatus?: Maybe<Scalars['String']>;
|
|
242
|
-
rightsCopyright?: Maybe<Scalars['String']>;
|
|
243
|
-
sha256ClientSideChecksum?: Maybe<Scalars['String']>;
|
|
244
|
-
};
|
|
245
|
-
export type FinalJudgmentTransferConfirmation = {
|
|
246
|
-
__typename?: 'FinalJudgmentTransferConfirmation';
|
|
247
|
-
consignmentId: Scalars['UUID'];
|
|
248
|
-
legalCustodyTransferConfirmed: Scalars['Boolean'];
|
|
249
|
-
};
|
|
250
|
-
export type FinalTransferConfirmation = {
|
|
251
|
-
__typename?: 'FinalTransferConfirmation';
|
|
252
|
-
consignmentId: Scalars['UUID'];
|
|
253
|
-
finalOpenRecordsConfirmed: Scalars['Boolean'];
|
|
254
|
-
legalCustodyTransferConfirmed: Scalars['Boolean'];
|
|
255
|
-
};
|
|
256
|
-
export type Mutation = {
|
|
257
|
-
__typename?: 'Mutation';
|
|
258
|
-
addAntivirusMetadata: AntivirusMetadata;
|
|
259
|
-
addConsignment: Consignment;
|
|
260
|
-
addFFIDMetadata: FfidMetadata;
|
|
261
|
-
addFileMetadata: FileMetadata;
|
|
262
|
-
addFilesAndMetadata: Array<FileMatches>;
|
|
263
|
-
addFinalJudgmentTransferConfirmation: FinalJudgmentTransferConfirmation;
|
|
264
|
-
addFinalTransferConfirmation: FinalTransferConfirmation;
|
|
265
|
-
addTransferAgreementCompliance: TransferAgreementCompliance;
|
|
266
|
-
addTransferAgreementPrivateBeta: TransferAgreementPrivateBeta;
|
|
267
|
-
markUploadAsCompleted?: Maybe<Scalars['Int']>;
|
|
268
|
-
startUpload: Scalars['String'];
|
|
269
|
-
updateExportData?: Maybe<Scalars['Int']>;
|
|
270
|
-
updateExportLocation?: Maybe<Scalars['Int']>;
|
|
271
|
-
updateTransferInitiated?: Maybe<Scalars['Int']>;
|
|
272
|
-
};
|
|
273
|
-
export type MutationAddAntivirusMetadataArgs = {
|
|
274
|
-
addAntivirusMetadataInput: AddAntivirusMetadataInput;
|
|
275
|
-
};
|
|
276
|
-
export type MutationAddConsignmentArgs = {
|
|
277
|
-
addConsignmentInput: AddConsignmentInput;
|
|
278
|
-
};
|
|
279
|
-
export type MutationAddFfidMetadataArgs = {
|
|
280
|
-
addFFIDMetadataInput: FfidMetadataInput;
|
|
281
|
-
};
|
|
282
|
-
export type MutationAddFileMetadataArgs = {
|
|
283
|
-
addFileMetadataInput: AddFileMetadataInput;
|
|
284
|
-
};
|
|
285
|
-
export type MutationAddFilesAndMetadataArgs = {
|
|
286
|
-
addFilesAndMetadataInput: AddFileAndMetadataInput;
|
|
287
|
-
};
|
|
288
|
-
export type MutationAddFinalJudgmentTransferConfirmationArgs = {
|
|
289
|
-
addFinalJudgmentTransferConfirmationInput: AddFinalJudgmentTransferConfirmationInput;
|
|
290
|
-
};
|
|
291
|
-
export type MutationAddFinalTransferConfirmationArgs = {
|
|
292
|
-
addFinalTransferConfirmationInput: AddFinalTransferConfirmationInput;
|
|
293
|
-
};
|
|
294
|
-
export type MutationAddTransferAgreementComplianceArgs = {
|
|
295
|
-
addTransferAgreementComplianceInput: AddTransferAgreementComplianceInput;
|
|
296
|
-
};
|
|
297
|
-
export type MutationAddTransferAgreementPrivateBetaArgs = {
|
|
298
|
-
addTransferAgreementPrivateBetaInput: AddTransferAgreementPrivateBetaInput;
|
|
299
|
-
};
|
|
300
|
-
export type MutationMarkUploadAsCompletedArgs = {
|
|
301
|
-
consignmentid: Scalars['UUID'];
|
|
302
|
-
};
|
|
303
|
-
export type MutationStartUploadArgs = {
|
|
304
|
-
startUploadInput: StartUploadInput;
|
|
305
|
-
};
|
|
306
|
-
export type MutationUpdateExportDataArgs = {
|
|
307
|
-
exportData: UpdateExportDataInput;
|
|
308
|
-
};
|
|
309
|
-
export type MutationUpdateExportLocationArgs = {
|
|
310
|
-
exportLocation: UpdateExportLocationInput;
|
|
311
|
-
};
|
|
312
|
-
export type MutationUpdateTransferInitiatedArgs = {
|
|
313
|
-
consignmentid: Scalars['UUID'];
|
|
314
|
-
};
|
|
315
|
-
/** Information about pagination in a connection. */
|
|
316
|
-
export type PageInfo = {
|
|
317
|
-
__typename?: 'PageInfo';
|
|
318
|
-
/** When paginating forwards, the cursor to continue. */
|
|
319
|
-
endCursor?: Maybe<Scalars['String']>;
|
|
320
|
-
/** When paginating forwards, are there more items? */
|
|
321
|
-
hasNextPage: Scalars['Boolean'];
|
|
322
|
-
/** When paginating backwards, are there more items? */
|
|
323
|
-
hasPreviousPage: Scalars['Boolean'];
|
|
324
|
-
/** When paginating backwards, the cursor to continue. */
|
|
325
|
-
startCursor?: Maybe<Scalars['String']>;
|
|
326
|
-
};
|
|
327
|
-
export enum PropertyType {
|
|
328
|
-
Defined = "Defined",
|
|
329
|
-
Supplied = "Supplied",
|
|
330
|
-
System = "System"
|
|
331
|
-
}
|
|
332
|
-
export type Query = {
|
|
333
|
-
__typename?: 'Query';
|
|
334
|
-
consignments: ConsignmentConnection;
|
|
335
|
-
getClientFileMetadata: ClientFileMetadata;
|
|
336
|
-
getClosureMetadata: Array<CustomMetadataField>;
|
|
337
|
-
getConsignment?: Maybe<Consignment>;
|
|
338
|
-
getSeries: Array<Series>;
|
|
339
|
-
};
|
|
340
|
-
export type QueryConsignmentsArgs = {
|
|
341
|
-
currentCursor?: InputMaybe<Scalars['String']>;
|
|
342
|
-
limit: Scalars['Int'];
|
|
343
|
-
};
|
|
344
|
-
export type QueryGetClientFileMetadataArgs = {
|
|
345
|
-
fileId: Scalars['UUID'];
|
|
346
|
-
};
|
|
347
|
-
export type QueryGetClosureMetadataArgs = {
|
|
348
|
-
consignmentid: Scalars['UUID'];
|
|
349
|
-
};
|
|
350
|
-
export type QueryGetConsignmentArgs = {
|
|
351
|
-
consignmentid: Scalars['UUID'];
|
|
352
|
-
};
|
|
353
|
-
export type QueryGetSeriesArgs = {
|
|
354
|
-
body: Scalars['String'];
|
|
355
|
-
};
|
|
356
|
-
export type Series = {
|
|
357
|
-
__typename?: 'Series';
|
|
358
|
-
bodyid: Scalars['UUID'];
|
|
359
|
-
code: Scalars['String'];
|
|
360
|
-
description?: Maybe<Scalars['String']>;
|
|
361
|
-
name: Scalars['String'];
|
|
362
|
-
seriesid: Scalars['UUID'];
|
|
363
|
-
};
|
|
364
|
-
export type StartUploadInput = {
|
|
365
|
-
consignmentId: Scalars['UUID'];
|
|
366
|
-
parentFolder: Scalars['String'];
|
|
367
|
-
};
|
|
368
|
-
export type TransferAgreementCompliance = {
|
|
369
|
-
__typename?: 'TransferAgreementCompliance';
|
|
370
|
-
appraisalSelectionSignedOff: Scalars['Boolean'];
|
|
371
|
-
consignmentId: Scalars['UUID'];
|
|
372
|
-
initialOpenRecords: Scalars['Boolean'];
|
|
373
|
-
sensitivityReviewSignedOff: Scalars['Boolean'];
|
|
374
|
-
};
|
|
375
|
-
export type TransferAgreementPrivateBeta = {
|
|
376
|
-
__typename?: 'TransferAgreementPrivateBeta';
|
|
377
|
-
allCrownCopyright: Scalars['Boolean'];
|
|
378
|
-
allEnglish: Scalars['Boolean'];
|
|
379
|
-
allPublicRecords: Scalars['Boolean'];
|
|
380
|
-
consignmentId: Scalars['UUID'];
|
|
381
|
-
};
|
|
382
|
-
export type TransferringBody = {
|
|
383
|
-
__typename?: 'TransferringBody';
|
|
384
|
-
name: Scalars['String'];
|
|
385
|
-
tdrCode: Scalars['String'];
|
|
386
|
-
};
|
|
387
|
-
export type UpdateExportDataInput = {
|
|
388
|
-
consignmentId: Scalars['UUID'];
|
|
389
|
-
exportDatetime?: InputMaybe<Scalars['ZonedDateTime']>;
|
|
390
|
-
exportLocation: Scalars['String'];
|
|
391
|
-
exportVersion: Scalars['String'];
|
|
392
|
-
};
|
|
393
|
-
export type UpdateExportLocationInput = {
|
|
394
|
-
consignmentId: Scalars['UUID'];
|
|
395
|
-
exportDatetime?: InputMaybe<Scalars['ZonedDateTime']>;
|
|
396
|
-
exportLocation: Scalars['String'];
|
|
397
|
-
};
|
|
398
|
-
export type AddAntivirusMetadataMutationVariables = Exact<{
|
|
399
|
-
input: AddAntivirusMetadataInput;
|
|
400
|
-
}>;
|
|
401
|
-
export type AddAntivirusMetadataMutation = {
|
|
402
|
-
__typename?: 'Mutation';
|
|
403
|
-
addAntivirusMetadata: {
|
|
404
|
-
__typename?: 'AntivirusMetadata';
|
|
405
|
-
fileId: any;
|
|
406
|
-
software: string;
|
|
407
|
-
softwareVersion: string;
|
|
408
|
-
databaseVersion: string;
|
|
409
|
-
result: string;
|
|
410
|
-
datetime: number;
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
export type AddConsignmentMutationVariables = Exact<{
|
|
414
|
-
addConsignmentInput: AddConsignmentInput;
|
|
415
|
-
}>;
|
|
416
|
-
export type AddConsignmentMutation = {
|
|
417
|
-
__typename?: 'Mutation';
|
|
418
|
-
addConsignment: {
|
|
419
|
-
__typename?: 'Consignment';
|
|
420
|
-
consignmentid?: any | null;
|
|
421
|
-
seriesid?: any | null;
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
export type AddFfidMetadataMutationVariables = Exact<{
|
|
425
|
-
addFFIDMetadataInput: FfidMetadataInput;
|
|
426
|
-
}>;
|
|
427
|
-
export type AddFfidMetadataMutation = {
|
|
428
|
-
__typename?: 'Mutation';
|
|
429
|
-
addFFIDMetadata: {
|
|
430
|
-
__typename?: 'FFIDMetadata';
|
|
431
|
-
fileId: any;
|
|
432
|
-
};
|
|
433
|
-
};
|
|
434
|
-
export type AddFileMetadataMutationVariables = Exact<{
|
|
435
|
-
addFileMetadataInput: AddFileMetadataInput;
|
|
436
|
-
}>;
|
|
437
|
-
export type AddFileMetadataMutation = {
|
|
438
|
-
__typename?: 'Mutation';
|
|
439
|
-
addFileMetadata: {
|
|
440
|
-
__typename?: 'FileMetadata';
|
|
441
|
-
fileId: any;
|
|
442
|
-
value: string;
|
|
443
|
-
};
|
|
444
|
-
};
|
|
445
|
-
export type AddFilesAndMetadataMutationVariables = Exact<{
|
|
446
|
-
input: AddFileAndMetadataInput;
|
|
447
|
-
}>;
|
|
448
|
-
export type AddFilesAndMetadataMutation = {
|
|
449
|
-
__typename?: 'Mutation';
|
|
450
|
-
addFilesAndMetadata: Array<{
|
|
451
|
-
__typename?: 'FileMatches';
|
|
452
|
-
fileId: any;
|
|
453
|
-
matchId: number;
|
|
454
|
-
}>;
|
|
455
|
-
};
|
|
456
|
-
export type AddFinalJudgmentTransferConfirmationMutationVariables = Exact<{
|
|
457
|
-
input: AddFinalJudgmentTransferConfirmationInput;
|
|
458
|
-
}>;
|
|
459
|
-
export type AddFinalJudgmentTransferConfirmationMutation = {
|
|
460
|
-
__typename?: 'Mutation';
|
|
461
|
-
addFinalJudgmentTransferConfirmation: {
|
|
462
|
-
__typename?: 'FinalJudgmentTransferConfirmation';
|
|
463
|
-
consignmentId: any;
|
|
464
|
-
legalCustodyTransferConfirmed: boolean;
|
|
465
|
-
};
|
|
466
|
-
};
|
|
467
|
-
export type AddFinalTransferConfirmationMutationVariables = Exact<{
|
|
468
|
-
input: AddFinalTransferConfirmationInput;
|
|
469
|
-
}>;
|
|
470
|
-
export type AddFinalTransferConfirmationMutation = {
|
|
471
|
-
__typename?: 'Mutation';
|
|
472
|
-
addFinalTransferConfirmation: {
|
|
473
|
-
__typename?: 'FinalTransferConfirmation';
|
|
474
|
-
consignmentId: any;
|
|
475
|
-
finalOpenRecordsConfirmed: boolean;
|
|
476
|
-
legalCustodyTransferConfirmed: boolean;
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
|
-
export type AddTransferAgreementComplianceMutationVariables = Exact<{
|
|
480
|
-
input: AddTransferAgreementComplianceInput;
|
|
481
|
-
}>;
|
|
482
|
-
export type AddTransferAgreementComplianceMutation = {
|
|
483
|
-
__typename?: 'Mutation';
|
|
484
|
-
addTransferAgreementCompliance: {
|
|
485
|
-
__typename?: 'TransferAgreementCompliance';
|
|
486
|
-
consignmentId: any;
|
|
487
|
-
appraisalSelectionSignedOff: boolean;
|
|
488
|
-
sensitivityReviewSignedOff: boolean;
|
|
489
|
-
initialOpenRecords: boolean;
|
|
490
|
-
};
|
|
491
|
-
};
|
|
492
|
-
export type AddTransferAgreementPrivateBetaMutationVariables = Exact<{
|
|
493
|
-
input: AddTransferAgreementPrivateBetaInput;
|
|
494
|
-
}>;
|
|
495
|
-
export type AddTransferAgreementPrivateBetaMutation = {
|
|
496
|
-
__typename?: 'Mutation';
|
|
497
|
-
addTransferAgreementPrivateBeta: {
|
|
498
|
-
__typename?: 'TransferAgreementPrivateBeta';
|
|
499
|
-
consignmentId: any;
|
|
500
|
-
allPublicRecords: boolean;
|
|
501
|
-
allCrownCopyright: boolean;
|
|
502
|
-
allEnglish: boolean;
|
|
503
|
-
};
|
|
504
|
-
};
|
|
505
|
-
export type GetClosureMetadataQueryVariables = Exact<{
|
|
506
|
-
consignmentId: Scalars['UUID'];
|
|
507
|
-
}>;
|
|
508
|
-
export type GetClosureMetadataQuery = {
|
|
509
|
-
__typename?: 'Query';
|
|
510
|
-
getClosureMetadata: Array<{
|
|
511
|
-
__typename?: 'CustomMetadataField';
|
|
512
|
-
name: string;
|
|
513
|
-
description?: string | null;
|
|
514
|
-
fullName?: string | null;
|
|
515
|
-
propertyType: PropertyType;
|
|
516
|
-
propertyGroup?: string | null;
|
|
517
|
-
dataType: DataType;
|
|
518
|
-
editable: boolean;
|
|
519
|
-
multiValue: boolean;
|
|
520
|
-
defaultValue?: string | null;
|
|
521
|
-
values: Array<{
|
|
522
|
-
__typename?: 'CustomMetadataValues';
|
|
523
|
-
value: string;
|
|
524
|
-
dependencies: Array<{
|
|
525
|
-
__typename?: 'CustomMetadataField';
|
|
526
|
-
name: string;
|
|
527
|
-
description?: string | null;
|
|
528
|
-
fullName?: string | null;
|
|
529
|
-
propertyType: PropertyType;
|
|
530
|
-
propertyGroup?: string | null;
|
|
531
|
-
dataType: DataType;
|
|
532
|
-
editable: boolean;
|
|
533
|
-
multiValue: boolean;
|
|
534
|
-
defaultValue?: string | null;
|
|
535
|
-
}>;
|
|
536
|
-
}>;
|
|
537
|
-
}>;
|
|
538
|
-
};
|
|
539
|
-
export type GetConsignmentQueryVariables = Exact<{
|
|
540
|
-
consignmentId: Scalars['UUID'];
|
|
541
|
-
}>;
|
|
542
|
-
export type GetConsignmentQuery = {
|
|
543
|
-
__typename?: 'Query';
|
|
544
|
-
getConsignment?: {
|
|
545
|
-
__typename?: 'Consignment';
|
|
546
|
-
userid: any;
|
|
547
|
-
seriesid?: any | null;
|
|
548
|
-
} | null;
|
|
549
|
-
};
|
|
550
|
-
export type GetConsignmentForExportQueryVariables = Exact<{
|
|
551
|
-
consignmentId: Scalars['UUID'];
|
|
552
|
-
}>;
|
|
553
|
-
export type GetConsignmentForExportQuery = {
|
|
554
|
-
__typename?: 'Query';
|
|
555
|
-
getConsignment?: {
|
|
556
|
-
__typename?: 'Consignment';
|
|
557
|
-
userid: any;
|
|
558
|
-
createdDatetime?: any | null;
|
|
559
|
-
transferInitiatedDatetime?: any | null;
|
|
560
|
-
exportDatetime?: any | null;
|
|
561
|
-
consignmentReference: string;
|
|
562
|
-
consignmentType?: string | null;
|
|
563
|
-
series?: {
|
|
564
|
-
__typename?: 'Series';
|
|
565
|
-
code: string;
|
|
566
|
-
} | null;
|
|
567
|
-
transferringBody?: {
|
|
568
|
-
__typename?: 'TransferringBody';
|
|
569
|
-
name: string;
|
|
570
|
-
} | null;
|
|
571
|
-
files: Array<{
|
|
572
|
-
__typename?: 'File';
|
|
573
|
-
fileId: any;
|
|
574
|
-
fileType?: string | null;
|
|
575
|
-
fileName?: string | null;
|
|
576
|
-
metadata: {
|
|
577
|
-
__typename?: 'FileMetadataValues';
|
|
578
|
-
clientSideFileSize?: number | null;
|
|
579
|
-
clientSideLastModifiedDate?: any | null;
|
|
580
|
-
clientSideOriginalFilePath?: string | null;
|
|
581
|
-
foiExemptionCode?: string | null;
|
|
582
|
-
heldBy?: string | null;
|
|
583
|
-
language?: string | null;
|
|
584
|
-
legalStatus?: string | null;
|
|
585
|
-
rightsCopyright?: string | null;
|
|
586
|
-
sha256ClientSideChecksum?: string | null;
|
|
587
|
-
};
|
|
588
|
-
ffidMetadata?: {
|
|
589
|
-
__typename?: 'FFIDMetadata';
|
|
590
|
-
software: string;
|
|
591
|
-
softwareVersion: string;
|
|
592
|
-
binarySignatureFileVersion: string;
|
|
593
|
-
containerSignatureFileVersion: string;
|
|
594
|
-
method: string;
|
|
595
|
-
matches: Array<{
|
|
596
|
-
__typename?: 'FFIDMetadataMatches';
|
|
597
|
-
extension?: string | null;
|
|
598
|
-
identificationBasis: string;
|
|
599
|
-
puid?: string | null;
|
|
600
|
-
}>;
|
|
601
|
-
} | null;
|
|
602
|
-
antivirusMetadata?: {
|
|
603
|
-
__typename?: 'AntivirusMetadata';
|
|
604
|
-
software: string;
|
|
605
|
-
softwareVersion: string;
|
|
606
|
-
} | null;
|
|
607
|
-
}>;
|
|
608
|
-
} | null;
|
|
609
|
-
};
|
|
610
|
-
export type GetConsignmentFilesQueryVariables = Exact<{
|
|
611
|
-
consignmentId: Scalars['UUID'];
|
|
612
|
-
}>;
|
|
613
|
-
export type GetConsignmentFilesQuery = {
|
|
614
|
-
__typename?: 'Query';
|
|
615
|
-
getConsignment?: {
|
|
616
|
-
__typename?: 'Consignment';
|
|
617
|
-
files: Array<{
|
|
618
|
-
__typename?: 'File';
|
|
619
|
-
metadata: {
|
|
620
|
-
__typename?: 'FileMetadataValues';
|
|
621
|
-
clientSideOriginalFilePath?: string | null;
|
|
622
|
-
};
|
|
623
|
-
}>;
|
|
624
|
-
} | null;
|
|
625
|
-
};
|
|
626
|
-
export type GetConsignmentFolderDetailsQueryVariables = Exact<{
|
|
627
|
-
consignmentId: Scalars['UUID'];
|
|
628
|
-
}>;
|
|
629
|
-
export type GetConsignmentFolderDetailsQuery = {
|
|
630
|
-
__typename?: 'Query';
|
|
631
|
-
getConsignment?: {
|
|
632
|
-
__typename?: 'Consignment';
|
|
633
|
-
totalFiles: number;
|
|
634
|
-
parentFolder?: string | null;
|
|
635
|
-
} | null;
|
|
636
|
-
};
|
|
637
|
-
export type GetConsignmentReferenceQueryVariables = Exact<{
|
|
638
|
-
consignmentId: Scalars['UUID'];
|
|
639
|
-
}>;
|
|
640
|
-
export type GetConsignmentReferenceQuery = {
|
|
641
|
-
__typename?: 'Query';
|
|
642
|
-
getConsignment?: {
|
|
643
|
-
__typename?: 'Consignment';
|
|
644
|
-
consignmentReference: string;
|
|
645
|
-
} | null;
|
|
646
|
-
};
|
|
647
|
-
export type GetConsignmentStatusQueryVariables = Exact<{
|
|
648
|
-
consignmentId: Scalars['UUID'];
|
|
649
|
-
}>;
|
|
650
|
-
export type GetConsignmentStatusQuery = {
|
|
651
|
-
__typename?: 'Query';
|
|
652
|
-
getConsignment?: {
|
|
653
|
-
__typename?: 'Consignment';
|
|
654
|
-
currentStatus: {
|
|
655
|
-
__typename?: 'CurrentStatus';
|
|
656
|
-
transferAgreement?: string | null;
|
|
657
|
-
upload?: string | null;
|
|
658
|
-
confirmTransfer?: string | null;
|
|
659
|
-
};
|
|
660
|
-
} | null;
|
|
661
|
-
};
|
|
662
|
-
export type GetConsignmentSummaryQueryVariables = Exact<{
|
|
663
|
-
consignmentId: Scalars['UUID'];
|
|
664
|
-
}>;
|
|
665
|
-
export type GetConsignmentSummaryQuery = {
|
|
666
|
-
__typename?: 'Query';
|
|
667
|
-
getConsignment?: {
|
|
668
|
-
__typename?: 'Consignment';
|
|
669
|
-
totalFiles: number;
|
|
670
|
-
consignmentReference: string;
|
|
671
|
-
series?: {
|
|
672
|
-
__typename?: 'Series';
|
|
673
|
-
code: string;
|
|
674
|
-
} | null;
|
|
675
|
-
transferringBody?: {
|
|
676
|
-
__typename?: 'TransferringBody';
|
|
677
|
-
name: string;
|
|
678
|
-
} | null;
|
|
679
|
-
} | null;
|
|
680
|
-
};
|
|
681
|
-
export type GetConsignmentTypeQueryVariables = Exact<{
|
|
682
|
-
consignmentId: Scalars['UUID'];
|
|
683
|
-
}>;
|
|
684
|
-
export type GetConsignmentTypeQuery = {
|
|
685
|
-
__typename?: 'Query';
|
|
686
|
-
getConsignment?: {
|
|
687
|
-
__typename?: 'Consignment';
|
|
688
|
-
consignmentType?: string | null;
|
|
689
|
-
} | null;
|
|
690
|
-
};
|
|
691
|
-
export type GetFileCheckProgressQueryVariables = Exact<{
|
|
692
|
-
consignmentId: Scalars['UUID'];
|
|
693
|
-
}>;
|
|
694
|
-
export type GetFileCheckProgressQuery = {
|
|
695
|
-
__typename?: 'Query';
|
|
696
|
-
getConsignment?: {
|
|
697
|
-
__typename?: 'Consignment';
|
|
698
|
-
allChecksSucceeded: boolean;
|
|
699
|
-
parentFolder?: string | null;
|
|
700
|
-
totalFiles: number;
|
|
701
|
-
files: Array<{
|
|
702
|
-
__typename?: 'File';
|
|
703
|
-
fileStatus?: string | null;
|
|
704
|
-
}>;
|
|
705
|
-
fileChecks: {
|
|
706
|
-
__typename?: 'FileChecks';
|
|
707
|
-
antivirusProgress: {
|
|
708
|
-
__typename?: 'AntivirusProgress';
|
|
709
|
-
filesProcessed: number;
|
|
710
|
-
};
|
|
711
|
-
checksumProgress: {
|
|
712
|
-
__typename?: 'ChecksumProgress';
|
|
713
|
-
filesProcessed: number;
|
|
714
|
-
};
|
|
715
|
-
ffidProgress: {
|
|
716
|
-
__typename?: 'FFIDProgress';
|
|
717
|
-
filesProcessed: number;
|
|
718
|
-
};
|
|
719
|
-
};
|
|
720
|
-
} | null;
|
|
721
|
-
};
|
|
722
|
-
export type GetFileCheckProgressSummaryQueryVariables = Exact<{
|
|
723
|
-
consignmentId: Scalars['UUID'];
|
|
724
|
-
}>;
|
|
725
|
-
export type GetFileCheckProgressSummaryQuery = {
|
|
726
|
-
__typename?: 'Query';
|
|
727
|
-
getConsignment?: {
|
|
728
|
-
__typename?: 'Consignment';
|
|
729
|
-
totalFiles: number;
|
|
730
|
-
fileChecks: {
|
|
731
|
-
__typename?: 'FileChecks';
|
|
732
|
-
antivirusProgress: {
|
|
733
|
-
__typename?: 'AntivirusProgress';
|
|
734
|
-
filesProcessed: number;
|
|
735
|
-
};
|
|
736
|
-
checksumProgress: {
|
|
737
|
-
__typename?: 'ChecksumProgress';
|
|
738
|
-
filesProcessed: number;
|
|
739
|
-
};
|
|
740
|
-
ffidProgress: {
|
|
741
|
-
__typename?: 'FFIDProgress';
|
|
742
|
-
filesProcessed: number;
|
|
743
|
-
};
|
|
744
|
-
};
|
|
745
|
-
} | null;
|
|
746
|
-
};
|
|
747
|
-
export type GetOriginalPathQueryVariables = Exact<{
|
|
748
|
-
fileId: Scalars['UUID'];
|
|
749
|
-
}>;
|
|
750
|
-
export type GetOriginalPathQuery = {
|
|
751
|
-
__typename?: 'Query';
|
|
752
|
-
getClientFileMetadata: {
|
|
753
|
-
__typename?: 'ClientFileMetadata';
|
|
754
|
-
originalPath?: string | null;
|
|
755
|
-
};
|
|
756
|
-
};
|
|
757
|
-
export type GetSeriesQueryVariables = Exact<{
|
|
758
|
-
body: Scalars['String'];
|
|
759
|
-
}>;
|
|
760
|
-
export type GetSeriesQuery = {
|
|
761
|
-
__typename?: 'Query';
|
|
762
|
-
getSeries: Array<{
|
|
763
|
-
__typename?: 'Series';
|
|
764
|
-
seriesid: any;
|
|
765
|
-
bodyid: any;
|
|
766
|
-
name: string;
|
|
767
|
-
code: string;
|
|
768
|
-
description?: string | null;
|
|
769
|
-
}>;
|
|
770
|
-
};
|
|
771
|
-
export type MarkUploadAsCompletedMutationVariables = Exact<{
|
|
772
|
-
consignmentId: Scalars['UUID'];
|
|
773
|
-
}>;
|
|
774
|
-
export type MarkUploadAsCompletedMutation = {
|
|
775
|
-
__typename?: 'Mutation';
|
|
776
|
-
markUploadAsCompleted?: number | null;
|
|
777
|
-
};
|
|
778
|
-
export type StartUploadMutationVariables = Exact<{
|
|
779
|
-
input: StartUploadInput;
|
|
780
|
-
}>;
|
|
781
|
-
export type StartUploadMutation = {
|
|
782
|
-
__typename?: 'Mutation';
|
|
783
|
-
startUpload: string;
|
|
784
|
-
};
|
|
785
|
-
export type UpdateExportDataMutationVariables = Exact<{
|
|
786
|
-
updateExportDataInput: UpdateExportDataInput;
|
|
787
|
-
}>;
|
|
788
|
-
export type UpdateExportDataMutation = {
|
|
789
|
-
__typename?: 'Mutation';
|
|
790
|
-
updateExportData?: number | null;
|
|
791
|
-
};
|
|
792
|
-
export type UpdateExportLocationMutationVariables = Exact<{
|
|
793
|
-
updateExportLocationInput: UpdateExportLocationInput;
|
|
794
|
-
}>;
|
|
795
|
-
export type UpdateExportLocationMutation = {
|
|
796
|
-
__typename?: 'Mutation';
|
|
797
|
-
updateExportLocation?: number | null;
|
|
798
|
-
};
|
|
799
|
-
export type UpdateTransferInitiatedMutationVariables = Exact<{
|
|
800
|
-
consignmentId: Scalars['UUID'];
|
|
801
|
-
}>;
|
|
802
|
-
export type UpdateTransferInitiatedMutation = {
|
|
803
|
-
__typename?: 'Mutation';
|
|
804
|
-
updateTransferInitiated?: number | null;
|
|
805
|
-
};
|
|
806
|
-
export const AddAntivirusMetadata: import("graphql/language/ast").DocumentNode;
|
|
807
|
-
export const AddConsignment: import("graphql/language/ast").DocumentNode;
|
|
808
|
-
export const AddFfidMetadata: import("graphql/language/ast").DocumentNode;
|
|
809
|
-
export const AddFileMetadata: import("graphql/language/ast").DocumentNode;
|
|
810
|
-
export const AddFilesAndMetadata: import("graphql/language/ast").DocumentNode;
|
|
811
|
-
export const AddFinalJudgmentTransferConfirmation: import("graphql/language/ast").DocumentNode;
|
|
812
|
-
export const AddFinalTransferConfirmation: import("graphql/language/ast").DocumentNode;
|
|
813
|
-
export const AddTransferAgreementCompliance: import("graphql/language/ast").DocumentNode;
|
|
814
|
-
export const AddTransferAgreementPrivateBeta: import("graphql/language/ast").DocumentNode;
|
|
815
|
-
export const GetClosureMetadata: import("graphql/language/ast").DocumentNode;
|
|
816
|
-
export const GetConsignment: import("graphql/language/ast").DocumentNode;
|
|
817
|
-
export const GetConsignmentForExport: import("graphql/language/ast").DocumentNode;
|
|
818
|
-
export const GetConsignmentFiles: import("graphql/language/ast").DocumentNode;
|
|
819
|
-
export const GetConsignmentFolderDetails: import("graphql/language/ast").DocumentNode;
|
|
820
|
-
export const GetConsignmentReference: import("graphql/language/ast").DocumentNode;
|
|
821
|
-
export const GetConsignmentStatus: import("graphql/language/ast").DocumentNode;
|
|
822
|
-
export const GetConsignmentSummary: import("graphql/language/ast").DocumentNode;
|
|
823
|
-
export const GetConsignmentType: import("graphql/language/ast").DocumentNode;
|
|
824
|
-
export const GetFileCheckProgress: import("graphql/language/ast").DocumentNode;
|
|
825
|
-
export const GetFileCheckProgressSummary: import("graphql/language/ast").DocumentNode;
|
|
826
|
-
export const GetOriginalPath: import("graphql/language/ast").DocumentNode;
|
|
827
|
-
export const GetSeries: import("graphql/language/ast").DocumentNode;
|
|
828
|
-
export const MarkUploadAsCompleted: import("graphql/language/ast").DocumentNode;
|
|
829
|
-
export const StartUpload: import("graphql/language/ast").DocumentNode;
|
|
830
|
-
export const UpdateExportData: import("graphql/language/ast").DocumentNode;
|
|
831
|
-
export const UpdateExportLocation: import("graphql/language/ast").DocumentNode;
|
|
832
|
-
export const UpdateTransferInitiated: import("graphql/language/ast").DocumentNode;
|
|
833
|
-
|