plane/web/types/pages.d.ts
Aaryan Khandelwal 442c83eea2
style: spreadsheet columns (#2554)
* style: spreadsheet columns

* fix: build errors
2023-10-31 12:18:04 +05:30

54 lines
1.2 KiB
TypeScript

// types
import { IIssue, IIssueLabels, IWorkspaceLite, IProjectLite } from "types";
export interface IPage {
access: number;
blocks: IPageBlock[];
color: string;
created_at: Date;
created_by: string;
description: string;
description_html: string;
description_stripped: string | null;
id: string;
is_favorite: boolean;
label_details: IIssueLabels[];
labels: string[];
name: string;
owned_by: string;
project: string;
project_detail: IProjectLite;
updated_at: Date;
updated_by: string;
workspace: string;
workspace_detail: IWorkspaceLite;
}
export interface RecentPagesResponse {
[key: string]: IPage[];
}
export interface IPageBlock {
completed_at: Date | null;
created_at: Date;
created_by: string;
description: any;
description_html: any;
description_stripped: any;
id: string;
issue: string | null;
issue_detail: IIssue | null;
name: string;
page: string;
project: string;
project_detail: IProjectLite;
sort_order: number;
sync: boolean;
updated_at: Date;
updated_by: string;
workspace: string;
workspace_detail: IWorkspaceLite;
}
export type TPageViewProps = "list" | "detailed" | "masonry";