2025-09-24 17:30:35 +00:00
|
|
|
import { z } from "zod/v4";
|
2025-09-24 15:09:37 +00:00
|
|
|
|
2025-09-24 17:30:35 +00:00
|
|
|
import {
|
2025-09-29 18:22:59 +00:00
|
|
|
CreateCustomerInvoiceRequestSchema,
|
2025-09-24 17:30:35 +00:00
|
|
|
GetCustomerInvoiceByIdResponseSchema,
|
|
|
|
|
ListCustomerInvoicesResponseDTO,
|
2025-09-29 18:22:59 +00:00
|
|
|
UpdateCustomerInvoiceByIdRequestSchema,
|
|
|
|
|
} from "../../common";
|
2025-09-24 15:09:37 +00:00
|
|
|
|
2025-09-29 18:22:59 +00:00
|
|
|
export const CustomerInvoiceCreateSchema = CreateCustomerInvoiceRequestSchema;
|
|
|
|
|
export const CustomerInvoiceUpdateSchema = UpdateCustomerInvoiceByIdRequestSchema;
|
|
|
|
|
export const CustomerInvoiceSchema = GetCustomerInvoiceByIdResponseSchema.omit({
|
2025-09-24 15:09:37 +00:00
|
|
|
metadata: true,
|
|
|
|
|
});
|
|
|
|
|
|
2025-09-29 18:22:59 +00:00
|
|
|
export type CustomerInvoiceData = z.infer<typeof CustomerInvoiceSchema>;
|
2025-09-24 15:09:37 +00:00
|
|
|
|
|
|
|
|
export type CustomerInvoicesListData = ListCustomerInvoicesResponseDTO;
|