mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
* 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: [email protected] <[email protected]> * 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: [email protected] <[email protected]> * Fixing types * Fixing type issues * chore: Remove importHandler references for Fluid Compute compatibility Co-Authored-By: [email protected] <[email protected]> * chore: Remove importHandler references from attributes router for Fluid Compute compatibility Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]>
33 lines
1.2 KiB
TypeScript
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,
|
|
});
|
|
}),
|
|
});
|