wedance-shared 1.0.215 → 1.0.217

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.
@@ -1,5 +1,4 @@
1
1
  import type { PassSummary } from "./pass.js";
2
- import type { ProductType } from "./ticket.js";
3
2
  export type SchoolStudentStatus = "active" | "inactive";
4
3
  export type SchoolStaffRole = "owner" | "admin" | "instructor";
5
4
  export type SchoolStaffAccessLevel = "full" | "limited" | "none";
@@ -8,10 +7,11 @@ export type SchoolClassStatus = "draft" | "active" | "archived";
8
7
  export type SchoolEmailRecipientStatus = "pending" | "sent" | "delivered" | "bounced" | "complained" | "failed";
9
8
  export type ClassSessionStatus = "scheduled" | "completed" | "cancelled";
10
9
  export type ClassEnrollmentStatus = "active" | "cancelled" | "completed";
11
- export type ClassEnrollmentSourceType = "manual" | "purchase";
10
+ export type ClassEnrollmentSourceType = "student" | "staff";
12
11
  export type ClassSessionRegistrationStatus = "booked" | "waitlisted" | "attended" | "absent" | "no_show" | "cancelled";
13
12
  /** How a student gained access to a session — sellable products plus non-purchase paths. */
14
- export type ClassSessionAccessType = Exclude<ProductType, "event"> | "free" | "manual";
13
+ export type ClassSessionAccessType = "course" | "pass" | "drop_in" | "membership" | "free" | "complimentary" | "pay_later";
14
+ export type ClassSessionRegistrationSource = "student" | "staff";
15
15
  export type DancerRole = "lead" | "follow";
16
16
  export type EnrollmentMode = "session" | "series";
17
17
  /** Row shape for `public.school_students`. */
@@ -285,6 +285,7 @@ export interface ClassSessionRegistration {
285
285
  studentId: string;
286
286
  status: ClassSessionRegistrationStatus;
287
287
  accessType: ClassSessionAccessType;
288
+ source: ClassSessionRegistrationSource;
288
289
  passId: string | null;
289
290
  passRedemptionId: string | null;
290
291
  bookedAt: string;
@@ -48,8 +48,6 @@ export interface Transaction {
48
48
  refundId: string | null;
49
49
  checkoutSessionId: string | null;
50
50
  context: "event" | "school";
51
- /** Written by the test-mode Stripe webhook. Excluded from revenue. */
52
- test: boolean;
53
51
  description: string | null;
54
52
  metadata: Record<string, unknown>;
55
53
  createdAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.215",
3
+ "version": "1.0.217",
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",