Skip to content

Commit

Permalink
RequestHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-nicka committed Jan 8, 2025
1 parent e8cda8c commit 068383d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { getContainerFilter } from '../../query/api';

import { ModuleContext } from '../base/ServerContext';

import { RequestHandler } from '../../request';

import { getSearchScopeFromContainerFilter, escapeSearchQuery } from './utils';
import { GetCardDataFn, SearchIdData, SearchResultCardData } from './models';
import { SearchCategory, SearchField, SearchScope } from './constants';
Expand Down Expand Up @@ -54,7 +56,7 @@ export interface SearchOptions {
normalizeUrls?: boolean;
offset?: number;
q: string;
requestHandler?: (request: XMLHttpRequest) => void;
requestHandler?: RequestHandler;
scope?: SearchScope;
}

Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/internal/query/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import { QueryColumn, QueryLookup } from '../../public/QueryColumn';
import { ViewInfo, ViewInfoJson } from '../ViewInfo';
import { URLResolver } from '../url/URLResolver';
import { ModuleContext } from '../components/base/ServerContext';
import { RequestHandler } from '../request';

let queryDetailsCache: Record<string, Promise<QueryInfo>> = {};

Expand Down Expand Up @@ -1336,7 +1337,7 @@ export function getContainerFilterForLookups(moduleContext?: ModuleContext): Que
}

export interface SelectDistinctOptions extends Omit<Query.SelectDistinctOptions, 'success' | 'failure'> {
requestHandler?: (request: XMLHttpRequest) => void;
requestHandler?: RequestHandler;
}

export function selectDistinctRows(options: SelectDistinctOptions): Promise<Query.SelectDistinctResponse> {
Expand Down

0 comments on commit 068383d

Please sign in to comment.