Files
supabase/apps/studio/data/usage/keys.ts
Kevin Grüneberg 15c9a6ced3 perf: pass org slug / project ref to resource warnings endpoint (#39471)
Based on https://github.com/supabase/infrastructure/pull/26483 - pass in project ref / org slug to ensure we filter down and not query across all orgs unnecessarily
2025-10-14 18:27:34 +08:00

8 lines
418 B
TypeScript

export const usageKeys = {
usage: (projectRef: string | undefined) => ['projects', projectRef, 'usage'] as const,
orgUsage: (orgSlug: string | undefined, projectRef?: string, start?: string, end?: string) =>
['organizations', orgSlug, 'usage', projectRef, start, end] as const,
resourceWarnings: (slug?: string, projectRef?: string) =>
['projects', 'resource-warnings', { slug, projectRef }] as const,
}