fix: rename projects typescript declaration file to types
import conflict with Projects module in Routes fixes #27
This commit is contained in:
97
frontend/src/types.d.ts
vendored
Normal file
97
frontend/src/types.d.ts
vendored
Normal file
@ -0,0 +1,97 @@
|
||||
type ProfileIcon = {
|
||||
url?: string | null;
|
||||
initials?: string | null;
|
||||
bgColor?: string | null;
|
||||
};
|
||||
|
||||
type TaskGroup = {
|
||||
id: string;
|
||||
name: string;
|
||||
position: number;
|
||||
tasks: Task[];
|
||||
};
|
||||
|
||||
type LabelColor = {
|
||||
id: string;
|
||||
name: string;
|
||||
colorHex: string;
|
||||
position: number;
|
||||
};
|
||||
|
||||
type InnerTaskGroup = {
|
||||
id: string;
|
||||
name?: string;
|
||||
position?: number;
|
||||
};
|
||||
|
||||
type TaskLabel = {
|
||||
id: string;
|
||||
assignedDate: string;
|
||||
projectLabel: ProjectLabel;
|
||||
};
|
||||
|
||||
type TaskChecklist = {
|
||||
id: string;
|
||||
position: number;
|
||||
name: string;
|
||||
items: Array<TaskChecklistItem>;
|
||||
};
|
||||
|
||||
type TaskChecklistItem = {
|
||||
id: string;
|
||||
complete: boolean;
|
||||
position: number;
|
||||
name: string;
|
||||
taskChecklistID: string;
|
||||
assigned?: null | TaskUser;
|
||||
dueDate?: null | string;
|
||||
};
|
||||
|
||||
type ChecklistBadge = {
|
||||
complete: number;
|
||||
total: number;
|
||||
};
|
||||
|
||||
type TaskBadges = {
|
||||
checklist?: ChecklistBadge | null;
|
||||
};
|
||||
|
||||
type Task = {
|
||||
id: string;
|
||||
taskGroup: InnerTaskGroup;
|
||||
name: string;
|
||||
badges?: TaskBadges;
|
||||
position: number;
|
||||
dueDate?: string;
|
||||
complete?: boolean;
|
||||
labels: TaskLabel[];
|
||||
description?: string | null;
|
||||
assigned?: Array<TaskUser>;
|
||||
checklists?: Array<TaskChecklist> | null;
|
||||
};
|
||||
|
||||
type Project = {
|
||||
projectID: string;
|
||||
name: string;
|
||||
color?: string;
|
||||
teamTitle?: string;
|
||||
taskGroups: TaskGroup[];
|
||||
};
|
||||
|
||||
type Organization = {
|
||||
name: string;
|
||||
teams: Team[];
|
||||
};
|
||||
|
||||
type Team = {
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: string;
|
||||
};
|
||||
|
||||
type ProjectLabel = {
|
||||
id: string;
|
||||
createdDate: string;
|
||||
name?: string | null;
|
||||
labelColor: LabelColor;
|
||||
};
|
Reference in New Issue
Block a user