import { EnumLiteralsOf, IModuleLink, Nullable, SortDirection, UUID } from './SimpleTypes'; import { FormDataDoc, FormFieldsMetadataDoc } from './ModuleProperties'; import { EntityFormDataContextDTO } from './EntityFormData'; import { IEntity } from './Entity'; import { SearchFilter } from './Search'; export declare type KanbanItemType = EnumLiteralsOf; export declare const KanbanItemType: Readonly<{ readonly ENTITY: "ENTITY"; }>; export declare type BaseKanbanItem = { id: UUID; type: T; resolver_id: UUID; }; export declare type KanbanResolverType = EnumLiteralsOf; export declare const KanbanResolverType: Readonly<{ readonly MODULE_LINK: "MODULE_LINK"; readonly SEARCH: "SEARCH"; }>; export declare type BaseKanbanResolver = { id: UUID; type: T; }; /** * Used to represent a Timwoods Entity as a Kanban Item * * This should only ever be used dynamically. * e.g., loaded using a search filters item or a module link item. */ export declare type EntityKanbanItem = BaseKanbanItem & { module_name: string; entity: T & Partial; } & Partial>; /** * Used to resolve a particular EntityKanbanItem */ export declare type ModuleLinkKanbanResolver = BaseKanbanResolver & IModuleLink; /** * Used to resolve a collection of EntityKanbanItems */ export declare type SearchKanbanResolver = BaseKanbanResolver & { module_name: string; search_filters: SearchFilter[]; limit?: number; skip?: number; sort?: { field: string; direction: SortDirection; }; }; export declare type KanbanItem = EntityKanbanItem; export declare type KanbanResolver = ModuleLinkKanbanResolver | SearchKanbanResolver; export declare type KanbanBehavior = { /** * A key used to indentify a particular behavior */ behavior: string; }; export declare type ColumnKanbanBehavior

= Record> = KanbanBehavior & { id: UUID; props: P; }; export declare function isEntityKanbanItem(item?: Nullable): item is EntityKanbanItem; export declare function isModuleLinkKanbanResolver(resolver?: Nullable): resolver is ModuleLinkKanbanResolver; export declare function isSearchKanbanResolver(resolver?: Nullable): resolver is SearchKanbanResolver;