import { SprintStatus } from '../sprint/sprint-status'; export class SprintReadModel { id!: string; projectId!: string; name!: string; goal!: string | null; /** `YYYY-MM-DD`, both included. */ startDate!: string; endDate!: string; status!: SprintStatus; startedAt!: string | null; closedAt!: string | null; createdAt!: string; version!: number; } /** How far a sprint's tickets have got. */ export class SprintProgressReadModel { total!: number; /** Done or cancelled. */ finished!: number; percent!: number; storyPoints!: number; finishedStoryPoints!: number; } /** * Per day of the sprint: tickets in it (cancelled ones aside), how many are * still open and their points. Days still to come are null; `ideal` falls in * a straight line from what was open on the first day to zero on the last. */ export class SprintBurndownReadModel { sprintId!: string; dates!: string[]; scope!: (number | null)[]; remaining!: (number | null)[]; remainingPoints!: (number | null)[]; ideal!: number[]; }