Files
supabase/studio/data/subscriptions/keys.ts
T

13 lines
660 B
TypeScript

// [Joshen TODO] To remove subscription V2 after v2 is launched and stable to deprecate old billing ui + endpoints
export const subscriptionKeys = {
subscription: (projectRef: string | undefined) =>
['projects', projectRef, 'subscription'] 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,
}