@ndla/types-backend 0.2.68 → 0.2.70

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.
@@ -1,3 +1,4 @@
1
+ export type Availability = ("everyone" | "teacher");
1
2
  export interface IArticleContentV2 {
2
3
  content: string;
3
4
  language: string;
@@ -1,3 +1,4 @@
1
+ export type Availability = ("everyone" | "teacher");
1
2
  export interface IArticle {
2
3
  id: number;
3
4
  oldNdlaUrl?: string;
@@ -1,12 +1,7 @@
1
- export type ArenaGroup = "ADMIN";
2
1
  export interface IAuthor {
3
2
  type: string;
4
3
  name: string;
5
4
  }
6
- export interface IBreadcrumb {
7
- id: string;
8
- name: string;
9
- }
10
5
  export interface IConfigMeta {
11
6
  key: string;
12
7
  value: (boolean | string[]);
@@ -33,22 +28,6 @@ export interface IEmbedUrlV2 {
33
28
  url: string;
34
29
  embedType: string;
35
30
  }
36
- export interface IFolder {
37
- id: string;
38
- name: string;
39
- status: string;
40
- parentId?: string;
41
- breadcrumbs: IBreadcrumb[];
42
- subfolders: IFolderData[];
43
- resources: IResource[];
44
- rank?: number;
45
- created: string;
46
- updated: string;
47
- shared?: string;
48
- description?: string;
49
- owner?: IOwner;
50
- }
51
- export type IFolderData = IFolder;
52
31
  export interface IIntroduction {
53
32
  introduction: string;
54
33
  language: string;
@@ -145,50 +124,6 @@ export interface IMessage {
145
124
  message: string;
146
125
  date: string;
147
126
  }
148
- export interface IMyNDLAGroup {
149
- id: string;
150
- displayName: string;
151
- isPrimarySchool: boolean;
152
- parentId?: string;
153
- }
154
- export interface IMyNDLAUser {
155
- id: number;
156
- feideId: string;
157
- username: string;
158
- email: string;
159
- displayName: string;
160
- favoriteSubjects: string[];
161
- role: string;
162
- organization: string;
163
- groups: IMyNDLAGroup[];
164
- arenaEnabled: boolean;
165
- shareName: boolean;
166
- arenaGroups: ArenaGroup[];
167
- }
168
- export interface INewFolder {
169
- name: string;
170
- parentId?: string;
171
- status?: string;
172
- description?: string;
173
- }
174
- export interface INewResource {
175
- resourceType: ResourceType;
176
- path: string;
177
- tags?: string[];
178
- resourceId: string;
179
- }
180
- export interface IOwner {
181
- name: string;
182
- }
183
- export interface IResource {
184
- id: string;
185
- resourceType: ResourceType;
186
- path: string;
187
- created: string;
188
- tags: string[];
189
- resourceId: string;
190
- rank?: number;
191
- }
192
127
  export interface ISearchResultV2 {
193
128
  totalCount: number;
194
129
  page?: number;
@@ -200,13 +135,3 @@ export interface ITitle {
200
135
  title: string;
201
136
  language: string;
202
137
  }
203
- export interface IUpdatedFolder {
204
- name?: string;
205
- status?: string;
206
- description?: string;
207
- }
208
- export interface IUpdatedResource {
209
- tags?: string[];
210
- resourceId?: string;
211
- }
212
- export type ResourceType = ("concept" | "image" | "audio" | "multidisciplinary" | "article" | "learningpath" | "video" | "folder");
@@ -191,6 +191,7 @@ export interface IMultiSearchSummary {
191
191
  parentTopicName?: string;
192
192
  primaryRootName?: string;
193
193
  published?: string;
194
+ favorited?: number;
194
195
  }
195
196
  export interface IMultiSearchTermsAggregation {
196
197
  field: string;
@@ -217,6 +218,20 @@ export interface IStatus {
217
218
  current: string;
218
219
  other: string[];
219
220
  }
221
+ export interface ISubjectAggregation {
222
+ subjectId: string;
223
+ totalArticleCount: 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
+ }
220
235
  export interface ISuggestOption {
221
236
  text: string;
222
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.68"
30
+ "version": "0.2.70"
31
31
  }