wedance-shared 1.0.207 → 1.0.208
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 +47 -0
- package/package.json +1 -1
package/dist/types/school.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type SchoolStaffRole = "owner" | "admin" | "instructor";
|
|
|
5
5
|
export type SchoolStaffAccessLevel = "full" | "limited" | "invited" | "none";
|
|
6
6
|
export type SchoolStaffStatus = "active" | "disabled";
|
|
7
7
|
export type SchoolClassStatus = "draft" | "active" | "archived";
|
|
8
|
+
export type SchoolEmailRecipientStatus = "pending" | "sent" | "delivered" | "bounced" | "complained" | "failed";
|
|
8
9
|
export type ClassSessionStatus = "scheduled" | "completed" | "cancelled";
|
|
9
10
|
export type ClassEnrollmentStatus = "active" | "cancelled" | "completed";
|
|
10
11
|
export type ClassEnrollmentSourceType = "manual" | "purchase";
|
|
@@ -339,3 +340,49 @@ export interface CreateSchoolActivityInput {
|
|
|
339
340
|
beforeValues?: SchoolActivityValues | null;
|
|
340
341
|
afterValues?: SchoolActivityValues | null;
|
|
341
342
|
}
|
|
343
|
+
/** Row shape for `public.school_email_templates`. */
|
|
344
|
+
export interface SchoolEmailTemplate {
|
|
345
|
+
id: string;
|
|
346
|
+
organizerId: string;
|
|
347
|
+
name: string;
|
|
348
|
+
type: string;
|
|
349
|
+
subject: string;
|
|
350
|
+
bodyHtml: string;
|
|
351
|
+
useSchoolLogo: boolean;
|
|
352
|
+
bannerImageUrl: string | null;
|
|
353
|
+
createdAt: string;
|
|
354
|
+
updatedAt: string;
|
|
355
|
+
}
|
|
356
|
+
export type SchoolEmailAudience = Record<string, unknown>;
|
|
357
|
+
/** Row shape for `public.school_email_messages`. */
|
|
358
|
+
export interface SchoolEmailMessage {
|
|
359
|
+
id: string;
|
|
360
|
+
organizerId: string;
|
|
361
|
+
templateId: string | null;
|
|
362
|
+
createdByStaffId: string | null;
|
|
363
|
+
subject: string;
|
|
364
|
+
bodyHtml: string;
|
|
365
|
+
status: string;
|
|
366
|
+
audience: SchoolEmailAudience;
|
|
367
|
+
sentAt: string | null;
|
|
368
|
+
createdAt: string;
|
|
369
|
+
updatedAt: string;
|
|
370
|
+
}
|
|
371
|
+
/** Row shape for `public.school_email_recipients`. */
|
|
372
|
+
export interface SchoolEmailRecipient {
|
|
373
|
+
id: string;
|
|
374
|
+
messageId: string;
|
|
375
|
+
studentId: string | null;
|
|
376
|
+
email: string;
|
|
377
|
+
studentName: string | null;
|
|
378
|
+
resendEmailId: string | null;
|
|
379
|
+
status: SchoolEmailRecipientStatus;
|
|
380
|
+
errorMessage: string | null;
|
|
381
|
+
sentAt: string | null;
|
|
382
|
+
deliveredAt: string | null;
|
|
383
|
+
bouncedAt: string | null;
|
|
384
|
+
complainedAt: string | null;
|
|
385
|
+
failedAt: string | null;
|
|
386
|
+
createdAt: string;
|
|
387
|
+
updatedAt: string;
|
|
388
|
+
}
|
package/package.json
CHANGED