snapshot_schema.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.7/snapshot_schema.bend as Snapshot_schema
9 imports
import Base import ./snapshot_leaf.bend as Leaf import ./persistence_declaration.bend as Decl import ./decode_data.bend as D import ./schema_fragments.bend as Fragment import ./column.bend as Col import ./ordinary_declaration.bend as Canonical import ./owner_product.bend as Product import ./ordinary_schema.bend as Ordinary
Types
type Schema source · line 13 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-eligible:Bool -> @-components:(@_:U32 -> @_:C -> Pair(C, List<&2, 0x7e321819d0ff210531780719c7674cef/decode_data.Field>)) -> @-resources:(@_:R -> Pair(R, List<&2, 0x7e321819d0ff210531780719c7674cef/decode_data.Field>)) -> Data
The same schema factory derives ordinary inventory, physical product and save eligibility/closed traversal. Runtime recipes live in the leaf owners.
Schema@-S:Data -> @-C:Type -> @-R:Type -> @-eligible:Bool -> @-components:(@_:U32 -> @_:C -> Pair(C, List<&2, 0x7e321819d0ff210531780719c7674cef/decode_data.Field>)) -> @-resources:(@_:R -> Pair(R, List<&2, 0x7e321819d0ff210531780719c7674cef/decode_data.Field>)) -> @ordinary:0x7e321819d0ff210531780719c7674cef/ordinary_schema.Schema<S, C, R> -> Schema<S, C, R, eligible, components, resources>
Definitions
def unit_component source · line 15 · raw
@id:U32 -> @value:Unit -> Pair(Unit, List<&2, 0x7e321819d0ff210531780719c7674cef/decode_data.Field>)
def unit_resource source · line 17 · raw
@value:Unit -> Pair(Unit, List<&2, 0x7e321819d0ff210531780719c7674cef/decode_data.Field>)
Templates
template plain_component_fields source · line 19 · raw
@-S:Data -> @-P:Type -> @id:U32 -> @value:0x7e321819d0ff210531780719c7674cef/column.Column<S, P> -> Pair(0x7e321819d0ff210531780719c7674cef/column.Column<S, P>, List<&2, 0x7e321819d0ff210531780719c7674cef/decode_data.Field>)
template entry source · line 21 · raw
@-S:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @kind:0x7e321819d0ff210531780719c7674cef/schema_fragments.RegistryKind -> 0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S>
template component source · line 24 · raw
@-S:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> Schema<S, 0x7e321819d0ff210531780719c7674cef/snapshot_leaf.Component<S, P, identity, project>, Unit, True{}, 0x7e321819d0ff210531780719c7674cef/snapshot_leaf.component_fields(S, P, identity, project), unit_resource>
template transient_component source · line 26 · raw
@-S:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> Schema<S, 0x7e321819d0ff210531780719c7674cef/snapshot_leaf.TransientComponent<S, P, identity>, Unit, True{}, 0x7e321819d0ff210531780719c7674cef/snapshot_leaf.transient_component_fields(S, P, identity), unit_resource>
template plain_component source · line 28 · raw
@-S:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> Schema<S, 0x7e321819d0ff210531780719c7674cef/column.Column<S, P>, Unit, False{}, plain_component_fields(S, P), unit_resource>
template resource source · line 30 · raw
@-S:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> Schema<S, Unit, 0x7e321819d0ff210531780719c7674cef/snapshot_leaf.Resource<S, P, identity, project>, True{}, unit_component, 0x7e321819d0ff210531780719c7674cef/snapshot_leaf.resource_fields(S, P, identity, project)>
template transient_resource source · line 32 · raw
@-S:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> Schema<S, Unit, 0x7e321819d0ff210531780719c7674cef/snapshot_leaf.TransientResource<S, P, identity>, True{}, unit_component, 0x7e321819d0ff210531780719c7674cef/snapshot_leaf.transient_resource_fields(S, P, identity)>
template plain_resource_fields source · line 34 · raw
@-P:Type -> @value:P -> Pair(P, List<&2, 0x7e321819d0ff210531780719c7674cef/decode_data.Field>)
template plain_resource source · line 36 · raw
@-S:Data -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> Schema<S, Unit, P, False{}, unit_component, plain_resource_fields(P)>
template inventory source · line 38 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-eligible:Bool -> @-components:(@_:U32 -> @_:C -> Pair(C, List<&2, 0x7e321819d0ff210531780719c7674cef/decode_data.Field>)) -> @-resources:(@_:R -> Pair(R, List<&2, 0x7e321819d0ff210531780719c7674cef/decode_data.Field>)) -> @schema:Schema<S, C, R, eligible, components, resources> -> 0x7e321819d0ff210531780719c7674cef/ordinary_schema.Schema<S, C, R>