diff options
| author | MohamedBassem <me@mbassem.com> | 2025-04-12 19:37:18 +0100 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2025-04-12 19:37:40 +0100 |
| commit | 755fc36e912964863d4f46bb32adda6332b419fe (patch) | |
| tree | 3c54e9e6ed7686a119804716ccb6fdd6ad0da3c3 /packages/trpc/routers | |
| parent | 7f569042f153a55189fb28e6ef6ab127b8190afd (diff) | |
| download | karakeep-755fc36e912964863d4f46bb32adda6332b419fe.tar.zst | |
chore: Rename hoarder packages to karakeep
Diffstat (limited to 'packages/trpc/routers')
| -rw-r--r-- | packages/trpc/routers/admin.ts | 8 | ||||
| -rw-r--r-- | packages/trpc/routers/apiKeys.ts | 4 | ||||
| -rw-r--r-- | packages/trpc/routers/assets.test.ts | 4 | ||||
| -rw-r--r-- | packages/trpc/routers/assets.ts | 6 | ||||
| -rw-r--r-- | packages/trpc/routers/bookmarks.test.ts | 4 | ||||
| -rw-r--r-- | packages/trpc/routers/bookmarks.ts | 24 | ||||
| -rw-r--r-- | packages/trpc/routers/feeds.ts | 6 | ||||
| -rw-r--r-- | packages/trpc/routers/highlights.ts | 6 | ||||
| -rw-r--r-- | packages/trpc/routers/lists.ts | 2 | ||||
| -rw-r--r-- | packages/trpc/routers/prompts.ts | 4 | ||||
| -rw-r--r-- | packages/trpc/routers/tags.ts | 10 | ||||
| -rw-r--r-- | packages/trpc/routers/users.ts | 10 | ||||
| -rw-r--r-- | packages/trpc/routers/webhooks.ts | 4 |
13 files changed, 46 insertions, 46 deletions
diff --git a/packages/trpc/routers/admin.ts b/packages/trpc/routers/admin.ts index 337f050c..9b44f7c9 100644 --- a/packages/trpc/routers/admin.ts +++ b/packages/trpc/routers/admin.ts @@ -2,8 +2,8 @@ import { TRPCError } from "@trpc/server"; import { count, eq, sum } from "drizzle-orm"; import { z } from "zod"; -import { assets, bookmarkLinks, bookmarks, users } from "@hoarder/db/schema"; -import serverConfig from "@hoarder/shared/config"; +import { assets, bookmarkLinks, bookmarks, users } from "@karakeep/db/schema"; +import serverConfig from "@karakeep/shared/config"; import { AssetPreprocessingQueue, FeedQueue, @@ -15,12 +15,12 @@ import { triggerSearchReindex, VideoWorkerQueue, WebhookQueue, -} from "@hoarder/shared/queues"; +} from "@karakeep/shared/queues"; import { changeRoleSchema, resetPasswordSchema, zAdminCreateUserSchema, -} from "@hoarder/shared/types/admin"; +} from "@karakeep/shared/types/admin"; import { hashPassword } from "../auth"; import { adminProcedure, router } from "../index"; diff --git a/packages/trpc/routers/apiKeys.ts b/packages/trpc/routers/apiKeys.ts index c55dc095..eb52189b 100644 --- a/packages/trpc/routers/apiKeys.ts +++ b/packages/trpc/routers/apiKeys.ts @@ -2,8 +2,8 @@ import { TRPCError } from "@trpc/server"; import { and, eq } from "drizzle-orm"; import { z } from "zod"; -import { apiKeys } from "@hoarder/db/schema"; -import serverConfig from "@hoarder/shared/config"; +import { apiKeys } from "@karakeep/db/schema"; +import serverConfig from "@karakeep/shared/config"; import { authenticateApiKey, diff --git a/packages/trpc/routers/assets.test.ts b/packages/trpc/routers/assets.test.ts index d7db35be..822e48b1 100644 --- a/packages/trpc/routers/assets.test.ts +++ b/packages/trpc/routers/assets.test.ts @@ -1,7 +1,7 @@ import { beforeEach, describe, expect, test } from "vitest"; -import { assets, AssetTypes } from "@hoarder/db/schema"; -import { BookmarkTypes, ZAssetType } from "@hoarder/shared/types/bookmarks"; +import { assets, AssetTypes } from "@karakeep/db/schema"; +import { BookmarkTypes, ZAssetType } from "@karakeep/shared/types/bookmarks"; import type { CustomTestContext } from "../testUtils"; import { defaultBeforeEach } from "../testUtils"; diff --git a/packages/trpc/routers/assets.ts b/packages/trpc/routers/assets.ts index 45eac068..af508a4e 100644 --- a/packages/trpc/routers/assets.ts +++ b/packages/trpc/routers/assets.ts @@ -2,12 +2,12 @@ import { TRPCError } from "@trpc/server"; import { and, desc, eq, sql } from "drizzle-orm"; import { z } from "zod"; -import { assets, bookmarks } from "@hoarder/db/schema"; -import { deleteAsset } from "@hoarder/shared/assetdb"; +import { assets, bookmarks } from "@karakeep/db/schema"; +import { deleteAsset } from "@karakeep/shared/assetdb"; import { zAssetSchema, zAssetTypesSchema, -} from "@hoarder/shared/types/bookmarks"; +} from "@karakeep/shared/types/bookmarks"; import { authedProcedure, Context, router } from "../index"; import { diff --git a/packages/trpc/routers/bookmarks.test.ts b/packages/trpc/routers/bookmarks.test.ts index c3469acc..f83ec5aa 100644 --- a/packages/trpc/routers/bookmarks.test.ts +++ b/packages/trpc/routers/bookmarks.test.ts @@ -1,7 +1,7 @@ import { assert, beforeEach, describe, expect, test } from "vitest"; -import { bookmarks } from "@hoarder/db/schema"; -import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; +import { bookmarks } from "@karakeep/db/schema"; +import { BookmarkTypes } from "@karakeep/shared/types/bookmarks"; import type { CustomTestContext } from "../testUtils"; import { defaultBeforeEach } from "../testUtils"; diff --git a/packages/trpc/routers/bookmarks.ts b/packages/trpc/routers/bookmarks.ts index 5e6df4a5..fdb99257 100644 --- a/packages/trpc/routers/bookmarks.ts +++ b/packages/trpc/routers/bookmarks.ts @@ -18,9 +18,9 @@ import { z } from "zod"; import type { ZBookmark, ZBookmarkContent, -} from "@hoarder/shared/types/bookmarks"; -import type { ZBookmarkTags } from "@hoarder/shared/types/tags"; -import { db as DONT_USE_db } from "@hoarder/db"; +} from "@karakeep/shared/types/bookmarks"; +import type { ZBookmarkTags } from "@karakeep/shared/types/tags"; +import { db as DONT_USE_db } from "@karakeep/db"; import { assets, AssetTypes, @@ -33,14 +33,14 @@ import { customPrompts, rssFeedImportsTable, tagsOnBookmarks, -} from "@hoarder/db/schema"; +} from "@karakeep/db/schema"; import { deleteAsset, SUPPORTED_BOOKMARK_ASSET_TYPES, -} from "@hoarder/shared/assetdb"; -import serverConfig from "@hoarder/shared/config"; -import { InferenceClientFactory } from "@hoarder/shared/inference"; -import { buildSummaryPrompt } from "@hoarder/shared/prompts"; +} from "@karakeep/shared/assetdb"; +import serverConfig from "@karakeep/shared/config"; +import { InferenceClientFactory } from "@karakeep/shared/inference"; +import { buildSummaryPrompt } from "@karakeep/shared/prompts"; import { AssetPreprocessingQueue, LinkCrawlerQueue, @@ -48,9 +48,9 @@ import { triggerSearchDeletion, triggerSearchReindex, triggerWebhook, -} from "@hoarder/shared/queues"; -import { getSearchIdxClient } from "@hoarder/shared/search"; -import { parseSearchQuery } from "@hoarder/shared/searchQueryParser"; +} from "@karakeep/shared/queues"; +import { getSearchIdxClient } from "@karakeep/shared/search"; +import { parseSearchQuery } from "@karakeep/shared/searchQueryParser"; import { BookmarkTypes, DEFAULT_NUM_BOOKMARKS_PER_PAGE, @@ -62,7 +62,7 @@ import { zSearchBookmarksCursor, zSearchBookmarksRequestSchema, zUpdateBookmarksRequestSchema, -} from "@hoarder/shared/types/bookmarks"; +} from "@karakeep/shared/types/bookmarks"; import type { AuthedContext, Context } from "../index"; import { authedProcedure, router } from "../index"; diff --git a/packages/trpc/routers/feeds.ts b/packages/trpc/routers/feeds.ts index e5520474..819ba8ef 100644 --- a/packages/trpc/routers/feeds.ts +++ b/packages/trpc/routers/feeds.ts @@ -2,13 +2,13 @@ import { experimental_trpcMiddleware, TRPCError } from "@trpc/server"; import { and, eq } from "drizzle-orm"; import { z } from "zod"; -import { rssFeedsTable } from "@hoarder/db/schema"; -import { FeedQueue } from "@hoarder/shared/queues"; +import { rssFeedsTable } from "@karakeep/db/schema"; +import { FeedQueue } from "@karakeep/shared/queues"; import { zFeedSchema, zNewFeedSchema, zUpdateFeedSchema, -} from "@hoarder/shared/types/feeds"; +} from "@karakeep/shared/types/feeds"; import { authedProcedure, Context, router } from "../index"; diff --git a/packages/trpc/routers/highlights.ts b/packages/trpc/routers/highlights.ts index 86da560b..3436653e 100644 --- a/packages/trpc/routers/highlights.ts +++ b/packages/trpc/routers/highlights.ts @@ -2,15 +2,15 @@ import { experimental_trpcMiddleware, TRPCError } from "@trpc/server"; import { and, desc, eq, lt, lte, or } from "drizzle-orm"; import { z } from "zod"; -import { highlights } from "@hoarder/db/schema"; +import { highlights } from "@karakeep/db/schema"; import { DEFAULT_NUM_HIGHLIGHTS_PER_PAGE, zGetAllHighlightsResponseSchema, zHighlightSchema, zNewHighlightSchema, zUpdateHighlightSchema, -} from "@hoarder/shared/types/highlights"; -import { zCursorV2 } from "@hoarder/shared/types/pagination"; +} from "@karakeep/shared/types/highlights"; +import { zCursorV2 } from "@karakeep/shared/types/pagination"; import { authedProcedure, Context, router } from "../index"; import { ensureBookmarkOwnership } from "./bookmarks"; diff --git a/packages/trpc/routers/lists.ts b/packages/trpc/routers/lists.ts index f9e382f2..f988eb8b 100644 --- a/packages/trpc/routers/lists.ts +++ b/packages/trpc/routers/lists.ts @@ -5,7 +5,7 @@ import { zBookmarkListSchema, zEditBookmarkListSchemaWithValidation, zNewBookmarkListSchema, -} from "@hoarder/shared/types/lists"; +} from "@karakeep/shared/types/lists"; import type { AuthedContext } from "../index"; import { authedProcedure, router } from "../index"; diff --git a/packages/trpc/routers/prompts.ts b/packages/trpc/routers/prompts.ts index 629d5829..d3942e69 100644 --- a/packages/trpc/routers/prompts.ts +++ b/packages/trpc/routers/prompts.ts @@ -2,12 +2,12 @@ import { experimental_trpcMiddleware, TRPCError } from "@trpc/server"; import { and, eq } from "drizzle-orm"; import { z } from "zod"; -import { customPrompts } from "@hoarder/db/schema"; +import { customPrompts } from "@karakeep/db/schema"; import { zNewPromptSchema, zPromptSchema, zUpdatePromptSchema, -} from "@hoarder/shared/types/prompts"; +} from "@karakeep/shared/types/prompts"; import { authedProcedure, Context, router } from "../index"; diff --git a/packages/trpc/routers/tags.ts b/packages/trpc/routers/tags.ts index c080bad8..7378c66f 100644 --- a/packages/trpc/routers/tags.ts +++ b/packages/trpc/routers/tags.ts @@ -2,14 +2,14 @@ import { experimental_trpcMiddleware, TRPCError } from "@trpc/server"; import { and, eq, inArray, notExists } from "drizzle-orm"; import { z } from "zod"; -import type { ZAttachedByEnum } from "@hoarder/shared/types/tags"; -import { SqliteError } from "@hoarder/db"; -import { bookmarkTags, tagsOnBookmarks } from "@hoarder/db/schema"; -import { triggerSearchReindex } from "@hoarder/shared/queues"; +import type { ZAttachedByEnum } from "@karakeep/shared/types/tags"; +import { SqliteError } from "@karakeep/db"; +import { bookmarkTags, tagsOnBookmarks } from "@karakeep/db/schema"; +import { triggerSearchReindex } from "@karakeep/shared/queues"; import { zGetTagResponseSchema, zUpdateTagRequestSchema, -} from "@hoarder/shared/types/tags"; +} from "@karakeep/shared/types/tags"; import type { Context } from "../index"; import { authedProcedure, router } from "../index"; diff --git a/packages/trpc/routers/users.ts b/packages/trpc/routers/users.ts index a78ec9b4..75a1db0c 100644 --- a/packages/trpc/routers/users.ts +++ b/packages/trpc/routers/users.ts @@ -3,21 +3,21 @@ import { and, count, eq } from "drizzle-orm"; import invariant from "tiny-invariant"; import { z } from "zod"; -import { SqliteError } from "@hoarder/db"; +import { SqliteError } from "@karakeep/db"; import { bookmarkLists, bookmarks, bookmarkTags, highlights, users, -} from "@hoarder/db/schema"; -import { deleteUserAssets } from "@hoarder/shared/assetdb"; -import serverConfig from "@hoarder/shared/config"; +} from "@karakeep/db/schema"; +import { deleteUserAssets } from "@karakeep/shared/assetdb"; +import serverConfig from "@karakeep/shared/config"; import { zSignUpSchema, zUserStatsResponseSchema, zWhoAmIResponseSchema, -} from "@hoarder/shared/types/users"; +} from "@karakeep/shared/types/users"; import { hashPassword, validatePassword } from "../auth"; import { diff --git a/packages/trpc/routers/webhooks.ts b/packages/trpc/routers/webhooks.ts index 173e4f5a..ab2a6908 100644 --- a/packages/trpc/routers/webhooks.ts +++ b/packages/trpc/routers/webhooks.ts @@ -2,12 +2,12 @@ import { experimental_trpcMiddleware, TRPCError } from "@trpc/server"; import { and, eq } from "drizzle-orm"; import { z } from "zod"; -import { webhooksTable } from "@hoarder/db/schema"; +import { webhooksTable } from "@karakeep/db/schema"; import { zNewWebhookSchema, zUpdateWebhookSchema, zWebhookSchema, -} from "@hoarder/shared/types/webhooks"; +} from "@karakeep/shared/types/webhooks"; import { authedProcedure, Context, router } from "../index"; |
