import { TargetChannel, TargetChannelDetail } from "@/lib/types/api"; // ============================================================================ // Mock Target Channels Data // ============================================================================ export const mockTargetChannels: TargetChannel[] = [ { id: "tc1", telegram_id: -1001234567890, title: "Мой Главный Канал", username: "my_main_channel", description: "Основной канал для продвижения продукта", is_active: true, created_at: "2024-01-10T10:00:00.000Z", updated_at: "2024-01-10T10:00:00.000Z", total_purchases: 15, total_subscriptions: 1250, avg_cpf: 45.5, }, { id: "tc2", telegram_id: -1009876543210, title: "Тестовый Канал", username: "test_channel_promo", description: "Канал для тестирования рекламных креативов", is_active: true, created_at: "2024-02-15T12:00:00.000Z", updated_at: "2024-02-15T12:00:00.000Z", total_purchases: 8, total_subscriptions: 450, avg_cpf: 52.3, }, { id: "tc3", telegram_id: -1005555555555, title: "Новости и Обновления", username: null, description: "Приватный канал для новостей", is_active: false, created_at: "2024-03-01T08:00:00.000Z", updated_at: "2024-03-20T14:30:00.000Z", total_purchases: 3, total_subscriptions: 120, avg_cpf: 67.8, }, ]; export const getMockTargetChannelDetail = ( id: string ): TargetChannelDetail | null => { const channel = mockTargetChannels.find((c) => c.id === id); if (!channel) return null; return { ...channel, recent_purchases: [], // Will be populated from purchases mock stats_by_period: [ { period: "day", subscriptions: 25, cost: 1200, cpf: 48.0, }, { period: "week", subscriptions: 180, cost: 8500, cpf: 47.2, }, { period: "month", subscriptions: 750, cost: 35000, cpf: 46.7, }, ], }; };