@ndla/types-backend 0.1.2 → 0.1.5
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 +16 -0
- package/package.json +1 -1
package/build/draft-api.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export interface IArticle {
|
|
|
49
49
|
revisions: IRevisionMeta[];
|
|
50
50
|
responsible?: IDraftResponsible;
|
|
51
51
|
slug?: string;
|
|
52
|
+
comments: IComment[];
|
|
52
53
|
}
|
|
53
54
|
export interface IArticleContent {
|
|
54
55
|
content: string;
|
|
@@ -95,6 +96,12 @@ export interface IAuthor {
|
|
|
95
96
|
type: string;
|
|
96
97
|
name: string;
|
|
97
98
|
}
|
|
99
|
+
export interface IComment {
|
|
100
|
+
id: string;
|
|
101
|
+
content: string;
|
|
102
|
+
created: string;
|
|
103
|
+
updated: string;
|
|
104
|
+
}
|
|
98
105
|
export interface ICopyright {
|
|
99
106
|
license?: ILicense;
|
|
100
107
|
origin?: string;
|
|
@@ -163,11 +170,15 @@ export interface INewArticle {
|
|
|
163
170
|
revisionMeta?: IRevisionMeta[];
|
|
164
171
|
responsibleId?: string;
|
|
165
172
|
slug?: string;
|
|
173
|
+
comments: INewComment[];
|
|
166
174
|
}
|
|
167
175
|
export interface INewArticleMetaImage {
|
|
168
176
|
id: string;
|
|
169
177
|
alt: string;
|
|
170
178
|
}
|
|
179
|
+
export interface INewComment {
|
|
180
|
+
content: string;
|
|
181
|
+
}
|
|
171
182
|
export interface IRelatedContentLink {
|
|
172
183
|
title: string;
|
|
173
184
|
url: string;
|
|
@@ -231,6 +242,11 @@ export interface IUpdatedArticle {
|
|
|
231
242
|
revisionMeta?: IRevisionMeta[];
|
|
232
243
|
responsibleId?: (null | string);
|
|
233
244
|
slug?: string;
|
|
245
|
+
comments: IUpdatedComment[];
|
|
246
|
+
}
|
|
247
|
+
export interface IUpdatedComment {
|
|
248
|
+
id?: string;
|
|
249
|
+
content: string;
|
|
234
250
|
}
|
|
235
251
|
export interface IUpdatedUserData {
|
|
236
252
|
savedSearches?: string[];
|
package/package.json
CHANGED