add more data
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import { phoneSchema } from './common';
|
||||
import { offsetPageQuerySchema } from './pagination';
|
||||
|
||||
/**
|
||||
* The shopper's own profile.
|
||||
@@ -40,3 +41,10 @@ export const wishlistItemSchema = z.object({
|
||||
export type UpdateProfileInput = z.output<typeof updateProfileSchema>;
|
||||
export type CustomerAddressInput = z.output<typeof customerAddressSchema>;
|
||||
export type WishlistItemInput = z.output<typeof wishlistItemSchema>;
|
||||
|
||||
/** Back-office customer search. */
|
||||
export const customerListQuerySchema = offsetPageQuerySchema.extend({
|
||||
q: z.string().trim().max(120).optional(),
|
||||
});
|
||||
|
||||
export type CustomerListQuery = z.output<typeof customerListQuerySchema>;
|
||||
|
||||
Reference in New Issue
Block a user