/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; 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"; export type Industry = { /** * Company UUID */ companyUuid?: string | undefined; /** * Industry title */ title?: string | null | undefined; /** * North American Industry Classification System (NAICS) is used to classify businesses with a six digit number based on the primary type of work the business performs. */ naicsCode?: string | null | undefined; /** * A list of Standard Industrial Classification (SIC) codes, which are four digit numbers that categorize the industries that companies belong to based on their business activities. If sic_codes is not passed in, we will perform an internal lookup with `naics_code`. */ sicCodes?: Array | undefined; }; /** @internal */ export const Industry$inboundSchema: z.ZodType< Industry, z.ZodTypeDef, unknown > = z.object({ company_uuid: z.string().optional(), title: z.nullable(z.string()).optional(), naics_code: z.nullable(z.string()).optional(), sic_codes: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { "company_uuid": "companyUuid", "naics_code": "naicsCode", "sic_codes": "sicCodes", }); }); export function industryFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Industry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Industry' from JSON`, ); }