feat: Download Agent wise report (#1517)
This commit is contained in:
@@ -17,6 +17,12 @@ class ReportsAPI extends ApiClient {
|
||||
params: { since, until },
|
||||
});
|
||||
}
|
||||
|
||||
getAgentReports(since, until) {
|
||||
return axios.get(`${this.url}/agents`, {
|
||||
params: { since, until },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default new ReportsAPI();
|
||||
|
||||
@@ -12,5 +12,6 @@ describe('#Reports API', () => {
|
||||
expect(reports).toHaveProperty('delete');
|
||||
expect(reports).toHaveProperty('getAccountReports');
|
||||
expect(reports).toHaveProperty('getAccountSummary');
|
||||
expect(reports).toHaveProperty('getAgentReports');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user