feat: Add live report for teams (#10849)

This commit is contained in:
Pranav
2025-03-12 16:03:09 -07:00
committed by GitHub
parent 29158e32fe
commit 7e54b13a8b
12 changed files with 453 additions and 265 deletions

View File

@@ -0,0 +1,20 @@
/* global axios */
import ApiClient from './ApiClient';
class LiveReportsAPI extends ApiClient {
constructor() {
super('live_reports', { accountScoped: true, apiVersion: 'v2' });
}
getConversationMetric(params = {}) {
return axios.get(`${this.url}/conversation_metrics`, { params });
}
getGroupedConversations({ groupBy } = { groupBy: 'assignee_id' }) {
return axios.get(`${this.url}/grouped_conversation_metrics`, {
params: { group_by: groupBy },
});
}
}
export default new LiveReportsAPI();