@ndla/types-backend 0.2.76 → 0.2.78
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 +6 -11
- package/package.json +1 -1
package/build/search-api.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export interface IDraftSearchParams {
|
|
|
91
91
|
topics?: string[];
|
|
92
92
|
publishedDateFrom?: string;
|
|
93
93
|
publishedDateTo?: string;
|
|
94
|
+
resultTypes?: SearchType[];
|
|
94
95
|
}
|
|
95
96
|
export interface IGroupSearchResult {
|
|
96
97
|
totalCount: number;
|
|
@@ -174,7 +175,7 @@ export interface IMultiSearchSummary {
|
|
|
174
175
|
url: string;
|
|
175
176
|
contexts: IApiTaxonomyContext[];
|
|
176
177
|
supportedLanguages: string[];
|
|
177
|
-
learningResourceType:
|
|
178
|
+
learningResourceType: LearningResourceType;
|
|
178
179
|
status?: IStatus;
|
|
179
180
|
traits: string[];
|
|
180
181
|
score: number;
|
|
@@ -192,6 +193,8 @@ export interface IMultiSearchSummary {
|
|
|
192
193
|
primaryRootName?: string;
|
|
193
194
|
published?: string;
|
|
194
195
|
favorited?: number;
|
|
196
|
+
resultType: SearchType;
|
|
197
|
+
conceptSubjectIds?: string[];
|
|
195
198
|
}
|
|
196
199
|
export interface IMultiSearchTermsAggregation {
|
|
197
200
|
field: string;
|
|
@@ -249,13 +252,5 @@ export interface ITitle {
|
|
|
249
252
|
title: string;
|
|
250
253
|
language: string;
|
|
251
254
|
}
|
|
252
|
-
export
|
|
253
|
-
|
|
254
|
-
description: string;
|
|
255
|
-
messages: IValidationMessage[];
|
|
256
|
-
occuredAt: string;
|
|
257
|
-
}
|
|
258
|
-
export interface IValidationMessage {
|
|
259
|
-
field: string;
|
|
260
|
-
message: string;
|
|
261
|
-
}
|
|
255
|
+
export type LearningResourceType = ("standard" | "topic-article" | "frontpage-article" | "learningpath" | "concept" | "gloss");
|
|
256
|
+
export type SearchType = ("article" | "draft" | "learningpath" | "concept");
|
package/package.json
CHANGED