19 lines
445 B
TypeScript
19 lines
445 B
TypeScript
export type DeliveryStatus = 'RETRY' | 'SUCCESS' | 'FAILED';
|
|
|
|
export interface Delivery {
|
|
delivery_id: string;
|
|
message_id: string;
|
|
receiver_user_id: string;
|
|
receiver_client_id: string;
|
|
timestamp_created: string;
|
|
timestamp_finalized: string | null;
|
|
status: DeliveryStatus;
|
|
retry_count: number;
|
|
next_delivery: string | null;
|
|
fcm_message_id: string | null;
|
|
}
|
|
|
|
export interface DeliveryListResponse {
|
|
deliveries: Delivery[];
|
|
}
|