wedance-shared 1.0.221 → 1.0.223
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/types/school.d.ts +15 -0
- package/package.json +1 -1
package/dist/types/school.d.ts
CHANGED
|
@@ -33,9 +33,23 @@ export interface SchoolStudent {
|
|
|
33
33
|
* Populated by the server with a join. Not a column on the school_students table.
|
|
34
34
|
*/
|
|
35
35
|
enrollments?: ClassEnrollmentSummary[];
|
|
36
|
+
/**
|
|
37
|
+
* Populated by the server with a join. The earliest upcoming session the student is booked on.
|
|
38
|
+
*/
|
|
39
|
+
nextBooking?: StudentSessionRef | null;
|
|
40
|
+
/**
|
|
41
|
+
* Populated by the server with a join. The latest session the student attended.
|
|
42
|
+
*/
|
|
43
|
+
lastAttendance?: StudentSessionRef | null;
|
|
36
44
|
createdAt: string;
|
|
37
45
|
updatedAt: string;
|
|
38
46
|
}
|
|
47
|
+
/** A session a student is tied to, enough to show its date and look up its class. */
|
|
48
|
+
export type StudentSessionRef = {
|
|
49
|
+
sessionId: string;
|
|
50
|
+
classId: string;
|
|
51
|
+
startsAt: string;
|
|
52
|
+
};
|
|
39
53
|
/**
|
|
40
54
|
* Lightweight student projection for rosters, attendance, and check-in.
|
|
41
55
|
* Populated server-side via a join.
|
|
@@ -293,6 +307,7 @@ export interface ClassSessionRegistration {
|
|
|
293
307
|
checkedInAt: string | null;
|
|
294
308
|
attendanceMarkedAt: string | null;
|
|
295
309
|
cancelledAt: string | null;
|
|
310
|
+
cancellationSource: "student" | "staff" | "session_cancelled" | null;
|
|
296
311
|
danceRole: DancerRole | null;
|
|
297
312
|
createdAt: string;
|
|
298
313
|
updatedAt: string;
|
package/package.json
CHANGED