forked from github/plane
1e152c666c
* chore: moved app & space from apps to root * chore: modified workspace configuration * chore: modified dockerfiles for space and web * chore: modified icons for space * feat: updated files for new svg icons supported by next-images * chore: added /spaces base path for next * chore: added compose config for space * chore: updated husky configuration * chore: updated workflows for new configuration * chore: changed app name to web * fix: resolved build errors with web * chore: reset file tracing root for both projects * chore: added nginx config for deploy * fix: eslint and tsconfig settings for space app * husky setup fixes based on new dir * eslint fixes * prettier formatting --------- Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
160 lines
3.1 KiB
TypeScript
160 lines
3.1 KiB
TypeScript
import type {
|
|
IIssueFilterOptions,
|
|
IUserLite,
|
|
IWorkspace,
|
|
IWorkspaceLite,
|
|
IUserMemberLite,
|
|
TIssueGroupByOptions,
|
|
TIssueOrderByOptions,
|
|
TIssueViewOptions,
|
|
TStateGroups,
|
|
} from ".";
|
|
|
|
export interface IProject {
|
|
archive_in: number;
|
|
close_in: number;
|
|
created_at: Date;
|
|
created_by: string;
|
|
cover_image: string | null;
|
|
cycle_view: boolean;
|
|
issue_views_view: boolean;
|
|
module_view: boolean;
|
|
page_view: boolean;
|
|
inbox_view: boolean;
|
|
default_assignee: IUser | string | null;
|
|
default_state: string | null;
|
|
description: string;
|
|
emoji: string | null;
|
|
emoji_and_icon:
|
|
| string
|
|
| {
|
|
name: string;
|
|
color: string;
|
|
}
|
|
| null;
|
|
estimate: string | null;
|
|
icon_prop: {
|
|
name: string;
|
|
color: string;
|
|
} | null;
|
|
id: string;
|
|
identifier: string;
|
|
is_deployed: boolean;
|
|
is_favorite: boolean;
|
|
is_member: boolean;
|
|
member_role: 5 | 10 | 15 | 20 | null;
|
|
issue_views_view: boolean;
|
|
module_view: boolean;
|
|
name: string;
|
|
network: number;
|
|
page_view: boolean;
|
|
project_lead: IUserLite | string | null;
|
|
sort_order: number | null;
|
|
slug: string;
|
|
total_cycles: number;
|
|
total_members: number;
|
|
total_modules: number;
|
|
updated_at: Date;
|
|
updated_by: string;
|
|
workspace: IWorkspace | string;
|
|
workspace_detail: IWorkspaceLite;
|
|
}
|
|
|
|
export interface IProjectLite {
|
|
id: string;
|
|
name: string;
|
|
identifier: string;
|
|
}
|
|
|
|
type ProjectViewTheme = {
|
|
issueView: TIssueViewOptions;
|
|
groupByProperty: TIssueGroupByOptions;
|
|
orderBy: TIssueOrderByOptions;
|
|
calendarDateRange: string;
|
|
filters: IIssueFilterOptions;
|
|
};
|
|
|
|
type ProjectPreferences = {
|
|
pages: {
|
|
block_display: boolean;
|
|
};
|
|
};
|
|
|
|
export interface IProjectMember {
|
|
id: string;
|
|
member: IUserMemberLite;
|
|
project: IProjectLite;
|
|
workspace: IWorkspaceLite;
|
|
comment: string;
|
|
role: 5 | 10 | 15 | 20;
|
|
|
|
preferences: ProjectPreferences;
|
|
|
|
view_props: ProjectViewTheme;
|
|
default_props: ProjectViewTheme;
|
|
|
|
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;
|
|
}
|
|
|
|
export interface IProjectBulkInviteFormData {
|
|
members: { role: 5 | 10 | 15 | 20; member_id: string }[];
|
|
}
|
|
|
|
export interface IGithubRepository {
|
|
id: string;
|
|
full_name: string;
|
|
html_url: string;
|
|
url: string;
|
|
}
|
|
|
|
export interface GithubRepositoriesResponse {
|
|
repositories: IGithubRepository[];
|
|
total_count: number;
|
|
}
|
|
|
|
export type TProjectIssuesSearchParams = {
|
|
search: string;
|
|
parent?: boolean;
|
|
blocker_blocked_by?: boolean;
|
|
cycle?: boolean;
|
|
module?: boolean;
|
|
sub_issue?: boolean;
|
|
issue_id?: string;
|
|
workspace_search: boolean;
|
|
};
|
|
|
|
export interface ISearchIssueResponse {
|
|
id: string;
|
|
name: string;
|
|
project_id: string;
|
|
project__identifier: string;
|
|
project__name: string;
|
|
sequence_id: number;
|
|
state__color: string;
|
|
state__group: TStateGroups;
|
|
state__name: string;
|
|
workspace__slug: string;
|
|
}
|