mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 02:23:53 +02:00
update chat api service
This commit is contained in:
parent
68e4d9b23e
commit
db58571751
10 changed files with 79 additions and 191 deletions
|
|
@ -1,10 +1,12 @@
|
|||
import type { GetChatsRequest } from "@/contracts/types/chat.types";
|
||||
|
||||
export const cacheKeys = {
|
||||
activeSearchSpace: {
|
||||
chats: (searchSpaceId: string) => ["active-search-space", "chats", searchSpaceId] as const,
|
||||
activeChat: (chatId: string) => ["active-search-space", "active-chat", chatId] as const,
|
||||
podcasts: (searchSpaceId: string) =>
|
||||
["active-search-space", "podcasts", searchSpaceId] as const,
|
||||
chats: {
|
||||
activeChat: (chatId: string) => ["active-chat", chatId] as const,
|
||||
globalQueryParams: (queries: GetChatsRequest["queryParams"]) =>
|
||||
["chats", ...(queries ? Object.values(queries) : [])] as const,
|
||||
},
|
||||
podcasts: () => ["podcasts"] as const,
|
||||
auth: {
|
||||
user: ["auth", "user"] as const,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue