mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 09:20:21 -04:00
15c9a6ced3
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
8 lines
418 B
TypeScript
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,
|
|
}
|