@4lch4/toggl-aid
Version:
A wrapper library for interacting with the Toggl API.
50 lines (49 loc) • 999 B
TypeScript
export interface Project {
name: string;
wid: number;
cid?: number;
active: boolean;
is_private: boolean;
template?: boolean;
template_id?: number;
billable?: boolean;
auto_estimates?: boolean;
estimated_hours?: number;
at: Date;
color: number;
rate?: number;
created_at: Date;
}
export interface Project_NEW {
name: string;
wid: number;
template_id?: number;
is_private?: boolean;
cid?: number;
}
export interface Project_NEW_RES {
data: {
id: number;
wid: number;
cid: number;
name: string;
billable: boolean;
is_private: boolean;
active: boolean;
at: string;
template_id: number;
color: string;
};
}
export interface Project_GET_RES {
id: number;
wid: number;
cid: number;
name: string;
billable: boolean;
is_private: boolean;
active: boolean;
at: string;
template: boolean;
color: string;
}