wedance-shared 1.0.191 → 1.0.193

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.
@@ -53,6 +53,15 @@ export interface SchoolStaff {
53
53
  */
54
54
  export type SchoolStaffSummary = Pick<SchoolStaff, "id" | "firstName" | "lastName" | "email" | "roles" | "status" | "userId">;
55
55
  export type SchoolRoomStatus = "active" | "inactive";
56
+ /** Row shape for `public.school_dance_styles`. */
57
+ export interface SchoolDanceStylesDB {
58
+ id: string;
59
+ organizer_id: string;
60
+ name: string;
61
+ active: boolean;
62
+ created_at: string;
63
+ updated_at: string;
64
+ }
56
65
  /** Row shape for `public.school_rooms`. */
57
66
  export interface SchoolRoom {
58
67
  id: string;
@@ -189,17 +198,23 @@ export interface ClassEnrollment {
189
198
  enrolledAt: string;
190
199
  waitlistedAt: string | null;
191
200
  cancelledAt: string | null;
192
- /**
193
- * Populated by the server with a join. Not a column on the class_enrollments table.
194
- */
195
- class?: SchoolClassSummary;
196
- /**
197
- * Populated by the server with a join. Not a column on the class_enrollments table.
198
- */
199
- student?: SchoolStudentSummary;
200
201
  createdAt: string;
201
202
  updatedAt: string;
202
203
  }
204
+ /**
205
+ * Admin roster row — class context lives on the parent response, not each row.
206
+ * Populated server-side via joins.
207
+ */
208
+ export type ClassEnrollmentRosterItem = ClassEnrollment & {
209
+ student: SchoolStudentSummary;
210
+ };
211
+ /**
212
+ * User enrollment row — each row carries its own class context.
213
+ * Populated server-side via joins.
214
+ */
215
+ export type ClassEnrollmentListItem = ClassEnrollment & {
216
+ class: SchoolClassSummary;
217
+ };
203
218
  /**
204
219
  * Lightweight enrollment projection for course-based session access.
205
220
  * Populated server-side via a join.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.191",
3
+ "version": "1.0.193",
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",