/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; export type CatalogEntryReferenceV2 = { /** * When this entry was archived */ archivedAt?: Date | undefined; /** * ID of this catalog entry */ catalogEntryId: string; /** * The name of this entry */ catalogEntryName: string; /** * ID of this catalog type */ catalogTypeId: string; }; /** @internal */ export const CatalogEntryReferenceV2$inboundSchema: z.ZodType< CatalogEntryReferenceV2, z.ZodTypeDef, unknown > = z.object({ archived_at: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), catalog_entry_id: z.string(), catalog_entry_name: z.string(), catalog_type_id: z.string(), }).transform((v) => { return remap$(v, { "archived_at": "archivedAt", "catalog_entry_id": "catalogEntryId", "catalog_entry_name": "catalogEntryName", "catalog_type_id": "catalogTypeId", }); }); /** @internal */ export type CatalogEntryReferenceV2$Outbound = { archived_at?: string | undefined; catalog_entry_id: string; catalog_entry_name: string; catalog_type_id: string; }; /** @internal */ export const CatalogEntryReferenceV2$outboundSchema: z.ZodType< CatalogEntryReferenceV2$Outbound, z.ZodTypeDef, CatalogEntryReferenceV2 > = z.object({ archivedAt: z.date().transform(v => v.toISOString()).optional(), catalogEntryId: z.string(), catalogEntryName: z.string(), catalogTypeId: z.string(), }).transform((v) => { return remap$(v, { archivedAt: "archived_at", catalogEntryId: "catalog_entry_id", catalogEntryName: "catalog_entry_name", catalogTypeId: "catalog_type_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CatalogEntryReferenceV2$ { /** @deprecated use `CatalogEntryReferenceV2$inboundSchema` instead. */ export const inboundSchema = CatalogEntryReferenceV2$inboundSchema; /** @deprecated use `CatalogEntryReferenceV2$outboundSchema` instead. */ export const outboundSchema = CatalogEntryReferenceV2$outboundSchema; /** @deprecated use `CatalogEntryReferenceV2$Outbound` instead. */ export type Outbound = CatalogEntryReferenceV2$Outbound; }