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

Function getPlanType

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

Source from the content-addressed store, hash-verified

89 * Return the broad plan category regardless of tier suffix.
90 */
91export 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.

Calls 3

isProFunction · 0.85
isTeamFunction · 0.85
isEnterpriseFunction · 0.70

Tested by

no test coverage detected