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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.221",
3
+ "version": "1.0.223",
4
4
  "description": "This repository contains shared TypeScript types and interfaces used across multiple WeDance applications:",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",