* 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>
26 lines
1.0 KiB
TypeScript
26 lines
1.0 KiB
TypeScript
import authedProcedure from "../../../procedures/authedProcedure";
|
|
import publicProcedure from "../../../procedures/publicProcedure";
|
|
import { router } from "../../../trpc";
|
|
import { ZFindTeamMembersMatchingAttributeLogicOfRouteInputSchema } from "./findTeamMembersMatchingAttributeLogicOfRoute.schema";
|
|
import { ZResponseInputSchema } from "./response.schema";
|
|
|
|
const NAMESPACE = "routingForms";
|
|
|
|
const namespaced = (s: string) => `${NAMESPACE}.${s}`;
|
|
|
|
export const routingFormsRouter = router({
|
|
findTeamMembersMatchingAttributeLogicOfRoute: authedProcedure
|
|
.input(ZFindTeamMembersMatchingAttributeLogicOfRouteInputSchema)
|
|
.mutation(async ({ ctx, input }) => {
|
|
const { default: handler } = await import("./findTeamMembersMatchingAttributeLogicOfRoute.handler");
|
|
return handler({ ctx, input });
|
|
}),
|
|
|
|
public: router({
|
|
response: publicProcedure.input(ZResponseInputSchema).mutation(async ({ ctx, input }) => {
|
|
const { default: handler } = await import("./response.handler");
|
|
return handler({ ctx, input });
|
|
}),
|
|
}),
|
|
});
|