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.
@@ -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;
@@ -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
- /** Row shape for `public.school_dance_styles`. */
57
- export interface SchoolDanceStylesDB {
56
+ export interface SchoolDanceStyles {
58
57
  id: string;
59
- organizer_id: string;
58
+ organizerId: string;
60
59
  name: string;
61
60
  active: boolean;
62
- created_at: string;
63
- updated_at: string;
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
- role: DancerRole | null;
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" | "role" | "enrolledAt" | "sourceType">;
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
- role: DancerRole | null;
236
+ danceRole: DancerRole | null;
238
237
  createdAt: string;
239
238
  updatedAt: string;
240
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.193",
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",