aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--packages/shared-react/hooks/bookmark-grid-context.tsx2
-rw-r--r--packages/shared-react/package.json1
-rw-r--r--packages/shared/types/bookmarks.ts (renamed from packages/trpc/types/bookmarks.ts)0
-rw-r--r--packages/shared/types/lists.ts (renamed from packages/trpc/types/lists.ts)1
-rw-r--r--packages/shared/types/tags.ts (renamed from packages/trpc/types/tags.ts)0
-rw-r--r--packages/shared/types/uploads.ts (renamed from packages/trpc/types/uploads.ts)0
-rw-r--r--packages/shared/types/users.ts (renamed from packages/trpc/types/users.ts)0
7 files changed, 3 insertions, 1 deletions
diff --git a/packages/shared-react/hooks/bookmark-grid-context.tsx b/packages/shared-react/hooks/bookmark-grid-context.tsx
index 5814da12..7d71d28c 100644
--- a/packages/shared-react/hooks/bookmark-grid-context.tsx
+++ b/packages/shared-react/hooks/bookmark-grid-context.tsx
@@ -2,7 +2,7 @@
import { createContext, useContext } from "react";
-import type { ZGetBookmarksRequest } from "@hoarder/trpc/types/bookmarks";
+import type { ZGetBookmarksRequest } from "@hoarder/shared/types/bookmarks";
export const BookmarkGridContext = createContext<
ZGetBookmarksRequest | undefined
diff --git a/packages/shared-react/package.json b/packages/shared-react/package.json
index 5e0a1d23..1c8f4a51 100644
--- a/packages/shared-react/package.json
+++ b/packages/shared-react/package.json
@@ -5,6 +5,7 @@
"private": true,
"dependencies": {
"@hoarder/trpc": "workspace:^0.1.0",
+ "@hoarder/shared": "workspace:^0.1.0",
"@tanstack/react-query": "^5.24.8",
"superjson": "^2.2.1",
"@trpc/client": "11.0.0-next-beta.308"
diff --git a/packages/trpc/types/bookmarks.ts b/packages/shared/types/bookmarks.ts
index 2cf8152b..2cf8152b 100644
--- a/packages/trpc/types/bookmarks.ts
+++ b/packages/shared/types/bookmarks.ts
diff --git a/packages/trpc/types/lists.ts b/packages/shared/types/lists.ts
index 4b0ccaca..e9d7eca0 100644
--- a/packages/trpc/types/lists.ts
+++ b/packages/shared/types/lists.ts
@@ -4,6 +4,7 @@ export const zBookmarkListSchema = z.object({
id: z.string(),
name: z.string(),
icon: z.string(),
+ parentId: z.string().nullable(),
});
export const zBookmarkListWithBookmarksSchema = zBookmarkListSchema.merge(
diff --git a/packages/trpc/types/tags.ts b/packages/shared/types/tags.ts
index c9fe2a93..c9fe2a93 100644
--- a/packages/trpc/types/tags.ts
+++ b/packages/shared/types/tags.ts
diff --git a/packages/trpc/types/uploads.ts b/packages/shared/types/uploads.ts
index b53b86d5..b53b86d5 100644
--- a/packages/trpc/types/uploads.ts
+++ b/packages/shared/types/uploads.ts
diff --git a/packages/trpc/types/users.ts b/packages/shared/types/users.ts
index 3026337a..3026337a 100644
--- a/packages/trpc/types/users.ts
+++ b/packages/shared/types/users.ts