/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { BulkReportCustomReportItem, BulkReportCustomReportItem$Outbound, BulkReportCustomReportItem$outboundSchema, } from "./bulkreportcustomreportitem.js"; import { BulkReportGeneralLedgerItem, BulkReportGeneralLedgerItem$Outbound, BulkReportGeneralLedgerItem$outboundSchema, } from "./bulkreportgeneralledgeritem.js"; /** * A single report inside a bulk batch. Required fields depend on `report_type`: `custom_report` requires `columns` and `file_type`; `general_ledger` requires `payroll_uuid` and `aggregation`. */ export type BulkReportItem = | BulkReportCustomReportItem | BulkReportGeneralLedgerItem; /** @internal */ export type BulkReportItem$Outbound = | BulkReportCustomReportItem$Outbound | BulkReportGeneralLedgerItem$Outbound; /** @internal */ export const BulkReportItem$outboundSchema: z.ZodType< BulkReportItem$Outbound, z.ZodTypeDef, BulkReportItem > = z.union([ BulkReportCustomReportItem$outboundSchema, BulkReportGeneralLedgerItem$outboundSchema, ]); export function bulkReportItemToJSON(bulkReportItem: BulkReportItem): string { return JSON.stringify(BulkReportItem$outboundSchema.parse(bulkReportItem)); }