@ndla/types-backend 0.2.95 → 0.2.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/search-api.d.ts +22 -0
- package/build/search-api.js.map +1 -1
- package/package.json +1 -1
package/build/search-api.d.ts
CHANGED
|
@@ -214,6 +214,28 @@ export interface ISearchError {
|
|
|
214
214
|
type: string;
|
|
215
215
|
errorMsg: string;
|
|
216
216
|
}
|
|
217
|
+
export interface ISearchParams {
|
|
218
|
+
page?: number;
|
|
219
|
+
pageSize?: number;
|
|
220
|
+
articleTypes?: string[];
|
|
221
|
+
scrollId?: string;
|
|
222
|
+
query?: string;
|
|
223
|
+
fallback?: boolean;
|
|
224
|
+
language?: string;
|
|
225
|
+
license?: string;
|
|
226
|
+
ids?: number[];
|
|
227
|
+
subjects?: string[];
|
|
228
|
+
resourceTypes?: string[];
|
|
229
|
+
contextTypes?: string[];
|
|
230
|
+
relevance?: string[];
|
|
231
|
+
languageFilter?: string[];
|
|
232
|
+
grepCodes?: string[];
|
|
233
|
+
aggregatePaths?: string[];
|
|
234
|
+
embedResource?: string[];
|
|
235
|
+
embedId?: string;
|
|
236
|
+
filterInactive?: boolean;
|
|
237
|
+
sort?: string;
|
|
238
|
+
}
|
|
217
239
|
export interface ISearchSuggestion {
|
|
218
240
|
text: string;
|
|
219
241
|
offset: number;
|
package/build/search-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;
|
|
1
|
+
{"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAmU3C,IAAY,QA6BX;AA7BD,WAAY,QAAQ;IAClB,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,kCAAsB,CAAA;IACtB,gCAAoB,CAAA;IACpB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,4BAAgB,CAAA;IAChB,0BAAc,CAAA;IACd,wCAA4B,CAAA;IAC5B,sCAA0B,CAAA;IAC1B,8CAAkC,CAAA;IAClC,gDAAoC,CAAA;IACpC,kEAAsD,CAAA;IACtD,oEAAwD,CAAA;IACxD,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,sDAA0C,CAAA;IAC1C,oDAAwC,CAAA;IACxC,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,gDAAoC,CAAA;IACpC,8CAAkC,CAAA;IAClC,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;AAC9B,CAAC,EA7BW,QAAQ,wBAAR,QAAQ,QA6BnB"}
|
package/package.json
CHANGED