mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
15 lines
754 B
TypeScript
15 lines
754 B
TypeScript
// [Joshen TODO] To remove subscription V2 after v2 is launched and stable to deprecate old billing ui + endpoints
|
|
|
|
export const subscriptionKeys = {
|
|
orgSubscription: (orgSlug: string | undefined) =>
|
|
['organizations', orgSlug, 'subscription'] as const,
|
|
orgPlans: (orgSlug: string | undefined) => ['organizations', orgSlug, 'plans'] as const,
|
|
|
|
subscriptionV2: (projectRef: string | undefined) =>
|
|
['projects', projectRef, 'subscriptionV2'] as const,
|
|
addons: (projectRef: string | undefined) => ['projects', projectRef, 'addons'] as const,
|
|
plans: (projectRef: string | undefined) => ['projects', projectRef, 'plans'] as const,
|
|
preview: (projectRef: string | undefined) =>
|
|
['projects', projectRef, 'subscription-preview'] as const,
|
|
}
|