@ndla/types-backend 0.2.33 → 0.2.35
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/image-api.d.ts +1 -0
- package/build/myndla-api.d.ts +81 -0
- package/package.json +1 -1
package/build/image-api.d.ts
CHANGED
package/build/myndla-api.d.ts
CHANGED
|
@@ -2,6 +2,23 @@ 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
|
+
}
|
|
5
22
|
export interface IConfigMeta {
|
|
6
23
|
key: string;
|
|
7
24
|
value: (boolean | string[]);
|
|
@@ -12,6 +29,12 @@ export interface IConfigMetaRestricted {
|
|
|
12
29
|
key: string;
|
|
13
30
|
value: (boolean | string[]);
|
|
14
31
|
}
|
|
32
|
+
export interface IFlag {
|
|
33
|
+
id: number;
|
|
34
|
+
reason: string;
|
|
35
|
+
created: string;
|
|
36
|
+
flagger: IOwner;
|
|
37
|
+
}
|
|
15
38
|
export interface IFolder {
|
|
16
39
|
id: string;
|
|
17
40
|
name: string;
|
|
@@ -47,21 +70,72 @@ export interface IMyNDLAUser {
|
|
|
47
70
|
arenaEnabled: boolean;
|
|
48
71
|
shareName: boolean;
|
|
49
72
|
}
|
|
73
|
+
export interface INewCategory {
|
|
74
|
+
title: string;
|
|
75
|
+
description: string;
|
|
76
|
+
}
|
|
50
77
|
export interface INewFolder {
|
|
51
78
|
name: string;
|
|
52
79
|
parentId?: string;
|
|
53
80
|
status?: string;
|
|
54
81
|
description?: string;
|
|
55
82
|
}
|
|
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
|
+
}
|
|
56
94
|
export interface INewResource {
|
|
57
95
|
resourceType: string;
|
|
58
96
|
path: string;
|
|
59
97
|
tags?: string[];
|
|
60
98
|
resourceId: string;
|
|
61
99
|
}
|
|
100
|
+
export interface INewTopic {
|
|
101
|
+
title: string;
|
|
102
|
+
initialPost: INewPost;
|
|
103
|
+
}
|
|
62
104
|
export interface IOwner {
|
|
63
105
|
name: string;
|
|
64
106
|
}
|
|
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
|
+
}
|
|
65
139
|
export interface IResource {
|
|
66
140
|
id: string;
|
|
67
141
|
resourceType: string;
|
|
@@ -71,6 +145,13 @@ export interface IResource {
|
|
|
71
145
|
resourceId: string;
|
|
72
146
|
rank?: number;
|
|
73
147
|
}
|
|
148
|
+
export interface ITopic {
|
|
149
|
+
id: number;
|
|
150
|
+
title: string;
|
|
151
|
+
postCount: number;
|
|
152
|
+
created: string;
|
|
153
|
+
updated: string;
|
|
154
|
+
}
|
|
74
155
|
export interface IUpdatedFolder {
|
|
75
156
|
name?: string;
|
|
76
157
|
status?: string;
|
package/package.json
CHANGED