add more data

This commit is contained in:
Nông Đức Huy
2026-08-13 23:20:23 +07:00
parent 8fd23d162f
commit 57f44796ce
20 changed files with 1436 additions and 18 deletions
+8
View File
@@ -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>;