@ndla/types-backend 0.2.17 → 0.2.19
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/article-api.d.ts +4 -14
- package/build/draft-api.d.ts +1 -1
- package/build/frontpage-api.d.ts +0 -5
- package/package.json +1 -1
package/build/article-api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Availability = ("everyone" | "teacher");
|
|
1
|
+
export type Availability = ("decoder" | "encoder" | "everyone" | "teacher");
|
|
2
2
|
export interface IArticleContentV2 {
|
|
3
3
|
content: string;
|
|
4
4
|
language: string;
|
|
@@ -33,12 +33,12 @@ export interface IArticleSearchParams {
|
|
|
33
33
|
license?: string;
|
|
34
34
|
page?: number;
|
|
35
35
|
pageSize?: number;
|
|
36
|
-
idList
|
|
37
|
-
articleTypes
|
|
36
|
+
idList?: number[];
|
|
37
|
+
articleTypes?: string[];
|
|
38
38
|
sort?: string;
|
|
39
39
|
fallback?: boolean;
|
|
40
40
|
scrollId?: string;
|
|
41
|
-
grepCodes
|
|
41
|
+
grepCodes?: string[];
|
|
42
42
|
}
|
|
43
43
|
export interface IArticleSummaryV2 {
|
|
44
44
|
id: number;
|
|
@@ -108,15 +108,6 @@ export interface ILicense {
|
|
|
108
108
|
description?: string;
|
|
109
109
|
url?: string;
|
|
110
110
|
}
|
|
111
|
-
export interface IPartialPublishArticle {
|
|
112
|
-
availability?: Availability;
|
|
113
|
-
grepCodes?: string[];
|
|
114
|
-
license?: string;
|
|
115
|
-
metaDescription?: IArticleMetaDescription[];
|
|
116
|
-
relatedContent?: (IRelatedContentLink | number)[];
|
|
117
|
-
tags?: IArticleTag[];
|
|
118
|
-
revisionDate?: (NullAlias | string);
|
|
119
|
-
}
|
|
120
111
|
export interface IRelatedContentLink {
|
|
121
112
|
title: string;
|
|
122
113
|
url: string;
|
|
@@ -154,4 +145,3 @@ export interface IVisualElement {
|
|
|
154
145
|
visualElement: string;
|
|
155
146
|
language: string;
|
|
156
147
|
}
|
|
157
|
-
export type NullAlias = null;
|
package/build/draft-api.d.ts
CHANGED
package/build/frontpage-api.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export interface IErrorBody {
|
|
|
19
19
|
code: string;
|
|
20
20
|
description: string;
|
|
21
21
|
occurredAt: string;
|
|
22
|
-
messages?: IValidationMessage[];
|
|
23
22
|
statusCode: number;
|
|
24
23
|
}
|
|
25
24
|
export interface IFilmFrontPageData {
|
|
@@ -127,10 +126,6 @@ export interface IUpdatedSubjectFrontPageData {
|
|
|
127
126
|
latestContent?: string[];
|
|
128
127
|
goTo?: string[];
|
|
129
128
|
}
|
|
130
|
-
export interface IValidationMessage {
|
|
131
|
-
field: string;
|
|
132
|
-
message: string;
|
|
133
|
-
}
|
|
134
129
|
export interface IVisualElement {
|
|
135
130
|
type: string;
|
|
136
131
|
url: string;
|
package/package.json
CHANGED