@ndla/types-backend 1.0.1 → 1.0.2
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 +4 -1
- package/build/search-api.js.map +1 -1
- package/package.json +1 -1
package/build/search-api.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export interface IDraftSearchParamsDTO {
|
|
|
81
81
|
draftStatus?: string[];
|
|
82
82
|
users?: string[];
|
|
83
83
|
grepCodes?: string[];
|
|
84
|
+
traits?: SearchTrait[];
|
|
84
85
|
aggregatePaths?: string[];
|
|
85
86
|
embedResource?: string[];
|
|
86
87
|
embedId?: string;
|
|
@@ -201,7 +202,7 @@ export interface IMultiSearchSummaryDTO {
|
|
|
201
202
|
supportedLanguages: string[];
|
|
202
203
|
learningResourceType: LearningResourceType;
|
|
203
204
|
status?: IStatusDTO;
|
|
204
|
-
traits:
|
|
205
|
+
traits: SearchTrait[];
|
|
205
206
|
score: number;
|
|
206
207
|
highlights: IHighlightedFieldDTO[];
|
|
207
208
|
paths: string[];
|
|
@@ -247,6 +248,7 @@ export interface ISearchParamsDTO {
|
|
|
247
248
|
relevance?: string[];
|
|
248
249
|
languageFilter?: string[];
|
|
249
250
|
grepCodes?: string[];
|
|
251
|
+
traits?: SearchTrait[];
|
|
250
252
|
aggregatePaths?: string[];
|
|
251
253
|
embedResource?: string[];
|
|
252
254
|
embedId?: string;
|
|
@@ -300,6 +302,7 @@ export interface ITitleWithHtmlDTO {
|
|
|
300
302
|
language: string;
|
|
301
303
|
}
|
|
302
304
|
export type LearningResourceType = ("standard" | "topic-article" | "frontpage-article" | "learningpath" | "concept" | "gloss");
|
|
305
|
+
export type SearchTrait = ("VIDEO" | "H5P" | "AUDIO" | "PODCAST");
|
|
303
306
|
export type SearchType = ("article" | "draft" | "learningpath" | "concept" | "grep");
|
|
304
307
|
export type Sort = SortEnum;
|
|
305
308
|
export declare enum SortEnum {
|
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;;;AAgW3C,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