@ndla/types-backend 0.2.36 → 0.2.38
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 +2 -0
- package/build/myndla-api.d.ts +0 -89
- package/build/search-api.d.ts +1 -0
- package/package.json +1 -1
package/build/draft-api.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export interface IComment {
|
|
|
84
84
|
created: string;
|
|
85
85
|
updated: string;
|
|
86
86
|
isOpen: boolean;
|
|
87
|
+
solved: boolean;
|
|
87
88
|
}
|
|
88
89
|
export interface IDraftCopyright {
|
|
89
90
|
license?: ILicense;
|
|
@@ -216,6 +217,7 @@ export interface IUpdatedComment {
|
|
|
216
217
|
id?: string;
|
|
217
218
|
content: string;
|
|
218
219
|
isOpen?: boolean;
|
|
220
|
+
solved?: boolean;
|
|
219
221
|
}
|
|
220
222
|
export interface IUpdatedUserData {
|
|
221
223
|
savedSearches?: string[];
|
package/build/myndla-api.d.ts
CHANGED
|
@@ -2,23 +2,6 @@ export interface IBreadcrumb {
|
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
}
|
|
5
|
-
export interface ICategory {
|
|
6
|
-
id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
description: string;
|
|
9
|
-
topicCount: number;
|
|
10
|
-
postCount: number;
|
|
11
|
-
}
|
|
12
|
-
export interface ICategoryWithTopics {
|
|
13
|
-
id: number;
|
|
14
|
-
title: string;
|
|
15
|
-
description: string;
|
|
16
|
-
topicCount: number;
|
|
17
|
-
postCount: number;
|
|
18
|
-
topicPage: number;
|
|
19
|
-
topicPageSize: number;
|
|
20
|
-
topics: ITopic[];
|
|
21
|
-
}
|
|
22
5
|
export interface IConfigMeta {
|
|
23
6
|
key: string;
|
|
24
7
|
value: (boolean | string[]);
|
|
@@ -29,12 +12,6 @@ export interface IConfigMetaRestricted {
|
|
|
29
12
|
key: string;
|
|
30
13
|
value: (boolean | string[]);
|
|
31
14
|
}
|
|
32
|
-
export interface IFlag {
|
|
33
|
-
id: number;
|
|
34
|
-
reason: string;
|
|
35
|
-
created: string;
|
|
36
|
-
flagger: IOwner;
|
|
37
|
-
}
|
|
38
15
|
export interface IFolder {
|
|
39
16
|
id: string;
|
|
40
17
|
name: string;
|
|
@@ -70,72 +47,21 @@ export interface IMyNDLAUser {
|
|
|
70
47
|
arenaEnabled: boolean;
|
|
71
48
|
shareName: boolean;
|
|
72
49
|
}
|
|
73
|
-
export interface INewCategory {
|
|
74
|
-
title: string;
|
|
75
|
-
description: string;
|
|
76
|
-
}
|
|
77
50
|
export interface INewFolder {
|
|
78
51
|
name: string;
|
|
79
52
|
parentId?: string;
|
|
80
53
|
status?: string;
|
|
81
54
|
description?: string;
|
|
82
55
|
}
|
|
83
|
-
export interface INewPost {
|
|
84
|
-
content: string;
|
|
85
|
-
}
|
|
86
|
-
export interface INewPostNotification {
|
|
87
|
-
id: number;
|
|
88
|
-
topicId: number;
|
|
89
|
-
isRead: boolean;
|
|
90
|
-
topicTitle: string;
|
|
91
|
-
post: IPost;
|
|
92
|
-
notificationTime: string;
|
|
93
|
-
}
|
|
94
56
|
export interface INewResource {
|
|
95
57
|
resourceType: string;
|
|
96
58
|
path: string;
|
|
97
59
|
tags?: string[];
|
|
98
60
|
resourceId: string;
|
|
99
61
|
}
|
|
100
|
-
export interface INewTopic {
|
|
101
|
-
title: string;
|
|
102
|
-
initialPost: INewPost;
|
|
103
|
-
}
|
|
104
62
|
export interface IOwner {
|
|
105
63
|
name: string;
|
|
106
64
|
}
|
|
107
|
-
export interface IOwner {
|
|
108
|
-
id: number;
|
|
109
|
-
displayName: string;
|
|
110
|
-
username: string;
|
|
111
|
-
location: string;
|
|
112
|
-
}
|
|
113
|
-
export interface IPaginatedNewPostNotifications {
|
|
114
|
-
totalCount: number;
|
|
115
|
-
page: number;
|
|
116
|
-
pageSize: number;
|
|
117
|
-
items: INewPostNotification[];
|
|
118
|
-
}
|
|
119
|
-
export interface IPaginatedPosts {
|
|
120
|
-
totalCount: number;
|
|
121
|
-
page: number;
|
|
122
|
-
pageSize: number;
|
|
123
|
-
items: IPost[];
|
|
124
|
-
}
|
|
125
|
-
export interface IPaginatedTopics {
|
|
126
|
-
totalCount: number;
|
|
127
|
-
page: number;
|
|
128
|
-
pageSize: number;
|
|
129
|
-
items: ITopic[];
|
|
130
|
-
}
|
|
131
|
-
export interface IPost {
|
|
132
|
-
id: number;
|
|
133
|
-
content: string;
|
|
134
|
-
created: string;
|
|
135
|
-
updated: string;
|
|
136
|
-
owner: IOwner;
|
|
137
|
-
flags?: IFlag[];
|
|
138
|
-
}
|
|
139
65
|
export interface IResource {
|
|
140
66
|
id: string;
|
|
141
67
|
resourceType: string;
|
|
@@ -145,21 +71,6 @@ export interface IResource {
|
|
|
145
71
|
resourceId: string;
|
|
146
72
|
rank?: number;
|
|
147
73
|
}
|
|
148
|
-
export interface ITopic {
|
|
149
|
-
id: number;
|
|
150
|
-
title: string;
|
|
151
|
-
postCount: number;
|
|
152
|
-
created: string;
|
|
153
|
-
updated: string;
|
|
154
|
-
}
|
|
155
|
-
export interface ITopicWithPosts {
|
|
156
|
-
id: number;
|
|
157
|
-
title: string;
|
|
158
|
-
postCount: number;
|
|
159
|
-
posts: IPaginatedPosts;
|
|
160
|
-
created: string;
|
|
161
|
-
updated: string;
|
|
162
|
-
}
|
|
163
74
|
export interface IUpdatedFolder {
|
|
164
75
|
name?: string;
|
|
165
76
|
status?: string;
|
package/build/search-api.d.ts
CHANGED
package/package.json
CHANGED