wedance-shared 1.0.188 → 1.0.189
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 +31 -0
- package/package.json +1 -1
package/dist/types/school.d.ts
CHANGED
|
@@ -51,8 +51,21 @@ export interface SchoolClass {
|
|
|
51
51
|
danceTags: string[];
|
|
52
52
|
level: string | null;
|
|
53
53
|
capacity: number | null;
|
|
54
|
+
capacityLead: number | null;
|
|
55
|
+
capacityFollow: number | null;
|
|
54
56
|
instructorStaffId: string | null;
|
|
55
57
|
secondaryInstructorStaffId: string | null;
|
|
58
|
+
roomId: string | null;
|
|
59
|
+
/** Class booking format (e.g. open vs lead/follow). */
|
|
60
|
+
format: string;
|
|
61
|
+
/** Recurrence rule for generating sessions. */
|
|
62
|
+
recurrence: string;
|
|
63
|
+
/** Weekdays to repeat on (0 = Sunday … 6 = Saturday). Empty when not recurring. */
|
|
64
|
+
repeatWeekdays: number[];
|
|
65
|
+
/** Default session start time (`HH:MM:SS` / `HH:MM`). */
|
|
66
|
+
defaultStartTime: string | null;
|
|
67
|
+
seriesStartsOn: string | null;
|
|
68
|
+
seriesEndsOn: string | null;
|
|
56
69
|
/** Fallback session length when a session has no explicit endsAt override. */
|
|
57
70
|
defaultClassDurationMinutes: number | null;
|
|
58
71
|
status: SchoolClassStatus;
|
|
@@ -70,7 +83,21 @@ export interface ClassSession {
|
|
|
70
83
|
locationName: string | null;
|
|
71
84
|
locationAddress: string | null;
|
|
72
85
|
roomId: string | null;
|
|
86
|
+
/** Overrides the parent class capacity for this session only. */
|
|
87
|
+
capacityOverride: number | null;
|
|
73
88
|
status: ClassSessionStatus;
|
|
89
|
+
cancellationReason: string | null;
|
|
90
|
+
cancelledAt: string | null;
|
|
91
|
+
notifiedAt: string | null;
|
|
92
|
+
/** capacityOverride ?? the parent class capacity, resolved server side. */
|
|
93
|
+
effectiveCapacity: number | null;
|
|
94
|
+
/** Bookings holding a seat. Counts exactly what the capacity check counts.
|
|
95
|
+
* They must be read-only. They are calculated by the server. Never set them. */
|
|
96
|
+
bookedCount: number;
|
|
97
|
+
bookedLeadCount: number;
|
|
98
|
+
bookedFollowCount: number;
|
|
99
|
+
/** Separate by design: waitlisted rows hold no seat and never count towards capacity. */
|
|
100
|
+
waitlistCount: number;
|
|
74
101
|
createdAt: string;
|
|
75
102
|
updatedAt: string;
|
|
76
103
|
}
|
|
@@ -82,7 +109,9 @@ export interface ClassEnrollment {
|
|
|
82
109
|
status: ClassEnrollmentStatus;
|
|
83
110
|
sourceType: ClassEnrollmentSourceType;
|
|
84
111
|
sourcePassId: string | null;
|
|
112
|
+
role: DancerRole | null;
|
|
85
113
|
enrolledAt: string;
|
|
114
|
+
waitlistedAt: string | null;
|
|
86
115
|
cancelledAt: string | null;
|
|
87
116
|
createdAt: string;
|
|
88
117
|
updatedAt: string;
|
|
@@ -97,7 +126,9 @@ export interface ClassSessionRegistration {
|
|
|
97
126
|
passId: string | null;
|
|
98
127
|
passRedemptionId: string | null;
|
|
99
128
|
bookedAt: string;
|
|
129
|
+
waitlistedAt: string | null;
|
|
100
130
|
checkedInAt: string | null;
|
|
131
|
+
attendanceMarkedAt: string | null;
|
|
101
132
|
cancelledAt: string | null;
|
|
102
133
|
createdAt: string;
|
|
103
134
|
updatedAt: string;
|
package/package.json
CHANGED