import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { EmbeddedTimeOffRequestPreview } from "../components/embeddedtimeoffrequestpreview.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 PostV1CompaniesCompanyUuidTimeOffRequestsPreviewHeaderXGustoAPIVersion: { 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 PostV1CompaniesCompanyUuidTimeOffRequestsPreviewHeaderXGustoAPIVersion = ClosedEnum; export type PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestBody = { /** * The UUID of an existing time off request to preview changes for */ requestUuid?: string | undefined; /** * The UUID of the employee */ employeeUuid: string; /** * The UUID of the time off policy */ policyUuid: string; /** * The start date of the time off request (YYYY-MM-DD) */ startDate: string; /** * The end date of the time off request (YYYY-MM-DD) */ endDate: string; /** * An object where keys are dates in YYYY-MM-DD format and values are hours as string decimals (e.g. {"2025-01-20": "8.000"}) */ days: { [k: string]: string; }; }; export type PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequest = { /** * 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?: PostV1CompaniesCompanyUuidTimeOffRequestsPreviewHeaderXGustoAPIVersion | undefined; /** * The UUID of the company */ companyUuid: string; requestBody: PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestBody; }; export type PostV1CompaniesCompanyUuidTimeOffRequestsPreviewResponse = { httpMeta: HTTPMetadata; /** * successful */ embeddedTimeOffRequestPreview?: EmbeddedTimeOffRequestPreview | undefined; }; /** @internal */ export declare const PostV1CompaniesCompanyUuidTimeOffRequestsPreviewHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum; /** @internal */ export type PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestBody$Outbound = { request_uuid?: string | undefined; employee_uuid: string; policy_uuid: string; start_date: string; end_date: string; days: { [k: string]: string; }; }; /** @internal */ export declare const PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestBody$outboundSchema: z.ZodType; export declare function postV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestBodyToJSON(postV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestBody: PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestBody): string; /** @internal */ export type PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequest$Outbound = { "X-Gusto-API-Version": string; company_uuid: string; RequestBody: PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestBody$Outbound; }; /** @internal */ export declare const PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequest$outboundSchema: z.ZodType; export declare function postV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestToJSON(postV1CompaniesCompanyUuidTimeOffRequestsPreviewRequest: PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequest): string; /** @internal */ export declare const PostV1CompaniesCompanyUuidTimeOffRequestsPreviewResponse$inboundSchema: z.ZodType; export declare function postV1CompaniesCompanyUuidTimeOffRequestsPreviewResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postv1companiescompanyuuidtimeoffrequestspreview.d.ts.map