import { Err as UUIPErr } from "@uuip/unified-ui-platform-sdk"; import { AxiosError } from "axios"; import { InteractionsServiceConstants } from "./interactions-service-constants"; import { InteractionsServiceTypes } from "./interactions-service.types"; type QueuedOrCompletedInteractions = InteractionsServiceConstants.QueryType.Completed | InteractionsServiceConstants.QueryType.Queued; declare module "@uuip/unified-ui-platform-sdk" { namespace Err { interface Ids { Interactions: InteractionsErrorIds; } } } export interface ErrDetails { trackingId: string; msg: string; statusCode: number; retryAfter: string; } export type InteractionsErrorIds = { "Service.interactions.fetchInteractions": ErrDetails; }; export declare function createErrDetailsObjectWithStatusCode(errObj: AxiosError, errorKey: keyof InteractionsErrorIds | undefined): UUIPErr.Details<"Service.reqs.generic.failure" | "Service.interactions.fetchInteractions">; export declare class InteractionsSearchApi { private readonly http; fetchCompletedInteractions(params: InteractionsServiceTypes.FetchInteractionsParams, callback: InteractionsServiceTypes.PollingCallback): Promise; /** * @throws {Error} When callback is not provided * @throws {UUIPErr.Details} When the interaction service request fails */ startQueuedPolling(callback: InteractionsServiceTypes.PollingCallback, sortBy?: InteractionsServiceTypes.SortBy, filters?: InteractionsServiceTypes.Filters, dateRange?: InteractionsServiceTypes.DateRange): Promise; /** * Fetches a specific task by its ID * @param taskId The ID of the task to fetch * @param queryType query type to filter by interaction status * @returns The task details if found, null otherwise * @throws {UUIPErr.Details} When the interaction service request fails */ fetchTaskById(taskId: string, queryType: QueuedOrCompletedInteractions): Promise; fetchTasksByIds(taskIds: string[], queryType: QueuedOrCompletedInteractions): Promise; private buildQueryTypeFilters; private createNestedObjectWithInnermost; private createFilterValue; private processFieldFilters; private processOrFilterEntry; private buildUserSelectedFilters; private buildFilterObject; private buildQuery; private fetchInteractions; private readonly createFetchMoreFunc; } export {}; //# sourceMappingURL=interactions-service-search.d.ts.map