/* * 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 { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { EmployeeSection603HighEarnerStatus, EmployeeSection603HighEarnerStatus$inboundSchema, } from "../components/employeesection603highearnerstatus.js"; import { HTTPMetadata, HTTPMetadata$inboundSchema, } from "../components/httpmetadata.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ export const GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion = { TwoThousandAndTwentyFiveMinus06Minus15: "2025-06-15", } as const; /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ export type GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion = ClosedEnum< typeof GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion >; export type GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest = { /** * The UUID of the employee */ employeeUuid: string; /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ xGustoAPIVersion?: | GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion | undefined; }; export type GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse = { httpMeta: HTTPMetadata; /** * successful - with records */ employeeSection603HighEarnerStatusList?: | Array | undefined; }; /** @internal */ export const GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum< typeof GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion > = z.nativeEnum( GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion, ); /** @internal */ export type GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest$Outbound = { employee_uuid: string; "X-Gusto-API-Version": string; }; /** @internal */ export const GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest$outboundSchema: z.ZodType< GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest$Outbound, z.ZodTypeDef, GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest > = z.object({ employeeUuid: z.string(), xGustoAPIVersion: GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion$outboundSchema .default("2025-06-15"), }).transform((v) => { return remap$(v, { employeeUuid: "employee_uuid", xGustoAPIVersion: "X-Gusto-API-Version", }); }); export function getV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequestToJSON( getV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest: GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest, ): string { return JSON.stringify( GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest$outboundSchema .parse(getV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest), ); } /** @internal */ export const GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse$inboundSchema: z.ZodType< GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse, z.ZodTypeDef, unknown > = z.object({ HttpMeta: HTTPMetadata$inboundSchema, "Employee-Section603-High-Earner-Status-List": z.array( EmployeeSection603HighEarnerStatus$inboundSchema, ).optional(), }).transform((v) => { return remap$(v, { "HttpMeta": "httpMeta", "Employee-Section603-High-Earner-Status-List": "employeeSection603HighEarnerStatusList", }); }); export function getV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponseFromJSON( jsonString: string, ): SafeParseResult< GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse, SDKValidationError > { return safeParse( jsonString, (x) => GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'GetV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse' from JSON`, ); }