Skip to content

Commit 7d9bdb3

Browse files
alaisterkevcodez
andauthored
chore: add planId (supabase#36500)
Co-authored-by: Kevin Grüneberg <[email protected]>
1 parent 4d4036e commit 7d9bdb3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/shared-data/plans.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
export type PlanId = 'free' | 'pro' | 'team' | 'enterprise'
2+
13
export interface PricingInformation {
24
id: string
5+
planId: PlanId
36
name: string
47
nameBadge?: string
58
costUnit?: string
@@ -18,6 +21,7 @@ export interface PricingInformation {
1821
export const plans: PricingInformation[] = [
1922
{
2023
id: 'tier_free',
24+
planId: 'free',
2125
name: 'Free',
2226
nameBadge: '',
2327
costUnit: '/ month',
@@ -63,6 +67,7 @@ export const plans: PricingInformation[] = [
6367
},
6468
{
6569
id: 'tier_pro',
70+
planId: 'pro',
6671
name: 'Pro',
6772
nameBadge: 'Most Popular',
6873
costUnit: '/ month',
@@ -100,6 +105,7 @@ export const plans: PricingInformation[] = [
100105
},
101106
{
102107
id: 'tier_team',
108+
planId: 'team',
103109
name: 'Team',
104110
nameBadge: '',
105111
costUnit: '/ month',
@@ -127,6 +133,7 @@ export const plans: PricingInformation[] = [
127133
},
128134
{
129135
id: 'tier_enterprise',
136+
planId: 'enterprise',
130137
name: 'Enterprise',
131138
href: 'https://forms.supabase.com/enterprise',
132139
description: 'For large-scale applications running Internet scale workloads.',
@@ -148,7 +155,7 @@ export const plans: PricingInformation[] = [
148155
preface: '',
149156
cta: 'Contact Us',
150157
},
151-
]
158+
] as const
152159

153160
export function pickFeatures(plan: PricingInformation, billingPartner: string = '') {
154161
return (

0 commit comments

Comments
 (0)