import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import { DeleteV1TimeOffRequestsTimeOffRequestUuidRequest, DeleteV1TimeOffRequestsTimeOffRequestUuidResponse } from "../models/operations/deletev1timeoffrequeststimeoffrequestuuid.js"; import { GetV1CompaniesCompanyUuidTimeOffBalancesRequest, GetV1CompaniesCompanyUuidTimeOffBalancesResponse } from "../models/operations/getv1companiescompanyuuidtimeoffbalances.js"; import { GetV1CompaniesCompanyUuidTimeOffRequestsRequest, GetV1CompaniesCompanyUuidTimeOffRequestsResponse } from "../models/operations/getv1companiescompanyuuidtimeoffrequests.js"; import { GetV1TimeOffRequestsTimeOffRequestUuidRequest, GetV1TimeOffRequestsTimeOffRequestUuidResponse } from "../models/operations/getv1timeoffrequeststimeoffrequestuuid.js"; import { PostV1CompaniesCompanyUuidTimeOffAdminApprovedRequestsRequest, PostV1CompaniesCompanyUuidTimeOffAdminApprovedRequestsResponse } from "../models/operations/postv1companiescompanyuuidtimeoffadminapprovedrequests.js"; import { PostV1CompaniesCompanyUuidTimeOffRequestsRequest, PostV1CompaniesCompanyUuidTimeOffRequestsResponse } from "../models/operations/postv1companiescompanyuuidtimeoffrequests.js"; import { PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequest, PostV1CompaniesCompanyUuidTimeOffRequestsPreviewResponse } from "../models/operations/postv1companiescompanyuuidtimeoffrequestspreview.js"; import { PutV1TimeOffRequestsTimeOffRequestUuidApproveRequest, PutV1TimeOffRequestsTimeOffRequestUuidApproveResponse } from "../models/operations/putv1timeoffrequeststimeoffrequestuuidapprove.js"; import { PutV1TimeOffRequestsTimeOffRequestUuidDeclineRequest, PutV1TimeOffRequestsTimeOffRequestUuidDeclineResponse } from "../models/operations/putv1timeoffrequeststimeoffrequestuuiddecline.js"; export declare class TimeOffRequests extends ClientSDK { /** * Create an admin-approved time off request * * @remarks * Create a pre-approved time off request on behalf of an employee (admin or system initiated). * The request is always created with approved status. * * scope: `time_off_requests:manage` */ postV1CompaniesCompanyUuidTimeOffAdminApprovedRequests(request: PostV1CompaniesCompanyUuidTimeOffAdminApprovedRequestsRequest, options?: RequestOptions): Promise; /** * Get time off balances for a company * * @remarks * Get time off balances for all employees in a company * * scope: `time_off_requests:read` */ getV1CompaniesCompanyUuidTimeOffBalances(request: GetV1CompaniesCompanyUuidTimeOffBalancesRequest, options?: RequestOptions): Promise; /** * List time off requests for a company * * @remarks * Get all time off requests for a company. Supports filtering by status, employee, and date ranges. * * Possible statuses: * - `pending` — awaiting approval * - `approved` — approved by an admin but not yet processed in a payroll * - `declined` — declined by an admin * - `consumed` — processed in a completed payroll * * Allowed values for `status`: pending, approved, declined, consumed. * * scope: `time_off_requests:read` */ getV1CompaniesCompanyUuidTimeOffRequests(request: GetV1CompaniesCompanyUuidTimeOffRequestsRequest, options?: RequestOptions): Promise; /** * Create a time off request * * @remarks * Create a time off request for an employee * * scope: `time_off_requests:write` */ postV1CompaniesCompanyUuidTimeOffRequests(request: PostV1CompaniesCompanyUuidTimeOffRequestsRequest, options?: RequestOptions): Promise; /** * Preview a time off request * * @remarks * Preview a time off request to see balance impact before creating * * scope: `time_off_requests:read` */ postV1CompaniesCompanyUuidTimeOffRequestsPreview(request: PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequest, options?: RequestOptions): Promise; /** * Get a time off request * * @remarks * Get a single time off request by UUID * * scope: `time_off_requests:read` */ getV1TimeOffRequestsTimeOffRequestUuid(request: GetV1TimeOffRequestsTimeOffRequestUuidRequest, options?: RequestOptions): Promise; /** * Delete a time off request * * @remarks * Delete a time off request * * scope: `time_off_requests:write` */ deleteV1TimeOffRequestsTimeOffRequestUuid(request: DeleteV1TimeOffRequestsTimeOffRequestUuidRequest, options?: RequestOptions): Promise; /** * Approve a time off request * * @remarks * Approve a pending time off request. Optionally override the dates and hours. * * Only requests with a `pending` status can be approved. Attempting to approve a request that has already been `declined` or `consumed` will fail with a 422 error. * * scope: `time_off_requests:manage` */ putV1TimeOffRequestsTimeOffRequestUuidApprove(request: PutV1TimeOffRequestsTimeOffRequestUuidApproveRequest, options?: RequestOptions): Promise; /** * Decline a time off request * * @remarks * Decline a pending or approved time off request. Requires an employer_note. * * scope: `time_off_requests:manage` */ putV1TimeOffRequestsTimeOffRequestUuidDecline(request: PutV1TimeOffRequestsTimeOffRequestUuidDeclineRequest, options?: RequestOptions): Promise; } //# sourceMappingURL=timeoffrequests.d.ts.map