Show SMS sent breakdown by type in admin and business settings.

Data rows for total/mass/singular/auth/auto/admin; balance stays a credit data row.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-09-09 11:31:18 +03:30
co-authored by Cursor
parent 6bc57f26ed
commit dbc17b2589
8 changed files with 194 additions and 16 deletions
@@ -71,6 +71,13 @@ export async function getSmsCredit(signal?: AbortSignal) {
credit: number | null
/** Lifetime SMS messages billed (one per recipient). */
sentCount: number
sentByType: {
mass: number
singular: number
auth: number
autoCustomer: number
admin: number
}
unit: 'credits'
currency: string | null
message: string | null