wedance-shared 1.0.193 → 1.0.195
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 +0 -1
- package/dist/types/school.d.ts +7 -8
- package/dist/types/ticket.d.ts +6 -8
- package/package.json +1 -1
package/dist/types/pass.d.ts
CHANGED
package/dist/types/school.d.ts
CHANGED
|
@@ -53,14 +53,13 @@ export interface SchoolStaff {
|
|
|
53
53
|
*/
|
|
54
54
|
export type SchoolStaffSummary = Pick<SchoolStaff, "id" | "firstName" | "lastName" | "email" | "roles" | "status" | "userId">;
|
|
55
55
|
export type SchoolRoomStatus = "active" | "inactive";
|
|
56
|
-
|
|
57
|
-
export interface SchoolDanceStylesDB {
|
|
56
|
+
export interface SchoolDanceStyles {
|
|
58
57
|
id: string;
|
|
59
|
-
|
|
58
|
+
organizerId: string;
|
|
60
59
|
name: string;
|
|
61
60
|
active: boolean;
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
createdAt: string;
|
|
62
|
+
updatedAt: string;
|
|
64
63
|
}
|
|
65
64
|
/** Row shape for `public.school_rooms`. */
|
|
66
65
|
export interface SchoolRoom {
|
|
@@ -194,7 +193,7 @@ export interface ClassEnrollment {
|
|
|
194
193
|
status: ClassEnrollmentStatus;
|
|
195
194
|
sourceType: ClassEnrollmentSourceType;
|
|
196
195
|
sourcePassId: string | null;
|
|
197
|
-
|
|
196
|
+
danceRole: DancerRole | null;
|
|
198
197
|
enrolledAt: string;
|
|
199
198
|
waitlistedAt: string | null;
|
|
200
199
|
cancelledAt: string | null;
|
|
@@ -219,7 +218,7 @@ export type ClassEnrollmentListItem = ClassEnrollment & {
|
|
|
219
218
|
* Lightweight enrollment projection for course-based session access.
|
|
220
219
|
* Populated server-side via a join.
|
|
221
220
|
*/
|
|
222
|
-
export type ClassEnrollmentSummary = Pick<ClassEnrollment, "id" | "status" | "
|
|
221
|
+
export type ClassEnrollmentSummary = Pick<ClassEnrollment, "id" | "status" | "danceRole" | "enrolledAt" | "sourceType">;
|
|
223
222
|
/** Row shape for `public.class_session_registrations`. */
|
|
224
223
|
export interface ClassSessionRegistration {
|
|
225
224
|
id: string;
|
|
@@ -234,7 +233,7 @@ export interface ClassSessionRegistration {
|
|
|
234
233
|
checkedInAt: string | null;
|
|
235
234
|
attendanceMarkedAt: string | null;
|
|
236
235
|
cancelledAt: string | null;
|
|
237
|
-
|
|
236
|
+
danceRole: DancerRole | null;
|
|
238
237
|
createdAt: string;
|
|
239
238
|
updatedAt: string;
|
|
240
239
|
}
|
package/dist/types/ticket.d.ts
CHANGED
|
@@ -123,6 +123,9 @@ export type TicketTypeBase = {
|
|
|
123
123
|
*/
|
|
124
124
|
promotionalPeriod: PromotionalPeriod | null;
|
|
125
125
|
organizerId: string;
|
|
126
|
+
/**
|
|
127
|
+
* For the school classes, the id of the class
|
|
128
|
+
*/
|
|
126
129
|
classId?: string | null;
|
|
127
130
|
};
|
|
128
131
|
/**
|
|
@@ -136,7 +139,6 @@ export type EventTicketType = TicketTypeBase & {
|
|
|
136
139
|
validityDays?: never;
|
|
137
140
|
validFrom?: never;
|
|
138
141
|
validUntil?: never;
|
|
139
|
-
seriesId?: never;
|
|
140
142
|
/**
|
|
141
143
|
* @deprecated Replaced by name
|
|
142
144
|
*/
|
|
@@ -154,7 +156,6 @@ export type DropInTicketType = TicketTypeBase & {
|
|
|
154
156
|
productType: "drop_in";
|
|
155
157
|
eventId: string | null;
|
|
156
158
|
credits?: never;
|
|
157
|
-
seriesId?: never;
|
|
158
159
|
validityDays?: never;
|
|
159
160
|
validFrom?: never;
|
|
160
161
|
validUntil?: never;
|
|
@@ -175,7 +176,6 @@ export type PassTicketType = TicketTypeBase & {
|
|
|
175
176
|
validityDays: number | null;
|
|
176
177
|
validFrom: string | null;
|
|
177
178
|
validUntil: string | null;
|
|
178
|
-
seriesId?: never;
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
181
181
|
* Unlimited access for a period. Deliberately has **no** `credits` field —
|
|
@@ -189,17 +189,15 @@ export type MembershipTicketType = TicketTypeBase & {
|
|
|
189
189
|
validityDays: number | null;
|
|
190
190
|
validFrom: string | null;
|
|
191
191
|
validUntil: string | null;
|
|
192
|
-
seriesId?: never;
|
|
193
192
|
};
|
|
194
193
|
/**
|
|
195
|
-
* Enrollment in a course
|
|
196
|
-
*
|
|
197
|
-
* the whole series.
|
|
194
|
+
* Enrollment in a course. Always belongs to a class; `credits` is nullable here
|
|
195
|
+
* because a course may grant a fixed number of sessions or cover the whole class.
|
|
198
196
|
*/
|
|
199
197
|
export type CourseTicketType = TicketTypeBase & {
|
|
200
198
|
productType: "course";
|
|
201
199
|
eventId: null;
|
|
202
|
-
|
|
200
|
+
classId: string;
|
|
203
201
|
credits: number | null;
|
|
204
202
|
validityDays?: never;
|
|
205
203
|
validFrom?: never;
|
package/package.json
CHANGED