FactuGES_ERP/modules/customer-invoices/src/web/schemas/customer-invoices.api.schema.ts
2025-09-29 20:22:59 +02:00

19 lines
629 B
TypeScript

import { z } from "zod/v4";
import {
CreateCustomerInvoiceRequestSchema,
GetCustomerInvoiceByIdResponseSchema,
ListCustomerInvoicesResponseDTO,
UpdateCustomerInvoiceByIdRequestSchema,
} from "../../common";
export const CustomerInvoiceCreateSchema = CreateCustomerInvoiceRequestSchema;
export const CustomerInvoiceUpdateSchema = UpdateCustomerInvoiceByIdRequestSchema;
export const CustomerInvoiceSchema = GetCustomerInvoiceByIdResponseSchema.omit({
metadata: true,
});
export type CustomerInvoiceData = z.infer<typeof CustomerInvoiceSchema>;
export type CustomerInvoicesListData = ListCustomerInvoicesResponseDTO;