// API Configuration
export const API_CONFIG = {
    BASE_URL: 'https://api.konturai.kz',
    SMM_BASE_URL: 'https://api.konturai.kz/api/smm',
    ENDPOINTS: {
        // MarketItemController - Получение данных
        NEWS_ITEMS: '/api/parser/items',
        NEWS_ITEM_BY_ID: '/api/parser/items',
        STATS: '/api/parser/items/stats',
        SOURCES: '/api/parser/items/sources',
        NEWS_BY_SOURCE: '/api/parser/items/source',

        // ParserAdminController - Управление парсерами
        PARSERS: '/api/parser/admin/parsers',
        PARSERS_INFO: '/api/parser/admin/parsers/info',
        PARSER_EXISTS: '/api/parser/admin/parsers/exists',
        PARSE_ALL: '/api/parser/admin/parsers/parse/all',
        PARSE_SOURCE: '/api/parser/admin/parsers/parse',

        // HealthCheckController - Мониторинг системы
        HEALTH: '/api/parser/health',
        MONGO_HEALTH: '/api/parser/health/mongodb',
        SCHEDULER_HEALTH: '/api/parser/health/scheduler',
        SYSTEM_HEALTH: '/api/parser/health/system',
        PARSERS_HEALTH: '/api/parser/health/parsers',

        // ReportController - Генерация и управление отчётами
        REPORT_GENERATE: '/api/parser/report',
        REPORT_HISTORY: '/api/parser/report/history',
        REPORT_DOWNLOAD: '/api/parser/report/history',

        // SMM System Endpoints
        // CampaignController - Управление кампаниями
        CAMPAIGNS: '/campaigns',
        CAMPAIGN_BY_ID: '/campaigns',

        // ChannelController - Управление каналами
        CHANNELS: '/channels',
        CHANNEL_BY_ID: '/channels',

        // ContentController - Управление контентом
        CONTENT: '/content',
        CONTENT_BY_ID: '/content',
        CONTENT_APPROVE: '/content',
        CONTENT_MESSAGES: '/content',

        // PublishingController - Публикация контента
        PUBLISHING_POST: '/publishing/post',

        // AnalyticsController - Аналитика
        ANALYTICS_COLLECT: '/analytics/collect-now',

        // MarketingAnalysisController - Маркетинговый анализ
        MARKETING_ANALYSIS_START: '/api/marketing/analysis/start',
        MARKETING_ANALYSIS_GET: '/api/marketing/analysis',
        MARKETING_ANALYSIS_DOWNLOAD: '/api/marketing/analysis',
        MARKETING_ANALYSIS_MY: '/api/marketing/analysis/my',
        MARKETING_ANALYSIS_HISTORY: '/api/marketing/analysis',

        // MarketingStrategyController - Стратегия продвижения
        MARKETING_STRATEGY_GENERATE: '/api/marketing/analysis/strategy/generate',
        MARKETING_STRATEGY_GET: '/api/marketing/analysis/strategy',
        MARKETING_STRATEGY_BY_ANALYSIS: '/api/marketing/analysis',
        MARKETING_STRATEGY_MY: '/api/marketing/analysis/strategy/my',
        MARKETING_STRATEGY_HISTORY: '/api/marketing/analysis/strategy',
        MARKETING_STRATEGY_START: '/api/marketing/analysis/strategy',
        MARKETING_IMAGE_GET: '/api/marketing/analysis/images',
        MARKETING_TASK_EXECUTE: '/api/marketing/analysis/tasks',

        // SocialMediaCredentialsController - Управление credentials социальных сетей
        SOCIAL_MEDIA_CREDENTIALS: '/api/social-media/credentials',
        SOCIAL_MEDIA_CREDENTIALS_BY_PLATFORM: '/api/social-media/credentials'
    }
};

// Default request configuration
export const DEFAULT_REQUEST_CONFIG = {
    headers: {
        'Content-Type': 'application/json'
    }
};

// Request timeout (in milliseconds)
export const REQUEST_TIMEOUT = 30000;
