@ndla/types-backend 0.2.82 → 0.2.84

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.
@@ -175,6 +175,10 @@ export interface IRevisionMeta {
175
175
  note: string;
176
176
  status: string;
177
177
  }
178
+ export interface ISavedSearch {
179
+ searchUrl: string;
180
+ searchPhrase: string;
181
+ }
178
182
  export interface ISearchResult {
179
183
  totalCount: number;
180
184
  page: number;
@@ -230,7 +234,7 @@ export interface IUpdatedComment {
230
234
  solved?: boolean;
231
235
  }
232
236
  export interface IUpdatedUserData {
233
- savedSearches?: string[];
237
+ savedSearches?: ISavedSearch[];
234
238
  latestEditedArticles?: string[];
235
239
  latestEditedConcepts?: string[];
236
240
  favoriteSubjects?: string[];
@@ -243,7 +247,7 @@ export interface IUploadedFile {
243
247
  }
244
248
  export interface IUserData {
245
249
  userId: string;
246
- savedSearches?: string[];
250
+ savedSearches?: ISavedSearch[];
247
251
  latestEditedArticles?: string[];
248
252
  latestEditedConcepts?: string[];
249
253
  favoriteSubjects?: string[];
@@ -198,6 +198,9 @@ export interface IStats {
198
198
  numberOfSubjects: number;
199
199
  numberOfSharedFolders: number;
200
200
  favouritedResources: IResourceStats[];
201
+ favourited: {
202
+ [key: string]: number;
203
+ };
201
204
  }
202
205
  export interface ITopic {
203
206
  id: number;
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3"
29
29
  },
30
- "version": "0.2.82"
30
+ "version": "0.2.84"
31
31
  }