@soda-gql/core 0.1.0 → 0.2.0
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/README.md +70 -135
- package/dist/adapter.cjs +35 -0
- package/dist/adapter.cjs.map +1 -0
- package/dist/adapter.d.cts +35 -0
- package/dist/adapter.d.cts.map +1 -0
- package/dist/adapter.d.ts +35 -0
- package/dist/adapter.d.ts.map +1 -0
- package/dist/adapter.js +34 -0
- package/dist/adapter.js.map +1 -0
- package/dist/index-B-erotAZ.d.cts +657 -0
- package/dist/index-B-erotAZ.d.cts.map +1 -0
- package/dist/index-Djr9A4KL.d.ts +657 -0
- package/dist/index-Djr9A4KL.d.ts.map +1 -0
- package/dist/index.cjs +430 -416
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +88 -3
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +88 -3
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +399 -386
- package/dist/index.js.map +1 -1
- package/dist/runtime.cjs +85 -0
- package/dist/runtime.cjs.map +1 -0
- package/dist/runtime.d.cts +40 -0
- package/dist/runtime.d.cts.map +1 -0
- package/dist/runtime.d.ts +40 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +82 -0
- package/dist/runtime.js.map +1 -0
- package/dist/schema-Bip7o0g3.cjs +128 -0
- package/dist/schema-Bip7o0g3.cjs.map +1 -0
- package/dist/{index-zGZ61WLt.d.cts → schema-BygZwEX8.d.ts} +246 -117
- package/dist/schema-BygZwEX8.d.ts.map +1 -0
- package/dist/schema-D9wIW5Dl.js +86 -0
- package/dist/schema-D9wIW5Dl.js.map +1 -0
- package/dist/{index-Db9ogofS.d.ts → schema-DRkKucYe.d.cts} +246 -117
- package/dist/schema-DRkKucYe.d.cts.map +1 -0
- package/dist/schema-builder-8zadflz-.d.cts +40 -0
- package/dist/schema-builder-8zadflz-.d.cts.map +1 -0
- package/dist/schema-builder-vwQtCGYI.d.ts +40 -0
- package/dist/schema-builder-vwQtCGYI.d.ts.map +1 -0
- package/package.json +34 -14
- package/dist/index-DYwkqPzd.d.ts +0 -1015
- package/dist/index-DYwkqPzd.d.ts.map +0 -1
- package/dist/index-Db9ogofS.d.ts.map +0 -1
- package/dist/index-Dth0NSJt.d.cts +0 -1015
- package/dist/index-Dth0NSJt.d.cts.map +0 -1
- package/dist/index-zGZ61WLt.d.cts.map +0 -1
- package/dist/merge-CeMx09is.js +0 -74
- package/dist/merge-CeMx09is.js.map +0 -1
- package/dist/merge-ZxKV1syS.cjs +0 -85
- package/dist/metadata/index.cjs +0 -62
- package/dist/metadata/index.d.cts +0 -71
- package/dist/metadata/index.d.cts.map +0 -1
- package/dist/metadata/index.d.ts +0 -71
- package/dist/metadata/index.d.ts.map +0 -1
- package/dist/metadata/index.js +0 -59
- package/dist/metadata/index.js.map +0 -1
- package/dist/runtime/index.cjs +0 -107
- package/dist/runtime/index.d.cts +0 -72
- package/dist/runtime/index.d.cts.map +0 -1
- package/dist/runtime/index.d.ts +0 -72
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -104
- package/dist/runtime/index.js.map +0 -1
- package/dist/slice-BuSNc8vw.js +0 -278
- package/dist/slice-BuSNc8vw.js.map +0 -1
- package/dist/slice-C-FIQK-f.cjs +0 -373
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slice-BuSNc8vw.js","names":["inner: VarRefInner","projector: (result: AnySlicedExecutionResult) => TProjected","type: \"success\" | \"error\" | \"empty\"","data: TData","extensions?: unknown","error: NormalizedError<TRuntimeAdapter>","errorMaps: { [label: string]: { [path: string]: { error: GraphQLFormattedError }[] } }","current: unknown"],"sources":["../src/types/type-foundation/var-ref.ts","../src/types/runtime/projection.ts","../src/types/runtime/sliced-execution-result.ts","../src/runtime/parse-execution-result.ts","../src/utils/map-values.ts","../src/composer/input.ts","../src/utils/hidden.ts","../src/runtime/slice.ts"],"sourcesContent":["import type { ConstValue } from \"./const-value\";\nimport type { TypeProfile } from \"./type-profile\";\n\nexport interface AnyVarRefMeta {\n readonly profile: TypeProfile;\n readonly signature: unknown;\n}\n\nexport type VarRefInner =\n | {\n type: \"variable\";\n name: string;\n }\n | {\n type: \"const-value\";\n value: ConstValue;\n };\n\nexport type AnyVarRef = VarRef<any>;\n\ndeclare const __VAR_REF_BRAND__: unique symbol;\nexport class VarRef<TMeta extends AnyVarRefMeta> {\n declare readonly [__VAR_REF_BRAND__]: TMeta;\n\n constructor(private readonly inner: VarRefInner) {}\n\n static getInner(varRef: AnyVarRef): VarRefInner {\n return varRef.inner;\n }\n}\n\nexport const isVarRef = (value: unknown): value is AnyVarRef => {\n return typeof value === \"object\" && value !== null && value instanceof VarRef;\n};\n\nexport const createVarRefFromVariable = <TProfile extends TypeProfile.WithMeta>(name: string) => {\n return new VarRef<TypeProfile.AssigningVarRefMeta<TProfile>>({ type: \"variable\", name });\n};\n\nexport const createVarRefFromConstValue = <TProfile extends TypeProfile.WithMeta>(value: ConstValue) => {\n return new VarRef<TypeProfile.AssigningVarRefMeta<TProfile>>({ type: \"const-value\", value });\n};\n\nexport const getVarRefInner = (varRef: AnyVarRef): VarRefInner => {\n return VarRef.getInner(varRef);\n};\n\n/**\n * Get the variable name from a VarRef.\n * Throws if the VarRef contains a const-value instead of a variable reference.\n */\nexport const getVarRefName = (varRef: AnyVarRef): string => {\n const inner = VarRef.getInner(varRef);\n if (inner.type !== \"variable\") {\n throw new Error(\"Expected variable reference, got const-value\");\n }\n return inner.name;\n};\n\n/**\n * Get the const value from a VarRef.\n * Throws if the VarRef contains a variable reference instead of a const-value.\n */\nexport const getVarRefValue = (varRef: AnyVarRef): ConstValue => {\n const inner = VarRef.getInner(varRef);\n if (inner.type !== \"const-value\") {\n throw new Error(\"Expected const-value, got variable reference\");\n }\n return inner.value;\n};\n","import type { Hidden } from \"../../utils/hidden\";\nimport type { Tuple } from \"../../utils/type-utils\";\nimport type { AnySlicedExecutionResult } from \"./sliced-execution-result\";\n\n/** Shape of a single selection slice projection. */\nexport type AnyProjection = Projection<any>;\n\ndeclare const __PROJECTION_BRAND__: unique symbol;\n/**\n * Nominal type representing any slice selection regardless of schema specifics.\n * Encodes how individual slices map a concrete field path to a projection\n * function. Multiple selections allow slices to expose several derived values.\n */\nexport class Projection<TProjected> {\n declare readonly [__PROJECTION_BRAND__]: Hidden<never>;\n constructor(\n paths: Tuple<string>,\n public readonly projector: (result: AnySlicedExecutionResult) => TProjected,\n ) {\n this.paths = paths.map((path) => createProjectionPath(path));\n }\n\n public readonly paths: ProjectionPath[];\n}\n\nexport type ProjectionPath = {\n full: string;\n segments: Tuple<string>;\n};\n\nfunction createProjectionPath(path: string): ProjectionPath {\n const segments = path.split(\".\");\n if (path === \"$\" || segments.length <= 1) {\n throw new Error(\"Field path must not be only $ or empty\");\n }\n\n return {\n full: path,\n segments: segments.slice(1) as Tuple<string>,\n };\n}\n\nexport type InferExecutionResultProjection<TProjection extends AnyProjection> = ReturnType<TProjection[\"projector\"]>;\n","/** Result-like wrapper types returned from slice projections. */\n\nimport type { NormalizedError } from \"./execution-result\";\nimport type { AnyGraphqlRuntimeAdapter } from \"./runtime-adapter\";\n\nexport type AnySlicedExecutionResult = SlicedExecutionResult<any, AnyGraphqlRuntimeAdapter>;\n\n/**\n * Internal discriminated union describing the Result-like wrapper exposed to\n * slice selection callbacks. The adapter decides how raw errors are\n * materialized.\n */\nexport type AnySlicedExecutionResultRecord = {\n [path: string]: AnySlicedExecutionResult;\n};\n\nexport type SafeUnwrapResult<TTransformed, TError> =\n | {\n data?: never;\n error?: never;\n }\n | {\n data: TTransformed;\n error?: never;\n }\n | {\n data?: never;\n error: TError;\n };\n\n/** Utility signature returned by the safe unwrap helper. */\ntype SlicedExecutionResultCommon<TData, TError> = {\n safeUnwrap<TTransformed>(transform: (data: TData) => TTransformed): SafeUnwrapResult<TTransformed, TError>;\n};\n\n/** Public union used by selection callbacks to inspect data, empty, or error states. */\nexport type SlicedExecutionResult<TData, TRuntimeAdapter extends AnyGraphqlRuntimeAdapter> =\n | SlicedExecutionResultEmpty<TData, TRuntimeAdapter>\n | SlicedExecutionResultSuccess<TData, TRuntimeAdapter>\n | SlicedExecutionResultError<TData, TRuntimeAdapter>;\n\n/** Runtime guard interface shared by all slice result variants. */\nclass SlicedExecutionResultGuards<TData, TRuntimeAdapter extends AnyGraphqlRuntimeAdapter> {\n isSuccess(): this is SlicedExecutionResultSuccess<TData, TRuntimeAdapter> {\n return this.type === \"success\";\n }\n isError(): this is SlicedExecutionResultError<TData, TRuntimeAdapter> {\n return this.type === \"error\";\n }\n isEmpty(): this is SlicedExecutionResultEmpty<TData, TRuntimeAdapter> {\n return this.type === \"empty\";\n }\n\n constructor(private readonly type: \"success\" | \"error\" | \"empty\") {}\n}\n\n/** Variant representing an empty payload (no data, no error). */\nexport class SlicedExecutionResultEmpty<TData, TRuntimeAdapter extends AnyGraphqlRuntimeAdapter>\n extends SlicedExecutionResultGuards<TData, TRuntimeAdapter>\n implements SlicedExecutionResultCommon<TData, NormalizedError<TRuntimeAdapter>>\n{\n constructor() {\n super(\"empty\");\n }\n\n unwrap(): null {\n return null;\n }\n\n safeUnwrap() {\n return {\n data: undefined,\n error: undefined,\n };\n }\n}\n\n/** Variant representing a successful payload. */\nexport class SlicedExecutionResultSuccess<TData, TRuntimeAdapter extends AnyGraphqlRuntimeAdapter>\n extends SlicedExecutionResultGuards<TData, TRuntimeAdapter>\n implements SlicedExecutionResultCommon<TData, NormalizedError<TRuntimeAdapter>>\n{\n constructor(\n public readonly data: TData,\n public readonly extensions?: unknown,\n ) {\n super(\"success\");\n }\n\n unwrap(): TData {\n return this.data;\n }\n\n safeUnwrap<TTransformed>(transform: (data: TData) => TTransformed) {\n return {\n data: transform(this.data),\n error: undefined,\n };\n }\n}\n\n/** Variant representing an error payload created by the adapter. */\nexport class SlicedExecutionResultError<TData, TRuntimeAdapter extends AnyGraphqlRuntimeAdapter>\n extends SlicedExecutionResultGuards<TData, TRuntimeAdapter>\n implements SlicedExecutionResultCommon<TData, NormalizedError<TRuntimeAdapter>>\n{\n constructor(\n public readonly error: NormalizedError<TRuntimeAdapter>,\n public readonly extensions?: unknown,\n ) {\n super(\"error\");\n }\n\n unwrap(): never {\n throw this.error;\n }\n\n safeUnwrap() {\n return {\n data: undefined,\n error: this.error,\n };\n }\n}\n","import type { GraphQLFormattedError } from \"graphql\";\nimport type { AnySlicePayloads, ProjectionPathGraphNode } from \"../types/element\";\nimport {\n type AnyGraphqlRuntimeAdapter,\n SlicedExecutionResultEmpty,\n SlicedExecutionResultError,\n SlicedExecutionResultSuccess,\n} from \"../types/runtime\";\nimport type { NormalizedExecutionResult } from \"../types/runtime/execution-result\";\n\nfunction* generateErrorMapEntries(errors: readonly GraphQLFormattedError[], projectionPathGraph: ProjectionPathGraphNode) {\n for (const error of errors) {\n const errorPath = error.path ?? [];\n let stack = projectionPathGraph;\n\n for (\n let i = 0;\n // i <= errorPath.length to handle the case where the error path is empty\n i <= errorPath.length;\n i++\n ) {\n const segment = errorPath[i];\n\n if (\n // the end of the path\n segment == null ||\n // FieldPath does not support index access. We treat it as the end of the path.\n typeof segment === \"number\"\n ) {\n yield* stack.matches.map(({ label, path }) => ({ label, path, error }));\n break;\n }\n\n yield* stack.matches.filter(({ exact }) => exact).map(({ label, path }) => ({ label, path, error }));\n\n const next = stack.children[segment];\n if (!next) {\n break;\n }\n\n stack = next;\n }\n }\n}\n\nconst createErrorMaps = (errors: readonly GraphQLFormattedError[] | undefined, projectionPathGraph: ProjectionPathGraphNode) => {\n const errorMaps: { [label: string]: { [path: string]: { error: GraphQLFormattedError }[] } } = {};\n for (const { label, path, error } of generateErrorMapEntries(errors ?? [], projectionPathGraph)) {\n const mapPerLabel = errorMaps[label] || (errorMaps[label] = {});\n const mapPerPath = mapPerLabel[path] || (mapPerLabel[path] = []);\n mapPerPath.push({ error });\n }\n return errorMaps;\n};\n\nconst accessDataByPathSegments = (data: object, pathSegments: string[]) => {\n let current: unknown = data;\n\n for (const segment of pathSegments) {\n if (current == null) {\n return { error: new Error(\"No data\") };\n }\n\n if (typeof current !== \"object\") {\n return { error: new Error(\"Incorrect data type\") };\n }\n\n if (Array.isArray(current)) {\n return { error: new Error(\"Incorrect data type\") };\n }\n\n current = (current as Record<string, unknown>)[segment];\n }\n\n return { data: current };\n};\n\nexport const createExecutionResultParser = <TRuntimeAdapter extends AnyGraphqlRuntimeAdapter>({\n fragments,\n projectionPathGraph,\n}: {\n fragments: AnySlicePayloads;\n projectionPathGraph: ProjectionPathGraphNode;\n}) => {\n const prepare = (result: NormalizedExecutionResult<TRuntimeAdapter, object, object>) => {\n if (result.type === \"graphql\") {\n const errorMaps = createErrorMaps(result.body.errors, projectionPathGraph);\n\n return { ...result, errorMaps };\n }\n\n if (result.type === \"non-graphql-error\") {\n return { ...result, error: new SlicedExecutionResultError({ type: \"non-graphql-error\", error: result.error }) };\n }\n\n if (result.type === \"empty\") {\n return { ...result, error: new SlicedExecutionResultEmpty() };\n }\n\n throw new Error(\"Invalid result type\", { cause: result satisfies never });\n };\n\n return (result: NormalizedExecutionResult<TRuntimeAdapter, object, object>) => {\n const prepared = prepare(result);\n\n const entries = Object.entries(fragments).map(([label, fragment]) => {\n const { projection } = fragment;\n\n if (prepared.type === \"graphql\") {\n const matchedErrors = projection.paths.flatMap(({ full: raw }) => prepared.errorMaps[label]?.[raw] ?? []);\n const uniqueErrors = Array.from(new Set(matchedErrors.map(({ error }) => error)).values());\n\n if (uniqueErrors.length > 0) {\n return [label, projection.projector(new SlicedExecutionResultError({ type: \"graphql-error\", errors: uniqueErrors }))];\n }\n\n const dataResults = projection.paths.map(({ segments }) =>\n prepared.body.data ? accessDataByPathSegments(prepared.body.data, segments) : { error: new Error(\"No data\") },\n );\n if (dataResults.some(({ error }) => error)) {\n const errors = dataResults.flatMap(({ error }) => (error ? [error] : []));\n return [label, projection.projector(new SlicedExecutionResultError({ type: \"parse-error\", errors }))];\n }\n\n const dataList = dataResults.map(({ data }) => data);\n return [label, projection.projector(new SlicedExecutionResultSuccess(dataList))];\n }\n\n if (prepared.type === \"non-graphql-error\") {\n return [label, projection.projector(prepared.error)];\n }\n\n if (prepared.type === \"empty\") {\n return [label, projection.projector(prepared.error)];\n }\n\n throw new Error(\"Invalid result type\", { cause: prepared satisfies never });\n });\n\n return Object.fromEntries(entries);\n };\n};\n","type ArgEntries<T extends object> = { [K in keyof T]-?: [value: T[K], key: K] }[keyof T];\ntype Entries<T extends object> = { [K in keyof T]: [key: K, value: T[K]] }[keyof T];\n\nexport function mapValues<TObject extends object, TMappedValue>(\n obj: TObject,\n fn: (...args: ArgEntries<TObject>) => TMappedValue,\n): {\n [K in keyof TObject]: TMappedValue;\n} {\n return Object.fromEntries((Object.entries(obj) as Entries<TObject>[]).map(([key, value]) => [key, fn(value, key)])) as {\n [K in keyof TObject]: TMappedValue;\n };\n}\n","import {\n type AnyAssignableInput,\n type AssigningInput,\n createVarRefFromConstValue,\n createVarRefFromVariable,\n isVarRef,\n} from \"../types/fragment\";\nimport type { AnyGraphqlSchema, InferInputProfile } from \"../types/schema\";\nimport type { AnyVarRef, ConstValue, InputTypeSpecifiers } from \"../types/type-foundation\";\nimport { mapValues } from \"../utils/map-values\";\nimport type { UnionToIntersection } from \"../utils/type-utils\";\n\nexport const mergeVarDefinitions = <TVarDefinitions extends InputTypeSpecifiers[]>(definitions: TVarDefinitions) =>\n Object.assign({}, ...definitions) as MergeVarDefinitions<TVarDefinitions>;\n\nexport type MergeVarDefinitions<TVarDefinitions extends InputTypeSpecifiers[]> = UnionToIntersection<\n TVarDefinitions[number]\n> extends infer TDefinitions\n ? {\n readonly [K in keyof TDefinitions]: TDefinitions[K];\n }\n : never;\n\nexport const createVarAssignments = <TSchema extends AnyGraphqlSchema, TVariableDefinitions extends InputTypeSpecifiers>(\n definitions: TVariableDefinitions,\n providedValues: AnyAssignableInput | void,\n): AssigningInput<TSchema, TVariableDefinitions> => {\n return mapValues(definitions, (_definition, key): AnyVarRef => {\n const varName = key as string;\n if (!providedValues || providedValues[varName] === undefined) {\n return createVarRefFromConstValue<InferInputProfile<TSchema, typeof _definition>>(undefined);\n }\n\n const provided = providedValues[varName];\n if (isVarRef(provided)) {\n return provided;\n }\n\n return createVarRefFromConstValue<InferInputProfile<TSchema, typeof _definition>>(provided as ConstValue);\n }) as AssigningInput<TSchema, TVariableDefinitions>;\n};\n\nexport const createVarRefs = <TSchema extends AnyGraphqlSchema, TVarDefinitions extends InputTypeSpecifiers>(\n definitions: TVarDefinitions,\n) =>\n mapValues(definitions as InputTypeSpecifiers, (_ref, name) =>\n createVarRefFromVariable<InferInputProfile<TSchema, typeof _ref>>(name),\n ) as AssigningInput<TSchema, TVarDefinitions>;\n","const _dummy = () => {\n throw new Error(\"DO NOT CALL THIS FUNCTION -- we use function to safely transfer type information\");\n};\nexport const hidden = <T>(): (() => T) => _dummy;\nexport type Hidden<T> = () => T;\n","import type { AnyExecutionResultProjectionsBuilder, AnySliceOf } from \"../types/element\";\nimport { Projection } from \"../types/runtime\";\nimport type { OperationType } from \"../types/schema\";\nimport { hidden } from \"../utils/hidden\";\nimport type { StripFunctions, StripSymbols } from \"../utils/type-utils\";\n\nexport type RuntimeSliceInput = {\n prebuild: StripFunctions<AnySliceOf<OperationType>>;\n runtime: {\n buildProjection: AnyExecutionResultProjectionsBuilder;\n };\n};\n\nexport const handleProjectionBuilder = <TBuilder extends AnyExecutionResultProjectionsBuilder>(\n projectionBuilder: TBuilder,\n): ReturnType<TBuilder> =>\n projectionBuilder({\n select: (path, projector) => new Projection(path, projector),\n });\n\nexport const createRuntimeSlice = (input: RuntimeSliceInput) => {\n const projection = handleProjectionBuilder(input.runtime.buildProjection);\n return {\n operationType: input.prebuild.operationType,\n embed: (variables) => ({\n variables,\n getFields: hidden(),\n projection,\n }),\n } satisfies StripSymbols<AnySliceOf<OperationType>> as AnySliceOf<OperationType>;\n};\n"],"mappings":";AAqBA,IAAa,SAAb,MAAiD;CAG/C,YAAY,AAAiBA,OAAoB;EAApB;;CAE7B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,MAAI,CAAC,kBAAkB,eAAe,aAAa,OACjD,QAAO,2BAA2E,OAAU;EAG9F,MAAM,WAAW,eAAe;AAChC,MAAI,SAAS,SAAS,CACpB,QAAO;AAGT,SAAO,2BAA2E,SAAuB;GACzG;;AAGJ,MAAa,iBACX,gBAEA,UAAU,cAAqC,MAAM,SACnD,yBAAkE,KAAK,CACxE;;;;AC/CH,MAAM,eAAe;AACnB,OAAM,IAAI,MAAM,mFAAmF;;AAErG,MAAa,eAA6B;;;;ACU1C,MAAa,2BACX,sBAEA,kBAAkB,EAChB,SAAS,MAAM,cAAc,IAAI,WAAW,MAAM,UAAU,EAC7D,CAAC;AAEJ,MAAa,sBAAsB,UAA6B;CAC9D,MAAM,aAAa,wBAAwB,MAAM,QAAQ,gBAAgB;AACzE,QAAO;EACL,eAAe,MAAM,SAAS;EAC9B,QAAQ,eAAe;GACrB;GACA,WAAW,QAAQ;GACnB;GACD;EACF"}
|
package/dist/slice-C-FIQK-f.cjs
DELETED
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region packages/core/src/types/type-foundation/var-ref.ts
|
|
3
|
-
var VarRef = class {
|
|
4
|
-
constructor(inner) {
|
|
5
|
-
this.inner = inner;
|
|
6
|
-
}
|
|
7
|
-
static getInner(varRef) {
|
|
8
|
-
return varRef.inner;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
const isVarRef = (value) => {
|
|
12
|
-
return typeof value === "object" && value !== null && value instanceof VarRef;
|
|
13
|
-
};
|
|
14
|
-
const createVarRefFromVariable = (name) => {
|
|
15
|
-
return new VarRef({
|
|
16
|
-
type: "variable",
|
|
17
|
-
name
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
const createVarRefFromConstValue = (value) => {
|
|
21
|
-
return new VarRef({
|
|
22
|
-
type: "const-value",
|
|
23
|
-
value
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
const getVarRefInner = (varRef) => {
|
|
27
|
-
return VarRef.getInner(varRef);
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Get the variable name from a VarRef.
|
|
31
|
-
* Throws if the VarRef contains a const-value instead of a variable reference.
|
|
32
|
-
*/
|
|
33
|
-
const getVarRefName = (varRef) => {
|
|
34
|
-
const inner = VarRef.getInner(varRef);
|
|
35
|
-
if (inner.type !== "variable") throw new Error("Expected variable reference, got const-value");
|
|
36
|
-
return inner.name;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Get the const value from a VarRef.
|
|
40
|
-
* Throws if the VarRef contains a variable reference instead of a const-value.
|
|
41
|
-
*/
|
|
42
|
-
const getVarRefValue = (varRef) => {
|
|
43
|
-
const inner = VarRef.getInner(varRef);
|
|
44
|
-
if (inner.type !== "const-value") throw new Error("Expected const-value, got variable reference");
|
|
45
|
-
return inner.value;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region packages/core/src/types/runtime/projection.ts
|
|
50
|
-
/**
|
|
51
|
-
* Nominal type representing any slice selection regardless of schema specifics.
|
|
52
|
-
* Encodes how individual slices map a concrete field path to a projection
|
|
53
|
-
* function. Multiple selections allow slices to expose several derived values.
|
|
54
|
-
*/
|
|
55
|
-
var Projection = class {
|
|
56
|
-
constructor(paths, projector) {
|
|
57
|
-
this.projector = projector;
|
|
58
|
-
this.paths = paths.map((path) => createProjectionPath(path));
|
|
59
|
-
}
|
|
60
|
-
paths;
|
|
61
|
-
};
|
|
62
|
-
function createProjectionPath(path) {
|
|
63
|
-
const segments = path.split(".");
|
|
64
|
-
if (path === "$" || segments.length <= 1) throw new Error("Field path must not be only $ or empty");
|
|
65
|
-
return {
|
|
66
|
-
full: path,
|
|
67
|
-
segments: segments.slice(1)
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
//#endregion
|
|
72
|
-
//#region packages/core/src/types/runtime/sliced-execution-result.ts
|
|
73
|
-
/** Runtime guard interface shared by all slice result variants. */
|
|
74
|
-
var SlicedExecutionResultGuards = class {
|
|
75
|
-
isSuccess() {
|
|
76
|
-
return this.type === "success";
|
|
77
|
-
}
|
|
78
|
-
isError() {
|
|
79
|
-
return this.type === "error";
|
|
80
|
-
}
|
|
81
|
-
isEmpty() {
|
|
82
|
-
return this.type === "empty";
|
|
83
|
-
}
|
|
84
|
-
constructor(type) {
|
|
85
|
-
this.type = type;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
/** Variant representing an empty payload (no data, no error). */
|
|
89
|
-
var SlicedExecutionResultEmpty = class extends SlicedExecutionResultGuards {
|
|
90
|
-
constructor() {
|
|
91
|
-
super("empty");
|
|
92
|
-
}
|
|
93
|
-
unwrap() {
|
|
94
|
-
return null;
|
|
95
|
-
}
|
|
96
|
-
safeUnwrap() {
|
|
97
|
-
return {
|
|
98
|
-
data: void 0,
|
|
99
|
-
error: void 0
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
/** Variant representing a successful payload. */
|
|
104
|
-
var SlicedExecutionResultSuccess = class extends SlicedExecutionResultGuards {
|
|
105
|
-
constructor(data, extensions) {
|
|
106
|
-
super("success");
|
|
107
|
-
this.data = data;
|
|
108
|
-
this.extensions = extensions;
|
|
109
|
-
}
|
|
110
|
-
unwrap() {
|
|
111
|
-
return this.data;
|
|
112
|
-
}
|
|
113
|
-
safeUnwrap(transform) {
|
|
114
|
-
return {
|
|
115
|
-
data: transform(this.data),
|
|
116
|
-
error: void 0
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
/** Variant representing an error payload created by the adapter. */
|
|
121
|
-
var SlicedExecutionResultError = class extends SlicedExecutionResultGuards {
|
|
122
|
-
constructor(error, extensions) {
|
|
123
|
-
super("error");
|
|
124
|
-
this.error = error;
|
|
125
|
-
this.extensions = extensions;
|
|
126
|
-
}
|
|
127
|
-
unwrap() {
|
|
128
|
-
throw this.error;
|
|
129
|
-
}
|
|
130
|
-
safeUnwrap() {
|
|
131
|
-
return {
|
|
132
|
-
data: void 0,
|
|
133
|
-
error: this.error
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region packages/core/src/runtime/parse-execution-result.ts
|
|
140
|
-
function* generateErrorMapEntries(errors, projectionPathGraph) {
|
|
141
|
-
for (const error of errors) {
|
|
142
|
-
const errorPath = error.path ?? [];
|
|
143
|
-
let stack = projectionPathGraph;
|
|
144
|
-
for (let i = 0; i <= errorPath.length; i++) {
|
|
145
|
-
const segment = errorPath[i];
|
|
146
|
-
if (segment == null || typeof segment === "number") {
|
|
147
|
-
yield* stack.matches.map(({ label, path }) => ({
|
|
148
|
-
label,
|
|
149
|
-
path,
|
|
150
|
-
error
|
|
151
|
-
}));
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
154
|
-
yield* stack.matches.filter(({ exact }) => exact).map(({ label, path }) => ({
|
|
155
|
-
label,
|
|
156
|
-
path,
|
|
157
|
-
error
|
|
158
|
-
}));
|
|
159
|
-
const next = stack.children[segment];
|
|
160
|
-
if (!next) break;
|
|
161
|
-
stack = next;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
const createErrorMaps = (errors, projectionPathGraph) => {
|
|
166
|
-
const errorMaps = {};
|
|
167
|
-
for (const { label, path, error } of generateErrorMapEntries(errors ?? [], projectionPathGraph)) {
|
|
168
|
-
const mapPerLabel = errorMaps[label] || (errorMaps[label] = {});
|
|
169
|
-
(mapPerLabel[path] || (mapPerLabel[path] = [])).push({ error });
|
|
170
|
-
}
|
|
171
|
-
return errorMaps;
|
|
172
|
-
};
|
|
173
|
-
const accessDataByPathSegments = (data, pathSegments) => {
|
|
174
|
-
let current = data;
|
|
175
|
-
for (const segment of pathSegments) {
|
|
176
|
-
if (current == null) return { error: /* @__PURE__ */ new Error("No data") };
|
|
177
|
-
if (typeof current !== "object") return { error: /* @__PURE__ */ new Error("Incorrect data type") };
|
|
178
|
-
if (Array.isArray(current)) return { error: /* @__PURE__ */ new Error("Incorrect data type") };
|
|
179
|
-
current = current[segment];
|
|
180
|
-
}
|
|
181
|
-
return { data: current };
|
|
182
|
-
};
|
|
183
|
-
const createExecutionResultParser = ({ fragments, projectionPathGraph }) => {
|
|
184
|
-
const prepare = (result) => {
|
|
185
|
-
if (result.type === "graphql") {
|
|
186
|
-
const errorMaps = createErrorMaps(result.body.errors, projectionPathGraph);
|
|
187
|
-
return {
|
|
188
|
-
...result,
|
|
189
|
-
errorMaps
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
if (result.type === "non-graphql-error") return {
|
|
193
|
-
...result,
|
|
194
|
-
error: new SlicedExecutionResultError({
|
|
195
|
-
type: "non-graphql-error",
|
|
196
|
-
error: result.error
|
|
197
|
-
})
|
|
198
|
-
};
|
|
199
|
-
if (result.type === "empty") return {
|
|
200
|
-
...result,
|
|
201
|
-
error: new SlicedExecutionResultEmpty()
|
|
202
|
-
};
|
|
203
|
-
throw new Error("Invalid result type", { cause: result });
|
|
204
|
-
};
|
|
205
|
-
return (result) => {
|
|
206
|
-
const prepared = prepare(result);
|
|
207
|
-
const entries = Object.entries(fragments).map(([label, fragment]) => {
|
|
208
|
-
const { projection } = fragment;
|
|
209
|
-
if (prepared.type === "graphql") {
|
|
210
|
-
const matchedErrors = projection.paths.flatMap(({ full: raw }) => prepared.errorMaps[label]?.[raw] ?? []);
|
|
211
|
-
const uniqueErrors = Array.from(new Set(matchedErrors.map(({ error }) => error)).values());
|
|
212
|
-
if (uniqueErrors.length > 0) return [label, projection.projector(new SlicedExecutionResultError({
|
|
213
|
-
type: "graphql-error",
|
|
214
|
-
errors: uniqueErrors
|
|
215
|
-
}))];
|
|
216
|
-
const dataResults = projection.paths.map(({ segments }) => prepared.body.data ? accessDataByPathSegments(prepared.body.data, segments) : { error: /* @__PURE__ */ new Error("No data") });
|
|
217
|
-
if (dataResults.some(({ error }) => error)) {
|
|
218
|
-
const errors = dataResults.flatMap(({ error }) => error ? [error] : []);
|
|
219
|
-
return [label, projection.projector(new SlicedExecutionResultError({
|
|
220
|
-
type: "parse-error",
|
|
221
|
-
errors
|
|
222
|
-
}))];
|
|
223
|
-
}
|
|
224
|
-
const dataList = dataResults.map(({ data }) => data);
|
|
225
|
-
return [label, projection.projector(new SlicedExecutionResultSuccess(dataList))];
|
|
226
|
-
}
|
|
227
|
-
if (prepared.type === "non-graphql-error") return [label, projection.projector(prepared.error)];
|
|
228
|
-
if (prepared.type === "empty") return [label, projection.projector(prepared.error)];
|
|
229
|
-
throw new Error("Invalid result type", { cause: prepared });
|
|
230
|
-
});
|
|
231
|
-
return Object.fromEntries(entries);
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region packages/core/src/utils/map-values.ts
|
|
237
|
-
function mapValues(obj, fn) {
|
|
238
|
-
return Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, fn(value, key)]));
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
//#endregion
|
|
242
|
-
//#region packages/core/src/composer/input.ts
|
|
243
|
-
const mergeVarDefinitions = (definitions) => Object.assign({}, ...definitions);
|
|
244
|
-
const createVarAssignments = (definitions, providedValues) => {
|
|
245
|
-
return mapValues(definitions, (_definition, key) => {
|
|
246
|
-
const varName = key;
|
|
247
|
-
if (!providedValues || providedValues[varName] === void 0) return createVarRefFromConstValue(void 0);
|
|
248
|
-
const provided = providedValues[varName];
|
|
249
|
-
if (isVarRef(provided)) return provided;
|
|
250
|
-
return createVarRefFromConstValue(provided);
|
|
251
|
-
});
|
|
252
|
-
};
|
|
253
|
-
const createVarRefs = (definitions) => mapValues(definitions, (_ref, name) => createVarRefFromVariable(name));
|
|
254
|
-
|
|
255
|
-
//#endregion
|
|
256
|
-
//#region packages/core/src/utils/hidden.ts
|
|
257
|
-
const _dummy = () => {
|
|
258
|
-
throw new Error("DO NOT CALL THIS FUNCTION -- we use function to safely transfer type information");
|
|
259
|
-
};
|
|
260
|
-
const hidden = () => _dummy;
|
|
261
|
-
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region packages/core/src/runtime/slice.ts
|
|
264
|
-
const handleProjectionBuilder = (projectionBuilder) => projectionBuilder({ select: (path, projector) => new Projection(path, projector) });
|
|
265
|
-
const createRuntimeSlice = (input) => {
|
|
266
|
-
const projection = handleProjectionBuilder(input.runtime.buildProjection);
|
|
267
|
-
return {
|
|
268
|
-
operationType: input.prebuild.operationType,
|
|
269
|
-
embed: (variables) => ({
|
|
270
|
-
variables,
|
|
271
|
-
getFields: hidden(),
|
|
272
|
-
projection
|
|
273
|
-
})
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
//#endregion
|
|
278
|
-
Object.defineProperty(exports, 'Projection', {
|
|
279
|
-
enumerable: true,
|
|
280
|
-
get: function () {
|
|
281
|
-
return Projection;
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
Object.defineProperty(exports, 'SlicedExecutionResultEmpty', {
|
|
285
|
-
enumerable: true,
|
|
286
|
-
get: function () {
|
|
287
|
-
return SlicedExecutionResultEmpty;
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
Object.defineProperty(exports, 'SlicedExecutionResultError', {
|
|
291
|
-
enumerable: true,
|
|
292
|
-
get: function () {
|
|
293
|
-
return SlicedExecutionResultError;
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
|
-
Object.defineProperty(exports, 'SlicedExecutionResultSuccess', {
|
|
297
|
-
enumerable: true,
|
|
298
|
-
get: function () {
|
|
299
|
-
return SlicedExecutionResultSuccess;
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
Object.defineProperty(exports, 'VarRef', {
|
|
303
|
-
enumerable: true,
|
|
304
|
-
get: function () {
|
|
305
|
-
return VarRef;
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
Object.defineProperty(exports, 'createExecutionResultParser', {
|
|
309
|
-
enumerable: true,
|
|
310
|
-
get: function () {
|
|
311
|
-
return createExecutionResultParser;
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
Object.defineProperty(exports, 'createRuntimeSlice', {
|
|
315
|
-
enumerable: true,
|
|
316
|
-
get: function () {
|
|
317
|
-
return createRuntimeSlice;
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
Object.defineProperty(exports, 'createVarAssignments', {
|
|
321
|
-
enumerable: true,
|
|
322
|
-
get: function () {
|
|
323
|
-
return createVarAssignments;
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
Object.defineProperty(exports, 'createVarRefs', {
|
|
327
|
-
enumerable: true,
|
|
328
|
-
get: function () {
|
|
329
|
-
return createVarRefs;
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
Object.defineProperty(exports, 'getVarRefInner', {
|
|
333
|
-
enumerable: true,
|
|
334
|
-
get: function () {
|
|
335
|
-
return getVarRefInner;
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
Object.defineProperty(exports, 'getVarRefName', {
|
|
339
|
-
enumerable: true,
|
|
340
|
-
get: function () {
|
|
341
|
-
return getVarRefName;
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
Object.defineProperty(exports, 'getVarRefValue', {
|
|
345
|
-
enumerable: true,
|
|
346
|
-
get: function () {
|
|
347
|
-
return getVarRefValue;
|
|
348
|
-
}
|
|
349
|
-
});
|
|
350
|
-
Object.defineProperty(exports, 'handleProjectionBuilder', {
|
|
351
|
-
enumerable: true,
|
|
352
|
-
get: function () {
|
|
353
|
-
return handleProjectionBuilder;
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
Object.defineProperty(exports, 'hidden', {
|
|
357
|
-
enumerable: true,
|
|
358
|
-
get: function () {
|
|
359
|
-
return hidden;
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
Object.defineProperty(exports, 'mapValues', {
|
|
363
|
-
enumerable: true,
|
|
364
|
-
get: function () {
|
|
365
|
-
return mapValues;
|
|
366
|
-
}
|
|
367
|
-
});
|
|
368
|
-
Object.defineProperty(exports, 'mergeVarDefinitions', {
|
|
369
|
-
enumerable: true,
|
|
370
|
-
get: function () {
|
|
371
|
-
return mergeVarDefinitions;
|
|
372
|
-
}
|
|
373
|
-
});
|