mirror of
https://github.com/supabase/supabase.git
synced 2026-06-05 12:22:26 +08:00
* foreign-key-constraints * update entity-types stale time * schemas query * deprecate useExecuteSqlQuery * users count query * database size query * indexes query * keywords query * migrations query * table columns * database functions * database roles query * fdws query * replication lag query * ongoing queries query * vault secrets query * remove unneeded staleTime: 0 * max connections query * fix entity types key in tests * Some fixes --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
export const authKeys = {
|
|
users: (
|
|
projectRef: string | undefined,
|
|
params?: {
|
|
page: number | undefined
|
|
keywords: string | undefined
|
|
filter: string | undefined
|
|
}
|
|
) => ['projects', projectRef, 'users', ...(params ? [params] : [])] as const,
|
|
|
|
usersInfinite: (
|
|
projectRef: string | undefined,
|
|
params?: {
|
|
keywords: string | undefined
|
|
filter: string | undefined
|
|
providers: string[] | undefined
|
|
sort: string | undefined
|
|
order: string | undefined
|
|
}
|
|
) =>
|
|
[
|
|
'projects',
|
|
projectRef,
|
|
'users-infinite',
|
|
...(params ? [params].filter(Boolean) : []),
|
|
] as const,
|
|
usersCount: (
|
|
projectRef: string | undefined,
|
|
params?: {
|
|
keywords: string | undefined
|
|
filter: string | undefined
|
|
providers: string[] | undefined
|
|
}
|
|
) =>
|
|
['projects', projectRef, 'users-count', ...(params ? [params].filter(Boolean) : [])] as const,
|
|
|
|
authConfig: (projectRef: string | undefined) => ['projects', projectRef, 'auth-config'] as const,
|
|
accessToken: () => ['access-token'] as const,
|
|
}
|