@soda-gql/codegen 0.12.1 → 0.12.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.
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as graphql0 from "graphql";
|
|
2
2
|
import { ConstDirectiveNode, DocumentNode, EnumValueDefinitionNode, FieldDefinitionNode, InputValueDefinitionNode, NamedTypeNode, TypeNode } from "graphql";
|
|
3
|
-
import * as
|
|
3
|
+
import * as neverthrow3 from "neverthrow";
|
|
4
4
|
import { Result } from "neverthrow";
|
|
5
5
|
import { TypeCategory, TypeFilterConfig } from "@soda-gql/config";
|
|
6
6
|
|
|
@@ -662,7 +662,7 @@ type CodegenSuccess = {
|
|
|
662
662
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
663
663
|
//#endregion
|
|
664
664
|
//#region packages/codegen/src/inject-template.d.ts
|
|
665
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
665
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow3.Err<void, CodegenError> | neverthrow3.Ok<void, CodegenError>;
|
|
666
666
|
declare const getInjectTemplate: () => string;
|
|
667
667
|
//#endregion
|
|
668
668
|
//#region packages/codegen/src/type-filter.d.ts
|
|
@@ -700,12 +700,12 @@ declare const runCodegen: (options: CodegenOptions) => Promise<CodegenResult>;
|
|
|
700
700
|
* Load a single schema file.
|
|
701
701
|
* @internal Use loadSchema for public API.
|
|
702
702
|
*/
|
|
703
|
-
declare const loadSingleSchema: (schemaPath: string) =>
|
|
703
|
+
declare const loadSingleSchema: (schemaPath: string) => neverthrow3.Err<DocumentNode, CodegenError> | neverthrow3.Ok<DocumentNode, CodegenError>;
|
|
704
704
|
/**
|
|
705
705
|
* Load and merge multiple schema files into a single DocumentNode.
|
|
706
706
|
* Uses GraphQL's concatAST to combine definitions from all files.
|
|
707
707
|
*/
|
|
708
|
-
declare const loadSchema: (schemaPaths: readonly string[]) =>
|
|
708
|
+
declare const loadSchema: (schemaPaths: readonly string[]) => neverthrow3.Err<DocumentNode, CodegenError> | neverthrow3.Ok<DocumentNode, CodegenError>;
|
|
709
709
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
710
710
|
//#endregion
|
|
711
711
|
export { type CodegenCliCommand, type CodegenError, type CodegenFormat, type CodegenInjectConfig, type CodegenOptions, type CodegenResult, type CodegenSchemaConfig, type CodegenSuccess, EmitOptions, EnrichedFragment, EnrichedOperation, EnrichedVariable, GeneratedFile, GraphqlCompatError, GraphqlCompatOptions, InferredVariable, ParseResult, ParsedArgument, ParsedFieldSelection, ParsedFragment, ParsedFragmentSpread, ParsedInlineFragment, ParsedObjectField, ParsedOperation, ParsedSelection, ParsedValue, ParsedVariable, TransformOptions, TransformResult, TypeInfo, collectVariableUsages, compileTypeFilter, computeReachabilityFilter, emitFragment, emitOperation, getArgumentType, getFieldReturnType, getInputFieldType, hashSchema, inferVariablesFromUsages, isModifierAssignable, loadSchema, mergeModifiers, mergeVariableUsages, parseGraphqlFile, parseGraphqlSource, parseTypeNode, runCodegen, sortFragmentsByDependency, transformParsedGraphql, writeInjectTemplate };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as neverthrow0 from "neverthrow";
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
3
|
import * as graphql0 from "graphql";
|
|
4
4
|
import { ConstDirectiveNode, DocumentNode, EnumValueDefinitionNode, FieldDefinitionNode, InputValueDefinitionNode, NamedTypeNode, TypeNode } from "graphql";
|
|
@@ -662,7 +662,7 @@ type CodegenSuccess = {
|
|
|
662
662
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
663
663
|
//#endregion
|
|
664
664
|
//#region packages/codegen/src/inject-template.d.ts
|
|
665
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
665
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow0.Err<void, CodegenError> | neverthrow0.Ok<void, CodegenError>;
|
|
666
666
|
declare const getInjectTemplate: () => string;
|
|
667
667
|
//#endregion
|
|
668
668
|
//#region packages/codegen/src/type-filter.d.ts
|
|
@@ -700,12 +700,12 @@ declare const runCodegen: (options: CodegenOptions) => Promise<CodegenResult>;
|
|
|
700
700
|
* Load a single schema file.
|
|
701
701
|
* @internal Use loadSchema for public API.
|
|
702
702
|
*/
|
|
703
|
-
declare const loadSingleSchema: (schemaPath: string) =>
|
|
703
|
+
declare const loadSingleSchema: (schemaPath: string) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
704
704
|
/**
|
|
705
705
|
* Load and merge multiple schema files into a single DocumentNode.
|
|
706
706
|
* Uses GraphQL's concatAST to combine definitions from all files.
|
|
707
707
|
*/
|
|
708
|
-
declare const loadSchema: (schemaPaths: readonly string[]) =>
|
|
708
|
+
declare const loadSchema: (schemaPaths: readonly string[]) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
709
709
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
710
710
|
//#endregion
|
|
711
711
|
export { type CodegenCliCommand, type CodegenError, type CodegenFormat, type CodegenInjectConfig, type CodegenOptions, type CodegenResult, type CodegenSchemaConfig, type CodegenSuccess, EmitOptions, EnrichedFragment, EnrichedOperation, EnrichedVariable, GeneratedFile, GraphqlCompatError, GraphqlCompatOptions, InferredVariable, ParseResult, ParsedArgument, ParsedFieldSelection, ParsedFragment, ParsedFragmentSpread, ParsedInlineFragment, ParsedObjectField, ParsedOperation, ParsedSelection, ParsedValue, ParsedVariable, TransformOptions, TransformResult, 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.2",
|
|
4
4
|
"description": "GraphQL schema code generation for soda-gql",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"./package.json": "./package.json"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@soda-gql/core": "0.12.
|
|
52
|
-
"@soda-gql/runtime": "0.12.
|
|
51
|
+
"@soda-gql/core": "0.12.2",
|
|
52
|
+
"@soda-gql/runtime": "0.12.2",
|
|
53
53
|
"esbuild": "^0.24.0",
|
|
54
54
|
"graphql": "^16.11.0",
|
|
55
55
|
"neverthrow": "^8.1.1",
|