@ndla/types-backend 0.2.46 → 0.2.48
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/concept-api.d.ts +13 -0
- package/build/myndla-api.d.ts +6 -0
- package/package.json +1 -1
package/build/concept-api.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export interface IConceptSearchParams {
|
|
|
52
52
|
embedResource?: string;
|
|
53
53
|
embedId?: string;
|
|
54
54
|
conceptType?: string;
|
|
55
|
+
aggregatePaths: string[];
|
|
55
56
|
}
|
|
56
57
|
export interface IConceptSearchResult {
|
|
57
58
|
totalCount: number;
|
|
@@ -59,6 +60,7 @@ export interface IConceptSearchResult {
|
|
|
59
60
|
pageSize: number;
|
|
60
61
|
language: string;
|
|
61
62
|
results: IConceptSummary[];
|
|
63
|
+
aggregations: IMultiSearchTermsAggregation[];
|
|
62
64
|
}
|
|
63
65
|
export interface IConceptSummary {
|
|
64
66
|
id: number;
|
|
@@ -108,6 +110,7 @@ export interface IDraftConceptSearchParams {
|
|
|
108
110
|
embedId?: string;
|
|
109
111
|
responsibleIds: string[];
|
|
110
112
|
conceptType?: string;
|
|
113
|
+
aggregatePaths: string[];
|
|
111
114
|
}
|
|
112
115
|
export interface IDraftCopyright {
|
|
113
116
|
license?: ILicense;
|
|
@@ -146,6 +149,12 @@ export interface ILicense {
|
|
|
146
149
|
description?: string;
|
|
147
150
|
url?: string;
|
|
148
151
|
}
|
|
152
|
+
export interface IMultiSearchTermsAggregation {
|
|
153
|
+
field: string;
|
|
154
|
+
sumOtherDocCount: number;
|
|
155
|
+
docCountErrorUpperBound: number;
|
|
156
|
+
values: ITermValue[];
|
|
157
|
+
}
|
|
149
158
|
export interface INewConcept {
|
|
150
159
|
language: string;
|
|
151
160
|
title: string;
|
|
@@ -180,6 +189,10 @@ export interface ITagsSearchResult {
|
|
|
180
189
|
language: string;
|
|
181
190
|
results: string[];
|
|
182
191
|
}
|
|
192
|
+
export interface ITermValue {
|
|
193
|
+
value: string;
|
|
194
|
+
count: number;
|
|
195
|
+
}
|
|
183
196
|
export interface IUpdatedConcept {
|
|
184
197
|
language: string;
|
|
185
198
|
title?: string;
|
package/build/myndla-api.d.ts
CHANGED
|
@@ -121,6 +121,8 @@ export interface INewResource {
|
|
|
121
121
|
export interface INewTopic {
|
|
122
122
|
title: string;
|
|
123
123
|
initialPost: INewPost;
|
|
124
|
+
isLocked: boolean;
|
|
125
|
+
isPinned: boolean;
|
|
124
126
|
}
|
|
125
127
|
export interface IOwner {
|
|
126
128
|
name: string;
|
|
@@ -175,6 +177,8 @@ export interface ITopic {
|
|
|
175
177
|
updated: string;
|
|
176
178
|
categoryId: number;
|
|
177
179
|
isFollowing: boolean;
|
|
180
|
+
isLocked: boolean;
|
|
181
|
+
isPinned: boolean;
|
|
178
182
|
}
|
|
179
183
|
export interface ITopicWithPosts {
|
|
180
184
|
id: number;
|
|
@@ -185,6 +189,8 @@ export interface ITopicWithPosts {
|
|
|
185
189
|
updated: string;
|
|
186
190
|
categoryId: number;
|
|
187
191
|
isFollowing: boolean;
|
|
192
|
+
isLocked: boolean;
|
|
193
|
+
isPinned: boolean;
|
|
188
194
|
}
|
|
189
195
|
export interface IUpdatedFolder {
|
|
190
196
|
name?: string;
|
package/package.json
CHANGED