import { ISODATE, IModuleLink, UUID } from '../../../core/SimpleTypes'; import { IModulePropertyParticipants } from '../../../core'; export interface IChatMessageBase extends IModulePropertyParticipants { message: string; timestamp: ISODATE; author: IModuleLink; } export interface IChatMessageDTO extends IChatMessageBase { id: UUID; channel: UUID; organization: IModuleLink; } export declare enum EChannelParticipantRoles { TAGGED = "TAGGED", SUBSCRIBED = "SUBSCRIBED" } export declare type TChannelParticipantRoles = 'TAGGED' | 'SUBSCRIBED' | EChannelParticipantRoles; export declare enum EChannelClasses { SIMPLE = "SIMPLE", MODULE = "MODULE" } export declare type TChannelClasses = 'SIMPLE' | 'MODULE' | EChannelClasses; export interface ISendChatMessageDTO extends Partial, Pick { } export interface IChatChannelBase extends IModulePropertyParticipants { modules: IModuleLink[]; classes: TChannelClasses[]; } export interface IChatChannelDTO extends IChatChannelBase { id: UUID; name: string; organization: IModuleLink; } export interface ICreateChatChannelDTO extends Partial, Pick { } export interface ISubscribeChatChannelDTO extends Pick { user?: IModuleLink; }