@ndla/types-backend 1.0.26 → 1.0.28
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/frontpage-api.d.ts +5 -5
- package/build/search-api.d.ts +35 -3
- package/build/search-api.js.map +1 -1
- package/package.json +1 -1
package/build/frontpage-api.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface IErrorBody {
|
|
|
21
21
|
occurredAt: string;
|
|
22
22
|
statusCode: number;
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
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
|
|
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
|
|
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
|
|
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
|
|
106
|
+
export interface IUpdatedSubjectPageDTO {
|
|
107
107
|
name?: string;
|
|
108
108
|
externalId?: string;
|
|
109
109
|
banner?: INewOrUpdateBannerImageDTO;
|
package/build/search-api.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ export interface IGroupSearchResultDTO {
|
|
|
174
174
|
page?: number;
|
|
175
175
|
pageSize: number;
|
|
176
176
|
language: string;
|
|
177
|
-
results:
|
|
177
|
+
results: MultiSummaryBaseDTO[];
|
|
178
178
|
suggestions: IMultiSearchSuggestionDTO[];
|
|
179
179
|
aggregations: IMultiSearchTermsAggregationDTO[];
|
|
180
180
|
resourceType: string;
|
|
@@ -235,7 +235,7 @@ export interface IMultiSearchResultDTO {
|
|
|
235
235
|
page?: number;
|
|
236
236
|
pageSize: number;
|
|
237
237
|
language: string;
|
|
238
|
-
results:
|
|
238
|
+
results: MultiSummaryBaseDTO[];
|
|
239
239
|
suggestions: IMultiSearchSuggestionDTO[];
|
|
240
240
|
aggregations: IMultiSearchTermsAggregationDTO[];
|
|
241
241
|
}
|
|
@@ -271,6 +271,7 @@ export interface IMultiSearchSummaryDTO {
|
|
|
271
271
|
published?: string;
|
|
272
272
|
favorited?: number;
|
|
273
273
|
resultType: SearchType;
|
|
274
|
+
typename: "MultiSearchSummaryDTO";
|
|
274
275
|
}
|
|
275
276
|
export interface IMultiSearchTermsAggregationDTO {
|
|
276
277
|
field: string;
|
|
@@ -278,11 +279,30 @@ export interface IMultiSearchTermsAggregationDTO {
|
|
|
278
279
|
docCountErrorUpperBound: number;
|
|
279
280
|
values: ITermValueDTO[];
|
|
280
281
|
}
|
|
282
|
+
export interface INODE {
|
|
283
|
+
typename: "NODE";
|
|
284
|
+
}
|
|
285
|
+
export interface INodeHitDTO {
|
|
286
|
+
id: string;
|
|
287
|
+
title: string;
|
|
288
|
+
url?: string;
|
|
289
|
+
subjectPage?: ISubjectPageSummaryDTO;
|
|
290
|
+
typename: "NodeHitDTO";
|
|
291
|
+
}
|
|
292
|
+
export interface IPROGRAMME {
|
|
293
|
+
typename: "PROGRAMME";
|
|
294
|
+
}
|
|
295
|
+
export interface IRESOURCE {
|
|
296
|
+
typename: "RESOURCE";
|
|
297
|
+
}
|
|
281
298
|
export interface IRevisionMetaDTO {
|
|
282
299
|
revisionDate: string;
|
|
283
300
|
note: string;
|
|
284
301
|
status: string;
|
|
285
302
|
}
|
|
303
|
+
export interface ISUBJECT {
|
|
304
|
+
typename: "SUBJECT";
|
|
305
|
+
}
|
|
286
306
|
export interface ISearchParamsDTO {
|
|
287
307
|
page?: number;
|
|
288
308
|
pageSize?: number;
|
|
@@ -304,6 +324,8 @@ export interface ISearchParamsDTO {
|
|
|
304
324
|
embedResource?: string[];
|
|
305
325
|
embedId?: string;
|
|
306
326
|
filterInactive?: boolean;
|
|
327
|
+
resultTypes?: SearchType[];
|
|
328
|
+
nodeTypeFilter?: NodeType[];
|
|
307
329
|
sort?: string;
|
|
308
330
|
}
|
|
309
331
|
export interface ISearchSuggestionDTO {
|
|
@@ -330,10 +352,18 @@ export interface ISubjectAggregationsDTO {
|
|
|
330
352
|
export interface ISubjectAggsInputDTO {
|
|
331
353
|
subjects?: string[];
|
|
332
354
|
}
|
|
355
|
+
export interface ISubjectPageSummaryDTO {
|
|
356
|
+
id: number;
|
|
357
|
+
name: string;
|
|
358
|
+
metaDescription: IMetaDescriptionDTO;
|
|
359
|
+
}
|
|
333
360
|
export interface ISuggestOptionDTO {
|
|
334
361
|
text: string;
|
|
335
362
|
score: number;
|
|
336
363
|
}
|
|
364
|
+
export interface ITOPIC {
|
|
365
|
+
typename: "TOPIC";
|
|
366
|
+
}
|
|
337
367
|
export interface ITaxonomyResourceTypeDTO {
|
|
338
368
|
id: string;
|
|
339
369
|
name: string;
|
|
@@ -353,8 +383,10 @@ export interface ITitleWithHtmlDTO {
|
|
|
353
383
|
language: string;
|
|
354
384
|
}
|
|
355
385
|
export type LearningResourceType = ("standard" | "topic-article" | "frontpage-article" | "learningpath" | "concept" | "gloss");
|
|
386
|
+
export type MultiSummaryBaseDTO = (IMultiSearchSummaryDTO | INodeHitDTO);
|
|
387
|
+
export type NodeType = (ISUBJECT | IRESOURCE | INODE | IPROGRAMME | ITOPIC);
|
|
356
388
|
export type SearchTrait = ("VIDEO" | "H5P" | "AUDIO" | "PODCAST");
|
|
357
|
-
export type SearchType = ("article" | "draft" | "learningpath" | "concept" | "grep");
|
|
389
|
+
export type SearchType = ("article" | "draft" | "learningpath" | "concept" | "grep" | "node");
|
|
358
390
|
export type Sort = SortEnum;
|
|
359
391
|
export declare enum SortEnum {
|
|
360
392
|
ByRelevanceDesc = "-relevance",
|
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;;;AAsc3C,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