@4lch4/toggl-aid
Version:
A wrapper library for interacting with the Toggl API.
87 lines (86 loc) • 1.77 kB
TypeScript
export interface TimeEntry {
description?: string;
wid?: number;
pid?: number;
tid?: number;
billable?: boolean;
start: Date;
stop?: Date;
duration: number;
created_with: string;
tags?: string[];
duronly?: boolean;
at: Date;
}
export interface TimeEntry_NEW {
description: string;
tags?: string[];
duration: number;
start: string;
pid: number;
created_with: string;
}
export interface TimeEntry_NEW_RES {
data: {
id: number;
pid: number;
wid: number;
billable: boolean;
start: string;
duration: number;
description: string;
tags: string[];
};
}
export interface TimeEntry_START {
description: string;
tags?: string[];
pid: number;
created_with: string;
}
export interface TimeEntry_START_RES {
data: {
id: number;
pid: number;
wid: number;
billable: boolean;
start: string;
duration: number;
description: string;
tags: string[];
};
}
export interface TimeEntry_GET_RES {
data: {
id: number;
wid: number;
pid: number;
billable: boolean;
start: string;
duration: number;
description: string;
at: string;
};
}
export interface TimeEntry_STOP_RES {
data: {
id: number;
pid: number;
wid: number;
billable: boolean;
start: string;
duration: number;
description: string;
tags: string[];
};
}
export interface TimeEntry_UPDATE {
description: string;
tags?: string[];
duration: number;
start: string;
stop: string;
duronly: boolean;
pid: number;
billable?: boolean;
}