wedance-shared 1.0.202 → 1.0.204
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/school.d.ts +31 -1
- package/dist/types/user.d.ts +0 -4
- package/package.json +1 -1
package/dist/types/school.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PassSummary } from "./pass.js";
|
|
2
|
+
import type { ProductType } from "./ticket.js";
|
|
2
3
|
export type SchoolStudentStatus = "active" | "inactive";
|
|
3
4
|
export type SchoolStaffRole = "owner" | "admin" | "instructor";
|
|
4
5
|
export type SchoolStaffAccessLevel = "full" | "limited" | "invited" | "none";
|
|
@@ -8,7 +9,8 @@ export type ClassSessionStatus = "scheduled" | "completed" | "cancelled";
|
|
|
8
9
|
export type ClassEnrollmentStatus = "active" | "cancelled" | "completed";
|
|
9
10
|
export type ClassEnrollmentSourceType = "manual" | "purchase";
|
|
10
11
|
export type ClassSessionRegistrationStatus = "booked" | "waitlisted" | "attended" | "absent" | "no_show" | "cancelled";
|
|
11
|
-
|
|
12
|
+
/** How a student gained access to a session — sellable products plus non-purchase paths. */
|
|
13
|
+
export type ClassSessionAccessType = Exclude<ProductType, "event"> | "free" | "manual";
|
|
12
14
|
export type DancerRole = "lead" | "follow";
|
|
13
15
|
/** Row shape for `public.school_students`. */
|
|
14
16
|
export interface SchoolStudent {
|
|
@@ -306,3 +308,31 @@ export type ClassSessionRegistrationRosterItem = ClassSessionRegistration & {
|
|
|
306
308
|
export type ClassSessionRegistrationListItem = ClassSessionRegistration & {
|
|
307
309
|
session: ClassSessionSummary;
|
|
308
310
|
};
|
|
311
|
+
export type SchoolActivityAction = "class_created" | "class_updated" | "class_cancelled" | "class_rescheduled" | "instructor_changed" | "student_created" | "student_enrolled" | "student_removed" | "student_waitlisted" | "student_removed_from_waitlist" | "attendance_marked" | "attendance_changed" | "pass_granted" | "pass_adjusted" | "pass_revoked" | "staff_created" | "staff_access_changed" | "staff_removed";
|
|
312
|
+
export type SchoolActivityEntityType = "class" | "class_session" | "student" | "enrollment" | "attendance" | "student_pass" | "staff";
|
|
313
|
+
export type SchoolActivityMetadata = Record<string, unknown>;
|
|
314
|
+
export type SchoolActivityValues = Record<string, unknown>;
|
|
315
|
+
export interface SchoolActivity {
|
|
316
|
+
id: string;
|
|
317
|
+
organizerId: string;
|
|
318
|
+
action: SchoolActivityAction;
|
|
319
|
+
entityType: SchoolActivityEntityType;
|
|
320
|
+
entityId: string | null;
|
|
321
|
+
entityName: string | null;
|
|
322
|
+
actorStaffId: string | null;
|
|
323
|
+
metadata: SchoolActivityMetadata;
|
|
324
|
+
beforeValues: SchoolActivityValues | null;
|
|
325
|
+
afterValues: SchoolActivityValues | null;
|
|
326
|
+
createdAt: string;
|
|
327
|
+
}
|
|
328
|
+
export interface CreateSchoolActivityInput {
|
|
329
|
+
organizerId: string;
|
|
330
|
+
action: SchoolActivityAction;
|
|
331
|
+
entityType: SchoolActivityEntityType;
|
|
332
|
+
entityId?: string | null;
|
|
333
|
+
entityName?: string | null;
|
|
334
|
+
actorStaffId?: string | null;
|
|
335
|
+
metadata?: SchoolActivityMetadata;
|
|
336
|
+
beforeValues?: SchoolActivityValues | null;
|
|
337
|
+
afterValues?: SchoolActivityValues | null;
|
|
338
|
+
}
|
package/dist/types/user.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { City } from "./city.js";
|
|
2
2
|
import { DanceTag } from "./event.js";
|
|
3
|
-
import { Ticket } from "./ticket.js";
|
|
4
3
|
import { LanguageCode } from "./other.js";
|
|
5
4
|
export type Role = "admin" | "manager" | "organiser" | "user" | "checkin";
|
|
6
5
|
export type User = {
|
|
@@ -16,8 +15,6 @@ export type User = {
|
|
|
16
15
|
createdAt: string;
|
|
17
16
|
lastUpdated?: string;
|
|
18
17
|
lastConnected?: string;
|
|
19
|
-
savedEvents: string[];
|
|
20
|
-
goingEvents: string[];
|
|
21
18
|
role: Role;
|
|
22
19
|
city: City | null;
|
|
23
20
|
favoriteDance?: DanceTag;
|
|
@@ -28,7 +25,6 @@ export type User = {
|
|
|
28
25
|
appVersion?: string;
|
|
29
26
|
deviceModel?: string;
|
|
30
27
|
platform?: string;
|
|
31
|
-
tickets?: Ticket[];
|
|
32
28
|
emailVerified: boolean;
|
|
33
29
|
stripeId?: string;
|
|
34
30
|
profilePicture?: {
|
package/package.json
CHANGED