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.
@@ -94,7 +94,6 @@ export type UserEventRelation = {
94
94
  eventId: string;
95
95
  type: "going" | "saved";
96
96
  createdAt: string;
97
- deletedAt?: string;
98
97
  };
99
98
  export type UserOrganizerRelation = {
100
99
  id: string;
@@ -15,7 +15,6 @@ export interface Pass {
15
15
  * Not a column on the passes table.
16
16
  */
17
17
  event?: EventSummary | null;
18
- seriesId: string | null;
19
18
  checkoutSessionId: string | null;
20
19
  paymentId: string | null;
21
20
  productType: ProductType;
@@ -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
@@ -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
- recurrence: string;
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
- seriesStartsOn: string | null;
105
- seriesEndsOn: string | null;
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
- role: DancerRole | null;
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" | "role" | "enrolledAt" | "sourceType">;
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
- role: DancerRole | null;
238
+ danceRole: DancerRole | null;
237
239
  createdAt: string;
238
240
  updatedAt: string;
239
241
  }
@@ -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 series. Always belongs to a series; `credits` is
196
- * nullable here because a course may grant a fixed number of sessions or cover
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
- seriesId: string;
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;
@@ -20,7 +20,7 @@ export interface WedanceActivity {
20
20
  id: string;
21
21
  eventId: string;
22
22
  postId: string | null;
23
- organizerId: string | null;
23
+ userId: string | null;
24
24
  type: WedanceActivityType;
25
25
  metadata: Record<string, unknown> | null;
26
26
  createdAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.194",
3
+ "version": "1.0.196",
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",