import { basePlans, Plan, PlanType } from '../../utils/plan'; /** First-month discount percentage applied server-side via the LAUNCH50 coupon. */ export const LAUNCH_DISCOUNT_PERCENT = 50; const LAUNCH_PLAN_KEYS: PlanType[] = [ PlanType.FAST_GROWING, PlanType.SCALING, PlanType.HYPER_SCALING, ]; export interface LaunchPlan extends Plan { /** Display-only first-month price (full price × 0.5). The actual discount * is applied server-side by dashboard-api via the LAUNCH50 coupon. */ discountMonthly: number; } export const LAUNCH_PLANS: LaunchPlan[] = basePlans .filter(plan => LAUNCH_PLAN_KEYS.includes(plan.key)) .map(plan => ({ ...plan, discountMonthly: Math.round(plan.monthly * (1 - LAUNCH_DISCOUNT_PERCENT / 100) * 100) / 100, }));