@graphitation/supermassive 3.0.0-alpha.1 → 3.0.0-alpha.4
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/.eslintcache +1 -1
- package/CHANGELOG.md +18 -2
- package/lib/__testUtils__/execute.d.ts +13 -0
- package/lib/__testUtils__/execute.d.ts.map +1 -0
- package/lib/__testUtils__/execute.js +203 -0
- package/lib/__testUtils__/execute.js.map +7 -0
- package/lib/__testUtils__/execute.mjs +181 -0
- package/lib/__testUtils__/execute.mjs.map +7 -0
- package/lib/__testUtils__/gql.d.ts +7 -0
- package/lib/__testUtils__/gql.d.ts.map +1 -0
- package/lib/{supermassive-ast/TypedAST.js → __testUtils__/gql.js} +8 -10
- package/lib/__testUtils__/gql.js.map +7 -0
- package/lib/__testUtils__/gql.mjs +8 -0
- package/lib/__testUtils__/gql.mjs.map +7 -0
- package/lib/benchmarks/index.js +15 -20
- package/lib/benchmarks/index.js.map +3 -3
- package/lib/benchmarks/index.mjs +16 -23
- package/lib/benchmarks/index.mjs.map +2 -2
- package/lib/collectFields.d.ts +4 -9
- package/lib/collectFields.d.ts.map +1 -1
- package/lib/collectFields.js +38 -99
- package/lib/collectFields.js.map +2 -2
- package/lib/collectFields.mjs +41 -100
- package/lib/collectFields.mjs.map +2 -2
- package/lib/executeWithSchema.d.ts +1 -1
- package/lib/executeWithSchema.d.ts.map +1 -1
- package/lib/executeWithSchema.js +27 -17
- package/lib/executeWithSchema.js.map +2 -2
- package/lib/executeWithSchema.mjs +32 -24
- package/lib/executeWithSchema.mjs.map +2 -2
- package/lib/executeWithoutSchema.d.ts +9 -5
- package/lib/executeWithoutSchema.d.ts.map +1 -1
- package/lib/executeWithoutSchema.js +217 -242
- package/lib/executeWithoutSchema.js.map +3 -3
- package/lib/executeWithoutSchema.mjs +225 -249
- package/lib/executeWithoutSchema.mjs.map +3 -3
- package/lib/index.d.ts +16 -11
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +24 -11
- package/lib/index.js.map +2 -2
- package/lib/index.mjs +32 -11
- package/lib/index.mjs.map +2 -2
- package/lib/schema/definition.d.ts +100 -0
- package/lib/schema/definition.d.ts.map +1 -0
- package/lib/schema/definition.js +77 -0
- package/lib/schema/definition.js.map +7 -0
- package/lib/schema/definition.mjs +58 -0
- package/lib/schema/definition.mjs.map +7 -0
- package/lib/schema/directives.d.ts +42 -0
- package/lib/schema/directives.d.ts.map +1 -0
- package/lib/schema/directives.js +87 -0
- package/lib/schema/directives.js.map +7 -0
- package/lib/schema/directives.mjs +70 -0
- package/lib/schema/directives.mjs.map +7 -0
- package/lib/schema/fragment.d.ts +63 -0
- package/lib/schema/fragment.d.ts.map +1 -0
- package/lib/schema/fragment.js +295 -0
- package/lib/schema/fragment.js.map +7 -0
- package/lib/schema/fragment.mjs +292 -0
- package/lib/schema/fragment.mjs.map +7 -0
- package/lib/schema/reference.d.ts +12 -0
- package/lib/schema/reference.d.ts.map +1 -0
- package/lib/schema/reference.js +137 -0
- package/lib/schema/reference.js.map +7 -0
- package/lib/schema/reference.mjs +118 -0
- package/lib/schema/reference.mjs.map +7 -0
- package/lib/schema/resolvers.d.ts +9 -0
- package/lib/schema/resolvers.d.ts.map +1 -0
- package/lib/schema/resolvers.js +47 -0
- package/lib/schema/resolvers.js.map +7 -0
- package/lib/schema/resolvers.mjs +35 -0
- package/lib/schema/resolvers.mjs.map +7 -0
- package/lib/subscribeWithSchema.d.ts +1 -1
- package/lib/subscribeWithSchema.d.ts.map +1 -1
- package/lib/subscribeWithSchema.js +27 -17
- package/lib/subscribeWithSchema.js.map +2 -2
- package/lib/subscribeWithSchema.mjs +32 -24
- package/lib/subscribeWithSchema.mjs.map +2 -2
- package/lib/types.d.ts +16 -27
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +0 -14
- package/lib/types.js.map +2 -2
- package/lib/types.mjs +0 -11
- package/lib/types.mjs.map +3 -3
- package/lib/utilities/addMinimalViableSchemaToRequestDocument.d.ts +12 -0
- package/lib/utilities/addMinimalViableSchemaToRequestDocument.d.ts.map +1 -0
- package/lib/utilities/addMinimalViableSchemaToRequestDocument.js +116 -0
- package/lib/utilities/addMinimalViableSchemaToRequestDocument.js.map +7 -0
- package/lib/utilities/addMinimalViableSchemaToRequestDocument.mjs +105 -0
- package/lib/utilities/addMinimalViableSchemaToRequestDocument.mjs.map +7 -0
- package/lib/utilities/annotateDocumentGraphQLTransform.d.ts +4 -0
- package/lib/utilities/annotateDocumentGraphQLTransform.d.ts.map +1 -0
- package/lib/{supermassive-ast → utilities}/annotateDocumentGraphQLTransform.js +3 -10
- package/lib/utilities/annotateDocumentGraphQLTransform.js.map +7 -0
- package/lib/utilities/annotateDocumentGraphQLTransform.mjs +10 -0
- package/lib/utilities/annotateDocumentGraphQLTransform.mjs.map +7 -0
- package/lib/utilities/coerceInputValue.d.ts +10 -0
- package/lib/utilities/coerceInputValue.d.ts.map +1 -0
- package/lib/utilities/coerceInputValue.js +181 -0
- package/lib/utilities/coerceInputValue.js.map +7 -0
- package/lib/utilities/coerceInputValue.mjs +167 -0
- package/lib/utilities/coerceInputValue.mjs.map +7 -0
- package/lib/utilities/decodeASTSchema.d.ts +7 -0
- package/lib/utilities/decodeASTSchema.d.ts.map +1 -0
- package/lib/utilities/decodeASTSchema.js +246 -0
- package/lib/utilities/decodeASTSchema.js.map +7 -0
- package/lib/utilities/decodeASTSchema.mjs +245 -0
- package/lib/utilities/decodeASTSchema.mjs.map +7 -0
- package/lib/utilities/encodeASTSchema.d.ts +4 -0
- package/lib/utilities/encodeASTSchema.d.ts.map +1 -0
- package/lib/utilities/encodeASTSchema.js +151 -0
- package/lib/utilities/encodeASTSchema.js.map +7 -0
- package/lib/utilities/encodeASTSchema.mjs +134 -0
- package/lib/utilities/encodeASTSchema.mjs.map +7 -0
- package/lib/utilities/extractMinimalViableSchemaForRequestDocument.d.ts +8 -0
- package/lib/utilities/extractMinimalViableSchemaForRequestDocument.d.ts.map +1 -0
- package/lib/utilities/extractMinimalViableSchemaForRequestDocument.js +238 -0
- package/lib/utilities/extractMinimalViableSchemaForRequestDocument.js.map +7 -0
- package/lib/utilities/extractMinimalViableSchemaForRequestDocument.mjs +245 -0
- package/lib/utilities/extractMinimalViableSchemaForRequestDocument.mjs.map +7 -0
- package/lib/utilities/makeReadableErrorPath.d.ts +3 -0
- package/lib/utilities/makeReadableErrorPath.d.ts.map +1 -0
- package/lib/utilities/makeReadableErrorPath.js +47 -0
- package/lib/utilities/makeReadableErrorPath.js.map +7 -0
- package/lib/utilities/makeReadableErrorPath.mjs +28 -0
- package/lib/utilities/makeReadableErrorPath.mjs.map +7 -0
- package/lib/utilities/mergeResolvers.d.ts +2 -2
- package/lib/utilities/mergeResolvers.d.ts.map +1 -1
- package/lib/utilities/mergeResolvers.js +20 -22
- package/lib/utilities/mergeResolvers.js.map +2 -2
- package/lib/utilities/mergeResolvers.mjs +20 -25
- package/lib/utilities/mergeResolvers.mjs.map +2 -2
- package/lib/utilities/mergeSchemaDefinitions.d.ts +8 -0
- package/lib/utilities/mergeSchemaDefinitions.d.ts.map +1 -0
- package/lib/utilities/mergeSchemaDefinitions.js +126 -0
- package/lib/utilities/mergeSchemaDefinitions.js.map +7 -0
- package/lib/utilities/mergeSchemaDefinitions.mjs +114 -0
- package/lib/utilities/mergeSchemaDefinitions.mjs.map +7 -0
- package/lib/utilities/typeNameFromAST.d.ts +1 -1
- package/lib/utilities/typeNameFromAST.d.ts.map +1 -1
- package/lib/utilities/typeNameFromAST.js.map +2 -2
- package/lib/utilities/typeNameFromAST.mjs.map +2 -2
- package/lib/utilities/valueFromAST.d.ts +27 -0
- package/lib/utilities/valueFromAST.d.ts.map +1 -0
- package/lib/utilities/valueFromAST.js +139 -0
- package/lib/utilities/valueFromAST.js.map +7 -0
- package/lib/utilities/valueFromAST.mjs +125 -0
- package/lib/utilities/valueFromAST.mjs.map +7 -0
- package/lib/utilities/valueFromASTUntyped.d.ts +21 -0
- package/lib/utilities/valueFromASTUntyped.d.ts.map +1 -0
- package/lib/utilities/valueFromASTUntyped.js +51 -0
- package/lib/utilities/valueFromASTUntyped.js.map +7 -0
- package/lib/utilities/valueFromASTUntyped.mjs +32 -0
- package/lib/utilities/valueFromASTUntyped.mjs.map +7 -0
- package/lib/values.d.ts +8 -12
- package/lib/values.d.ts.map +1 -1
- package/lib/values.js +75 -63
- package/lib/values.js.map +2 -2
- package/lib/values.mjs +77 -71
- package/lib/values.mjs.map +2 -2
- package/package.json +8 -6
- package/lib/definition.d.ts +0 -7
- package/lib/definition.d.ts.map +0 -1
- package/lib/definition.js +0 -59
- package/lib/definition.js.map +0 -7
- package/lib/definition.mjs +0 -40
- package/lib/definition.mjs.map +0 -7
- package/lib/directives.d.ts +0 -8
- package/lib/directives.d.ts.map +0 -1
- package/lib/directives.js +0 -47
- package/lib/directives.js.map +0 -7
- package/lib/directives.mjs +0 -37
- package/lib/directives.mjs.map +0 -7
- package/lib/extractImplicitTypesRuntime.d.ts +0 -4
- package/lib/extractImplicitTypesRuntime.d.ts.map +0 -1
- package/lib/extractImplicitTypesRuntime.js +0 -123
- package/lib/extractImplicitTypesRuntime.js.map +0 -7
- package/lib/extractImplicitTypesRuntime.mjs +0 -114
- package/lib/extractImplicitTypesRuntime.mjs.map +0 -7
- package/lib/supermassive-ast/TypedAST.d.ts +0 -370
- package/lib/supermassive-ast/TypedAST.d.ts.map +0 -1
- package/lib/supermassive-ast/TypedAST.js.map +0 -7
- package/lib/supermassive-ast/TypedAST.mjs +0 -10
- package/lib/supermassive-ast/TypedAST.mjs.map +0 -7
- package/lib/supermassive-ast/addTypesToRequestDocument.d.ts +0 -56
- package/lib/supermassive-ast/addTypesToRequestDocument.d.ts.map +0 -1
- package/lib/supermassive-ast/addTypesToRequestDocument.js +0 -473
- package/lib/supermassive-ast/addTypesToRequestDocument.js.map +0 -7
- package/lib/supermassive-ast/addTypesToRequestDocument.mjs +0 -463
- package/lib/supermassive-ast/addTypesToRequestDocument.mjs.map +0 -7
- package/lib/supermassive-ast/annotateDocumentGraphQLTransform.d.ts +0 -3
- package/lib/supermassive-ast/annotateDocumentGraphQLTransform.d.ts.map +0 -1
- package/lib/supermassive-ast/annotateDocumentGraphQLTransform.js.map +0 -7
- package/lib/supermassive-ast/annotateDocumentGraphQLTransform.mjs +0 -17
- package/lib/supermassive-ast/annotateDocumentGraphQLTransform.mjs.map +0 -7
- package/lib/supermassive-ast/directives.d.ts +0 -36
- package/lib/supermassive-ast/directives.d.ts.map +0 -1
- package/lib/supermassive-ast/directives.js +0 -165
- package/lib/supermassive-ast/directives.js.map +0 -7
- package/lib/supermassive-ast/directives.mjs +0 -153
- package/lib/supermassive-ast/directives.mjs.map +0 -7
- package/lib/supermassive-ast/index.d.ts +0 -6
- package/lib/supermassive-ast/index.d.ts.map +0 -1
- package/lib/supermassive-ast/index.js +0 -37
- package/lib/supermassive-ast/index.js.map +0 -7
- package/lib/supermassive-ast/index.mjs +0 -27
- package/lib/supermassive-ast/index.mjs.map +0 -7
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Taken from node_modules/graphql/language/ast.d.ts
|
|
3
|
-
* License: MIT License
|
|
4
|
-
* Copyright (c): GraphQL Contributors
|
|
5
|
-
*
|
|
6
|
-
* Our changes MUST be annotated inline for ease of future merging.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* [SUPERMASSIVE]
|
|
10
|
-
*
|
|
11
|
-
* We don't need `Location`, `Token`, and `isNode` , so remove it and its dependencies.
|
|
12
|
-
*/
|
|
13
|
-
type Location = unknown;
|
|
14
|
-
/**
|
|
15
|
-
* The list of all possible AST node types.
|
|
16
|
-
*/
|
|
17
|
-
export type ASTNode = NameNode | DocumentNode | OperationDefinitionNode | VariableDefinitionNode | VariableNode | SelectionSetNode | FieldNode | ArgumentNode | FragmentSpreadNode | InlineFragmentNode | FragmentDefinitionNode | IntValueNode | FloatValueNode | StringValueNode | BooleanValueNode | NullValueNode | EnumValueNode | ListValueNode | ObjectValueNode | ObjectFieldNode | DirectiveNode | NamedTypeNode | ListTypeNode | NonNullTypeNode | SchemaDefinitionNode | OperationTypeDefinitionNode | ScalarTypeDefinitionNode | ObjectTypeDefinitionNode | FieldDefinitionNode | InputValueDefinitionNode | InterfaceTypeDefinitionNode | UnionTypeDefinitionNode | EnumTypeDefinitionNode | EnumValueDefinitionNode | InputObjectTypeDefinitionNode | DirectiveDefinitionNode | SchemaExtensionNode | ScalarTypeExtensionNode | ObjectTypeExtensionNode | InterfaceTypeExtensionNode | UnionTypeExtensionNode | EnumTypeExtensionNode | InputObjectTypeExtensionNode;
|
|
18
|
-
/**
|
|
19
|
-
* Utility type listing all nodes indexed by their kind.
|
|
20
|
-
*/
|
|
21
|
-
export interface ASTKindToNode {
|
|
22
|
-
Name: NameNode;
|
|
23
|
-
Document: DocumentNode;
|
|
24
|
-
OperationDefinition: OperationDefinitionNode;
|
|
25
|
-
VariableDefinition: VariableDefinitionNode;
|
|
26
|
-
Variable: VariableNode;
|
|
27
|
-
SelectionSet: SelectionSetNode;
|
|
28
|
-
Field: FieldNode;
|
|
29
|
-
Argument: ArgumentNode;
|
|
30
|
-
FragmentSpread: FragmentSpreadNode;
|
|
31
|
-
InlineFragment: InlineFragmentNode;
|
|
32
|
-
FragmentDefinition: FragmentDefinitionNode;
|
|
33
|
-
IntValue: IntValueNode;
|
|
34
|
-
FloatValue: FloatValueNode;
|
|
35
|
-
StringValue: StringValueNode;
|
|
36
|
-
BooleanValue: BooleanValueNode;
|
|
37
|
-
NullValue: NullValueNode;
|
|
38
|
-
EnumValue: EnumValueNode;
|
|
39
|
-
ListValue: ListValueNode;
|
|
40
|
-
ObjectValue: ObjectValueNode;
|
|
41
|
-
ObjectField: ObjectFieldNode;
|
|
42
|
-
Directive: DirectiveNode;
|
|
43
|
-
NamedType: NamedTypeNode;
|
|
44
|
-
ListType: ListTypeNode;
|
|
45
|
-
NonNullType: NonNullTypeNode;
|
|
46
|
-
SchemaDefinition: SchemaDefinitionNode;
|
|
47
|
-
OperationTypeDefinition: OperationTypeDefinitionNode;
|
|
48
|
-
ScalarTypeDefinition: ScalarTypeDefinitionNode;
|
|
49
|
-
ObjectTypeDefinition: ObjectTypeDefinitionNode;
|
|
50
|
-
FieldDefinition: FieldDefinitionNode;
|
|
51
|
-
InputValueDefinition: InputValueDefinitionNode;
|
|
52
|
-
InterfaceTypeDefinition: InterfaceTypeDefinitionNode;
|
|
53
|
-
UnionTypeDefinition: UnionTypeDefinitionNode;
|
|
54
|
-
EnumTypeDefinition: EnumTypeDefinitionNode;
|
|
55
|
-
EnumValueDefinition: EnumValueDefinitionNode;
|
|
56
|
-
InputObjectTypeDefinition: InputObjectTypeDefinitionNode;
|
|
57
|
-
DirectiveDefinition: DirectiveDefinitionNode;
|
|
58
|
-
SchemaExtension: SchemaExtensionNode;
|
|
59
|
-
ScalarTypeExtension: ScalarTypeExtensionNode;
|
|
60
|
-
ObjectTypeExtension: ObjectTypeExtensionNode;
|
|
61
|
-
InterfaceTypeExtension: InterfaceTypeExtensionNode;
|
|
62
|
-
UnionTypeExtension: UnionTypeExtensionNode;
|
|
63
|
-
EnumTypeExtension: EnumTypeExtensionNode;
|
|
64
|
-
InputObjectTypeExtension: InputObjectTypeExtensionNode;
|
|
65
|
-
}
|
|
66
|
-
export interface NameNode {
|
|
67
|
-
readonly kind: "Name";
|
|
68
|
-
readonly loc?: Location;
|
|
69
|
-
readonly value: string;
|
|
70
|
-
}
|
|
71
|
-
export interface DocumentNode {
|
|
72
|
-
readonly kind: "Document";
|
|
73
|
-
readonly loc?: Location;
|
|
74
|
-
readonly definitions: ReadonlyArray<DefinitionNode>;
|
|
75
|
-
}
|
|
76
|
-
export type DefinitionNode = ExecutableDefinitionNode | TypeSystemDefinitionNode | TypeSystemExtensionNode;
|
|
77
|
-
export type ExecutableDefinitionNode = OperationDefinitionNode | FragmentDefinitionNode;
|
|
78
|
-
export interface OperationDefinitionNode {
|
|
79
|
-
readonly kind: "OperationDefinition";
|
|
80
|
-
readonly loc?: Location;
|
|
81
|
-
readonly operation: OperationTypeNode;
|
|
82
|
-
readonly name?: NameNode;
|
|
83
|
-
readonly variableDefinitions?: ReadonlyArray<VariableDefinitionNode>;
|
|
84
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
85
|
-
readonly selectionSet: SelectionSetNode;
|
|
86
|
-
}
|
|
87
|
-
export declare enum OperationTypeNode {
|
|
88
|
-
QUERY = "query",
|
|
89
|
-
MUTATION = "mutation",
|
|
90
|
-
SUBSCRIPTION = "subscription"
|
|
91
|
-
}
|
|
92
|
-
export interface VariableDefinitionNode {
|
|
93
|
-
readonly kind: "VariableDefinition";
|
|
94
|
-
readonly loc?: Location;
|
|
95
|
-
readonly variable: VariableNode;
|
|
96
|
-
readonly type: TypeNode;
|
|
97
|
-
readonly defaultValue?: ValueNode;
|
|
98
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
99
|
-
}
|
|
100
|
-
export interface VariableNode {
|
|
101
|
-
readonly kind: "Variable";
|
|
102
|
-
readonly loc?: Location;
|
|
103
|
-
readonly name: NameNode;
|
|
104
|
-
}
|
|
105
|
-
export interface SelectionSetNode {
|
|
106
|
-
kind: "SelectionSet";
|
|
107
|
-
loc?: Location;
|
|
108
|
-
selections: ReadonlyArray<SelectionNode>;
|
|
109
|
-
}
|
|
110
|
-
export type SelectionNode = FieldNode | FragmentSpreadNode | InlineFragmentNode;
|
|
111
|
-
export interface FieldNode {
|
|
112
|
-
readonly __type: TypeNode;
|
|
113
|
-
readonly kind: "Field";
|
|
114
|
-
readonly loc?: Location;
|
|
115
|
-
readonly alias?: NameNode;
|
|
116
|
-
readonly name: NameNode;
|
|
117
|
-
readonly arguments?: ReadonlyArray<ArgumentNode>;
|
|
118
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
119
|
-
readonly selectionSet?: SelectionSetNode;
|
|
120
|
-
}
|
|
121
|
-
export interface ArgumentNode {
|
|
122
|
-
readonly __type: TypeNode;
|
|
123
|
-
readonly __defaultValue?: ValueNode | null;
|
|
124
|
-
readonly kind: "Argument";
|
|
125
|
-
readonly loc?: Location;
|
|
126
|
-
readonly name: NameNode;
|
|
127
|
-
readonly value: ValueNode;
|
|
128
|
-
}
|
|
129
|
-
export interface FragmentSpreadNode {
|
|
130
|
-
readonly kind: "FragmentSpread";
|
|
131
|
-
readonly loc?: Location;
|
|
132
|
-
readonly name: NameNode;
|
|
133
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
134
|
-
}
|
|
135
|
-
export interface InlineFragmentNode {
|
|
136
|
-
readonly kind: "InlineFragment";
|
|
137
|
-
readonly loc?: Location;
|
|
138
|
-
readonly typeCondition?: NamedTypeNode;
|
|
139
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
140
|
-
readonly selectionSet: SelectionSetNode;
|
|
141
|
-
}
|
|
142
|
-
export interface FragmentDefinitionNode {
|
|
143
|
-
readonly kind: "FragmentDefinition";
|
|
144
|
-
readonly loc?: Location;
|
|
145
|
-
readonly name: NameNode;
|
|
146
|
-
readonly variableDefinitions?: ReadonlyArray<VariableDefinitionNode>;
|
|
147
|
-
readonly typeCondition: NamedTypeNode;
|
|
148
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
149
|
-
readonly selectionSet: SelectionSetNode;
|
|
150
|
-
}
|
|
151
|
-
export type ValueNode = VariableNode | IntValueNode | FloatValueNode | StringValueNode | BooleanValueNode | NullValueNode | EnumValueNode | ListValueNode | ObjectValueNode;
|
|
152
|
-
export interface IntValueNode {
|
|
153
|
-
readonly kind: "IntValue";
|
|
154
|
-
readonly loc?: Location;
|
|
155
|
-
readonly value: string;
|
|
156
|
-
}
|
|
157
|
-
export interface FloatValueNode {
|
|
158
|
-
readonly kind: "FloatValue";
|
|
159
|
-
readonly loc?: Location;
|
|
160
|
-
readonly value: string;
|
|
161
|
-
}
|
|
162
|
-
export interface StringValueNode {
|
|
163
|
-
readonly kind: "StringValue";
|
|
164
|
-
readonly loc?: Location;
|
|
165
|
-
readonly value: string;
|
|
166
|
-
readonly block?: boolean;
|
|
167
|
-
}
|
|
168
|
-
export interface BooleanValueNode {
|
|
169
|
-
readonly kind: "BooleanValue";
|
|
170
|
-
readonly loc?: Location;
|
|
171
|
-
readonly value: boolean;
|
|
172
|
-
}
|
|
173
|
-
export interface NullValueNode {
|
|
174
|
-
readonly kind: "NullValue";
|
|
175
|
-
readonly loc?: Location;
|
|
176
|
-
}
|
|
177
|
-
export interface EnumValueNode {
|
|
178
|
-
readonly kind: "EnumValue";
|
|
179
|
-
readonly loc?: Location;
|
|
180
|
-
readonly value: string;
|
|
181
|
-
}
|
|
182
|
-
export interface ListValueNode {
|
|
183
|
-
readonly kind: "ListValue";
|
|
184
|
-
readonly loc?: Location;
|
|
185
|
-
readonly values: ReadonlyArray<ValueNode>;
|
|
186
|
-
}
|
|
187
|
-
export interface ObjectValueNode {
|
|
188
|
-
readonly kind: "ObjectValue";
|
|
189
|
-
readonly loc?: Location;
|
|
190
|
-
readonly fields: ReadonlyArray<ObjectFieldNode>;
|
|
191
|
-
}
|
|
192
|
-
export interface ObjectFieldNode {
|
|
193
|
-
readonly kind: "ObjectField";
|
|
194
|
-
readonly loc?: Location;
|
|
195
|
-
readonly name: NameNode;
|
|
196
|
-
readonly value: ValueNode;
|
|
197
|
-
}
|
|
198
|
-
export interface DirectiveNode {
|
|
199
|
-
readonly kind: "Directive";
|
|
200
|
-
readonly loc?: Location;
|
|
201
|
-
readonly name: NameNode;
|
|
202
|
-
readonly arguments?: ReadonlyArray<ArgumentNode>;
|
|
203
|
-
}
|
|
204
|
-
export type TypeNode = NamedTypeNode | ListTypeNode | NonNullTypeNode;
|
|
205
|
-
export interface NamedTypeNode {
|
|
206
|
-
readonly kind: "NamedType";
|
|
207
|
-
readonly loc?: Location;
|
|
208
|
-
readonly name: NameNode;
|
|
209
|
-
}
|
|
210
|
-
export interface ListTypeNode {
|
|
211
|
-
readonly kind: "ListType";
|
|
212
|
-
readonly loc?: Location;
|
|
213
|
-
readonly type: TypeNode;
|
|
214
|
-
}
|
|
215
|
-
export interface NonNullTypeNode {
|
|
216
|
-
readonly kind: "NonNullType";
|
|
217
|
-
readonly loc?: Location;
|
|
218
|
-
readonly type: NamedTypeNode | ListTypeNode;
|
|
219
|
-
}
|
|
220
|
-
export type TypeSystemDefinitionNode = SchemaDefinitionNode | TypeDefinitionNode | DirectiveDefinitionNode;
|
|
221
|
-
export interface SchemaDefinitionNode {
|
|
222
|
-
readonly kind: "SchemaDefinition";
|
|
223
|
-
readonly loc?: Location;
|
|
224
|
-
readonly description?: StringValueNode;
|
|
225
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
226
|
-
readonly operationTypes: ReadonlyArray<OperationTypeDefinitionNode>;
|
|
227
|
-
}
|
|
228
|
-
export interface OperationTypeDefinitionNode {
|
|
229
|
-
readonly kind: "OperationTypeDefinition";
|
|
230
|
-
readonly loc?: Location;
|
|
231
|
-
readonly operation: OperationTypeNode;
|
|
232
|
-
readonly type: NamedTypeNode;
|
|
233
|
-
}
|
|
234
|
-
export type TypeDefinitionNode = ScalarTypeDefinitionNode | ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode | UnionTypeDefinitionNode | EnumTypeDefinitionNode | InputObjectTypeDefinitionNode;
|
|
235
|
-
export interface ScalarTypeDefinitionNode {
|
|
236
|
-
readonly kind: "ScalarTypeDefinition";
|
|
237
|
-
readonly loc?: Location;
|
|
238
|
-
readonly description?: StringValueNode;
|
|
239
|
-
readonly name: NameNode;
|
|
240
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
241
|
-
}
|
|
242
|
-
export interface ObjectTypeDefinitionNode {
|
|
243
|
-
readonly kind: "ObjectTypeDefinition";
|
|
244
|
-
readonly loc?: Location;
|
|
245
|
-
readonly description?: StringValueNode;
|
|
246
|
-
readonly name: NameNode;
|
|
247
|
-
readonly interfaces?: ReadonlyArray<NamedTypeNode>;
|
|
248
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
249
|
-
readonly fields?: ReadonlyArray<FieldDefinitionNode>;
|
|
250
|
-
}
|
|
251
|
-
export interface FieldDefinitionNode {
|
|
252
|
-
readonly kind: "FieldDefinition";
|
|
253
|
-
readonly loc?: Location;
|
|
254
|
-
readonly description?: StringValueNode;
|
|
255
|
-
readonly name: NameNode;
|
|
256
|
-
readonly arguments?: ReadonlyArray<InputValueDefinitionNode>;
|
|
257
|
-
readonly type: TypeNode;
|
|
258
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
259
|
-
}
|
|
260
|
-
export interface InputValueDefinitionNode {
|
|
261
|
-
readonly kind: "InputValueDefinition";
|
|
262
|
-
readonly loc?: Location;
|
|
263
|
-
readonly description?: StringValueNode;
|
|
264
|
-
readonly name: NameNode;
|
|
265
|
-
readonly type: TypeNode;
|
|
266
|
-
readonly defaultValue?: ValueNode;
|
|
267
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
268
|
-
}
|
|
269
|
-
export interface InterfaceTypeDefinitionNode {
|
|
270
|
-
readonly kind: "InterfaceTypeDefinition";
|
|
271
|
-
readonly loc?: Location;
|
|
272
|
-
readonly description?: StringValueNode;
|
|
273
|
-
readonly name: NameNode;
|
|
274
|
-
readonly interfaces?: ReadonlyArray<NamedTypeNode>;
|
|
275
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
276
|
-
readonly fields?: ReadonlyArray<FieldDefinitionNode>;
|
|
277
|
-
}
|
|
278
|
-
export interface UnionTypeDefinitionNode {
|
|
279
|
-
readonly kind: "UnionTypeDefinition";
|
|
280
|
-
readonly loc?: Location;
|
|
281
|
-
readonly description?: StringValueNode;
|
|
282
|
-
readonly name: NameNode;
|
|
283
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
284
|
-
readonly types?: ReadonlyArray<NamedTypeNode>;
|
|
285
|
-
}
|
|
286
|
-
export interface EnumTypeDefinitionNode {
|
|
287
|
-
readonly kind: "EnumTypeDefinition";
|
|
288
|
-
readonly loc?: Location;
|
|
289
|
-
readonly description?: StringValueNode;
|
|
290
|
-
readonly name: NameNode;
|
|
291
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
292
|
-
readonly values?: ReadonlyArray<EnumValueDefinitionNode>;
|
|
293
|
-
}
|
|
294
|
-
export interface EnumValueDefinitionNode {
|
|
295
|
-
readonly kind: "EnumValueDefinition";
|
|
296
|
-
readonly loc?: Location;
|
|
297
|
-
readonly description?: StringValueNode;
|
|
298
|
-
readonly name: NameNode;
|
|
299
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
300
|
-
}
|
|
301
|
-
export interface InputObjectTypeDefinitionNode {
|
|
302
|
-
readonly kind: "InputObjectTypeDefinition";
|
|
303
|
-
readonly loc?: Location;
|
|
304
|
-
readonly description?: StringValueNode;
|
|
305
|
-
readonly name: NameNode;
|
|
306
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
307
|
-
readonly fields?: ReadonlyArray<InputValueDefinitionNode>;
|
|
308
|
-
}
|
|
309
|
-
export interface DirectiveDefinitionNode {
|
|
310
|
-
readonly kind: "DirectiveDefinition";
|
|
311
|
-
readonly loc?: Location;
|
|
312
|
-
readonly description?: StringValueNode;
|
|
313
|
-
readonly name: NameNode;
|
|
314
|
-
readonly arguments?: ReadonlyArray<InputValueDefinitionNode>;
|
|
315
|
-
readonly repeatable: boolean;
|
|
316
|
-
readonly locations: ReadonlyArray<NameNode>;
|
|
317
|
-
}
|
|
318
|
-
export type TypeSystemExtensionNode = SchemaExtensionNode | TypeExtensionNode;
|
|
319
|
-
export interface SchemaExtensionNode {
|
|
320
|
-
readonly kind: "SchemaExtension";
|
|
321
|
-
readonly loc?: Location;
|
|
322
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
323
|
-
readonly operationTypes?: ReadonlyArray<OperationTypeDefinitionNode>;
|
|
324
|
-
}
|
|
325
|
-
export type TypeExtensionNode = ScalarTypeExtensionNode | ObjectTypeExtensionNode | InterfaceTypeExtensionNode | UnionTypeExtensionNode | EnumTypeExtensionNode | InputObjectTypeExtensionNode;
|
|
326
|
-
export interface ScalarTypeExtensionNode {
|
|
327
|
-
readonly kind: "ScalarTypeExtension";
|
|
328
|
-
readonly loc?: Location;
|
|
329
|
-
readonly name: NameNode;
|
|
330
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
331
|
-
}
|
|
332
|
-
export interface ObjectTypeExtensionNode {
|
|
333
|
-
readonly kind: "ObjectTypeExtension";
|
|
334
|
-
readonly loc?: Location;
|
|
335
|
-
readonly name: NameNode;
|
|
336
|
-
readonly interfaces?: ReadonlyArray<NamedTypeNode>;
|
|
337
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
338
|
-
readonly fields?: ReadonlyArray<FieldDefinitionNode>;
|
|
339
|
-
}
|
|
340
|
-
export interface InterfaceTypeExtensionNode {
|
|
341
|
-
readonly kind: "InterfaceTypeExtension";
|
|
342
|
-
readonly loc?: Location;
|
|
343
|
-
readonly name: NameNode;
|
|
344
|
-
readonly interfaces?: ReadonlyArray<NamedTypeNode>;
|
|
345
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
346
|
-
readonly fields?: ReadonlyArray<FieldDefinitionNode>;
|
|
347
|
-
}
|
|
348
|
-
export interface UnionTypeExtensionNode {
|
|
349
|
-
readonly kind: "UnionTypeExtension";
|
|
350
|
-
readonly loc?: Location;
|
|
351
|
-
readonly name: NameNode;
|
|
352
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
353
|
-
readonly types?: ReadonlyArray<NamedTypeNode>;
|
|
354
|
-
}
|
|
355
|
-
export interface EnumTypeExtensionNode {
|
|
356
|
-
readonly kind: "EnumTypeExtension";
|
|
357
|
-
readonly loc?: Location;
|
|
358
|
-
readonly name: NameNode;
|
|
359
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
360
|
-
readonly values?: ReadonlyArray<EnumValueDefinitionNode>;
|
|
361
|
-
}
|
|
362
|
-
export interface InputObjectTypeExtensionNode {
|
|
363
|
-
readonly kind: "InputObjectTypeExtension";
|
|
364
|
-
readonly loc?: Location;
|
|
365
|
-
readonly name: NameNode;
|
|
366
|
-
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
367
|
-
readonly fields?: ReadonlyArray<InputValueDefinitionNode>;
|
|
368
|
-
}
|
|
369
|
-
export {};
|
|
370
|
-
//# sourceMappingURL=TypedAST.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypedAST.d.ts","sourceRoot":"","sources":["../../src/supermassive-ast/TypedAST.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,KAAK,QAAQ,GAAG,OAAO,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,OAAO,GACf,QAAQ,GACR,YAAY,GACZ,uBAAuB,GACvB,sBAAsB,GACtB,YAAY,GACZ,gBAAgB,GAChB,SAAS,GACT,YAAY,GACZ,kBAAkB,GAClB,kBAAkB,GAClB,sBAAsB,GACtB,YAAY,GACZ,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,aAAa,GACb,eAAe,GACf,eAAe,GACf,aAAa,GACb,aAAa,GACb,YAAY,GACZ,eAAe,GACf,oBAAoB,GACpB,2BAA2B,GAC3B,wBAAwB,GACxB,wBAAwB,GACxB,mBAAmB,GACnB,wBAAwB,GACxB,2BAA2B,GAC3B,uBAAuB,GACvB,sBAAsB,GACtB,uBAAuB,GACvB,6BAA6B,GAC7B,uBAAuB,GACvB,mBAAmB,GACnB,uBAAuB,GACvB,uBAAuB,GACvB,0BAA0B,GAC1B,sBAAsB,GACtB,qBAAqB,GACrB,4BAA4B,CAAC;AAEjC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC;IACvB,mBAAmB,EAAE,uBAAuB,CAAC;IAC7C,kBAAkB,EAAE,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ACnC,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,CAAC;CAC1D;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,IAAI,EAAE,0BAA0B,CAAC;IAC1C,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,CAAC;CAC3D"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/supermassive-ast/TypedAST.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Taken from node_modules/graphql/language/ast.d.ts\n * License: MIT License\n * Copyright (c): GraphQL Contributors\n *\n * Our changes MUST be annotated inline for ease of future merging.\n */\n\n/**\n * [SUPERMASSIVE]\n *\n * We don't need `Location`, `Token`, and `isNode` , so remove it and its dependencies.\n */\ntype Location = unknown;\n\n/**\n * The list of all possible AST node types.\n */\nexport type ASTNode =\n | NameNode\n | DocumentNode\n | OperationDefinitionNode\n | VariableDefinitionNode\n | VariableNode\n | SelectionSetNode\n | FieldNode\n | ArgumentNode\n | FragmentSpreadNode\n | InlineFragmentNode\n | FragmentDefinitionNode\n | IntValueNode\n | FloatValueNode\n | StringValueNode\n | BooleanValueNode\n | NullValueNode\n | EnumValueNode\n | ListValueNode\n | ObjectValueNode\n | ObjectFieldNode\n | DirectiveNode\n | NamedTypeNode\n | ListTypeNode\n | NonNullTypeNode\n | SchemaDefinitionNode\n | OperationTypeDefinitionNode\n | ScalarTypeDefinitionNode\n | ObjectTypeDefinitionNode\n | FieldDefinitionNode\n | InputValueDefinitionNode\n | InterfaceTypeDefinitionNode\n | UnionTypeDefinitionNode\n | EnumTypeDefinitionNode\n | EnumValueDefinitionNode\n | InputObjectTypeDefinitionNode\n | DirectiveDefinitionNode\n | SchemaExtensionNode\n | ScalarTypeExtensionNode\n | ObjectTypeExtensionNode\n | InterfaceTypeExtensionNode\n | UnionTypeExtensionNode\n | EnumTypeExtensionNode\n | InputObjectTypeExtensionNode;\n\n/**\n * Utility type listing all nodes indexed by their kind.\n */\nexport interface ASTKindToNode {\n Name: NameNode;\n Document: DocumentNode;\n OperationDefinition: OperationDefinitionNode;\n VariableDefinition: VariableDefinitionNode;\n Variable: VariableNode;\n SelectionSet: SelectionSetNode;\n Field: FieldNode;\n Argument: ArgumentNode;\n FragmentSpread: FragmentSpreadNode;\n InlineFragment: InlineFragmentNode;\n FragmentDefinition: FragmentDefinitionNode;\n IntValue: IntValueNode;\n FloatValue: FloatValueNode;\n StringValue: StringValueNode;\n BooleanValue: BooleanValueNode;\n NullValue: NullValueNode;\n EnumValue: EnumValueNode;\n ListValue: ListValueNode;\n ObjectValue: ObjectValueNode;\n ObjectField: ObjectFieldNode;\n Directive: DirectiveNode;\n NamedType: NamedTypeNode;\n ListType: ListTypeNode;\n NonNullType: NonNullTypeNode;\n SchemaDefinition: SchemaDefinitionNode;\n OperationTypeDefinition: OperationTypeDefinitionNode;\n ScalarTypeDefinition: ScalarTypeDefinitionNode;\n ObjectTypeDefinition: ObjectTypeDefinitionNode;\n FieldDefinition: FieldDefinitionNode;\n InputValueDefinition: InputValueDefinitionNode;\n InterfaceTypeDefinition: InterfaceTypeDefinitionNode;\n UnionTypeDefinition: UnionTypeDefinitionNode;\n EnumTypeDefinition: EnumTypeDefinitionNode;\n EnumValueDefinition: EnumValueDefinitionNode;\n InputObjectTypeDefinition: InputObjectTypeDefinitionNode;\n DirectiveDefinition: DirectiveDefinitionNode;\n SchemaExtension: SchemaExtensionNode;\n ScalarTypeExtension: ScalarTypeExtensionNode;\n ObjectTypeExtension: ObjectTypeExtensionNode;\n InterfaceTypeExtension: InterfaceTypeExtensionNode;\n UnionTypeExtension: UnionTypeExtensionNode;\n EnumTypeExtension: EnumTypeExtensionNode;\n InputObjectTypeExtension: InputObjectTypeExtensionNode;\n}\n\n// Name\n\nexport interface NameNode {\n readonly kind: \"Name\";\n readonly loc?: Location;\n readonly value: string;\n}\n\n// Document\n\nexport interface DocumentNode {\n readonly kind: \"Document\";\n readonly loc?: Location;\n readonly definitions: ReadonlyArray<DefinitionNode>;\n}\n\nexport type DefinitionNode =\n | ExecutableDefinitionNode\n | TypeSystemDefinitionNode\n | TypeSystemExtensionNode;\n\nexport type ExecutableDefinitionNode =\n | OperationDefinitionNode\n | FragmentDefinitionNode;\n\nexport interface OperationDefinitionNode {\n readonly kind: \"OperationDefinition\";\n readonly loc?: Location;\n readonly operation: OperationTypeNode;\n readonly name?: NameNode;\n readonly variableDefinitions?: ReadonlyArray<VariableDefinitionNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly selectionSet: SelectionSetNode;\n}\n\nexport enum OperationTypeNode {\n QUERY = \"query\",\n MUTATION = \"mutation\",\n SUBSCRIPTION = \"subscription\",\n}\nexport interface VariableDefinitionNode {\n readonly kind: \"VariableDefinition\";\n readonly loc?: Location;\n readonly variable: VariableNode;\n readonly type: TypeNode;\n readonly defaultValue?: ValueNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface VariableNode {\n readonly kind: \"Variable\";\n readonly loc?: Location;\n readonly name: NameNode;\n}\n\nexport interface SelectionSetNode {\n kind: \"SelectionSet\";\n loc?: Location;\n selections: ReadonlyArray<SelectionNode>;\n}\n\nexport type SelectionNode = FieldNode | FragmentSpreadNode | InlineFragmentNode;\n\nexport interface FieldNode {\n readonly __type: TypeNode; // [SUPERMASSIVE] Add the return type\n readonly kind: \"Field\";\n readonly loc?: Location;\n readonly alias?: NameNode;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<ArgumentNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly selectionSet?: SelectionSetNode;\n}\n\nexport interface ArgumentNode {\n readonly __type: TypeNode; // [SUPERMASSIVE] Add the value type\n readonly __defaultValue?: ValueNode | null; // [SUPERMASSIVE] Add default value\n readonly kind: \"Argument\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly value: ValueNode;\n}\n\n// Fragments\n\nexport interface FragmentSpreadNode {\n readonly kind: \"FragmentSpread\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface InlineFragmentNode {\n readonly kind: \"InlineFragment\";\n readonly loc?: Location;\n readonly typeCondition?: NamedTypeNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly selectionSet: SelectionSetNode;\n}\n\nexport interface FragmentDefinitionNode {\n readonly kind: \"FragmentDefinition\";\n readonly loc?: Location;\n readonly name: NameNode;\n // Note: fragment variable definitions are experimental and may be changed\n // or removed in the future.\n readonly variableDefinitions?: ReadonlyArray<VariableDefinitionNode>;\n readonly typeCondition: NamedTypeNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly selectionSet: SelectionSetNode;\n}\n\n// Values\n\nexport type ValueNode =\n | VariableNode\n | IntValueNode\n | FloatValueNode\n | StringValueNode\n | BooleanValueNode\n | NullValueNode\n | EnumValueNode\n | ListValueNode\n | ObjectValueNode;\n\nexport interface IntValueNode {\n readonly kind: \"IntValue\";\n readonly loc?: Location;\n readonly value: string;\n}\n\nexport interface FloatValueNode {\n readonly kind: \"FloatValue\";\n readonly loc?: Location;\n readonly value: string;\n}\n\nexport interface StringValueNode {\n readonly kind: \"StringValue\";\n readonly loc?: Location;\n readonly value: string;\n readonly block?: boolean;\n}\n\nexport interface BooleanValueNode {\n readonly kind: \"BooleanValue\";\n readonly loc?: Location;\n readonly value: boolean;\n}\n\nexport interface NullValueNode {\n readonly kind: \"NullValue\";\n readonly loc?: Location;\n}\n\nexport interface EnumValueNode {\n readonly kind: \"EnumValue\";\n readonly loc?: Location;\n readonly value: string;\n}\n\nexport interface ListValueNode {\n readonly kind: \"ListValue\";\n readonly loc?: Location;\n readonly values: ReadonlyArray<ValueNode>;\n}\n\nexport interface ObjectValueNode {\n readonly kind: \"ObjectValue\";\n readonly loc?: Location;\n readonly fields: ReadonlyArray<ObjectFieldNode>;\n}\n\nexport interface ObjectFieldNode {\n readonly kind: \"ObjectField\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly value: ValueNode;\n}\n\n// Directives\n\nexport interface DirectiveNode {\n readonly kind: \"Directive\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<ArgumentNode>;\n}\n\n// Type Reference\n\nexport type TypeNode = NamedTypeNode | ListTypeNode | NonNullTypeNode;\n\nexport interface NamedTypeNode {\n readonly kind: \"NamedType\";\n readonly loc?: Location;\n readonly name: NameNode;\n}\n\nexport interface ListTypeNode {\n readonly kind: \"ListType\";\n readonly loc?: Location;\n readonly type: TypeNode;\n}\n\nexport interface NonNullTypeNode {\n readonly kind: \"NonNullType\";\n readonly loc?: Location;\n readonly type: NamedTypeNode | ListTypeNode;\n}\n\n// Type System Definition\n\nexport type TypeSystemDefinitionNode =\n | SchemaDefinitionNode\n | TypeDefinitionNode\n | DirectiveDefinitionNode;\n\nexport interface SchemaDefinitionNode {\n readonly kind: \"SchemaDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly operationTypes: ReadonlyArray<OperationTypeDefinitionNode>;\n}\n\nexport interface OperationTypeDefinitionNode {\n readonly kind: \"OperationTypeDefinition\";\n readonly loc?: Location;\n readonly operation: OperationTypeNode;\n readonly type: NamedTypeNode;\n}\n\n// Type Definition\n\nexport type TypeDefinitionNode =\n | ScalarTypeDefinitionNode\n | ObjectTypeDefinitionNode\n | InterfaceTypeDefinitionNode\n | UnionTypeDefinitionNode\n | EnumTypeDefinitionNode\n | InputObjectTypeDefinitionNode;\n\nexport interface ScalarTypeDefinitionNode {\n readonly kind: \"ScalarTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface ObjectTypeDefinitionNode {\n readonly kind: \"ObjectTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<FieldDefinitionNode>;\n}\n\nexport interface FieldDefinitionNode {\n readonly kind: \"FieldDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<InputValueDefinitionNode>;\n readonly type: TypeNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface InputValueDefinitionNode {\n readonly kind: \"InputValueDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly type: TypeNode;\n readonly defaultValue?: ValueNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface InterfaceTypeDefinitionNode {\n readonly kind: \"InterfaceTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<FieldDefinitionNode>;\n}\n\nexport interface UnionTypeDefinitionNode {\n readonly kind: \"UnionTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly types?: ReadonlyArray<NamedTypeNode>;\n}\n\nexport interface EnumTypeDefinitionNode {\n readonly kind: \"EnumTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly values?: ReadonlyArray<EnumValueDefinitionNode>;\n}\n\nexport interface EnumValueDefinitionNode {\n readonly kind: \"EnumValueDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface InputObjectTypeDefinitionNode {\n readonly kind: \"InputObjectTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<InputValueDefinitionNode>;\n}\n\n// Directive Definitions\n\nexport interface DirectiveDefinitionNode {\n readonly kind: \"DirectiveDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<InputValueDefinitionNode>;\n readonly repeatable: boolean;\n readonly locations: ReadonlyArray<NameNode>;\n}\n\n// Type System Extensions\n\nexport type TypeSystemExtensionNode = SchemaExtensionNode | TypeExtensionNode;\n\nexport interface SchemaExtensionNode {\n readonly kind: \"SchemaExtension\";\n readonly loc?: Location;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly operationTypes?: ReadonlyArray<OperationTypeDefinitionNode>;\n}\n\n// Type Extensions\n\nexport type TypeExtensionNode =\n | ScalarTypeExtensionNode\n | ObjectTypeExtensionNode\n | InterfaceTypeExtensionNode\n | UnionTypeExtensionNode\n | EnumTypeExtensionNode\n | InputObjectTypeExtensionNode;\n\nexport interface ScalarTypeExtensionNode {\n readonly kind: \"ScalarTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface ObjectTypeExtensionNode {\n readonly kind: \"ObjectTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<FieldDefinitionNode>;\n}\n\nexport interface InterfaceTypeExtensionNode {\n readonly kind: \"InterfaceTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<FieldDefinitionNode>;\n}\n\nexport interface UnionTypeExtensionNode {\n readonly kind: \"UnionTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly types?: ReadonlyArray<NamedTypeNode>;\n}\n\nexport interface EnumTypeExtensionNode {\n readonly kind: \"EnumTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly values?: ReadonlyArray<EnumValueDefinitionNode>;\n}\n\nexport interface InputObjectTypeExtensionNode {\n readonly kind: \"InputObjectTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<InputValueDefinitionNode>;\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmJO,IAAK,oBAAL,kBAAKA,uBAAL;AACL,EAAAA,mBAAA,WAAQ;AACR,EAAAA,mBAAA,cAAW;AACX,EAAAA,mBAAA,kBAAe;AAHL,SAAAA;AAAA,GAAA;",
|
|
6
|
-
"names": ["OperationTypeNode"]
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/supermassive-ast/TypedAST.ts
|
|
2
|
-
var OperationTypeNode = /* @__PURE__ */ ((OperationTypeNode2) => {
|
|
3
|
-
OperationTypeNode2["QUERY"] = "query";
|
|
4
|
-
OperationTypeNode2["MUTATION"] = "mutation";
|
|
5
|
-
OperationTypeNode2["SUBSCRIPTION"] = "subscription";
|
|
6
|
-
return OperationTypeNode2;
|
|
7
|
-
})(OperationTypeNode || {});
|
|
8
|
-
export {
|
|
9
|
-
OperationTypeNode
|
|
10
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/supermassive-ast/TypedAST.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Taken from node_modules/graphql/language/ast.d.ts\n * License: MIT License\n * Copyright (c): GraphQL Contributors\n *\n * Our changes MUST be annotated inline for ease of future merging.\n */\n\n/**\n * [SUPERMASSIVE]\n *\n * We don't need `Location`, `Token`, and `isNode` , so remove it and its dependencies.\n */\ntype Location = unknown;\n\n/**\n * The list of all possible AST node types.\n */\nexport type ASTNode =\n | NameNode\n | DocumentNode\n | OperationDefinitionNode\n | VariableDefinitionNode\n | VariableNode\n | SelectionSetNode\n | FieldNode\n | ArgumentNode\n | FragmentSpreadNode\n | InlineFragmentNode\n | FragmentDefinitionNode\n | IntValueNode\n | FloatValueNode\n | StringValueNode\n | BooleanValueNode\n | NullValueNode\n | EnumValueNode\n | ListValueNode\n | ObjectValueNode\n | ObjectFieldNode\n | DirectiveNode\n | NamedTypeNode\n | ListTypeNode\n | NonNullTypeNode\n | SchemaDefinitionNode\n | OperationTypeDefinitionNode\n | ScalarTypeDefinitionNode\n | ObjectTypeDefinitionNode\n | FieldDefinitionNode\n | InputValueDefinitionNode\n | InterfaceTypeDefinitionNode\n | UnionTypeDefinitionNode\n | EnumTypeDefinitionNode\n | EnumValueDefinitionNode\n | InputObjectTypeDefinitionNode\n | DirectiveDefinitionNode\n | SchemaExtensionNode\n | ScalarTypeExtensionNode\n | ObjectTypeExtensionNode\n | InterfaceTypeExtensionNode\n | UnionTypeExtensionNode\n | EnumTypeExtensionNode\n | InputObjectTypeExtensionNode;\n\n/**\n * Utility type listing all nodes indexed by their kind.\n */\nexport interface ASTKindToNode {\n Name: NameNode;\n Document: DocumentNode;\n OperationDefinition: OperationDefinitionNode;\n VariableDefinition: VariableDefinitionNode;\n Variable: VariableNode;\n SelectionSet: SelectionSetNode;\n Field: FieldNode;\n Argument: ArgumentNode;\n FragmentSpread: FragmentSpreadNode;\n InlineFragment: InlineFragmentNode;\n FragmentDefinition: FragmentDefinitionNode;\n IntValue: IntValueNode;\n FloatValue: FloatValueNode;\n StringValue: StringValueNode;\n BooleanValue: BooleanValueNode;\n NullValue: NullValueNode;\n EnumValue: EnumValueNode;\n ListValue: ListValueNode;\n ObjectValue: ObjectValueNode;\n ObjectField: ObjectFieldNode;\n Directive: DirectiveNode;\n NamedType: NamedTypeNode;\n ListType: ListTypeNode;\n NonNullType: NonNullTypeNode;\n SchemaDefinition: SchemaDefinitionNode;\n OperationTypeDefinition: OperationTypeDefinitionNode;\n ScalarTypeDefinition: ScalarTypeDefinitionNode;\n ObjectTypeDefinition: ObjectTypeDefinitionNode;\n FieldDefinition: FieldDefinitionNode;\n InputValueDefinition: InputValueDefinitionNode;\n InterfaceTypeDefinition: InterfaceTypeDefinitionNode;\n UnionTypeDefinition: UnionTypeDefinitionNode;\n EnumTypeDefinition: EnumTypeDefinitionNode;\n EnumValueDefinition: EnumValueDefinitionNode;\n InputObjectTypeDefinition: InputObjectTypeDefinitionNode;\n DirectiveDefinition: DirectiveDefinitionNode;\n SchemaExtension: SchemaExtensionNode;\n ScalarTypeExtension: ScalarTypeExtensionNode;\n ObjectTypeExtension: ObjectTypeExtensionNode;\n InterfaceTypeExtension: InterfaceTypeExtensionNode;\n UnionTypeExtension: UnionTypeExtensionNode;\n EnumTypeExtension: EnumTypeExtensionNode;\n InputObjectTypeExtension: InputObjectTypeExtensionNode;\n}\n\n// Name\n\nexport interface NameNode {\n readonly kind: \"Name\";\n readonly loc?: Location;\n readonly value: string;\n}\n\n// Document\n\nexport interface DocumentNode {\n readonly kind: \"Document\";\n readonly loc?: Location;\n readonly definitions: ReadonlyArray<DefinitionNode>;\n}\n\nexport type DefinitionNode =\n | ExecutableDefinitionNode\n | TypeSystemDefinitionNode\n | TypeSystemExtensionNode;\n\nexport type ExecutableDefinitionNode =\n | OperationDefinitionNode\n | FragmentDefinitionNode;\n\nexport interface OperationDefinitionNode {\n readonly kind: \"OperationDefinition\";\n readonly loc?: Location;\n readonly operation: OperationTypeNode;\n readonly name?: NameNode;\n readonly variableDefinitions?: ReadonlyArray<VariableDefinitionNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly selectionSet: SelectionSetNode;\n}\n\nexport enum OperationTypeNode {\n QUERY = \"query\",\n MUTATION = \"mutation\",\n SUBSCRIPTION = \"subscription\",\n}\nexport interface VariableDefinitionNode {\n readonly kind: \"VariableDefinition\";\n readonly loc?: Location;\n readonly variable: VariableNode;\n readonly type: TypeNode;\n readonly defaultValue?: ValueNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface VariableNode {\n readonly kind: \"Variable\";\n readonly loc?: Location;\n readonly name: NameNode;\n}\n\nexport interface SelectionSetNode {\n kind: \"SelectionSet\";\n loc?: Location;\n selections: ReadonlyArray<SelectionNode>;\n}\n\nexport type SelectionNode = FieldNode | FragmentSpreadNode | InlineFragmentNode;\n\nexport interface FieldNode {\n readonly __type: TypeNode; // [SUPERMASSIVE] Add the return type\n readonly kind: \"Field\";\n readonly loc?: Location;\n readonly alias?: NameNode;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<ArgumentNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly selectionSet?: SelectionSetNode;\n}\n\nexport interface ArgumentNode {\n readonly __type: TypeNode; // [SUPERMASSIVE] Add the value type\n readonly __defaultValue?: ValueNode | null; // [SUPERMASSIVE] Add default value\n readonly kind: \"Argument\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly value: ValueNode;\n}\n\n// Fragments\n\nexport interface FragmentSpreadNode {\n readonly kind: \"FragmentSpread\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface InlineFragmentNode {\n readonly kind: \"InlineFragment\";\n readonly loc?: Location;\n readonly typeCondition?: NamedTypeNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly selectionSet: SelectionSetNode;\n}\n\nexport interface FragmentDefinitionNode {\n readonly kind: \"FragmentDefinition\";\n readonly loc?: Location;\n readonly name: NameNode;\n // Note: fragment variable definitions are experimental and may be changed\n // or removed in the future.\n readonly variableDefinitions?: ReadonlyArray<VariableDefinitionNode>;\n readonly typeCondition: NamedTypeNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly selectionSet: SelectionSetNode;\n}\n\n// Values\n\nexport type ValueNode =\n | VariableNode\n | IntValueNode\n | FloatValueNode\n | StringValueNode\n | BooleanValueNode\n | NullValueNode\n | EnumValueNode\n | ListValueNode\n | ObjectValueNode;\n\nexport interface IntValueNode {\n readonly kind: \"IntValue\";\n readonly loc?: Location;\n readonly value: string;\n}\n\nexport interface FloatValueNode {\n readonly kind: \"FloatValue\";\n readonly loc?: Location;\n readonly value: string;\n}\n\nexport interface StringValueNode {\n readonly kind: \"StringValue\";\n readonly loc?: Location;\n readonly value: string;\n readonly block?: boolean;\n}\n\nexport interface BooleanValueNode {\n readonly kind: \"BooleanValue\";\n readonly loc?: Location;\n readonly value: boolean;\n}\n\nexport interface NullValueNode {\n readonly kind: \"NullValue\";\n readonly loc?: Location;\n}\n\nexport interface EnumValueNode {\n readonly kind: \"EnumValue\";\n readonly loc?: Location;\n readonly value: string;\n}\n\nexport interface ListValueNode {\n readonly kind: \"ListValue\";\n readonly loc?: Location;\n readonly values: ReadonlyArray<ValueNode>;\n}\n\nexport interface ObjectValueNode {\n readonly kind: \"ObjectValue\";\n readonly loc?: Location;\n readonly fields: ReadonlyArray<ObjectFieldNode>;\n}\n\nexport interface ObjectFieldNode {\n readonly kind: \"ObjectField\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly value: ValueNode;\n}\n\n// Directives\n\nexport interface DirectiveNode {\n readonly kind: \"Directive\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<ArgumentNode>;\n}\n\n// Type Reference\n\nexport type TypeNode = NamedTypeNode | ListTypeNode | NonNullTypeNode;\n\nexport interface NamedTypeNode {\n readonly kind: \"NamedType\";\n readonly loc?: Location;\n readonly name: NameNode;\n}\n\nexport interface ListTypeNode {\n readonly kind: \"ListType\";\n readonly loc?: Location;\n readonly type: TypeNode;\n}\n\nexport interface NonNullTypeNode {\n readonly kind: \"NonNullType\";\n readonly loc?: Location;\n readonly type: NamedTypeNode | ListTypeNode;\n}\n\n// Type System Definition\n\nexport type TypeSystemDefinitionNode =\n | SchemaDefinitionNode\n | TypeDefinitionNode\n | DirectiveDefinitionNode;\n\nexport interface SchemaDefinitionNode {\n readonly kind: \"SchemaDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly operationTypes: ReadonlyArray<OperationTypeDefinitionNode>;\n}\n\nexport interface OperationTypeDefinitionNode {\n readonly kind: \"OperationTypeDefinition\";\n readonly loc?: Location;\n readonly operation: OperationTypeNode;\n readonly type: NamedTypeNode;\n}\n\n// Type Definition\n\nexport type TypeDefinitionNode =\n | ScalarTypeDefinitionNode\n | ObjectTypeDefinitionNode\n | InterfaceTypeDefinitionNode\n | UnionTypeDefinitionNode\n | EnumTypeDefinitionNode\n | InputObjectTypeDefinitionNode;\n\nexport interface ScalarTypeDefinitionNode {\n readonly kind: \"ScalarTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface ObjectTypeDefinitionNode {\n readonly kind: \"ObjectTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<FieldDefinitionNode>;\n}\n\nexport interface FieldDefinitionNode {\n readonly kind: \"FieldDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<InputValueDefinitionNode>;\n readonly type: TypeNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface InputValueDefinitionNode {\n readonly kind: \"InputValueDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly type: TypeNode;\n readonly defaultValue?: ValueNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface InterfaceTypeDefinitionNode {\n readonly kind: \"InterfaceTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<FieldDefinitionNode>;\n}\n\nexport interface UnionTypeDefinitionNode {\n readonly kind: \"UnionTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly types?: ReadonlyArray<NamedTypeNode>;\n}\n\nexport interface EnumTypeDefinitionNode {\n readonly kind: \"EnumTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly values?: ReadonlyArray<EnumValueDefinitionNode>;\n}\n\nexport interface EnumValueDefinitionNode {\n readonly kind: \"EnumValueDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface InputObjectTypeDefinitionNode {\n readonly kind: \"InputObjectTypeDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<InputValueDefinitionNode>;\n}\n\n// Directive Definitions\n\nexport interface DirectiveDefinitionNode {\n readonly kind: \"DirectiveDefinition\";\n readonly loc?: Location;\n readonly description?: StringValueNode;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<InputValueDefinitionNode>;\n readonly repeatable: boolean;\n readonly locations: ReadonlyArray<NameNode>;\n}\n\n// Type System Extensions\n\nexport type TypeSystemExtensionNode = SchemaExtensionNode | TypeExtensionNode;\n\nexport interface SchemaExtensionNode {\n readonly kind: \"SchemaExtension\";\n readonly loc?: Location;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly operationTypes?: ReadonlyArray<OperationTypeDefinitionNode>;\n}\n\n// Type Extensions\n\nexport type TypeExtensionNode =\n | ScalarTypeExtensionNode\n | ObjectTypeExtensionNode\n | InterfaceTypeExtensionNode\n | UnionTypeExtensionNode\n | EnumTypeExtensionNode\n | InputObjectTypeExtensionNode;\n\nexport interface ScalarTypeExtensionNode {\n readonly kind: \"ScalarTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n}\n\nexport interface ObjectTypeExtensionNode {\n readonly kind: \"ObjectTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<FieldDefinitionNode>;\n}\n\nexport interface InterfaceTypeExtensionNode {\n readonly kind: \"InterfaceTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode>;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<FieldDefinitionNode>;\n}\n\nexport interface UnionTypeExtensionNode {\n readonly kind: \"UnionTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly types?: ReadonlyArray<NamedTypeNode>;\n}\n\nexport interface EnumTypeExtensionNode {\n readonly kind: \"EnumTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly values?: ReadonlyArray<EnumValueDefinitionNode>;\n}\n\nexport interface InputObjectTypeExtensionNode {\n readonly kind: \"InputObjectTypeExtension\";\n readonly loc?: Location;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<DirectiveNode>;\n readonly fields?: ReadonlyArray<InputValueDefinitionNode>;\n}\n"],
|
|
5
|
-
"mappings": ";AAmJO,IAAK,oBAAL,kBAAKA,uBAAL;AACL,EAAAA,mBAAA,WAAQ;AACR,EAAAA,mBAAA,cAAW;AACX,EAAAA,mBAAA,kBAAe;AAHL,SAAAA;AAAA,GAAA;",
|
|
6
|
-
"names": ["OperationTypeNode"]
|
|
7
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { GraphQLType, GraphQLSchema, GraphQLArgument, ASTVisitor, GraphQLCompositeType, GraphQLEnumValue, GraphQLField, GraphQLInputType, GraphQLOutputType, GraphQLDirective } from "graphql";
|
|
2
|
-
import * as TypelessAST from "graphql/language/ast";
|
|
3
|
-
import * as TypedAST from "./TypedAST";
|
|
4
|
-
import { Maybe } from "graphql/jsutils/Maybe";
|
|
5
|
-
export * from "./TypedAST";
|
|
6
|
-
export declare function addTypesToRequestDocument(schema: GraphQLSchema, document: TypelessAST.DocumentNode, options?: {
|
|
7
|
-
ignoredDirectives?: string[];
|
|
8
|
-
}): TypedAST.DocumentNode;
|
|
9
|
-
/**
|
|
10
|
-
* TypeInfo is a utility class which, given a GraphQL schema, can keep track
|
|
11
|
-
* of the current field and type definitions at any point in a GraphQL document
|
|
12
|
-
* AST during a recursive descent by calling `enter(node)` and `leave(node)`.
|
|
13
|
-
*/
|
|
14
|
-
export declare class TypeInfo {
|
|
15
|
-
private _schema;
|
|
16
|
-
private _typeStack;
|
|
17
|
-
private _parentTypeStack;
|
|
18
|
-
private _inputTypeStack;
|
|
19
|
-
private _fieldDefStack;
|
|
20
|
-
private _defaultValueStack;
|
|
21
|
-
private _directive;
|
|
22
|
-
private _argument;
|
|
23
|
-
private _enumValue;
|
|
24
|
-
private _isInIgnoredDirective;
|
|
25
|
-
private _defaultDirectives;
|
|
26
|
-
private _ignoredDirectives;
|
|
27
|
-
constructor(schema: GraphQLSchema,
|
|
28
|
-
/**
|
|
29
|
-
* Initial type may be provided in rare cases to facilitate traversals
|
|
30
|
-
* beginning somewhere other than documents.
|
|
31
|
-
*/
|
|
32
|
-
options?: {
|
|
33
|
-
initialType?: Maybe<GraphQLType>;
|
|
34
|
-
defaultDirectives?: ReadonlyArray<GraphQLDirective>;
|
|
35
|
-
ignoredDirectives?: ReadonlyArray<string>;
|
|
36
|
-
});
|
|
37
|
-
get [Symbol.toStringTag](): string;
|
|
38
|
-
getType(): Maybe<GraphQLOutputType>;
|
|
39
|
-
getParentType(): Maybe<GraphQLCompositeType>;
|
|
40
|
-
getInputType(): Maybe<GraphQLInputType>;
|
|
41
|
-
getParentInputType(): Maybe<GraphQLInputType>;
|
|
42
|
-
getFieldDef(): Maybe<GraphQLField<unknown, unknown>>;
|
|
43
|
-
getDefaultValue(): Maybe<unknown>;
|
|
44
|
-
getDirective(): Maybe<GraphQLDirective>;
|
|
45
|
-
getArgument(): Maybe<GraphQLArgument>;
|
|
46
|
-
getEnumValue(): Maybe<GraphQLEnumValue>;
|
|
47
|
-
isInIgnoredDirective(): boolean;
|
|
48
|
-
enter(node: TypelessAST.ASTNode): void;
|
|
49
|
-
leave(node: TypelessAST.ASTNode): void;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Creates a new visitor instance which maintains a provided TypeInfo instance
|
|
53
|
-
* along with visiting visitor.
|
|
54
|
-
*/
|
|
55
|
-
export declare function visitWithTypeInfo(typeInfo: TypeInfo, visitor: ASTVisitor): ASTVisitor;
|
|
56
|
-
//# sourceMappingURL=addTypesToRequestDocument.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addTypesToRequestDocument.d.ts","sourceRoot":"","sources":["../../src/supermassive-ast/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