@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.
@@ -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;
@@ -249,13 +252,5 @@ export interface ITitle {
249
252
  title: string;
250
253
  language: string;
251
254
  }
252
- export interface IValidationError {
253
- code: string;
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
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3"
29
29
  },
30
- "version": "0.2.76"
30
+ "version": "0.2.78"
31
31
  }