wedance-shared 1.0.194 → 1.0.196
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
CHANGED
|
@@ -48,7 +48,7 @@ export type PrivateClass = {
|
|
|
48
48
|
* column on the private_classes table; null when that document is gone.
|
|
49
49
|
*/
|
|
50
50
|
teacher: UserSummary | null;
|
|
51
|
-
priority: number;
|
|
51
|
+
priority: number | null;
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
54
|
* `PUT /private-classes` — creates or replaces the caller's own listing. A full
|
package/dist/types/school.d.ts
CHANGED
|
@@ -96,13 +96,13 @@ export interface SchoolClass {
|
|
|
96
96
|
/** Class booking format (e.g. open vs lead/follow). */
|
|
97
97
|
format: string;
|
|
98
98
|
/** Recurrence rule for generating sessions. */
|
|
99
|
-
|
|
99
|
+
recurrenceType: string;
|
|
100
100
|
/** Weekdays to repeat on (0 = Sunday … 6 = Saturday). Empty when not recurring. */
|
|
101
101
|
repeatWeekdays: number[];
|
|
102
102
|
/** Default session start time (`HH:MM:SS` / `HH:MM`). */
|
|
103
103
|
defaultStartTime: string | null;
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
recurrenceStartsOn: string | null;
|
|
105
|
+
recurrenceEndsOn: string | null;
|
|
106
106
|
/** Fallback session length when a session has no explicit endsAt override. */
|
|
107
107
|
defaultClassDurationMinutes: number | null;
|
|
108
108
|
status: SchoolClassStatus;
|
|
@@ -143,6 +143,8 @@ export interface ClassSession {
|
|
|
143
143
|
roomId: string | null;
|
|
144
144
|
/** Overrides the parent class capacity for this session only. */
|
|
145
145
|
capacityOverride: number | null;
|
|
146
|
+
capacityLeadOverride: number | null;
|
|
147
|
+
capacityFollowOverride: number | null;
|
|
146
148
|
status: ClassSessionStatus;
|
|
147
149
|
cancellationReason: string | null;
|
|
148
150
|
cancelledAt: string | null;
|
|
@@ -193,7 +195,7 @@ export interface ClassEnrollment {
|
|
|
193
195
|
status: ClassEnrollmentStatus;
|
|
194
196
|
sourceType: ClassEnrollmentSourceType;
|
|
195
197
|
sourcePassId: string | null;
|
|
196
|
-
|
|
198
|
+
danceRole: DancerRole | null;
|
|
197
199
|
enrolledAt: string;
|
|
198
200
|
waitlistedAt: string | null;
|
|
199
201
|
cancelledAt: string | null;
|
|
@@ -218,7 +220,7 @@ export type ClassEnrollmentListItem = ClassEnrollment & {
|
|
|
218
220
|
* Lightweight enrollment projection for course-based session access.
|
|
219
221
|
* Populated server-side via a join.
|
|
220
222
|
*/
|
|
221
|
-
export type ClassEnrollmentSummary = Pick<ClassEnrollment, "id" | "status" | "
|
|
223
|
+
export type ClassEnrollmentSummary = Pick<ClassEnrollment, "id" | "status" | "danceRole" | "enrolledAt" | "sourceType">;
|
|
222
224
|
/** Row shape for `public.class_session_registrations`. */
|
|
223
225
|
export interface ClassSessionRegistration {
|
|
224
226
|
id: string;
|
|
@@ -233,7 +235,7 @@ export interface ClassSessionRegistration {
|
|
|
233
235
|
checkedInAt: string | null;
|
|
234
236
|
attendanceMarkedAt: string | null;
|
|
235
237
|
cancelledAt: string | null;
|
|
236
|
-
|
|
238
|
+
danceRole: DancerRole | null;
|
|
237
239
|
createdAt: string;
|
|
238
240
|
updatedAt: string;
|
|
239
241
|
}
|
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;
|
|
@@ -306,7 +304,7 @@ export type CheckoutClient = "mobile" | "web";
|
|
|
306
304
|
export type CheckoutMode = "payment" | "setup" | "subscription";
|
|
307
305
|
export type CheckoutSession = {
|
|
308
306
|
id: string;
|
|
309
|
-
user_id: string;
|
|
307
|
+
user_id: string | null;
|
|
310
308
|
amount: number;
|
|
311
309
|
client: CheckoutClient;
|
|
312
310
|
created: Date;
|
|
@@ -319,7 +317,6 @@ export type CheckoutSession = {
|
|
|
319
317
|
transfer_data_destination: string | null;
|
|
320
318
|
quantity: number;
|
|
321
319
|
event_id: string | null;
|
|
322
|
-
organizer_id: string;
|
|
323
320
|
event_ticket_id: string;
|
|
324
321
|
discount_code: string | null;
|
|
325
322
|
discount_code_id: string | null;
|
package/package.json
CHANGED