@soda-gql/tools 0.13.0 → 0.13.1
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/bin.d.cts +4 -4
- package/dist/codegen.d.mts +4 -4
- package/dist/typegen.d.mts.map +1 -1
- package/package.json +5 -5
package/dist/bin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as neverthrow0 from "neverthrow";
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
3
|
import { ArtifactLoadError, BuilderError, FieldSelectionData, FieldSelectionsMap } from "@soda-gql/builder";
|
|
4
4
|
import { ConfigError, ResolvedSodaGqlConfig, TypeCategory, TypeFilterConfig } from "@soda-gql/config";
|
|
@@ -368,7 +368,7 @@ type CodegenSuccess = {
|
|
|
368
368
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
369
369
|
//#endregion
|
|
370
370
|
//#region packages/tools/src/codegen/inject-template.d.ts
|
|
371
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
371
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow0.Err<void, CodegenError> | neverthrow0.Ok<void, CodegenError>;
|
|
372
372
|
declare const getInjectTemplate: () => string;
|
|
373
373
|
//#endregion
|
|
374
374
|
//#region packages/tools/src/codegen/type-filter.d.ts
|
|
@@ -406,12 +406,12 @@ declare const runCodegen: (options: CodegenOptions) => Promise<CodegenResult>;
|
|
|
406
406
|
* Load a single schema file.
|
|
407
407
|
* @internal Use loadSchema for public API.
|
|
408
408
|
*/
|
|
409
|
-
declare const loadSingleSchema: (schemaPath: string) =>
|
|
409
|
+
declare const loadSingleSchema: (schemaPath: string) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
410
410
|
/**
|
|
411
411
|
* Load and merge multiple schema files into a single DocumentNode.
|
|
412
412
|
* Uses GraphQL's concatAST to combine definitions from all files.
|
|
413
413
|
*/
|
|
414
|
-
declare const loadSchema: (schemaPaths: readonly string[]) =>
|
|
414
|
+
declare const loadSchema: (schemaPaths: readonly string[]) => neverthrow0.Err<DocumentNode, CodegenError> | neverthrow0.Ok<DocumentNode, CodegenError>;
|
|
415
415
|
declare const hashSchema: (document: DocumentNode) => string;
|
|
416
416
|
//#endregion
|
|
417
417
|
//#region packages/tools/src/typegen/errors.d.ts
|
package/dist/codegen.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 { 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";
|
|
4
4
|
import * as graphql0 from "graphql";
|
|
@@ -366,7 +366,7 @@ type CodegenSuccess = {
|
|
|
366
366
|
type CodegenResult = Result<CodegenSuccess, CodegenError>;
|
|
367
367
|
//#endregion
|
|
368
368
|
//#region packages/tools/src/codegen/inject-template.d.ts
|
|
369
|
-
declare const writeInjectTemplate: (outPath: string) =>
|
|
369
|
+
declare const writeInjectTemplate: (outPath: string) => neverthrow3.Err<void, CodegenError> | neverthrow3.Ok<void, CodegenError>;
|
|
370
370
|
declare const getInjectTemplate: () => string;
|
|
371
371
|
//#endregion
|
|
372
372
|
//#region packages/tools/src/codegen/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) => neverthrow3.Err<DocumentNode, CodegenError> | neverthrow3.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[]) => neverthrow3.Err<DocumentNode, CodegenError> | neverthrow3.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/dist/typegen.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typegen.d.mts","names":[],"sources":["../src/typegen/errors.ts","../src/typegen/emitter.ts","../src/typegen/types.ts","../src/typegen/runner.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAWA;AAKA;AAqBY,KA1BA,gBAAA,GA0Be,0BAAuB,GAAA,4BAAY,GAAA,sBAAA;AAK9D;;;AAcmD,KAxCvC,oBAAA,GAwCuC;EAAoB,SAAA,IAAA,EAAA,0BAAA;EAU1D,SAAA,OAAA,EAAA,MAoBZ;;;;EC3CW,SAAA,OAAA,EAAA,MAAA;EAKuB,SAAA,WAAA,EAAA,SAAA,MAAA,EAAA;EAAf,SAAA,KAAA,CAAA,EAAA,OAAA;CAIQ,GAAA;EAAkB,SAAA,IAAA,EAAA,sBAAA;EAgYlC,SAAA,OAAA,EAAA,MAAA;EAmCC,SAAA,KAAA,CAAA,EAAA,OA8BZ;CA7BU;;;;AACA,KDpbC,YAAA,GAAe,oBCobhB,GDpbuC,YCobvC;;;;cD/aE;gDACwB;EE/BzB,SAAA,gBAAc,EAAA,
|
|
1
|
+
{"version":3,"file":"typegen.d.mts","names":[],"sources":["../src/typegen/errors.ts","../src/typegen/emitter.ts","../src/typegen/types.ts","../src/typegen/runner.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAWA;AAKA;AAqBY,KA1BA,gBAAA,GA0Be,0BAAuB,GAAA,4BAAY,GAAA,sBAAA;AAK9D;;;AAcmD,KAxCvC,oBAAA,GAwCuC;EAAoB,SAAA,IAAA,EAAA,0BAAA;EAU1D,SAAA,OAAA,EAAA,MAoBZ;;;;EC3CW,SAAA,OAAA,EAAA,MAAA;EAKuB,SAAA,WAAA,EAAA,SAAA,MAAA,EAAA;EAAf,SAAA,KAAA,CAAA,EAAA,OAAA;CAIQ,GAAA;EAAkB,SAAA,IAAA,EAAA,sBAAA;EAgYlC,SAAA,OAAA,EAAA,MAAA;EAmCC,SAAA,KAAA,CAAA,EAAA,OA8BZ;CA7BU;;;;AACA,KDpbC,YAAA,GAAe,oBCobhB,GDpbuC,YCobvC;;;;cD/aE;gDACwB;EE/BzB,SAAA,gBAAc,EAAA,CAAA,WA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;;;EACQ,SAAA,QAAA,EAAA,SAAA,MAAA,EAAA;CACa;;;;AAEd,KDnJR,aAAA,GAAgB,MCmJR,CDnJe,cCmJf,EDnJ+B,YCmJ/B,CAAA;;;;;;AF7KR,KERA,iBAAA,GFQA;EAKuB;;;EAIW,SAAA,MAAA,EEb3B,qBFa2B;AAgY9C,CAAA;AAmCA;;;;;;;;;;;AC3cA;AA2BA;AA8BY,cCoCC,UDpCY,EAAA,CAAA,OAAA,ECoCiB,iBDpCjB,EAAA,GCoCqC,ODpCrC,CCoC6C,aDpC7C,CAAA;;;;;;;;AClCzB;AAsEA;;AAAsE,cA2GzD,eA3GyD,EAAA,CAAA,iBAAA,EA4GjD,WA5GiD,CA4GrC,WA5GqC,EA4GxB,kBA5GwB,CAAA,EAAA,kBAAA,EA6GhD,WA7GgD,CA6GpC,WA7GoC,EA6GvB,kBA7GuB,CAAA,EAAA,OAAA,EAAA,MAAA,EAAA,GA+GnE,GA/GmE,CA+G/D,WA/G+D,EA+GlD,kBA/GkD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soda-gql/tools",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Development tools for soda-gql: CLI, codegen, typegen, and formatter",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"./package.json": "./package.json"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@soda-gql/builder": "0.13.
|
|
83
|
-
"@soda-gql/common": "0.13.
|
|
84
|
-
"@soda-gql/config": "0.13.
|
|
85
|
-
"@soda-gql/core": "0.13.
|
|
82
|
+
"@soda-gql/builder": "0.13.1",
|
|
83
|
+
"@soda-gql/common": "0.13.1",
|
|
84
|
+
"@soda-gql/config": "0.13.1",
|
|
85
|
+
"@soda-gql/core": "0.13.1",
|
|
86
86
|
"chokidar": "^3.6.0",
|
|
87
87
|
"esbuild": "^0.24.0",
|
|
88
88
|
"fast-glob": "^3.3.3",
|