Teach package runtime edge endpoints

This commit is contained in:
Timothy J. Aveni
2026-07-14 07:57:20 -07:00
parent b4ab4c49c9
commit 85e0dafbeb
16 changed files with 425 additions and 62 deletions
+15 -1
View File
@@ -23,7 +23,8 @@ export type Cardinality =
| "exactly_one"
| "many"
| "many_unique"
| "many_ordered";
| "many_ordered"
| "many_unique_ordered";
export type FieldStorageKind =
| "stored"
@@ -81,6 +82,14 @@ export type FieldSchema = {
isDisplayLabel: boolean;
};
export type EdgeEndpointSchema = {
class?: SymbolRef;
interface?: SymbolRef;
projection: string;
cardinality: Cardinality;
indexed: boolean;
};
export type EdgeSchema = {
id: SymbolRef;
sourceField: string;
@@ -89,6 +98,11 @@ export type EdgeSchema = {
cardinality: Cardinality;
inverse?: string;
fields: FieldSchema[];
fromEndpoint: EdgeEndpointSchema;
toEndpoint: EdgeEndpointSchema;
declaringClass: SymbolRef;
tags: SymbolRef[];
implements: SymbolRef[];
};
export type MethodSchema = {