import { IdeaStates, IdeaTypes } from '../constants'; import { User } from '../models'; export type IdeaType = (typeof IdeaTypes)[number]; export type IdeaState = (typeof IdeaStates)[number]; export type Idea = { id: string; type: IdeaType; content: string; state: IdeaState; submitterId: string; _assignedTo?: string; createdAt: string; updatedAt: string; submitter?: User; assignedTo?: User; notes?: IdeaNote[]; }; export type IdeaNote = { id: string; content: string; authorId: string; author?: User; createdAt: string; updatedAt: string; };