2023-03-25 18:09:46 +00:00
|
|
|
// types
|
2023-11-18 20:16:11 +00:00
|
|
|
import { IIssue, IIssueLabel, IWorkspaceLite, IProjectLite } from "types";
|
2023-03-23 05:31:06 +00:00
|
|
|
|
|
|
|
export interface IPage {
|
2023-03-25 18:09:46 +00:00
|
|
|
access: number;
|
|
|
|
blocks: IPageBlock[];
|
|
|
|
color: string;
|
2023-03-23 05:31:06 +00:00
|
|
|
created_at: Date;
|
2023-03-25 18:09:46 +00:00
|
|
|
created_by: string;
|
2023-03-23 05:31:06 +00:00
|
|
|
description: string;
|
|
|
|
description_html: string;
|
|
|
|
description_stripped: string | null;
|
2023-03-25 18:09:46 +00:00
|
|
|
id: string;
|
|
|
|
is_favorite: boolean;
|
2023-11-18 20:16:11 +00:00
|
|
|
label_details: IIssueLabel[];
|
2023-03-25 18:09:46 +00:00
|
|
|
labels: string[];
|
|
|
|
name: string;
|
|
|
|
owned_by: string;
|
2023-03-23 05:31:06 +00:00
|
|
|
project: string;
|
2023-03-30 13:57:46 +00:00
|
|
|
project_detail: IProjectLite;
|
2023-03-25 18:09:46 +00:00
|
|
|
updated_at: Date;
|
|
|
|
updated_by: string;
|
2023-03-23 05:31:06 +00:00
|
|
|
workspace: string;
|
2023-03-30 13:57:46 +00:00
|
|
|
workspace_detail: IWorkspaceLite;
|
2023-03-23 05:31:06 +00:00
|
|
|
}
|
|
|
|
|
2023-03-25 18:09:46 +00:00
|
|
|
export interface RecentPagesResponse {
|
|
|
|
[key: string]: IPage[];
|
2023-03-23 05:31:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPageBlock {
|
|
|
|
completed_at: Date | null;
|
2023-03-25 18:09:46 +00:00
|
|
|
created_at: Date;
|
2023-03-23 05:31:06 +00:00
|
|
|
created_by: string;
|
2023-03-25 18:09:46 +00:00
|
|
|
description: any;
|
|
|
|
description_html: any;
|
2023-03-26 06:06:10 +00:00
|
|
|
description_stripped: any;
|
2023-03-25 18:09:46 +00:00
|
|
|
id: string;
|
2023-03-23 05:31:06 +00:00
|
|
|
issue: string | null;
|
2023-03-27 19:06:20 +00:00
|
|
|
issue_detail: IIssue | null;
|
2023-03-23 05:31:06 +00:00
|
|
|
name: string;
|
2023-03-25 18:09:46 +00:00
|
|
|
page: string;
|
|
|
|
project: string;
|
2023-03-30 13:57:46 +00:00
|
|
|
project_detail: IProjectLite;
|
2023-03-25 18:09:46 +00:00
|
|
|
sort_order: number;
|
2023-03-27 19:06:20 +00:00
|
|
|
sync: boolean;
|
2023-03-23 05:31:06 +00:00
|
|
|
updated_at: Date;
|
|
|
|
updated_by: string;
|
|
|
|
workspace: string;
|
2023-03-30 13:57:46 +00:00
|
|
|
workspace_detail: IWorkspaceLite;
|
2023-03-23 05:31:06 +00:00
|
|
|
}
|
2023-03-25 18:09:46 +00:00
|
|
|
|
|
|
|
export type TPageViewProps = "list" | "detailed" | "masonry";
|