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

Function isInboxEntitledPlan

apps/sim/lib/billing/core/subscription.ts:530–532  ·  view source on GitHub ↗

* Whether a plan tier entitles the inbox (Sim Mailer) feature: a Max tier * (credits >= 25000, covering `pro_25000` and `team_25000`) or any enterprise * plan. Subscription status (usable vs entitled) is gated by callers before this * runs — the predicate is tier-only.

(plan: string)

Source from the content-addressed store, hash-verified

528 * runs — the predicate is tier-only.
529 */
530function isInboxEntitledPlan(plan: string): boolean {
531 return getPlanTierCredits(plan) >= MAX_PLAN_CREDITS || isPlanEnterprise(plan)
532}
533
534/**
535 * Check whether a workspace is entitled to the inbox (Sim Mailer) feature.

Callers 2

hasWorkspaceInboxAccessFunction · 0.85

Calls 1

getPlanTierCreditsFunction · 0.90

Tested by

no test coverage detected