- Changed TypeScript target and library settings in tsconfig files to align with ESNext standards. - Updated pnpm version in GitHub workflows for better dependency management. - Modified Dockerfile to reflect the updated pnpm version. - Adjusted import statements across various domain modules to include file extensions for consistency and compatibility. - Cleaned up TypeScript configuration files for improved clarity and organization.
15 lines
396 B
TypeScript
15 lines
396 B
TypeScript
import type { z } from "zod";
|
|
|
|
import { signupRequestSchema } from "./schema.js";
|
|
|
|
type SignupRequestInput = z.input<typeof signupRequestSchema>;
|
|
|
|
/**
|
|
* Convert signup form input into the canonical API payload.
|
|
* Reuses domain schema transformation to avoid frontend duplication.
|
|
*/
|
|
export function buildSignupRequest(input: SignupRequestInput) {
|
|
return signupRequestSchema.parse(input);
|
|
}
|
|
|