From 3f050396b8d784d1f5d32a949cfab2caaef4ddac Mon Sep 17 00:00:00 2001 From: Fringg Date: Mon, 2 Mar 2026 02:42:14 +0300 Subject: [PATCH] fix: align RecentPaymentItem types with backend schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - telegram_id: number → number | null (email-only users) - Add email field - Fix username, payment_method, description nullability --- src/api/admin.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/api/admin.ts b/src/api/admin.ts index bd56d07..5439352 100644 --- a/src/api/admin.ts +++ b/src/api/admin.ts @@ -289,15 +289,16 @@ export interface TopCampaignsResponse { export interface RecentPaymentItem { id: number; user_id: number; - telegram_id: number; - username?: string; + telegram_id: number | null; + email?: string | null; + username?: string | null; display_name: string; amount_kopeks: number; amount_rubles: number; type: string; type_display: string; - payment_method?: string; - description?: string; + payment_method?: string | null; + description?: string | null; created_at: string; is_completed: boolean; }