import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The status of the time off request. */ export declare const EmbeddedTimeOffRequestStatus: { readonly Pending: "pending"; readonly Approved: "approved"; readonly Declined: "declined"; readonly Consumed: "consumed"; }; /** * The status of the time off request. */ export type EmbeddedTimeOffRequestStatus = ClosedEnum; export type EmbeddedTimeOffRequestEmployee = { /** * The UUID of the employee the time off request is for. */ uuid?: string | undefined; /** * The full name of the employee the time off request is for. */ fullName?: string | undefined; }; export type Initiator = { /** * The UUID of the employee who initiated the time off request. */ uuid?: string | undefined; /** * The full name of the employee who initiated the time off request. */ fullName?: string | undefined; }; /** * This value will be null if the request has not been approved. */ export type Approver = { /** * The UUID of the employee who approved the time off request. */ uuid?: string | undefined; /** * The full name of the employee who approved the time off request. */ fullName?: string | undefined; }; /** * The representation of a time off request. */ export type EmbeddedTimeOffRequest = { /** * The UUID of the time off request. */ uuid: string; /** * The status of the time off request. */ status: EmbeddedTimeOffRequestStatus; /** * A note about the time off request, from the employee to the employer. */ employeeNote: string | null; /** * A note about the time off request, from the employer to the employee. */ employerNote: string | null; /** * The type of the time off policy (e.g. vacation, sick). */ policyType: string | null; /** * The UUID of the time off policy associated with this request. */ policyUuid: string | null; /** * 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; }; employee: EmbeddedTimeOffRequestEmployee; initiator: Initiator | null; /** * This value will be null if the request has not been approved. */ approver: Approver | null; }; /** @internal */ export declare const EmbeddedTimeOffRequestStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const EmbeddedTimeOffRequestEmployee$inboundSchema: z.ZodType; export declare function embeddedTimeOffRequestEmployeeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Initiator$inboundSchema: z.ZodType; export declare function initiatorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Approver$inboundSchema: z.ZodType; export declare function approverFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EmbeddedTimeOffRequest$inboundSchema: z.ZodType; export declare function embeddedTimeOffRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=embeddedtimeoffrequest.d.ts.map