fix: align daily operations statistics
This commit is contained in:
+28
-1
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user