File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,17 @@ export class SearchOptions {
2121 sort : { } [ ] ;
2222 from : number ;
2323 size : number ;
24+
25+ }
26+
27+ export class SearchAPIOptions extends SearchOptions {
2428 searchFields : Array < string > ;
2529 filters : Array < object > ;
2630 resultsPerPage : number ;
2731 rangeObjects : Array < rangeObject >
2832 rangeStart : Date ;
2933 rangeEnd : Date ;
3034 rangeField : string ;
31-
3235}
3336
3437//support for date ranges
@@ -87,7 +90,7 @@ export class BasicSearchManager {
8790 * @param searchText the text string to search for
8891 * @param options options to specify how to search, with well-defined defaults
8992 */
90- async apiSearch ( searchText : string , options : Partial < SearchOptions > = undefined , queryStrings ?: Array < object > ) : Promise < CveResult > {
93+ async apiSearch ( searchText : string , options : Partial < SearchAPIOptions > = undefined , queryStrings ?: Array < object > ) : Promise < CveResult > {
9194 let response = undefined ;
9295
9396 if ( ! options ) {
You can’t perform that action at this time.
0 commit comments