import Base, { MaybeRaw } from "../../../../Base"; import { SearchParams } from "../../../../interfaces/global"; import { High5ExecutionStatusFullSearchResponse, High5ExecutionStatusSearchResponse } from "../../../../interfaces/high5/space/execution"; export declare class High5OrganizationExecutionStates extends Base { /** * Retrieves the stream execution states of an organization. * * Besides the fields of the execution state, filters can target the payload of the execution: * - `payload.` filters JSON payloads by the value at the given property path, e.g. `payload.user.id`. * `is` matches the exact value (numbers and booleans keep their type), `starts with` is case-sensitive, `contains` and `ends with` are case-insensitive. * - `payload` with `contains` is a case-insensitive text search over all string values of the payload. A single word only matches * whole words, values with separators are searched as phrase. Only the newest 10000 matching executions are considered, * use {@link fullSearchExecutionStates} to consider all of them. * * When filtering by payload, each state contains the `payload` of its execution and the total is capped at 1000 (see `totalCapped`). * @param orgName Name of the Organization * @param filters (optional) Array of search filters * @param sorting (optional) Sorting object * @param limit (optional) Max number of results (1-100; defaults to 25) * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0) * @returns Object containing an array of Stream execution states, the total number of results and whether the total is capped */ searchExecutionStates({ orgName, filters, sorting, limit, page }: SearchParams & { orgName: string; }, raw?: { raw: R; }): Promise>; /** * Retrieves the stream execution states of an organization by payload, considering all executions without limits. * The count is skipped, so instead of a total the response tells whether a next page exists. Takes the same filters as * {@link searchExecutionStates}, but can take considerably longer for payload filters matching many executions. * Searches without payload filters behave like {@link searchExecutionStates}. * @param orgName Name of the Organization * @param filters (optional) Array of search filters * @param sorting (optional) Sorting object * @param limit (optional) Max number of results (1-100; defaults to 25) * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0) * @returns Object containing an array of Stream execution states and whether a next page exists */ fullSearchExecutionStates({ orgName, filters, sorting, limit, page }: SearchParams & { orgName: string; }, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }