chore: remove TRPC barrel exports (#19598)

* remove barrel export for client

* fix more imports

* remove server barrel

* remove more barrel exporst and fix tssconfig

* fix types

* fix imports for removed barrels

* fig ssg createserverside helpers

* restore lock

* new yarn lock

* remove barel exports

* remove barrel

* replace client with react in tsconfig

* fix yarn lock

* Update exports for trpc to not be types

* add ENDPOINTS export to the correct location

* other exports fixes lost due to barrel

* fix client error export

* more imports

---------

Co-authored-by: hbjORbj <[email protected]>
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-03-03 15:33:32 -03:00
1 parent 5a6a13b954
commit bec83b2342
46 files changed
+89 -67

No files matched your search

@@ -10,9 +10,10 @@ import { getQueryParam } from "@calcom/features/bookings/Booker/utils/query-para
import { WEBAPP_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc";
import { TRPCClientError } from "@calcom/trpc/react";
import { Button, EmptyScreen, Alert } from "@calcom/ui";
import { TRPCClientError } from "@trpc/client";
function ConnectAndJoin() {
const { t } = useLocale();
const router = useRouter();
@@ -28,7 +28,7 @@ import { HttpError } from "@calcom/lib/http-error";
import type { MembershipRole } from "@calcom/prisma/enums";
import { SchedulingType } from "@calcom/prisma/enums";
import type { RouterOutputs } from "@calcom/trpc/react";
import { trpc, TRPCClientError } from "@calcom/trpc/react";
import { trpc } from "@calcom/trpc/react";
import {
Alert,
Badge,
@@ -60,6 +60,8 @@ import classNames from "@calcom/ui/classNames";
import useMeQuery from "@lib/hooks/useMeQuery";
import { TRPCClientError } from "@trpc/client";
type GetUserEventGroupsResponse = RouterOutputs["viewer"]["eventTypes"]["getUserEventGroups"];
type GetEventTypesFromGroupsResponse = RouterOutputs["viewer"]["eventTypes"]["getEventTypesFromGroup"];
@@ -19,7 +19,6 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
import { md } from "@calcom/lib/markdownIt";
import turndown from "@calcom/lib/turndownService";
import { IdentityProvider } from "@calcom/prisma/enums";
import type { TRPCClientErrorLike } from "@calcom/trpc/client";
import type { RouterOutputs } from "@calcom/trpc/react";
import { trpc } from "@calcom/trpc/react";
import type { AppRouter } from "@calcom/trpc/server/routers/_app";
@@ -51,6 +50,8 @@ import SecondaryEmailConfirmModal from "@components/settings/SecondaryEmailConfi
import SecondaryEmailModal from "@components/settings/SecondaryEmailModal";
import { UsernameAvailabilityField } from "@components/ui/UsernameAvailability";
import type { TRPCClientErrorLike } from "@trpc/client";
const SkeletonLoader = () => {
return (
<SkeletonContainer>