wedance-shared 1.0.216 → 1.0.218
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 +12 -5
- package/dist/types/school.d.ts +4 -3
- package/package.json +1 -1
package/dist/types/pass.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { EventSummary } from "./event.js";
|
|
2
2
|
import { MonetaryAmount, PassAccessScope, ProductType, TicketStatus, TicketTypeSummary } from "./ticket.js";
|
|
3
|
-
type PaymentMethod = "stripe" | "cash" | "
|
|
3
|
+
type PaymentMethod = "stripe" | "card_in_person" | "card" | "cash" | "mobilepay" | "bank_transfer" | "comp";
|
|
4
|
+
type PaymentSource = "online" | "in_person";
|
|
5
|
+
type PassOwnerType = "user" | "guest" | "anonymous";
|
|
4
6
|
export interface Pass {
|
|
5
7
|
id: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Add ownerType to the API/domain type, but derive it from the existing ownership field.
|
|
10
|
+
*/
|
|
11
|
+
ownerType: PassOwnerType;
|
|
12
|
+
userId: string | null;
|
|
13
|
+
originalOwnerId: string | null;
|
|
8
14
|
organizerId: string;
|
|
9
15
|
ticketTypeId: string;
|
|
10
16
|
/**
|
|
@@ -38,13 +44,14 @@ export interface Pass {
|
|
|
38
44
|
createdAt: string;
|
|
39
45
|
updatedAt: string;
|
|
40
46
|
accessScope: PassAccessScope;
|
|
47
|
+
paymentSource: PaymentSource | null;
|
|
48
|
+
paymentMethod: PaymentMethod | null;
|
|
41
49
|
/**
|
|
42
50
|
* For users without an account, the guest email and full name are stored here.
|
|
43
51
|
*/
|
|
44
52
|
guestEmail: string | null;
|
|
45
53
|
guestFullName: string | null;
|
|
46
|
-
|
|
47
|
-
issuedBy: string | null | undefined;
|
|
54
|
+
issuedBy: string | null;
|
|
48
55
|
}
|
|
49
56
|
/**
|
|
50
57
|
* Lightweight pass projection for student profiles, enrollments, and session access.
|
package/dist/types/school.d.ts
CHANGED
|
@@ -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 = "
|
|
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 =
|
|
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;
|
package/package.json
CHANGED