feat: Add APIs

This commit is contained in:
Muhsin
2026-01-29 19:04:17 +04:00
parent 9238b4cc92
commit 49acab85f5
13 changed files with 57 additions and 4 deletions
@@ -622,6 +622,7 @@
"AVG_FIRST_RESPONSE_TIME": "Avg. First Response Time",
"AVG_REPLY_TIME": "Avg. Customer Waiting Time",
"RESOLUTION_COUNT": "Resolution Count",
"CONVERSATIONS": "No. of conversations"
"CONVERSATIONS": "No. of conversations",
"OUTGOING_MESSAGES": "No. of outgoing messages"
}
}
@@ -70,6 +70,11 @@ const columns = computed(() => [
width: 200,
cell: defaulSpanRender,
}),
columnHelper.accessor('outgoingMessagesCount', {
header: t('SUMMARY_REPORTS.OUTGOING_MESSAGES'),
width: 200,
cell: defaulSpanRender,
}),
columnHelper.accessor('avgFirstResponseTime', {
header: t('SUMMARY_REPORTS.AVG_FIRST_RESPONSE_TIME'),
width: 200,
@@ -101,6 +106,7 @@ const tableData = computed(() =>
const rowMetrics = getMetrics(row.id);
const {
conversationsCount,
outgoingMessagesCount,
avgFirstResponseTime,
avgResolutionTime,
avgReplyTime,
@@ -112,6 +118,7 @@ const tableData = computed(() =>
name: row.name ?? row.title,
type: props.type,
conversationsCount: renderCount(conversationsCount),
outgoingMessagesCount: renderCount(outgoingMessagesCount),
avgFirstResponseTime: renderAvgTime(avgFirstResponseTime),
avgReplyTime: renderAvgTime(avgReplyTime),
avgResolutionTime: renderAvgTime(avgResolutionTime),