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>>;
 | 
			
		||||
  /** Remove a 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 */
 | 
			
		||||
  createProject(
 | 
			
		||||
    project: NewProject,
 | 
			
		||||
| 
						 | 
				
			
			@ -30,15 +34,16 @@ interface API {
 | 
			
		|||
    project: NewWeeklyReport,
 | 
			
		||||
    token: string,
 | 
			
		||||
  ): Promise<APIResponse<Project>>;
 | 
			
		||||
  /** Renew the token */
 | 
			
		||||
  renewToken(token: string): Promise<APIResponse<string>>;
 | 
			
		||||
  /**Gets a weekly report*/
 | 
			
		||||
  getWeeklyReport(
 | 
			
		||||
    projectName: string,
 | 
			
		||||
    token: string,
 | 
			
		||||
  ): Promise<APIResponse<Project>>;
 | 
			
		||||
  /** Gets all the projects of a user*/
 | 
			
		||||
  getUserProjects(
 | 
			
		||||
    username: string,
 | 
			
		||||
    token: string,
 | 
			
		||||
  ): Promise<APIResponse<Project[]>>;
 | 
			
		||||
  /** Login */
 | 
			
		||||
  login(NewUser: NewUser): Promise<APIResponse<string>>;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Export an instance of the API
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue