import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import { Employee } from "../components/employee.js"; import { HTTPMetadata } 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 declare const PostV1EmployeesHeaderXGustoAPIVersion: { readonly TwoThousandAndTwentyFiveMinus06Minus15: "2025-06-15"; }; /** * 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 PostV1EmployeesHeaderXGustoAPIVersion = ClosedEnum; export type PostV1EmployeesRequestBody = { firstName: string; middleInitial?: string | undefined; lastName: string; /** * The employee's personal email address. Required if self_onboarding is true. */ email?: string | null | undefined; /** * The employee's work email address. */ workEmail?: string | undefined; dateOfBirth?: RFCDate | undefined; ssn?: string | undefined; preferredFirstName?: string | undefined; /** * If true, employee is expected to self-onboard. If false, payroll admin is expected to enter in the employee's onboarding information */ selfOnboarding?: boolean | undefined; }; export type PostV1EmployeesRequest = { /** * 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?: PostV1EmployeesHeaderXGustoAPIVersion | undefined; /** * Company ID */ companyId: string; requestBody?: PostV1EmployeesRequestBody | undefined; }; export type PostV1EmployeesResponse = { httpMeta: HTTPMetadata; /** * successful */ employee?: Employee | undefined; }; /** @internal */ export declare const PostV1EmployeesHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum; /** @internal */ export type PostV1EmployeesRequestBody$Outbound = { first_name: string; middle_initial?: string | undefined; last_name: string; email?: string | null | undefined; work_email?: string | undefined; date_of_birth?: string | undefined; ssn?: string | undefined; preferred_first_name?: string | undefined; self_onboarding?: boolean | undefined; }; /** @internal */ export declare const PostV1EmployeesRequestBody$outboundSchema: z.ZodType; export declare function postV1EmployeesRequestBodyToJSON(postV1EmployeesRequestBody: PostV1EmployeesRequestBody): string; /** @internal */ export type PostV1EmployeesRequest$Outbound = { "X-Gusto-API-Version": string; company_id: string; RequestBody?: PostV1EmployeesRequestBody$Outbound | undefined; }; /** @internal */ export declare const PostV1EmployeesRequest$outboundSchema: z.ZodType; export declare function postV1EmployeesRequestToJSON(postV1EmployeesRequest: PostV1EmployeesRequest): string; /** @internal */ export declare const PostV1EmployeesResponse$inboundSchema: z.ZodType; export declare function postV1EmployeesResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postv1employees.d.ts.map