wedance-shared 1.0.184 → 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.
@@ -14,4 +14,5 @@ export * from "./pass.js";
14
14
  export * from "./poll.js";
15
15
  export * from "./privateClass.js";
16
16
  export * from "./revenue.js";
17
+ export * from "./school.js";
17
18
  export * from "./festivals/index.js";
@@ -15,6 +15,7 @@ export * from "./pass.js";
15
15
  export * from "./poll.js";
16
16
  export * from "./privateClass.js";
17
17
  export * from "./revenue.js";
18
+ export * from "./school.js";
18
19
  // Re-export from subdirectories
19
20
  export * from "./festivals/index.js";
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAE7B,gCAAgC;AAChC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAE5B,gCAAgC;AAChC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,115 @@
1
+ export type SchoolStudentStatus = "active" | "inactive";
2
+ export type SchoolStaffRole = "owner" | "admin" | "instructor";
3
+ export type SchoolStaffAccessLevel = "full" | "limited" | "invited" | "none";
4
+ export type SchoolStaffStatus = "active" | "disabled";
5
+ export type SchoolClassStatus = "draft" | "active" | "archived";
6
+ export type ClassSessionStatus = "scheduled" | "completed" | "cancelled";
7
+ export type ClassEnrollmentStatus = "active" | "cancelled" | "completed";
8
+ export type ClassEnrollmentSourceType = "manual" | "purchase";
9
+ export type ClassSessionRegistrationStatus = "booked" | "waitlisted" | "attended" | "absent" | "no_show" | "cancelled";
10
+ export type ClassSessionAccessType = "course" | "pass" | "drop_in" | "membership" | "free" | "manual";
11
+ export type DancerRole = "lead" | "follow";
12
+ /** Row shape for `public.school_students`. */
13
+ export interface SchoolStudent {
14
+ id: string;
15
+ organizerId: string;
16
+ userId: string | null;
17
+ firstName: string;
18
+ lastName: string;
19
+ email: string | null;
20
+ phone: string | null;
21
+ status: SchoolStudentStatus;
22
+ notes: string | null;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ }
26
+ /** Row shape for `public.school_staff`. */
27
+ export interface SchoolStaff {
28
+ id: string;
29
+ organizerId: string;
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;
41
+ status: SchoolStaffStatus;
42
+ createdAt: string;
43
+ updatedAt: string;
44
+ }
45
+ /** Row shape for `public.school_classes`. */
46
+ export interface SchoolClass {
47
+ id: string;
48
+ organizerId: string;
49
+ name: string;
50
+ description: string | null;
51
+ danceTags: string[];
52
+ level: string | null;
53
+ capacity: number | null;
54
+ instructorStaffId: string | null;
55
+ status: SchoolClassStatus;
56
+ createdAt: string;
57
+ updatedAt: string;
58
+ }
59
+ /** Row shape for `public.class_sessions`. */
60
+ export interface ClassSession {
61
+ id: string;
62
+ classId: string;
63
+ startsAt: string;
64
+ endsAt: string;
65
+ instructorStaffId: string | null;
66
+ locationName: string | null;
67
+ locationAddress: string | null;
68
+ roomId: string | null;
69
+ status: ClassSessionStatus;
70
+ createdAt: string;
71
+ updatedAt: string;
72
+ }
73
+ /** Row shape for `public.class_enrollments`. */
74
+ export interface ClassEnrollment {
75
+ id: string;
76
+ classId: string;
77
+ studentId: string;
78
+ status: ClassEnrollmentStatus;
79
+ sourceType: ClassEnrollmentSourceType;
80
+ sourcePassId: string | null;
81
+ enrolledAt: string;
82
+ cancelledAt: string | null;
83
+ createdAt: string;
84
+ updatedAt: string;
85
+ }
86
+ /** Row shape for `public.class_session_registrations`. */
87
+ export interface ClassSessionRegistration {
88
+ id: string;
89
+ sessionId: string;
90
+ studentId: string;
91
+ status: ClassSessionRegistrationStatus;
92
+ accessType: ClassSessionAccessType;
93
+ passId: string | null;
94
+ passRedemptionId: string | null;
95
+ bookedAt: string;
96
+ checkedInAt: string | null;
97
+ cancelledAt: string | null;
98
+ createdAt: string;
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;
115
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=school.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"school.js","sourceRoot":"","sources":["../../src/types/school.ts"],"names":[],"mappings":""}
@@ -123,6 +123,7 @@ export type TicketTypeBase = {
123
123
  */
124
124
  promotionalPeriod: PromotionalPeriod | null;
125
125
  organizerId: string;
126
+ classId?: string | null;
126
127
  };
127
128
  /**
128
129
  * A ticket sold for one specific event. The only variant currently written in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.184",
3
+ "version": "1.0.186",
4
4
  "description": "This repository contains shared TypeScript types and interfaces used across multiple WeDance applications:",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",