@soda-gql/codegen 0.11.12 → 0.11.13
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.mts +4 -4
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as neverthrow3 from "neverthrow";
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
3
|
import { DocumentNode, TypeNode } from "graphql";
|
|
4
4
|
|
|
@@ -356,7 +356,7 @@ type CodegenSuccess = {
|
|
|
356
356
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
357
357
|
//#endregion
|
|
358
358
|
//#region packages/codegen/src/inject-template.d.ts
|
|
359
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
359
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow3.Err<void, CodegenError> | neverthrow3.Ok<void, CodegenError>;
|
|
360
360
|
declare const getInjectTemplate: () => string;
|
|
361
361
|
//#endregion
|
|
362
362
|
//#region packages/codegen/src/runner.d.ts
|
|
@@ -367,12 +367,12 @@ declare const runCodegen: (options: CodegenOptions) => Promise<CodegenResult>;
|
|
|
367
367
|
* Load a single schema file.
|
|
368
368
|
* @internal Use loadSchema for public API.
|
|
369
369
|
*/
|
|
370
|
-
declare const loadSingleSchema: (schemaPath: string) =>
|
|
370
|
+
declare const loadSingleSchema: (schemaPath: string) => neverthrow3.Err<DocumentNode, CodegenError> | neverthrow3.Ok<DocumentNode, CodegenError>;
|
|
371
371
|
/**
|
|
372
372
|
* Load and merge multiple schema files into a single DocumentNode.
|
|
373
373
|
* Uses GraphQL's concatAST to combine definitions from all files.
|
|
374
374
|
*/
|
|
375
|
-
declare const loadSchema: (schemaPaths: readonly string[]) =>
|
|
375
|
+
declare const loadSchema: (schemaPaths: readonly string[]) => neverthrow3.Err<DocumentNode, CodegenError> | neverthrow3.Ok<DocumentNode, CodegenError>;
|
|
376
376
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
377
377
|
//#endregion
|
|
378
378
|
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.13",
|
|
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.13",
|
|
52
|
+
"@soda-gql/runtime": "0.11.13",
|
|
53
53
|
"esbuild": "^0.24.0",
|
|
54
54
|
"graphql": "^16.8.1",
|
|
55
55
|
"neverthrow": "^8.1.1"
|