wedance-shared 1.0.194 → 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.
@@ -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;
@@ -193,7 +193,7 @@ export interface ClassEnrollment {
193
193
  status: ClassEnrollmentStatus;
194
194
  sourceType: ClassEnrollmentSourceType;
195
195
  sourcePassId: string | null;
196
- role: DancerRole | null;
196
+ danceRole: DancerRole | null;
197
197
  enrolledAt: string;
198
198
  waitlistedAt: string | null;
199
199
  cancelledAt: string | null;
@@ -218,7 +218,7 @@ export type ClassEnrollmentListItem = ClassEnrollment & {
218
218
  * Lightweight enrollment projection for course-based session access.
219
219
  * Populated server-side via a join.
220
220
  */
221
- export type ClassEnrollmentSummary = Pick<ClassEnrollment, "id" | "status" | "role" | "enrolledAt" | "sourceType">;
221
+ export type ClassEnrollmentSummary = Pick<ClassEnrollment, "id" | "status" | "danceRole" | "enrolledAt" | "sourceType">;
222
222
  /** Row shape for `public.class_session_registrations`. */
223
223
  export interface ClassSessionRegistration {
224
224
  id: string;
@@ -233,7 +233,7 @@ export interface ClassSessionRegistration {
233
233
  checkedInAt: string | null;
234
234
  attendanceMarkedAt: string | null;
235
235
  cancelledAt: string | null;
236
- role: DancerRole | null;
236
+ danceRole: DancerRole | null;
237
237
  createdAt: string;
238
238
  updatedAt: string;
239
239
  }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.194",
3
+ "version": "1.0.195",
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",