diff --git a/ui/apps/console/openapi-ts.config.ts b/ui/apps/console/openapi-ts.config.ts index 8a3557e06de..6cad7d0c68b 100644 --- a/ui/apps/console/openapi-ts.config.ts +++ b/ui/apps/console/openapi-ts.config.ts @@ -6,7 +6,9 @@ if (!input) { // generating from its URL produces a client missing the other editions' // schemas. Use `npm run generate -w @shellhub/console`, which bundles the // combined spec before invoking openapi-ts. - throw new Error("OPENAPI_SPEC_PATH is not set; run `npm run generate -w @shellhub/console`."); + throw new Error( + "OPENAPI_SPEC_PATH is not set; run `npm run generate -w @shellhub/console`.", + ); } export default defineConfig({ @@ -23,6 +25,7 @@ export default defineConfig({ name: "@tanstack/react-query", queryOptions: true, mutationOptions: true, + includeInEntry: true, }, ], }); diff --git a/ui/apps/console/src/components/ConnectDrawer.tsx b/ui/apps/console/src/components/ConnectDrawer.tsx index 89427e49b01..e14da4a14d5 100644 --- a/ui/apps/console/src/components/ConnectDrawer.tsx +++ b/ui/apps/console/src/components/ConnectDrawer.tsx @@ -25,7 +25,7 @@ import { import { BROWSER_KEY_QUERY_KEY } from "@/hooks/useBrowserKey"; import { isRecordingSupported } from "../utils/recordings"; import { isAlreadyEnrolled } from "../utils/sshIdentity"; -import { listSshIdentitiesOptions } from "../client/@tanstack/react-query.gen"; +import { listSshIdentitiesOptions } from "../client"; import BrowserEnrollDialog from "./terminal/BrowserEnrollDialog"; import CopyButton from "./common/CopyButton"; import Drawer from "./common/Drawer"; diff --git a/ui/apps/console/src/components/billing/BillingSection.tsx b/ui/apps/console/src/components/billing/BillingSection.tsx index 77edc5cc901..840f69f1816 100644 --- a/ui/apps/console/src/components/billing/BillingSection.tsx +++ b/ui/apps/console/src/components/billing/BillingSection.tsx @@ -14,7 +14,7 @@ import { useNamespace } from "@/hooks/useNamespaces"; import { useOpenBillingPortal, useSubscription } from "@/hooks/useBilling"; import { useInvalidateByIds } from "@/hooks/useInvalidateQueries"; import { formatExpiry } from "@/utils/date"; -import type { BillingStatus } from "@/client/types.gen"; +import type { BillingStatus } from "@/client"; import { cn } from "@shellhub/design-system/cn"; import { Button } from "@shellhub/design-system/primitives"; @@ -157,7 +157,10 @@ function SectionRow({ function StatusBadge({ status }: { status: BillingStatus }) { return ( {STATUS_LABEL[status]} @@ -277,7 +280,10 @@ export default function BillingSection({ sectionId }: BillingSectionProps) {