@ndla/types-backend 0.2.69 → 0.2.71

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.
@@ -218,6 +218,20 @@ export interface IStatus {
218
218
  current: string;
219
219
  other: string[];
220
220
  }
221
+ export interface ISubjectAggregation {
222
+ subjectId: string;
223
+ publishedArticleCount: number;
224
+ oldArticleCount: number;
225
+ revisionCount: number;
226
+ flowCount: number;
227
+ favoritedCount: number;
228
+ }
229
+ export interface ISubjectAggregations {
230
+ subjects: ISubjectAggregation[];
231
+ }
232
+ export interface ISubjectAggsInput {
233
+ subjects?: string[];
234
+ }
221
235
  export interface ISuggestOption {
222
236
  text: string;
223
237
  score: number;
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3"
29
29
  },
30
- "version": "0.2.69"
30
+ "version": "0.2.71"
31
31
  }