Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions frontend/editor/src/core/query/keys.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/** Editor query keys: ["editor", <resource>, ...params]. */
export const qk = {
/** The admin directory payload: a different endpoint and shape to qk.users(). */
adminUsers: () => ["editor", "adminUsers"] as const,
appConfig: () => ["editor", "appConfig"] as const,
endpointsAvailability: () => ["editor", "endpointsAvailability"] as const,
endpointEnabled: (endpoint: string) =>
Expand All @@ -9,5 +11,7 @@ export const qk = {
/** Keyed on the asking identity: two users must never share one answer. */
portalAccess: (userId: string | null) =>
["editor", "portalAccess", userId] as const,
teamDetails: (teamId: number) => ["editor", "teamDetails", teamId] as const,
teams: () => ["editor", "teams"] as const,
users: () => ["editor", "users"] as const,
} as const;
Loading
Loading