Teach package runtime edge endpoints
This commit is contained in:
+15
-1
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user