@ndla/types-backend 0.2.75 → 0.2.77

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.
@@ -158,7 +158,7 @@ export interface INewComment {
158
158
  }
159
159
  export interface IQualityEvaluation {
160
160
  grade: Grade;
161
- note: string;
161
+ note?: string;
162
162
  }
163
163
  export interface IRelatedContentLink {
164
164
  title: string;
@@ -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: string;
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;
@@ -259,3 +262,5 @@ export interface IValidationMessage {
259
262
  field: string;
260
263
  message: string;
261
264
  }
265
+ export type LearningResourceType = ("standard" | "topic-article" | "frontpage-article" | "learningpath" | "concept" | "gloss");
266
+ export type SearchType = ("article" | "draft" | "learningpath" | "concept");
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3"
29
29
  },
30
- "version": "0.2.75"
30
+ "version": "0.2.77"
31
31
  }