UNPKG

facturacionelectronicapy-ts-xmlgen

Version:

Genera el contenido del archivo XML del Documento electrónico exigido por la SET

134 lines (133 loc) 6.16 kB
import { z } from 'zod'; import { IdentityDocumentCarrier } from '../../data/idDocsCarriers.table'; import { TaxpayerNotTaxpayer } from '../../data/taxpayerNotTaxpayer.table'; /**E10.4. Campos que identifican al transportista (persona física o jurídica) (E980-E999) */ export declare const TransportistaSchema: z.ZodEffects<z.ZodObject<{ contribuyente: z.ZodEffects<z.ZodBoolean, TaxpayerNotTaxpayer, boolean>; nombre: z.ZodString; ruc: z.ZodEffects<z.ZodString, string, string>; documentoTipo: z.ZodOptional<z.ZodNativeEnum<typeof IdentityDocumentCarrier>>; documentoNumero: z.ZodOptional<z.ZodString>; pais: z.ZodNativeEnum<typeof import("../../types").Country>; chofer: z.ZodObject<{ documentoNumero: z.ZodString; nombre: z.ZodString; direccion: z.ZodString; }, "strip", z.ZodTypeAny, { documentoNumero: string; nombre: string; direccion: string; }, { documentoNumero: string; nombre: string; direccion: string; }>; direccion: z.ZodString; agente: z.ZodOptional<z.ZodEffects<z.ZodObject<{ nombre: z.ZodOptional<z.ZodString>; ruc: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>; direccion: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { nombre?: string | undefined; direccion?: string | undefined; ruc?: string | undefined; }, { nombre?: string | undefined; direccion?: string | undefined; ruc?: string | undefined; }>, { rucID: string; rucDV: string; nombre?: string | undefined; direccion?: string | undefined; ruc?: string | undefined; }, { nombre?: string | undefined; direccion?: string | undefined; ruc?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { pais: import("../../types").Country; nombre: string; direccion: string; contribuyente: TaxpayerNotTaxpayer; ruc: string; chofer: { documentoNumero: string; nombre: string; direccion: string; }; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; agente?: { rucID: string; rucDV: string; nombre?: string | undefined; direccion?: string | undefined; ruc?: string | undefined; } | undefined; }, { pais: import("../../types").Country; nombre: string; direccion: string; contribuyente: boolean; ruc: string; chofer: { documentoNumero: string; nombre: string; direccion: string; }; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; agente?: { nombre?: string | undefined; direccion?: string | undefined; ruc?: string | undefined; } | undefined; }>, { rucID: string; rucDV: string; documentoTipoDescripcion: string | undefined; paisDescripcion: Required<{ description?: string | undefined; _id?: "BTN" | "CHE" | "CYP" | "MKD" | "TWN" | "DZA" | "EGY" | "LBY" | "MAR" | "SDN" | "TUN" | "ESH" | "IOT" | "BDI" | "COM" | "DJI" | "ERI" | "ETH" | "ATF" | "KEN" | "MDG" | "MWI" | "MUS" | "MYT" | "MOZ" | "REU" | "RWA" | "SYC" | "SOM" | "SSD" | "UGA" | "TZA" | "ZMB" | "ZWE" | "AGO" | "CMR" | "CAF" | "TCD" | "COG" | "COD" | "GNQ" | "GAB" | "STP" | "BWA" | "LSO" | "NAM" | "ZAF" | "SWZ" | "BEN" | "BFA" | "CPV" | "CIV" | "GMB" | "GHA" | "GIN" | "GNB" | "LBR" | "MLI" | "MRT" | "NER" | "NGA" | "SHN" | "SEN" | "SLE" | "TGO" | "AIA" | "ATG" | "ABW" | "BHS" | "BRB" | "BES" | "VGB" | "CYM" | "CUB" | "CUW" | "DMA" | "DOM" | "GRD" | "GLP" | "HTI" | "JAM" | "MTQ" | "MSR" | "PRI" | "BLM" | "KNA" | "LCA" | "MAF" | "VCT" | "SXM" | "TTO" | "TCA" | "VIR" | "BLZ" | "CRI" | "SLV" | "GTM" | "HND" | "MEX" | "NIC" | "PAN" | "ARG" | "BOL" | "BRA" | "CHL" | "COL" | "ECU" | "FLK" | "GUF" | "GUY" | "PRY" | "PER" | "SGS" | "SUR" | "URY" | "VEN" | "BMU" | "CAN" | "GRL" | "SPM" | "USA" | "ATA" | "KAZ" | "KGZ" | "TJK" | "TKM" | "UZB" | "CHN" | "HKG" | "MAC" | "PRK" | "JPN" | "MNG" | "KOR" | "BRN" | "KHM" | "IDN" | "LAO" | "MYS" | "MMR" | "PHL" | "SGP" | "THA" | "TLS" | "VNM" | "AFG" | "BGD" | "IND" | "IRN" | "MDV" | "NPL" | "PAK" | "LKA" | "ARM" | "AZE" | "BHR" | "GEO" | "IRQ" | "ISR" | "JOR" | "KWT" | "LBN" | "OMN" | "QAT" | "SAU" | "PSE" | "SYR" | "TUR" | "ARE" | "YEM" | "BLR" | "BGR" | "CZE" | "HUN" | "POL" | "MDA" | "ROU" | "RUS" | "SVK" | "UKR" | "ALA" | "GGY" | "JEY" | "DNK" | "EST" | "FRO" | "FIN" | "ISL" | "IRL" | "IMN" | "LVA" | "LTU" | "NOR" | "SJM" | "SWE" | "GBR" | "ALB" | "AND" | "BIH" | "HRV" | "GIB" | "GRC" | "VAT" | "ITA" | "MLT" | "MNE" | "PRT" | "SMR" | "SRB" | "SVN" | "ESP" | "AUT" | "BEL" | "FRA" | "DEU" | "LIE" | "LUX" | "MCO" | "NLD" | "AUS" | "CXR" | "CCK" | "HMD" | "NZL" | "NFK" | "FJI" | "NCL" | "PNG" | "SLB" | "VUT" | "GUM" | "KIR" | "MHL" | "FSM" | "NRU" | "MNP" | "PLW" | "UMI" | "ASM" | "COK" | "PYF" | "NIU" | "PCN" | "WSM" | "TKL" | "TON" | "TUV" | "WLF" | "NN" | undefined; }>; pais: import("../../types").Country; nombre: string; direccion: string; contribuyente: TaxpayerNotTaxpayer; ruc: string; chofer: { documentoNumero: string; nombre: string; direccion: string; }; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; agente?: { rucID: string; rucDV: string; nombre?: string | undefined; direccion?: string | undefined; ruc?: string | undefined; } | undefined; }, { pais: import("../../types").Country; nombre: string; direccion: string; contribuyente: boolean; ruc: string; chofer: { documentoNumero: string; nombre: string; direccion: string; }; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; agente?: { nombre?: string | undefined; direccion?: string | undefined; ruc?: string | undefined; } | undefined; }>; export type Transportista = z.infer<typeof TransportistaSchema>;