import { IUser } from './users'; import { IComponent } from './components'; import { IGeneralStatus } from './status'; export interface IActivity { id: string; workflowId: string; name: string; alias?: string; icon?: string; description?: string; groupName?: string; isHome: boolean; isJourney: boolean; templateId: string | null; tags: string[]; components?: IComponent[]; status: IGeneralStatus; order: number; createdAt: Date; updatedAt: Date; publishedAt?: Date; position: { activityId: string; x: number; y: number; }[]; } export interface IActivityEvent { type: string; user?: IUser; datetime: Date; body: IActivity | IComponent; } export interface IActivityRelease { id: string; description: string; user: IUser; date: Date; }