Files
calendar/packages/trpc/server/routers/viewer/googleWorkspace/_router.tsx
T
Keith WilliamsGitHubDevin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>keith@cal.com <keith@cal.com>Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>keith@cal.com <keith@cal.com>keith@cal.com <keith@cal.com>keith@cal.com <keith@cal.com>devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>keith@cal.com <keith@cal.com>
6615b885d1 chore: Make app compatible with Fluid Compute (#19841)
* chore: Make app compatible with Fluid Compute

* Removed isCold from me api endpoint

* chore: Remove handler caching for Fluid Compute compatibility (#20692)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: keith@cal.com <keith@cal.com>

* fix client_id issue

* chore: Remove UNSTABLE_HANDLER_CACHE for Fluid Compute compatibility (#20694)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: keith@cal.com <keith@cal.com>

* Fixing types

* Fixing type issues

* chore: Remove importHandler references for Fluid Compute compatibility

Co-Authored-By: keith@cal.com <keith@cal.com>

* chore: Remove importHandler references from attributes router for Fluid Compute compatibility

Co-Authored-By: keith@cal.com <keith@cal.com>

---------

Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: keith@cal.com <keith@cal.com>
2025-04-14 18:27:59 -04:00

33 lines
1.2 KiB
TypeScript

import authedProcedure from "../../../procedures/authedProcedure";
import { router } from "../../../trpc";
type GoogleWorkspaceCache = {
checkForGWorkspace?: typeof import("./googleWorkspace.handler").checkForGWorkspace;
getUsersFromGWorkspace?: typeof import("./googleWorkspace.handler").getUsersFromGWorkspace;
removeCurrentGoogleWorkspaceConnection?: typeof import("./googleWorkspace.handler").removeCurrentGoogleWorkspaceConnection;
};
export const googleWorkspaceRouter = router({
checkForGWorkspace: authedProcedure.query(async ({ ctx }) => {
const { checkForGWorkspace } = await import("./googleWorkspace.handler");
return checkForGWorkspace({
ctx,
});
}),
getUsersFromGWorkspace: authedProcedure.mutation(async ({ ctx }) => {
const { getUsersFromGWorkspace } = await import("./googleWorkspace.handler");
return getUsersFromGWorkspace({
ctx,
});
}),
removeCurrentGoogleWorkspaceConnection: authedProcedure.mutation(async ({ ctx }) => {
const { removeCurrentGoogleWorkspaceConnection } = await import("./googleWorkspace.handler");
return removeCurrentGoogleWorkspaceConnection({
ctx,
});
}),
});