Skip to content

Commit

Permalink
search-api: Generate typescript type for SearchParams
Browse files Browse the repository at this point in the history
  • Loading branch information
jnatten committed Nov 4, 2024
1 parent f4c73fa commit 14fe6d6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions project/searchapi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ object searchapi extends Module {
"ImageResults",
"LearningpathResults",
"SearchError",
"SearchParams",
"DraftSearchParams",
"SubjectAggregations",
"SubjectAggsInput"
Expand Down
23 changes: 23 additions & 0 deletions typescript/types-backend/search-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,29 @@ export interface ISearchError {
errorMsg: string
}

export interface ISearchParams {
page?: number
pageSize?: number
articleTypes?: string[]
scrollId?: string
query?: string
fallback?: boolean
language?: string
license?: string
ids?: number[]
subjects?: string[]
resourceTypes?: string[]
contextTypes?: string[]
relevance?: string[]
languageFilter?: string[]
grepCodes?: string[]
aggregatePaths?: string[]
embedResource?: string[]
embedId?: string
filterInactive?: boolean
sort?: string
}

export interface ISearchSuggestion {
text: string
offset: number
Expand Down

0 comments on commit 14fe6d6

Please sign in to comment.