/* * 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 { 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 DeleteV1EmployeesEmployeeIdMemberPortalInvitationsHeaderXGustoAPIVersion = { 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 DeleteV1EmployeesEmployeeIdMemberPortalInvitationsHeaderXGustoAPIVersion = ClosedEnum< typeof DeleteV1EmployeesEmployeeIdMemberPortalInvitationsHeaderXGustoAPIVersion >; export type DeleteV1EmployeesEmployeeIdMemberPortalInvitationsRequest = { /** * 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?: | DeleteV1EmployeesEmployeeIdMemberPortalInvitationsHeaderXGustoAPIVersion | undefined; /** * The UUID of the employee */ employeeId: string; }; export type DeleteV1EmployeesEmployeeIdMemberPortalInvitationsResponse = { httpMeta: HTTPMetadata; }; /** @internal */ export const DeleteV1EmployeesEmployeeIdMemberPortalInvitationsHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum< typeof DeleteV1EmployeesEmployeeIdMemberPortalInvitationsHeaderXGustoAPIVersion > = z.nativeEnum( DeleteV1EmployeesEmployeeIdMemberPortalInvitationsHeaderXGustoAPIVersion, ); /** @internal */ export type DeleteV1EmployeesEmployeeIdMemberPortalInvitationsRequest$Outbound = { "X-Gusto-API-Version": string; employee_id: string; }; /** @internal */ export const DeleteV1EmployeesEmployeeIdMemberPortalInvitationsRequest$outboundSchema: z.ZodType< DeleteV1EmployeesEmployeeIdMemberPortalInvitationsRequest$Outbound, z.ZodTypeDef, DeleteV1EmployeesEmployeeIdMemberPortalInvitationsRequest > = z.object({ xGustoAPIVersion: DeleteV1EmployeesEmployeeIdMemberPortalInvitationsHeaderXGustoAPIVersion$outboundSchema .default("2025-06-15"), employeeId: z.string(), }).transform((v) => { return remap$(v, { xGustoAPIVersion: "X-Gusto-API-Version", employeeId: "employee_id", }); }); export function deleteV1EmployeesEmployeeIdMemberPortalInvitationsRequestToJSON( deleteV1EmployeesEmployeeIdMemberPortalInvitationsRequest: DeleteV1EmployeesEmployeeIdMemberPortalInvitationsRequest, ): string { return JSON.stringify( DeleteV1EmployeesEmployeeIdMemberPortalInvitationsRequest$outboundSchema .parse(deleteV1EmployeesEmployeeIdMemberPortalInvitationsRequest), ); } /** @internal */ export const DeleteV1EmployeesEmployeeIdMemberPortalInvitationsResponse$inboundSchema: z.ZodType< DeleteV1EmployeesEmployeeIdMemberPortalInvitationsResponse, z.ZodTypeDef, unknown > = z.object({ HttpMeta: HTTPMetadata$inboundSchema, }).transform((v) => { return remap$(v, { "HttpMeta": "httpMeta", }); }); export function deleteV1EmployeesEmployeeIdMemberPortalInvitationsResponseFromJSON( jsonString: string, ): SafeParseResult< DeleteV1EmployeesEmployeeIdMemberPortalInvitationsResponse, SDKValidationError > { return safeParse( jsonString, (x) => DeleteV1EmployeesEmployeeIdMemberPortalInvitationsResponse$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeleteV1EmployeesEmployeeIdMemberPortalInvitationsResponse' from JSON`, ); }