import { Dictionary, Field } from '../../engine/Engine'; import { Conditions } from '../../components/TableSection/TableHeader/SearchBar'; export interface QueryState { queryPage: number; activeRow: any; activeRowIndex: number; queryData: any[]; queryCount: number | undefined; invalidQuery: boolean; lastExecutedQuery: string; queryLimit: number; detailsAutoOpen: boolean; detailsOpen: boolean; search: boolean; searchArguments: SearchArguments; } export interface SearchArguments { field?: Field; condition: Conditions; value: any; } export interface Query { lastSavedQuery: string; lastExecutedQuery: string; queryCount: number; queryData: any[]; detailsData: any; queryLimit: number; queryRunning: boolean; queryPage: number; renameQuery: boolean; renameQueryName: string; activeRow: any; activeRowIndex: number; fields: Dictionary; name: string; typeName: string; queryState: { [queryName: string]: QueryState; }; } export declare const defaultQueryState: QueryState; export declare const defaultQueryModuleState: Query; export declare const queryModule: { name: string; state: Query; actions: { createEmptyQuery: () => { type: string; }; startRenameQuery: (queryName: any) => { type: string; queryName: any; }; renameQuery: ({ oldName, newName }: { oldName: any; newName: any; }) => { type: string; oldName: any; newName: any; }; stopRenameQuery: () => { type: string; }; duplicateInlineQuery: () => { type: string; }; duplicateQuery: (name: any) => { type: string; name: any; }; duplicateSavedQuery: (name: any) => { type: string; name: any; }; saveQuery: () => { type: string; }; setQuery: ({ name, query, limit }: { name: any; query: any; limit: any; }) => { type: string; name: any; query: any; limit: any; }; clearQuery: (limit: any) => { type: string; limit: any; }; runQueryPage: (queryPage: any) => { type: string; queryPage: any; }; resetQuery: () => { type: string; }; selectHistoryQuery: (queryName: any) => { type: string; queryName: any; }; selectResultRow: (index: any) => { type: string; index: any; }; runDetailsQuery: (typeName: any, id: any) => { type: string; typeName: any; id: any; }; selectNextRecord: () => { type: string; direction: import("../../shortcuts/shortcuts").Direction; }; selectPrevRecord: () => { type: string; direction: import("../../shortcuts/shortcuts").Direction; }; unselectRecord: () => { type: string; }; runSearchQuery: () => { type: string; }; toggleSerach: () => { type: string; }; changeSerachField: (field: Field) => { type: string; field: Field; }; changeSearchCondition: (condition: Conditions) => { type: string; condition: Conditions; }; changeSearchValue: (value: string, field: Field) => { type: string; value: string; field: Field; }; }; mutations: { QUERY_RESET: (state: Query) => void; CREATE_EMPTY_QUERY: (state: Query) => void; QUERY_SAVE_EMPTY_QUERY: (state: Query, { name }: { name: any; }) => void; START_RENAME_QUERY: (state: Query, { queryName }: { queryName: any; }) => void; STOP_RENAME_QUERY: (state: Query) => void; RENAME_QUERY_FINISHED: (state: Query, { newName }: { newName: any; }) => void; SET_LAST_SAVED_QUERY: (state: Query, { query }: { query: any; }) => void; SET_QUERY: (state: Query, { name, query, limit, detailsAutoOpen }: { name: any; query: any; limit: any; detailsAutoOpen: any; }) => void; QUERY_SET_FIELDS: (state: Query, { fields, typeName }: { fields: any; typeName: any; }) => void; CLEAR_QUERY: (state: Query) => void; RUN_QUERY: (state: Query, { origin }: { origin?: string | undefined; }) => void; RUN_QUERY_PAGE: (state: Query, { queryPage }: { queryPage: any; }) => void; QUERY_FINISHED: (state: Query, { data, count, queryLimit }: { data: any[]; count: number; queryLimit: number | undefined; }) => void; QUERY_DELETE_STATE: (state: Query, { name }: { name: any; }) => void; SELECT_RESULT_ROW: (state: Query, { index }: { index: any; }) => void; QUERY_TOGGLE_DETAILS_AUTO: (state: Query, { detailsAutoOpen }: { detailsAutoOpen: any; }) => void; QUERY_SET_COUNT: (state: any, { queryCount }: { queryCount: any; }) => void; QUERY_INVALID_QUERIES: (state: Query) => void; DETAILS_QUERY_FINISHED: (state: Query, { data }: { data: any; }) => void; QUERY_SELECT_RECORD: (state: Query, { direction }: { direction: any; }) => void; QUERY_UNSELECT_RECORD: (state: Query) => void; QUERY_TOGGLE_SEARCH: (state: Query) => void; QUERY_CHANGE_SEARCH_FIELD: (state: Query, { field }: { field: any; }) => void; QUERY_CHANGE_SEARCH_CONDITION: (state: Query, { condition }: { condition: any; }) => void; QUERY_CHANGE_SEARCH_VALUE: (state: Query, { value, field }: { value: string; field: Field; }) => void; }; selectors: { getQueryName: (state: Query) => string; queryFields: (state: Query) => Dictionary; getQueryState: (state: Query) => { [queryName: string]: QueryState; }; getQueryTypeName: (state: Query) => string; getQueryCount: (state: Query) => number; detailsData: (state: Query) => any; detailsOpen: (state: Query) => boolean; searchActive: (state: Query) => boolean; activeSearchCondition: (state: Query) => Conditions; activeSearchFieldName: (state: Query) => string | undefined; activeSearchString: (state: Query) => any; activeRow: (state: Query) => any; getActiveRowIndex: (state: Query) => number; getCurrentPage: (state: Query) => number; getLastSavedQuery: (state: Query) => string; getLastExecutedQuery: (state: Query) => string; getQueryData: (state: Query) => any[]; renameMode: (state: Query) => boolean; getRenameQueryName: (state: Query) => string; getQueryLimit: (state: Query) => number; }; sagas: any; };