import { z } from "zod/v4";

import {
  CreateCustomerRequestSchema,
  GetCustomerByIdResponseSchema,
  ListCustomersResponseDTO,
  UpdateCustomerByIdRequestSchema,
} from "@erp/customers";

export const CustomerCreateSchema = CreateCustomerRequestSchema;
export const CustomerUpdateSchema = UpdateCustomerByIdRequestSchema;
export const CustomerSchema = GetCustomerByIdResponseSchema.omit({
  metadata: true,
});

export type CustomerData = z.infer<typeof CustomerSchema>;

export type CustomersListData = ListCustomersResponseDTO;
