houdini 1.0.0-next.0 → 1.0.0-next.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 (213) hide show
  1. package/build/cmd/generate.d.ts +0 -1
  2. package/build/cmd-cjs/index.js +409 -2066
  3. package/build/cmd-esm/index.js +409 -2066
  4. package/build/codegen/generators/artifacts/fieldKey.d.ts +1 -1
  5. package/build/codegen/generators/artifacts/index.d.ts +1 -1
  6. package/build/codegen/generators/artifacts/indexFile.d.ts +1 -1
  7. package/build/codegen/generators/artifacts/inputs.d.ts +2 -2
  8. package/build/codegen/generators/artifacts/operations.d.ts +2 -2
  9. package/build/codegen/generators/artifacts/selection.d.ts +1 -1
  10. package/build/codegen/generators/artifacts/utils.d.ts +1 -1
  11. package/build/codegen/generators/definitions/enums.d.ts +1 -1
  12. package/build/codegen/generators/definitions/index.d.ts +1 -1
  13. package/build/codegen/generators/indexFile/index.d.ts +1 -1
  14. package/build/codegen/generators/persistedQueries/index.d.ts +1 -1
  15. package/build/codegen/generators/runtime/graphqlFunction.d.ts +2 -0
  16. package/build/codegen/generators/runtime/index.d.ts +1 -1
  17. package/build/codegen/generators/runtime/injectPlugins.d.ts +7 -0
  18. package/build/codegen/generators/runtime/pluginIndex.d.ts +5 -0
  19. package/build/codegen/generators/typescript/addReferencedInputTypes.d.ts +1 -1
  20. package/build/codegen/generators/typescript/imperativeCache.d.ts +1 -1
  21. package/build/codegen/generators/typescript/index.d.ts +1 -1
  22. package/build/codegen/generators/typescript/inlineType.d.ts +1 -1
  23. package/build/codegen/generators/typescript/typeReference.d.ts +1 -1
  24. package/build/codegen/generators/typescript/types.d.ts +1 -1
  25. package/build/codegen/index.d.ts +1 -1
  26. package/build/codegen/transforms/addID.d.ts +1 -1
  27. package/build/codegen/transforms/composeQueries.d.ts +2 -2
  28. package/build/codegen/transforms/fragmentVariables.d.ts +2 -2
  29. package/build/codegen/transforms/list.d.ts +1 -1
  30. package/build/codegen/transforms/paginate.d.ts +1 -1
  31. package/build/codegen/transforms/schema.d.ts +1 -1
  32. package/build/codegen/transforms/typename.d.ts +1 -1
  33. package/build/codegen/utils/commonjs.d.ts +2 -0
  34. package/build/codegen/utils/flattenSelections.d.ts +2 -2
  35. package/build/codegen/utils/moduleExport.d.ts +1 -1
  36. package/build/codegen/utils/objectIdentificationSelection.d.ts +1 -1
  37. package/build/codegen/validators/noIDAlias.d.ts +1 -1
  38. package/build/codegen/validators/typeCheck.d.ts +1 -1
  39. package/build/codegen-cjs/index.js +330 -1977
  40. package/build/codegen-esm/index.js +330 -1977
  41. package/build/lib/config.d.ts +8 -3
  42. package/build/lib/fs.d.ts +1 -1
  43. package/build/lib/graphql.d.ts +1 -1
  44. package/build/lib/imports.d.ts +1 -1
  45. package/build/lib/types.d.ts +3 -3
  46. package/build/lib/walk.d.ts +4 -4
  47. package/build/lib-cjs/index.js +145 -1846
  48. package/build/lib-esm/index.js +145 -1846
  49. package/build/runtime/cache/cache.d.ts +10 -8
  50. package/build/runtime/cache/gc.d.ts +1 -1
  51. package/build/runtime/cache/lists.d.ts +2 -2
  52. package/build/runtime/cache/schema.d.ts +2 -2
  53. package/build/runtime/cache/stuff.d.ts +2 -2
  54. package/build/runtime/cache/subscription.d.ts +19 -11
  55. package/build/runtime/client/documentStore.d.ts +87 -0
  56. package/build/runtime/client/index.d.ts +25 -0
  57. package/build/runtime/client/plugins/cache.d.ts +8 -0
  58. package/build/runtime/client/plugins/fetch.d.ts +37 -0
  59. package/build/runtime/client/plugins/fetchParams.d.ts +9 -0
  60. package/build/runtime/client/plugins/index.d.ts +7 -0
  61. package/build/runtime/client/plugins/injectedPlugins.d.ts +3 -0
  62. package/build/runtime/client/plugins/mutation.d.ts +1 -0
  63. package/build/runtime/client/plugins/query.d.ts +2 -0
  64. package/build/runtime/client/plugins/subscription.d.ts +18 -0
  65. package/build/runtime/client/plugins/throwOnError.d.ts +7 -0
  66. package/build/runtime/client/utils/documentPlugins.d.ts +3 -0
  67. package/build/runtime/client/utils/index.d.ts +1 -0
  68. package/build/runtime/imports/config.d.ts +3 -0
  69. package/build/runtime/index.d.ts +2 -1
  70. package/build/runtime/lib/config.d.ts +5 -3
  71. package/build/runtime/lib/index.d.ts +1 -2
  72. package/build/runtime/lib/scalars.d.ts +5 -4
  73. package/build/runtime/lib/selection.d.ts +1 -1
  74. package/build/runtime/lib/store.d.ts +19 -0
  75. package/build/runtime/lib/types.d.ts +22 -9
  76. package/build/runtime/public/cache.d.ts +2 -2
  77. package/build/runtime/public/list.d.ts +2 -2
  78. package/build/runtime/public/record.d.ts +1 -1
  79. package/build/runtime/public/tests/test.d.ts +1 -1
  80. package/build/runtime-cjs/cache/cache.d.ts +10 -8
  81. package/build/runtime-cjs/cache/cache.js +5 -11
  82. package/build/runtime-cjs/cache/gc.d.ts +1 -1
  83. package/build/runtime-cjs/cache/lists.d.ts +2 -2
  84. package/build/runtime-cjs/cache/lists.js +2 -2
  85. package/build/runtime-cjs/cache/schema.d.ts +2 -2
  86. package/build/runtime-cjs/cache/stuff.d.ts +2 -2
  87. package/build/runtime-cjs/cache/subscription.d.ts +19 -11
  88. package/build/runtime-cjs/cache/subscription.js +95 -56
  89. package/build/runtime-cjs/client/documentStore.d.ts +87 -0
  90. package/build/runtime-cjs/client/documentStore.js +360 -0
  91. package/build/runtime-cjs/client/index.d.ts +25 -0
  92. package/build/runtime-cjs/client/index.js +87 -0
  93. package/build/runtime-cjs/client/plugins/cache.d.ts +8 -0
  94. package/build/runtime-cjs/client/plugins/cache.js +99 -0
  95. package/build/runtime-cjs/client/plugins/fetch.d.ts +37 -0
  96. package/build/runtime-cjs/{lib/networkUtils.js → client/plugins/fetch.js} +95 -3
  97. package/build/runtime-cjs/client/plugins/fetchParams.d.ts +9 -0
  98. package/build/runtime-cjs/client/plugins/fetchParams.js +40 -0
  99. package/build/runtime-cjs/client/plugins/index.d.ts +7 -0
  100. package/build/runtime-cjs/client/plugins/index.js +24 -0
  101. package/build/runtime-cjs/client/plugins/injectedPlugins.d.ts +3 -0
  102. package/build/runtime-cjs/{lib/errors.js → client/plugins/injectedPlugins.js} +7 -15
  103. package/build/runtime-cjs/client/plugins/mutation.d.ts +1 -0
  104. package/build/runtime-cjs/client/plugins/mutation.js +86 -0
  105. package/build/runtime-cjs/client/plugins/query.d.ts +2 -0
  106. package/build/runtime-cjs/client/plugins/query.js +83 -0
  107. package/build/runtime-cjs/client/plugins/subscription.d.ts +18 -0
  108. package/build/runtime-cjs/client/plugins/subscription.js +98 -0
  109. package/build/runtime-cjs/client/plugins/throwOnError.d.ts +7 -0
  110. package/build/runtime-cjs/client/plugins/throwOnError.js +47 -0
  111. package/build/runtime-cjs/client/utils/documentPlugins.d.ts +3 -0
  112. package/build/runtime-cjs/client/utils/documentPlugins.js +56 -0
  113. package/build/runtime-cjs/client/utils/index.d.ts +1 -0
  114. package/build/runtime-cjs/client/utils/index.js +18 -0
  115. package/build/runtime-cjs/imports/config.d.ts +3 -0
  116. package/build/runtime-cjs/imports/config.js +26 -0
  117. package/build/runtime-cjs/index.d.ts +2 -1
  118. package/build/runtime-cjs/index.js +1 -0
  119. package/build/runtime-cjs/lib/config.d.ts +5 -3
  120. package/build/runtime-cjs/lib/config.js +5 -4
  121. package/build/runtime-cjs/lib/index.d.ts +1 -2
  122. package/build/runtime-cjs/lib/index.js +1 -2
  123. package/build/runtime-cjs/lib/scalars.d.ts +5 -4
  124. package/build/runtime-cjs/lib/scalars.js +20 -24
  125. package/build/runtime-cjs/lib/selection.d.ts +1 -1
  126. package/build/runtime-cjs/lib/store.d.ts +19 -0
  127. package/build/runtime-cjs/lib/store.js +81 -0
  128. package/build/runtime-cjs/lib/types.d.ts +22 -9
  129. package/build/runtime-cjs/public/cache.d.ts +2 -2
  130. package/build/runtime-cjs/public/list.d.ts +2 -2
  131. package/build/runtime-cjs/public/list.js +2 -2
  132. package/build/runtime-cjs/public/record.d.ts +1 -1
  133. package/build/runtime-cjs/public/record.js +4 -4
  134. package/build/runtime-cjs/public/tests/test.d.ts +1 -1
  135. package/build/runtime-esm/cache/cache.d.ts +10 -8
  136. package/build/runtime-esm/cache/cache.js +5 -11
  137. package/build/runtime-esm/cache/gc.d.ts +1 -1
  138. package/build/runtime-esm/cache/lists.d.ts +2 -2
  139. package/build/runtime-esm/cache/lists.js +2 -2
  140. package/build/runtime-esm/cache/schema.d.ts +2 -2
  141. package/build/runtime-esm/cache/stuff.d.ts +2 -2
  142. package/build/runtime-esm/cache/subscription.d.ts +19 -11
  143. package/build/runtime-esm/cache/subscription.js +95 -56
  144. package/build/runtime-esm/client/documentStore.d.ts +87 -0
  145. package/build/runtime-esm/client/documentStore.js +336 -0
  146. package/build/runtime-esm/client/index.d.ts +25 -0
  147. package/build/runtime-esm/client/index.js +58 -0
  148. package/build/runtime-esm/client/plugins/cache.d.ts +8 -0
  149. package/build/runtime-esm/client/plugins/cache.js +69 -0
  150. package/build/runtime-esm/client/plugins/fetch.d.ts +37 -0
  151. package/build/runtime-esm/client/plugins/fetch.js +151 -0
  152. package/build/runtime-esm/client/plugins/fetchParams.d.ts +9 -0
  153. package/build/runtime-esm/client/plugins/fetchParams.js +16 -0
  154. package/build/runtime-esm/client/plugins/index.d.ts +7 -0
  155. package/build/runtime-esm/client/plugins/index.js +7 -0
  156. package/build/runtime-esm/client/plugins/injectedPlugins.d.ts +3 -0
  157. package/build/runtime-esm/client/plugins/injectedPlugins.js +5 -0
  158. package/build/runtime-esm/client/plugins/mutation.d.ts +1 -0
  159. package/build/runtime-esm/client/plugins/mutation.js +56 -0
  160. package/build/runtime-esm/client/plugins/query.d.ts +2 -0
  161. package/build/runtime-esm/client/plugins/query.js +53 -0
  162. package/build/runtime-esm/client/plugins/subscription.d.ts +18 -0
  163. package/build/runtime-esm/client/plugins/subscription.js +74 -0
  164. package/build/runtime-esm/client/plugins/throwOnError.d.ts +7 -0
  165. package/build/runtime-esm/client/plugins/throwOnError.js +23 -0
  166. package/build/runtime-esm/client/utils/documentPlugins.d.ts +3 -0
  167. package/build/runtime-esm/client/utils/documentPlugins.js +32 -0
  168. package/build/runtime-esm/client/utils/index.d.ts +1 -0
  169. package/build/runtime-esm/client/utils/index.js +1 -0
  170. package/build/runtime-esm/imports/config.d.ts +3 -0
  171. package/build/runtime-esm/imports/config.js +4 -0
  172. package/build/runtime-esm/index.d.ts +2 -1
  173. package/build/runtime-esm/index.js +1 -0
  174. package/build/runtime-esm/lib/config.d.ts +5 -3
  175. package/build/runtime-esm/lib/config.js +5 -4
  176. package/build/runtime-esm/lib/index.d.ts +1 -2
  177. package/build/runtime-esm/lib/index.js +1 -2
  178. package/build/runtime-esm/lib/scalars.d.ts +5 -4
  179. package/build/runtime-esm/lib/scalars.js +20 -24
  180. package/build/runtime-esm/lib/selection.d.ts +1 -1
  181. package/build/runtime-esm/lib/store.d.ts +19 -0
  182. package/build/runtime-esm/lib/store.js +57 -0
  183. package/build/runtime-esm/lib/types.d.ts +22 -9
  184. package/build/runtime-esm/public/cache.d.ts +2 -2
  185. package/build/runtime-esm/public/list.d.ts +2 -2
  186. package/build/runtime-esm/public/list.js +1 -1
  187. package/build/runtime-esm/public/record.d.ts +1 -1
  188. package/build/runtime-esm/public/record.js +1 -1
  189. package/build/runtime-esm/public/tests/test.d.ts +1 -1
  190. package/build/test/index.d.ts +4 -3
  191. package/build/test-cjs/index.js +336 -1955
  192. package/build/test-esm/index.js +336 -1955
  193. package/build/vite/ast.d.ts +1 -1
  194. package/build/vite/houdini.d.ts +1 -1
  195. package/build/vite/imports.d.ts +3 -3
  196. package/build/vite/index.d.ts +1 -1
  197. package/build/vite/schema.d.ts +1 -1
  198. package/build/vite-cjs/index.js +396 -2010
  199. package/build/vite-esm/index.js +396 -2010
  200. package/package.json +1 -1
  201. package/build/runtime/lib/errors.d.ts +0 -3
  202. package/build/runtime/lib/network.d.ts +0 -79
  203. package/build/runtime/lib/networkUtils.d.ts +0 -8
  204. package/build/runtime-cjs/lib/errors.d.ts +0 -3
  205. package/build/runtime-cjs/lib/network.d.ts +0 -79
  206. package/build/runtime-cjs/lib/network.js +0 -200
  207. package/build/runtime-cjs/lib/networkUtils.d.ts +0 -8
  208. package/build/runtime-esm/lib/errors.d.ts +0 -3
  209. package/build/runtime-esm/lib/errors.js +0 -11
  210. package/build/runtime-esm/lib/network.d.ts +0 -79
  211. package/build/runtime-esm/lib/network.js +0 -170
  212. package/build/runtime-esm/lib/networkUtils.d.ts +0 -8
  213. package/build/runtime-esm/lib/networkUtils.js +0 -60
