@soda-gql/codegen 0.12.4 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +4 -4
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as graphql0 from "graphql";
|
|
2
2
|
import { DocumentNode, TypeNode } from "graphql";
|
|
3
|
-
import * as
|
|
3
|
+
import * as neverthrow0 from "neverthrow";
|
|
4
4
|
import { Result } from "neverthrow";
|
|
5
5
|
import { DirectiveRecord, EnrichedFragment, EnrichedOperation, EnrichedVariable, EnumRecord, GraphqlAnalysisError, GraphqlAnalysisError as GraphqlCompatError, InferredVariable, InputRecord, ObjectRecord, OperationTypeNames, ParseResultBase as ParseResult, ParsedArgument, ParsedFieldSelection, ParsedFragment, ParsedFragmentSpread, ParsedInlineFragment, ParsedObjectField, ParsedOperation, ParsedSelection, ParsedValue, ParsedVariable, ScalarRecord, SchemaIndex as SchemaIndex$1, TransformOptions, TransformResult, TypeInfo, UnionRecord, createSchemaIndex } from "@soda-gql/core";
|
|
6
6
|
import { TypeCategory, TypeFilterConfig } from "@soda-gql/config";
|
|
@@ -366,7 +366,7 @@ type CodegenSuccess = {
|
|
|
366
366
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
367
367
|
//#endregion
|
|
368
368
|
//#region packages/codegen/src/inject-template.d.ts
|
|
369
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
369
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow0.Err<void, CodegenError> | neverthrow0.Ok<void, CodegenError>;
|
|
370
370
|
declare const getInjectTemplate: () => string;
|
|
371
371
|
//#endregion
|
|
372
372
|
//#region packages/codegen/src/type-filter.d.ts
|
|
@@ -404,12 +404,12 @@ declare const runCodegen: (options: CodegenOptions) => Promise<CodegenResult>;
|
|
|
404
404
|
* Load a single schema file.
|
|
405
405
|
* @internal Use loadSchema for public API.
|
|
406
406
|
*/
|
|
407
|
-
declare const loadSingleSchema: (schemaPath: string) =>
|
|
407
|
+
declare const loadSingleSchema: (schemaPath: string) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
408
408
|
/**
|
|
409
409
|
* Load and merge multiple schema files into a single DocumentNode.
|
|
410
410
|
* Uses GraphQL's concatAST to combine definitions from all files.
|
|
411
411
|
*/
|
|
412
|
-
declare const loadSchema: (schemaPaths: readonly string[]) =>
|
|
412
|
+
declare const loadSchema: (schemaPaths: readonly string[]) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
413
413
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
414
414
|
//#endregion
|
|
415
415
|
export { type CodegenCliCommand, type CodegenError, type CodegenFormat, type CodegenInjectConfig, type CodegenOptions, type CodegenResult, type CodegenSchemaConfig, type CodegenSuccess, EmitOptions, type EnrichedFragment, type EnrichedOperation, type EnrichedVariable, GeneratedFile, type GraphqlAnalysisError, type GraphqlCompatError, GraphqlCompatOptions, type InferredVariable, type ParseResult, type ParsedArgument, type ParsedFieldSelection, type ParsedFragment, type ParsedFragmentSpread, type ParsedInlineFragment, type ParsedObjectField, type ParsedOperation, type ParsedSelection, type ParsedValue, type ParsedVariable, type TransformOptions, type TransformResult, type TypeInfo, collectVariableUsages, compileTypeFilter, computeReachabilityFilter, emitFragment, emitOperation, getArgumentType, getFieldReturnType, getInputFieldType, hashSchema, inferVariablesFromUsages, isModifierAssignable, loadSchema, mergeModifiers, mergeVariableUsages, parseGraphqlFile, parseGraphqlSource, parseTypeNode, runCodegen, sortFragmentsByDependency, transformParsedGraphql, writeInjectTemplate };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soda-gql/codegen",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"description": "GraphQL schema code generation for soda-gql",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"./package.json": "./package.json"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@soda-gql/config": "0.12.
|
|
52
|
-
"@soda-gql/core": "0.12.
|
|
53
|
-
"@soda-gql/runtime": "0.12.
|
|
51
|
+
"@soda-gql/config": "0.12.6",
|
|
52
|
+
"@soda-gql/core": "0.12.6",
|
|
53
|
+
"@soda-gql/runtime": "0.12.6",
|
|
54
54
|
"esbuild": "^0.24.0",
|
|
55
55
|
"graphql": "^16.11.0",
|
|
56
56
|
"neverthrow": "^8.1.1",
|