Introduce persisted Web Studio component capabilities
This commit is contained in:
@@ -291,11 +291,12 @@ export interface PackageRevision {
|
||||
}
|
||||
|
||||
export type DependencyBinding =
|
||||
| { kind: "state"; slotId: SlotId }
|
||||
| { kind: "state"; slotId: SlotId; via?: EdgeTraversal }
|
||||
| {
|
||||
kind: "edge";
|
||||
edgeTypeId: EdgeTypeId;
|
||||
projectionId: EdgeProjectionId;
|
||||
via?: EdgeTraversal;
|
||||
}
|
||||
| {
|
||||
kind: "receiver-interface";
|
||||
@@ -308,6 +309,24 @@ export interface BoundDependency {
|
||||
binding: DependencyBinding;
|
||||
}
|
||||
|
||||
/** Selects the object at the other end of an exactly-one relationship. */
|
||||
export interface EdgeTraversal {
|
||||
edgeTypeId: EdgeTypeId;
|
||||
projectionId: EdgeProjectionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provisional get-or-create recipe for a relationship implementation. The
|
||||
* host projection is supplied by the relationship's resolve binding; this
|
||||
* projection originates at the object constructed for the relationship.
|
||||
*/
|
||||
export interface RelationshipMaterialization {
|
||||
memberId: MemberId;
|
||||
constructorAtomId: AtomId;
|
||||
edgeTypeId: EdgeTypeId;
|
||||
constructedProjectionId: EdgeProjectionId;
|
||||
}
|
||||
|
||||
export type Binding =
|
||||
| {
|
||||
kind: "state";
|
||||
@@ -337,6 +356,7 @@ export interface Conformance {
|
||||
interfaceRevisionId: InterfaceRevisionId;
|
||||
privateAttachments: PersistentAttachment[];
|
||||
operationBindings: OperationBinding[];
|
||||
relationshipMaterializations: RelationshipMaterialization[];
|
||||
}
|
||||
|
||||
export interface AtomConstructorBinding {
|
||||
|
||||
Reference in New Issue
Block a user