2025-09-24 17:30:35 +00:00
|
|
|
import { z } from "zod/v4";
|
2025-09-24 10:34:04 +00:00
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
CreateCustomerRequestSchema,
|
|
|
|
|
GetCustomerByIdResponseSchema,
|
2025-09-24 15:09:37 +00:00
|
|
|
ListCustomersResponseDTO,
|
2025-09-24 10:34:04 +00:00
|
|
|
UpdateCustomerByIdRequestSchema,
|
2025-09-29 18:22:59 +00:00
|
|
|
} from "../../common";
|
2025-09-22 17:43:55 +00:00
|
|
|
|
|
|
|
|
export const CustomerCreateSchema = CreateCustomerRequestSchema;
|
|
|
|
|
export const CustomerUpdateSchema = UpdateCustomerByIdRequestSchema;
|
2025-09-24 10:34:04 +00:00
|
|
|
export const CustomerSchema = GetCustomerByIdResponseSchema.omit({
|
|
|
|
|
metadata: true,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export type CustomerData = z.infer<typeof CustomerSchema>;
|
2025-09-24 15:09:37 +00:00
|
|
|
|
|
|
|
|
export type CustomersListData = ListCustomersResponseDTO;
|