@ndla/types-backend 1.0.33 → 1.0.34
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/myndla-api.d.ts +10 -0
- package/build/search-api.d.ts +3 -1
- package/build/search-api.js.map +1 -1
- package/package.json +1 -1
package/build/myndla-api.d.ts
CHANGED
|
@@ -87,10 +87,12 @@ export interface IStatsDTO {
|
|
|
87
87
|
numberOfTags: number;
|
|
88
88
|
numberOfSubjects: number;
|
|
89
89
|
numberOfSharedFolders: number;
|
|
90
|
+
numberOfMyNdlaLearningPaths: number;
|
|
90
91
|
favouritedResources: IResourceStatsDTO[];
|
|
91
92
|
favourited: {
|
|
92
93
|
[key: string]: number;
|
|
93
94
|
};
|
|
95
|
+
users: IUserStatsDTO;
|
|
94
96
|
}
|
|
95
97
|
export interface IUpdatedFolderDTO {
|
|
96
98
|
name?: string;
|
|
@@ -111,5 +113,13 @@ export interface IUserFolderDTO {
|
|
|
111
113
|
folders: IFolderDTO[];
|
|
112
114
|
sharedFolders: IFolderDTO[];
|
|
113
115
|
}
|
|
116
|
+
export interface IUserStatsDTO {
|
|
117
|
+
total: number;
|
|
118
|
+
employees: number;
|
|
119
|
+
students: number;
|
|
120
|
+
withFavourites: number;
|
|
121
|
+
noFavourites: number;
|
|
122
|
+
arena: number;
|
|
123
|
+
}
|
|
114
124
|
export type ResourceType = ("article" | "audio" | "concept" | "image" | "learningpath" | "multidisciplinary" | "topic" | "video");
|
|
115
125
|
export type UserRole = ("employee" | "student");
|
package/build/search-api.d.ts
CHANGED
|
@@ -287,6 +287,8 @@ export interface INodeHitDTO {
|
|
|
287
287
|
title: string;
|
|
288
288
|
url?: string;
|
|
289
289
|
subjectPage?: ISubjectPageSummaryDTO;
|
|
290
|
+
context?: IApiTaxonomyContextDTO;
|
|
291
|
+
contexts: IApiTaxonomyContextDTO[];
|
|
290
292
|
typename: "NodeHitDTO";
|
|
291
293
|
}
|
|
292
294
|
export interface IPROGRAMME {
|
|
@@ -384,7 +386,7 @@ export interface ITitleWithHtmlDTO {
|
|
|
384
386
|
}
|
|
385
387
|
export type LearningResourceType = ("standard" | "topic-article" | "frontpage-article" | "learningpath" | "concept" | "gloss");
|
|
386
388
|
export type MultiSummaryBaseDTO = (IMultiSearchSummaryDTO | INodeHitDTO);
|
|
387
|
-
export type NodeType = (
|
|
389
|
+
export type NodeType = (IRESOURCE | IPROGRAMME | ISUBJECT | ITOPIC | INODE);
|
|
388
390
|
export type SearchTrait = ("VIDEO" | "H5P" | "AUDIO" | "PODCAST");
|
|
389
391
|
export type SearchType = ("article" | "draft" | "learningpath" | "concept" | "grep" | "node");
|
|
390
392
|
export type Sort = SortEnum;
|
package/build/search-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;
|
|
1
|
+
{"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAwc3C,IAAY,QA6BX;AA7BD,WAAY,QAAQ;IAClB,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,kCAAsB,CAAA;IACtB,gCAAoB,CAAA;IACpB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,4BAAgB,CAAA;IAChB,0BAAc,CAAA;IACd,wCAA4B,CAAA;IAC5B,sCAA0B,CAAA;IAC1B,8CAAkC,CAAA;IAClC,gDAAoC,CAAA;IACpC,kEAAsD,CAAA;IACtD,oEAAwD,CAAA;IACxD,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,sDAA0C,CAAA;IAC1C,oDAAwC,CAAA;IACxC,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,gDAAoC,CAAA;IACpC,8CAAkC,CAAA;IAClC,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;AAC9B,CAAC,EA7BW,QAAQ,wBAAR,QAAQ,QA6BnB"}
|
package/package.json
CHANGED