2023-03-27 20:22:13 +00:00
|
|
|
import type {
|
|
|
|
IIssueFilterOptions,
|
|
|
|
IUserLite,
|
|
|
|
IWorkspace,
|
2023-03-29 09:08:30 +00:00
|
|
|
IWorkspaceLite,
|
2023-08-08 07:31:43 +00:00
|
|
|
IUserMemberLite,
|
2023-03-27 20:22:13 +00:00
|
|
|
TIssueGroupByOptions,
|
|
|
|
TIssueOrderByOptions,
|
2023-03-29 20:31:53 +00:00
|
|
|
TIssueViewOptions,
|
2023-07-26 19:27:12 +00:00
|
|
|
TStateGroups,
|
2023-09-12 16:57:15 +00:00
|
|
|
IProjectViewProps,
|
2023-09-03 13:20:30 +00:00
|
|
|
} from ".";
|
2022-11-19 14:21:26 +00:00
|
|
|
|
|
|
|
export interface IProject {
|
2023-07-13 06:04:37 +00:00
|
|
|
archive_in: number;
|
|
|
|
close_in: number;
|
2022-11-19 14:21:26 +00:00
|
|
|
created_at: Date;
|
2023-02-08 04:43:07 +00:00
|
|
|
created_by: string;
|
2023-05-19 11:05:51 +00:00
|
|
|
cover_image: string | null;
|
2023-02-08 04:43:07 +00:00
|
|
|
cycle_view: boolean;
|
2023-06-16 13:27:17 +00:00
|
|
|
issue_views_view: boolean;
|
|
|
|
module_view: boolean;
|
|
|
|
page_view: boolean;
|
|
|
|
inbox_view: boolean;
|
2023-02-08 04:43:07 +00:00
|
|
|
default_assignee: IUser | string | null;
|
2023-07-13 06:04:37 +00:00
|
|
|
default_state: string | null;
|
2022-11-19 14:21:26 +00:00
|
|
|
description: string;
|
2023-05-19 11:05:51 +00:00
|
|
|
emoji: string | null;
|
|
|
|
emoji_and_icon:
|
|
|
|
| string
|
|
|
|
| {
|
|
|
|
name: string;
|
|
|
|
color: string;
|
|
|
|
}
|
|
|
|
| null;
|
2023-04-11 12:24:01 +00:00
|
|
|
estimate: string | null;
|
2023-05-19 11:05:51 +00:00
|
|
|
icon_prop: {
|
|
|
|
name: string;
|
|
|
|
color: string;
|
|
|
|
} | null;
|
2023-02-08 04:43:07 +00:00
|
|
|
id: string;
|
2022-11-19 14:21:26 +00:00
|
|
|
identifier: string;
|
2023-08-29 14:44:13 +00:00
|
|
|
is_deployed: boolean;
|
2023-03-06 06:07:18 +00:00
|
|
|
is_favorite: boolean;
|
2023-08-10 10:09:32 +00:00
|
|
|
is_member: boolean;
|
|
|
|
member_role: 5 | 10 | 15 | 20 | null;
|
2023-05-19 11:05:51 +00:00
|
|
|
issue_views_view: boolean;
|
|
|
|
module_view: boolean;
|
2023-02-08 04:43:07 +00:00
|
|
|
name: string;
|
|
|
|
network: number;
|
2023-05-19 11:05:51 +00:00
|
|
|
page_view: boolean;
|
2023-07-23 16:44:26 +00:00
|
|
|
project_lead: IUserLite | string | null;
|
2023-08-01 06:54:34 +00:00
|
|
|
sort_order: number | null;
|
2022-11-19 14:21:26 +00:00
|
|
|
slug: string;
|
2023-05-16 05:11:37 +00:00
|
|
|
total_cycles: number;
|
|
|
|
total_members: number;
|
|
|
|
total_modules: number;
|
2023-02-08 04:43:07 +00:00
|
|
|
updated_at: Date;
|
2022-11-19 14:21:26 +00:00
|
|
|
updated_by: string;
|
2023-02-08 04:43:07 +00:00
|
|
|
workspace: IWorkspace | string;
|
2023-03-29 09:08:30 +00:00
|
|
|
workspace_detail: IWorkspaceLite;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IProjectLite {
|
|
|
|
id: string;
|
|
|
|
name: string;
|
|
|
|
identifier: string;
|
2022-11-19 14:21:26 +00:00
|
|
|
}
|
2022-12-08 14:59:12 +00:00
|
|
|
|
2023-07-31 06:17:22 +00:00
|
|
|
type ProjectPreferences = {
|
|
|
|
pages: {
|
|
|
|
block_display: boolean;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-12-12 04:49:52 +00:00
|
|
|
export interface IProjectMember {
|
2023-05-15 06:05:19 +00:00
|
|
|
id: string;
|
2023-08-08 07:31:43 +00:00
|
|
|
member: IUserMemberLite;
|
2023-07-04 19:26:15 +00:00
|
|
|
project: IProjectLite;
|
|
|
|
workspace: IWorkspaceLite;
|
2022-12-12 04:49:52 +00:00
|
|
|
comment: string;
|
|
|
|
role: 5 | 10 | 15 | 20;
|
2022-12-20 12:27:17 +00:00
|
|
|
|
2023-07-31 06:17:22 +00:00
|
|
|
preferences: ProjectPreferences;
|
|
|
|
|
2023-09-12 16:57:15 +00:00
|
|
|
view_props: IProjectViewProps;
|
|
|
|
default_props: IProjectViewProps;
|
2022-12-12 04:49:52 +00:00
|
|
|
|
|
|
|
created_at: Date;
|
|
|
|
updated_at: Date;
|
|
|
|
created_by: string;
|
|
|
|
updated_by: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IProjectMemberInvitation {
|
|
|
|
id: string;
|
|
|
|
|
|
|
|
project: IProject;
|
|
|
|
workspace: IWorkspace;
|
|
|
|
|
|
|
|
email: string;
|
|
|
|
accepted: boolean;
|
|
|
|
token: string;
|
|
|
|
message: string;
|
|
|
|
responded_at: Date;
|
|
|
|
role: 5 | 10 | 15 | 20;
|
|
|
|
|
|
|
|
created_at: Date;
|
|
|
|
updated_at: Date;
|
|
|
|
created_by: string;
|
|
|
|
updated_by: string;
|
|
|
|
}
|
2023-02-23 12:42:07 +00:00
|
|
|
|
2023-07-07 08:40:36 +00:00
|
|
|
export interface IProjectBulkInviteFormData {
|
|
|
|
members: { role: 5 | 10 | 15 | 20; member_id: string }[];
|
|
|
|
}
|
|
|
|
|
2023-02-23 12:42:07 +00:00
|
|
|
export interface IGithubRepository {
|
|
|
|
id: string;
|
|
|
|
full_name: string;
|
|
|
|
html_url: string;
|
|
|
|
url: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface GithubRepositoriesResponse {
|
|
|
|
repositories: IGithubRepository[];
|
|
|
|
total_count: number;
|
|
|
|
}
|
2023-06-23 07:48:38 +00:00
|
|
|
|
|
|
|
export type TProjectIssuesSearchParams = {
|
|
|
|
search: string;
|
|
|
|
parent?: boolean;
|
2023-09-13 14:11:11 +00:00
|
|
|
issue_relation?: boolean;
|
2023-06-23 07:48:38 +00:00
|
|
|
cycle?: boolean;
|
|
|
|
module?: boolean;
|
|
|
|
sub_issue?: boolean;
|
|
|
|
issue_id?: string;
|
2023-07-22 09:23:48 +00:00
|
|
|
workspace_search: boolean;
|
2023-06-23 07:48:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export interface ISearchIssueResponse {
|
|
|
|
id: string;
|
|
|
|
name: string;
|
|
|
|
project_id: string;
|
|
|
|
project__identifier: string;
|
2023-07-22 09:23:48 +00:00
|
|
|
project__name: string;
|
2023-06-23 07:48:38 +00:00
|
|
|
sequence_id: number;
|
|
|
|
state__color: string;
|
2023-07-26 19:27:12 +00:00
|
|
|
state__group: TStateGroups;
|
2023-06-23 07:48:38 +00:00
|
|
|
state__name: string;
|
|
|
|
workspace__slug: string;
|
|
|
|
}
|