mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +00:00
21 lines
482 B
TypeScript
21 lines
482 B
TypeScript
|
|
|
||
|
|
const planLabels = {
|
||
|
|
oss: "OSS",
|
||
|
|
"cloud:team": "Team",
|
||
|
|
"self-hosted:enterprise": "Enterprise (Self-Hosted)",
|
||
|
|
} as const;
|
||
|
|
export type Plan = keyof typeof planLabels;
|
||
|
|
|
||
|
|
|
||
|
|
const entitlements = [
|
||
|
|
"search-contexts",
|
||
|
|
"billing"
|
||
|
|
] as const;
|
||
|
|
export type Entitlement = (typeof entitlements)[number];
|
||
|
|
|
||
|
|
export const entitlementsByPlan: Record<Plan, Entitlement[]> = {
|
||
|
|
oss: [],
|
||
|
|
"cloud:team": ["billing"],
|
||
|
|
"self-hosted:enterprise": ["search-contexts"],
|
||
|
|
} as const;
|