admin: Superforms + Zod validation, three-address-defaults schema, profiles toast fix
- Add Superforms + Zod 4 for all admin form validation - Replace address isDefault with three separate boolean defaults (Mailing, Billing, Shipping) - Update profiles page with three-checkbox address form and toast improvements - Convert all admin page server actions to pass request directly to crud - Export superFormErrorsToFieldErrors helper for profiles server actions - Regenerate Prisma client for new schema fields
This commit is contained in:
@@ -213,7 +213,7 @@ export type UserGroupByOutputType = {
|
||||
_max: UserMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
|
||||
export type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
|
||||
Array<
|
||||
Prisma.PickEnumerable<UserGroupByOutputType, T['by']> &
|
||||
{
|
||||
@@ -1883,6 +1883,11 @@ export type UserFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
* Skip the first `n` Users.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of Users.
|
||||
*/
|
||||
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user