/* * 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 { EmployeeSection603HighEarnerStatusCreateRequest, EmployeeSection603HighEarnerStatusCreateRequest$Outbound, EmployeeSection603HighEarnerStatusCreateRequest$outboundSchema, } from "../components/employeesection603highearnerstatuscreaterequest.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 PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion = { 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 PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion = ClosedEnum< typeof PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion >; export type PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest = { /** * 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?: | PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion | undefined; employeeSection603HighEarnerStatusCreateRequest: EmployeeSection603HighEarnerStatusCreateRequest; }; export type PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse = { httpMeta: HTTPMetadata; /** * created */ employeeSection603HighEarnerStatus?: | EmployeeSection603HighEarnerStatus | undefined; }; /** @internal */ export const PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum< typeof PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion > = z.nativeEnum( PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion, ); /** @internal */ export type PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest$Outbound = { employee_uuid: string; "X-Gusto-API-Version": string; "Employee-Section603-High-Earner-Status-Create-Request": EmployeeSection603HighEarnerStatusCreateRequest$Outbound; }; /** @internal */ export const PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest$outboundSchema: z.ZodType< PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest$Outbound, z.ZodTypeDef, PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest > = z.object({ employeeUuid: z.string(), xGustoAPIVersion: PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesHeaderXGustoAPIVersion$outboundSchema .default("2025-06-15"), employeeSection603HighEarnerStatusCreateRequest: EmployeeSection603HighEarnerStatusCreateRequest$outboundSchema, }).transform((v) => { return remap$(v, { employeeUuid: "employee_uuid", xGustoAPIVersion: "X-Gusto-API-Version", employeeSection603HighEarnerStatusCreateRequest: "Employee-Section603-High-Earner-Status-Create-Request", }); }); export function postV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequestToJSON( postV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest: PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest, ): string { return JSON.stringify( PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest$outboundSchema .parse(postV1EmployeesEmployeeUuidSection603HighEarnerStatusesRequest), ); } /** @internal */ export const PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse$inboundSchema: z.ZodType< PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse, z.ZodTypeDef, unknown > = z.object({ HttpMeta: HTTPMetadata$inboundSchema, "Employee-Section603-High-Earner-Status": EmployeeSection603HighEarnerStatus$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "HttpMeta": "httpMeta", "Employee-Section603-High-Earner-Status": "employeeSection603HighEarnerStatus", }); }); export function postV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponseFromJSON( jsonString: string, ): SafeParseResult< PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse, SDKValidationError > { return safeParse( jsonString, (x) => PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'PostV1EmployeesEmployeeUuidSection603HighEarnerStatusesResponse' from JSON`, ); }