@astrale-os/sdk 0.6.0-beta.66 → 0.6.0-beta.67
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/application/query/execution/crossings.js +6 -1
- package/dist/application/query/execution/error.d.ts +5 -2
- package/dist/application/query/execution/error.js +3 -1
- package/dist/application/query/execution/rows.d.ts +4 -1
- package/dist/application/query/execution/rows.js +30 -19
- package/dist/application/query/execution/run.js +9 -0
- package/dist/application/query/handles/handles.d.ts +49 -20
- package/dist/application/query/handles/model.d.ts +6 -0
- package/dist/application/query/handles/model.js +10 -0
- package/dist/application/query/handles/plan.d.ts +6 -1
- package/dist/application/query/handles/reads.d.ts +7 -0
- package/dist/application/query/handles/reads.js +98 -16
- package/dist/application/query/handles/relations.d.ts +31 -3
- package/dist/application/query/handles/rows.d.ts +8 -0
- package/dist/application/query/language/query.d.ts +8 -1
- package/dist/platform/schema/kernel-compiled.d.ts +1 -1
- package/dist/platform/schema/kernel-compiled.js +1 -1
- package/docs/legacy/query-v6.md +1 -1
- package/docs/queries.md +39 -10
- package/package.json +6 -6
|
@@ -57,6 +57,14 @@ type Slugged = {
|
|
|
57
57
|
export type EdgeValues<S, E> = E extends unknown ? {
|
|
58
58
|
readonly $class: ClassOf<S, E>;
|
|
59
59
|
} & Slugged & ValuesOf<S, E, never> : never;
|
|
60
|
+
/**
|
|
61
|
+
* Both ends of an Edge, which `$edge` names on a relation that follows one Edge or more
|
|
62
|
+
* (`.reachable()`): its Edge leaves a Node its walk passed through, not the row's parent.
|
|
63
|
+
*/
|
|
64
|
+
export type EdgeEnds = {
|
|
65
|
+
readonly $source: NodeId;
|
|
66
|
+
readonly $target: NodeId;
|
|
67
|
+
};
|
|
60
68
|
/** An Edge the reader may not read: its slug, which traversal discloses, and the names withheld. */
|
|
61
69
|
type UnreadEdge<S, E> = Slugged & {
|
|
62
70
|
readonly $withheld: readonly PropNamesOf<Cls<S, E>>[];
|
|
@@ -231,11 +231,18 @@ type Where<D extends Domain> = D extends Domain ? {
|
|
|
231
231
|
readonly op: 'source' | 'target';
|
|
232
232
|
readonly operand: Where<D>;
|
|
233
233
|
} : never;
|
|
234
|
-
/**
|
|
234
|
+
/**
|
|
235
|
+
* The Edges of `via` followed in `direction`, and the Node they reach. With `reachable` it follows
|
|
236
|
+
* one Edge or more: `through` holds on every Node a walk passes through, `edge` on every Edge
|
|
237
|
+
* followed and `node` on every Node reached. Followed `incident`, it is `distinct`.
|
|
238
|
+
*/
|
|
235
239
|
type Traversal<D extends Domain> = D extends Domain ? {
|
|
236
240
|
readonly via: NonEmpty<EdgeKeys<D>>;
|
|
237
241
|
readonly direction: TraversalDirection;
|
|
238
242
|
readonly distinct?: boolean;
|
|
243
|
+
readonly reachable?: {
|
|
244
|
+
readonly through?: Where<D>;
|
|
245
|
+
};
|
|
239
246
|
readonly as?: string;
|
|
240
247
|
readonly edge?: Where<D>;
|
|
241
248
|
readonly node?: Where<D>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Generated from the Kernel Schema of @astrale-os/kernel-core 1.0.0-beta.
|
|
1
|
+
/** Generated from the Kernel Schema of @astrale-os/kernel-core 1.0.0-beta.42, reduced to its Classes. Regenerate with pnpm sync:kernel-schema. */
|
|
2
2
|
export declare const kernelCompiledSchema: string;
|