Teach package runtime edge endpoints
This commit is contained in:
Vendored
+13
-1
@@ -12,7 +12,7 @@ export type FunctionRef = {
|
||||
versionRef?: string;
|
||||
};
|
||||
export type ConflictStrategy = "replace" | "preserve_conflicts" | "crdt";
|
||||
export type Cardinality = "optional_one" | "exactly_one" | "many" | "many_unique" | "many_ordered";
|
||||
export type Cardinality = "optional_one" | "exactly_one" | "many" | "many_unique" | "many_ordered" | "many_unique_ordered";
|
||||
export type FieldStorageKind = "stored" | "derived" | "lazy" | "external" | "static_final";
|
||||
export type FieldStorage = {
|
||||
kind: FieldStorageKind;
|
||||
@@ -56,6 +56,13 @@ export type FieldSchema = {
|
||||
interfaceContract?: InterfaceFieldContract;
|
||||
isDisplayLabel: boolean;
|
||||
};
|
||||
export type EdgeEndpointSchema = {
|
||||
class?: SymbolRef;
|
||||
interface?: SymbolRef;
|
||||
projection: string;
|
||||
cardinality: Cardinality;
|
||||
indexed: boolean;
|
||||
};
|
||||
export type EdgeSchema = {
|
||||
id: SymbolRef;
|
||||
sourceField: string;
|
||||
@@ -64,6 +71,11 @@ export type EdgeSchema = {
|
||||
cardinality: Cardinality;
|
||||
inverse?: string;
|
||||
fields: FieldSchema[];
|
||||
fromEndpoint: EdgeEndpointSchema;
|
||||
toEndpoint: EdgeEndpointSchema;
|
||||
declaringClass: SymbolRef;
|
||||
tags: SymbolRef[];
|
||||
implements: SymbolRef[];
|
||||
};
|
||||
export type MethodSchema = {
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user