2023-09-12 16:57:15 +00:00
|
|
|
export type TIssueViewOptions = "list" | "kanban" | "calendar" | "spreadsheet" | "gantt_chart";
|
|
|
|
|
|
|
|
export type TIssueGroupByOptions =
|
|
|
|
| "state"
|
|
|
|
| "priority"
|
|
|
|
| "labels"
|
|
|
|
| "created_by"
|
|
|
|
| "state_detail.group"
|
|
|
|
| "project"
|
|
|
|
| "assignees"
|
|
|
|
| null;
|
|
|
|
|
|
|
|
export type TIssueOrderByOptions =
|
|
|
|
| "-created_at"
|
|
|
|
| "-updated_at"
|
|
|
|
| "priority"
|
|
|
|
| "sort_order"
|
|
|
|
| "state__name"
|
|
|
|
| "-state__name"
|
|
|
|
| "assignees__name"
|
|
|
|
| "-assignees__name"
|
|
|
|
| "labels__name"
|
|
|
|
| "-labels__name"
|
|
|
|
| "target_date"
|
|
|
|
| "-target_date"
|
|
|
|
| "estimate__point"
|
|
|
|
| "-estimate__point"
|
|
|
|
| "start_date"
|
|
|
|
| "-start_date";
|
|
|
|
|
|
|
|
export interface IIssueFilterOptions {
|
|
|
|
assignees?: string[] | null;
|
|
|
|
created_by?: string[] | null;
|
|
|
|
labels?: string[] | null;
|
|
|
|
priority?: string[] | null;
|
|
|
|
start_date?: string[] | null;
|
|
|
|
state?: string[] | null;
|
2023-09-25 06:17:06 +00:00
|
|
|
state_group?: string[] | null;
|
2023-09-12 16:57:15 +00:00
|
|
|
subscriber?: string[] | null;
|
|
|
|
target_date?: string[] | null;
|
2023-09-25 06:17:06 +00:00
|
|
|
estimate_point?: string[] | null;
|
2023-09-25 13:58:55 +00:00
|
|
|
project?: string[] | null;
|
2023-09-12 16:57:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IIssueDisplayFilterOptions {
|
|
|
|
calendar_date_range?: string;
|
|
|
|
group_by?: TIssueGroupByOptions;
|
|
|
|
layout?: TIssueViewOptions;
|
|
|
|
order_by?: TIssueOrderByOptions;
|
|
|
|
show_empty_groups?: boolean;
|
|
|
|
start_target_date?: boolean;
|
|
|
|
sub_issue?: boolean;
|
|
|
|
type?: "active" | "backlog" | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IProjectViewProps {
|
|
|
|
display_filters: IIssueDisplayFilterOptions | undefined;
|
|
|
|
filters: IIssueFilterOptions;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IWorkspaceViewProps {
|
2023-09-12 17:21:13 +00:00
|
|
|
display_filters: IIssueDisplayFilterOptions | undefined;
|
|
|
|
display_properties: Properties | undefined;
|
2023-09-12 16:57:15 +00:00
|
|
|
filters: IIssueFilterOptions;
|
|
|
|
}
|