@jackchuka/gql-ingest 4.2.2 → 4.2.3
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 +3 -3
package/dist/cli/index.js
CHANGED
|
@@ -181,7 +181,7 @@ ${t.join(`
|
|
|
181
181
|
`+t+")"}function _b(e){let t=(0,sV.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,nl.print)(t)}`),n+xb(e.deprecationReason)}function bV(e){return Kt(e)+"directive @"+e.name+nI(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function xb(e){return e==null?"":e!==Eb.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,nl.print)({kind:Tb.Kind.STRING,value:e})})`:" @deprecated"}function _V(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,nl.print)({kind:Tb.Kind.STRING,value:e.specifiedByURL})})`}function Kt(e,t="",n=!0){let{description:i}=e;if(i==null)return"";let r=(0,nl.print)({kind:Tb.Kind.STRING,value:i,block:(0,oV.isPrintableAsBlockString)(i)});return(t&&!n?`
|
|
182
182
|
`+t:t)+r.replace(/\n/g,`
|
|
183
183
|
`+t)+`
|
|
184
|
-
`}});var oI=T(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0});Ob.concatAST=EV;var TV=le();function EV(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:TV.Kind.DOCUMENT,definitions:t}}});var uI=T(Sb=>{"use strict";Object.defineProperty(Sb,"__esModule",{value:!0});Sb.separateOperations=xV;var il=le(),$V=kn();function xV(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case il.Kind.OPERATION_DEFINITION:t.push(r);break;case il.Kind.FRAGMENT_DEFINITION:n[r.name.value]=aI(r.selectionSet);break;default:}let i=Object.create(null);for(let r of t){let o=new Set;for(let s of aI(r.selectionSet))sI(o,n,s);let a=r.name?r.name.value:"";i[a]={kind:il.Kind.DOCUMENT,definitions:e.definitions.filter(s=>s===r||s.kind===il.Kind.FRAGMENT_DEFINITION&&o.has(s.name.value))}}return i}function sI(e,t,n){if(!e.has(n)){e.add(n);let i=t[n];if(i!==void 0)for(let r of i)sI(e,t,r)}}function aI(e){let t=[];return(0,$V.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var pI=T(Nb=>{"use strict";Object.defineProperty(Nb,"__esModule",{value:!0});Nb.stripIgnoredCharacters=SV;var OV=Qo(),cI=Jo(),lI=Hu(),Ib=Pi();function SV(e){let t=(0,lI.isSource)(e)?e:new lI.Source(e),n=t.body,i=new cI.Lexer(t),r="",o=!1;for(;i.advance().kind!==Ib.TokenKind.EOF;){let a=i.token,s=a.kind,u=!(0,cI.isPunctuatorTokenKind)(a.kind);o&&(u||a.kind===Ib.TokenKind.SPREAD)&&(r+=" ");let c=n.slice(a.start,a.end);s===Ib.TokenKind.BLOCK_STRING?r+=(0,OV.printBlockString)(a.value,{minimize:!0}):r+=c,o=u}return r}});var fI=T(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.assertValidName=wV;ol.isValidNameError=dI;var IV=ht(),NV=B(),kV=ta();function wV(e){let t=dI(e);if(t)throw t;return e}function dI(e){if(typeof e=="string"||(0,IV.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new NV.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,kV.assertName)(e)}catch(t){return t}}});var TI=T(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.DangerousChangeType=_r.BreakingChangeType=void 0;_r.findBreakingChanges=jV;_r.findDangerousChanges=CV;var DV=Ee(),bI=ot(),mI=rn(),AV=kt(),ye=pe(),PV=gr(),LV=fa(),RV=kv(),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 jV(e,t){return _I(e,t).filter(n=>n.type in Me)}function CV(e,t){return _I(e,t).filter(n=>n.type in nr)}function _I(e,t){return[...UV(e,t),...FV(e,t)]}function FV(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,ye.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 UV(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,PV.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,ye.isEnumType)(r)&&(0,ye.isEnumType)(o)?n.push(...qV(r,o)):(0,ye.isUnionType)(r)&&(0,ye.isUnionType)(o)?n.push(...MV(r,o)):(0,ye.isInputObjectType)(r)&&(0,ye.isInputObjectType)(o)?n.push(...zV(r,o)):(0,ye.isObjectType)(r)&&(0,ye.isObjectType)(o)?n.push(...gI(r,o),...hI(r,o)):(0,ye.isInterfaceType)(r)&&(0,ye.isInterfaceType)(o)?n.push(...gI(r,o),...hI(r,o)):r.constructor!==o.constructor&&n.push({type:Me.TYPE_CHANGED_KIND,description:`${r.name} changed from ${vI(r)} to ${vI(o)}.`});return n}function zV(e,t){let n=[],i=jr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.added)(0,ye.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)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 MV(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 qV(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 hI(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 gI(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(...VV(e,r,o)),Ca(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 VV(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(!Fa(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=yI(o.defaultValue,o.type),c=yI(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,ye.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 Ca(e,t){return(0,ye.isListType)(e)?(0,ye.isListType)(t)&&Ca(e.ofType,t.ofType)||(0,ye.isNonNullType)(t)&&Ca(e,t.ofType):(0,ye.isNonNullType)(e)?(0,ye.isNonNullType)(t)&&Ca(e.ofType,t.ofType):(0,ye.isNamedType)(t)&&e.name===t.name||(0,ye.isNonNullType)(t)&&Ca(e,t.ofType)}function Fa(e,t){return(0,ye.isListType)(e)?(0,ye.isListType)(t)&&Fa(e.ofType,t.ofType):(0,ye.isNonNullType)(e)?(0,ye.isNonNullType)(t)&&Fa(e.ofType,t.ofType)||!(0,ye.isNonNullType)(t)&&Fa(e.ofType,t):(0,ye.isNamedType)(t)&&e.name===t.name}function vI(e){if((0,ye.isScalarType)(e))return"a Scalar type";if((0,ye.isObjectType)(e))return"an Object type";if((0,ye.isInterfaceType)(e))return"an Interface type";if((0,ye.isUnionType)(e))return"a Union type";if((0,ye.isEnumType)(e))return"an Enum type";if((0,ye.isInputObjectType)(e))return"an Input type";(0,bI.invariant)(!1,"Unexpected type: "+(0,DV.inspect)(e))}function yI(e,t){let n=(0,LV.astFromValue)(e,t);return n!=null||(0,bI.invariant)(!1),(0,AV.print)((0,RV.sortValueNode)(n))}function jr(e,t){let n=[],i=[],r=[],o=(0,mI.keyMap)(e,({name:s})=>s),a=(0,mI.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 $I=T(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.resolveASTSchemaCoordinate=EI;al.resolveSchemaCoordinate=KV;var Vn=Ee(),Ua=le(),GV=Nn(),pn=pe();function KV(e,t){return EI(e,(0,GV.parseSchemaCoordinate)(t))}function QV(e,t){let n=t.name.value,i=e.getType(n);if(i!=null)return{kind:"NamedType",type:i}}function ZV(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 BV(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 JV(e,t){let n=t.name.value,i=e.getDirective(n);if(i)return{kind:"Directive",directive:i}}function HV(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 EI(e,t){switch(t.kind){case Ua.Kind.TYPE_COORDINATE:return QV(e,t);case Ua.Kind.MEMBER_COORDINATE:return ZV(e,t);case Ua.Kind.ARGUMENT_COORDINATE:return BV(e,t);case Ua.Kind.DIRECTIVE_COORDINATE:return JV(e,t);case Ua.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return HV(e,t)}}});var NI=T(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});Object.defineProperty(fe,"BreakingChangeType",{enumerable:!0,get:function(){return sl.BreakingChangeType}});Object.defineProperty(fe,"DangerousChangeType",{enumerable:!0,get:function(){return sl.DangerousChangeType}});Object.defineProperty(fe,"TypeInfo",{enumerable:!0,get:function(){return OI.TypeInfo}});Object.defineProperty(fe,"assertValidName",{enumerable:!0,get:function(){return SI.assertValidName}});Object.defineProperty(fe,"astFromValue",{enumerable:!0,get:function(){return s4.astFromValue}});Object.defineProperty(fe,"buildASTSchema",{enumerable:!0,get:function(){return xI.buildASTSchema}});Object.defineProperty(fe,"buildClientSchema",{enumerable:!0,get:function(){return t4.buildClientSchema}});Object.defineProperty(fe,"buildSchema",{enumerable:!0,get:function(){return xI.buildSchema}});Object.defineProperty(fe,"coerceInputValue",{enumerable:!0,get:function(){return u4.coerceInputValue}});Object.defineProperty(fe,"concatAST",{enumerable:!0,get:function(){return c4.concatAST}});Object.defineProperty(fe,"doTypesOverlap",{enumerable:!0,get:function(){return wb.doTypesOverlap}});Object.defineProperty(fe,"extendSchema",{enumerable:!0,get:function(){return r4.extendSchema}});Object.defineProperty(fe,"findBreakingChanges",{enumerable:!0,get:function(){return sl.findBreakingChanges}});Object.defineProperty(fe,"findDangerousChanges",{enumerable:!0,get:function(){return sl.findDangerousChanges}});Object.defineProperty(fe,"getIntrospectionQuery",{enumerable:!0,get:function(){return YV.getIntrospectionQuery}});Object.defineProperty(fe,"getOperationAST",{enumerable:!0,get:function(){return WV.getOperationAST}});Object.defineProperty(fe,"getOperationRootType",{enumerable:!0,get:function(){return XV.getOperationRootType}});Object.defineProperty(fe,"introspectionFromSchema",{enumerable:!0,get:function(){return e4.introspectionFromSchema}});Object.defineProperty(fe,"isEqualType",{enumerable:!0,get:function(){return wb.isEqualType}});Object.defineProperty(fe,"isTypeSubTypeOf",{enumerable:!0,get:function(){return wb.isTypeSubTypeOf}});Object.defineProperty(fe,"isValidNameError",{enumerable:!0,get:function(){return SI.isValidNameError}});Object.defineProperty(fe,"lexicographicSortSchema",{enumerable:!0,get:function(){return n4.lexicographicSortSchema}});Object.defineProperty(fe,"printIntrospectionSchema",{enumerable:!0,get:function(){return kb.printIntrospectionSchema}});Object.defineProperty(fe,"printSchema",{enumerable:!0,get:function(){return kb.printSchema}});Object.defineProperty(fe,"printType",{enumerable:!0,get:function(){return kb.printType}});Object.defineProperty(fe,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return II.resolveASTSchemaCoordinate}});Object.defineProperty(fe,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return II.resolveSchemaCoordinate}});Object.defineProperty(fe,"separateOperations",{enumerable:!0,get:function(){return l4.separateOperations}});Object.defineProperty(fe,"stripIgnoredCharacters",{enumerable:!0,get:function(){return p4.stripIgnoredCharacters}});Object.defineProperty(fe,"typeFromAST",{enumerable:!0,get:function(){return i4.typeFromAST}});Object.defineProperty(fe,"valueFromAST",{enumerable:!0,get:function(){return o4.valueFromAST}});Object.defineProperty(fe,"valueFromASTUntyped",{enumerable:!0,get:function(){return a4.valueFromASTUntyped}});Object.defineProperty(fe,"visitWithTypeInfo",{enumerable:!0,get:function(){return OI.visitWithTypeInfo}});var YV=pb(),WV=LS(),XV=RS(),e4=jS(),t4=FS(),xI=BS(),r4=vb(),n4=YS(),kb=iI(),i4=vr(),o4=$a(),a4=Og(),s4=fa(),OI=Sc(),u4=Yv(),c4=oI(),l4=uI(),p4=pI(),wb=aa(),SI=fI(),sl=TI(),II=$I()});var DI=T(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});Object.defineProperty(m,"BREAK",{enumerable:!0,get:function(){return he.BREAK}});Object.defineProperty(m,"BreakingChangeType",{enumerable:!0,get:function(){return ge.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 ge.DangerousChangeType}});Object.defineProperty(m,"DirectiveLocation",{enumerable:!0,get:function(){return he.DirectiveLocation}});Object.defineProperty(m,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return ne.ExecutableDefinitionsRule}});Object.defineProperty(m,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return ne.FieldsOnCorrectTypeRule}});Object.defineProperty(m,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return ne.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 za.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 he.Kind}});Object.defineProperty(m,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return ne.KnownArgumentNamesRule}});Object.defineProperty(m,"KnownDirectivesRule",{enumerable:!0,get:function(){return ne.KnownDirectivesRule}});Object.defineProperty(m,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return ne.KnownFragmentNamesRule}});Object.defineProperty(m,"KnownTypeNamesRule",{enumerable:!0,get:function(){return ne.KnownTypeNamesRule}});Object.defineProperty(m,"Lexer",{enumerable:!0,get:function(){return he.Lexer}});Object.defineProperty(m,"Location",{enumerable:!0,get:function(){return he.Location}});Object.defineProperty(m,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return ne.LoneAnonymousOperationRule}});Object.defineProperty(m,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return ne.LoneSchemaDefinitionRule}});Object.defineProperty(m,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return ne.MaxIntrospectionDepthRule}});Object.defineProperty(m,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return ne.NoDeprecatedCustomRule}});Object.defineProperty(m,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return ne.NoFragmentCyclesRule}});Object.defineProperty(m,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return ne.NoSchemaIntrospectionCustomRule}});Object.defineProperty(m,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return ne.NoUndefinedVariablesRule}});Object.defineProperty(m,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return ne.NoUnusedFragmentsRule}});Object.defineProperty(m,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return ne.NoUnusedVariablesRule}});Object.defineProperty(m,"OperationTypeNode",{enumerable:!0,get:function(){return he.OperationTypeNode}});Object.defineProperty(m,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return ne.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(m,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return ne.PossibleFragmentSpreadsRule}});Object.defineProperty(m,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return ne.PossibleTypeExtensionsRule}});Object.defineProperty(m,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return ne.ProvidedRequiredArgumentsRule}});Object.defineProperty(m,"ScalarLeafsRule",{enumerable:!0,get:function(){return ne.ScalarLeafsRule}});Object.defineProperty(m,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return L.SchemaMetaFieldDef}});Object.defineProperty(m,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return ne.SingleFieldSubscriptionsRule}});Object.defineProperty(m,"Source",{enumerable:!0,get:function(){return he.Source}});Object.defineProperty(m,"Token",{enumerable:!0,get:function(){return he.Token}});Object.defineProperty(m,"TokenKind",{enumerable:!0,get:function(){return he.TokenKind}});Object.defineProperty(m,"TypeInfo",{enumerable:!0,get:function(){return ge.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 ne.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(m,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return ne.UniqueArgumentNamesRule}});Object.defineProperty(m,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return ne.UniqueDirectiveNamesRule}});Object.defineProperty(m,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return ne.UniqueDirectivesPerLocationRule}});Object.defineProperty(m,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return ne.UniqueEnumValueNamesRule}});Object.defineProperty(m,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return ne.UniqueFieldDefinitionNamesRule}});Object.defineProperty(m,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return ne.UniqueFragmentNamesRule}});Object.defineProperty(m,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return ne.UniqueInputFieldNamesRule}});Object.defineProperty(m,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return ne.UniqueOperationNamesRule}});Object.defineProperty(m,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return ne.UniqueOperationTypesRule}});Object.defineProperty(m,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return ne.UniqueTypeNamesRule}});Object.defineProperty(m,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return ne.UniqueVariableNamesRule}});Object.defineProperty(m,"ValidationContext",{enumerable:!0,get:function(){return ne.ValidationContext}});Object.defineProperty(m,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return ne.ValuesOfCorrectTypeRule}});Object.defineProperty(m,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return ne.VariablesAreInputTypesRule}});Object.defineProperty(m,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return ne.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 ge.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 ge.astFromValue}});Object.defineProperty(m,"buildASTSchema",{enumerable:!0,get:function(){return ge.buildASTSchema}});Object.defineProperty(m,"buildClientSchema",{enumerable:!0,get:function(){return ge.buildClientSchema}});Object.defineProperty(m,"buildSchema",{enumerable:!0,get:function(){return ge.buildSchema}});Object.defineProperty(m,"coerceInputValue",{enumerable:!0,get:function(){return ge.coerceInputValue}});Object.defineProperty(m,"concatAST",{enumerable:!0,get:function(){return ge.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 ge.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 ge.extendSchema}});Object.defineProperty(m,"findBreakingChanges",{enumerable:!0,get:function(){return ge.findBreakingChanges}});Object.defineProperty(m,"findDangerousChanges",{enumerable:!0,get:function(){return ge.findDangerousChanges}});Object.defineProperty(m,"formatError",{enumerable:!0,get:function(){return za.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 he.getEnterLeaveForKind}});Object.defineProperty(m,"getIntrospectionQuery",{enumerable:!0,get:function(){return ge.getIntrospectionQuery}});Object.defineProperty(m,"getLocation",{enumerable:!0,get:function(){return he.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 ge.getOperationAST}});Object.defineProperty(m,"getOperationRootType",{enumerable:!0,get:function(){return ge.getOperationRootType}});Object.defineProperty(m,"getVariableValues",{enumerable:!0,get:function(){return Tr.getVariableValues}});Object.defineProperty(m,"getVisitFn",{enumerable:!0,get:function(){return he.getVisitFn}});Object.defineProperty(m,"graphql",{enumerable:!0,get:function(){return wI.graphql}});Object.defineProperty(m,"graphqlSync",{enumerable:!0,get:function(){return wI.graphqlSync}});Object.defineProperty(m,"introspectionFromSchema",{enumerable:!0,get:function(){return ge.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 he.isConstValueNode}});Object.defineProperty(m,"isDefinitionNode",{enumerable:!0,get:function(){return he.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 ge.isEqualType}});Object.defineProperty(m,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return he.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 he.isSchemaCoordinateNode}});Object.defineProperty(m,"isSelectionNode",{enumerable:!0,get:function(){return he.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 he.isTypeDefinitionNode}});Object.defineProperty(m,"isTypeExtensionNode",{enumerable:!0,get:function(){return he.isTypeExtensionNode}});Object.defineProperty(m,"isTypeNode",{enumerable:!0,get:function(){return he.isTypeNode}});Object.defineProperty(m,"isTypeSubTypeOf",{enumerable:!0,get:function(){return ge.isTypeSubTypeOf}});Object.defineProperty(m,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return he.isTypeSystemDefinitionNode}});Object.defineProperty(m,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return he.isTypeSystemExtensionNode}});Object.defineProperty(m,"isUnionType",{enumerable:!0,get:function(){return L.isUnionType}});Object.defineProperty(m,"isValidNameError",{enumerable:!0,get:function(){return ge.isValidNameError}});Object.defineProperty(m,"isValueNode",{enumerable:!0,get:function(){return he.isValueNode}});Object.defineProperty(m,"isWrappingType",{enumerable:!0,get:function(){return L.isWrappingType}});Object.defineProperty(m,"lexicographicSortSchema",{enumerable:!0,get:function(){return ge.lexicographicSortSchema}});Object.defineProperty(m,"locatedError",{enumerable:!0,get:function(){return za.locatedError}});Object.defineProperty(m,"parse",{enumerable:!0,get:function(){return he.parse}});Object.defineProperty(m,"parseConstValue",{enumerable:!0,get:function(){return he.parseConstValue}});Object.defineProperty(m,"parseSchemaCoordinate",{enumerable:!0,get:function(){return he.parseSchemaCoordinate}});Object.defineProperty(m,"parseType",{enumerable:!0,get:function(){return he.parseType}});Object.defineProperty(m,"parseValue",{enumerable:!0,get:function(){return he.parseValue}});Object.defineProperty(m,"print",{enumerable:!0,get:function(){return he.print}});Object.defineProperty(m,"printError",{enumerable:!0,get:function(){return za.printError}});Object.defineProperty(m,"printIntrospectionSchema",{enumerable:!0,get:function(){return ge.printIntrospectionSchema}});Object.defineProperty(m,"printLocation",{enumerable:!0,get:function(){return he.printLocation}});Object.defineProperty(m,"printSchema",{enumerable:!0,get:function(){return ge.printSchema}});Object.defineProperty(m,"printSourceLocation",{enumerable:!0,get:function(){return he.printSourceLocation}});Object.defineProperty(m,"printType",{enumerable:!0,get:function(){return ge.printType}});Object.defineProperty(m,"recommendedRules",{enumerable:!0,get:function(){return ne.recommendedRules}});Object.defineProperty(m,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return ge.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 ge.resolveSchemaCoordinate}});Object.defineProperty(m,"responsePathAsArray",{enumerable:!0,get:function(){return Tr.responsePathAsArray}});Object.defineProperty(m,"separateOperations",{enumerable:!0,get:function(){return ge.separateOperations}});Object.defineProperty(m,"specifiedDirectives",{enumerable:!0,get:function(){return L.specifiedDirectives}});Object.defineProperty(m,"specifiedRules",{enumerable:!0,get:function(){return ne.specifiedRules}});Object.defineProperty(m,"specifiedScalarTypes",{enumerable:!0,get:function(){return L.specifiedScalarTypes}});Object.defineProperty(m,"stripIgnoredCharacters",{enumerable:!0,get:function(){return ge.stripIgnoredCharacters}});Object.defineProperty(m,"subscribe",{enumerable:!0,get:function(){return Tr.subscribe}});Object.defineProperty(m,"syntaxError",{enumerable:!0,get:function(){return za.syntaxError}});Object.defineProperty(m,"typeFromAST",{enumerable:!0,get:function(){return ge.typeFromAST}});Object.defineProperty(m,"validate",{enumerable:!0,get:function(){return ne.validate}});Object.defineProperty(m,"validateSchema",{enumerable:!0,get:function(){return L.validateSchema}});Object.defineProperty(m,"valueFromAST",{enumerable:!0,get:function(){return ge.valueFromAST}});Object.defineProperty(m,"valueFromASTUntyped",{enumerable:!0,get:function(){return ge.valueFromASTUntyped}});Object.defineProperty(m,"version",{enumerable:!0,get:function(){return kI.version}});Object.defineProperty(m,"versionInfo",{enumerable:!0,get:function(){return kI.versionInfo}});Object.defineProperty(m,"visit",{enumerable:!0,get:function(){return he.visit}});Object.defineProperty(m,"visitInParallel",{enumerable:!0,get:function(){return he.visitInParallel}});Object.defineProperty(m,"visitWithTypeInfo",{enumerable:!0,get:function(){return ge.visitWithTypeInfo}});var kI=$$(),wI=hS(),L=yS(),he=_S(),Tr=NS(),ne=AS(),za=PS(),ge=NI()});var VI=T((tJ,w4)=>{w4.exports={name:"@jackchuka/gql-ingest",version:"4.2.2",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.44.0",oxlint:"^1.35.0","oxlint-tsgolint":"^0.20.0","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^6.0.2"},engines:{node:">=18"},packageManager:"pnpm@10.33.0"}});import{Command as D4}from"commander";import{readdir as kk,readdirSync as wk,realpath as Dk,realpathSync as Ak,stat as Pk,statSync as Lk}from"fs";import{isAbsolute as Rk,posix as fn,resolve as jk}from"path";import{fileURLToPath as Ck}from"url";import{createRequire as HI}from"module";import{basename as YI,dirname as ml,normalize as WI,relative as XI,resolve as eN,sep as jb}from"path";import*as tN from"fs";var Lb=HI(import.meta.url);function rN(e){let t=WI(e);return t.length>1&&t[t.length-1]===jb&&(t=t.substring(0,t.length-1)),t}var nN=/[\\/]/g;function Cb(e,t){return e.replace(nN,t)}var iN=/^[a-z]:[\\/]$/i;function oN(e){return e==="/"||iN.test(e)}function fl(e,t){let{resolvePaths:n,normalizePath:i,pathSeparator:r}=t,o=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(n&&(e=eN(e)),(i||o)&&(e=rN(e)),e===".")return"";let a=e[e.length-1]!==r;return Cb(a?e+r:e,r)}function Fb(e,t){return t+e}function aN(e,t){return function(n,i){return i.startsWith(e)?i.slice(e.length)+n:Cb(XI(e,i),t.pathSeparator)+t.pathSeparator+n}}function sN(e){return e}function uN(e,t,n){return t+e+n}function cN(e,t){let{relativePaths:n,includeBasePath:i}=t;return n&&e?aN(e,t):i?Fb:sN}function lN(e){return function(t,n){n.push(t.substring(e.length)||".")}}function pN(e){return function(t,n,i){let r=t.substring(e.length)||".";i.every(o=>o(r,!0))&&n.push(r)}}var dN=(e,t)=>{t.push(e||".")},fN=(e,t,n)=>{let i=e||".";n.every(r=>r(i,!0))&&t.push(i)},mN=()=>{};function hN(e,t){let{includeDirs:n,filters:i,relativePaths:r}=t;return n?r?i&&i.length?pN(e):lN(e):i&&i.length?fN:dN:mN}var gN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&n.files++},vN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&t.push(e)},yN=(e,t,n,i)=>{n.files++},bN=(e,t)=>{t.push(e)},_N=()=>{};function TN(e){let{excludeFiles:t,filters:n,onlyCounts:i}=e;return t?_N:n&&n.length?i?gN:vN:i?yN:bN}var EN=e=>e,$N=()=>[""].slice(0,0);function xN(e){return e.group?$N:EN}var ON=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},SN=()=>{};function IN(e){return e.group?ON:SN}var NN=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()&&Ub(e,s,t))return i.dequeue(null,t);n(c,s),i.dequeue(null,t)})})},kN=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()&&Ub(e,a,t))return;n(s,a)}catch(a){if(!o)throw a}};function wN(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?kN:NN}function Ub(e,t,n){if(n.options.useRealPaths)return DN(t,n);let i=ml(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=ml(i)}return n.symlinks.set(e,t),r>1}function DN(e,t){return t.visited.includes(e+t.options.pathSeparator)}var AN=e=>e.counts,PN=e=>e.groups,LN=e=>e.paths,RN=e=>e.paths.slice(0,e.options.maxFiles),jN=(e,t,n)=>(Ba(t,n,e.counts,e.options.suppressErrors),null),CN=(e,t,n)=>(Ba(t,n,e.paths,e.options.suppressErrors),null),FN=(e,t,n)=>(Ba(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),UN=(e,t,n)=>(Ba(t,n,e.groups,e.options.suppressErrors),null);function Ba(e,t,n,i){t(e&&!i?e:null,n)}function zN(e,t){let{onlyCounts:n,group:i,maxFiles:r}=e;return n?t?AN:jN:i?t?PN:UN:r?t?RN:FN:t?LN:CN}var zb={withFileTypes:!0},MN=(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||".",zb,(a,s=[])=>{r(s,n,i),e.queue.dequeue(e.options.suppressErrors?null:a,e)})},qN=(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||".",zb)}catch(s){if(!e.options.suppressErrors)throw s}r(a,n,i)};function VN(e){return e?qN:MN}var GN=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))}},KN=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}},QN=class{aborted=!1;abort(){this.aborted=!0}},Mb=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){this.isSynchronous=!n,this.callbackInvoker=zN(t,this.isSynchronous),this.root=fl(e,t),this.state={root:oN(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new KN,options:t,queue:new GN((i,r)=>this.callbackInvoker(r,i,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new QN,fs:t.fs||tN},this.joinPath=cN(this.root,t),this.pushDirectory=hN(this.root,t),this.pushFile=TN(t),this.getArray=xN(t),this.groupFiles=IN(t),this.resolveSymlink=wN(t,this.isSynchronous),this.walkDirectory=VN(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 I=this.joinPath(y.name,t);this.pushFile(I,f,this.state.counts,r)}else if(y.isDirectory()){let I=uN(y.name,t,this.state.options.pathSeparator);if(s&&s(y.name,I))continue;this.pushDirectory(I,i,r),this.walkDirectory(this.state,I,I,n-1,this.walk)}else if(this.resolveSymlink&&y.isSymbolicLink()){let I=Fb(y.name,t);this.resolveSymlink(I,this.state,(U,x)=>{if(U.isDirectory()){if(x=fl(x,this.state.options),s&&s(y.name,l?x:I+p))return;this.walkDirectory(this.state,x,l?x:I+p,n-1,this.walk)}else{x=l?x:I;let V=YI(x),Z=fl(ml(x),this.state.options);x=this.joinPath(V,Z),this.pushFile(x,f,this.state.counts,r)}})}}this.groupFiles(this.state.groups,t,f)}};function ZN(e,t){return new Promise((n,i)=>{qb(e,t,(r,o)=>{if(r)return i(r);n(o)})})}function qb(e,t,n){new Mb(e,t,n).start()}function BN(e,t){return new Mb(e,t).start()}var Rb=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return ZN(this.root,this.options)}withCallback(e){qb(this.root,this.options,e)}sync(){return BN(this.root,this.options)}},Vb=null;try{Lb.resolve("picomatch"),Vb=Lb("picomatch")}catch{}var Gb=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:jb,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 Rb(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new Rb(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||Vb;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 Bn=Pb(h_(),1),Fk=Array.isArray,v_=/\\/g,y_=process.platform==="win32",Uk=/^(\/?\.\.)+$/;function zk(e,t={}){let n=e.length,i=Array(n),r=Array(n),o,a;for(o=0;o<n;o++){let s=b_(e[o]);i[o]=s;let u=s.length,c=Array(u);for(a=0;a<u;a++)c[a]=(0,Bn.default)(s[a],t);r[o]=c}return s=>{let u=s.split("/");if(u[0]===".."&&Uk.test(s))return!0;for(o=0;o<n;o++){let c=i[o],l=r[o],p=u.length,d=Math.min(p,c.length);for(a=0;a<d;){let f=c[a];if(f.includes("/"))return!0;if(!l[a](u[a]))break;if(!t.noglobstar&&f==="**")return!0;a++}if(a===p)return!0}return!1}}var Mk=/^[A-Z]:\/$/i,qk=y_?e=>Mk.test(e):e=>e==="/";function g_(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let r=e.length+ +!qk(e);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 Vk(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[n.length-1]==="/"&&i!==""?`${i}/`:i||"."}}var Gk={parts:!0};function b_(e){var t;let n=Bn.default.scan(e,Gk);return!((t=n.parts)===null||t===void 0)&&t.length?n.parts:[e]}var Kk=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,Qk=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,Zk=e=>e.replace(Kk,"\\$&"),Bk=e=>e.replace(Qk,"\\$&"),Jk=y_?Bk:Zk;function Hk(e,t){if(t?.caseSensitiveMatch===!1)return!0;let n=Bn.default.scan(e);return n.isGlob||n.negated}function to(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...e)}function __(e){return typeof e=="string"?[e]:e??[]}var Yk=/^(\/?\.\.)+/,Wk=/\\(?=[()[\]{}!*+?@|])/g;function Ol(e,t,n,i){var r;let o=t.cwd,a=e;e[e.length-1]==="/"&&(a=e.slice(0,-1)),a[a.length-1]!=="*"&&t.expandDirectories&&(a+="/**");let s=Jk(o);a=Rk(a.replace(Wk,""))?fn.relative(s,a):fn.normalize(a);let u=(r=Yk.exec(a))===null||r===void 0?void 0:r[0],c=b_(a);if(u){let p=(u.length+1)/3,d=0,f=s.split("/");for(;d<p&&c[d+p]===f[f.length+d-p];)a=a.slice(0,(p-d-1)*3)+a.slice((p-d)*3+c[d+p].length+1)||".",d++;let h=fn.join(o,u.slice(d*3));h[0]!=="."&&n.root.length>h.length&&(n.root=h,n.depthOffset=-p+d)}if(!i&&n.depthOffset>=0){var l;(l=n.commonPath)!==null&&l!==void 0||(n.commonPath=c);let p=[],d=Math.min(n.commonPath.length,c.length);for(let f=0;f<d;f++){let h=c[f];if(h==="**"&&!c[f+1]){p.pop();break}if(f===c.length-1||h!==n.commonPath[f]||Hk(h))break;p.push(h)}n.depthOffset=p.length,n.commonPath=p,n.root=p.length>0?fn.join(o,...p):o}return a}function Xk(e,t,n){let i=[],r=[];for(let o of e.ignore)o&&(o[0]!=="!"||o[1]==="(")&&r.push(Ol(o,e,n,!0));for(let o of t)o&&(o[0]!=="!"||o[1]==="("?i.push(Ol(o,e,n,!1)):(o[1]!=="!"||o[2]==="(")&&r.push(Ol(o.slice(1),e,n,!0)));return{match:i,ignore:r}}function ew(e,t){let n=e.cwd,i={root:n,depthOffset:0},r=Xk(e,t,i);e.debug&&to("internal processing patterns:",r);let{absolute:o,caseSensitiveMatch:a,debug:s,dot:u,followSymbolicLinks:c,onlyDirectories:l}=e,p=i.root.replace(v_,""),d={dot:u,nobrace:e.braceExpansion===!1,nocase:!a,noextglob:e.extglob===!1,noglobstar:e.globstar===!1,posix:!0},f=(0,Bn.default)(r.match,d),h=(0,Bn.default)(r.ignore,d),y=zk(r.match,d),I=g_(n,p,o),U=o?I:g_(n,p,!0),x=(W,se)=>{let ue=U(se,!0);return ue!=="."&&!y(ue)||h(ue)},V;e.deep!==void 0&&(V=Math.round(e.deep-i.depthOffset));let Z=new Gb({filters:[s?(W,se)=>{let ue=I(W,se),K=f(ue)&&!h(ue);return K&&to(`matched ${ue}`),K}:(W,se)=>{let ue=I(W,se);return f(ue)&&!h(ue)}],exclude:s?(W,se)=>{let ue=x(W,se);return to(`${ue?"skipped":"crawling"} ${se}`),ue}:x,fs:e.fs,pathSeparator:"/",relativePaths:!o,resolvePaths:o,includeBasePath:o,resolveSymlinks:c,excludeSymlinks:!c,excludeFiles:l,includeDirs:l||!e.onlyFiles,maxDepth:V,signal:e.signal}).crawl(p);return e.debug&&to("internal properties:",{...i,root:p}),[Z,n!==p&&!o&&Vk(n,p)]}function tw(e,t){if(t)for(let n=e.length-1;n>=0;n--)e[n]=t(e[n]);return e}var rw={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function nw(e){let t={...rw,...e};return t.cwd=(t.cwd instanceof URL?Ck(t.cwd):jk(t.cwd)).replace(v_,"/"),t.ignore=__(t.ignore),t.fs&&(t.fs={readdir:t.fs.readdir||kk,readdirSync:t.fs.readdirSync||wk,realpath:t.fs.realpath||Dk,realpathSync:t.fs.realpathSync||Ak,stat:t.fs.stat||Pk,statSync:t.fs.statSync||Lk}),t.debug&&to("globbing with options:",t),t}function iw(e,t={}){var n;if(e&&t?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");let i=Fk(e)||typeof e=="string",r=__((n=i?e:e.patterns)!==null&&n!==void 0?n:"**/*"),o=nw(i?t:e);return r.length>0?ew(o,r):[]}function T_(e,t){let[n,i]=iw(e,t);return n?tw(n.sync(),i):[]}import{EventEmitter as v4}from"events";import{GraphQLClient as pR}from"graphql-request";import cR from"fs";function C_(e){return typeof e>"u"||e===null}function ow(e){return typeof e=="object"&&e!==null}function aw(e){return Array.isArray(e)?e:C_(e)?[]:[e]}function sw(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 uw(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function cw(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var lw=C_,pw=ow,dw=aw,fw=uw,mw=cw,hw=sw,Be={isNothing:lw,isObject:pw,toArray:dw,repeat:fw,isNegativeZero:mw,extend:hw};function F_(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 oI=T(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0});Ob.concatAST=EV;var TV=le();function EV(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:TV.Kind.DOCUMENT,definitions:t}}});var uI=T(Sb=>{"use strict";Object.defineProperty(Sb,"__esModule",{value:!0});Sb.separateOperations=xV;var il=le(),$V=kn();function xV(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case il.Kind.OPERATION_DEFINITION:t.push(r);break;case il.Kind.FRAGMENT_DEFINITION:n[r.name.value]=aI(r.selectionSet);break;default:}let i=Object.create(null);for(let r of t){let o=new Set;for(let s of aI(r.selectionSet))sI(o,n,s);let a=r.name?r.name.value:"";i[a]={kind:il.Kind.DOCUMENT,definitions:e.definitions.filter(s=>s===r||s.kind===il.Kind.FRAGMENT_DEFINITION&&o.has(s.name.value))}}return i}function sI(e,t,n){if(!e.has(n)){e.add(n);let i=t[n];if(i!==void 0)for(let r of i)sI(e,t,r)}}function aI(e){let t=[];return(0,$V.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var pI=T(Nb=>{"use strict";Object.defineProperty(Nb,"__esModule",{value:!0});Nb.stripIgnoredCharacters=SV;var OV=Qo(),cI=Jo(),lI=Hu(),Ib=Pi();function SV(e){let t=(0,lI.isSource)(e)?e:new lI.Source(e),n=t.body,i=new cI.Lexer(t),r="",o=!1;for(;i.advance().kind!==Ib.TokenKind.EOF;){let a=i.token,s=a.kind,u=!(0,cI.isPunctuatorTokenKind)(a.kind);o&&(u||a.kind===Ib.TokenKind.SPREAD)&&(r+=" ");let c=n.slice(a.start,a.end);s===Ib.TokenKind.BLOCK_STRING?r+=(0,OV.printBlockString)(a.value,{minimize:!0}):r+=c,o=u}return r}});var fI=T(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.assertValidName=wV;ol.isValidNameError=dI;var IV=ht(),NV=B(),kV=ta();function wV(e){let t=dI(e);if(t)throw t;return e}function dI(e){if(typeof e=="string"||(0,IV.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new NV.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,kV.assertName)(e)}catch(t){return t}}});var TI=T(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.DangerousChangeType=_r.BreakingChangeType=void 0;_r.findBreakingChanges=jV;_r.findDangerousChanges=CV;var DV=Ee(),bI=ot(),mI=rn(),AV=kt(),ye=pe(),PV=gr(),LV=fa(),RV=kv(),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 jV(e,t){return _I(e,t).filter(n=>n.type in Me)}function CV(e,t){return _I(e,t).filter(n=>n.type in nr)}function _I(e,t){return[...UV(e,t),...FV(e,t)]}function FV(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,ye.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 UV(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,PV.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,ye.isEnumType)(r)&&(0,ye.isEnumType)(o)?n.push(...qV(r,o)):(0,ye.isUnionType)(r)&&(0,ye.isUnionType)(o)?n.push(...MV(r,o)):(0,ye.isInputObjectType)(r)&&(0,ye.isInputObjectType)(o)?n.push(...zV(r,o)):(0,ye.isObjectType)(r)&&(0,ye.isObjectType)(o)?n.push(...gI(r,o),...hI(r,o)):(0,ye.isInterfaceType)(r)&&(0,ye.isInterfaceType)(o)?n.push(...gI(r,o),...hI(r,o)):r.constructor!==o.constructor&&n.push({type:Me.TYPE_CHANGED_KIND,description:`${r.name} changed from ${vI(r)} to ${vI(o)}.`});return n}function zV(e,t){let n=[],i=jr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.added)(0,ye.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)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 MV(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 qV(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 hI(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 gI(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(...VV(e,r,o)),Ca(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 VV(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(!Fa(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=yI(o.defaultValue,o.type),c=yI(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,ye.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 Ca(e,t){return(0,ye.isListType)(e)?(0,ye.isListType)(t)&&Ca(e.ofType,t.ofType)||(0,ye.isNonNullType)(t)&&Ca(e,t.ofType):(0,ye.isNonNullType)(e)?(0,ye.isNonNullType)(t)&&Ca(e.ofType,t.ofType):(0,ye.isNamedType)(t)&&e.name===t.name||(0,ye.isNonNullType)(t)&&Ca(e,t.ofType)}function Fa(e,t){return(0,ye.isListType)(e)?(0,ye.isListType)(t)&&Fa(e.ofType,t.ofType):(0,ye.isNonNullType)(e)?(0,ye.isNonNullType)(t)&&Fa(e.ofType,t.ofType)||!(0,ye.isNonNullType)(t)&&Fa(e.ofType,t):(0,ye.isNamedType)(t)&&e.name===t.name}function vI(e){if((0,ye.isScalarType)(e))return"a Scalar type";if((0,ye.isObjectType)(e))return"an Object type";if((0,ye.isInterfaceType)(e))return"an Interface type";if((0,ye.isUnionType)(e))return"a Union type";if((0,ye.isEnumType)(e))return"an Enum type";if((0,ye.isInputObjectType)(e))return"an Input type";(0,bI.invariant)(!1,"Unexpected type: "+(0,DV.inspect)(e))}function yI(e,t){let n=(0,LV.astFromValue)(e,t);return n!=null||(0,bI.invariant)(!1),(0,AV.print)((0,RV.sortValueNode)(n))}function jr(e,t){let n=[],i=[],r=[],o=(0,mI.keyMap)(e,({name:s})=>s),a=(0,mI.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 $I=T(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.resolveASTSchemaCoordinate=EI;al.resolveSchemaCoordinate=KV;var Vn=Ee(),Ua=le(),GV=Nn(),pn=pe();function KV(e,t){return EI(e,(0,GV.parseSchemaCoordinate)(t))}function QV(e,t){let n=t.name.value,i=e.getType(n);if(i!=null)return{kind:"NamedType",type:i}}function ZV(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 BV(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 JV(e,t){let n=t.name.value,i=e.getDirective(n);if(i)return{kind:"Directive",directive:i}}function HV(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 EI(e,t){switch(t.kind){case Ua.Kind.TYPE_COORDINATE:return QV(e,t);case Ua.Kind.MEMBER_COORDINATE:return ZV(e,t);case Ua.Kind.ARGUMENT_COORDINATE:return BV(e,t);case Ua.Kind.DIRECTIVE_COORDINATE:return JV(e,t);case Ua.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return HV(e,t)}}});var NI=T(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});Object.defineProperty(fe,"BreakingChangeType",{enumerable:!0,get:function(){return sl.BreakingChangeType}});Object.defineProperty(fe,"DangerousChangeType",{enumerable:!0,get:function(){return sl.DangerousChangeType}});Object.defineProperty(fe,"TypeInfo",{enumerable:!0,get:function(){return OI.TypeInfo}});Object.defineProperty(fe,"assertValidName",{enumerable:!0,get:function(){return SI.assertValidName}});Object.defineProperty(fe,"astFromValue",{enumerable:!0,get:function(){return s4.astFromValue}});Object.defineProperty(fe,"buildASTSchema",{enumerable:!0,get:function(){return xI.buildASTSchema}});Object.defineProperty(fe,"buildClientSchema",{enumerable:!0,get:function(){return t4.buildClientSchema}});Object.defineProperty(fe,"buildSchema",{enumerable:!0,get:function(){return xI.buildSchema}});Object.defineProperty(fe,"coerceInputValue",{enumerable:!0,get:function(){return u4.coerceInputValue}});Object.defineProperty(fe,"concatAST",{enumerable:!0,get:function(){return c4.concatAST}});Object.defineProperty(fe,"doTypesOverlap",{enumerable:!0,get:function(){return wb.doTypesOverlap}});Object.defineProperty(fe,"extendSchema",{enumerable:!0,get:function(){return r4.extendSchema}});Object.defineProperty(fe,"findBreakingChanges",{enumerable:!0,get:function(){return sl.findBreakingChanges}});Object.defineProperty(fe,"findDangerousChanges",{enumerable:!0,get:function(){return sl.findDangerousChanges}});Object.defineProperty(fe,"getIntrospectionQuery",{enumerable:!0,get:function(){return YV.getIntrospectionQuery}});Object.defineProperty(fe,"getOperationAST",{enumerable:!0,get:function(){return WV.getOperationAST}});Object.defineProperty(fe,"getOperationRootType",{enumerable:!0,get:function(){return XV.getOperationRootType}});Object.defineProperty(fe,"introspectionFromSchema",{enumerable:!0,get:function(){return e4.introspectionFromSchema}});Object.defineProperty(fe,"isEqualType",{enumerable:!0,get:function(){return wb.isEqualType}});Object.defineProperty(fe,"isTypeSubTypeOf",{enumerable:!0,get:function(){return wb.isTypeSubTypeOf}});Object.defineProperty(fe,"isValidNameError",{enumerable:!0,get:function(){return SI.isValidNameError}});Object.defineProperty(fe,"lexicographicSortSchema",{enumerable:!0,get:function(){return n4.lexicographicSortSchema}});Object.defineProperty(fe,"printIntrospectionSchema",{enumerable:!0,get:function(){return kb.printIntrospectionSchema}});Object.defineProperty(fe,"printSchema",{enumerable:!0,get:function(){return kb.printSchema}});Object.defineProperty(fe,"printType",{enumerable:!0,get:function(){return kb.printType}});Object.defineProperty(fe,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return II.resolveASTSchemaCoordinate}});Object.defineProperty(fe,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return II.resolveSchemaCoordinate}});Object.defineProperty(fe,"separateOperations",{enumerable:!0,get:function(){return l4.separateOperations}});Object.defineProperty(fe,"stripIgnoredCharacters",{enumerable:!0,get:function(){return p4.stripIgnoredCharacters}});Object.defineProperty(fe,"typeFromAST",{enumerable:!0,get:function(){return i4.typeFromAST}});Object.defineProperty(fe,"valueFromAST",{enumerable:!0,get:function(){return o4.valueFromAST}});Object.defineProperty(fe,"valueFromASTUntyped",{enumerable:!0,get:function(){return a4.valueFromASTUntyped}});Object.defineProperty(fe,"visitWithTypeInfo",{enumerable:!0,get:function(){return OI.visitWithTypeInfo}});var YV=pb(),WV=LS(),XV=RS(),e4=jS(),t4=FS(),xI=BS(),r4=vb(),n4=YS(),kb=iI(),i4=vr(),o4=$a(),a4=Og(),s4=fa(),OI=Sc(),u4=Yv(),c4=oI(),l4=uI(),p4=pI(),wb=aa(),SI=fI(),sl=TI(),II=$I()});var DI=T(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});Object.defineProperty(m,"BREAK",{enumerable:!0,get:function(){return he.BREAK}});Object.defineProperty(m,"BreakingChangeType",{enumerable:!0,get:function(){return ge.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 ge.DangerousChangeType}});Object.defineProperty(m,"DirectiveLocation",{enumerable:!0,get:function(){return he.DirectiveLocation}});Object.defineProperty(m,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return ne.ExecutableDefinitionsRule}});Object.defineProperty(m,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return ne.FieldsOnCorrectTypeRule}});Object.defineProperty(m,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return ne.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 za.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 he.Kind}});Object.defineProperty(m,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return ne.KnownArgumentNamesRule}});Object.defineProperty(m,"KnownDirectivesRule",{enumerable:!0,get:function(){return ne.KnownDirectivesRule}});Object.defineProperty(m,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return ne.KnownFragmentNamesRule}});Object.defineProperty(m,"KnownTypeNamesRule",{enumerable:!0,get:function(){return ne.KnownTypeNamesRule}});Object.defineProperty(m,"Lexer",{enumerable:!0,get:function(){return he.Lexer}});Object.defineProperty(m,"Location",{enumerable:!0,get:function(){return he.Location}});Object.defineProperty(m,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return ne.LoneAnonymousOperationRule}});Object.defineProperty(m,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return ne.LoneSchemaDefinitionRule}});Object.defineProperty(m,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return ne.MaxIntrospectionDepthRule}});Object.defineProperty(m,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return ne.NoDeprecatedCustomRule}});Object.defineProperty(m,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return ne.NoFragmentCyclesRule}});Object.defineProperty(m,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return ne.NoSchemaIntrospectionCustomRule}});Object.defineProperty(m,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return ne.NoUndefinedVariablesRule}});Object.defineProperty(m,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return ne.NoUnusedFragmentsRule}});Object.defineProperty(m,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return ne.NoUnusedVariablesRule}});Object.defineProperty(m,"OperationTypeNode",{enumerable:!0,get:function(){return he.OperationTypeNode}});Object.defineProperty(m,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return ne.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(m,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return ne.PossibleFragmentSpreadsRule}});Object.defineProperty(m,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return ne.PossibleTypeExtensionsRule}});Object.defineProperty(m,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return ne.ProvidedRequiredArgumentsRule}});Object.defineProperty(m,"ScalarLeafsRule",{enumerable:!0,get:function(){return ne.ScalarLeafsRule}});Object.defineProperty(m,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return L.SchemaMetaFieldDef}});Object.defineProperty(m,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return ne.SingleFieldSubscriptionsRule}});Object.defineProperty(m,"Source",{enumerable:!0,get:function(){return he.Source}});Object.defineProperty(m,"Token",{enumerable:!0,get:function(){return he.Token}});Object.defineProperty(m,"TokenKind",{enumerable:!0,get:function(){return he.TokenKind}});Object.defineProperty(m,"TypeInfo",{enumerable:!0,get:function(){return ge.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 ne.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(m,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return ne.UniqueArgumentNamesRule}});Object.defineProperty(m,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return ne.UniqueDirectiveNamesRule}});Object.defineProperty(m,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return ne.UniqueDirectivesPerLocationRule}});Object.defineProperty(m,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return ne.UniqueEnumValueNamesRule}});Object.defineProperty(m,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return ne.UniqueFieldDefinitionNamesRule}});Object.defineProperty(m,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return ne.UniqueFragmentNamesRule}});Object.defineProperty(m,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return ne.UniqueInputFieldNamesRule}});Object.defineProperty(m,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return ne.UniqueOperationNamesRule}});Object.defineProperty(m,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return ne.UniqueOperationTypesRule}});Object.defineProperty(m,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return ne.UniqueTypeNamesRule}});Object.defineProperty(m,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return ne.UniqueVariableNamesRule}});Object.defineProperty(m,"ValidationContext",{enumerable:!0,get:function(){return ne.ValidationContext}});Object.defineProperty(m,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return ne.ValuesOfCorrectTypeRule}});Object.defineProperty(m,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return ne.VariablesAreInputTypesRule}});Object.defineProperty(m,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return ne.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 ge.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 ge.astFromValue}});Object.defineProperty(m,"buildASTSchema",{enumerable:!0,get:function(){return ge.buildASTSchema}});Object.defineProperty(m,"buildClientSchema",{enumerable:!0,get:function(){return ge.buildClientSchema}});Object.defineProperty(m,"buildSchema",{enumerable:!0,get:function(){return ge.buildSchema}});Object.defineProperty(m,"coerceInputValue",{enumerable:!0,get:function(){return ge.coerceInputValue}});Object.defineProperty(m,"concatAST",{enumerable:!0,get:function(){return ge.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 ge.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 ge.extendSchema}});Object.defineProperty(m,"findBreakingChanges",{enumerable:!0,get:function(){return ge.findBreakingChanges}});Object.defineProperty(m,"findDangerousChanges",{enumerable:!0,get:function(){return ge.findDangerousChanges}});Object.defineProperty(m,"formatError",{enumerable:!0,get:function(){return za.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 he.getEnterLeaveForKind}});Object.defineProperty(m,"getIntrospectionQuery",{enumerable:!0,get:function(){return ge.getIntrospectionQuery}});Object.defineProperty(m,"getLocation",{enumerable:!0,get:function(){return he.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 ge.getOperationAST}});Object.defineProperty(m,"getOperationRootType",{enumerable:!0,get:function(){return ge.getOperationRootType}});Object.defineProperty(m,"getVariableValues",{enumerable:!0,get:function(){return Tr.getVariableValues}});Object.defineProperty(m,"getVisitFn",{enumerable:!0,get:function(){return he.getVisitFn}});Object.defineProperty(m,"graphql",{enumerable:!0,get:function(){return wI.graphql}});Object.defineProperty(m,"graphqlSync",{enumerable:!0,get:function(){return wI.graphqlSync}});Object.defineProperty(m,"introspectionFromSchema",{enumerable:!0,get:function(){return ge.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 he.isConstValueNode}});Object.defineProperty(m,"isDefinitionNode",{enumerable:!0,get:function(){return he.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 ge.isEqualType}});Object.defineProperty(m,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return he.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 he.isSchemaCoordinateNode}});Object.defineProperty(m,"isSelectionNode",{enumerable:!0,get:function(){return he.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 he.isTypeDefinitionNode}});Object.defineProperty(m,"isTypeExtensionNode",{enumerable:!0,get:function(){return he.isTypeExtensionNode}});Object.defineProperty(m,"isTypeNode",{enumerable:!0,get:function(){return he.isTypeNode}});Object.defineProperty(m,"isTypeSubTypeOf",{enumerable:!0,get:function(){return ge.isTypeSubTypeOf}});Object.defineProperty(m,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return he.isTypeSystemDefinitionNode}});Object.defineProperty(m,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return he.isTypeSystemExtensionNode}});Object.defineProperty(m,"isUnionType",{enumerable:!0,get:function(){return L.isUnionType}});Object.defineProperty(m,"isValidNameError",{enumerable:!0,get:function(){return ge.isValidNameError}});Object.defineProperty(m,"isValueNode",{enumerable:!0,get:function(){return he.isValueNode}});Object.defineProperty(m,"isWrappingType",{enumerable:!0,get:function(){return L.isWrappingType}});Object.defineProperty(m,"lexicographicSortSchema",{enumerable:!0,get:function(){return ge.lexicographicSortSchema}});Object.defineProperty(m,"locatedError",{enumerable:!0,get:function(){return za.locatedError}});Object.defineProperty(m,"parse",{enumerable:!0,get:function(){return he.parse}});Object.defineProperty(m,"parseConstValue",{enumerable:!0,get:function(){return he.parseConstValue}});Object.defineProperty(m,"parseSchemaCoordinate",{enumerable:!0,get:function(){return he.parseSchemaCoordinate}});Object.defineProperty(m,"parseType",{enumerable:!0,get:function(){return he.parseType}});Object.defineProperty(m,"parseValue",{enumerable:!0,get:function(){return he.parseValue}});Object.defineProperty(m,"print",{enumerable:!0,get:function(){return he.print}});Object.defineProperty(m,"printError",{enumerable:!0,get:function(){return za.printError}});Object.defineProperty(m,"printIntrospectionSchema",{enumerable:!0,get:function(){return ge.printIntrospectionSchema}});Object.defineProperty(m,"printLocation",{enumerable:!0,get:function(){return he.printLocation}});Object.defineProperty(m,"printSchema",{enumerable:!0,get:function(){return ge.printSchema}});Object.defineProperty(m,"printSourceLocation",{enumerable:!0,get:function(){return he.printSourceLocation}});Object.defineProperty(m,"printType",{enumerable:!0,get:function(){return ge.printType}});Object.defineProperty(m,"recommendedRules",{enumerable:!0,get:function(){return ne.recommendedRules}});Object.defineProperty(m,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return ge.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 ge.resolveSchemaCoordinate}});Object.defineProperty(m,"responsePathAsArray",{enumerable:!0,get:function(){return Tr.responsePathAsArray}});Object.defineProperty(m,"separateOperations",{enumerable:!0,get:function(){return ge.separateOperations}});Object.defineProperty(m,"specifiedDirectives",{enumerable:!0,get:function(){return L.specifiedDirectives}});Object.defineProperty(m,"specifiedRules",{enumerable:!0,get:function(){return ne.specifiedRules}});Object.defineProperty(m,"specifiedScalarTypes",{enumerable:!0,get:function(){return L.specifiedScalarTypes}});Object.defineProperty(m,"stripIgnoredCharacters",{enumerable:!0,get:function(){return ge.stripIgnoredCharacters}});Object.defineProperty(m,"subscribe",{enumerable:!0,get:function(){return Tr.subscribe}});Object.defineProperty(m,"syntaxError",{enumerable:!0,get:function(){return za.syntaxError}});Object.defineProperty(m,"typeFromAST",{enumerable:!0,get:function(){return ge.typeFromAST}});Object.defineProperty(m,"validate",{enumerable:!0,get:function(){return ne.validate}});Object.defineProperty(m,"validateSchema",{enumerable:!0,get:function(){return L.validateSchema}});Object.defineProperty(m,"valueFromAST",{enumerable:!0,get:function(){return ge.valueFromAST}});Object.defineProperty(m,"valueFromASTUntyped",{enumerable:!0,get:function(){return ge.valueFromASTUntyped}});Object.defineProperty(m,"version",{enumerable:!0,get:function(){return kI.version}});Object.defineProperty(m,"versionInfo",{enumerable:!0,get:function(){return kI.versionInfo}});Object.defineProperty(m,"visit",{enumerable:!0,get:function(){return he.visit}});Object.defineProperty(m,"visitInParallel",{enumerable:!0,get:function(){return he.visitInParallel}});Object.defineProperty(m,"visitWithTypeInfo",{enumerable:!0,get:function(){return ge.visitWithTypeInfo}});var kI=$$(),wI=hS(),L=yS(),he=_S(),Tr=NS(),ne=AS(),za=PS(),ge=NI()});var VI=T((tJ,w4)=>{w4.exports={name:"@jackchuka/gql-ingest",version:"4.2.3",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.46.0",oxlint:"^1.35.0","oxlint-tsgolint":"^0.21.1","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^6.0.2"},engines:{node:">=18"},packageManager:"pnpm@10.33.0"}});import{Command as D4}from"commander";import{readdir as kk,readdirSync as wk,realpath as Dk,realpathSync as Ak,stat as Pk,statSync as Lk}from"fs";import{isAbsolute as Rk,posix as fn,resolve as jk}from"path";import{fileURLToPath as Ck}from"url";import{createRequire as HI}from"module";import{basename as YI,dirname as ml,normalize as WI,relative as XI,resolve as eN,sep as jb}from"path";import*as tN from"fs";var Lb=HI(import.meta.url);function rN(e){let t=WI(e);return t.length>1&&t[t.length-1]===jb&&(t=t.substring(0,t.length-1)),t}var nN=/[\\/]/g;function Cb(e,t){return e.replace(nN,t)}var iN=/^[a-z]:[\\/]$/i;function oN(e){return e==="/"||iN.test(e)}function fl(e,t){let{resolvePaths:n,normalizePath:i,pathSeparator:r}=t,o=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(n&&(e=eN(e)),(i||o)&&(e=rN(e)),e===".")return"";let a=e[e.length-1]!==r;return Cb(a?e+r:e,r)}function Fb(e,t){return t+e}function aN(e,t){return function(n,i){return i.startsWith(e)?i.slice(e.length)+n:Cb(XI(e,i),t.pathSeparator)+t.pathSeparator+n}}function sN(e){return e}function uN(e,t,n){return t+e+n}function cN(e,t){let{relativePaths:n,includeBasePath:i}=t;return n&&e?aN(e,t):i?Fb:sN}function lN(e){return function(t,n){n.push(t.substring(e.length)||".")}}function pN(e){return function(t,n,i){let r=t.substring(e.length)||".";i.every(o=>o(r,!0))&&n.push(r)}}var dN=(e,t)=>{t.push(e||".")},fN=(e,t,n)=>{let i=e||".";n.every(r=>r(i,!0))&&t.push(i)},mN=()=>{};function hN(e,t){let{includeDirs:n,filters:i,relativePaths:r}=t;return n?r?i&&i.length?pN(e):lN(e):i&&i.length?fN:dN:mN}var gN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&n.files++},vN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&t.push(e)},yN=(e,t,n,i)=>{n.files++},bN=(e,t)=>{t.push(e)},_N=()=>{};function TN(e){let{excludeFiles:t,filters:n,onlyCounts:i}=e;return t?_N:n&&n.length?i?gN:vN:i?yN:bN}var EN=e=>e,$N=()=>[""].slice(0,0);function xN(e){return e.group?$N:EN}var ON=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},SN=()=>{};function IN(e){return e.group?ON:SN}var NN=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()&&Ub(e,s,t))return i.dequeue(null,t);n(c,s),i.dequeue(null,t)})})},kN=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()&&Ub(e,a,t))return;n(s,a)}catch(a){if(!o)throw a}};function wN(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?kN:NN}function Ub(e,t,n){if(n.options.useRealPaths)return DN(t,n);let i=ml(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=ml(i)}return n.symlinks.set(e,t),r>1}function DN(e,t){return t.visited.includes(e+t.options.pathSeparator)}var AN=e=>e.counts,PN=e=>e.groups,LN=e=>e.paths,RN=e=>e.paths.slice(0,e.options.maxFiles),jN=(e,t,n)=>(Ba(t,n,e.counts,e.options.suppressErrors),null),CN=(e,t,n)=>(Ba(t,n,e.paths,e.options.suppressErrors),null),FN=(e,t,n)=>(Ba(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),UN=(e,t,n)=>(Ba(t,n,e.groups,e.options.suppressErrors),null);function Ba(e,t,n,i){t(e&&!i?e:null,n)}function zN(e,t){let{onlyCounts:n,group:i,maxFiles:r}=e;return n?t?AN:jN:i?t?PN:UN:r?t?RN:FN:t?LN:CN}var zb={withFileTypes:!0},MN=(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||".",zb,(a,s=[])=>{r(s,n,i),e.queue.dequeue(e.options.suppressErrors?null:a,e)})},qN=(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||".",zb)}catch(s){if(!e.options.suppressErrors)throw s}r(a,n,i)};function VN(e){return e?qN:MN}var GN=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))}},KN=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}},QN=class{aborted=!1;abort(){this.aborted=!0}},Mb=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){this.isSynchronous=!n,this.callbackInvoker=zN(t,this.isSynchronous),this.root=fl(e,t),this.state={root:oN(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new KN,options:t,queue:new GN((i,r)=>this.callbackInvoker(r,i,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new QN,fs:t.fs||tN},this.joinPath=cN(this.root,t),this.pushDirectory=hN(this.root,t),this.pushFile=TN(t),this.getArray=xN(t),this.groupFiles=IN(t),this.resolveSymlink=wN(t,this.isSynchronous),this.walkDirectory=VN(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 I=this.joinPath(y.name,t);this.pushFile(I,f,this.state.counts,r)}else if(y.isDirectory()){let I=uN(y.name,t,this.state.options.pathSeparator);if(s&&s(y.name,I))continue;this.pushDirectory(I,i,r),this.walkDirectory(this.state,I,I,n-1,this.walk)}else if(this.resolveSymlink&&y.isSymbolicLink()){let I=Fb(y.name,t);this.resolveSymlink(I,this.state,(U,x)=>{if(U.isDirectory()){if(x=fl(x,this.state.options),s&&s(y.name,l?x:I+p))return;this.walkDirectory(this.state,x,l?x:I+p,n-1,this.walk)}else{x=l?x:I;let V=YI(x),Z=fl(ml(x),this.state.options);x=this.joinPath(V,Z),this.pushFile(x,f,this.state.counts,r)}})}}this.groupFiles(this.state.groups,t,f)}};function ZN(e,t){return new Promise((n,i)=>{qb(e,t,(r,o)=>{if(r)return i(r);n(o)})})}function qb(e,t,n){new Mb(e,t,n).start()}function BN(e,t){return new Mb(e,t).start()}var Rb=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return ZN(this.root,this.options)}withCallback(e){qb(this.root,this.options,e)}sync(){return BN(this.root,this.options)}},Vb=null;try{Lb.resolve("picomatch"),Vb=Lb("picomatch")}catch{}var Gb=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:jb,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 Rb(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new Rb(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||Vb;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 Bn=Pb(h_(),1),Fk=Array.isArray,v_=/\\/g,y_=process.platform==="win32",Uk=/^(\/?\.\.)+$/;function zk(e,t={}){let n=e.length,i=Array(n),r=Array(n),o,a;for(o=0;o<n;o++){let s=b_(e[o]);i[o]=s;let u=s.length,c=Array(u);for(a=0;a<u;a++)c[a]=(0,Bn.default)(s[a],t);r[o]=c}return s=>{let u=s.split("/");if(u[0]===".."&&Uk.test(s))return!0;for(o=0;o<n;o++){let c=i[o],l=r[o],p=u.length,d=Math.min(p,c.length);for(a=0;a<d;){let f=c[a];if(f.includes("/"))return!0;if(!l[a](u[a]))break;if(!t.noglobstar&&f==="**")return!0;a++}if(a===p)return!0}return!1}}var Mk=/^[A-Z]:\/$/i,qk=y_?e=>Mk.test(e):e=>e==="/";function g_(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let r=e.length+ +!qk(e);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 Vk(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[n.length-1]==="/"&&i!==""?`${i}/`:i||"."}}var Gk={parts:!0};function b_(e){var t;let n=Bn.default.scan(e,Gk);return!((t=n.parts)===null||t===void 0)&&t.length?n.parts:[e]}var Kk=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,Qk=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,Zk=e=>e.replace(Kk,"\\$&"),Bk=e=>e.replace(Qk,"\\$&"),Jk=y_?Bk:Zk;function Hk(e,t){if(t?.caseSensitiveMatch===!1)return!0;let n=Bn.default.scan(e);return n.isGlob||n.negated}function to(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...e)}function __(e){return typeof e=="string"?[e]:e??[]}var Yk=/^(\/?\.\.)+/,Wk=/\\(?=[()[\]{}!*+?@|])/g;function Ol(e,t,n,i){var r;let o=t.cwd,a=e;e[e.length-1]==="/"&&(a=e.slice(0,-1)),a[a.length-1]!=="*"&&t.expandDirectories&&(a+="/**");let s=Jk(o);a=Rk(a.replace(Wk,""))?fn.relative(s,a):fn.normalize(a);let u=(r=Yk.exec(a))===null||r===void 0?void 0:r[0],c=b_(a);if(u){let p=(u.length+1)/3,d=0,f=s.split("/");for(;d<p&&c[d+p]===f[f.length+d-p];)a=a.slice(0,(p-d-1)*3)+a.slice((p-d)*3+c[d+p].length+1)||".",d++;let h=fn.join(o,u.slice(d*3));h[0]!=="."&&n.root.length>h.length&&(n.root=h,n.depthOffset=-p+d)}if(!i&&n.depthOffset>=0){var l;(l=n.commonPath)!==null&&l!==void 0||(n.commonPath=c);let p=[],d=Math.min(n.commonPath.length,c.length);for(let f=0;f<d;f++){let h=c[f];if(h==="**"&&!c[f+1]){p.pop();break}if(f===c.length-1||h!==n.commonPath[f]||Hk(h))break;p.push(h)}n.depthOffset=p.length,n.commonPath=p,n.root=p.length>0?fn.join(o,...p):o}return a}function Xk(e,t,n){let i=[],r=[];for(let o of e.ignore)o&&(o[0]!=="!"||o[1]==="(")&&r.push(Ol(o,e,n,!0));for(let o of t)o&&(o[0]!=="!"||o[1]==="("?i.push(Ol(o,e,n,!1)):(o[1]!=="!"||o[2]==="(")&&r.push(Ol(o.slice(1),e,n,!0)));return{match:i,ignore:r}}function ew(e,t){let n=e.cwd,i={root:n,depthOffset:0},r=Xk(e,t,i);e.debug&&to("internal processing patterns:",r);let{absolute:o,caseSensitiveMatch:a,debug:s,dot:u,followSymbolicLinks:c,onlyDirectories:l}=e,p=i.root.replace(v_,""),d={dot:u,nobrace:e.braceExpansion===!1,nocase:!a,noextglob:e.extglob===!1,noglobstar:e.globstar===!1,posix:!0},f=(0,Bn.default)(r.match,d),h=(0,Bn.default)(r.ignore,d),y=zk(r.match,d),I=g_(n,p,o),U=o?I:g_(n,p,!0),x=(W,se)=>{let ue=U(se,!0);return ue!=="."&&!y(ue)||h(ue)},V;e.deep!==void 0&&(V=Math.round(e.deep-i.depthOffset));let Z=new Gb({filters:[s?(W,se)=>{let ue=I(W,se),K=f(ue)&&!h(ue);return K&&to(`matched ${ue}`),K}:(W,se)=>{let ue=I(W,se);return f(ue)&&!h(ue)}],exclude:s?(W,se)=>{let ue=x(W,se);return to(`${ue?"skipped":"crawling"} ${se}`),ue}:x,fs:e.fs,pathSeparator:"/",relativePaths:!o,resolvePaths:o,includeBasePath:o,resolveSymlinks:c,excludeSymlinks:!c,excludeFiles:l,includeDirs:l||!e.onlyFiles,maxDepth:V,signal:e.signal}).crawl(p);return e.debug&&to("internal properties:",{...i,root:p}),[Z,n!==p&&!o&&Vk(n,p)]}function tw(e,t){if(t)for(let n=e.length-1;n>=0;n--)e[n]=t(e[n]);return e}var rw={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function nw(e){let t={...rw,...e};return t.cwd=(t.cwd instanceof URL?Ck(t.cwd):jk(t.cwd)).replace(v_,"/"),t.ignore=__(t.ignore),t.fs&&(t.fs={readdir:t.fs.readdir||kk,readdirSync:t.fs.readdirSync||wk,realpath:t.fs.realpath||Dk,realpathSync:t.fs.realpathSync||Ak,stat:t.fs.stat||Pk,statSync:t.fs.statSync||Lk}),t.debug&&to("globbing with options:",t),t}function iw(e,t={}){var n;if(e&&t?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");let i=Fk(e)||typeof e=="string",r=__((n=i?e:e.patterns)!==null&&n!==void 0?n:"**/*"),o=nw(i?t:e);return r.length>0?ew(o,r):[]}function T_(e,t){let[n,i]=iw(e,t);return n?tw(n.sync(),i):[]}import{EventEmitter as v4}from"events";import{GraphQLClient as pR}from"graphql-request";import cR from"fs";function C_(e){return typeof e>"u"||e===null}function ow(e){return typeof e=="object"&&e!==null}function aw(e){return Array.isArray(e)?e:C_(e)?[]:[e]}function sw(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 uw(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function cw(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var lw=C_,pw=ow,dw=aw,fw=uw,mw=cw,hw=sw,Be={isNothing:lw,isObject:pw,toArray:dw,repeat:fw,isNegativeZero:mw,extend:hw};function F_(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 no(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=F_(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}no.prototype=Object.create(Error.prototype);no.prototype.constructor=no;no.prototype.toString=function(t){return this.name+": "+F_(this,t)};var lt=no;function Sl(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 Il(e,t){return Be.repeat(" ",t-e.length)+e}function gw(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=Sl(e.buffer,i[a-u],r[a-u],e.position-(i[a]-i[a-u]),p),s=Be.repeat(" ",t.indent)+Il((e.line-u+1).toString(),l)+" | "+c.str+`
|
|
187
187
|
`+s;for(c=Sl(e.buffer,i[a],r[a],e.position,p),s+=Be.repeat(" ",t.indent)+Il((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.3",
|
|
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",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@types/node": "^25.0.2",
|
|
47
47
|
"esbuild": "^0.28.0",
|
|
48
48
|
"jest": "^30.0.3",
|
|
49
|
-
"oxfmt": "^0.
|
|
49
|
+
"oxfmt": "^0.46.0",
|
|
50
50
|
"oxlint": "^1.35.0",
|
|
51
|
-
"oxlint-tsgolint": "^0.
|
|
51
|
+
"oxlint-tsgolint": "^0.21.1",
|
|
52
52
|
"ts-jest": "^29.4.0",
|
|
53
53
|
"ts-node": "^10.9.0",
|
|
54
54
|
"typescript": "^6.0.2"
|