wedance-shared 1.0.190 → 1.0.192

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.
@@ -189,17 +189,23 @@ export interface ClassEnrollment {
189
189
  enrolledAt: string;
190
190
  waitlistedAt: string | null;
191
191
  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
192
  createdAt: string;
201
193
  updatedAt: string;
202
194
  }
195
+ /**
196
+ * Admin roster row — class context lives on the parent response, not each row.
197
+ * Populated server-side via joins.
198
+ */
199
+ export type ClassEnrollmentRosterItem = ClassEnrollment & {
200
+ student: SchoolStudentSummary;
201
+ };
202
+ /**
203
+ * User enrollment row — each row carries its own class context.
204
+ * Populated server-side via joins.
205
+ */
206
+ export type ClassEnrollmentListItem = ClassEnrollment & {
207
+ class: SchoolClassSummary;
208
+ };
203
209
  /**
204
210
  * Lightweight enrollment projection for course-based session access.
205
211
  * Populated server-side via a join.
@@ -220,23 +226,21 @@ export interface ClassSessionRegistration {
220
226
  attendanceMarkedAt: string | null;
221
227
  cancelledAt: string | null;
222
228
  role: DancerRole | null;
223
- /**
224
- * Populated by the server with a join. Not a column on the class_session_registrations table.
225
- */
226
- session?: ClassSessionSummary;
227
- /**
228
- * Populated by the server with a join. Not a column on the class_session_registrations table.
229
- */
230
- student?: SchoolStudentSummary;
231
- /**
232
- * Populated by the server with a join. Not a column on the class_session_registrations table.
233
- */
234
- class?: SchoolClassSummary;
235
- /**
236
- * Populated by the server with a join when access is course-based.
237
- * Not a column on the class_session_registrations table.
238
- */
239
- enrollment?: ClassEnrollmentSummary;
240
229
  createdAt: string;
241
230
  updatedAt: string;
242
231
  }
232
+ /**
233
+ * Admin roster row — session context lives on the parent response, not each row.
234
+ * Populated server-side via joins.
235
+ */
236
+ export type ClassSessionRegistrationRosterItem = ClassSessionRegistration & {
237
+ student: SchoolStudentSummary;
238
+ enrollment?: ClassEnrollmentSummary;
239
+ };
240
+ /**
241
+ * User booking row — each row carries its own session context.
242
+ * Populated server-side via joins.
243
+ */
244
+ export type ClassSessionRegistrationListItem = ClassSessionRegistration & {
245
+ session: ClassSessionSummary;
246
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.190",
3
+ "version": "1.0.192",
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",