Files
supabase/studio/data/organizations/keys.ts
T
2023-06-23 16:45:27 +08:00

12 lines
664 B
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) => ['organizations', slug, 'audit-logs'] as const,
}