/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * A Bureau of Labor Statistics occupation code with its title and description, used for salary estimate calculations. */ export type BLSOccupation = { /** * Bureau of Labor Statistics (BLS) occupation code. */ code: string; /** * Occupation title. */ title: string; /** * Occupation description. */ description?: string | undefined; }; /** @internal */ export const BLSOccupation$inboundSchema: z.ZodType< BLSOccupation, z.ZodTypeDef, unknown > = z.object({ code: z.string(), title: z.string(), description: z.string().optional(), }); export function blsOccupationFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => BLSOccupation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BLSOccupation' from JSON`, ); }