wedance-shared 1.0.184 → 1.0.185

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.
@@ -14,4 +14,5 @@ export * from "./pass.js";
14
14
  export * from "./poll.js";
15
15
  export * from "./privateClass.js";
16
16
  export * from "./revenue.js";
17
+ export * from "./school.js";
17
18
  export * from "./festivals/index.js";
@@ -15,6 +15,7 @@ export * from "./pass.js";
15
15
  export * from "./poll.js";
16
16
  export * from "./privateClass.js";
17
17
  export * from "./revenue.js";
18
+ export * from "./school.js";
18
19
  // Re-export from subdirectories
19
20
  export * from "./festivals/index.js";
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAE7B,gCAAgC;AAChC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAE5B,gCAAgC;AAChC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,82 @@
1
+ export type SchoolStudentStatus = "active" | "inactive";
2
+ export type SchoolStaffRole = "owner" | "admin" | "instructor";
3
+ export type SchoolStaffStatus = "active" | "disabled";
4
+ export type SchoolClassStatus = "draft" | "active" | "archived";
5
+ export type ClassSessionStatus = "scheduled" | "completed" | "cancelled";
6
+ export type ClassEnrollmentStatus = "active" | "cancelled" | "completed";
7
+ export type ClassEnrollmentSourceType = "manual" | "purchase";
8
+ export type ClassSessionRegistrationStatus = "booked" | "attended" | "absent" | "no_show" | "cancelled";
9
+ export type ClassSessionAccessType = "course" | "pass" | "drop_in" | "membership" | "free" | "manual";
10
+ export interface SchoolStudent {
11
+ id: string;
12
+ organizerId: string;
13
+ userId: string | null;
14
+ firstName: string;
15
+ lastName: string;
16
+ email: string | null;
17
+ phone: string | null;
18
+ status: SchoolStudentStatus;
19
+ notes: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
+ }
23
+ export interface SchoolStaff {
24
+ id: string;
25
+ organizerId: string;
26
+ userId: string;
27
+ role: SchoolStaffRole;
28
+ status: SchoolStaffStatus;
29
+ createdAt: string;
30
+ updatedAt: string;
31
+ }
32
+ export interface SchoolClass {
33
+ id: string;
34
+ organizerId: string;
35
+ name: string;
36
+ description: string | null;
37
+ danceTags: string[];
38
+ level: string | null;
39
+ capacity: number | null;
40
+ instructorStaffId: string | null;
41
+ status: SchoolClassStatus;
42
+ createdAt: string;
43
+ updatedAt: string;
44
+ }
45
+ export interface ClassSession {
46
+ id: string;
47
+ classId: string;
48
+ startsAt: string;
49
+ endsAt: string;
50
+ instructorStaffId: string | null;
51
+ locationName: string | null;
52
+ locationAddress: string | null;
53
+ status: ClassSessionStatus;
54
+ createdAt: string;
55
+ updatedAt: string;
56
+ }
57
+ export interface ClassEnrollment {
58
+ id: string;
59
+ classId: string;
60
+ studentId: string;
61
+ status: ClassEnrollmentStatus;
62
+ sourceType: ClassEnrollmentSourceType;
63
+ sourcePassId: string | null;
64
+ enrolledAt: string;
65
+ cancelledAt: string | null;
66
+ createdAt: string;
67
+ updatedAt: string;
68
+ }
69
+ export interface ClassSessionRegistration {
70
+ id: string;
71
+ sessionId: string;
72
+ studentId: string;
73
+ status: ClassSessionRegistrationStatus;
74
+ accessType: ClassSessionAccessType;
75
+ passId: string | null;
76
+ passRedemptionId: string | null;
77
+ bookedAt: string;
78
+ checkedInAt: string | null;
79
+ cancelledAt: string | null;
80
+ createdAt: string;
81
+ updatedAt: string;
82
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=school.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"school.js","sourceRoot":"","sources":["../../src/types/school.ts"],"names":[],"mappings":""}
@@ -123,6 +123,7 @@ export type TicketTypeBase = {
123
123
  */
124
124
  promotionalPeriod: PromotionalPeriod | null;
125
125
  organizerId: string;
126
+ classId?: string | null;
126
127
  };
127
128
  /**
128
129
  * A ticket sold for one specific event. The only variant currently written in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.184",
3
+ "version": "1.0.185",
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",