wedance-shared 1.0.203 → 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.
@@ -308,3 +308,31 @@ export type ClassSessionRegistrationRosterItem = ClassSessionRegistration & {
308
308
  export type ClassSessionRegistrationListItem = ClassSessionRegistration & {
309
309
  session: ClassSessionSummary;
310
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.203",
3
+ "version": "1.0.204",
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",