import { DomainModule } from '../DomainInfo'; import { IEntity, IEntityWithLink, InsertData } from '../Entity'; import { ILinkedModuleNameDoc, IModuleAssociation, IModuleAssociationsDoc, IRelatedModuleDoc, ModuleProperty } from '../ModuleProperties'; import { SearchFilter } from '../Search'; import { IModuleLink, UUID, XOR } from '../SimpleTypes'; export declare const GroupModuleProperties: ModuleProperty[]; export declare type GroupIdQuery = { group_id: UUID; }; export declare type RelatedQuery = { related_module: IModuleLink; title: string; }; export declare type GroupIdOrRelatedQuery = XOR; /** @document */ export interface IGroup extends IEntity, ILinkedModuleNameDoc, IModuleAssociationsDoc, IRelatedModuleDoc { } /** * Add entities to a Group using either the Group's ID or by finding a Group related to a specific Entity and title */ export declare type IAddGroupEntitiesDTO = GroupIdOrRelatedQuery & { entities: IModuleLink[]; }; /** * Create an entity and add it to a group */ export declare type ICreateAndAddGroupEntityDTO = GroupIdOrRelatedQuery & { module_name: DomainModule; entity: InsertData; }; /** * Remove entities from a Group using either the Group's ID or by finding a Group related to a specific Entity and title */ export declare type IRemoveGroupEntitiesDTO = GroupIdOrRelatedQuery & { entities: IModuleLink[]; }; export declare type IGroupEntitiesAddedDTO = { group_id: UUID; entities: IModuleAssociation[]; }; export declare type IGroupEntitiesRemovedDTO = { group_id: UUID; entities: IModuleAssociation[]; }; export declare type IGroupEntityCreatedAndAddedDTO = { group_id: UUID; entity: IModuleAssociation; }; export declare type IGetGroupEntitiesDTO = GroupIdOrRelatedQuery; export declare type IGroupEntitiesDTO = { group_id: UUID; group_title: string; entities: IEntityWithLink[]; }; export declare type IGetAllRelatedGroupEntitiesDTO = { related_module: IModuleLink; flat?: boolean; search_filters?: SearchFilter[]; }; export declare type IAllRelatedGroupEntitiesDTO = IGroupEntitiesDTO[] | IEntityWithLink[];