(plan: string | null | undefined)
| 100 | * Max plans (>= 25K credits) are promoted to team-level limits. |
| 101 | */ |
| 102 | export function getPlanTypeForLimits(plan: string | null | undefined): PlanCategory { |
| 103 | const credits = getPlanTierCredits(plan) |
| 104 | if (credits >= 25000 && isPro(plan)) return 'team' |
| 105 | return getPlanType(plan) |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Build the canonical plan name for a given type and credit tier. |
no test coverage detected