@soda-gql/codegen 0.11.17 → 0.11.18
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,5 +1,5 @@
|
|
|
1
1
|
import { ConstDirectiveNode, DocumentNode, EnumValueDefinitionNode, FieldDefinitionNode, InputValueDefinitionNode, NamedTypeNode, TypeNode } from "graphql";
|
|
2
|
-
import * as
|
|
2
|
+
import * as neverthrow0 from "neverthrow";
|
|
3
3
|
import { Result } from "neverthrow";
|
|
4
4
|
import { TypeFilterConfig } from "@soda-gql/config";
|
|
5
5
|
|
|
@@ -599,7 +599,7 @@ type CodegenSuccess = {
|
|
|
599
599
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
600
600
|
//#endregion
|
|
601
601
|
//#region packages/codegen/src/inject-template.d.ts
|
|
602
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
602
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow0.Err<void, CodegenError> | neverthrow0.Ok<void, CodegenError>;
|
|
603
603
|
declare const getInjectTemplate: () => string;
|
|
604
604
|
//#endregion
|
|
605
605
|
//#region packages/codegen/src/runner.d.ts
|
|
@@ -610,12 +610,12 @@ declare const runCodegen: (options: CodegenOptions) => Promise<CodegenResult>;
|
|
|
610
610
|
* Load a single schema file.
|
|
611
611
|
* @internal Use loadSchema for public API.
|
|
612
612
|
*/
|
|
613
|
-
declare const loadSingleSchema: (schemaPath: string) =>
|
|
613
|
+
declare const loadSingleSchema: (schemaPath: string) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
614
614
|
/**
|
|
615
615
|
* Load and merge multiple schema files into a single DocumentNode.
|
|
616
616
|
* Uses GraphQL's concatAST to combine definitions from all files.
|
|
617
617
|
*/
|
|
618
|
-
declare const loadSchema: (schemaPaths: readonly string[]) =>
|
|
618
|
+
declare const loadSchema: (schemaPaths: readonly string[]) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
619
619
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
620
620
|
//#endregion
|
|
621
621
|
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, collectVariableUsages, emitFragment, emitOperation, hashSchema, inferVariablesFromUsages, 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 { ConstDirectiveNode, DocumentNode, EnumValueDefinitionNode, FieldDefinitionNode, InputValueDefinitionNode, NamedTypeNode, TypeNode } from "graphql";
|
|
4
4
|
import { TypeFilterConfig } from "@soda-gql/config";
|
|
@@ -599,7 +599,7 @@ type CodegenSuccess = {
|
|
|
599
599
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
600
600
|
//#endregion
|
|
601
601
|
//#region packages/codegen/src/inject-template.d.ts
|
|
602
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
602
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow0.Err<void, CodegenError> | neverthrow0.Ok<void, CodegenError>;
|
|
603
603
|
declare const getInjectTemplate: () => string;
|
|
604
604
|
//#endregion
|
|
605
605
|
//#region packages/codegen/src/runner.d.ts
|
|
@@ -610,12 +610,12 @@ declare const runCodegen: (options: CodegenOptions) => Promise<CodegenResult>;
|
|
|
610
610
|
* Load a single schema file.
|
|
611
611
|
* @internal Use loadSchema for public API.
|
|
612
612
|
*/
|
|
613
|
-
declare const loadSingleSchema: (schemaPath: string) =>
|
|
613
|
+
declare const loadSingleSchema: (schemaPath: string) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
614
614
|
/**
|
|
615
615
|
* Load and merge multiple schema files into a single DocumentNode.
|
|
616
616
|
* Uses GraphQL's concatAST to combine definitions from all files.
|
|
617
617
|
*/
|
|
618
|
-
declare const loadSchema: (schemaPaths: readonly string[]) =>
|
|
618
|
+
declare const loadSchema: (schemaPaths: readonly string[]) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
619
619
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
620
620
|
//#endregion
|
|
621
621
|
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, collectVariableUsages, emitFragment, emitOperation, hashSchema, inferVariablesFromUsages, 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.11.
|
|
3
|
+
"version": "0.11.18",
|
|
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.11.
|
|
52
|
-
"@soda-gql/runtime": "0.11.
|
|
51
|
+
"@soda-gql/core": "0.11.18",
|
|
52
|
+
"@soda-gql/runtime": "0.11.18",
|
|
53
53
|
"esbuild": "^0.24.0",
|
|
54
54
|
"graphql": "^16.8.1",
|
|
55
55
|
"neverthrow": "^8.1.1",
|