@jackchuka/gql-ingest 4.2.0 → 4.2.1
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/dist/cli/index.js +1 -1
- package/package.json +4 -4
package/dist/cli/index.js
CHANGED
|
@@ -181,7 +181,7 @@ ${t.join(`
|
|
|
181
181
|
`+t+")"}function Eb(e){let t=(0,Wq.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,ol.print)(t)}`),n+Sb(e.deprecationReason)}function lV(e){return Kt(e)+"directive @"+e.name+iI(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Sb(e){return e==null?"":e!==xb.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,ol.print)({kind:$b.Kind.STRING,value:e})})`:" @deprecated"}function pV(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,ol.print)({kind:$b.Kind.STRING,value:e.specifiedByURL})})`}function Kt(e,t="",n=!0){let{description:i}=e;if(i==null)return"";let r=(0,ol.print)({kind:$b.Kind.STRING,value:i,block:(0,Hq.isPrintableAsBlockString)(i)});return(t&&!n?`
|
|
182
182
|
`+t:t)+r.replace(/\n/g,`
|
|
183
183
|
`+t)+`
|
|
184
|
-
`}});var aI=T(Ib=>{"use strict";Object.defineProperty(Ib,"__esModule",{value:!0});Ib.concatAST=fV;var dV=ue();function fV(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:dV.Kind.DOCUMENT,definitions:t}}});var cI=T(Nb=>{"use strict";Object.defineProperty(Nb,"__esModule",{value:!0});Nb.separateOperations=hV;var al=ue(),mV=kn();function hV(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case al.Kind.OPERATION_DEFINITION:t.push(r);break;case al.Kind.FRAGMENT_DEFINITION:n[r.name.value]=sI(r.selectionSet);break;default:}let i=Object.create(null);for(let r of t){let o=new Set;for(let s of sI(r.selectionSet))uI(o,n,s);let a=r.name?r.name.value:"";i[a]={kind:al.Kind.DOCUMENT,definitions:e.definitions.filter(s=>s===r||s.kind===al.Kind.FRAGMENT_DEFINITION&&o.has(s.name.value))}}return i}function uI(e,t,n){if(!e.has(n)){e.add(n);let i=t[n];if(i!==void 0)for(let r of i)uI(e,t,r)}}function sI(e){let t=[];return(0,mV.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var dI=T(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});wb.stripIgnoredCharacters=vV;var gV=Zo(),lI=Ho(),pI=Wu(),kb=Ri();function vV(e){let t=(0,pI.isSource)(e)?e:new pI.Source(e),n=t.body,i=new lI.Lexer(t),r="",o=!1;for(;i.advance().kind!==kb.TokenKind.EOF;){let a=i.token,s=a.kind,u=!(0,lI.isPunctuatorTokenKind)(a.kind);o&&(u||a.kind===kb.TokenKind.SPREAD)&&(r+=" ");let c=n.slice(a.start,a.end);s===kb.TokenKind.BLOCK_STRING?r+=(0,gV.printBlockString)(a.value,{minimize:!0}):r+=c,o=u}return r}});var mI=T(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.assertValidName=TV;sl.isValidNameError=fI;var yV=ht(),bV=Z(),_V=ra();function TV(e){let t=fI(e);if(t)throw t;return e}function fI(e){if(typeof e=="string"||(0,yV.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new bV.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,_V.assertName)(e)}catch(t){return t}}});var EI=T(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.DangerousChangeType=_r.BreakingChangeType=void 0;_r.findBreakingChanges=IV;_r.findDangerousChanges=NV;var EV=_e(),_I=ot(),hI=rn(),$V=kt(),ge=ce(),xV=gr(),OV=ma(),SV=Dv(),Me;_r.BreakingChangeType=Me;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Me||(_r.BreakingChangeType=Me={}));var nr;_r.DangerousChangeType=nr;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(nr||(_r.DangerousChangeType=nr={}));function IV(e,t){return TI(e,t).filter(n=>n.type in Me)}function NV(e,t){return TI(e,t).filter(n=>n.type in nr)}function TI(e,t){return[...wV(e,t),...kV(e,t)]}function kV(e,t){let n=[],i=jr(e.getDirectives(),t.getDirectives());for(let r of i.removed)n.push({type:Me.DIRECTIVE_REMOVED,description:`${r.name} was removed.`});for(let[r,o]of i.persisted){let a=jr(r.args,o.args);for(let s of a.added)(0,ge.isRequiredArgument)(s)&&n.push({type:Me.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${s.name} on directive ${r.name} was added.`});for(let s of a.removed)n.push({type:Me.DIRECTIVE_ARG_REMOVED,description:`${s.name} was removed from ${r.name}.`});r.isRepeatable&&!o.isRepeatable&&n.push({type:Me.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${r.name}.`});for(let s of r.locations)o.locations.includes(s)||n.push({type:Me.DIRECTIVE_LOCATION_REMOVED,description:`${s} was removed from ${r.name}.`})}return n}function wV(e,t){let n=[],i=jr(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let r of i.removed)n.push({type:Me.TYPE_REMOVED,description:(0,xV.isSpecifiedScalarType)(r)?`Standard scalar ${r.name} was removed because it is not referenced anymore.`:`${r.name} was removed.`});for(let[r,o]of i.persisted)(0,ge.isEnumType)(r)&&(0,ge.isEnumType)(o)?n.push(...PV(r,o)):(0,ge.isUnionType)(r)&&(0,ge.isUnionType)(o)?n.push(...AV(r,o)):(0,ge.isInputObjectType)(r)&&(0,ge.isInputObjectType)(o)?n.push(...DV(r,o)):(0,ge.isObjectType)(r)&&(0,ge.isObjectType)(o)?n.push(...vI(r,o),...gI(r,o)):(0,ge.isInterfaceType)(r)&&(0,ge.isInterfaceType)(o)?n.push(...vI(r,o),...gI(r,o)):r.constructor!==o.constructor&&n.push({type:Me.TYPE_CHANGED_KIND,description:`${r.name} changed from ${yI(r)} to ${yI(o)}.`});return n}function DV(e,t){let n=[],i=jr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.added)(0,ge.isRequiredInputField)(r)?n.push({type:Me.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${r.name} on input type ${e.name} was added.`}):n.push({type:nr.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${r.name} on input type ${e.name} was added.`});for(let r of i.removed)n.push({type:Me.FIELD_REMOVED,description:`${e.name}.${r.name} was removed.`});for(let[r,o]of i.persisted)Ua(r.type,o.type)||n.push({type:Me.FIELD_CHANGED_KIND,description:`${e.name}.${r.name} changed type from ${String(r.type)} to ${String(o.type)}.`});return n}function AV(e,t){let n=[],i=jr(e.getTypes(),t.getTypes());for(let r of i.added)n.push({type:nr.TYPE_ADDED_TO_UNION,description:`${r.name} was added to union type ${e.name}.`});for(let r of i.removed)n.push({type:Me.TYPE_REMOVED_FROM_UNION,description:`${r.name} was removed from union type ${e.name}.`});return n}function PV(e,t){let n=[],i=jr(e.getValues(),t.getValues());for(let r of i.added)n.push({type:nr.VALUE_ADDED_TO_ENUM,description:`${r.name} was added to enum type ${e.name}.`});for(let r of i.removed)n.push({type:Me.VALUE_REMOVED_FROM_ENUM,description:`${r.name} was removed from enum type ${e.name}.`});return n}function gI(e,t){let n=[],i=jr(e.getInterfaces(),t.getInterfaces());for(let r of i.added)n.push({type:nr.IMPLEMENTED_INTERFACE_ADDED,description:`${r.name} added to interfaces implemented by ${e.name}.`});for(let r of i.removed)n.push({type:Me.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${r.name}.`});return n}function vI(e,t){let n=[],i=jr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.removed)n.push({type:Me.FIELD_REMOVED,description:`${e.name}.${r.name} was removed.`});for(let[r,o]of i.persisted)n.push(...LV(e,r,o)),Fa(r.type,o.type)||n.push({type:Me.FIELD_CHANGED_KIND,description:`${e.name}.${r.name} changed type from ${String(r.type)} to ${String(o.type)}.`});return n}function LV(e,t,n){let i=[],r=jr(t.args,n.args);for(let o of r.removed)i.push({type:Me.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(let[o,a]of r.persisted)if(!Ua(o.type,a.type))i.push({type:Me.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(a.type)}.`});else if(o.defaultValue!==void 0)if(a.defaultValue===void 0)i.push({type:nr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{let u=bI(o.defaultValue,o.type),c=bI(a.defaultValue,a.type);u!==c&&i.push({type:nr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${u} to ${c}.`})}for(let o of r.added)(0,ge.isRequiredArgument)(o)?i.push({type:Me.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):i.push({type:nr.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return i}function Fa(e,t){return(0,ge.isListType)(e)?(0,ge.isListType)(t)&&Fa(e.ofType,t.ofType)||(0,ge.isNonNullType)(t)&&Fa(e,t.ofType):(0,ge.isNonNullType)(e)?(0,ge.isNonNullType)(t)&&Fa(e.ofType,t.ofType):(0,ge.isNamedType)(t)&&e.name===t.name||(0,ge.isNonNullType)(t)&&Fa(e,t.ofType)}function Ua(e,t){return(0,ge.isListType)(e)?(0,ge.isListType)(t)&&Ua(e.ofType,t.ofType):(0,ge.isNonNullType)(e)?(0,ge.isNonNullType)(t)&&Ua(e.ofType,t.ofType)||!(0,ge.isNonNullType)(t)&&Ua(e.ofType,t):(0,ge.isNamedType)(t)&&e.name===t.name}function yI(e){if((0,ge.isScalarType)(e))return"a Scalar type";if((0,ge.isObjectType)(e))return"an Object type";if((0,ge.isInterfaceType)(e))return"an Interface type";if((0,ge.isUnionType)(e))return"a Union type";if((0,ge.isEnumType)(e))return"an Enum type";if((0,ge.isInputObjectType)(e))return"an Input type";(0,_I.invariant)(!1,"Unexpected type: "+(0,EV.inspect)(e))}function bI(e,t){let n=(0,OV.astFromValue)(e,t);return n!=null||(0,_I.invariant)(!1),(0,$V.print)((0,SV.sortValueNode)(n))}function jr(e,t){let n=[],i=[],r=[],o=(0,hI.keyMap)(e,({name:s})=>s),a=(0,hI.keyMap)(t,({name:s})=>s);for(let s of e){let u=a[s.name];u===void 0?i.push(s):r.push([s,u])}for(let s of t)o[s.name]===void 0&&n.push(s);return{added:n,persisted:r,removed:i}}});var xI=T(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.resolveASTSchemaCoordinate=$I;ul.resolveSchemaCoordinate=jV;var Vn=_e(),za=ue(),RV=Nn(),pn=ce();function jV(e,t){return $I(e,(0,RV.parseSchemaCoordinate)(t))}function CV(e,t){let n=t.name.value,i=e.getType(n);if(i!=null)return{kind:"NamedType",type:i}}function FV(e,t){let n=t.name.value,i=e.getType(n);if(!i)throw new Error(`Expected ${(0,Vn.inspect)(n)} to be defined as a type in the schema.`);if(!(0,pn.isEnumType)(i)&&!(0,pn.isInputObjectType)(i)&&!(0,pn.isObjectType)(i)&&!(0,pn.isInterfaceType)(i))throw new Error(`Expected ${(0,Vn.inspect)(n)} to be an Enum, Input Object, Object or Interface type.`);if((0,pn.isEnumType)(i)){let a=t.memberName.value,s=i.getValue(a);return s==null?void 0:{kind:"EnumValue",type:i,enumValue:s}}if((0,pn.isInputObjectType)(i)){let a=t.memberName.value,s=i.getFields()[a];return s==null?void 0:{kind:"InputField",type:i,inputField:s}}let r=t.memberName.value,o=i.getFields()[r];if(o!=null)return{kind:"Field",type:i,field:o}}function UV(e,t){let n=t.name.value,i=e.getType(n);if(i==null)throw new Error(`Expected ${(0,Vn.inspect)(n)} to be defined as a type in the schema.`);if(!(0,pn.isObjectType)(i)&&!(0,pn.isInterfaceType)(i))throw new Error(`Expected ${(0,Vn.inspect)(n)} to be an object type or interface type.`);let r=t.fieldName.value,o=i.getFields()[r];if(o==null)throw new Error(`Expected ${(0,Vn.inspect)(r)} to exist as a field of type ${(0,Vn.inspect)(n)} in the schema.`);let a=t.argumentName.value,s=o.args.find(u=>u.name===a);if(s!=null)return{kind:"FieldArgument",type:i,field:o,fieldArgument:s}}function zV(e,t){let n=t.name.value,i=e.getDirective(n);if(i)return{kind:"Directive",directive:i}}function MV(e,t){let n=t.name.value,i=e.getDirective(n);if(!i)throw new Error(`Expected ${(0,Vn.inspect)(n)} to be defined as a directive in the schema.`);let{argumentName:{value:r}}=t,o=i.args.find(a=>a.name===r);if(o)return{kind:"DirectiveArgument",directive:i,directiveArgument:o}}function $I(e,t){switch(t.kind){case za.Kind.TYPE_COORDINATE:return CV(e,t);case za.Kind.MEMBER_COORDINATE:return FV(e,t);case za.Kind.ARGUMENT_COORDINATE:return UV(e,t);case za.Kind.DIRECTIVE_COORDINATE:return zV(e,t);case za.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return MV(e,t)}}});var kI=T(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});Object.defineProperty(pe,"BreakingChangeType",{enumerable:!0,get:function(){return cl.BreakingChangeType}});Object.defineProperty(pe,"DangerousChangeType",{enumerable:!0,get:function(){return cl.DangerousChangeType}});Object.defineProperty(pe,"TypeInfo",{enumerable:!0,get:function(){return SI.TypeInfo}});Object.defineProperty(pe,"assertValidName",{enumerable:!0,get:function(){return II.assertValidName}});Object.defineProperty(pe,"astFromValue",{enumerable:!0,get:function(){return WV.astFromValue}});Object.defineProperty(pe,"buildASTSchema",{enumerable:!0,get:function(){return OI.buildASTSchema}});Object.defineProperty(pe,"buildClientSchema",{enumerable:!0,get:function(){return QV.buildClientSchema}});Object.defineProperty(pe,"buildSchema",{enumerable:!0,get:function(){return OI.buildSchema}});Object.defineProperty(pe,"coerceInputValue",{enumerable:!0,get:function(){return XV.coerceInputValue}});Object.defineProperty(pe,"concatAST",{enumerable:!0,get:function(){return e4.concatAST}});Object.defineProperty(pe,"doTypesOverlap",{enumerable:!0,get:function(){return Ab.doTypesOverlap}});Object.defineProperty(pe,"extendSchema",{enumerable:!0,get:function(){return ZV.extendSchema}});Object.defineProperty(pe,"findBreakingChanges",{enumerable:!0,get:function(){return cl.findBreakingChanges}});Object.defineProperty(pe,"findDangerousChanges",{enumerable:!0,get:function(){return cl.findDangerousChanges}});Object.defineProperty(pe,"getIntrospectionQuery",{enumerable:!0,get:function(){return qV.getIntrospectionQuery}});Object.defineProperty(pe,"getOperationAST",{enumerable:!0,get:function(){return VV.getOperationAST}});Object.defineProperty(pe,"getOperationRootType",{enumerable:!0,get:function(){return GV.getOperationRootType}});Object.defineProperty(pe,"introspectionFromSchema",{enumerable:!0,get:function(){return KV.introspectionFromSchema}});Object.defineProperty(pe,"isEqualType",{enumerable:!0,get:function(){return Ab.isEqualType}});Object.defineProperty(pe,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Ab.isTypeSubTypeOf}});Object.defineProperty(pe,"isValidNameError",{enumerable:!0,get:function(){return II.isValidNameError}});Object.defineProperty(pe,"lexicographicSortSchema",{enumerable:!0,get:function(){return BV.lexicographicSortSchema}});Object.defineProperty(pe,"printIntrospectionSchema",{enumerable:!0,get:function(){return Db.printIntrospectionSchema}});Object.defineProperty(pe,"printSchema",{enumerable:!0,get:function(){return Db.printSchema}});Object.defineProperty(pe,"printType",{enumerable:!0,get:function(){return Db.printType}});Object.defineProperty(pe,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return NI.resolveASTSchemaCoordinate}});Object.defineProperty(pe,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return NI.resolveSchemaCoordinate}});Object.defineProperty(pe,"separateOperations",{enumerable:!0,get:function(){return t4.separateOperations}});Object.defineProperty(pe,"stripIgnoredCharacters",{enumerable:!0,get:function(){return r4.stripIgnoredCharacters}});Object.defineProperty(pe,"typeFromAST",{enumerable:!0,get:function(){return JV.typeFromAST}});Object.defineProperty(pe,"valueFromAST",{enumerable:!0,get:function(){return HV.valueFromAST}});Object.defineProperty(pe,"valueFromASTUntyped",{enumerable:!0,get:function(){return YV.valueFromASTUntyped}});Object.defineProperty(pe,"visitWithTypeInfo",{enumerable:!0,get:function(){return SI.visitWithTypeInfo}});var qV=fb(),VV=RS(),GV=jS(),KV=CS(),QV=US(),OI=JS(),ZV=bb(),BV=WS(),Db=oI(),JV=vr(),HV=xa(),YV=Ig(),WV=ma(),SI=Nc(),XV=Xv(),e4=aI(),t4=cI(),r4=dI(),Ab=sa(),II=mI(),cl=EI(),NI=xI()});var AI=T(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});Object.defineProperty(m,"BREAK",{enumerable:!0,get:function(){return fe.BREAK}});Object.defineProperty(m,"BreakingChangeType",{enumerable:!0,get:function(){return me.BreakingChangeType}});Object.defineProperty(m,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return L.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(m,"DangerousChangeType",{enumerable:!0,get:function(){return me.DangerousChangeType}});Object.defineProperty(m,"DirectiveLocation",{enumerable:!0,get:function(){return fe.DirectiveLocation}});Object.defineProperty(m,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return re.ExecutableDefinitionsRule}});Object.defineProperty(m,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return re.FieldsOnCorrectTypeRule}});Object.defineProperty(m,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return re.FragmentsOnCompositeTypesRule}});Object.defineProperty(m,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return L.GRAPHQL_MAX_INT}});Object.defineProperty(m,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return L.GRAPHQL_MIN_INT}});Object.defineProperty(m,"GraphQLBoolean",{enumerable:!0,get:function(){return L.GraphQLBoolean}});Object.defineProperty(m,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return L.GraphQLDeprecatedDirective}});Object.defineProperty(m,"GraphQLDirective",{enumerable:!0,get:function(){return L.GraphQLDirective}});Object.defineProperty(m,"GraphQLEnumType",{enumerable:!0,get:function(){return L.GraphQLEnumType}});Object.defineProperty(m,"GraphQLError",{enumerable:!0,get:function(){return Ma.GraphQLError}});Object.defineProperty(m,"GraphQLFloat",{enumerable:!0,get:function(){return L.GraphQLFloat}});Object.defineProperty(m,"GraphQLID",{enumerable:!0,get:function(){return L.GraphQLID}});Object.defineProperty(m,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return L.GraphQLIncludeDirective}});Object.defineProperty(m,"GraphQLInputObjectType",{enumerable:!0,get:function(){return L.GraphQLInputObjectType}});Object.defineProperty(m,"GraphQLInt",{enumerable:!0,get:function(){return L.GraphQLInt}});Object.defineProperty(m,"GraphQLInterfaceType",{enumerable:!0,get:function(){return L.GraphQLInterfaceType}});Object.defineProperty(m,"GraphQLList",{enumerable:!0,get:function(){return L.GraphQLList}});Object.defineProperty(m,"GraphQLNonNull",{enumerable:!0,get:function(){return L.GraphQLNonNull}});Object.defineProperty(m,"GraphQLObjectType",{enumerable:!0,get:function(){return L.GraphQLObjectType}});Object.defineProperty(m,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return L.GraphQLOneOfDirective}});Object.defineProperty(m,"GraphQLScalarType",{enumerable:!0,get:function(){return L.GraphQLScalarType}});Object.defineProperty(m,"GraphQLSchema",{enumerable:!0,get:function(){return L.GraphQLSchema}});Object.defineProperty(m,"GraphQLSkipDirective",{enumerable:!0,get:function(){return L.GraphQLSkipDirective}});Object.defineProperty(m,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return L.GraphQLSpecifiedByDirective}});Object.defineProperty(m,"GraphQLString",{enumerable:!0,get:function(){return L.GraphQLString}});Object.defineProperty(m,"GraphQLUnionType",{enumerable:!0,get:function(){return L.GraphQLUnionType}});Object.defineProperty(m,"Kind",{enumerable:!0,get:function(){return fe.Kind}});Object.defineProperty(m,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return re.KnownArgumentNamesRule}});Object.defineProperty(m,"KnownDirectivesRule",{enumerable:!0,get:function(){return re.KnownDirectivesRule}});Object.defineProperty(m,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return re.KnownFragmentNamesRule}});Object.defineProperty(m,"KnownTypeNamesRule",{enumerable:!0,get:function(){return re.KnownTypeNamesRule}});Object.defineProperty(m,"Lexer",{enumerable:!0,get:function(){return fe.Lexer}});Object.defineProperty(m,"Location",{enumerable:!0,get:function(){return fe.Location}});Object.defineProperty(m,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return re.LoneAnonymousOperationRule}});Object.defineProperty(m,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return re.LoneSchemaDefinitionRule}});Object.defineProperty(m,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return re.MaxIntrospectionDepthRule}});Object.defineProperty(m,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return re.NoDeprecatedCustomRule}});Object.defineProperty(m,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return re.NoFragmentCyclesRule}});Object.defineProperty(m,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return re.NoSchemaIntrospectionCustomRule}});Object.defineProperty(m,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return re.NoUndefinedVariablesRule}});Object.defineProperty(m,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return re.NoUnusedFragmentsRule}});Object.defineProperty(m,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return re.NoUnusedVariablesRule}});Object.defineProperty(m,"OperationTypeNode",{enumerable:!0,get:function(){return fe.OperationTypeNode}});Object.defineProperty(m,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return re.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(m,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return re.PossibleFragmentSpreadsRule}});Object.defineProperty(m,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return re.PossibleTypeExtensionsRule}});Object.defineProperty(m,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return re.ProvidedRequiredArgumentsRule}});Object.defineProperty(m,"ScalarLeafsRule",{enumerable:!0,get:function(){return re.ScalarLeafsRule}});Object.defineProperty(m,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return L.SchemaMetaFieldDef}});Object.defineProperty(m,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return re.SingleFieldSubscriptionsRule}});Object.defineProperty(m,"Source",{enumerable:!0,get:function(){return fe.Source}});Object.defineProperty(m,"Token",{enumerable:!0,get:function(){return fe.Token}});Object.defineProperty(m,"TokenKind",{enumerable:!0,get:function(){return fe.TokenKind}});Object.defineProperty(m,"TypeInfo",{enumerable:!0,get:function(){return me.TypeInfo}});Object.defineProperty(m,"TypeKind",{enumerable:!0,get:function(){return L.TypeKind}});Object.defineProperty(m,"TypeMetaFieldDef",{enumerable:!0,get:function(){return L.TypeMetaFieldDef}});Object.defineProperty(m,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return L.TypeNameMetaFieldDef}});Object.defineProperty(m,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return re.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(m,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return re.UniqueArgumentNamesRule}});Object.defineProperty(m,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return re.UniqueDirectiveNamesRule}});Object.defineProperty(m,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return re.UniqueDirectivesPerLocationRule}});Object.defineProperty(m,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return re.UniqueEnumValueNamesRule}});Object.defineProperty(m,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return re.UniqueFieldDefinitionNamesRule}});Object.defineProperty(m,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return re.UniqueFragmentNamesRule}});Object.defineProperty(m,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return re.UniqueInputFieldNamesRule}});Object.defineProperty(m,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return re.UniqueOperationNamesRule}});Object.defineProperty(m,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return re.UniqueOperationTypesRule}});Object.defineProperty(m,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return re.UniqueTypeNamesRule}});Object.defineProperty(m,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return re.UniqueVariableNamesRule}});Object.defineProperty(m,"ValidationContext",{enumerable:!0,get:function(){return re.ValidationContext}});Object.defineProperty(m,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return re.ValuesOfCorrectTypeRule}});Object.defineProperty(m,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return re.VariablesAreInputTypesRule}});Object.defineProperty(m,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return re.VariablesInAllowedPositionRule}});Object.defineProperty(m,"__Directive",{enumerable:!0,get:function(){return L.__Directive}});Object.defineProperty(m,"__DirectiveLocation",{enumerable:!0,get:function(){return L.__DirectiveLocation}});Object.defineProperty(m,"__EnumValue",{enumerable:!0,get:function(){return L.__EnumValue}});Object.defineProperty(m,"__Field",{enumerable:!0,get:function(){return L.__Field}});Object.defineProperty(m,"__InputValue",{enumerable:!0,get:function(){return L.__InputValue}});Object.defineProperty(m,"__Schema",{enumerable:!0,get:function(){return L.__Schema}});Object.defineProperty(m,"__Type",{enumerable:!0,get:function(){return L.__Type}});Object.defineProperty(m,"__TypeKind",{enumerable:!0,get:function(){return L.__TypeKind}});Object.defineProperty(m,"assertAbstractType",{enumerable:!0,get:function(){return L.assertAbstractType}});Object.defineProperty(m,"assertCompositeType",{enumerable:!0,get:function(){return L.assertCompositeType}});Object.defineProperty(m,"assertDirective",{enumerable:!0,get:function(){return L.assertDirective}});Object.defineProperty(m,"assertEnumType",{enumerable:!0,get:function(){return L.assertEnumType}});Object.defineProperty(m,"assertEnumValueName",{enumerable:!0,get:function(){return L.assertEnumValueName}});Object.defineProperty(m,"assertInputObjectType",{enumerable:!0,get:function(){return L.assertInputObjectType}});Object.defineProperty(m,"assertInputType",{enumerable:!0,get:function(){return L.assertInputType}});Object.defineProperty(m,"assertInterfaceType",{enumerable:!0,get:function(){return L.assertInterfaceType}});Object.defineProperty(m,"assertLeafType",{enumerable:!0,get:function(){return L.assertLeafType}});Object.defineProperty(m,"assertListType",{enumerable:!0,get:function(){return L.assertListType}});Object.defineProperty(m,"assertName",{enumerable:!0,get:function(){return L.assertName}});Object.defineProperty(m,"assertNamedType",{enumerable:!0,get:function(){return L.assertNamedType}});Object.defineProperty(m,"assertNonNullType",{enumerable:!0,get:function(){return L.assertNonNullType}});Object.defineProperty(m,"assertNullableType",{enumerable:!0,get:function(){return L.assertNullableType}});Object.defineProperty(m,"assertObjectType",{enumerable:!0,get:function(){return L.assertObjectType}});Object.defineProperty(m,"assertOutputType",{enumerable:!0,get:function(){return L.assertOutputType}});Object.defineProperty(m,"assertScalarType",{enumerable:!0,get:function(){return L.assertScalarType}});Object.defineProperty(m,"assertSchema",{enumerable:!0,get:function(){return L.assertSchema}});Object.defineProperty(m,"assertType",{enumerable:!0,get:function(){return L.assertType}});Object.defineProperty(m,"assertUnionType",{enumerable:!0,get:function(){return L.assertUnionType}});Object.defineProperty(m,"assertValidName",{enumerable:!0,get:function(){return me.assertValidName}});Object.defineProperty(m,"assertValidSchema",{enumerable:!0,get:function(){return L.assertValidSchema}});Object.defineProperty(m,"assertWrappingType",{enumerable:!0,get:function(){return L.assertWrappingType}});Object.defineProperty(m,"astFromValue",{enumerable:!0,get:function(){return me.astFromValue}});Object.defineProperty(m,"buildASTSchema",{enumerable:!0,get:function(){return me.buildASTSchema}});Object.defineProperty(m,"buildClientSchema",{enumerable:!0,get:function(){return me.buildClientSchema}});Object.defineProperty(m,"buildSchema",{enumerable:!0,get:function(){return me.buildSchema}});Object.defineProperty(m,"coerceInputValue",{enumerable:!0,get:function(){return me.coerceInputValue}});Object.defineProperty(m,"concatAST",{enumerable:!0,get:function(){return me.concatAST}});Object.defineProperty(m,"createSourceEventStream",{enumerable:!0,get:function(){return Tr.createSourceEventStream}});Object.defineProperty(m,"defaultFieldResolver",{enumerable:!0,get:function(){return Tr.defaultFieldResolver}});Object.defineProperty(m,"defaultTypeResolver",{enumerable:!0,get:function(){return Tr.defaultTypeResolver}});Object.defineProperty(m,"doTypesOverlap",{enumerable:!0,get:function(){return me.doTypesOverlap}});Object.defineProperty(m,"execute",{enumerable:!0,get:function(){return Tr.execute}});Object.defineProperty(m,"executeSync",{enumerable:!0,get:function(){return Tr.executeSync}});Object.defineProperty(m,"extendSchema",{enumerable:!0,get:function(){return me.extendSchema}});Object.defineProperty(m,"findBreakingChanges",{enumerable:!0,get:function(){return me.findBreakingChanges}});Object.defineProperty(m,"findDangerousChanges",{enumerable:!0,get:function(){return me.findDangerousChanges}});Object.defineProperty(m,"formatError",{enumerable:!0,get:function(){return Ma.formatError}});Object.defineProperty(m,"getArgumentValues",{enumerable:!0,get:function(){return Tr.getArgumentValues}});Object.defineProperty(m,"getDirectiveValues",{enumerable:!0,get:function(){return Tr.getDirectiveValues}});Object.defineProperty(m,"getEnterLeaveForKind",{enumerable:!0,get:function(){return fe.getEnterLeaveForKind}});Object.defineProperty(m,"getIntrospectionQuery",{enumerable:!0,get:function(){return me.getIntrospectionQuery}});Object.defineProperty(m,"getLocation",{enumerable:!0,get:function(){return fe.getLocation}});Object.defineProperty(m,"getNamedType",{enumerable:!0,get:function(){return L.getNamedType}});Object.defineProperty(m,"getNullableType",{enumerable:!0,get:function(){return L.getNullableType}});Object.defineProperty(m,"getOperationAST",{enumerable:!0,get:function(){return me.getOperationAST}});Object.defineProperty(m,"getOperationRootType",{enumerable:!0,get:function(){return me.getOperationRootType}});Object.defineProperty(m,"getVariableValues",{enumerable:!0,get:function(){return Tr.getVariableValues}});Object.defineProperty(m,"getVisitFn",{enumerable:!0,get:function(){return fe.getVisitFn}});Object.defineProperty(m,"graphql",{enumerable:!0,get:function(){return DI.graphql}});Object.defineProperty(m,"graphqlSync",{enumerable:!0,get:function(){return DI.graphqlSync}});Object.defineProperty(m,"introspectionFromSchema",{enumerable:!0,get:function(){return me.introspectionFromSchema}});Object.defineProperty(m,"introspectionTypes",{enumerable:!0,get:function(){return L.introspectionTypes}});Object.defineProperty(m,"isAbstractType",{enumerable:!0,get:function(){return L.isAbstractType}});Object.defineProperty(m,"isCompositeType",{enumerable:!0,get:function(){return L.isCompositeType}});Object.defineProperty(m,"isConstValueNode",{enumerable:!0,get:function(){return fe.isConstValueNode}});Object.defineProperty(m,"isDefinitionNode",{enumerable:!0,get:function(){return fe.isDefinitionNode}});Object.defineProperty(m,"isDirective",{enumerable:!0,get:function(){return L.isDirective}});Object.defineProperty(m,"isEnumType",{enumerable:!0,get:function(){return L.isEnumType}});Object.defineProperty(m,"isEqualType",{enumerable:!0,get:function(){return me.isEqualType}});Object.defineProperty(m,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return fe.isExecutableDefinitionNode}});Object.defineProperty(m,"isInputObjectType",{enumerable:!0,get:function(){return L.isInputObjectType}});Object.defineProperty(m,"isInputType",{enumerable:!0,get:function(){return L.isInputType}});Object.defineProperty(m,"isInterfaceType",{enumerable:!0,get:function(){return L.isInterfaceType}});Object.defineProperty(m,"isIntrospectionType",{enumerable:!0,get:function(){return L.isIntrospectionType}});Object.defineProperty(m,"isLeafType",{enumerable:!0,get:function(){return L.isLeafType}});Object.defineProperty(m,"isListType",{enumerable:!0,get:function(){return L.isListType}});Object.defineProperty(m,"isNamedType",{enumerable:!0,get:function(){return L.isNamedType}});Object.defineProperty(m,"isNonNullType",{enumerable:!0,get:function(){return L.isNonNullType}});Object.defineProperty(m,"isNullableType",{enumerable:!0,get:function(){return L.isNullableType}});Object.defineProperty(m,"isObjectType",{enumerable:!0,get:function(){return L.isObjectType}});Object.defineProperty(m,"isOutputType",{enumerable:!0,get:function(){return L.isOutputType}});Object.defineProperty(m,"isRequiredArgument",{enumerable:!0,get:function(){return L.isRequiredArgument}});Object.defineProperty(m,"isRequiredInputField",{enumerable:!0,get:function(){return L.isRequiredInputField}});Object.defineProperty(m,"isScalarType",{enumerable:!0,get:function(){return L.isScalarType}});Object.defineProperty(m,"isSchema",{enumerable:!0,get:function(){return L.isSchema}});Object.defineProperty(m,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return fe.isSchemaCoordinateNode}});Object.defineProperty(m,"isSelectionNode",{enumerable:!0,get:function(){return fe.isSelectionNode}});Object.defineProperty(m,"isSpecifiedDirective",{enumerable:!0,get:function(){return L.isSpecifiedDirective}});Object.defineProperty(m,"isSpecifiedScalarType",{enumerable:!0,get:function(){return L.isSpecifiedScalarType}});Object.defineProperty(m,"isType",{enumerable:!0,get:function(){return L.isType}});Object.defineProperty(m,"isTypeDefinitionNode",{enumerable:!0,get:function(){return fe.isTypeDefinitionNode}});Object.defineProperty(m,"isTypeExtensionNode",{enumerable:!0,get:function(){return fe.isTypeExtensionNode}});Object.defineProperty(m,"isTypeNode",{enumerable:!0,get:function(){return fe.isTypeNode}});Object.defineProperty(m,"isTypeSubTypeOf",{enumerable:!0,get:function(){return me.isTypeSubTypeOf}});Object.defineProperty(m,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return fe.isTypeSystemDefinitionNode}});Object.defineProperty(m,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return fe.isTypeSystemExtensionNode}});Object.defineProperty(m,"isUnionType",{enumerable:!0,get:function(){return L.isUnionType}});Object.defineProperty(m,"isValidNameError",{enumerable:!0,get:function(){return me.isValidNameError}});Object.defineProperty(m,"isValueNode",{enumerable:!0,get:function(){return fe.isValueNode}});Object.defineProperty(m,"isWrappingType",{enumerable:!0,get:function(){return L.isWrappingType}});Object.defineProperty(m,"lexicographicSortSchema",{enumerable:!0,get:function(){return me.lexicographicSortSchema}});Object.defineProperty(m,"locatedError",{enumerable:!0,get:function(){return Ma.locatedError}});Object.defineProperty(m,"parse",{enumerable:!0,get:function(){return fe.parse}});Object.defineProperty(m,"parseConstValue",{enumerable:!0,get:function(){return fe.parseConstValue}});Object.defineProperty(m,"parseSchemaCoordinate",{enumerable:!0,get:function(){return fe.parseSchemaCoordinate}});Object.defineProperty(m,"parseType",{enumerable:!0,get:function(){return fe.parseType}});Object.defineProperty(m,"parseValue",{enumerable:!0,get:function(){return fe.parseValue}});Object.defineProperty(m,"print",{enumerable:!0,get:function(){return fe.print}});Object.defineProperty(m,"printError",{enumerable:!0,get:function(){return Ma.printError}});Object.defineProperty(m,"printIntrospectionSchema",{enumerable:!0,get:function(){return me.printIntrospectionSchema}});Object.defineProperty(m,"printLocation",{enumerable:!0,get:function(){return fe.printLocation}});Object.defineProperty(m,"printSchema",{enumerable:!0,get:function(){return me.printSchema}});Object.defineProperty(m,"printSourceLocation",{enumerable:!0,get:function(){return fe.printSourceLocation}});Object.defineProperty(m,"printType",{enumerable:!0,get:function(){return me.printType}});Object.defineProperty(m,"recommendedRules",{enumerable:!0,get:function(){return re.recommendedRules}});Object.defineProperty(m,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return me.resolveASTSchemaCoordinate}});Object.defineProperty(m,"resolveObjMapThunk",{enumerable:!0,get:function(){return L.resolveObjMapThunk}});Object.defineProperty(m,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return L.resolveReadonlyArrayThunk}});Object.defineProperty(m,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return me.resolveSchemaCoordinate}});Object.defineProperty(m,"responsePathAsArray",{enumerable:!0,get:function(){return Tr.responsePathAsArray}});Object.defineProperty(m,"separateOperations",{enumerable:!0,get:function(){return me.separateOperations}});Object.defineProperty(m,"specifiedDirectives",{enumerable:!0,get:function(){return L.specifiedDirectives}});Object.defineProperty(m,"specifiedRules",{enumerable:!0,get:function(){return re.specifiedRules}});Object.defineProperty(m,"specifiedScalarTypes",{enumerable:!0,get:function(){return L.specifiedScalarTypes}});Object.defineProperty(m,"stripIgnoredCharacters",{enumerable:!0,get:function(){return me.stripIgnoredCharacters}});Object.defineProperty(m,"subscribe",{enumerable:!0,get:function(){return Tr.subscribe}});Object.defineProperty(m,"syntaxError",{enumerable:!0,get:function(){return Ma.syntaxError}});Object.defineProperty(m,"typeFromAST",{enumerable:!0,get:function(){return me.typeFromAST}});Object.defineProperty(m,"validate",{enumerable:!0,get:function(){return re.validate}});Object.defineProperty(m,"validateSchema",{enumerable:!0,get:function(){return L.validateSchema}});Object.defineProperty(m,"valueFromAST",{enumerable:!0,get:function(){return me.valueFromAST}});Object.defineProperty(m,"valueFromASTUntyped",{enumerable:!0,get:function(){return me.valueFromASTUntyped}});Object.defineProperty(m,"version",{enumerable:!0,get:function(){return wI.version}});Object.defineProperty(m,"versionInfo",{enumerable:!0,get:function(){return wI.versionInfo}});Object.defineProperty(m,"visit",{enumerable:!0,get:function(){return fe.visit}});Object.defineProperty(m,"visitInParallel",{enumerable:!0,get:function(){return fe.visitInParallel}});Object.defineProperty(m,"visitWithTypeInfo",{enumerable:!0,get:function(){return me.visitWithTypeInfo}});var wI=x$(),DI=gS(),L=bS(),fe=TS(),Tr=kS(),re=PS(),Ma=LS(),me=kI()});var GI=T((QB,T4)=>{T4.exports={name:"@jackchuka/gql-ingest",version:"4.2.0",description:"A CLI tool for ingesting data from files into a GraphQL API. Supports CSV, JSON, JSONL, and YAML file formats.",keywords:["api","cli","csv","graphql","ingest"],license:"MIT",author:"jackchuka",repository:{type:"git",url:"https://github.com/jackchuka/gql-ingest.git"},bin:{"gql-ingest":"dist/cli/index.js"},files:["dist"],type:"module",main:"dist/index.js",types:"dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js"}},scripts:{lint:"oxlint --type-aware --tsconfig ./tsconfig.json","lint:fix":"oxlint --fix --type-aware --tsconfig ./tsconfig.json",fmt:"oxfmt",build:"node esbuild.config.js","build:types":"tsc --emitDeclarationOnly","build:all":"pnpm run build && pnpm run build:types",dev:"ts-node src/cli/index.ts",test:"jest","test:watch":"jest --watch",prepublishOnly:"pnpm run build:all"},dependencies:{"@inquirer/prompts":"^8.2.0",commander:"^14.0.0","csv-parser":"^3.0.0",graphql:"16.13.2","graphql-request":"^7.2.0","js-yaml":"^4.1.0",tinyglobby:"^0.2.15",zod:"^4.3.5"},devDependencies:{"@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^25.0.2",esbuild:"^0.27.0",jest:"^30.0.3",oxfmt:"^0.42.0",oxlint:"^1.35.0","oxlint-tsgolint":"^0.18.1","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^5.3.0"},engines:{node:">=18"},packageManager:"pnpm@8.14.1"}});import{Command as E4}from"commander";import Bn from"fs";import b_,{posix as fn}from"path";import{fileURLToPath as wk}from"url";import{createRequire as YI}from"module";import{basename as WI,dirname as gl,normalize as XI,relative as eN,resolve as tN,sep as Fb}from"path";import*as rN from"fs";var jb=YI(import.meta.url);function nN(e){let t=XI(e);return t.length>1&&t[t.length-1]===Fb&&(t=t.substring(0,t.length-1)),t}var iN=/[\\/]/g;function Ub(e,t){return e.replace(iN,t)}var oN=/^[a-z]:[\\/]$/i;function aN(e){return e==="/"||oN.test(e)}function hl(e,t){let{resolvePaths:n,normalizePath:i,pathSeparator:r}=t,o=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(n&&(e=tN(e)),(i||o)&&(e=nN(e)),e===".")return"";let a=e[e.length-1]!==r;return Ub(a?e+r:e,r)}function zb(e,t){return t+e}function sN(e,t){return function(n,i){return i.startsWith(e)?i.slice(e.length)+n:Ub(eN(e,i),t.pathSeparator)+t.pathSeparator+n}}function uN(e){return e}function cN(e,t,n){return t+e+n}function lN(e,t){let{relativePaths:n,includeBasePath:i}=t;return n&&e?sN(e,t):i?zb:uN}function pN(e){return function(t,n){n.push(t.substring(e.length)||".")}}function dN(e){return function(t,n,i){let r=t.substring(e.length)||".";i.every(o=>o(r,!0))&&n.push(r)}}var fN=(e,t)=>{t.push(e||".")},mN=(e,t,n)=>{let i=e||".";n.every(r=>r(i,!0))&&t.push(i)},hN=()=>{};function gN(e,t){let{includeDirs:n,filters:i,relativePaths:r}=t;return n?r?i&&i.length?dN(e):pN(e):i&&i.length?mN:fN:hN}var vN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&n.files++},yN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&t.push(e)},bN=(e,t,n,i)=>{n.files++},_N=(e,t)=>{t.push(e)},TN=()=>{};function EN(e){let{excludeFiles:t,filters:n,onlyCounts:i}=e;return t?TN:n&&n.length?i?vN:yN:i?bN:_N}var $N=e=>e,xN=()=>[""].slice(0,0);function ON(e){return e.group?xN:$N}var SN=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},IN=()=>{};function NN(e){return e.group?SN:IN}var kN=function(e,t,n){let{queue:i,fs:r,options:{suppressErrors:o}}=t;i.enqueue(),r.realpath(e,(a,s)=>{if(a)return i.dequeue(o?null:a,t);r.stat(s,(u,c)=>{if(u)return i.dequeue(o?null:u,t);if(c.isDirectory()&&Mb(e,s,t))return i.dequeue(null,t);n(c,s),i.dequeue(null,t)})})},wN=function(e,t,n){let{queue:i,fs:r,options:{suppressErrors:o}}=t;i.enqueue();try{let a=r.realpathSync(e),s=r.statSync(a);if(s.isDirectory()&&Mb(e,a,t))return;n(s,a)}catch(a){if(!o)throw a}};function DN(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?wN:kN}function Mb(e,t,n){if(n.options.useRealPaths)return AN(t,n);let i=gl(e),r=1;for(;i!==n.root&&r<2;){let o=n.symlinks.get(i);!!o&&(o===t||o.startsWith(t)||t.startsWith(o))?r++:i=gl(i)}return n.symlinks.set(e,t),r>1}function AN(e,t){return t.visited.includes(e+t.options.pathSeparator)}var PN=e=>e.counts,LN=e=>e.groups,RN=e=>e.paths,jN=e=>e.paths.slice(0,e.options.maxFiles),CN=(e,t,n)=>(Ja(t,n,e.counts,e.options.suppressErrors),null),FN=(e,t,n)=>(Ja(t,n,e.paths,e.options.suppressErrors),null),UN=(e,t,n)=>(Ja(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),zN=(e,t,n)=>(Ja(t,n,e.groups,e.options.suppressErrors),null);function Ja(e,t,n,i){t(e&&!i?e:null,n)}function MN(e,t){let{onlyCounts:n,group:i,maxFiles:r}=e;return n?t?PN:CN:i?t?LN:zN:r?t?jN:UN:t?RN:FN}var qb={withFileTypes:!0},qN=(e,t,n,i,r)=>{if(e.queue.enqueue(),i<0)return e.queue.dequeue(null,e);let{fs:o}=e;e.visited.push(t),e.counts.directories++,o.readdir(t||".",qb,(a,s=[])=>{r(s,n,i),e.queue.dequeue(e.options.suppressErrors?null:a,e)})},VN=(e,t,n,i,r)=>{let{fs:o}=e;if(i<0)return;e.visited.push(t),e.counts.directories++;let a=[];try{a=o.readdirSync(t||".",qb)}catch(s){if(!e.options.suppressErrors)throw s}r(a,n,i)};function GN(e){return e?VN:qN}var KN=class{count=0;constructor(e){this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},QN=class{_files=0;_directories=0;set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},ZN=class{aborted=!1;abort(){this.aborted=!0}},Vb=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){this.isSynchronous=!n,this.callbackInvoker=MN(t,this.isSynchronous),this.root=hl(e,t),this.state={root:aN(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new QN,options:t,queue:new KN((i,r)=>this.callbackInvoker(r,i,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new ZN,fs:t.fs||rN},this.joinPath=lN(this.root,t),this.pushDirectory=gN(this.root,t),this.pushFile=EN(t),this.getArray=ON(t),this.groupFiles=NN(t),this.resolveSymlink=DN(t,this.isSynchronous),this.walkDirectory=GN(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,t,n)=>{let{paths:i,options:{filters:r,resolveSymlinks:o,excludeSymlinks:a,exclude:s,maxFiles:u,signal:c,useRealPaths:l,pathSeparator:p},controller:d}=this.state;if(d.aborted||c&&c.aborted||u&&i.length>u)return;let f=this.getArray(this.state.paths);for(let h=0;h<e.length;++h){let y=e[h];if(y.isFile()||y.isSymbolicLink()&&!o&&!a){let S=this.joinPath(y.name,t);this.pushFile(S,f,this.state.counts,r)}else if(y.isDirectory()){let S=cN(y.name,t,this.state.options.pathSeparator);if(s&&s(y.name,S))continue;this.pushDirectory(S,i,r),this.walkDirectory(this.state,S,S,n-1,this.walk)}else if(this.resolveSymlink&&y.isSymbolicLink()){let S=zb(y.name,t);this.resolveSymlink(S,this.state,(C,$)=>{if(C.isDirectory()){if($=hl($,this.state.options),s&&s(y.name,l?$:S+p))return;this.walkDirectory(this.state,$,l?$:S+p,n-1,this.walk)}else{$=l?$:S;let G=WI($),B=hl(gl($),this.state.options);$=this.joinPath(G,B),this.pushFile($,f,this.state.counts,r)}})}}this.groupFiles(this.state.groups,t,f)}};function BN(e,t){return new Promise((n,i)=>{Gb(e,t,(r,o)=>{if(r)return i(r);n(o)})})}function Gb(e,t,n){new Vb(e,t,n).start()}function JN(e,t){return new Vb(e,t).start()}var Cb=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return BN(this.root,this.options)}withCallback(e){Gb(this.root,this.options,e)}sync(){return JN(this.root,this.options)}},Kb=null;try{jb.resolve("picomatch"),Kb=jb("picomatch")}catch{}var Qb=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:Fb,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new Cb(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new Cb(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||Kb;if(!n)throw new Error("Please specify a glob function to use glob matching.");var i=this.globCache[e.join("\0")];return i||(i=n(e,...t),this.globCache[e.join("\0")]=i),this.options.filters.push(r=>i(r)),this}};var Hn=Rb(v_(),1),Dk=Array.isArray,__=process.platform==="win32",Ak=/^(\/?\.\.)+$/;function Pk(e,t={}){let n=e.length,i=Array(n),r=Array(n),o=!t.noglobstar;for(let a=0;a<n;a++){let s=T_(e[a]);i[a]=s;let u=s.length,c=Array(u);for(let l=0;l<u;l++)c[l]=(0,Hn.default)(s[l],t);r[a]=c}return a=>{let s=a.split("/");if(s[0]===".."&&Ak.test(a))return!0;for(let u=0;u<e.length;u++){let c=i[u],l=r[u],p=s.length,d=Math.min(p,c.length),f=0;for(;f<d;){let h=c[f];if(h.includes("/"))return!0;if(!l[f](s[f]))break;if(o&&h==="**")return!0;f++}if(f===p)return!0}return!1}}var Lk=/^[A-Z]:\/$/i,Rk=__?e=>Lk.test(e):e=>e==="/";function y_(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let r=Rk(e)?e.length:e.length+1;return(o,a)=>o.slice(r,a?-1:void 0)||"."}let i=t.slice(e.length+1);return i?(r,o)=>{if(r===".")return i;let a=`${i}/${r}`;return o?a.slice(0,-1):a}:(r,o)=>o&&r!=="."?r.slice(0,-1):r}return n?i=>fn.relative(e,i)||".":i=>fn.relative(e,`${t}/${i}`)||"."}function jk(e,t){if(t.startsWith(`${e}/`)){let n=t.slice(e.length+1);return i=>`${n}/${i}`}return n=>{let i=fn.relative(e,`${t}/${n}`);return n.endsWith("/")&&i!==""?`${i}/`:i||"."}}var Ck={parts:!0};function T_(e){var t;let n=Hn.default.scan(e,Ck);return!((t=n.parts)===null||t===void 0)&&t.length?n.parts:[e]}var Fk=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,Uk=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,zk=e=>e.replace(Fk,"\\$&"),Mk=e=>e.replace(Uk,"\\$&"),qk=__?Mk:zk;function Vk(e,t){if(t?.caseSensitiveMatch===!1)return!0;let n=Hn.default.scan(e);return n.isGlob||n.negated}function Jn(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...e)}var Gk=/^(\/?\.\.)+/,Kk=/\\(?=[()[\]{}!*+?@|])/g,Ya=/\\/g;function Il(e,t,n,i,r){let o=e;e.endsWith("/")&&(o=e.slice(0,-1)),!o.endsWith("*")&&t&&(o+="/**");let a=qk(n);b_.isAbsolute(o.replace(Kk,""))?o=fn.relative(a,o):o=fn.normalize(o);let s=Gk.exec(o),u=T_(o);if(s?.[0]){let l=(s[0].length+1)/3,p=0,d=a.split("/");for(;p<l&&u[p+l]===d[d.length+p-l];)o=o.slice(0,(l-p-1)*3)+o.slice((l-p)*3+u[p+l].length+1)||".",p++;let f=fn.join(n,s[0].slice(p*3));!f.startsWith(".")&&i.root.length>f.length&&(i.root=f,i.depthOffset=-l+p)}if(!r&&i.depthOffset>=0){var c;(c=i.commonPath)!==null&&c!==void 0||(i.commonPath=u);let l=[],p=Math.min(i.commonPath.length,u.length);for(let d=0;d<p;d++){let f=u[d];if(f==="**"&&!u[d+1]){l.pop();break}if(f!==i.commonPath[d]||Vk(f)||d===u.length-1)break;l.push(f)}i.depthOffset=l.length,i.commonPath=l,i.root=l.length>0?fn.join(n,...l):n}return o}function Qk({patterns:e=["**/*"],ignore:t=[],expandDirectories:n=!0},i,r){typeof e=="string"&&(e=[e]),typeof t=="string"&&(t=[t]);let o=[],a=[];for(let s of t)s&&(s[0]!=="!"||s[1]==="(")&&a.push(Il(s,n,i,r,!0));for(let s of e)s&&(s[0]!=="!"||s[1]==="("?o.push(Il(s,n,i,r,!1)):(s[1]!=="!"||s[2]==="(")&&a.push(Il(s.slice(1),n,i,r,!0)));return{match:o,ignore:a}}function Zk(e,t){for(let n=e.length-1;n>=0;n--){let i=e[n];e[n]=t(i)}return e}function Bk(e){return e?e instanceof URL?wk(e).replace(Ya,"/"):b_.resolve(e).replace(Ya,"/"):process.cwd().replace(Ya,"/")}function Jk(e,t={}){let n=process.env.TINYGLOBBY_DEBUG?{...t,debug:!0}:t,i=Bk(n.cwd);if(n.debug&&Jn("globbing with:",{patterns:e,options:n,cwd:i}),Array.isArray(e)&&e.length===0)return[{sync:()=>[],withPromise:async()=>[]},!1];let r={root:i,commonPath:null,depthOffset:0},o=Qk({...n,patterns:e},i,r);n.debug&&Jn("internal processing patterns:",o);let a={dot:n.dot,nobrace:n.braceExpansion===!1,nocase:n.caseSensitiveMatch===!1,noextglob:n.extglob===!1,noglobstar:n.globstar===!1,posix:!0},s=(0,Hn.default)(o.match,{...a,ignore:o.ignore}),u=(0,Hn.default)(o.ignore,a),c=Pk(o.match,a),l=y_(i,r.root,n.absolute),p=n.absolute?l:y_(i,r.root,!0),d={filters:[n.debug?(y,S)=>{let C=l(y,S),$=s(C);return $&&Jn(`matched ${C}`),$}:(y,S)=>s(l(y,S))],exclude:n.debug?(y,S)=>{let C=p(S,!0),$=C!=="."&&!c(C)||u(C);return Jn($?`skipped ${S}`:`crawling ${S}`),$}:(y,S)=>{let C=p(S,!0);return C!=="."&&!c(C)||u(C)},fs:n.fs?{readdir:n.fs.readdir||Bn.readdir,readdirSync:n.fs.readdirSync||Bn.readdirSync,realpath:n.fs.realpath||Bn.realpath,realpathSync:n.fs.realpathSync||Bn.realpathSync,stat:n.fs.stat||Bn.stat,statSync:n.fs.statSync||Bn.statSync}:void 0,pathSeparator:"/",relativePaths:!0,resolveSymlinks:!0,signal:n.signal};n.deep!==void 0&&(d.maxDepth=Math.round(n.deep-r.depthOffset)),n.absolute&&(d.relativePaths=!1,d.resolvePaths=!0,d.includeBasePath=!0),n.followSymbolicLinks===!1&&(d.resolveSymlinks=!1,d.excludeSymlinks=!0),n.onlyDirectories?(d.excludeFiles=!0,d.includeDirs=!0):n.onlyFiles===!1&&(d.includeDirs=!0),r.root=r.root.replace(Ya,"");let f=r.root;n.debug&&Jn("internal properties:",r);let h=i!==f&&!n.absolute&&jk(i,r.root);return[new Qb(d).crawl(f),h]}function E_(e,t){if(e&&t?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");let n=Dk(e)||typeof e=="string",i=n?t:e,r=n?e:e.patterns,[o,a]=Jk(r,i);return a?Zk(o.sync(),a):o.sync()}import{EventEmitter as u4}from"events";import{GraphQLClient as rR}from"graphql-request";import eR from"fs";function F_(e){return typeof e>"u"||e===null}function Hk(e){return typeof e=="object"&&e!==null}function Yk(e){return Array.isArray(e)?e:F_(e)?[]:[e]}function Wk(e,t){var n,i,r,o;if(t)for(o=Object.keys(t),n=0,i=o.length;n<i;n+=1)r=o[n],e[r]=t[r];return e}function Xk(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function ew(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var tw=F_,rw=Hk,nw=Yk,iw=Xk,ow=ew,aw=Wk,Be={isNothing:tw,isObject:rw,toArray:nw,repeat:iw,isNegativeZero:ow,extend:aw};function U_(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
184
|
+
`}});var aI=T(Ib=>{"use strict";Object.defineProperty(Ib,"__esModule",{value:!0});Ib.concatAST=fV;var dV=ue();function fV(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:dV.Kind.DOCUMENT,definitions:t}}});var cI=T(Nb=>{"use strict";Object.defineProperty(Nb,"__esModule",{value:!0});Nb.separateOperations=hV;var al=ue(),mV=kn();function hV(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case al.Kind.OPERATION_DEFINITION:t.push(r);break;case al.Kind.FRAGMENT_DEFINITION:n[r.name.value]=sI(r.selectionSet);break;default:}let i=Object.create(null);for(let r of t){let o=new Set;for(let s of sI(r.selectionSet))uI(o,n,s);let a=r.name?r.name.value:"";i[a]={kind:al.Kind.DOCUMENT,definitions:e.definitions.filter(s=>s===r||s.kind===al.Kind.FRAGMENT_DEFINITION&&o.has(s.name.value))}}return i}function uI(e,t,n){if(!e.has(n)){e.add(n);let i=t[n];if(i!==void 0)for(let r of i)uI(e,t,r)}}function sI(e){let t=[];return(0,mV.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var dI=T(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});wb.stripIgnoredCharacters=vV;var gV=Zo(),lI=Ho(),pI=Wu(),kb=Ri();function vV(e){let t=(0,pI.isSource)(e)?e:new pI.Source(e),n=t.body,i=new lI.Lexer(t),r="",o=!1;for(;i.advance().kind!==kb.TokenKind.EOF;){let a=i.token,s=a.kind,u=!(0,lI.isPunctuatorTokenKind)(a.kind);o&&(u||a.kind===kb.TokenKind.SPREAD)&&(r+=" ");let c=n.slice(a.start,a.end);s===kb.TokenKind.BLOCK_STRING?r+=(0,gV.printBlockString)(a.value,{minimize:!0}):r+=c,o=u}return r}});var mI=T(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.assertValidName=TV;sl.isValidNameError=fI;var yV=ht(),bV=Z(),_V=ra();function TV(e){let t=fI(e);if(t)throw t;return e}function fI(e){if(typeof e=="string"||(0,yV.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new bV.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,_V.assertName)(e)}catch(t){return t}}});var EI=T(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.DangerousChangeType=_r.BreakingChangeType=void 0;_r.findBreakingChanges=IV;_r.findDangerousChanges=NV;var EV=_e(),_I=ot(),hI=rn(),$V=kt(),ge=ce(),xV=gr(),OV=ma(),SV=Dv(),Me;_r.BreakingChangeType=Me;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Me||(_r.BreakingChangeType=Me={}));var nr;_r.DangerousChangeType=nr;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(nr||(_r.DangerousChangeType=nr={}));function IV(e,t){return TI(e,t).filter(n=>n.type in Me)}function NV(e,t){return TI(e,t).filter(n=>n.type in nr)}function TI(e,t){return[...wV(e,t),...kV(e,t)]}function kV(e,t){let n=[],i=jr(e.getDirectives(),t.getDirectives());for(let r of i.removed)n.push({type:Me.DIRECTIVE_REMOVED,description:`${r.name} was removed.`});for(let[r,o]of i.persisted){let a=jr(r.args,o.args);for(let s of a.added)(0,ge.isRequiredArgument)(s)&&n.push({type:Me.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${s.name} on directive ${r.name} was added.`});for(let s of a.removed)n.push({type:Me.DIRECTIVE_ARG_REMOVED,description:`${s.name} was removed from ${r.name}.`});r.isRepeatable&&!o.isRepeatable&&n.push({type:Me.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${r.name}.`});for(let s of r.locations)o.locations.includes(s)||n.push({type:Me.DIRECTIVE_LOCATION_REMOVED,description:`${s} was removed from ${r.name}.`})}return n}function wV(e,t){let n=[],i=jr(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let r of i.removed)n.push({type:Me.TYPE_REMOVED,description:(0,xV.isSpecifiedScalarType)(r)?`Standard scalar ${r.name} was removed because it is not referenced anymore.`:`${r.name} was removed.`});for(let[r,o]of i.persisted)(0,ge.isEnumType)(r)&&(0,ge.isEnumType)(o)?n.push(...PV(r,o)):(0,ge.isUnionType)(r)&&(0,ge.isUnionType)(o)?n.push(...AV(r,o)):(0,ge.isInputObjectType)(r)&&(0,ge.isInputObjectType)(o)?n.push(...DV(r,o)):(0,ge.isObjectType)(r)&&(0,ge.isObjectType)(o)?n.push(...vI(r,o),...gI(r,o)):(0,ge.isInterfaceType)(r)&&(0,ge.isInterfaceType)(o)?n.push(...vI(r,o),...gI(r,o)):r.constructor!==o.constructor&&n.push({type:Me.TYPE_CHANGED_KIND,description:`${r.name} changed from ${yI(r)} to ${yI(o)}.`});return n}function DV(e,t){let n=[],i=jr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.added)(0,ge.isRequiredInputField)(r)?n.push({type:Me.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${r.name} on input type ${e.name} was added.`}):n.push({type:nr.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${r.name} on input type ${e.name} was added.`});for(let r of i.removed)n.push({type:Me.FIELD_REMOVED,description:`${e.name}.${r.name} was removed.`});for(let[r,o]of i.persisted)Ua(r.type,o.type)||n.push({type:Me.FIELD_CHANGED_KIND,description:`${e.name}.${r.name} changed type from ${String(r.type)} to ${String(o.type)}.`});return n}function AV(e,t){let n=[],i=jr(e.getTypes(),t.getTypes());for(let r of i.added)n.push({type:nr.TYPE_ADDED_TO_UNION,description:`${r.name} was added to union type ${e.name}.`});for(let r of i.removed)n.push({type:Me.TYPE_REMOVED_FROM_UNION,description:`${r.name} was removed from union type ${e.name}.`});return n}function PV(e,t){let n=[],i=jr(e.getValues(),t.getValues());for(let r of i.added)n.push({type:nr.VALUE_ADDED_TO_ENUM,description:`${r.name} was added to enum type ${e.name}.`});for(let r of i.removed)n.push({type:Me.VALUE_REMOVED_FROM_ENUM,description:`${r.name} was removed from enum type ${e.name}.`});return n}function gI(e,t){let n=[],i=jr(e.getInterfaces(),t.getInterfaces());for(let r of i.added)n.push({type:nr.IMPLEMENTED_INTERFACE_ADDED,description:`${r.name} added to interfaces implemented by ${e.name}.`});for(let r of i.removed)n.push({type:Me.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${r.name}.`});return n}function vI(e,t){let n=[],i=jr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.removed)n.push({type:Me.FIELD_REMOVED,description:`${e.name}.${r.name} was removed.`});for(let[r,o]of i.persisted)n.push(...LV(e,r,o)),Fa(r.type,o.type)||n.push({type:Me.FIELD_CHANGED_KIND,description:`${e.name}.${r.name} changed type from ${String(r.type)} to ${String(o.type)}.`});return n}function LV(e,t,n){let i=[],r=jr(t.args,n.args);for(let o of r.removed)i.push({type:Me.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(let[o,a]of r.persisted)if(!Ua(o.type,a.type))i.push({type:Me.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(a.type)}.`});else if(o.defaultValue!==void 0)if(a.defaultValue===void 0)i.push({type:nr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{let u=bI(o.defaultValue,o.type),c=bI(a.defaultValue,a.type);u!==c&&i.push({type:nr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${u} to ${c}.`})}for(let o of r.added)(0,ge.isRequiredArgument)(o)?i.push({type:Me.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):i.push({type:nr.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return i}function Fa(e,t){return(0,ge.isListType)(e)?(0,ge.isListType)(t)&&Fa(e.ofType,t.ofType)||(0,ge.isNonNullType)(t)&&Fa(e,t.ofType):(0,ge.isNonNullType)(e)?(0,ge.isNonNullType)(t)&&Fa(e.ofType,t.ofType):(0,ge.isNamedType)(t)&&e.name===t.name||(0,ge.isNonNullType)(t)&&Fa(e,t.ofType)}function Ua(e,t){return(0,ge.isListType)(e)?(0,ge.isListType)(t)&&Ua(e.ofType,t.ofType):(0,ge.isNonNullType)(e)?(0,ge.isNonNullType)(t)&&Ua(e.ofType,t.ofType)||!(0,ge.isNonNullType)(t)&&Ua(e.ofType,t):(0,ge.isNamedType)(t)&&e.name===t.name}function yI(e){if((0,ge.isScalarType)(e))return"a Scalar type";if((0,ge.isObjectType)(e))return"an Object type";if((0,ge.isInterfaceType)(e))return"an Interface type";if((0,ge.isUnionType)(e))return"a Union type";if((0,ge.isEnumType)(e))return"an Enum type";if((0,ge.isInputObjectType)(e))return"an Input type";(0,_I.invariant)(!1,"Unexpected type: "+(0,EV.inspect)(e))}function bI(e,t){let n=(0,OV.astFromValue)(e,t);return n!=null||(0,_I.invariant)(!1),(0,$V.print)((0,SV.sortValueNode)(n))}function jr(e,t){let n=[],i=[],r=[],o=(0,hI.keyMap)(e,({name:s})=>s),a=(0,hI.keyMap)(t,({name:s})=>s);for(let s of e){let u=a[s.name];u===void 0?i.push(s):r.push([s,u])}for(let s of t)o[s.name]===void 0&&n.push(s);return{added:n,persisted:r,removed:i}}});var xI=T(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.resolveASTSchemaCoordinate=$I;ul.resolveSchemaCoordinate=jV;var Vn=_e(),za=ue(),RV=Nn(),pn=ce();function jV(e,t){return $I(e,(0,RV.parseSchemaCoordinate)(t))}function CV(e,t){let n=t.name.value,i=e.getType(n);if(i!=null)return{kind:"NamedType",type:i}}function FV(e,t){let n=t.name.value,i=e.getType(n);if(!i)throw new Error(`Expected ${(0,Vn.inspect)(n)} to be defined as a type in the schema.`);if(!(0,pn.isEnumType)(i)&&!(0,pn.isInputObjectType)(i)&&!(0,pn.isObjectType)(i)&&!(0,pn.isInterfaceType)(i))throw new Error(`Expected ${(0,Vn.inspect)(n)} to be an Enum, Input Object, Object or Interface type.`);if((0,pn.isEnumType)(i)){let a=t.memberName.value,s=i.getValue(a);return s==null?void 0:{kind:"EnumValue",type:i,enumValue:s}}if((0,pn.isInputObjectType)(i)){let a=t.memberName.value,s=i.getFields()[a];return s==null?void 0:{kind:"InputField",type:i,inputField:s}}let r=t.memberName.value,o=i.getFields()[r];if(o!=null)return{kind:"Field",type:i,field:o}}function UV(e,t){let n=t.name.value,i=e.getType(n);if(i==null)throw new Error(`Expected ${(0,Vn.inspect)(n)} to be defined as a type in the schema.`);if(!(0,pn.isObjectType)(i)&&!(0,pn.isInterfaceType)(i))throw new Error(`Expected ${(0,Vn.inspect)(n)} to be an object type or interface type.`);let r=t.fieldName.value,o=i.getFields()[r];if(o==null)throw new Error(`Expected ${(0,Vn.inspect)(r)} to exist as a field of type ${(0,Vn.inspect)(n)} in the schema.`);let a=t.argumentName.value,s=o.args.find(u=>u.name===a);if(s!=null)return{kind:"FieldArgument",type:i,field:o,fieldArgument:s}}function zV(e,t){let n=t.name.value,i=e.getDirective(n);if(i)return{kind:"Directive",directive:i}}function MV(e,t){let n=t.name.value,i=e.getDirective(n);if(!i)throw new Error(`Expected ${(0,Vn.inspect)(n)} to be defined as a directive in the schema.`);let{argumentName:{value:r}}=t,o=i.args.find(a=>a.name===r);if(o)return{kind:"DirectiveArgument",directive:i,directiveArgument:o}}function $I(e,t){switch(t.kind){case za.Kind.TYPE_COORDINATE:return CV(e,t);case za.Kind.MEMBER_COORDINATE:return FV(e,t);case za.Kind.ARGUMENT_COORDINATE:return UV(e,t);case za.Kind.DIRECTIVE_COORDINATE:return zV(e,t);case za.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return MV(e,t)}}});var kI=T(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});Object.defineProperty(pe,"BreakingChangeType",{enumerable:!0,get:function(){return cl.BreakingChangeType}});Object.defineProperty(pe,"DangerousChangeType",{enumerable:!0,get:function(){return cl.DangerousChangeType}});Object.defineProperty(pe,"TypeInfo",{enumerable:!0,get:function(){return SI.TypeInfo}});Object.defineProperty(pe,"assertValidName",{enumerable:!0,get:function(){return II.assertValidName}});Object.defineProperty(pe,"astFromValue",{enumerable:!0,get:function(){return WV.astFromValue}});Object.defineProperty(pe,"buildASTSchema",{enumerable:!0,get:function(){return OI.buildASTSchema}});Object.defineProperty(pe,"buildClientSchema",{enumerable:!0,get:function(){return QV.buildClientSchema}});Object.defineProperty(pe,"buildSchema",{enumerable:!0,get:function(){return OI.buildSchema}});Object.defineProperty(pe,"coerceInputValue",{enumerable:!0,get:function(){return XV.coerceInputValue}});Object.defineProperty(pe,"concatAST",{enumerable:!0,get:function(){return e4.concatAST}});Object.defineProperty(pe,"doTypesOverlap",{enumerable:!0,get:function(){return Ab.doTypesOverlap}});Object.defineProperty(pe,"extendSchema",{enumerable:!0,get:function(){return ZV.extendSchema}});Object.defineProperty(pe,"findBreakingChanges",{enumerable:!0,get:function(){return cl.findBreakingChanges}});Object.defineProperty(pe,"findDangerousChanges",{enumerable:!0,get:function(){return cl.findDangerousChanges}});Object.defineProperty(pe,"getIntrospectionQuery",{enumerable:!0,get:function(){return qV.getIntrospectionQuery}});Object.defineProperty(pe,"getOperationAST",{enumerable:!0,get:function(){return VV.getOperationAST}});Object.defineProperty(pe,"getOperationRootType",{enumerable:!0,get:function(){return GV.getOperationRootType}});Object.defineProperty(pe,"introspectionFromSchema",{enumerable:!0,get:function(){return KV.introspectionFromSchema}});Object.defineProperty(pe,"isEqualType",{enumerable:!0,get:function(){return Ab.isEqualType}});Object.defineProperty(pe,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Ab.isTypeSubTypeOf}});Object.defineProperty(pe,"isValidNameError",{enumerable:!0,get:function(){return II.isValidNameError}});Object.defineProperty(pe,"lexicographicSortSchema",{enumerable:!0,get:function(){return BV.lexicographicSortSchema}});Object.defineProperty(pe,"printIntrospectionSchema",{enumerable:!0,get:function(){return Db.printIntrospectionSchema}});Object.defineProperty(pe,"printSchema",{enumerable:!0,get:function(){return Db.printSchema}});Object.defineProperty(pe,"printType",{enumerable:!0,get:function(){return Db.printType}});Object.defineProperty(pe,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return NI.resolveASTSchemaCoordinate}});Object.defineProperty(pe,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return NI.resolveSchemaCoordinate}});Object.defineProperty(pe,"separateOperations",{enumerable:!0,get:function(){return t4.separateOperations}});Object.defineProperty(pe,"stripIgnoredCharacters",{enumerable:!0,get:function(){return r4.stripIgnoredCharacters}});Object.defineProperty(pe,"typeFromAST",{enumerable:!0,get:function(){return JV.typeFromAST}});Object.defineProperty(pe,"valueFromAST",{enumerable:!0,get:function(){return HV.valueFromAST}});Object.defineProperty(pe,"valueFromASTUntyped",{enumerable:!0,get:function(){return YV.valueFromASTUntyped}});Object.defineProperty(pe,"visitWithTypeInfo",{enumerable:!0,get:function(){return SI.visitWithTypeInfo}});var qV=fb(),VV=RS(),GV=jS(),KV=CS(),QV=US(),OI=JS(),ZV=bb(),BV=WS(),Db=oI(),JV=vr(),HV=xa(),YV=Ig(),WV=ma(),SI=Nc(),XV=Xv(),e4=aI(),t4=cI(),r4=dI(),Ab=sa(),II=mI(),cl=EI(),NI=xI()});var AI=T(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});Object.defineProperty(m,"BREAK",{enumerable:!0,get:function(){return fe.BREAK}});Object.defineProperty(m,"BreakingChangeType",{enumerable:!0,get:function(){return me.BreakingChangeType}});Object.defineProperty(m,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return L.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(m,"DangerousChangeType",{enumerable:!0,get:function(){return me.DangerousChangeType}});Object.defineProperty(m,"DirectiveLocation",{enumerable:!0,get:function(){return fe.DirectiveLocation}});Object.defineProperty(m,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return re.ExecutableDefinitionsRule}});Object.defineProperty(m,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return re.FieldsOnCorrectTypeRule}});Object.defineProperty(m,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return re.FragmentsOnCompositeTypesRule}});Object.defineProperty(m,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return L.GRAPHQL_MAX_INT}});Object.defineProperty(m,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return L.GRAPHQL_MIN_INT}});Object.defineProperty(m,"GraphQLBoolean",{enumerable:!0,get:function(){return L.GraphQLBoolean}});Object.defineProperty(m,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return L.GraphQLDeprecatedDirective}});Object.defineProperty(m,"GraphQLDirective",{enumerable:!0,get:function(){return L.GraphQLDirective}});Object.defineProperty(m,"GraphQLEnumType",{enumerable:!0,get:function(){return L.GraphQLEnumType}});Object.defineProperty(m,"GraphQLError",{enumerable:!0,get:function(){return Ma.GraphQLError}});Object.defineProperty(m,"GraphQLFloat",{enumerable:!0,get:function(){return L.GraphQLFloat}});Object.defineProperty(m,"GraphQLID",{enumerable:!0,get:function(){return L.GraphQLID}});Object.defineProperty(m,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return L.GraphQLIncludeDirective}});Object.defineProperty(m,"GraphQLInputObjectType",{enumerable:!0,get:function(){return L.GraphQLInputObjectType}});Object.defineProperty(m,"GraphQLInt",{enumerable:!0,get:function(){return L.GraphQLInt}});Object.defineProperty(m,"GraphQLInterfaceType",{enumerable:!0,get:function(){return L.GraphQLInterfaceType}});Object.defineProperty(m,"GraphQLList",{enumerable:!0,get:function(){return L.GraphQLList}});Object.defineProperty(m,"GraphQLNonNull",{enumerable:!0,get:function(){return L.GraphQLNonNull}});Object.defineProperty(m,"GraphQLObjectType",{enumerable:!0,get:function(){return L.GraphQLObjectType}});Object.defineProperty(m,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return L.GraphQLOneOfDirective}});Object.defineProperty(m,"GraphQLScalarType",{enumerable:!0,get:function(){return L.GraphQLScalarType}});Object.defineProperty(m,"GraphQLSchema",{enumerable:!0,get:function(){return L.GraphQLSchema}});Object.defineProperty(m,"GraphQLSkipDirective",{enumerable:!0,get:function(){return L.GraphQLSkipDirective}});Object.defineProperty(m,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return L.GraphQLSpecifiedByDirective}});Object.defineProperty(m,"GraphQLString",{enumerable:!0,get:function(){return L.GraphQLString}});Object.defineProperty(m,"GraphQLUnionType",{enumerable:!0,get:function(){return L.GraphQLUnionType}});Object.defineProperty(m,"Kind",{enumerable:!0,get:function(){return fe.Kind}});Object.defineProperty(m,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return re.KnownArgumentNamesRule}});Object.defineProperty(m,"KnownDirectivesRule",{enumerable:!0,get:function(){return re.KnownDirectivesRule}});Object.defineProperty(m,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return re.KnownFragmentNamesRule}});Object.defineProperty(m,"KnownTypeNamesRule",{enumerable:!0,get:function(){return re.KnownTypeNamesRule}});Object.defineProperty(m,"Lexer",{enumerable:!0,get:function(){return fe.Lexer}});Object.defineProperty(m,"Location",{enumerable:!0,get:function(){return fe.Location}});Object.defineProperty(m,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return re.LoneAnonymousOperationRule}});Object.defineProperty(m,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return re.LoneSchemaDefinitionRule}});Object.defineProperty(m,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return re.MaxIntrospectionDepthRule}});Object.defineProperty(m,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return re.NoDeprecatedCustomRule}});Object.defineProperty(m,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return re.NoFragmentCyclesRule}});Object.defineProperty(m,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return re.NoSchemaIntrospectionCustomRule}});Object.defineProperty(m,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return re.NoUndefinedVariablesRule}});Object.defineProperty(m,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return re.NoUnusedFragmentsRule}});Object.defineProperty(m,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return re.NoUnusedVariablesRule}});Object.defineProperty(m,"OperationTypeNode",{enumerable:!0,get:function(){return fe.OperationTypeNode}});Object.defineProperty(m,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return re.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(m,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return re.PossibleFragmentSpreadsRule}});Object.defineProperty(m,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return re.PossibleTypeExtensionsRule}});Object.defineProperty(m,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return re.ProvidedRequiredArgumentsRule}});Object.defineProperty(m,"ScalarLeafsRule",{enumerable:!0,get:function(){return re.ScalarLeafsRule}});Object.defineProperty(m,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return L.SchemaMetaFieldDef}});Object.defineProperty(m,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return re.SingleFieldSubscriptionsRule}});Object.defineProperty(m,"Source",{enumerable:!0,get:function(){return fe.Source}});Object.defineProperty(m,"Token",{enumerable:!0,get:function(){return fe.Token}});Object.defineProperty(m,"TokenKind",{enumerable:!0,get:function(){return fe.TokenKind}});Object.defineProperty(m,"TypeInfo",{enumerable:!0,get:function(){return me.TypeInfo}});Object.defineProperty(m,"TypeKind",{enumerable:!0,get:function(){return L.TypeKind}});Object.defineProperty(m,"TypeMetaFieldDef",{enumerable:!0,get:function(){return L.TypeMetaFieldDef}});Object.defineProperty(m,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return L.TypeNameMetaFieldDef}});Object.defineProperty(m,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return re.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(m,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return re.UniqueArgumentNamesRule}});Object.defineProperty(m,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return re.UniqueDirectiveNamesRule}});Object.defineProperty(m,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return re.UniqueDirectivesPerLocationRule}});Object.defineProperty(m,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return re.UniqueEnumValueNamesRule}});Object.defineProperty(m,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return re.UniqueFieldDefinitionNamesRule}});Object.defineProperty(m,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return re.UniqueFragmentNamesRule}});Object.defineProperty(m,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return re.UniqueInputFieldNamesRule}});Object.defineProperty(m,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return re.UniqueOperationNamesRule}});Object.defineProperty(m,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return re.UniqueOperationTypesRule}});Object.defineProperty(m,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return re.UniqueTypeNamesRule}});Object.defineProperty(m,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return re.UniqueVariableNamesRule}});Object.defineProperty(m,"ValidationContext",{enumerable:!0,get:function(){return re.ValidationContext}});Object.defineProperty(m,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return re.ValuesOfCorrectTypeRule}});Object.defineProperty(m,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return re.VariablesAreInputTypesRule}});Object.defineProperty(m,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return re.VariablesInAllowedPositionRule}});Object.defineProperty(m,"__Directive",{enumerable:!0,get:function(){return L.__Directive}});Object.defineProperty(m,"__DirectiveLocation",{enumerable:!0,get:function(){return L.__DirectiveLocation}});Object.defineProperty(m,"__EnumValue",{enumerable:!0,get:function(){return L.__EnumValue}});Object.defineProperty(m,"__Field",{enumerable:!0,get:function(){return L.__Field}});Object.defineProperty(m,"__InputValue",{enumerable:!0,get:function(){return L.__InputValue}});Object.defineProperty(m,"__Schema",{enumerable:!0,get:function(){return L.__Schema}});Object.defineProperty(m,"__Type",{enumerable:!0,get:function(){return L.__Type}});Object.defineProperty(m,"__TypeKind",{enumerable:!0,get:function(){return L.__TypeKind}});Object.defineProperty(m,"assertAbstractType",{enumerable:!0,get:function(){return L.assertAbstractType}});Object.defineProperty(m,"assertCompositeType",{enumerable:!0,get:function(){return L.assertCompositeType}});Object.defineProperty(m,"assertDirective",{enumerable:!0,get:function(){return L.assertDirective}});Object.defineProperty(m,"assertEnumType",{enumerable:!0,get:function(){return L.assertEnumType}});Object.defineProperty(m,"assertEnumValueName",{enumerable:!0,get:function(){return L.assertEnumValueName}});Object.defineProperty(m,"assertInputObjectType",{enumerable:!0,get:function(){return L.assertInputObjectType}});Object.defineProperty(m,"assertInputType",{enumerable:!0,get:function(){return L.assertInputType}});Object.defineProperty(m,"assertInterfaceType",{enumerable:!0,get:function(){return L.assertInterfaceType}});Object.defineProperty(m,"assertLeafType",{enumerable:!0,get:function(){return L.assertLeafType}});Object.defineProperty(m,"assertListType",{enumerable:!0,get:function(){return L.assertListType}});Object.defineProperty(m,"assertName",{enumerable:!0,get:function(){return L.assertName}});Object.defineProperty(m,"assertNamedType",{enumerable:!0,get:function(){return L.assertNamedType}});Object.defineProperty(m,"assertNonNullType",{enumerable:!0,get:function(){return L.assertNonNullType}});Object.defineProperty(m,"assertNullableType",{enumerable:!0,get:function(){return L.assertNullableType}});Object.defineProperty(m,"assertObjectType",{enumerable:!0,get:function(){return L.assertObjectType}});Object.defineProperty(m,"assertOutputType",{enumerable:!0,get:function(){return L.assertOutputType}});Object.defineProperty(m,"assertScalarType",{enumerable:!0,get:function(){return L.assertScalarType}});Object.defineProperty(m,"assertSchema",{enumerable:!0,get:function(){return L.assertSchema}});Object.defineProperty(m,"assertType",{enumerable:!0,get:function(){return L.assertType}});Object.defineProperty(m,"assertUnionType",{enumerable:!0,get:function(){return L.assertUnionType}});Object.defineProperty(m,"assertValidName",{enumerable:!0,get:function(){return me.assertValidName}});Object.defineProperty(m,"assertValidSchema",{enumerable:!0,get:function(){return L.assertValidSchema}});Object.defineProperty(m,"assertWrappingType",{enumerable:!0,get:function(){return L.assertWrappingType}});Object.defineProperty(m,"astFromValue",{enumerable:!0,get:function(){return me.astFromValue}});Object.defineProperty(m,"buildASTSchema",{enumerable:!0,get:function(){return me.buildASTSchema}});Object.defineProperty(m,"buildClientSchema",{enumerable:!0,get:function(){return me.buildClientSchema}});Object.defineProperty(m,"buildSchema",{enumerable:!0,get:function(){return me.buildSchema}});Object.defineProperty(m,"coerceInputValue",{enumerable:!0,get:function(){return me.coerceInputValue}});Object.defineProperty(m,"concatAST",{enumerable:!0,get:function(){return me.concatAST}});Object.defineProperty(m,"createSourceEventStream",{enumerable:!0,get:function(){return Tr.createSourceEventStream}});Object.defineProperty(m,"defaultFieldResolver",{enumerable:!0,get:function(){return Tr.defaultFieldResolver}});Object.defineProperty(m,"defaultTypeResolver",{enumerable:!0,get:function(){return Tr.defaultTypeResolver}});Object.defineProperty(m,"doTypesOverlap",{enumerable:!0,get:function(){return me.doTypesOverlap}});Object.defineProperty(m,"execute",{enumerable:!0,get:function(){return Tr.execute}});Object.defineProperty(m,"executeSync",{enumerable:!0,get:function(){return Tr.executeSync}});Object.defineProperty(m,"extendSchema",{enumerable:!0,get:function(){return me.extendSchema}});Object.defineProperty(m,"findBreakingChanges",{enumerable:!0,get:function(){return me.findBreakingChanges}});Object.defineProperty(m,"findDangerousChanges",{enumerable:!0,get:function(){return me.findDangerousChanges}});Object.defineProperty(m,"formatError",{enumerable:!0,get:function(){return Ma.formatError}});Object.defineProperty(m,"getArgumentValues",{enumerable:!0,get:function(){return Tr.getArgumentValues}});Object.defineProperty(m,"getDirectiveValues",{enumerable:!0,get:function(){return Tr.getDirectiveValues}});Object.defineProperty(m,"getEnterLeaveForKind",{enumerable:!0,get:function(){return fe.getEnterLeaveForKind}});Object.defineProperty(m,"getIntrospectionQuery",{enumerable:!0,get:function(){return me.getIntrospectionQuery}});Object.defineProperty(m,"getLocation",{enumerable:!0,get:function(){return fe.getLocation}});Object.defineProperty(m,"getNamedType",{enumerable:!0,get:function(){return L.getNamedType}});Object.defineProperty(m,"getNullableType",{enumerable:!0,get:function(){return L.getNullableType}});Object.defineProperty(m,"getOperationAST",{enumerable:!0,get:function(){return me.getOperationAST}});Object.defineProperty(m,"getOperationRootType",{enumerable:!0,get:function(){return me.getOperationRootType}});Object.defineProperty(m,"getVariableValues",{enumerable:!0,get:function(){return Tr.getVariableValues}});Object.defineProperty(m,"getVisitFn",{enumerable:!0,get:function(){return fe.getVisitFn}});Object.defineProperty(m,"graphql",{enumerable:!0,get:function(){return DI.graphql}});Object.defineProperty(m,"graphqlSync",{enumerable:!0,get:function(){return DI.graphqlSync}});Object.defineProperty(m,"introspectionFromSchema",{enumerable:!0,get:function(){return me.introspectionFromSchema}});Object.defineProperty(m,"introspectionTypes",{enumerable:!0,get:function(){return L.introspectionTypes}});Object.defineProperty(m,"isAbstractType",{enumerable:!0,get:function(){return L.isAbstractType}});Object.defineProperty(m,"isCompositeType",{enumerable:!0,get:function(){return L.isCompositeType}});Object.defineProperty(m,"isConstValueNode",{enumerable:!0,get:function(){return fe.isConstValueNode}});Object.defineProperty(m,"isDefinitionNode",{enumerable:!0,get:function(){return fe.isDefinitionNode}});Object.defineProperty(m,"isDirective",{enumerable:!0,get:function(){return L.isDirective}});Object.defineProperty(m,"isEnumType",{enumerable:!0,get:function(){return L.isEnumType}});Object.defineProperty(m,"isEqualType",{enumerable:!0,get:function(){return me.isEqualType}});Object.defineProperty(m,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return fe.isExecutableDefinitionNode}});Object.defineProperty(m,"isInputObjectType",{enumerable:!0,get:function(){return L.isInputObjectType}});Object.defineProperty(m,"isInputType",{enumerable:!0,get:function(){return L.isInputType}});Object.defineProperty(m,"isInterfaceType",{enumerable:!0,get:function(){return L.isInterfaceType}});Object.defineProperty(m,"isIntrospectionType",{enumerable:!0,get:function(){return L.isIntrospectionType}});Object.defineProperty(m,"isLeafType",{enumerable:!0,get:function(){return L.isLeafType}});Object.defineProperty(m,"isListType",{enumerable:!0,get:function(){return L.isListType}});Object.defineProperty(m,"isNamedType",{enumerable:!0,get:function(){return L.isNamedType}});Object.defineProperty(m,"isNonNullType",{enumerable:!0,get:function(){return L.isNonNullType}});Object.defineProperty(m,"isNullableType",{enumerable:!0,get:function(){return L.isNullableType}});Object.defineProperty(m,"isObjectType",{enumerable:!0,get:function(){return L.isObjectType}});Object.defineProperty(m,"isOutputType",{enumerable:!0,get:function(){return L.isOutputType}});Object.defineProperty(m,"isRequiredArgument",{enumerable:!0,get:function(){return L.isRequiredArgument}});Object.defineProperty(m,"isRequiredInputField",{enumerable:!0,get:function(){return L.isRequiredInputField}});Object.defineProperty(m,"isScalarType",{enumerable:!0,get:function(){return L.isScalarType}});Object.defineProperty(m,"isSchema",{enumerable:!0,get:function(){return L.isSchema}});Object.defineProperty(m,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return fe.isSchemaCoordinateNode}});Object.defineProperty(m,"isSelectionNode",{enumerable:!0,get:function(){return fe.isSelectionNode}});Object.defineProperty(m,"isSpecifiedDirective",{enumerable:!0,get:function(){return L.isSpecifiedDirective}});Object.defineProperty(m,"isSpecifiedScalarType",{enumerable:!0,get:function(){return L.isSpecifiedScalarType}});Object.defineProperty(m,"isType",{enumerable:!0,get:function(){return L.isType}});Object.defineProperty(m,"isTypeDefinitionNode",{enumerable:!0,get:function(){return fe.isTypeDefinitionNode}});Object.defineProperty(m,"isTypeExtensionNode",{enumerable:!0,get:function(){return fe.isTypeExtensionNode}});Object.defineProperty(m,"isTypeNode",{enumerable:!0,get:function(){return fe.isTypeNode}});Object.defineProperty(m,"isTypeSubTypeOf",{enumerable:!0,get:function(){return me.isTypeSubTypeOf}});Object.defineProperty(m,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return fe.isTypeSystemDefinitionNode}});Object.defineProperty(m,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return fe.isTypeSystemExtensionNode}});Object.defineProperty(m,"isUnionType",{enumerable:!0,get:function(){return L.isUnionType}});Object.defineProperty(m,"isValidNameError",{enumerable:!0,get:function(){return me.isValidNameError}});Object.defineProperty(m,"isValueNode",{enumerable:!0,get:function(){return fe.isValueNode}});Object.defineProperty(m,"isWrappingType",{enumerable:!0,get:function(){return L.isWrappingType}});Object.defineProperty(m,"lexicographicSortSchema",{enumerable:!0,get:function(){return me.lexicographicSortSchema}});Object.defineProperty(m,"locatedError",{enumerable:!0,get:function(){return Ma.locatedError}});Object.defineProperty(m,"parse",{enumerable:!0,get:function(){return fe.parse}});Object.defineProperty(m,"parseConstValue",{enumerable:!0,get:function(){return fe.parseConstValue}});Object.defineProperty(m,"parseSchemaCoordinate",{enumerable:!0,get:function(){return fe.parseSchemaCoordinate}});Object.defineProperty(m,"parseType",{enumerable:!0,get:function(){return fe.parseType}});Object.defineProperty(m,"parseValue",{enumerable:!0,get:function(){return fe.parseValue}});Object.defineProperty(m,"print",{enumerable:!0,get:function(){return fe.print}});Object.defineProperty(m,"printError",{enumerable:!0,get:function(){return Ma.printError}});Object.defineProperty(m,"printIntrospectionSchema",{enumerable:!0,get:function(){return me.printIntrospectionSchema}});Object.defineProperty(m,"printLocation",{enumerable:!0,get:function(){return fe.printLocation}});Object.defineProperty(m,"printSchema",{enumerable:!0,get:function(){return me.printSchema}});Object.defineProperty(m,"printSourceLocation",{enumerable:!0,get:function(){return fe.printSourceLocation}});Object.defineProperty(m,"printType",{enumerable:!0,get:function(){return me.printType}});Object.defineProperty(m,"recommendedRules",{enumerable:!0,get:function(){return re.recommendedRules}});Object.defineProperty(m,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return me.resolveASTSchemaCoordinate}});Object.defineProperty(m,"resolveObjMapThunk",{enumerable:!0,get:function(){return L.resolveObjMapThunk}});Object.defineProperty(m,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return L.resolveReadonlyArrayThunk}});Object.defineProperty(m,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return me.resolveSchemaCoordinate}});Object.defineProperty(m,"responsePathAsArray",{enumerable:!0,get:function(){return Tr.responsePathAsArray}});Object.defineProperty(m,"separateOperations",{enumerable:!0,get:function(){return me.separateOperations}});Object.defineProperty(m,"specifiedDirectives",{enumerable:!0,get:function(){return L.specifiedDirectives}});Object.defineProperty(m,"specifiedRules",{enumerable:!0,get:function(){return re.specifiedRules}});Object.defineProperty(m,"specifiedScalarTypes",{enumerable:!0,get:function(){return L.specifiedScalarTypes}});Object.defineProperty(m,"stripIgnoredCharacters",{enumerable:!0,get:function(){return me.stripIgnoredCharacters}});Object.defineProperty(m,"subscribe",{enumerable:!0,get:function(){return Tr.subscribe}});Object.defineProperty(m,"syntaxError",{enumerable:!0,get:function(){return Ma.syntaxError}});Object.defineProperty(m,"typeFromAST",{enumerable:!0,get:function(){return me.typeFromAST}});Object.defineProperty(m,"validate",{enumerable:!0,get:function(){return re.validate}});Object.defineProperty(m,"validateSchema",{enumerable:!0,get:function(){return L.validateSchema}});Object.defineProperty(m,"valueFromAST",{enumerable:!0,get:function(){return me.valueFromAST}});Object.defineProperty(m,"valueFromASTUntyped",{enumerable:!0,get:function(){return me.valueFromASTUntyped}});Object.defineProperty(m,"version",{enumerable:!0,get:function(){return wI.version}});Object.defineProperty(m,"versionInfo",{enumerable:!0,get:function(){return wI.versionInfo}});Object.defineProperty(m,"visit",{enumerable:!0,get:function(){return fe.visit}});Object.defineProperty(m,"visitInParallel",{enumerable:!0,get:function(){return fe.visitInParallel}});Object.defineProperty(m,"visitWithTypeInfo",{enumerable:!0,get:function(){return me.visitWithTypeInfo}});var wI=x$(),DI=gS(),L=bS(),fe=TS(),Tr=kS(),re=PS(),Ma=LS(),me=kI()});var GI=T((QB,T4)=>{T4.exports={name:"@jackchuka/gql-ingest",version:"4.2.1",description:"A CLI tool for ingesting data from files into a GraphQL API. Supports CSV, JSON, JSONL, and YAML file formats.",keywords:["api","cli","csv","graphql","ingest"],license:"MIT",author:"jackchuka",repository:{type:"git",url:"https://github.com/jackchuka/gql-ingest.git"},bin:{"gql-ingest":"dist/cli/index.js"},files:["dist"],type:"module",main:"dist/index.js",types:"dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js"}},scripts:{lint:"oxlint --type-aware --tsconfig ./tsconfig.json","lint:fix":"oxlint --fix --type-aware --tsconfig ./tsconfig.json",fmt:"oxfmt",build:"node esbuild.config.js","build:types":"tsc --emitDeclarationOnly","build:all":"pnpm run build && pnpm run build:types",dev:"ts-node src/cli/index.ts",test:"jest","test:watch":"jest --watch",prepublishOnly:"pnpm run build:all"},dependencies:{"@inquirer/prompts":"^8.2.0",commander:"^14.0.0","csv-parser":"^3.0.0",graphql:"16.13.2","graphql-request":"^7.2.0","js-yaml":"^4.1.0",tinyglobby:"^0.2.15",zod:"^4.3.5"},devDependencies:{"@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^25.0.2",esbuild:"^0.28.0",jest:"^30.0.3",oxfmt:"^0.43.0",oxlint:"^1.35.0","oxlint-tsgolint":"^0.19.0","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^5.3.0"},engines:{node:">=18"},packageManager:"pnpm@8.14.1"}});import{Command as E4}from"commander";import Bn from"fs";import b_,{posix as fn}from"path";import{fileURLToPath as wk}from"url";import{createRequire as YI}from"module";import{basename as WI,dirname as gl,normalize as XI,relative as eN,resolve as tN,sep as Fb}from"path";import*as rN from"fs";var jb=YI(import.meta.url);function nN(e){let t=XI(e);return t.length>1&&t[t.length-1]===Fb&&(t=t.substring(0,t.length-1)),t}var iN=/[\\/]/g;function Ub(e,t){return e.replace(iN,t)}var oN=/^[a-z]:[\\/]$/i;function aN(e){return e==="/"||oN.test(e)}function hl(e,t){let{resolvePaths:n,normalizePath:i,pathSeparator:r}=t,o=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(n&&(e=tN(e)),(i||o)&&(e=nN(e)),e===".")return"";let a=e[e.length-1]!==r;return Ub(a?e+r:e,r)}function zb(e,t){return t+e}function sN(e,t){return function(n,i){return i.startsWith(e)?i.slice(e.length)+n:Ub(eN(e,i),t.pathSeparator)+t.pathSeparator+n}}function uN(e){return e}function cN(e,t,n){return t+e+n}function lN(e,t){let{relativePaths:n,includeBasePath:i}=t;return n&&e?sN(e,t):i?zb:uN}function pN(e){return function(t,n){n.push(t.substring(e.length)||".")}}function dN(e){return function(t,n,i){let r=t.substring(e.length)||".";i.every(o=>o(r,!0))&&n.push(r)}}var fN=(e,t)=>{t.push(e||".")},mN=(e,t,n)=>{let i=e||".";n.every(r=>r(i,!0))&&t.push(i)},hN=()=>{};function gN(e,t){let{includeDirs:n,filters:i,relativePaths:r}=t;return n?r?i&&i.length?dN(e):pN(e):i&&i.length?mN:fN:hN}var vN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&n.files++},yN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&t.push(e)},bN=(e,t,n,i)=>{n.files++},_N=(e,t)=>{t.push(e)},TN=()=>{};function EN(e){let{excludeFiles:t,filters:n,onlyCounts:i}=e;return t?TN:n&&n.length?i?vN:yN:i?bN:_N}var $N=e=>e,xN=()=>[""].slice(0,0);function ON(e){return e.group?xN:$N}var SN=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},IN=()=>{};function NN(e){return e.group?SN:IN}var kN=function(e,t,n){let{queue:i,fs:r,options:{suppressErrors:o}}=t;i.enqueue(),r.realpath(e,(a,s)=>{if(a)return i.dequeue(o?null:a,t);r.stat(s,(u,c)=>{if(u)return i.dequeue(o?null:u,t);if(c.isDirectory()&&Mb(e,s,t))return i.dequeue(null,t);n(c,s),i.dequeue(null,t)})})},wN=function(e,t,n){let{queue:i,fs:r,options:{suppressErrors:o}}=t;i.enqueue();try{let a=r.realpathSync(e),s=r.statSync(a);if(s.isDirectory()&&Mb(e,a,t))return;n(s,a)}catch(a){if(!o)throw a}};function DN(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?wN:kN}function Mb(e,t,n){if(n.options.useRealPaths)return AN(t,n);let i=gl(e),r=1;for(;i!==n.root&&r<2;){let o=n.symlinks.get(i);!!o&&(o===t||o.startsWith(t)||t.startsWith(o))?r++:i=gl(i)}return n.symlinks.set(e,t),r>1}function AN(e,t){return t.visited.includes(e+t.options.pathSeparator)}var PN=e=>e.counts,LN=e=>e.groups,RN=e=>e.paths,jN=e=>e.paths.slice(0,e.options.maxFiles),CN=(e,t,n)=>(Ja(t,n,e.counts,e.options.suppressErrors),null),FN=(e,t,n)=>(Ja(t,n,e.paths,e.options.suppressErrors),null),UN=(e,t,n)=>(Ja(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),zN=(e,t,n)=>(Ja(t,n,e.groups,e.options.suppressErrors),null);function Ja(e,t,n,i){t(e&&!i?e:null,n)}function MN(e,t){let{onlyCounts:n,group:i,maxFiles:r}=e;return n?t?PN:CN:i?t?LN:zN:r?t?jN:UN:t?RN:FN}var qb={withFileTypes:!0},qN=(e,t,n,i,r)=>{if(e.queue.enqueue(),i<0)return e.queue.dequeue(null,e);let{fs:o}=e;e.visited.push(t),e.counts.directories++,o.readdir(t||".",qb,(a,s=[])=>{r(s,n,i),e.queue.dequeue(e.options.suppressErrors?null:a,e)})},VN=(e,t,n,i,r)=>{let{fs:o}=e;if(i<0)return;e.visited.push(t),e.counts.directories++;let a=[];try{a=o.readdirSync(t||".",qb)}catch(s){if(!e.options.suppressErrors)throw s}r(a,n,i)};function GN(e){return e?VN:qN}var KN=class{count=0;constructor(e){this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},QN=class{_files=0;_directories=0;set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},ZN=class{aborted=!1;abort(){this.aborted=!0}},Vb=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){this.isSynchronous=!n,this.callbackInvoker=MN(t,this.isSynchronous),this.root=hl(e,t),this.state={root:aN(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new QN,options:t,queue:new KN((i,r)=>this.callbackInvoker(r,i,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new ZN,fs:t.fs||rN},this.joinPath=lN(this.root,t),this.pushDirectory=gN(this.root,t),this.pushFile=EN(t),this.getArray=ON(t),this.groupFiles=NN(t),this.resolveSymlink=DN(t,this.isSynchronous),this.walkDirectory=GN(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,t,n)=>{let{paths:i,options:{filters:r,resolveSymlinks:o,excludeSymlinks:a,exclude:s,maxFiles:u,signal:c,useRealPaths:l,pathSeparator:p},controller:d}=this.state;if(d.aborted||c&&c.aborted||u&&i.length>u)return;let f=this.getArray(this.state.paths);for(let h=0;h<e.length;++h){let y=e[h];if(y.isFile()||y.isSymbolicLink()&&!o&&!a){let S=this.joinPath(y.name,t);this.pushFile(S,f,this.state.counts,r)}else if(y.isDirectory()){let S=cN(y.name,t,this.state.options.pathSeparator);if(s&&s(y.name,S))continue;this.pushDirectory(S,i,r),this.walkDirectory(this.state,S,S,n-1,this.walk)}else if(this.resolveSymlink&&y.isSymbolicLink()){let S=zb(y.name,t);this.resolveSymlink(S,this.state,(C,$)=>{if(C.isDirectory()){if($=hl($,this.state.options),s&&s(y.name,l?$:S+p))return;this.walkDirectory(this.state,$,l?$:S+p,n-1,this.walk)}else{$=l?$:S;let G=WI($),B=hl(gl($),this.state.options);$=this.joinPath(G,B),this.pushFile($,f,this.state.counts,r)}})}}this.groupFiles(this.state.groups,t,f)}};function BN(e,t){return new Promise((n,i)=>{Gb(e,t,(r,o)=>{if(r)return i(r);n(o)})})}function Gb(e,t,n){new Vb(e,t,n).start()}function JN(e,t){return new Vb(e,t).start()}var Cb=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return BN(this.root,this.options)}withCallback(e){Gb(this.root,this.options,e)}sync(){return JN(this.root,this.options)}},Kb=null;try{jb.resolve("picomatch"),Kb=jb("picomatch")}catch{}var Qb=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:Fb,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new Cb(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new Cb(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||Kb;if(!n)throw new Error("Please specify a glob function to use glob matching.");var i=this.globCache[e.join("\0")];return i||(i=n(e,...t),this.globCache[e.join("\0")]=i),this.options.filters.push(r=>i(r)),this}};var Hn=Rb(v_(),1),Dk=Array.isArray,__=process.platform==="win32",Ak=/^(\/?\.\.)+$/;function Pk(e,t={}){let n=e.length,i=Array(n),r=Array(n),o=!t.noglobstar;for(let a=0;a<n;a++){let s=T_(e[a]);i[a]=s;let u=s.length,c=Array(u);for(let l=0;l<u;l++)c[l]=(0,Hn.default)(s[l],t);r[a]=c}return a=>{let s=a.split("/");if(s[0]===".."&&Ak.test(a))return!0;for(let u=0;u<e.length;u++){let c=i[u],l=r[u],p=s.length,d=Math.min(p,c.length),f=0;for(;f<d;){let h=c[f];if(h.includes("/"))return!0;if(!l[f](s[f]))break;if(o&&h==="**")return!0;f++}if(f===p)return!0}return!1}}var Lk=/^[A-Z]:\/$/i,Rk=__?e=>Lk.test(e):e=>e==="/";function y_(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let r=Rk(e)?e.length:e.length+1;return(o,a)=>o.slice(r,a?-1:void 0)||"."}let i=t.slice(e.length+1);return i?(r,o)=>{if(r===".")return i;let a=`${i}/${r}`;return o?a.slice(0,-1):a}:(r,o)=>o&&r!=="."?r.slice(0,-1):r}return n?i=>fn.relative(e,i)||".":i=>fn.relative(e,`${t}/${i}`)||"."}function jk(e,t){if(t.startsWith(`${e}/`)){let n=t.slice(e.length+1);return i=>`${n}/${i}`}return n=>{let i=fn.relative(e,`${t}/${n}`);return n.endsWith("/")&&i!==""?`${i}/`:i||"."}}var Ck={parts:!0};function T_(e){var t;let n=Hn.default.scan(e,Ck);return!((t=n.parts)===null||t===void 0)&&t.length?n.parts:[e]}var Fk=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,Uk=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,zk=e=>e.replace(Fk,"\\$&"),Mk=e=>e.replace(Uk,"\\$&"),qk=__?Mk:zk;function Vk(e,t){if(t?.caseSensitiveMatch===!1)return!0;let n=Hn.default.scan(e);return n.isGlob||n.negated}function Jn(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...e)}var Gk=/^(\/?\.\.)+/,Kk=/\\(?=[()[\]{}!*+?@|])/g,Ya=/\\/g;function Il(e,t,n,i,r){let o=e;e.endsWith("/")&&(o=e.slice(0,-1)),!o.endsWith("*")&&t&&(o+="/**");let a=qk(n);b_.isAbsolute(o.replace(Kk,""))?o=fn.relative(a,o):o=fn.normalize(o);let s=Gk.exec(o),u=T_(o);if(s?.[0]){let l=(s[0].length+1)/3,p=0,d=a.split("/");for(;p<l&&u[p+l]===d[d.length+p-l];)o=o.slice(0,(l-p-1)*3)+o.slice((l-p)*3+u[p+l].length+1)||".",p++;let f=fn.join(n,s[0].slice(p*3));!f.startsWith(".")&&i.root.length>f.length&&(i.root=f,i.depthOffset=-l+p)}if(!r&&i.depthOffset>=0){var c;(c=i.commonPath)!==null&&c!==void 0||(i.commonPath=u);let l=[],p=Math.min(i.commonPath.length,u.length);for(let d=0;d<p;d++){let f=u[d];if(f==="**"&&!u[d+1]){l.pop();break}if(f!==i.commonPath[d]||Vk(f)||d===u.length-1)break;l.push(f)}i.depthOffset=l.length,i.commonPath=l,i.root=l.length>0?fn.join(n,...l):n}return o}function Qk({patterns:e=["**/*"],ignore:t=[],expandDirectories:n=!0},i,r){typeof e=="string"&&(e=[e]),typeof t=="string"&&(t=[t]);let o=[],a=[];for(let s of t)s&&(s[0]!=="!"||s[1]==="(")&&a.push(Il(s,n,i,r,!0));for(let s of e)s&&(s[0]!=="!"||s[1]==="("?o.push(Il(s,n,i,r,!1)):(s[1]!=="!"||s[2]==="(")&&a.push(Il(s.slice(1),n,i,r,!0)));return{match:o,ignore:a}}function Zk(e,t){for(let n=e.length-1;n>=0;n--){let i=e[n];e[n]=t(i)}return e}function Bk(e){return e?e instanceof URL?wk(e).replace(Ya,"/"):b_.resolve(e).replace(Ya,"/"):process.cwd().replace(Ya,"/")}function Jk(e,t={}){let n=process.env.TINYGLOBBY_DEBUG?{...t,debug:!0}:t,i=Bk(n.cwd);if(n.debug&&Jn("globbing with:",{patterns:e,options:n,cwd:i}),Array.isArray(e)&&e.length===0)return[{sync:()=>[],withPromise:async()=>[]},!1];let r={root:i,commonPath:null,depthOffset:0},o=Qk({...n,patterns:e},i,r);n.debug&&Jn("internal processing patterns:",o);let a={dot:n.dot,nobrace:n.braceExpansion===!1,nocase:n.caseSensitiveMatch===!1,noextglob:n.extglob===!1,noglobstar:n.globstar===!1,posix:!0},s=(0,Hn.default)(o.match,{...a,ignore:o.ignore}),u=(0,Hn.default)(o.ignore,a),c=Pk(o.match,a),l=y_(i,r.root,n.absolute),p=n.absolute?l:y_(i,r.root,!0),d={filters:[n.debug?(y,S)=>{let C=l(y,S),$=s(C);return $&&Jn(`matched ${C}`),$}:(y,S)=>s(l(y,S))],exclude:n.debug?(y,S)=>{let C=p(S,!0),$=C!=="."&&!c(C)||u(C);return Jn($?`skipped ${S}`:`crawling ${S}`),$}:(y,S)=>{let C=p(S,!0);return C!=="."&&!c(C)||u(C)},fs:n.fs?{readdir:n.fs.readdir||Bn.readdir,readdirSync:n.fs.readdirSync||Bn.readdirSync,realpath:n.fs.realpath||Bn.realpath,realpathSync:n.fs.realpathSync||Bn.realpathSync,stat:n.fs.stat||Bn.stat,statSync:n.fs.statSync||Bn.statSync}:void 0,pathSeparator:"/",relativePaths:!0,resolveSymlinks:!0,signal:n.signal};n.deep!==void 0&&(d.maxDepth=Math.round(n.deep-r.depthOffset)),n.absolute&&(d.relativePaths=!1,d.resolvePaths=!0,d.includeBasePath=!0),n.followSymbolicLinks===!1&&(d.resolveSymlinks=!1,d.excludeSymlinks=!0),n.onlyDirectories?(d.excludeFiles=!0,d.includeDirs=!0):n.onlyFiles===!1&&(d.includeDirs=!0),r.root=r.root.replace(Ya,"");let f=r.root;n.debug&&Jn("internal properties:",r);let h=i!==f&&!n.absolute&&jk(i,r.root);return[new Qb(d).crawl(f),h]}function E_(e,t){if(e&&t?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");let n=Dk(e)||typeof e=="string",i=n?t:e,r=n?e:e.patterns,[o,a]=Jk(r,i);return a?Zk(o.sync(),a):o.sync()}import{EventEmitter as u4}from"events";import{GraphQLClient as rR}from"graphql-request";import eR from"fs";function F_(e){return typeof e>"u"||e===null}function Hk(e){return typeof e=="object"&&e!==null}function Yk(e){return Array.isArray(e)?e:F_(e)?[]:[e]}function Wk(e,t){var n,i,r,o;if(t)for(o=Object.keys(t),n=0,i=o.length;n<i;n+=1)r=o[n],e[r]=t[r];return e}function Xk(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function ew(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var tw=F_,rw=Hk,nw=Yk,iw=Xk,ow=ew,aw=Wk,Be={isNothing:tw,isObject:rw,toArray:nw,repeat:iw,isNegativeZero:ow,extend:aw};function U_(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
185
185
|
|
|
186
186
|
`+e.mark.snippet),i+" "+n):i}function io(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=U_(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}io.prototype=Object.create(Error.prototype);io.prototype.constructor=io;io.prototype.toString=function(t){return this.name+": "+U_(this,t)};var lt=io;function Nl(e,t,n,i,r){var o="",a="",s=Math.floor(r/2)-1;return i-t>s&&(o=" ... ",t=i-s+o.length),n-i>s&&(a=" ...",n=i+s-a.length),{str:o+e.slice(t,n).replace(/\t/g,"\u2192")+a,pos:i-t+o.length}}function kl(e,t){return Be.repeat(" ",t-e.length)+e}function sw(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,i=[0],r=[],o,a=-1;o=n.exec(e.buffer);)r.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s="",u,c,l=Math.min(e.line+t.linesAfter,r.length).toString().length,p=t.maxLength-(t.indent+l+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)c=Nl(e.buffer,i[a-u],r[a-u],e.position-(i[a]-i[a-u]),p),s=Be.repeat(" ",t.indent)+kl((e.line-u+1).toString(),l)+" | "+c.str+`
|
|
187
187
|
`+s;for(c=Nl(e.buffer,i[a],r[a],e.position,p),s+=Be.repeat(" ",t.indent)+kl((e.line+1).toString(),l)+" | "+c.str+`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jackchuka/gql-ingest",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "A CLI tool for ingesting data from files into a GraphQL API. Supports CSV, JSON, JSONL, and YAML file formats.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@types/jest": "^30.0.0",
|
|
45
45
|
"@types/js-yaml": "^4.0.9",
|
|
46
46
|
"@types/node": "^25.0.2",
|
|
47
|
-
"esbuild": "^0.
|
|
47
|
+
"esbuild": "^0.28.0",
|
|
48
48
|
"jest": "^30.0.3",
|
|
49
|
-
"oxfmt": "^0.
|
|
49
|
+
"oxfmt": "^0.43.0",
|
|
50
50
|
"oxlint": "^1.35.0",
|
|
51
|
-
"oxlint-tsgolint": "^0.
|
|
51
|
+
"oxlint-tsgolint": "^0.19.0",
|
|
52
52
|
"ts-jest": "^29.4.0",
|
|
53
53
|
"ts-node": "^10.9.0",
|
|
54
54
|
"typescript": "^5.3.0"
|