wedance-shared 1.0.203 → 1.0.205
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
|
@@ -12,6 +12,7 @@ export type ClassSessionRegistrationStatus = "booked" | "waitlisted" | "attended
|
|
|
12
12
|
/** How a student gained access to a session — sellable products plus non-purchase paths. */
|
|
13
13
|
export type ClassSessionAccessType = Exclude<ProductType, "event"> | "free" | "manual";
|
|
14
14
|
export type DancerRole = "lead" | "follow";
|
|
15
|
+
export type EnrollmentMode = "session" | "series";
|
|
15
16
|
/** Row shape for `public.school_students`. */
|
|
16
17
|
export interface SchoolStudent {
|
|
17
18
|
id: string;
|
|
@@ -106,6 +107,8 @@ export interface SchoolClass {
|
|
|
106
107
|
roomId: string | null;
|
|
107
108
|
/** Class booking format (e.g. open vs lead/follow). */
|
|
108
109
|
format: string;
|
|
110
|
+
/** Enrollment mode (e.g. session vs series). */
|
|
111
|
+
enrollmentMode: EnrollmentMode;
|
|
109
112
|
/** Recurrence rule for generating sessions. */
|
|
110
113
|
recurrenceType: string;
|
|
111
114
|
/** Weekdays to repeat on (0 = Sunday … 6 = Saturday). Empty when not recurring. */
|
|
@@ -308,3 +311,31 @@ export type ClassSessionRegistrationRosterItem = ClassSessionRegistration & {
|
|
|
308
311
|
export type ClassSessionRegistrationListItem = ClassSessionRegistration & {
|
|
309
312
|
session: ClassSessionSummary;
|
|
310
313
|
};
|
|
314
|
+
export type SchoolActivityAction = "class_created" | "class_updated" | "class_cancelled" | "class_rescheduled" | "instructor_changed" | "student_created" | "student_enrolled" | "student_removed" | "student_waitlisted" | "student_removed_from_waitlist" | "attendance_marked" | "attendance_changed" | "pass_granted" | "pass_adjusted" | "pass_revoked" | "staff_created" | "staff_access_changed" | "staff_removed";
|
|
315
|
+
export type SchoolActivityEntityType = "class" | "class_session" | "student" | "enrollment" | "attendance" | "student_pass" | "staff";
|
|
316
|
+
export type SchoolActivityMetadata = Record<string, unknown>;
|
|
317
|
+
export type SchoolActivityValues = Record<string, unknown>;
|
|
318
|
+
export interface SchoolActivity {
|
|
319
|
+
id: string;
|
|
320
|
+
organizerId: string;
|
|
321
|
+
action: SchoolActivityAction;
|
|
322
|
+
entityType: SchoolActivityEntityType;
|
|
323
|
+
entityId: string | null;
|
|
324
|
+
entityName: string | null;
|
|
325
|
+
actorStaffId: string | null;
|
|
326
|
+
metadata: SchoolActivityMetadata;
|
|
327
|
+
beforeValues: SchoolActivityValues | null;
|
|
328
|
+
afterValues: SchoolActivityValues | null;
|
|
329
|
+
createdAt: string;
|
|
330
|
+
}
|
|
331
|
+
export interface CreateSchoolActivityInput {
|
|
332
|
+
organizerId: string;
|
|
333
|
+
action: SchoolActivityAction;
|
|
334
|
+
entityType: SchoolActivityEntityType;
|
|
335
|
+
entityId?: string | null;
|
|
336
|
+
entityName?: string | null;
|
|
337
|
+
actorStaffId?: string | null;
|
|
338
|
+
metadata?: SchoolActivityMetadata;
|
|
339
|
+
beforeValues?: SchoolActivityValues | null;
|
|
340
|
+
afterValues?: SchoolActivityValues | null;
|
|
341
|
+
}
|
package/package.json
CHANGED