MCPcopy Index your code
hub / github.com/simstudioai/sim / isOrgPlan

Function isOrgPlan

apps/sim/lib/billing/plan-helpers.ts:56–58  ·  view source on GitHub ↗
(plan: string | null | undefined)

Source from the content-addressed store, hash-verified

54 * `isOrgScopedSubscription` (sync) or `isSubscriptionOrgScoped` (async).
55 */
56export 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`).

Callers 4

getPerUserMinimumLimitFunction · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 2

isTeamFunction · 0.85
isEnterpriseFunction · 0.70

Tested by

no test coverage detected