plane/web/types/state.d.ts

34 lines
757 B
TypeScript
Raw Normal View History

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