fix(deps): update dependency zod to ^4.3.5 - abandoned (#4803)

* fix(deps): update dependency zod to ^4.3.5

* fix: omit can not be used with refine

* fix: convert intersection to object due to trpc-openapi issue

* fix: remove omit after refine

---------

Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
homarr-renovate[bot]andMeier Lukas authored and GitHub committed 2026-03-30 23:11:14 +02:00
1 parent 336c55b3e9
commit 2b4c83dcca
19 files changed
+93 -89

No files matched your search

+10 -6
View File
@@ -57,12 +57,13 @@ export const userBaseCreateSchema = z.object({
password: userPasswordSchema,
confirmPassword: z.string(),
email: z.string().email().or(z.string().length(0)).optional(),
groupIds: z.array(z.string()),
});
export const userCreateSchema = addConfirmPasswordRefinement(userBaseCreateSchema);
export const userCreateSchema = addConfirmPasswordRefinement(userBaseCreateSchema).and(
z.object({ groupIds: z.array(z.string()) }),
);
export const userInitSchema = addConfirmPasswordRefinement(userBaseCreateSchema.omit({ groupIds: true }));
export const userInitSchema = addConfirmPasswordRefinement(userBaseCreateSchema);
export const userSignInSchema = z.object({
name: z.string().min(1),
@@ -111,12 +112,15 @@ const baseChangePasswordSchema = z.object({
previousPassword: z.string().min(1),
password: userPasswordSchema,
confirmPassword: z.string(),
userId: z.string(),
});
export const userChangePasswordSchema = addConfirmPasswordRefinement(baseChangePasswordSchema.omit({ userId: true }));
export const userChangePasswordSchema = addConfirmPasswordRefinement(baseChangePasswordSchema);
export const userChangePasswordApiSchema = addConfirmPasswordRefinement(baseChangePasswordSchema);
export const userChangePasswordApiSchema = addConfirmPasswordRefinement(baseChangePasswordSchema).and(
z.object({
userId: z.string(),
}),
);
export const userChangeHomeBoardsSchema = z.object({
homeBoardId: z.string().nullable(),