FactuGES_ERP/modules/customers/src/common/dto/response/customer-creation.result.dto.ts

35 lines
735 B
TypeScript

import { MetadataSchema } from "@erp/core";
import * as z from "zod/v4";
export const CustomerCreationResponseSchema = z.object({
id: z.uuid(),
reference: z.string(),
is_freelancer: z.boolean(),
name: z.string(),
trade_name: z.string(),
tin: z.string(),
street: z.string(),
city: z.string(),
state: z.string(),
postal_code: z.string(),
country: z.string(),
email: z.string(),
phone: z.string(),
fax: z.string(),
website: z.string(),
legal_record: z.string(),
default_tax: z.number(),
status: z.string(),
lang_code: z.string(),
currency_code: z.string(),
metadata: MetadataSchema.optional(),
});
export type CustomerCreationResponseDTO = z.infer<typeof CustomerCreationResponseSchema>;