wedance-shared 1.0.197 → 1.0.199
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/pass.d.ts +10 -0
- package/dist/types/school.d.ts +11 -2
- package/package.json +1 -1
package/dist/types/pass.d.ts
CHANGED
|
@@ -45,6 +45,16 @@ export interface Pass {
|
|
|
45
45
|
paymentMethod: PaymentMethod;
|
|
46
46
|
issuedBy: string | null | undefined;
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Lightweight pass projection for student profiles, enrollments, and session access.
|
|
50
|
+
* Populated server-side via a join.
|
|
51
|
+
*/
|
|
52
|
+
export type PassSummary = Pick<Pass, "id" | "productType" | "creditsTotal" | "creditsRemaining" | "validFrom" | "validUntil" | "status"> & {
|
|
53
|
+
ticketType: TicketTypeSummary;
|
|
54
|
+
};
|
|
55
|
+
export interface SchoolPass extends Pass {
|
|
56
|
+
studentId: string;
|
|
57
|
+
}
|
|
48
58
|
export interface PassRedemption {
|
|
49
59
|
id: string;
|
|
50
60
|
passId: string;
|
package/dist/types/school.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PassSummary } from "./pass.js";
|
|
1
2
|
export type SchoolStudentStatus = "active" | "inactive";
|
|
2
3
|
export type SchoolStaffRole = "owner" | "admin" | "instructor";
|
|
3
4
|
export type SchoolStaffAccessLevel = "full" | "limited" | "invited" | "none";
|
|
@@ -20,6 +21,14 @@ export interface SchoolStudent {
|
|
|
20
21
|
phone: string | null;
|
|
21
22
|
status: SchoolStudentStatus;
|
|
22
23
|
notes: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Populated by the server with a join. Not a column on the school_students table.
|
|
26
|
+
*/
|
|
27
|
+
passes?: PassSummary[];
|
|
28
|
+
/**
|
|
29
|
+
* Populated by the server with a join. Not a column on the school_students table.
|
|
30
|
+
*/
|
|
31
|
+
enrollments?: ClassEnrollmentSummary[];
|
|
23
32
|
createdAt: string;
|
|
24
33
|
updatedAt: string;
|
|
25
34
|
}
|
|
@@ -217,10 +226,10 @@ export type ClassEnrollmentListItem = ClassEnrollment & {
|
|
|
217
226
|
class: SchoolClassSummary;
|
|
218
227
|
};
|
|
219
228
|
/**
|
|
220
|
-
* Lightweight enrollment projection for
|
|
229
|
+
* Lightweight enrollment projection for student profiles and session access.
|
|
221
230
|
* Populated server-side via a join.
|
|
222
231
|
*/
|
|
223
|
-
export type ClassEnrollmentSummary = Pick<ClassEnrollment, "id" | "status" | "danceRole" | "enrolledAt" | "sourceType">;
|
|
232
|
+
export type ClassEnrollmentSummary = Pick<ClassEnrollment, "id" | "classId" | "status" | "danceRole" | "enrolledAt" | "sourceType">;
|
|
224
233
|
/** Row shape for `public.class_session_registrations`. */
|
|
225
234
|
export interface ClassSessionRegistration {
|
|
226
235
|
id: string;
|
package/package.json
CHANGED