Rework search paging based on cursors

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-08-19 17:57:11 +02:00
parent a13f21cdc9
commit 532b4cc656
30 changed files with 826 additions and 418 deletions
+5 -5
View File
@@ -53,9 +53,7 @@ export interface SearchQuery {
// (undocumented)
filters?: JsonObject;
// (undocumented)
limit?: number;
// (undocumented)
offset?: number;
pageCursor?: string;
// (undocumented)
term: string;
// (undocumented)
@@ -77,9 +75,11 @@ export interface SearchResult {
// @public (undocumented)
export interface SearchResultSet {
// (undocumented)
results: SearchResult[];
nextPageCursor?: string;
// (undocumented)
totalCount: number;
previousPageCursor?: string;
// (undocumented)
results: SearchResult[];
}
// (No @packageDocumentation comment for this package)
+3 -3
View File
@@ -19,8 +19,7 @@ export interface SearchQuery {
term: string;
filters?: JsonObject;
types?: string[];
offset?: number;
limit?: number;
pageCursor?: string;
}
export interface SearchResult {
@@ -30,7 +29,8 @@ export interface SearchResult {
export interface SearchResultSet {
results: SearchResult[];
totalCount: number;
nextPageCursor?: string;
previousPageCursor?: string;
}
/**