wedance-shared 1.0.185 → 1.0.186
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 +36 -3
- package/package.json +1 -1
package/dist/types/school.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export type SchoolStudentStatus = "active" | "inactive";
|
|
2
2
|
export type SchoolStaffRole = "owner" | "admin" | "instructor";
|
|
3
|
+
export type SchoolStaffAccessLevel = "full" | "limited" | "invited" | "none";
|
|
3
4
|
export type SchoolStaffStatus = "active" | "disabled";
|
|
4
5
|
export type SchoolClassStatus = "draft" | "active" | "archived";
|
|
5
6
|
export type ClassSessionStatus = "scheduled" | "completed" | "cancelled";
|
|
6
7
|
export type ClassEnrollmentStatus = "active" | "cancelled" | "completed";
|
|
7
8
|
export type ClassEnrollmentSourceType = "manual" | "purchase";
|
|
8
|
-
export type ClassSessionRegistrationStatus = "booked" | "attended" | "absent" | "no_show" | "cancelled";
|
|
9
|
+
export type ClassSessionRegistrationStatus = "booked" | "waitlisted" | "attended" | "absent" | "no_show" | "cancelled";
|
|
9
10
|
export type ClassSessionAccessType = "course" | "pass" | "drop_in" | "membership" | "free" | "manual";
|
|
11
|
+
export type DancerRole = "lead" | "follow";
|
|
12
|
+
/** Row shape for `public.school_students`. */
|
|
10
13
|
export interface SchoolStudent {
|
|
11
14
|
id: string;
|
|
12
15
|
organizerId: string;
|
|
@@ -20,15 +23,26 @@ export interface SchoolStudent {
|
|
|
20
23
|
createdAt: string;
|
|
21
24
|
updatedAt: string;
|
|
22
25
|
}
|
|
26
|
+
/** Row shape for `public.school_staff`. */
|
|
23
27
|
export interface SchoolStaff {
|
|
24
28
|
id: string;
|
|
25
29
|
organizerId: string;
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
/** Null until the invited staff member claims a WeDance account. */
|
|
31
|
+
userId: string | null;
|
|
32
|
+
firstName: string;
|
|
33
|
+
lastName: string;
|
|
34
|
+
email: string | null;
|
|
35
|
+
phone: string | null;
|
|
36
|
+
roles: SchoolStaffRole[];
|
|
37
|
+
accessLevel: SchoolStaffAccessLevel;
|
|
38
|
+
invitedAt: string | null;
|
|
39
|
+
accessRevokedAt: string | null;
|
|
40
|
+
joinedAt: string | null;
|
|
28
41
|
status: SchoolStaffStatus;
|
|
29
42
|
createdAt: string;
|
|
30
43
|
updatedAt: string;
|
|
31
44
|
}
|
|
45
|
+
/** Row shape for `public.school_classes`. */
|
|
32
46
|
export interface SchoolClass {
|
|
33
47
|
id: string;
|
|
34
48
|
organizerId: string;
|
|
@@ -42,6 +56,7 @@ export interface SchoolClass {
|
|
|
42
56
|
createdAt: string;
|
|
43
57
|
updatedAt: string;
|
|
44
58
|
}
|
|
59
|
+
/** Row shape for `public.class_sessions`. */
|
|
45
60
|
export interface ClassSession {
|
|
46
61
|
id: string;
|
|
47
62
|
classId: string;
|
|
@@ -50,10 +65,12 @@ export interface ClassSession {
|
|
|
50
65
|
instructorStaffId: string | null;
|
|
51
66
|
locationName: string | null;
|
|
52
67
|
locationAddress: string | null;
|
|
68
|
+
roomId: string | null;
|
|
53
69
|
status: ClassSessionStatus;
|
|
54
70
|
createdAt: string;
|
|
55
71
|
updatedAt: string;
|
|
56
72
|
}
|
|
73
|
+
/** Row shape for `public.class_enrollments`. */
|
|
57
74
|
export interface ClassEnrollment {
|
|
58
75
|
id: string;
|
|
59
76
|
classId: string;
|
|
@@ -66,6 +83,7 @@ export interface ClassEnrollment {
|
|
|
66
83
|
createdAt: string;
|
|
67
84
|
updatedAt: string;
|
|
68
85
|
}
|
|
86
|
+
/** Row shape for `public.class_session_registrations`. */
|
|
69
87
|
export interface ClassSessionRegistration {
|
|
70
88
|
id: string;
|
|
71
89
|
sessionId: string;
|
|
@@ -79,4 +97,19 @@ export interface ClassSessionRegistration {
|
|
|
79
97
|
cancelledAt: string | null;
|
|
80
98
|
createdAt: string;
|
|
81
99
|
updatedAt: string;
|
|
100
|
+
role: DancerRole | null;
|
|
101
|
+
}
|
|
102
|
+
export type SchoolRoomStatus = "active" | "inactive";
|
|
103
|
+
/** Row shape for `public.school_rooms`. */
|
|
104
|
+
export interface SchoolRoom {
|
|
105
|
+
id: string;
|
|
106
|
+
organizerId: string;
|
|
107
|
+
name: string;
|
|
108
|
+
location: string | null;
|
|
109
|
+
capacity: number | null;
|
|
110
|
+
color: string | null;
|
|
111
|
+
position: number;
|
|
112
|
+
status: SchoolRoomStatus;
|
|
113
|
+
createdAt: string;
|
|
114
|
+
updatedAt: string;
|
|
82
115
|
}
|
package/package.json
CHANGED