fix: align daily operations statistics

This commit is contained in:
hectorzhao
2026-07-24 22:08:06 +08:00
parent c78ed1cc32
commit 53736c96e8
9 changed files with 433 additions and 77 deletions
+28 -1
View File
@@ -354,6 +354,9 @@ export type ChannelQualityStat = {
channelId: string;
channelName: string;
total: number;
acceptedCount: number;
submitFailureCount: number;
submitFailureRate: number;
successCount: number;
unknownCount: number;
failureCount: number;
@@ -378,10 +381,27 @@ export type SignatureQualityStat = {
averageArrivalMs?: number | null;
};
export type DailySendSummary = {
total: number;
successCount: number;
unknownCount: number;
failureCount: number;
successRate: number;
};
export type ApplicationQualityStat = DailySendSummary & {
applicationId: string;
applicationName: string;
tenantId: string;
tenantName: string;
};
export type SendQualityResponse = {
date: string;
summary: DailySendSummary;
channels: ChannelQualityStat[];
signatures: SignatureQualityStat[];
applications: ApplicationQualityStat[];
};
export type RechargeOrder = {
@@ -581,7 +601,7 @@ export type ImportPreviewResponse = {
export type SmsMessageRecord = {
id: string;
tenantId: string;
tenantId?: string | null;
batchTaskId?: string | null;
applicationId?: string | null;
channelId?: string | null;
@@ -607,6 +627,13 @@ export type SmsMessageRecord = {
application?: { id: string; name: string };
submitRecords?: SmsSubmitRecord[];
receiptRecords?: SmsReceiptRecord[];
downstreamDeliveries?: Array<{
id: string;
deliveryType: string;
status: string;
deliveredAt?: string | null;
lastError?: string | null;
}>;
};
export type SmsSubmitRecord = {