import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query"; import { GustoEmbeddedError } from "../models/errors/gustoembeddederror.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { NotFoundErrorObject } from "../models/errors/notfounderrorobject.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { GetV1EmployeesEmployeeIdCustomFieldsHeaderXGustoAPIVersion, GetV1EmployeesEmployeeIdCustomFieldsRequest } from "../models/operations/getv1employeesemployeeidcustomfields.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildEmployeesGetCustomFieldsQuery, EmployeesGetCustomFieldsQueryData, prefetchEmployeesGetCustomFields, queryKeyEmployeesGetCustomFields } from "./employeesGetCustomFields.core.js"; export { buildEmployeesGetCustomFieldsQuery, type EmployeesGetCustomFieldsQueryData, prefetchEmployeesGetCustomFields, queryKeyEmployeesGetCustomFields, }; export type EmployeesGetCustomFieldsQueryError = NotFoundErrorObject | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get an employee's custom fields * * @remarks * Returns a list of the employee's custom fields. * * scope: `employees:read` */ export declare function useEmployeesGetCustomFields(request: GetV1EmployeesEmployeeIdCustomFieldsRequest, options?: QueryHookOptions): UseQueryResult; /** * Get an employee's custom fields * * @remarks * Returns a list of the employee's custom fields. * * scope: `employees:read` */ export declare function useEmployeesGetCustomFieldsSuspense(request: GetV1EmployeesEmployeeIdCustomFieldsRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setEmployeesGetCustomFieldsData(client: QueryClient, queryKeyBase: [ employeeId: string, parameters: { page?: number | undefined; per?: number | undefined; xGustoAPIVersion?: GetV1EmployeesEmployeeIdCustomFieldsHeaderXGustoAPIVersion | undefined; } ], data: EmployeesGetCustomFieldsQueryData): EmployeesGetCustomFieldsQueryData | undefined; export declare function invalidateEmployeesGetCustomFields(client: QueryClient, queryKeyBase: TupleToPrefixes<[ employeeId: string, parameters: { page?: number | undefined; per?: number | undefined; xGustoAPIVersion?: GetV1EmployeesEmployeeIdCustomFieldsHeaderXGustoAPIVersion | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllEmployeesGetCustomFields(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=employeesGetCustomFields.d.ts.map