(plan: string | null | undefined)
| 89 | * Return the broad plan category regardless of tier suffix. |
| 90 | */ |
| 91 | export function getPlanType(plan: string | null | undefined): PlanCategory { |
| 92 | if (isPro(plan)) return 'pro' |
| 93 | if (isTeam(plan)) return 'team' |
| 94 | if (isEnterprise(plan)) return 'enterprise' |
| 95 | return 'free' |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Return the plan category used for rate limits, storage, and execution timeouts. |
no test coverage detected