diff --git a/apps/desktop/src/routes/(window-chrome)/(main).tsx b/apps/desktop/src/routes/(window-chrome)/(main).tsx index 3790b6d9..f74525f9 100644 --- a/apps/desktop/src/routes/(window-chrome)/(main).tsx +++ b/apps/desktop/src/routes/(window-chrome)/(main).tsx @@ -56,7 +56,7 @@ const getAuth = cache(async () => { return redirect("/signin"); } - const res = await apiClient.getUserPlan({ + const res = await apiClient.desktop.getUserPlan({ headers: await protectedHeaders(), }); if (res.status !== 200 && !local) return redirect("/signin"); @@ -780,7 +780,7 @@ function ChangelogButton() { if (!version) { return { hasUpdate: false }; } - const response = await apiClient.getChangelogStatus({ + const response = await apiClient.desktop.getChangelogStatus({ query: { version }, }); if (response.status === 200) return response.body; diff --git a/apps/desktop/src/routes/(window-chrome)/settings/apps/s3-config.tsx b/apps/desktop/src/routes/(window-chrome)/settings/apps/s3-config.tsx index 1b32d1c1..416eb4a5 100644 --- a/apps/desktop/src/routes/(window-chrome)/settings/apps/s3-config.tsx +++ b/apps/desktop/src/routes/(window-chrome)/settings/apps/s3-config.tsx @@ -59,7 +59,7 @@ export default function S3ConfigPage() { onMount(async () => { try { - const response = await apiClient.getS3Config({ + const response = await apiClient.desktop.getS3Config({ headers: await protectedHeaders(), }); @@ -89,7 +89,7 @@ export default function S3ConfigPage() { const handleSave = async () => { setSaving(true); try { - const response = await apiClient.setS3Config({ + const response = await apiClient.desktop.setS3Config({ body: { provider: provider(), accessKeyId: accessKeyId(), @@ -120,7 +120,7 @@ export default function S3ConfigPage() { const handleDelete = async () => { setDeleting(true); try { - const response = await apiClient.deleteS3Config({ + const response = await apiClient.desktop.deleteS3Config({ headers: await protectedHeaders(), }); @@ -146,7 +146,7 @@ export default function S3ConfigPage() { const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), 5500); // 5.5s timeout (slightly longer than backend) - const response = await apiClient.testS3Config({ + const response = await apiClient.desktop.testS3Config({ body: { provider: provider(), accessKeyId: accessKeyId(), diff --git a/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx index 08d1df03..39e5f0ae 100644 --- a/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx +++ b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx @@ -10,7 +10,7 @@ export default function Page() { const changelog = createQuery(() => ({ queryKey: ["changelog"], queryFn: async () => { - const response = await apiClient.getChangelogPosts({ + const response = await apiClient.desktop.getChangelogPosts({ query: { origin: window.location.origin }, }); diff --git a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx index 32df97ce..731af6f8 100644 --- a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx +++ b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx @@ -5,7 +5,7 @@ import { action, useAction, useSubmission } from "@solidjs/router"; import { apiClient, protectedHeaders } from "~/utils/web-api"; const sendFeedbackAction = action(async (feedback: string) => { - const response = await apiClient.submitDesktopFeedback({ + const response = await apiClient.desktop.submitFeedback({ body: { feedback }, headers: await protectedHeaders(), }); diff --git a/apps/desktop/src/routes/(window-chrome)/upgrade.tsx b/apps/desktop/src/routes/(window-chrome)/upgrade.tsx index 791e8ad7..6660cbf3 100644 --- a/apps/desktop/src/routes/(window-chrome)/upgrade.tsx +++ b/apps/desktop/src/routes/(window-chrome)/upgrade.tsx @@ -40,7 +40,7 @@ export default function Page() { return; } - const response = await apiClient.getProSubscribeURL({ + const response = await apiClient.desktop.getProSubscribeURL({ body: { priceId: planId }, headers: await protectedHeaders(), }); diff --git a/apps/desktop/src/routes/camera.tsx b/apps/desktop/src/routes/camera.tsx index c3f7f760..9b7c52d6 100644 --- a/apps/desktop/src/routes/camera.tsx +++ b/apps/desktop/src/routes/camera.tsx @@ -138,7 +138,7 @@ export default function () {