@brite-future-schools-contracts/contracts 2.0.5 → 2.0.6
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/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -12,6 +12,7 @@ import '@orpc/contract';
|
|
|
12
12
|
*
|
|
13
13
|
* Phase History:
|
|
14
14
|
* Phase 0.1 (2026-06-05): Initial creation
|
|
15
|
+
* Phase 3 (2026-06-10): SessionUser — added optional classId for class teacher
|
|
15
16
|
*
|
|
16
17
|
* @module src/roles/types
|
|
17
18
|
* @since Phase 0.1
|
|
@@ -44,6 +45,11 @@ interface SessionUser {
|
|
|
44
45
|
subRoles: UserSubRole[];
|
|
45
46
|
isActive: boolean;
|
|
46
47
|
mustChangePassword: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The class this user is assigned to as class teacher.
|
|
50
|
+
* Populated by customSession in bfs-api. Null for all non-CLASS_TEACHER roles.
|
|
51
|
+
*/
|
|
52
|
+
classId?: string | null;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import '@orpc/contract';
|
|
|
12
12
|
*
|
|
13
13
|
* Phase History:
|
|
14
14
|
* Phase 0.1 (2026-06-05): Initial creation
|
|
15
|
+
* Phase 3 (2026-06-10): SessionUser — added optional classId for class teacher
|
|
15
16
|
*
|
|
16
17
|
* @module src/roles/types
|
|
17
18
|
* @since Phase 0.1
|
|
@@ -44,6 +45,11 @@ interface SessionUser {
|
|
|
44
45
|
subRoles: UserSubRole[];
|
|
45
46
|
isActive: boolean;
|
|
46
47
|
mustChangePassword: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The class this user is assigned to as class teacher.
|
|
50
|
+
* Populated by customSession in bfs-api. Null for all non-CLASS_TEACHER roles.
|
|
51
|
+
*/
|
|
52
|
+
classId?: string | null;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
/**
|
package/package.json
CHANGED