2023-03-29 09:08:30 +00:00
|
|
|
import { IProject, IProjectLite, IWorkspaceLite } from "types";
|
|
|
|
|
2023-07-26 19:27:12 +00:00
|
|
|
export type TStateGroups = "backlog" | "unstarted" | "started" | "completed" | "cancelled";
|
2023-07-22 09:23:48 +00:00
|
|
|
|
2022-11-19 14:21:26 +00:00
|
|
|
export interface IState {
|
|
|
|
readonly id: string;
|
2023-02-10 12:32:18 +00:00
|
|
|
color: string;
|
2022-11-19 14:21:26 +00:00
|
|
|
readonly created_at: Date;
|
2023-02-10 12:32:18 +00:00
|
|
|
readonly created_by: string;
|
|
|
|
default: boolean;
|
2022-11-19 14:21:26 +00:00
|
|
|
description: string;
|
2023-07-26 19:27:12 +00:00
|
|
|
group: TStateGroups;
|
2023-02-10 12:32:18 +00:00
|
|
|
name: string;
|
|
|
|
project: string;
|
2023-03-29 09:08:30 +00:00
|
|
|
readonly project_detail: IProjectLite;
|
2023-02-10 12:32:18 +00:00
|
|
|
sequence: number;
|
2022-11-19 14:21:26 +00:00
|
|
|
readonly slug: string;
|
2023-02-10 12:32:18 +00:00
|
|
|
readonly updated_at: Date;
|
2022-11-19 14:21:26 +00:00
|
|
|
readonly updated_by: string;
|
|
|
|
workspace: string;
|
2023-03-29 09:08:30 +00:00
|
|
|
workspace_detail: IWorkspaceLite;
|
2022-11-19 14:21:26 +00:00
|
|
|
}
|
2023-02-08 13:21:03 +00:00
|
|
|
|
2023-07-22 09:23:48 +00:00
|
|
|
export interface IStateLite {
|
|
|
|
color: string;
|
2023-07-26 19:27:12 +00:00
|
|
|
group: TStateGroups;
|
2023-07-22 09:23:48 +00:00
|
|
|
id: string;
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
2023-04-22 12:49:35 +00:00
|
|
|
export interface IStateResponse {
|
2023-02-08 13:21:03 +00:00
|
|
|
[key: string]: IState[];
|
|
|
|
}
|