<?php

return [
    'types' => [
        'subscription.renewal_soon' => [
            'module' => 'subscriptions',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/subscriptions',
        ],
        'subscription.renewal_today' => [
            'module' => 'subscriptions',
            'severity' => 'warning',
            'priority' => 'high',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/subscriptions',
        ],
        'subscription.updated' => [
            'module' => 'subscriptions',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 6,
            'action_url' => '/subscriptions',
        ],
        'subscription.created' => [
            'module' => 'subscriptions',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 6,
            'action_url' => '/subscriptions',
        ],
        'subscription.canceled' => [
            'module' => 'subscriptions',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/subscriptions',
        ],
        'subscription.deleted' => [
            'module' => 'subscriptions',
            'severity' => 'info',
            'priority' => 'low',
            'channels' => ['database', 'broadcast'],
            'cooldown_hours' => 24,
            'action_url' => '/subscriptions',
        ],
        'subscription.renewal_date_changed' => [
            'module' => 'subscriptions',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 12,
            'action_url' => '/subscriptions',
        ],
        'subscription.cost_changed' => [
            'module' => 'subscriptions',
            'severity' => 'warning',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 12,
            'action_url' => '/subscriptions',
        ],
        'transaction.recurring_upcoming' => [
            'module' => 'transactions',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/transactions',
        ],
        'transaction.recurring_today' => [
            'module' => 'transactions',
            'severity' => 'warning',
            'priority' => 'high',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/transactions',
        ],
        'transaction.created' => [
            'module' => 'transactions',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 6,
            'action_url' => '/transactions',
        ],
        'transaction.updated' => [
            'module' => 'transactions',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 6,
            'action_url' => '/transactions',
        ],
        'transaction.deleted' => [
            'module' => 'transactions',
            'severity' => 'info',
            'priority' => 'low',
            'channels' => ['database', 'broadcast'],
            'cooldown_hours' => 6,
            'action_url' => '/transactions',
        ],
        'transaction.large_expense' => [
            'module' => 'transactions',
            'severity' => 'warning',
            'priority' => 'high',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 12,
            'action_url' => '/transactions',
        ],
        'transaction.imported' => [
            'module' => 'transactions',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 6,
            'action_url' => '/transactions',
        ],
        'budget.near_limit' => [
            'module' => 'budgets',
            'severity' => 'warning',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/budgets',
        ],
        'budget.warning' => [
            'module' => 'budgets',
            'severity' => 'warning',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/budgets',
        ],
        'budget.over_limit' => [
            'module' => 'budgets',
            'severity' => 'warning',
            'priority' => 'high',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/budgets',
        ],
        'budget.created' => [
            'module' => 'budgets',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/budgets',
        ],
        'budget.updated' => [
            'module' => 'budgets',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 12,
            'action_url' => '/budgets',
        ],
        'budget.deleted' => [
            'module' => 'budgets',
            'severity' => 'info',
            'priority' => 'low',
            'channels' => ['database', 'broadcast'],
            'cooldown_hours' => 24,
            'action_url' => '/budgets',
        ],
        'goal.deadline_soon' => [
            'module' => 'goals',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/goals',
        ],
        'goal.deadline_today' => [
            'module' => 'goals',
            'severity' => 'warning',
            'priority' => 'high',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/goals',
        ],
        'goal.milestone' => [
            'module' => 'goals',
            'severity' => 'success',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24 * 30,
            'action_url' => '/goals',
        ],
        'goal.created' => [
            'module' => 'goals',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/goals',
        ],
        'goal.updated' => [
            'module' => 'goals',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 12,
            'action_url' => '/goals',
        ],
        'goal.deadline_updated' => [
            'module' => 'goals',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 12,
            'action_url' => '/goals',
        ],
        'goal.completed' => [
            'module' => 'goals',
            'severity' => 'success',
            'priority' => 'high',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24 * 7,
            'action_url' => '/goals',
        ],
        'goal.deleted' => [
            'module' => 'goals',
            'severity' => 'info',
            'priority' => 'low',
            'channels' => ['database', 'broadcast'],
            'cooldown_hours' => 24,
            'action_url' => '/goals',
        ],
        'debt.due_soon' => [
            'module' => 'debts',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/debts',
        ],
        'debt.due_today' => [
            'module' => 'debts',
            'severity' => 'warning',
            'priority' => 'high',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/debts',
        ],
        'debt.overdue' => [
            'module' => 'debts',
            'severity' => 'warning',
            'priority' => 'high',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/debts',
        ],
        'debt.created' => [
            'module' => 'debts',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 24,
            'action_url' => '/debts',
        ],
        'debt.updated' => [
            'module' => 'debts',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast', 'webpush'],
            'cooldown_hours' => 12,
            'action_url' => '/debts',
        ],
        'debt.deleted' => [
            'module' => 'debts',
            'severity' => 'info',
            'priority' => 'low',
            'channels' => ['database', 'broadcast'],
            'cooldown_hours' => 24,
            'action_url' => '/debts',
        ],
        'saas.trial_ending' => [
            'module' => 'saas',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast'],
            'cooldown_hours' => 24,
            'action_url' => '/settings',
        ],
        'system.push_optin_prompt' => [
            'module' => 'system',
            'severity' => 'info',
            'priority' => 'normal',
            'channels' => ['database', 'broadcast'],
            'cooldown_hours' => 48,
            'action_url' => '/settings?section=notifications',
        ],
    ],
];
