mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
20 lines
1.1 KiB
TypeScript
20 lines
1.1 KiB
TypeScript
export const organizationKeys = {
|
|
list: () => ['organizations'] as const,
|
|
members: (slug?: string) => ['organizations', slug, 'members'] as const,
|
|
paymentMethods: (slug: string | undefined) => ['organizations', slug, 'payment-methods'] as const,
|
|
roles: (slug: string | undefined) => ['organizations', slug, 'roles'] as const,
|
|
freeProjectLimitCheck: (slug: string | undefined) =>
|
|
['organizations', slug, 'free-project-limit-check'] as const,
|
|
customerProfile: (slug: string | undefined) =>
|
|
['organizations', slug, 'customer-profile'] as const,
|
|
auditLogs: (
|
|
slug: string | undefined,
|
|
{ date_start, date_end }: { date_start: string | undefined; date_end: string | undefined }
|
|
) => ['organizations', slug, 'audit-logs', { date_start, date_end }] as const,
|
|
subscriptionPreview: (slug: string | undefined, tier: string | undefined) =>
|
|
['organizations', slug, 'subscription', 'preview', tier] as const,
|
|
taxIds: (slug: string | undefined) => ['organizations', slug, 'tax-ids'] as const,
|
|
tokenValidation: (slug: string | undefined, token: string | undefined) =>
|
|
['organizations', slug, 'validate-token', token] as const,
|
|
}
|