grafast 0.0.1-alpha.9 → 0.0.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE.md +15 -17
  2. package/README.md +138 -1
  3. package/dist/LICENSES.txt +1 -1
  4. package/dist/args.d.ts +7 -1
  5. package/dist/assert.d.ts +2 -0
  6. package/dist/bucket.d.ts +66 -1
  7. package/dist/constraints.d.ts +31 -0
  8. package/dist/deferred.d.ts +7 -0
  9. package/dist/dev.d.ts +3 -0
  10. package/dist/engine/LayerPlan.d.ts +131 -0
  11. package/dist/engine/OperationPlan.d.ts +151 -0
  12. package/dist/engine/OutputPlan.d.ts +105 -1
  13. package/dist/engine/StepTracker.d.ts +56 -1
  14. package/dist/engine/executeBucket.d.ts +4 -1
  15. package/dist/engine/executeOutputPlan.d.ts +42 -1
  16. package/dist/envelop.d.ts +12 -0
  17. package/dist/envelop.js +2 -51
  18. package/dist/error.d.ts +23 -0
  19. package/dist/establishOperationPlan.d.ts +10 -31
  20. package/dist/execute.d.ts +8 -0
  21. package/dist/exportAs.d.ts +14 -0
  22. package/dist/grafastGraphql.d.ts +8 -3
  23. package/dist/grafastPrint.d.ts +8 -0
  24. package/dist/graphqlCollectFields.d.ts +22 -0
  25. package/dist/graphqlMergeSelectionSets.d.ts +4 -0
  26. package/dist/index.d.ts +9 -4
  27. package/dist/index.js +387 -53
  28. package/dist/input.d.ts +8 -1
  29. package/dist/interfaces.d.ts +356 -59
  30. package/dist/makeGrafastSchema.d.ts +30 -3
  31. package/dist/mermaid.d.ts +28 -0
  32. package/dist/polymorphic.d.ts +8 -0
  33. package/dist/prepare.d.ts +16 -2
  34. package/dist/step.d.ts +183 -0
  35. package/dist/steps/__inputDynamicScalar.d.ts +3 -0
  36. package/dist/steps/__inputList.d.ts +3 -0
  37. package/dist/steps/__inputObject.d.ts +3 -0
  38. package/dist/steps/__inputStaticLeaf.d.ts +5 -0
  39. package/dist/steps/__item.d.ts +8 -0
  40. package/dist/steps/__trackedValue.d.ts +74 -0
  41. package/dist/steps/__value.d.ts +5 -0
  42. package/dist/steps/access.d.ts +20 -0
  43. package/dist/steps/{deepEval.d.ts → applyTransforms.d.ts} +16 -3
  44. package/dist/steps/connection.d.ts +49 -0
  45. package/dist/steps/constant.d.ts +11 -3
  46. package/dist/steps/each.d.ts +3 -0
  47. package/dist/steps/filter.d.ts +4 -0
  48. package/dist/steps/first.d.ts +4 -0
  49. package/dist/steps/graphqlResolver.d.ts +18 -0
  50. package/dist/steps/groupBy.d.ts +6 -0
  51. package/dist/steps/index.d.ts +6 -2
  52. package/dist/steps/lambda.d.ts +8 -0
  53. package/dist/steps/last.d.ts +4 -0
  54. package/dist/steps/list.d.ts +7 -0
  55. package/dist/steps/listTransform.d.ts +21 -0
  56. package/dist/steps/listen.d.ts +16 -0
  57. package/dist/steps/load.d.ts +13 -0
  58. package/dist/steps/node.d.ts +20 -12
  59. package/dist/steps/object.d.ts +15 -0
  60. package/dist/steps/partitionByIndex.d.ts +35 -0
  61. package/dist/steps/proxy.d.ts +11 -0
  62. package/dist/steps/remapKeys.d.ts +8 -0
  63. package/dist/steps/reverse.d.ts +9 -0
  64. package/dist/subscribe.d.ts +4 -0
  65. package/dist/utils.d.ts +113 -5
  66. package/dist/version.d.ts +2 -0
  67. package/fwd/graphql/index.d.ts +1 -0
  68. package/fwd/graphql/index.js +1 -0
  69. package/package.json +14 -6