@@ -1,3 +1,3 @@
1
1
  import * as graphql from 'graphql';
2
- import { Config } from '../../../lib';
2
+ import type { Config } from '../../../lib';
3
3
  export default function fieldKey(config: Config, field: graphql.FieldNode): string;
@@ -1,4 +1,4 @@
1
- import { Config, CollectedGraphQLDocument } from '../../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../../lib';
2
2
  export default function artifactGenerator(stats: {
3
3
  total: string[];
4
4
  new: string[];
@@ -1,2 +1,2 @@
1
- import { Config, CollectedGraphQLDocument } from '../../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../../lib';
2
2
  export default function writeIndexFile(config: Config, docs: CollectedGraphQLDocument[]): Promise<void>;
@@ -1,4 +1,4 @@
1
1
  import * as graphql from 'graphql';
2
- import { Config } from '../../../lib/config';
3
- import { InputObject } from '../../../runtime/lib/types';
2
+ import type { Config } from '../../../lib/config';
3
+ import type { InputObject } from '../../../runtime/lib/types';
4
4
  export declare function inputObject(config: Config, inputs: readonly graphql.VariableDefinitionNode[]): InputObject;
@@ -1,6 +1,6 @@
1
1
  import * as graphql from 'graphql';
2
- import { Config } from '../../../lib';
3
- import { MutationOperation } from '../../../runtime/lib/types';
2
+ import type { Config } from '../../../lib';
3
+ import type { MutationOperation } from '../../../runtime/lib/types';
4
4
  export declare function operationsByPath(config: Config, filepath: string, definition: graphql.OperationDefinitionNode, filterTypes: FilterMap): {
5
5
  [path: string]: MutationOperation[];
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import * as graphql from 'graphql';
2
- import { Config, CollectedGraphQLDocument } from '../../../lib';
2
+ import type { Config, CollectedGraphQLDocument } from '../../../lib';
3
3
  import type { MutationOperation, SubscriptionSelection } from '../../../runtime/lib/types';
4
4
  export default function selection({ config, filepath, rootType, selections, operations, path, includeFragments, document, markEdges, }: {
5
5
  config: Config;
@@ -1,6 +1,6 @@
1
1
  import type { ExpressionKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as graphql from 'graphql';
3
- import { Config } from '../../../lib';
3
+ import type { Config } from '../../../lib';
4
4
  export declare function serializeValue(value: any): ExpressionKind;
5
5
  export declare function deepMerge(filepath: string, ...targets: {}[]): {};
6
6
  export declare function convertValue(config: Config, val: graphql.ValueNode): {
@@ -1,2 +1,2 @@
1
- import { Config } from '../../../lib';
1
+ import type { Config } from '../../../lib';
2
2
  export default function definitionsGenerator(config: Config): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { Config } from '../../../lib';
1
+ import type { Config } from '../../../lib';
2
2
  export default function schemaGenerator(config: Config): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { Config, CollectedGraphQLDocument } from '../../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../../lib';
2
2
  export default function writeIndexFile(config: Config, docs: CollectedGraphQLDocument[]): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { Config, CollectedGraphQLDocument } from '../../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../../lib';
2
2
  export default function persistOutputGenerator(config: Config, docs: CollectedGraphQLDocument[]): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { type Config, type CollectedGraphQLDocument } from '../../../lib';
2
+ export default function generateGraphqlReturnTypes(config: Config, docs: CollectedGraphQLDocument[]): Promise<string | undefined>;
@@ -1,2 +1,2 @@
1
- import { Config, CollectedGraphQLDocument } from '../../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../../lib';
2
2
  export default function runtimeGenerator(config: Config, docs: CollectedGraphQLDocument[]): Promise<void>;
@@ -0,0 +1,7 @@
1
+ import type { Config } from '../../../lib';
2
+ export default function injectPlugins({ config, content, importStatement, exportStatement, }: {
3
+ config: Config;
4
+ exportStatement: (as: string) => string;
5
+ importStatement: (where: string, as: string) => string;
6
+ content: string;
7
+ }): Promise<string>;
@@ -0,0 +1,5 @@
1
+ import { type Config } from '../../../lib';
2
+ export declare function generatePluginIndex({ config, exportStatement, }: {
3
+ config: Config;
4
+ exportStatement: (module: string) => string;
5
+ }): Promise<void>;
@@ -1,4 +1,4 @@
1
1
  import type { StatementKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as graphql from 'graphql';
3
- import { Config } from '../../../lib';
3
+ import type { Config } from '../../../lib';
4
4
  export declare function addReferencedInputTypes(config: Config, filepath: string, body: StatementKind[], visitedTypes: Set<string>, missingScalars: Set<string>, rootType: graphql.TypeNode | graphql.GraphQLInputType): void;
@@ -1,2 +1,2 @@
1
- import { Config, CollectedGraphQLDocument } from '../../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../../lib';
2
2
  export default function imperativeCacheTypef(config: Config, docs: CollectedGraphQLDocument[]): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { Config, CollectedGraphQLDocument } from '../../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../../lib';
2
2
  export default function typescriptGenerator(config: Config, docs: CollectedGraphQLDocument[]): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  import type { TSTypeKind, StatementKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as graphql from 'graphql';
3
- import { Config } from '../../../lib';
3
+ import type { Config } from '../../../lib';
4
4
  export declare const fragmentKey = "$fragments";
5
5
  export declare function inlineType({ config, filepath, rootType, selections, root, allowReadonly, body, visitedTypes, missingScalars, includeFragments, allOptional, }: {
6
6
  config: Config;
@@ -1,6 +1,6 @@
1
1
  import type { TSTypeKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as graphql from 'graphql';
3
- import { Config } from '../../../lib';
3
+ import type { Config } from '../../../lib';
4
4
  export declare function tsTypeReference(config: Config, missingScalars: Set<string>, definition: {
5
5
  type: graphql.GraphQLScalarType | graphql.GraphQLInputType | graphql.GraphQLNamedType | graphql.TypeNode;
6
6
  }): TSTypeKind;
@@ -1,7 +1,7 @@
1
1
  import type { TSTypeKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as graphql from 'graphql';
3
3
  import * as recast from 'recast';
4
- import { Config } from '../../../lib';
4
+ import type { Config } from '../../../lib';
5
5
  export declare function readonlyProperty(prop: recast.types.namedTypes.TSPropertySignature, enable?: boolean): recast.types.namedTypes.TSPropertySignature;
6
6
  export declare function nullableField(inner: TSTypeKind, input?: boolean): recast.types.namedTypes.TSUnionType;
7
7
  export declare function scalarPropertyValue(config: Config, missingScalars: Set<string>, target: graphql.GraphQLNamedType): TSTypeKind;
@@ -1,4 +1,4 @@
1
- import { Config, CollectedGraphQLDocument } from '../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../lib';
2
2
  export default function compile(config: Config): Promise<void>;
3
3
  export declare function runPipeline(config: Config, docs: CollectedGraphQLDocument[]): Promise<void>;
4
4
  export type DiscoveredDoc = {
@@ -1,2 +1,2 @@
1
- import { Config, CollectedGraphQLDocument } from '../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../lib';
2
2
  export default function addID(config: Config, documents: CollectedGraphQLDocument[]): Promise<void>;
@@ -1,5 +1,5 @@
1
- import graphql from 'graphql';
2
- import { Config, CollectedGraphQLDocument } from '../../lib';
1
+ import type graphql from 'graphql';
2
+ import type { Config, CollectedGraphQLDocument } from '../../lib';
3
3
  export type FragmentDependency = {
4
4
  definition: graphql.FragmentDefinitionNode;
5
5
  requiredFragments: string[];
@@ -1,6 +1,6 @@
1
1
  import * as graphql from 'graphql';
2
- import { Config, CollectedGraphQLDocument } from '../../lib';
3
- import { FragmentDependency } from './composeQueries';
2
+ import type { Config, CollectedGraphQLDocument } from '../../lib';
3
+ import type { FragmentDependency } from './composeQueries';
4
4
  export default function fragmentVariables(config: Config, documents: CollectedGraphQLDocument[]): Promise<void>;
5
5
  type ValueMap = Record<string, graphql.ValueNode>;
6
6
  export declare function inlineFragmentArgs({ config, filepath, fragmentDefinitions, document, generatedFragments, visitedFragments, scope, newName, }: {
@@ -1,5 +1,5 @@
1
1
  import * as graphql from 'graphql';
2
- import { Config, CollectedGraphQLDocument } from '../../lib';
2
+ import type { Config, CollectedGraphQLDocument } from '../../lib';
3
3
  export default function addListFragments(config: Config, documents: CollectedGraphQLDocument[]): Promise<void>;
4
4
  export declare function connectionSelection(config: Config, field: graphql.GraphQLField<any, any>, type: graphql.GraphQLObjectType, selection: graphql.SelectionSetNode | undefined): {
5
5
  selection: graphql.SelectionSetNode | undefined;
@@ -1,4 +1,4 @@
1
- import { Config, CollectedGraphQLDocument } from '../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../lib';
2
2
  export default function paginate(config: Config, documents: CollectedGraphQLDocument[]): Promise<void>;
3
3
  export declare const pageInfoSelection: {
4
4
  kind: "Field";
@@ -1,2 +1,2 @@
1
- import { Config, CollectedGraphQLDocument } from '../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../lib';
2
2
  export default function graphqlExtensions(config: Config, documents: CollectedGraphQLDocument[]): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { Config, CollectedGraphQLDocument } from '../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../lib';
2
2
  export default function addTypename(config: Config, documents: CollectedGraphQLDocument[]): Promise<void>;
@@ -1,3 +1,5 @@
1
1
  export declare const cjsIndexFilePreamble = "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });";
2
2
  export declare function exportStarFrom(where: string): string;
3
3
  export declare function exportDefaultFrom(where: string, as: string): string;
4
+ export declare function exportDefault(as: string): string;
5
+ export declare function importDefaultFrom(where: string, as: string): string;
@@ -1,5 +1,5 @@
1
- import * as graphql from 'graphql';
2
- import { Config } from '../../lib';
1
+ import type * as graphql from 'graphql';
2
+ import type { Config } from '../../lib';
3
3
  export declare function flattenSelections({ config, filepath, selections, fragmentDefinitions, applyFragments, ignoreMaskDisable, }: {
4
4
  config: Config;
5
5
  filepath: string;
@@ -1,4 +1,4 @@
1
1
  import type { ExpressionKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as recast from 'recast';
3
- import { Config } from '../../lib';
3
+ import type { Config } from '../../lib';
4
4
  export declare function moduleExport(config: Config, key: string, value: ExpressionKind): recast.types.namedTypes.ExpressionStatement | recast.types.namedTypes.ExportNamedDeclaration | recast.types.namedTypes.ExportDefaultDeclaration;
@@ -1,3 +1,3 @@
1
1
  import * as graphql from 'graphql';
2
- import { Config } from '../../lib';
2
+ import type { Config } from '../../lib';
3
3
  export declare const objectIdentificationSelection: (config: Config, type: graphql.GraphQLNamedType) => graphql.SelectionNode[];
@@ -1,2 +1,2 @@
1
- import { Config, CollectedGraphQLDocument } from '../../lib';
1
+ import type { Config, CollectedGraphQLDocument } from '../../lib';
2
2
  export default function noIDAlias(config: Config, docs: CollectedGraphQLDocument[]): Promise<void>;
@@ -1,4 +1,4 @@
1
1
  import * as graphql from 'graphql';
2
- import { Config, CollectedGraphQLDocument } from '../../lib';
2
+ import type { Config, CollectedGraphQLDocument } from '../../lib';
3
3
  export default function typeCheck(config: Config, docs: CollectedGraphQLDocument[]): Promise<void>;
4
4
  export declare function getAndVerifyNodeInterface(config: Config): graphql.GraphQLInterfaceType | null;