@ndla/types-backend 0.2.71 → 0.2.73
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 -7
- package/build/myndla-api.d.ts +13 -0
- package/package.json +1 -1
package/build/draft-api.d.ts
CHANGED
|
@@ -124,24 +124,24 @@ export interface INewArticle {
|
|
|
124
124
|
title: string;
|
|
125
125
|
published?: string;
|
|
126
126
|
content?: string;
|
|
127
|
-
tags
|
|
127
|
+
tags?: string[];
|
|
128
128
|
introduction?: string;
|
|
129
129
|
metaDescription?: string;
|
|
130
130
|
metaImage?: INewArticleMetaImage;
|
|
131
131
|
visualElement?: string;
|
|
132
132
|
copyright?: IDraftCopyright;
|
|
133
|
-
requiredLibraries
|
|
133
|
+
requiredLibraries?: IRequiredLibrary[];
|
|
134
134
|
articleType: string;
|
|
135
|
-
notes
|
|
136
|
-
editorLabels
|
|
137
|
-
grepCodes
|
|
138
|
-
conceptIds
|
|
135
|
+
notes?: string[];
|
|
136
|
+
editorLabels?: string[];
|
|
137
|
+
grepCodes?: string[];
|
|
138
|
+
conceptIds?: number[];
|
|
139
139
|
availability?: string;
|
|
140
140
|
relatedContent: (IRelatedContentLink | number)[];
|
|
141
141
|
revisionMeta?: IRevisionMeta[];
|
|
142
142
|
responsibleId?: string;
|
|
143
143
|
slug?: string;
|
|
144
|
-
comments
|
|
144
|
+
comments?: INewComment[];
|
|
145
145
|
prioritized?: boolean;
|
|
146
146
|
priority?: string;
|
|
147
147
|
}
|
package/build/myndla-api.d.ts
CHANGED
|
@@ -19,6 +19,14 @@ export interface ICategory {
|
|
|
19
19
|
isFollowing: boolean;
|
|
20
20
|
visible: boolean;
|
|
21
21
|
rank: number;
|
|
22
|
+
parentCategoryId?: number;
|
|
23
|
+
categoryCount: number;
|
|
24
|
+
subcategories: ICategory[];
|
|
25
|
+
breadcrumbs: ICategoryBreadcrumb[];
|
|
26
|
+
}
|
|
27
|
+
export interface ICategoryBreadcrumb {
|
|
28
|
+
id: number;
|
|
29
|
+
title: string;
|
|
22
30
|
}
|
|
23
31
|
export interface ICategoryWithTopics {
|
|
24
32
|
id: number;
|
|
@@ -32,6 +40,10 @@ export interface ICategoryWithTopics {
|
|
|
32
40
|
isFollowing: boolean;
|
|
33
41
|
visible: boolean;
|
|
34
42
|
rank: number;
|
|
43
|
+
parentCategoryId?: number;
|
|
44
|
+
categoryCount: number;
|
|
45
|
+
subcategories: ICategory[];
|
|
46
|
+
breadcrumbs: ICategoryBreadcrumb[];
|
|
35
47
|
}
|
|
36
48
|
export interface IConfigMeta {
|
|
37
49
|
key: string;
|
|
@@ -91,6 +103,7 @@ export interface INewCategory {
|
|
|
91
103
|
title: string;
|
|
92
104
|
description: string;
|
|
93
105
|
visible: boolean;
|
|
106
|
+
parentCategoryId?: number;
|
|
94
107
|
}
|
|
95
108
|
export interface INewFlag {
|
|
96
109
|
reason: string;
|
package/package.json
CHANGED