wedance-shared 1.0.191 → 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.
- package/dist/types/school.d.ts +14 -8
- package/package.json +1 -1
package/dist/types/school.d.ts
CHANGED
|
@@ -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.
|
package/package.json
CHANGED