Uecko_ERP/modules/customers/src/common/dto/response/customer-created.response.dto.ts

18 lines
522 B
TypeScript
Raw Normal View History

2025-08-11 17:49:52 +00:00
import { MetadataSchema } from "@erp/core";
import * as z from "zod/v4";
export const CustomerCreatedResponseSchema = z.object({
id: z.uuid(),
invoice_status: z.string(),
invoice_number: z.string(),
invoice_series: z.string(),
issue_date: z.iso.datetime({ offset: true }),
operation_date: z.iso.datetime({ offset: true }),
language_code: z.string(),
currency: z.string(),
metadata: MetadataSchema.optional(),
});
export type CustomerCreatedResponseDTO = z.infer<typeof CustomerCreatedResponseSchema>;