package/dist/error.d.ts CHANGED
@@ -1,11 +1,25 @@
1
1
  /// <reference types="node" />
2
2
  import type { $$extensions } from "./interfaces.js";
3
3
  import { $$safeError } from "./interfaces.js";
4
+ /**
5
+ * Internally we wrap errors that occur in a GrafastError; this allows us to do
6
+ * simple `instanceof` checks to see if a value is an actual value or an error.
7
+ * Users should never use this class; it's for internal usage only.
8
+ *
9
+ * @internal
10
+ */
4
11
  export interface GrafastError extends Error {
5
12
  originalError: Error;
6
13
  [$$extensions]?: Record<string, any>;
7
14
  }
8
15
  export declare const $$error: unique symbol;
16
+ /**
17
+ * When an error occurs during plan execution we wrap it in a GrafastError so
18
+ * that we can pass it around as a value. It gets unwrapped and thrown in the
19
+ * grafast resolver.
20
+ *
21
+ * @internal
22
+ */
9
23
  export declare const _GrafastError: {
10
24
  new (originalError: Error, planId: number | null): {
11
25
  readonly originalError: Error;
@@ -20,6 +34,11 @@ export declare const _GrafastError: {
20
34
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
21
35
  stackTraceLimit: number;
22
36
  };
37
+ /**
38
+ * DO NOT ALLOW CONSTRUCTION OF ERRORS OUTSIDE OF THIS MODULE!
39
+ *
40
+ * @internal
41
+ */
23
42
  export declare function newGrafastError(error: Error, planId: number | null): {
24
43
  readonly originalError: Error;
25
44
  extensions: Record<string, any>;
@@ -29,6 +48,10 @@ export declare function newGrafastError(error: Error, planId: number | null): {
29
48
  stack?: string | undefined;
30
49
  cause?: unknown;
31
50
  };
51
+ /**
52
+ * Is the given value a GrafastError? This is the only public API that people
53
+ * should use for looking at GrafastErrors.
54
+ */
32
55
  export declare function isGrafastError(value: any): value is GrafastError;
33
56
  export declare class SafeError<TExtensions extends Record<string, any> | undefined = Record<string, any> | undefined> extends Error {
34
57
  extensions: TExtensions;
@@ -1,33 +1,12 @@
1
- import LRU from "@graphile/lru";
2
- import type { FragmentDefinitionNode, GraphQLSchema, OperationDefinitionNode } from "graphql";
3
- import { OperationPlan, SafeError } from "./index.js";
4
- import type { BaseGraphQLRootValue, BaseGraphQLVariables } from "./interfaces.js";
5
- import { $$timeout, $$ts } from "./interfaces.js";
6
- type Fragments = {
7
- [key: string]: FragmentDefinitionNode;
8
- };
9
- type OperationPlanOrError = OperationPlan | Error | SafeError<{
10
- [$$timeout]: number;
11
- [$$ts]: number;
12
- } | {
13
- [$$timeout]?: undefined;
14
- [$$ts]?: undefined;
15
- } | undefined>;
16
- interface LinkedList<T> {
17
- value: T;
18
- next: LinkedList<T> | null;
19
- }
20
- interface Cache {
21
- possibleOperationPlans: LinkedList<OperationPlanOrError> | null;
22
- fragments: Fragments;
23
- }
24
- type CacheByOperation = LRU<OperationDefinitionNode, Cache>;
25
- declare const $$cacheByOperation: unique symbol;
26
- declare module "graphql" {
27
- interface GraphQLSchema {
28
- [$$cacheByOperation]?: CacheByOperation;
29
- }
30
- }
1
+ import type { GraphQLSchema, OperationDefinitionNode } from "graphql";
2
+ import { OperationPlan } from "./index.js";
3
+ import type { BaseGraphQLRootValue, BaseGraphQLVariables, Fragments } from "./interfaces.js";
4
+ /**
5
+ * Implements the `EstablishOpPlan` algorithm.
6
+ *
7
+ * @remarks Though EstablishOpPlan accepts document and operationName, we
8
+ * instead accept operation and fragments since they're easier to get a hold of
9
+ * in GraphQL.js.
10
+ */
31
11
  export declare function establishOperationPlan<TVariables extends BaseGraphQLVariables = BaseGraphQLVariables, TContext extends Grafast.Context = Grafast.Context, TRootValue extends BaseGraphQLRootValue = BaseGraphQLRootValue>(schema: GraphQLSchema, operation: OperationDefinitionNode, fragments: Fragments, variableValues: TVariables, context: TContext, rootValue: TRootValue, planningTimeout?: number | null): OperationPlan;
32
- export {};
33
12
  //# sourceMappingURL=establishOperationPlan.d.ts.map
package/dist/execute.d.ts CHANGED
@@ -1,5 +1,13 @@
1
1
  import type { AsyncExecutionResult, ExecutionArgs, ExecutionResult } from "graphql";
2
2
  import type { PromiseOrValue } from "graphql/jsutils/PromiseOrValue";
3
+ /**
4
+ * Used by `execute` and `subscribe`.
5
+ * @internal
6
+ */
3
7
  export declare function withGrafastArgs(args: ExecutionArgs, resolvedPreset: GraphileConfig.ResolvedPreset, outputDataAsString: boolean): PromiseOrValue<ExecutionResult | AsyncGenerator<AsyncExecutionResult, void, void>>;
8
+ /**
9
+ * Use this instead of GraphQL.js' execute method and we'll automatically
10
+ * run grafastPrepare for you and handle the result.
11
+ */
4
12
  export declare function execute(args: ExecutionArgs, resolvedPreset?: GraphileConfig.ResolvedPreset, outputDataAsString?: boolean): PromiseOrValue<ExecutionResult | AsyncGenerator<AsyncExecutionResult, void, undefined>>;
5
13
  //# sourceMappingURL=execute.d.ts.map
@@ -1,4 +1,18 @@
1
+ /**
2
+ * Marks that `thing` is exported from the `grafast` module as
3
+ * `exportName` so that `graphile-export` can convert references to `thing`
4
+ * into an `import` statement.
5
+ *
6
+ * @internal
7
+ */
1
8
  export declare function exportAs<T extends object>(moduleName: string, thing: T, exportName: string | string[]): T;
9
+ /**
10
+ * Marks that each value in `all` is exported from the `grafast`
11
+ * module as the key in the `all` object so that `graphile-export` can
12
+ * convert references to these values into `import` statements.
13
+ *
14
+ * @internal
15
+ */
2
16
  export declare function exportAsMany(moduleName: string, all: {
3
17
  [key: string]: any;
4
18
  }): void;
@@ -1,5 +1,10 @@
1
- import type { AsyncExecutionResult, ExecutionResult, GraphQLArgs } from "graphql";
1
+ import type { AsyncExecutionResult, ExecutionResult } from "graphql";
2
2
  import type { PromiseOrValue } from "graphql/jsutils/PromiseOrValue";
3
- export declare function grafast(args: GraphQLArgs, resolvedPreset?: GraphileConfig.ResolvedPreset, ctx?: Partial<Grafast.RequestContext>): PromiseOrValue<ExecutionResult | AsyncGenerator<AsyncExecutionResult, void, undefined>>;
4
- export declare function grafastSync(args: GraphQLArgs, resolvedPreset?: GraphileConfig.ResolvedPreset, ctx?: Partial<Grafast.RequestContext>): ExecutionResult;
3
+ import type { GrafastArgs } from "./interfaces.js";
4
+ /**
5
+ * A replacement for GraphQL.js' `graphql` method that calls Grafast's
6
+ * execute instead
7
+ */
8
+ export declare function grafast(args: GrafastArgs, legacyResolvedPreset?: GraphileConfig.ResolvedPreset, legacyCtx?: Partial<Grafast.RequestContext>): PromiseOrValue<ExecutionResult | AsyncGenerator<AsyncExecutionResult, void, undefined>>;
9
+ export declare function grafastSync(args: GrafastArgs, legacyResolvedPreset?: GraphileConfig.ResolvedPreset, legacyRequestContext?: Partial<Grafast.RequestContext>): ExecutionResult;
5
10
  //# sourceMappingURL=grafastGraphql.d.ts.map
@@ -1,5 +1,13 @@
1
1
  export declare function _grafastPrint(symbol: string | symbol | symbol[] | Record<symbol, any> | Map<any, any>, seen: Set<any>): string;
2
2
  export declare function grafastColor(text: string, n: number): string;
3
+ /**
4
+ * Prints something grafast-style (i.e. concise, coloured, with helpful detail)
5
+ */
3
6
  export declare function grafastPrint(symbol: symbol | symbol[] | Record<symbol, any> | Map<any, any> | any): string;
7
+ /**
8
+ * An ANSI-aware pad function; strips ANSI sequences from the string, figures
9
+ * out how much it needs to pad it by, and then pads the original string by
10
+ * that amount.
11
+ */
4
12
  export declare function ansiPad(ansiString: string, targetLength: number, fill: string, position: "start" | "end"): string;
5
13
  //# sourceMappingURL=grafastPrint.d.ts.map
@@ -2,13 +2,35 @@ import type { DirectiveNode, FieldNode, SelectionNode } from "graphql";
2
2
  import * as graphql from "graphql";
3
3
  import type { OperationPlan } from "./engine/OperationPlan.js";
4
4
  import type { __TrackedValueStep } from "./steps/index.js";
5
+ /**
6
+ * Given a selection, finds the first directive named `directiveName` and, if
7
+ * found, extracts and returns the value from the argument named
8
+ * `argumentName`, tracking variable access if necessary.
9
+ *
10
+ * @remarks Currently only supports booleans.
11
+ *
12
+ * @internal
13
+ *
14
+ * PERF: inline.
15
+ */
5
16
  export declare function evalDirectiveArg<T = unknown>(selection: SelectionNode, directiveName: string, argumentName: string, variableValuesStep: __TrackedValueStep, defaultValue: T): T | undefined;
6
17
  export declare function evalDirectiveArgDirect<T = unknown>(directive: DirectiveNode, argumentName: string, variableValuesStep: __TrackedValueStep, defaultValue: T): T | undefined;
18
+ /**
19
+ * @internal
20
+ */
7
21
  export interface SelectionSetDigest {
8
22
  label: string | undefined;
9
23
  fields: Map<string, FieldNode[]>;
10
24
  deferred: SelectionSetDigest[] | undefined;
11
25
  }
26
+ /**
27
+ * Implements the `GraphQLCollectFields` algorithm - like `CollectFields` the
28
+ * GraphQL spec, but modified such that access to variables is tracked.
29
+ *
30
+ * @see https://spec.graphql.org/draft/#CollectFields()
31
+ *
32
+ * @internal
33
+ */
12
34
  export declare function graphqlCollectFields(operationPlan: OperationPlan, parentStepId: number, objectType: graphql.GraphQLObjectType, selections: readonly SelectionNode[], isMutation?: boolean, visitedFragments?: {
13
35
  [fragmentName: string]: true;
14
36
  }, selectionSetDigest?: SelectionSetDigest): SelectionSetDigest;
@@ -1,4 +1,8 @@
1
1
  import type { FieldNode, GraphQLObjectType, SelectionNode } from "graphql";
2
2
  import type { OperationPlan } from "./index.js";
3
+ /**
4
+ * Given a list of polymorphic selections, return a list of the nested field
5
+ * selections that apply to the object type `type`.
6
+ */
3
7
  export declare function fieldSelectionsForType(operationPlan: OperationPlan, type: GraphQLObjectType, selections: ReadonlyArray<SelectionNode>, result?: Array<FieldNode>): ReadonlyArray<FieldNode>;
4
8
  //# sourceMappingURL=graphqlMergeSelectionSets.d.ts.map
package/dist/index.d.ts CHANGED
@@ -9,15 +9,20 @@ import { OperationPlan } from "./engine/OperationPlan.js";
9
9
  import { GrafastError, isGrafastError, isSafeError, SafeError } from "./error.js";
10
10
  import { execute } from "./execute.js";
11
11
  import { grafast, grafastSync } from "./grafastGraphql.js";
12
- import { $$bypassGraphQL, $$eventEmitter, $$extensions, $$idempotent, $$verbatim, ArgumentApplyPlanResolver, ArgumentInputPlanResolver, BaseEventMap, BaseGraphQLArguments, BaseGraphQLRootValue, BaseGraphQLVariables, EnumValueApplyPlanResolver, EventCallback, EventMapKey, ExecutionEventEmitter, ExecutionEventMap, ExecutionExtra, FieldArgs, FieldInfo, FieldPlanResolver, GrafastArgumentConfig, GrafastArgumentExtensions, GrafastEnumValueExtensions, GrafastFieldConfig, GrafastFieldConfigArgumentMap, GrafastFieldExtensions, GrafastInputFieldConfig, GrafastInputFieldExtensions, GrafastObjectTypeExtensions, GrafastResultsList, GrafastResultStreamList, GrafastSubscriber, GrafastValuesList, InputObjectFieldApplyPlanResolver, InputObjectFieldInputPlanResolver, InputObjectTypeInputPlanResolver, InputStep, JSONArray, JSONObject, JSONValue, NodeIdCodec, NodeIdHandler, OutputPlanForType, PolymorphicData, PromiseOrDirect, ScalarPlanResolver, StepOptimizeOptions, StepStreamOptions, TypedEventEmitter } from "./interfaces.js";
12
+ import { $$bypassGraphQL, $$eventEmitter, $$extensions, $$idempotent, $$verbatim, ArgumentApplyPlanResolver, ArgumentInputPlanResolver, BaseEventMap, BaseGraphQLArguments, BaseGraphQLRootValue, BaseGraphQLVariables, EnumValueApplyPlanResolver, EventCallback, EventMapKey, ExecutionEventEmitter, ExecutionEventMap, ExecutionExtra, FieldArgs, FieldInfo, FieldPlanResolver, GrafastArgumentConfig, GrafastFieldConfig, GrafastFieldConfigArgumentMap, GrafastInputFieldConfig, GrafastResultsList, GrafastResultStreamList, GrafastSubscriber, GrafastValuesList, InputObjectFieldApplyPlanResolver, InputObjectFieldInputPlanResolver, InputObjectTypeInputPlanResolver, InputStep, JSONArray, JSONObject, JSONValue, NodeIdCodec, NodeIdHandler, OutputPlanForType, PolymorphicData, PromiseOrDirect, ScalarPlanResolver, StepOptimizeOptions, StepStreamOptions, TypedEventEmitter } from "./interfaces.js";
13
13
  import { polymorphicWrap } from "./polymorphic.js";
14
- import { assertListCapableStep, BaseStep, ExecutableStep, isExecutableStep, isListCapableStep, isModifierStep, isObjectLikeStep, isStreamableStep, ListCapableStep, ModifierStep, ObjectLikeStep, PolymorphicStep, StreamableStep, UnbatchedExecutableStep } from "./step.js";
15
- import { __InputListStep, __InputObjectStep, __InputObjectStepWithDollars, __InputStaticLeafStep, __ItemStep, __ListTransformStep, __TrackedValueStep, __TrackedValueStepWithDollars, __ValueStep, access, AccessStep, ActualKeyByDesiredKey, connection, ConnectionCapableStep, ConnectionStep, constant, ConstantStep, context, debugPlans, deepEval, DeepEvalStep, each, EdgeCapableStep, EdgeStep, error, ErrorStep, filter, FilterPlanMemo, first, FirstStep, GraphQLItemHandler, graphqlItemHandler, graphqlResolver, GraphQLResolverStep, groupBy, GroupByPlanMemo, lambda, LambdaStep, last, LastStep, list, listen, ListenStep, ListStep, listTransform, ListTransformItemPlanCallback, ListTransformOptions, ListTransformReduce, LoadedRecordStep, loadMany, LoadManyCallback, loadManyCallback, loadOne, LoadOneCallback, loadOneCallback, LoadOptions, LoadStep, node, NodeStep, object, ObjectPlanMeta, ObjectStep, operationPlan, PageInfoCapableStep, partitionByIndex, proxy, ProxyStep, remapKeys, RemapKeysStep, reverse, reverseArray, ReverseStep, setter, SetterCapableStep, SetterStep, specFromNodeId } from "./steps/index.js";
14
+ import { assertExecutableStep, assertListCapableStep, assertModifierStep, BaseStep, ExecutableStep, isExecutableStep, isListCapableStep, isModifierStep, isObjectLikeStep, isStreamableStep, ListCapableStep, ModifierStep, ObjectLikeStep, PolymorphicStep, StreamableStep, UnbatchedExecutableStep } from "./step.js";
15
+ import { __InputListStep, __InputObjectStep, __InputObjectStepWithDollars, __InputStaticLeafStep, __ItemStep, __ListTransformStep, __TrackedValueStep, __TrackedValueStepWithDollars, __ValueStep, access, AccessStep, ActualKeyByDesiredKey, applyTransforms, ApplyTransformsStep, assertEdgeCapableStep, assertPageInfoCapableStep, connection, ConnectionCapableStep, ConnectionStep, constant, ConstantStep, context, debugPlans, each, EdgeCapableStep, EdgeStep, error, ErrorStep, filter, FilterPlanMemo, first, FirstStep, GraphQLItemHandler, graphqlItemHandler, graphqlResolver, GraphQLResolverStep, groupBy, GroupByPlanMemo, lambda, LambdaStep, last, LastStep, list, listen, ListenStep, ListStep, listTransform, ListTransformItemPlanCallback, ListTransformOptions, ListTransformReduce, LoadedRecordStep, loadMany, LoadManyCallback, loadManyCallback, loadOne, LoadOneCallback, loadOneCallback, LoadOptions, LoadStep, node, NodeStep, object, ObjectPlanMeta, ObjectStep, operationPlan, PageInfoCapableStep, partitionByIndex, proxy, ProxyStep, remapKeys, RemapKeysStep, reverse, reverseArray, ReverseStep, setter, SetterCapableStep, SetterStep, specFromNodeId } from "./steps/index.js";
16
16
  import { stringifyPayload } from "./stringifyPayload.js";
17
17
  import { stripAnsi } from "./stripAnsi.js";
18
18
  import { subscribe } from "./subscribe.js";
19
19
  import { arrayOfLength, arraysMatch, getEnumValueConfig, GrafastInputFieldConfigMap, GrafastInputObjectType, GrafastObjectType, inputObjectFieldSpec, InputObjectTypeSpec, isPromiseLike, newGrafastFieldConfigBuilder, newInputObjectTypeBuilder, newObjectTypeBuilder, objectFieldSpec, objectSpec, ObjectTypeFields, ObjectTypeSpec, stepADependsOnStepB, stepAMayDependOnStepB, stepsAreInSamePhase } from "./utils.js";
20
20
  export { isAsyncIterable } from "iterall";
21
- export { __InputListStep, __InputObjectStep, __InputObjectStepWithDollars, __InputStaticLeafStep, __ItemStep, __ListTransformStep, __TrackedValueStep, __TrackedValueStepWithDollars, __ValueStep, $$bypassGraphQL, $$eventEmitter, $$extensions, $$idempotent, $$verbatim, access, AccessStep, ActualKeyByDesiredKey, ArgumentApplyPlanResolver, ArgumentInputPlanResolver, arrayOfLength, arraysMatch, assertListCapableStep, BaseEventMap, BaseGraphQLArguments, BaseGraphQLRootValue, BaseGraphQLVariables, BaseStep, connection, ConnectionCapableStep, ConnectionStep, constant, ConstantStep, context, debugPlans, deepEval, DeepEvalStep, defer, Deferred, each, EdgeCapableStep, EdgeStep, EnumPlans, EnumValueApplyPlanResolver, error, ErrorStep, EventCallback, EventMapKey, ExecutableStep, execute, ExecutionEventEmitter, ExecutionEventMap, ExecutionExtra, exportAs, exportAsMany, FieldArgs, FieldInfo, FieldPlanResolver, FieldPlans, filter, FilterPlanMemo, first, FirstStep, getEnumValueConfig, grafast, GrafastArgumentConfig, GrafastArgumentExtensions, GrafastEnumValueExtensions, GrafastError, GrafastFieldConfig, GrafastFieldConfigArgumentMap, GrafastFieldExtensions, grafast as grafastGraphql, grafastSync as grafastGraphqlSync, GrafastInputFieldConfig, GrafastInputFieldConfigMap, GrafastInputFieldExtensions, GrafastInputObjectType, GrafastObjectType, GrafastObjectTypeExtensions, GrafastPlans, grafastPrint, GrafastResultsList, GrafastResultStreamList, GrafastSubscriber, grafastSync, GrafastValuesList, GraphQLItemHandler, graphqlItemHandler, graphqlResolver, GraphQLResolverStep, groupBy, GroupByPlanMemo, InputObjectFieldApplyPlanResolver, InputObjectFieldInputPlanResolver, inputObjectFieldSpec, InputObjectPlans, InputObjectTypeInputPlanResolver, InputObjectTypeSpec, InputStep, InterfaceOrUnionPlans, isDev, isExecutableStep, isGrafastError, isListCapableStep, isModifierStep, isObjectLikeStep, isPromiseLike, isSafeError, isStreamableStep, JSONArray, JSONObject, JSONValue, lambda, LambdaStep, last, LastStep, list, ListCapableStep, listen, ListenStep, ListStep, listTransform, ListTransformItemPlanCallback, ListTransformOptions, ListTransformReduce, LoadedRecordStep, loadMany, LoadManyCallback, loadManyCallback, loadOne, LoadOneCallback, loadOneCallback, LoadOptions, LoadStep, makeGrafastSchema, ModifierStep, newGrafastFieldConfigBuilder, newInputObjectTypeBuilder, newObjectTypeBuilder, node, NodeIdCodec, NodeIdHandler, NodeStep, noop, object, objectFieldSpec, ObjectLikeStep, ObjectPlanMeta, ObjectPlans, objectSpec, ObjectStep, ObjectTypeFields, ObjectTypeSpec, OperationPlan, operationPlan, OutputPlanForType, PageInfoCapableStep, partitionByIndex, PolymorphicData, PolymorphicStep, polymorphicWrap, PrintPlanGraphOptions, PromiseOrDirect, proxy, ProxyStep, remapKeys, RemapKeysStep, reverse, reverseArray, ReverseStep, SafeError, ScalarPlanResolver, ScalarPlans, setter, SetterCapableStep, SetterStep, specFromNodeId, stepADependsOnStepB, stepAMayDependOnStepB, StepOptimizeOptions, stepsAreInSamePhase, StepStreamOptions, StreamableStep, stringifyPayload, stripAnsi, subscribe, TypedEventEmitter, UnbatchedExecutableStep, };
21
+ export { __InputListStep, __InputObjectStep, __InputObjectStepWithDollars, __InputStaticLeafStep, __ItemStep, __ListTransformStep, __TrackedValueStep, __TrackedValueStepWithDollars, __ValueStep, $$bypassGraphQL, $$eventEmitter, $$extensions, $$idempotent, $$verbatim, access, AccessStep, ActualKeyByDesiredKey, applyTransforms, ApplyTransformsStep, ArgumentApplyPlanResolver, ArgumentInputPlanResolver, arrayOfLength, arraysMatch, assertEdgeCapableStep, assertExecutableStep, assertListCapableStep, assertModifierStep, assertPageInfoCapableStep, BaseEventMap, BaseGraphQLArguments, BaseGraphQLRootValue, BaseGraphQLVariables, BaseStep, connection, ConnectionCapableStep, ConnectionStep, constant, ConstantStep, context, debugPlans, defer, Deferred, each, EdgeCapableStep, EdgeStep, EnumPlans, EnumValueApplyPlanResolver, error, ErrorStep, EventCallback, EventMapKey, ExecutableStep, execute, ExecutionEventEmitter, ExecutionEventMap, ExecutionExtra, exportAs, exportAsMany, FieldArgs, FieldInfo, FieldPlanResolver, FieldPlans, filter, FilterPlanMemo, first, FirstStep, getEnumValueConfig, grafast, GrafastArgumentConfig, GrafastError, GrafastFieldConfig, GrafastFieldConfigArgumentMap, grafast as grafastGraphql, grafastSync as grafastGraphqlSync, GrafastInputFieldConfig, GrafastInputFieldConfigMap, GrafastInputObjectType, GrafastObjectType, GrafastPlans, grafastPrint, GrafastResultsList, GrafastResultStreamList, GrafastSubscriber, grafastSync, GrafastValuesList, GraphQLItemHandler, graphqlItemHandler, graphqlResolver, GraphQLResolverStep, groupBy, GroupByPlanMemo, InputObjectFieldApplyPlanResolver, InputObjectFieldInputPlanResolver, inputObjectFieldSpec, InputObjectPlans, InputObjectTypeInputPlanResolver, InputObjectTypeSpec, InputStep, InterfaceOrUnionPlans, isDev, isExecutableStep, isGrafastError, isListCapableStep, isModifierStep, isObjectLikeStep, isPromiseLike, isSafeError, isStreamableStep, JSONArray, JSONObject, JSONValue, lambda, LambdaStep, last, LastStep, list, ListCapableStep, listen, ListenStep, ListStep, listTransform, ListTransformItemPlanCallback, ListTransformOptions, ListTransformReduce, LoadedRecordStep, loadMany, LoadManyCallback, loadManyCallback, loadOne, LoadOneCallback, loadOneCallback, LoadOptions, LoadStep, makeGrafastSchema, ModifierStep, newGrafastFieldConfigBuilder, newInputObjectTypeBuilder, newObjectTypeBuilder, node, NodeIdCodec, NodeIdHandler, NodeStep, noop, object, objectFieldSpec, ObjectLikeStep, ObjectPlanMeta, ObjectPlans, objectSpec, ObjectStep, ObjectTypeFields, ObjectTypeSpec, OperationPlan, operationPlan, OutputPlanForType, PageInfoCapableStep, partitionByIndex, PolymorphicData, PolymorphicStep, polymorphicWrap, PrintPlanGraphOptions, PromiseOrDirect, proxy, ProxyStep, remapKeys, RemapKeysStep, reverse, reverseArray, ReverseStep, SafeError, ScalarPlanResolver, ScalarPlans, setter, SetterCapableStep, SetterStep, specFromNodeId, stepADependsOnStepB, stepAMayDependOnStepB, StepOptimizeOptions, stepsAreInSamePhase, StepStreamOptions, StreamableStep, stringifyPayload, stripAnsi, subscribe, TypedEventEmitter, UnbatchedExecutableStep, };
22
22
  export { hookArgs } from "./args.js";
23
+ export { version } from "./version.js";
24
+ /** @deprecated Renamed to 'applyTransforms' */
25
+ export declare const deepEval: typeof applyTransforms;
26
+ /** @deprecated Renamed to 'ApplyTransformsStep' */
27
+ export declare const DeepEvalStep: typeof ApplyTransformsStep;
23
28
  //# sourceMappingURL=index.d.ts.map