taskcafe/web/src/citadel.d.ts

64 lines
963 B
TypeScript
Raw Normal View History

2020-04-10 04:40:22 +02:00
type ContextMenuEvent = {
left: number;
top: number;
taskID: string;
taskGroupID: string;
2020-04-10 04:40:22 +02:00
};
type Task = {
2020-04-10 04:40:22 +02:00
taskID: string;
taskGroupID: string;
name: string;
position: number;
labels: Label[];
};
2020-04-10 04:40:22 +02:00
type TaskGroup = {
taskGroupID: string;
name: string;
position: number;
tasks: RemoteTask[];
};
2020-04-10 04:40:22 +02:00
type Project = {
projectID: string;
name: string;
color?: string;
teamTitle?: string;
taskGroups: TaskGroup[];
};
type Organization = {
2020-04-10 04:40:22 +02:00
name: string;
teams: Team[];
};
2020-04-10 04:40:22 +02:00
type Team = {
2020-04-10 04:40:22 +02:00
name: string;
projects: Project[];
};
2020-04-10 04:40:22 +02:00
type Label = {
labelId: string;
name: string;
color: string;
active: boolean;
};
type RefreshTokenResponse = {
accessToken: string;
};
type LoginFormData = {
username: string;
password: string;
};
type LoginProps = {
onSubmit: (
data: LoginFormData,
setComplete: (val: boolean) => void,
setError: (field: string, eType: string, message: string) => void,
) => void;
};