import type { Campaign } from '@/types/entities';
import { inr, daysAgo } from './factories';

// Fixed IDs for cross-file references
export const CAMPAIGN_ID_WD = 'campaign-wd-123';
export const CAMPAIGN_ID_GH = 'campaign-gh-456';
export const CAMPAIGN_ID_IVF = 'campaign-ivf-789';
export const CAMPAIGN_ID_SN = 'campaign-sn-101';
export const CAMPAIGN_ID_DA = 'campaign-da-202';

export const mockCampaigns: Campaign[] = [
    {
        id: CAMPAIGN_ID_WD,
        createdAt: daysAgo(45),
        updatedAt: daysAgo(1),
        campaignName: "Women's Day Health Checkup",
        campaignType: 'FACEBOOK_AD',
        campaignStatus: 'ACTIVE',
        platform: 'FACEBOOK',
        startDate: daysAgo(30),
        endDate: null,
        budget: inr(200000),
        amountSpent: inr(118000),
        impressionCount: 142000,
        clickCount: 3840,
        targetCount: 20000,
        contactedCount: 210,
        convertedCount: 38,
        leadCount: 275,
        externalCampaignId: 'WD-123',
        platformUrl: 'https://www.facebook.com/ads/manager/WD-123',
    },
    {
        id: CAMPAIGN_ID_GH,
        createdAt: daysAgo(40),
        updatedAt: daysAgo(2),
        campaignName: 'Cervical Cancer Screening Drive',
        campaignType: 'GOOGLE_AD',
        campaignStatus: 'ACTIVE',
        platform: 'GOOGLE',
        startDate: daysAgo(25),
        endDate: null,
        budget: inr(150000),
        amountSpent: inr(72000),
        impressionCount: 98500,
        clickCount: 2210,
        targetCount: 15000,
        contactedCount: 140,
        convertedCount: 22,
        leadCount: 180,
        externalCampaignId: 'GH-456',
        platformUrl: 'https://ads.google.com/campaigns/GH-456',
    },
    {
        id: CAMPAIGN_ID_IVF,
        createdAt: daysAgo(35),
        updatedAt: daysAgo(1),
        campaignName: 'IVF Consultation — Free First Visit',
        campaignType: 'FACEBOOK_AD',
        campaignStatus: 'ACTIVE',
        platform: 'FACEBOOK',
        startDate: daysAgo(20),
        endDate: null,
        budget: inr(300000),
        amountSpent: inr(156000),
        impressionCount: 210000,
        clickCount: 5600,
        targetCount: 25000,
        contactedCount: 310,
        convertedCount: 54,
        leadCount: 420,
        externalCampaignId: 'IVF-789',
        platformUrl: 'https://www.facebook.com/ads/manager/IVF-789',
    },
    {
        id: CAMPAIGN_ID_SN,
        createdAt: daysAgo(60),
        updatedAt: daysAgo(10),
        campaignName: 'Senior Health Package',
        campaignType: 'FACEBOOK_AD',
        campaignStatus: 'PAUSED',
        platform: 'FACEBOOK',
        startDate: daysAgo(60),
        endDate: null,
        budget: inr(100000),
        amountSpent: inr(63000),
        impressionCount: 75000,
        clickCount: 1620,
        targetCount: 10000,
        contactedCount: 95,
        convertedCount: 18,
        leadCount: 130,
        externalCampaignId: 'SN-101',
        platformUrl: 'https://www.facebook.com/ads/manager/SN-101',
    },
    {
        id: CAMPAIGN_ID_DA,
        createdAt: daysAgo(90),
        updatedAt: daysAgo(20),
        campaignName: 'Diabetes Awareness Camp',
        campaignType: 'WHATSAPP',
        campaignStatus: 'COMPLETED',
        platform: 'MANUAL',
        startDate: daysAgo(90),
        endDate: daysAgo(20),
        budget: inr(50000),
        amountSpent: inr(48500),
        impressionCount: 32000,
        clickCount: 980,
        targetCount: 8000,
        contactedCount: 72,
        convertedCount: 14,
        leadCount: 98,
        externalCampaignId: 'DA-202',
        platformUrl: null,
    },
];
