@ndla/types-backend 0.2.29 → 0.2.31

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.
@@ -149,11 +149,22 @@ export interface IMessage {
149
149
  message: string;
150
150
  date: string;
151
151
  }
152
+ export interface IMyNDLAGroup {
153
+ id: string;
154
+ displayName: string;
155
+ isPrimarySchool: boolean;
156
+ parentId?: string;
157
+ }
152
158
  export interface IMyNDLAUser {
153
159
  id: number;
160
+ feideId: string;
161
+ username: string;
162
+ email: string;
163
+ displayName: string;
154
164
  favoriteSubjects: string[];
155
165
  role: string;
156
166
  organization: string;
167
+ groups: IMyNDLAGroup[];
157
168
  arenaEnabled: boolean;
158
169
  shareName: boolean;
159
170
  }
@@ -0,0 +1,82 @@
1
+ export interface IBreadcrumb {
2
+ id: string;
3
+ name: string;
4
+ }
5
+ export interface IConfigMeta {
6
+ key: string;
7
+ value: (boolean | string[]);
8
+ updatedAt: string;
9
+ updatedBy: string;
10
+ }
11
+ export interface IConfigMetaRestricted {
12
+ key: string;
13
+ value: (boolean | string[]);
14
+ }
15
+ export interface IFolder {
16
+ id: string;
17
+ name: string;
18
+ status: string;
19
+ parentId?: string;
20
+ breadcrumbs: IBreadcrumb[];
21
+ subfolders: IFolderData[];
22
+ resources: IResource[];
23
+ rank?: number;
24
+ created: string;
25
+ updated: string;
26
+ shared?: string;
27
+ description?: string;
28
+ owner?: IOwner;
29
+ }
30
+ export type IFolderData = IFolder;
31
+ export interface IMyNDLAGroup {
32
+ id: string;
33
+ displayName: string;
34
+ isPrimarySchool: boolean;
35
+ parentId?: string;
36
+ }
37
+ export interface IMyNDLAUser {
38
+ id: number;
39
+ feideId: string;
40
+ username: string;
41
+ email: string;
42
+ displayName: string;
43
+ favoriteSubjects: string[];
44
+ role: string;
45
+ organization: string;
46
+ groups: IMyNDLAGroup[];
47
+ arenaEnabled: boolean;
48
+ shareName: boolean;
49
+ }
50
+ export interface INewFolder {
51
+ name: string;
52
+ parentId?: string;
53
+ status?: string;
54
+ description?: string;
55
+ }
56
+ export interface INewResource {
57
+ resourceType: string;
58
+ path: string;
59
+ tags?: string[];
60
+ resourceId: string;
61
+ }
62
+ export interface IOwner {
63
+ name: string;
64
+ }
65
+ export interface IResource {
66
+ id: string;
67
+ resourceType: string;
68
+ path: string;
69
+ created: string;
70
+ tags: string[];
71
+ resourceId: string;
72
+ rank?: number;
73
+ }
74
+ export interface IUpdatedFolder {
75
+ name?: string;
76
+ status?: string;
77
+ description?: string;
78
+ }
79
+ export interface IUpdatedResource {
80
+ tags?: string[];
81
+ resourceId?: string;
82
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // DO NOT EDIT: generated file by scala-tsi
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=myndla-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"myndla-api.js","sourceRoot":"","sources":["../myndla-api.ts"],"names":[],"mappings":";AAAA,2CAA2C"}
package/package.json CHANGED
@@ -26,5 +26,5 @@
26
26
  "devDependencies": {
27
27
  "typescript": "^5.0.2"
28
28
  },
29
- "version": "0.2.29"
29
+ "version": "0.2.31"
30
30
  }