UNPKG

facturacionelectronicapy-ts-xmlgen

Version:

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

124 lines (123 loc) • 5.15 kB
import { z } from 'zod'; import { OperationTypeNoB2G } from '../../data/operationTypes.table'; import { TaxpayerType } from '../../data/taxpayerTypes.table'; import { TaxpayerNotTaxpayer } from '../../data/taxpayerNotTaxpayer.table'; import { IdentityDocForNominationEvent } from '../../data/idDocsForNominationEvent.table'; export declare const NominationEventSchema: z.ZodEffects<z.ZodObject<{ cdc: z.ZodString; motive: z.ZodString; contribuyente: z.ZodEffects<z.ZodBoolean, TaxpayerNotTaxpayer, boolean>; pais: z.ZodNativeEnum<typeof import("../../types").Country>; tipoReceptor: z.ZodOptional<z.ZodNativeEnum<typeof TaxpayerType>>; ruc: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>; documentoTipo: z.ZodOptional<z.ZodNativeEnum<typeof IdentityDocForNominationEvent>>; descripcionTipoDocumento: z.ZodOptional<z.ZodString>; documentoNumero: z.ZodOptional<z.ZodString>; razonSocial: z.ZodOptional<z.ZodString>; nombreFantasia: z.ZodOptional<z.ZodString>; direccion: z.ZodOptional<z.ZodString>; numeroCasa: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>; departamento: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").Department>>; distrito: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>; ciudad: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>; telefono: z.ZodOptional<z.ZodString>; celular: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; codigo: z.ZodOptional<z.ZodString>; tipoOperacion: z.ZodNativeEnum<typeof OperationTypeNoB2G>; }, "strip", z.ZodTypeAny, { pais: import("../../types").Country; contribuyente: TaxpayerNotTaxpayer; tipoOperacion: OperationTypeNoB2G; cdc: string; motive: string; email?: string | undefined; distrito?: number | undefined; codigo?: string | undefined; departamento?: import("../../types").Department | undefined; ciudad?: number | undefined; documentoTipo?: IdentityDocForNominationEvent | undefined; documentoNumero?: string | undefined; direccion?: string | undefined; numeroCasa?: number | undefined; ruc?: string | undefined; descripcionTipoDocumento?: string | undefined; razonSocial?: string | undefined; nombreFantasia?: string | undefined; telefono?: string | undefined; celular?: string | undefined; tipoReceptor?: TaxpayerType | undefined; }, { pais: import("../../types").Country; contribuyente: boolean; tipoOperacion: OperationTypeNoB2G; cdc: string; motive: string; email?: string | undefined; distrito?: number | undefined; codigo?: string | undefined; departamento?: import("../../types").Department | undefined; ciudad?: number | undefined; documentoTipo?: IdentityDocForNominationEvent | undefined; documentoNumero?: string | undefined; direccion?: string | undefined; numeroCasa?: number | undefined; ruc?: string | undefined; descripcionTipoDocumento?: string | undefined; razonSocial?: string | undefined; nombreFantasia?: string | undefined; telefono?: string | undefined; celular?: string | undefined; tipoReceptor?: TaxpayerType | undefined; }>, { paisDescripcion: string | undefined; rucID: string | undefined; rucDV: string | undefined; descripcionDepartamento: string | undefined; descripcionDistrito: string | undefined; descripcionCiudad: string | undefined; pais: import("../../types").Country; contribuyente: TaxpayerNotTaxpayer; tipoOperacion: OperationTypeNoB2G; cdc: string; motive: string; email?: string | undefined; distrito?: number | undefined; codigo?: string | undefined; departamento?: import("../../types").Department | undefined; ciudad?: number | undefined; documentoTipo?: IdentityDocForNominationEvent | undefined; documentoNumero?: string | undefined; direccion?: string | undefined; numeroCasa?: number | undefined; ruc?: string | undefined; descripcionTipoDocumento?: string | undefined; razonSocial?: string | undefined; nombreFantasia?: string | undefined; telefono?: string | undefined; celular?: string | undefined; tipoReceptor?: TaxpayerType | undefined; }, { pais: import("../../types").Country; contribuyente: boolean; tipoOperacion: OperationTypeNoB2G; cdc: string; motive: string; email?: string | undefined; distrito?: number | undefined; codigo?: string | undefined; departamento?: import("../../types").Department | undefined; ciudad?: number | undefined; documentoTipo?: IdentityDocForNominationEvent | undefined; documentoNumero?: string | undefined; direccion?: string | undefined; numeroCasa?: number | undefined; ruc?: string | undefined; descripcionTipoDocumento?: string | undefined; razonSocial?: string | undefined; nombreFantasia?: string | undefined; telefono?: string | undefined; celular?: string | undefined; tipoReceptor?: TaxpayerType | undefined; }>; export type NominationEventInput = z.input<typeof NominationEventSchema>;