@ndla/types-backend 1.0.27 → 1.0.29

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.
@@ -21,7 +21,7 @@ export interface IErrorBody {
21
21
  occurredAt: string;
22
22
  statusCode: number;
23
23
  }
24
- export interface IFilmFrontPageDataDTO {
24
+ export interface IFilmFrontPageDTO {
25
25
  name: string;
26
26
  about: IAboutFilmSubjectDTO[];
27
27
  movieThemes: IMovieThemeDTO[];
@@ -56,7 +56,7 @@ export interface INewOrUpdatedAboutSubjectDTO {
56
56
  language: string;
57
57
  visualElement: INewOrUpdatedVisualElementDTO;
58
58
  }
59
- export interface INewOrUpdatedFilmFrontPageDataDTO {
59
+ export interface INewOrUpdatedFilmFrontPageDTO {
60
60
  name: string;
61
61
  about: INewOrUpdatedAboutSubjectDTO[];
62
62
  movieThemes: INewOrUpdatedMovieThemeDTO[];
@@ -80,7 +80,7 @@ export interface INewOrUpdatedVisualElementDTO {
80
80
  id: string;
81
81
  alt?: string;
82
82
  }
83
- export interface INewSubjectFrontPageDataDTO {
83
+ export interface INewSubjectPageDTO {
84
84
  name: string;
85
85
  externalId?: string;
86
86
  banner: INewOrUpdateBannerImageDTO;
@@ -91,7 +91,7 @@ export interface INewSubjectFrontPageDataDTO {
91
91
  buildsOn?: string[];
92
92
  leadsTo?: string[];
93
93
  }
94
- export interface ISubjectPageDataDTO {
94
+ export interface ISubjectPageDTO {
95
95
  id: number;
96
96
  name: string;
97
97
  banner: IBannerImageDTO;
@@ -103,7 +103,7 @@ export interface ISubjectPageDataDTO {
103
103
  buildsOn: string[];
104
104
  leadsTo: string[];
105
105
  }
106
- export interface IUpdatedSubjectFrontPageDataDTO {
106
+ export interface IUpdatedSubjectPageDTO {
107
107
  name?: string;
108
108
  externalId?: string;
109
109
  banner?: INewOrUpdateBannerImageDTO;
@@ -279,16 +279,30 @@ export interface IMultiSearchTermsAggregationDTO {
279
279
  docCountErrorUpperBound: number;
280
280
  values: ITermValueDTO[];
281
281
  }
282
+ export interface INODE {
283
+ typename: "NODE";
284
+ }
282
285
  export interface INodeHitDTO {
283
286
  id: string;
287
+ title: string;
288
+ url?: string;
284
289
  subjectPage?: ISubjectPageSummaryDTO;
285
290
  typename: "NodeHitDTO";
286
291
  }
292
+ export interface IPROGRAMME {
293
+ typename: "PROGRAMME";
294
+ }
295
+ export interface IRESOURCE {
296
+ typename: "RESOURCE";
297
+ }
287
298
  export interface IRevisionMetaDTO {
288
299
  revisionDate: string;
289
300
  note: string;
290
301
  status: string;
291
302
  }
303
+ export interface ISUBJECT {
304
+ typename: "SUBJECT";
305
+ }
292
306
  export interface ISearchParamsDTO {
293
307
  page?: number;
294
308
  pageSize?: number;
@@ -311,6 +325,7 @@ export interface ISearchParamsDTO {
311
325
  embedId?: string;
312
326
  filterInactive?: boolean;
313
327
  resultTypes?: SearchType[];
328
+ nodeTypeFilter?: NodeType[];
314
329
  sort?: string;
315
330
  }
316
331
  export interface ISearchSuggestionDTO {
@@ -346,6 +361,9 @@ export interface ISuggestOptionDTO {
346
361
  text: string;
347
362
  score: number;
348
363
  }
364
+ export interface ITOPIC {
365
+ typename: "TOPIC";
366
+ }
349
367
  export interface ITaxonomyResourceTypeDTO {
350
368
  id: string;
351
369
  name: string;
@@ -366,6 +384,7 @@ export interface ITitleWithHtmlDTO {
366
384
  }
367
385
  export type LearningResourceType = ("standard" | "topic-article" | "frontpage-article" | "learningpath" | "concept" | "gloss");
368
386
  export type MultiSummaryBaseDTO = (IMultiSearchSummaryDTO | INodeHitDTO);
387
+ export type NodeType = (ISUBJECT | IRESOURCE | ITOPIC | IPROGRAMME | INODE);
369
388
  export type SearchTrait = ("VIDEO" | "H5P" | "AUDIO" | "PODCAST");
370
389
  export type SearchType = ("article" | "draft" | "learningpath" | "concept" | "grep" | "node");
371
390
  export type Sort = SortEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2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C,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
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3"
29
29
  },
30
- "version": "1.0.27"
30
+ "version": "1.0.29"
31
31
  }