getWeeklyReport
This commit is contained in:
parent
447f2b73eb
commit
7339a69bce
1 changed files with 9 additions and 4 deletions
|
@ -20,6 +20,10 @@ interface API {
|
||||||
registerUser(user: NewUser): Promise<APIResponse<User>>;
|
registerUser(user: NewUser): Promise<APIResponse<User>>;
|
||||||
/** Remove a user */
|
/** Remove a user */
|
||||||
removeUser(username: string, token: string): Promise<APIResponse<User>>;
|
removeUser(username: string, token: string): Promise<APIResponse<User>>;
|
||||||
|
/** Login */
|
||||||
|
login(NewUser: NewUser): Promise<APIResponse<string>>;
|
||||||
|
/** Renew the token */
|
||||||
|
renewToken(token: string): Promise<APIResponse<string>>;
|
||||||
/** Create a project */
|
/** Create a project */
|
||||||
createProject(
|
createProject(
|
||||||
project: NewProject,
|
project: NewProject,
|
||||||
|
@ -30,15 +34,16 @@ interface API {
|
||||||
project: NewWeeklyReport,
|
project: NewWeeklyReport,
|
||||||
token: string,
|
token: string,
|
||||||
): Promise<APIResponse<Project>>;
|
): Promise<APIResponse<Project>>;
|
||||||
/** Renew the token */
|
/**Gets a weekly report*/
|
||||||
renewToken(token: string): Promise<APIResponse<string>>;
|
getWeeklyReport(
|
||||||
|
projectName: string,
|
||||||
|
token: string,
|
||||||
|
): Promise<APIResponse<Project>>;
|
||||||
/** Gets all the projects of a user*/
|
/** Gets all the projects of a user*/
|
||||||
getUserProjects(
|
getUserProjects(
|
||||||
username: string,
|
username: string,
|
||||||
token: string,
|
token: string,
|
||||||
): Promise<APIResponse<Project[]>>;
|
): Promise<APIResponse<Project[]>>;
|
||||||
/** Login */
|
|
||||||
login(NewUser: NewUser): Promise<APIResponse<string>>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Export an instance of the API
|
// Export an instance of the API
|
||||||
|
|
Loading…
Add table
Reference in a new issue