mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +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]>
74 lines
2.8 KiB
TypeScript
74 lines
2.8 KiB
TypeScript
import { ZVerifyCodeInputSchema } from "@calcom/prisma/zod-utils";
|
|
|
|
import authedProcedure from "../../../procedures/authedProcedure";
|
|
import publicProcedure from "../../../procedures/publicProcedure";
|
|
import { router } from "../../../trpc";
|
|
import { ZChangePasswordInputSchema } from "./changePassword.schema";
|
|
import { ZResendVerifyEmailSchema } from "./resendVerifyEmail.schema";
|
|
import { ZSendVerifyEmailCodeSchema } from "./sendVerifyEmailCode.schema";
|
|
import { ZVerifyPasswordInputSchema } from "./verifyPassword.schema";
|
|
|
|
type AuthRouterHandlerCache = {
|
|
changePassword?: typeof import("./changePassword.handler").changePasswordHandler;
|
|
verifyPassword?: typeof import("./verifyPassword.handler").verifyPasswordHandler;
|
|
verifyCodeUnAuthenticated?: typeof import("./verifyCodeUnAuthenticated.handler").verifyCodeUnAuthenticatedHandler;
|
|
resendVerifyEmail?: typeof import("./resendVerifyEmail.handler").resendVerifyEmail;
|
|
sendVerifyEmailCode?: typeof import("./sendVerifyEmailCode.handler").sendVerifyEmailCodeHandler;
|
|
resendVerifySecondaryEmail?: typeof import("./resendVerifyEmail.handler").resendVerifyEmail;
|
|
createAccountPassword?: typeof import("./createAccountPassword.handler").createAccountPasswordHandler;
|
|
};
|
|
|
|
export const authRouter = router({
|
|
changePassword: authedProcedure.input(ZChangePasswordInputSchema).mutation(async ({ input, ctx }) => {
|
|
const { changePasswordHandler } = await import("./changePassword.handler");
|
|
|
|
return changePasswordHandler({
|
|
ctx,
|
|
input,
|
|
});
|
|
}),
|
|
|
|
verifyPassword: authedProcedure.input(ZVerifyPasswordInputSchema).mutation(async ({ input, ctx }) => {
|
|
const { verifyPasswordHandler } = await import("./verifyPassword.handler");
|
|
|
|
return verifyPasswordHandler({
|
|
ctx,
|
|
input,
|
|
});
|
|
}),
|
|
|
|
verifyCodeUnAuthenticated: publicProcedure.input(ZVerifyCodeInputSchema).mutation(async ({ input }) => {
|
|
const { verifyCodeUnAuthenticatedHandler } = await import("./verifyCodeUnAuthenticated.handler");
|
|
|
|
return verifyCodeUnAuthenticatedHandler({
|
|
input,
|
|
});
|
|
}),
|
|
|
|
sendVerifyEmailCode: publicProcedure.input(ZSendVerifyEmailCodeSchema).mutation(async ({ input, ctx }) => {
|
|
const { sendVerifyEmailCodeHandler } = await import("./sendVerifyEmailCode.handler");
|
|
|
|
return sendVerifyEmailCodeHandler({
|
|
input,
|
|
req: ctx.req,
|
|
});
|
|
}),
|
|
|
|
resendVerifyEmail: authedProcedure.input(ZResendVerifyEmailSchema).mutation(async ({ input, ctx }) => {
|
|
const { resendVerifyEmail } = await import("./resendVerifyEmail.handler");
|
|
|
|
return resendVerifyEmail({
|
|
input,
|
|
ctx,
|
|
});
|
|
}),
|
|
|
|
createAccountPassword: authedProcedure.mutation(async ({ ctx }) => {
|
|
const { createAccountPasswordHandler } = await import("./createAccountPassword.handler");
|
|
|
|
return createAccountPasswordHandler({
|
|
ctx,
|
|
});
|
|
}),
|
|
});
|