Update API reports

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-08-16 11:29:50 +02:00
parent cd40f01ffd
commit 56e7932629
4 changed files with 19 additions and 3 deletions
+5 -1
View File
@@ -53,7 +53,9 @@ export interface SearchQuery {
// (undocumented)
filters?: JsonObject;
// (undocumented)
pageCursor: string;
limit?: number;
// (undocumented)
offset?: number;
// (undocumented)
term: string;
// (undocumented)
@@ -76,6 +78,8 @@ export interface SearchResult {
export interface SearchResultSet {
// (undocumented)
results: SearchResult[];
// (undocumented)
totalCount: number;
}
// (No @packageDocumentation comment for this package)
@@ -45,6 +45,8 @@ export class ElasticSearchSearchEngine implements SearchEngine {
term,
filters,
types,
offset,
limit,
}: SearchQuery): ConcreteElasticSearchQuery;
}
@@ -18,6 +18,8 @@ export class DatabaseDocumentStore implements DatabaseStore {
// (undocumented)
completeInsert(tx: Knex.Transaction, type: string): Promise<void>;
// (undocumented)
count(tx: Knex.Transaction, searchQuery: PgSearchQuery): Promise<number>;
// (undocumented)
static create(knex: Knex): Promise<DatabaseDocumentStore>;
// (undocumented)
insertDocuments(
@@ -32,7 +34,7 @@ export class DatabaseDocumentStore implements DatabaseStore {
// (undocumented)
query(
tx: Knex.Transaction,
{ types, pgTerm, fields }: PgSearchQuery,
searchQuery: PgSearchQuery,
): Promise<DocumentResultRow[]>;
// (undocumented)
static supported(knex: Knex): Promise<boolean>;
@@ -47,6 +49,8 @@ export interface DatabaseStore {
// (undocumented)
completeInsert(tx: Knex.Transaction, type: string): Promise<void>;
// (undocumented)
count(tx: Knex.Transaction, pgQuery: PgSearchQuery): Promise<number>;
// (undocumented)
insertDocuments(
tx: Knex.Transaction,
type: string,
@@ -93,6 +97,10 @@ export interface PgSearchQuery {
// (undocumented)
fields?: Record<string, string | string[]>;
// (undocumented)
limit: number;
// (undocumented)
offset: number;
// (undocumented)
pgTerm?: string;
// (undocumented)
types?: string[];
+3 -1
View File
@@ -139,8 +139,10 @@ export { searchPlugin };
// @public (undocumented)
export const SearchResult: ({
children,
initialPageSize,
}: {
children: (results: { results: SearchResult_2[] }) => JSX.Element;
initialPageSize?: number | undefined;
}) => JSX.Element;
// Warning: (ae-forgotten-export) The symbol "SearchTypeProps" needs to be exported by the entry point index.d.ts
@@ -167,7 +169,7 @@ export const useSearch: () => SearchContextValue;
// Warnings were encountered during analysis:
//
// src/components/SearchContext/SearchContext.d.ts:19:5 - (ae-forgotten-export) The symbol "SettableSearchContext" needs to be exported by the entry point index.d.ts
// src/components/SearchContext/SearchContext.d.ts:23:5 - (ae-forgotten-export) The symbol "SettableSearchContext" needs to be exported by the entry point index.d.ts
// src/components/SearchFilter/SearchFilter.d.ts:13:5 - (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts
// src/components/SearchFilter/SearchFilter.d.ts:14:5 - (ae-forgotten-export) The symbol "Component" needs to be exported by the entry point index.d.ts