wedance-shared 1.0.224 → 1.0.226
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 +15 -0
- package/package.json +1 -1
package/dist/types/school.d.ts
CHANGED
|
@@ -41,6 +41,11 @@ export interface SchoolStudent {
|
|
|
41
41
|
* Populated by the server with a join. The latest session the student attended.
|
|
42
42
|
*/
|
|
43
43
|
lastAttendance?: StudentSessionRef | null;
|
|
44
|
+
/**
|
|
45
|
+
* Populated by the server. True when the student has no enrollments, registrations, passes or
|
|
46
|
+
* transactions, so `DELETE /school/students/:studentId` will succeed.
|
|
47
|
+
*/
|
|
48
|
+
canDelete?: boolean;
|
|
44
49
|
createdAt: string;
|
|
45
50
|
updatedAt: string;
|
|
46
51
|
}
|
|
@@ -402,3 +407,13 @@ export interface SchoolEmailRecipient {
|
|
|
402
407
|
createdAt: string;
|
|
403
408
|
updatedAt: string;
|
|
404
409
|
}
|
|
410
|
+
export type SchoolSubscriptionPlan = "solo" | "starter" | "growth" | "pro";
|
|
411
|
+
export type SchoolSubscriptionStatus = "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
412
|
+
export interface SchoolSubscription {
|
|
413
|
+
id: string;
|
|
414
|
+
plan: SchoolSubscriptionPlan;
|
|
415
|
+
status: SchoolSubscriptionStatus;
|
|
416
|
+
currentPeriodEnd: string | null;
|
|
417
|
+
trialEnd: string | null;
|
|
418
|
+
cancelAtPeriodEnd: boolean;
|
|
419
|
+
}
|
package/package.json
CHANGED