18 lines
522 B
TypeScript
18 lines
522 B
TypeScript
|
|
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>;
|