import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { EmbeddedTimeOffRequest } from "../components/embeddedtimeoffrequest.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 PutV1TimeOffRequestsTimeOffRequestUuidApproveHeaderXGustoAPIVersion: { 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 PutV1TimeOffRequestsTimeOffRequestUuidApproveHeaderXGustoAPIVersion = ClosedEnum; export type PutV1TimeOffRequestsTimeOffRequestUuidApproveRequestBody = { /** * The UUID of the admin approving the request. Defaults to the company's primary payroll admin. */ approverUuid?: string | undefined; /** * A note from the employer about the approval */ employerNote?: string | undefined; /** * 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"}). Use this to override the requested hours. */ days?: { [k: string]: string; } | undefined; }; export type PutV1TimeOffRequestsTimeOffRequestUuidApproveRequest = { /** * 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?: PutV1TimeOffRequestsTimeOffRequestUuidApproveHeaderXGustoAPIVersion | undefined; /** * The UUID of the time off request */ timeOffRequestUuid: string; requestBody?: PutV1TimeOffRequestsTimeOffRequestUuidApproveRequestBody | undefined; }; export type PutV1TimeOffRequestsTimeOffRequestUuidApproveResponse = { httpMeta: HTTPMetadata; /** * successful */ embeddedTimeOffRequest?: EmbeddedTimeOffRequest | undefined; }; /** @internal */ export declare const PutV1TimeOffRequestsTimeOffRequestUuidApproveHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum; /** @internal */ export type PutV1TimeOffRequestsTimeOffRequestUuidApproveRequestBody$Outbound = { approver_uuid?: string | undefined; employer_note?: string | undefined; days?: { [k: string]: string; } | undefined; }; /** @internal */ export declare const PutV1TimeOffRequestsTimeOffRequestUuidApproveRequestBody$outboundSchema: z.ZodType; export declare function putV1TimeOffRequestsTimeOffRequestUuidApproveRequestBodyToJSON(putV1TimeOffRequestsTimeOffRequestUuidApproveRequestBody: PutV1TimeOffRequestsTimeOffRequestUuidApproveRequestBody): string; /** @internal */ export type PutV1TimeOffRequestsTimeOffRequestUuidApproveRequest$Outbound = { "X-Gusto-API-Version": string; time_off_request_uuid: string; RequestBody?: PutV1TimeOffRequestsTimeOffRequestUuidApproveRequestBody$Outbound | undefined; }; /** @internal */ export declare const PutV1TimeOffRequestsTimeOffRequestUuidApproveRequest$outboundSchema: z.ZodType; export declare function putV1TimeOffRequestsTimeOffRequestUuidApproveRequestToJSON(putV1TimeOffRequestsTimeOffRequestUuidApproveRequest: PutV1TimeOffRequestsTimeOffRequestUuidApproveRequest): string; /** @internal */ export declare const PutV1TimeOffRequestsTimeOffRequestUuidApproveResponse$inboundSchema: z.ZodType; export declare function putV1TimeOffRequestsTimeOffRequestUuidApproveResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=putv1timeoffrequeststimeoffrequestuuidapprove.d.ts.map