UNPKG

lakutata

Version:

An IoC-based universal application framework.

33 lines (27 loc) 1.14 kB
import { OnDeleteType, TreeType, ClosureTreeOptions } from './TypeDef.internal.73.js'; /** * Creates a "level"/"length" column to the table that holds a closure table. */ declare function TreeLevelColumn(): PropertyDecorator; /** * Marks a entity property as a parent of the tree. * "Tree parent" indicates who owns (is a parent) of this entity in tree structure. */ declare function TreeParent(options?: { onDelete?: OnDeleteType; }): PropertyDecorator; /** * Marks a entity property as a children of the tree. * "Tree children" will contain all children (bind) of this entity. */ declare function TreeChildren(options?: { cascade?: boolean | ("insert" | "update" | "remove" | "soft-remove" | "recover")[]; }): PropertyDecorator; /** * Marks entity to work like a tree. * Tree pattern that will be used for the tree entity should be specified. * @TreeParent decorator must be used in tree entities. * TreeRepository can be used to manipulate with tree entities. */ declare function Tree(type: TreeType, options?: ClosureTreeOptions): ClassDecorator; export { Tree, TreeChildren, TreeLevelColumn, TreeParent };