/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { CustomFieldValuePayloadV1, CustomFieldValuePayloadV1$inboundSchema, CustomFieldValuePayloadV1$Outbound, CustomFieldValuePayloadV1$outboundSchema, } from "./customfieldvaluepayloadv1.js"; export type CustomFieldEntryPayloadV1 = { /** * ID of the custom field this entry is linked against */ customFieldId: string; /** * List of values to associate with this entry. Use an empty array to unset the value of the custom field. */ values: Array; }; /** @internal */ export const CustomFieldEntryPayloadV1$inboundSchema: z.ZodType< CustomFieldEntryPayloadV1, z.ZodTypeDef, unknown > = z.object({ custom_field_id: z.string(), values: z.array(CustomFieldValuePayloadV1$inboundSchema), }).transform((v) => { return remap$(v, { "custom_field_id": "customFieldId", }); }); /** @internal */ export type CustomFieldEntryPayloadV1$Outbound = { custom_field_id: string; values: Array; }; /** @internal */ export const CustomFieldEntryPayloadV1$outboundSchema: z.ZodType< CustomFieldEntryPayloadV1$Outbound, z.ZodTypeDef, CustomFieldEntryPayloadV1 > = z.object({ customFieldId: z.string(), values: z.array(CustomFieldValuePayloadV1$outboundSchema), }).transform((v) => { return remap$(v, { customFieldId: "custom_field_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CustomFieldEntryPayloadV1$ { /** @deprecated use `CustomFieldEntryPayloadV1$inboundSchema` instead. */ export const inboundSchema = CustomFieldEntryPayloadV1$inboundSchema; /** @deprecated use `CustomFieldEntryPayloadV1$outboundSchema` instead. */ export const outboundSchema = CustomFieldEntryPayloadV1$outboundSchema; /** @deprecated use `CustomFieldEntryPayloadV1$Outbound` instead. */ export type Outbound = CustomFieldEntryPayloadV1$Outbound; }