UNPKG

@accounter/server

Version:
50 lines (49 loc) 2.47 kB
import { z } from 'zod'; import { IndividualOrCompanyEnum } from '../types/index.js'; /** * Zod schema for the full report * Enforces strict validation based on the specification. */ export declare const reportSchema: z.ZodObject<{ header: z.ZodObject<{ taxFileNumber: z.ZodString; taxYear: z.ZodString; idNumber: z.ZodString; vatFileNumber: z.ZodOptional<z.ZodString>; withholdingTaxFileNumber: z.ZodOptional<z.ZodString>; industryCode: z.ZodString; businessDescription: z.ZodOptional<z.ZodString>; businessType: z.ZodEnum<typeof import("../index.js").BusinessType>; reportingMethod: z.ZodEnum<typeof import("../index.js").ReportingMethod>; accountingMethod: z.ZodEnum<typeof import("../index.js").AccountingMethod>; accountingSystem: z.ZodEnum<typeof import("../index.js").AccountingSystem>; isPartnership: z.ZodOptional<z.ZodEnum<typeof import("../index.js").YesNo>>; includesProfitLoss: z.ZodEnum<typeof import("../index.js").YesNo>; includesTaxAdjustment: z.ZodEnum<typeof import("../index.js").YesNo>; includesBalanceSheet: z.ZodEnum<typeof import("../index.js").YesNo>; profitLossEntryCount: z.ZodOptional<z.ZodNumber>; taxAdjustmentEntryCount: z.ZodOptional<z.ZodNumber>; balanceSheetEntryCount: z.ZodOptional<z.ZodNumber>; ifrsImplementationYear: z.ZodOptional<z.ZodString>; ifrsReportingOption: z.ZodOptional<z.ZodEnum<typeof import("../index.js").IFRSReportingOption>>; softwareRegistrationNumber: z.ZodOptional<z.ZodString>; partnershipCount: z.ZodOptional<z.ZodNumber>; partnershipProfitShare: z.ZodOptional<z.ZodNumber>; currencyType: z.ZodEnum<typeof import("../index.js").CurrencyType>; auditOpinionType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").AuditOpinionType>>; amountsInThousands: z.ZodEnum<typeof import("../index.js").YesNo>; }, z.core.$strip>; profitAndLoss: z.ZodArray<z.ZodObject<{ code: z.ZodNumber; amount: z.ZodNumber; }, z.core.$strip>>; taxAdjustment: z.ZodArray<z.ZodObject<{ code: z.ZodNumber; amount: z.ZodNumber; }, z.core.$strip>>; balanceSheet: z.ZodOptional<z.ZodArray<z.ZodObject<{ code: z.ZodNumber; amount: z.ZodNumber; }, z.core.$strip>>>; individualOrCompany: z.ZodEnum<typeof IndividualOrCompanyEnum>; }, z.core.$strip>;