@soda-gql/codegen 0.11.14 → 0.11.15
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 { DocumentNode, TypeNode } from "graphql";
|
|
2
|
-
import * as
|
|
2
|
+
import * as neverthrow3 from "neverthrow";
|
|
3
3
|
import { Result } from "neverthrow";
|
|
4
4
|
import { TypeFilterConfig } from "@soda-gql/config";
|
|
5
5
|
|
|
@@ -358,7 +358,7 @@ type CodegenSuccess = {
|
|
|
358
358
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
359
359
|
//#endregion
|
|
360
360
|
//#region packages/codegen/src/inject-template.d.ts
|
|
361
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
361
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow3.Err<void, CodegenError> | neverthrow3.Ok<void, CodegenError>;
|
|
362
362
|
declare const getInjectTemplate: () => string;
|
|
363
363
|
//#endregion
|
|
364
364
|
//#region packages/codegen/src/runner.d.ts
|
|
@@ -369,12 +369,12 @@ declare const runCodegen: (options: CodegenOptions) => Promise<CodegenResult>;
|
|
|
369
369
|
* Load a single schema file.
|
|
370
370
|
* @internal Use loadSchema for public API.
|
|
371
371
|
*/
|
|
372
|
-
declare const loadSingleSchema: (schemaPath: string) =>
|
|
372
|
+
declare const loadSingleSchema: (schemaPath: string) => neverthrow3.Err<DocumentNode, CodegenError> | neverthrow3.Ok<DocumentNode, CodegenError>;
|
|
373
373
|
/**
|
|
374
374
|
* Load and merge multiple schema files into a single DocumentNode.
|
|
375
375
|
* Uses GraphQL's concatAST to combine definitions from all files.
|
|
376
376
|
*/
|
|
377
|
-
declare const loadSchema: (schemaPaths: readonly string[]) =>
|
|
377
|
+
declare const loadSchema: (schemaPaths: readonly string[]) => neverthrow3.Err<DocumentNode, CodegenError> | neverthrow3.Ok<DocumentNode, CodegenError>;
|
|
378
378
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
379
379
|
//#endregion
|
|
380
380
|
export { type CodegenCliCommand, type CodegenError, type CodegenFormat, type CodegenInjectConfig, type CodegenOptions, type CodegenResult, type CodegenSchemaConfig, type CodegenSuccess, EmitOptions, EnrichedFragment, EnrichedOperation, EnrichedVariable, GeneratedFile, GraphqlCompatError, GraphqlCompatOptions, ParseResult, ParsedArgument, ParsedFieldSelection, ParsedFragment, ParsedFragmentSpread, ParsedInlineFragment, ParsedObjectField, ParsedOperation, ParsedSelection, ParsedValue, ParsedVariable, TransformOptions, TransformResult, emitFragment, emitOperation, hashSchema, loadSchema, parseGraphqlFile, parseGraphqlSource, parseTypeNode, runCodegen, 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 { DocumentNode, TypeNode } from "graphql";
|
|
4
4
|
import { TypeFilterConfig } from "@soda-gql/config";
|
|
@@ -358,7 +358,7 @@ type CodegenSuccess = {
|
|
|
358
358
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
359
359
|
//#endregion
|
|
360
360
|
//#region packages/codegen/src/inject-template.d.ts
|
|
361
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
361
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow0.Err<void, CodegenError> | neverthrow0.Ok<void, CodegenError>;
|
|
362
362
|
declare const getInjectTemplate: () => string;
|
|
363
363
|
//#endregion
|
|
364
364
|
//#region packages/codegen/src/runner.d.ts
|
|
@@ -369,12 +369,12 @@ declare const runCodegen: (options: CodegenOptions) => Promise<CodegenResult>;
|
|
|
369
369
|
* Load a single schema file.
|
|
370
370
|
* @internal Use loadSchema for public API.
|
|
371
371
|
*/
|
|
372
|
-
declare const loadSingleSchema: (schemaPath: string) =>
|
|
372
|
+
declare const loadSingleSchema: (schemaPath: string) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
373
373
|
/**
|
|
374
374
|
* Load and merge multiple schema files into a single DocumentNode.
|
|
375
375
|
* Uses GraphQL's concatAST to combine definitions from all files.
|
|
376
376
|
*/
|
|
377
|
-
declare const loadSchema: (schemaPaths: readonly string[]) =>
|
|
377
|
+
declare const loadSchema: (schemaPaths: readonly string[]) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
378
378
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
379
379
|
//#endregion
|
|
380
380
|
export { type CodegenCliCommand, type CodegenError, type CodegenFormat, type CodegenInjectConfig, type CodegenOptions, type CodegenResult, type CodegenSchemaConfig, type CodegenSuccess, EmitOptions, EnrichedFragment, EnrichedOperation, EnrichedVariable, GeneratedFile, GraphqlCompatError, GraphqlCompatOptions, ParseResult, ParsedArgument, ParsedFieldSelection, ParsedFragment, ParsedFragmentSpread, ParsedInlineFragment, ParsedObjectField, ParsedOperation, ParsedSelection, ParsedValue, ParsedVariable, TransformOptions, TransformResult, emitFragment, emitOperation, hashSchema, loadSchema, parseGraphqlFile, parseGraphqlSource, parseTypeNode, runCodegen, 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.15",
|
|
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.15",
|
|
52
|
+
"@soda-gql/runtime": "0.11.15",
|
|
53
53
|
"esbuild": "^0.24.0",
|
|
54
54
|
"graphql": "^16.8.1",
|
|
55
55
|
"neverthrow": "^8.1.1",
|