/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { CustomFieldTypeInfoV1, CustomFieldTypeInfoV1$inboundSchema, CustomFieldTypeInfoV1$Outbound, CustomFieldTypeInfoV1$outboundSchema, } from "./customfieldtypeinfov1.js"; import { CustomFieldValueV1, CustomFieldValueV1$inboundSchema, CustomFieldValueV1$Outbound, CustomFieldValueV1$outboundSchema, } from "./customfieldvaluev1.js"; export type CustomFieldEntryV1 = { customField: CustomFieldTypeInfoV1; /** * List of custom field values set on this entry */ values: Array; }; /** @internal */ export const CustomFieldEntryV1$inboundSchema: z.ZodType< CustomFieldEntryV1, z.ZodTypeDef, unknown > = z.object({ custom_field: CustomFieldTypeInfoV1$inboundSchema, values: z.array(CustomFieldValueV1$inboundSchema), }).transform((v) => { return remap$(v, { "custom_field": "customField", }); }); /** @internal */ export type CustomFieldEntryV1$Outbound = { custom_field: CustomFieldTypeInfoV1$Outbound; values: Array; }; /** @internal */ export const CustomFieldEntryV1$outboundSchema: z.ZodType< CustomFieldEntryV1$Outbound, z.ZodTypeDef, CustomFieldEntryV1 > = z.object({ customField: CustomFieldTypeInfoV1$outboundSchema, values: z.array(CustomFieldValueV1$outboundSchema), }).transform((v) => { return remap$(v, { customField: "custom_field", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CustomFieldEntryV1$ { /** @deprecated use `CustomFieldEntryV1$inboundSchema` instead. */ export const inboundSchema = CustomFieldEntryV1$inboundSchema; /** @deprecated use `CustomFieldEntryV1$outboundSchema` instead. */ export const outboundSchema = CustomFieldEntryV1$outboundSchema; /** @deprecated use `CustomFieldEntryV1$Outbound` instead. */ export type Outbound = CustomFieldEntryV1$Outbound; }