(plan: string | null | undefined)
| 54 | * `isOrgScopedSubscription` (sync) or `isSubscriptionOrgScoped` (async). |
| 55 | */ |
| 56 | export function isOrgPlan(plan: string | null | undefined): boolean { |
| 57 | return isTeam(plan) || isEnterprise(plan) |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Extract the credit count from a plan name (e.g. `'pro_6000'` => `6000`). |
no test coverage detected