mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 19:35:06 +03:00
23 lines
1.4 KiB
TypeScript
23 lines
1.4 KiB
TypeScript
export const organizationKeys = {
|
|
list: () => ['organizations'] as const,
|
|
detail: (slug: string | undefined) => ['organizations', slug, 'detail'] 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,
|
|
migrateBilling: (slug: string | undefined) => ['organizations', slug, 'migrate-billing'] as const,
|
|
migrateBillingPreview: (slug: string | undefined) =>
|
|
['organizations', slug, 'migrate-billing', 'preview'] 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,
|
|
}
|