2023-09-28 15:04:57 +00:00
|
|
|
import { Properties } from "./workspace";
|
|
|
|
|
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"
|
2023-09-28 15:04:57 +00:00
|
|
|
| "created_at"
|
|
|
|
| "updated_at"
|
2023-09-12 16:57:15 +00:00
|
|
|
| "-updated_at"
|
|
|
|
| "priority"
|
2023-09-28 15:04:57 +00:00
|
|
|
| "-priority"
|
2023-09-12 16:57:15 +00:00
|
|
|
| "sort_order"
|
|
|
|
| "state__name"
|
|
|
|
| "-state__name"
|
2023-09-28 15:04:57 +00:00
|
|
|
| "assignees__first_name"
|
|
|
|
| "-assignees__first_name"
|
2023-09-12 16:57:15 +00:00
|
|
|
| "labels__name"
|
|
|
|
| "-labels__name"
|
|
|
|
| "target_date"
|
|
|
|
| "-target_date"
|
2023-09-28 15:04:57 +00:00
|
|
|
| "estimate_point"
|
|
|
|
| "-estimate_point"
|
2023-09-12 16:57:15 +00:00
|
|
|
| "start_date"
|
|
|
|
| "-start_date";
|
|
|
|
|
|
|
|
export interface IIssueFilterOptions {
|
|
|
|
assignees?: string[] | null;
|
|
|
|
created_by?: string[] | null;
|
|
|
|
labels?: string[] | null;
|
|
|
|
priority?: string[] | null;
|
2023-09-28 15:04:57 +00:00
|
|
|
start_date?: TStateGroups[] | null;
|
2023-09-12 16:57:15 +00:00
|
|
|
state?: string[] | null;
|
2023-09-28 15:04:57 +00:00
|
|
|
state_group?: TStateGroups[] | null;
|
2023-09-12 16:57:15 +00:00
|
|
|
subscriber?: string[] | null;
|
|
|
|
target_date?: string[] | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IIssueDisplayFilterOptions {
|
|
|
|
group_by?: TIssueGroupByOptions;
|
|
|
|
layout?: TIssueViewOptions;
|
|
|
|
order_by?: TIssueOrderByOptions;
|
|
|
|
show_empty_groups?: boolean;
|
|
|
|
start_target_date?: boolean;
|
|
|
|
sub_issue?: boolean;
|
|
|
|
type?: "active" | "backlog" | null;
|
|
|
|
}
|
|
|
|
|
2023-09-28 15:04:57 +00:00
|
|
|
export interface IWorkspaceIssueFilterOptions {
|
|
|
|
assignees?: string[] | null;
|
|
|
|
created_by?: string[] | null;
|
|
|
|
labels?: string[] | null;
|
|
|
|
priority?: string[] | null;
|
|
|
|
state_group?: string[] | null;
|
|
|
|
subscriber?: string[] | null;
|
|
|
|
start_date?: string[] | null;
|
|
|
|
target_date?: string[] | null;
|
|
|
|
project?: string[] | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IWorkspaceGlobalViewDisplayFilterOptions {
|
|
|
|
order_by?: string | undefined;
|
|
|
|
type?: "active" | "backlog" | null;
|
|
|
|
sub_issue?: boolean;
|
|
|
|
layout?: TIssueViewOptions;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IWorkspaceViewIssuesParams {
|
|
|
|
assignees?: string | undefined;
|
|
|
|
created_by?: string | undefined;
|
|
|
|
labels?: string | undefined;
|
|
|
|
priority?: string | undefined;
|
|
|
|
start_date?: string | undefined;
|
|
|
|
state?: string | undefined;
|
|
|
|
state_group?: string | undefined;
|
|
|
|
subscriber?: string | undefined;
|
|
|
|
target_date?: string | undefined;
|
|
|
|
project?: string | undefined;
|
|
|
|
order_by?: string | undefined;
|
|
|
|
type?: "active" | "backlog" | undefined;
|
|
|
|
sub_issue?: boolean;
|
|
|
|
}
|
|
|
|
|
2023-09-12 16:57:15 +00:00
|
|
|
export interface IProjectViewProps {
|
|
|
|
display_filters: IIssueDisplayFilterOptions | undefined;
|
|
|
|
filters: IIssueFilterOptions;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IWorkspaceViewProps {
|
2023-09-28 15:04:57 +00:00
|
|
|
filters: IIssueFilterOptions;
|
2023-09-12 17:21:13 +00:00
|
|
|
display_filters: IIssueDisplayFilterOptions | undefined;
|
2023-09-28 15:04:57 +00:00
|
|
|
display_properties: Properties;
|
|
|
|
}
|
|
|
|
export interface IWorkspaceGlobalViewProps {
|
|
|
|
filters: IWorkspaceIssueFilterOptions;
|
|
|
|
display_filters: IWorkspaceIssueDisplayFilterOptions | undefined;
|
2023-09-12 17:21:13 +00:00
|
|
|
display_properties: Properties | undefined;
|
2023-09-12 16:57:15 +00:00
|
|
|
}
|