/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * A single record representing the originating_fdid and originating_cat_reporter_crd */ export type CatReporterInformationUpdate = { /** * The prior CAT reporter's 7 digit CRD number; Must be provided with an `ORIGINATING_FDID` */ originatingCatReporterCrd?: string | undefined; /** * The previous FDID associated with the account; Must be unique and provided with an `ORIGINATING_CAT_REPORTER_CRD` */ originatingFdid?: string | undefined; }; /** @internal */ export const CatReporterInformationUpdate$inboundSchema: z.ZodType< CatReporterInformationUpdate, z.ZodTypeDef, unknown > = z.object({ originating_cat_reporter_crd: z.string().optional(), originating_fdid: z.string().optional(), }).transform((v) => { return remap$(v, { "originating_cat_reporter_crd": "originatingCatReporterCrd", "originating_fdid": "originatingFdid", }); }); /** @internal */ export type CatReporterInformationUpdate$Outbound = { originating_cat_reporter_crd?: string | undefined; originating_fdid?: string | undefined; }; /** @internal */ export const CatReporterInformationUpdate$outboundSchema: z.ZodType< CatReporterInformationUpdate$Outbound, z.ZodTypeDef, CatReporterInformationUpdate > = z.object({ originatingCatReporterCrd: z.string().optional(), originatingFdid: z.string().optional(), }).transform((v) => { return remap$(v, { originatingCatReporterCrd: "originating_cat_reporter_crd", originatingFdid: "originating_fdid", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CatReporterInformationUpdate$ { /** @deprecated use `CatReporterInformationUpdate$inboundSchema` instead. */ export const inboundSchema = CatReporterInformationUpdate$inboundSchema; /** @deprecated use `CatReporterInformationUpdate$outboundSchema` instead. */ export const outboundSchema = CatReporterInformationUpdate$outboundSchema; /** @deprecated use `CatReporterInformationUpdate$Outbound` instead. */ export type Outbound = CatReporterInformationUpdate$Outbound; } export function catReporterInformationUpdateToJSON( catReporterInformationUpdate: CatReporterInformationUpdate, ): string { return JSON.stringify( CatReporterInformationUpdate$outboundSchema.parse( catReporterInformationUpdate, ), ); } export function catReporterInformationUpdateFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => CatReporterInformationUpdate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CatReporterInformationUpdate' from JSON`, ); }