@ndla/types-backend 1.0.1 → 1.0.3
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/draft-api.d.ts +7 -0
- package/build/search-api.d.ts +4 -1
- package/build/search-api.js.map +1 -1
- package/package.json +1 -1
package/build/draft-api.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export interface IArticleDTO {
|
|
|
48
48
|
priority: string;
|
|
49
49
|
started: boolean;
|
|
50
50
|
qualityEvaluation?: IQualityEvaluationDTO;
|
|
51
|
+
disclaimer?: IDisclaimerDTO;
|
|
51
52
|
}
|
|
52
53
|
export interface IArticleIntroductionDTO {
|
|
53
54
|
introduction: string;
|
|
@@ -113,6 +114,10 @@ export interface ICommentDTO {
|
|
|
113
114
|
isOpen: boolean;
|
|
114
115
|
solved: boolean;
|
|
115
116
|
}
|
|
117
|
+
export interface IDisclaimerDTO {
|
|
118
|
+
disclaimer: string;
|
|
119
|
+
language: string;
|
|
120
|
+
}
|
|
116
121
|
export interface IDraftCopyrightDTO {
|
|
117
122
|
license?: ILicenseDTO;
|
|
118
123
|
origin?: string;
|
|
@@ -170,6 +175,7 @@ export interface INewArticleDTO {
|
|
|
170
175
|
prioritized?: boolean;
|
|
171
176
|
priority?: string;
|
|
172
177
|
qualityEvaluation?: IQualityEvaluationDTO;
|
|
178
|
+
disclaimer?: string;
|
|
173
179
|
}
|
|
174
180
|
export interface INewArticleMetaImageDTO {
|
|
175
181
|
id: string;
|
|
@@ -249,6 +255,7 @@ export interface IUpdatedArticleDTO {
|
|
|
249
255
|
prioritized?: boolean;
|
|
250
256
|
priority?: string;
|
|
251
257
|
qualityEvaluation?: IQualityEvaluationDTO;
|
|
258
|
+
disclaimer?: string;
|
|
252
259
|
}
|
|
253
260
|
export interface IUpdatedCommentDTO {
|
|
254
261
|
id?: string;
|
package/build/search-api.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export interface IDraftSearchParamsDTO {
|
|
|
81
81
|
draftStatus?: string[];
|
|
82
82
|
users?: string[];
|
|
83
83
|
grepCodes?: string[];
|
|
84
|
+
traits?: SearchTrait[];
|
|
84
85
|
aggregatePaths?: string[];
|
|
85
86
|
embedResource?: string[];
|
|
86
87
|
embedId?: string;
|
|
@@ -201,7 +202,7 @@ export interface IMultiSearchSummaryDTO {
|
|
|
201
202
|
supportedLanguages: string[];
|
|
202
203
|
learningResourceType: LearningResourceType;
|
|
203
204
|
status?: IStatusDTO;
|
|
204
|
-
traits:
|
|
205
|
+
traits: SearchTrait[];
|
|
205
206
|
score: number;
|
|
206
207
|
highlights: IHighlightedFieldDTO[];
|
|
207
208
|
paths: string[];
|
|
@@ -247,6 +248,7 @@ export interface ISearchParamsDTO {
|
|
|
247
248
|
relevance?: string[];
|
|
248
249
|
languageFilter?: string[];
|
|
249
250
|
grepCodes?: string[];
|
|
251
|
+
traits?: SearchTrait[];
|
|
250
252
|
aggregatePaths?: string[];
|
|
251
253
|
embedResource?: string[];
|
|
252
254
|
embedId?: string;
|
|
@@ -300,6 +302,7 @@ export interface ITitleWithHtmlDTO {
|
|
|
300
302
|
language: string;
|
|
301
303
|
}
|
|
302
304
|
export type LearningResourceType = ("standard" | "topic-article" | "frontpage-article" | "learningpath" | "concept" | "gloss");
|
|
305
|
+
export type SearchTrait = ("VIDEO" | "H5P" | "AUDIO" | "PODCAST");
|
|
303
306
|
export type SearchType = ("article" | "draft" | "learningpath" | "concept" | "grep");
|
|
304
307
|
export type Sort = SortEnum;
|
|
305
308
|
export declare enum SortEnum {
|
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;;;AAgW3C,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