@brite-future-schools-contracts/contracts 2.0.28 → 2.0.32
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/chunk-2B5AQI2I.js +374 -0
- package/dist/chunk-2B5AQI2I.js.map +1 -0
- package/dist/{chunk-CL7UHAQE.js → chunk-7AJ4LRST.js} +366 -10
- package/dist/chunk-7AJ4LRST.js.map +1 -0
- package/dist/chunk-W3NAS6DL.js +1 -0
- package/dist/contracts/index.cjs +498 -0
- package/dist/contracts/index.cjs.map +1 -1
- package/dist/contracts/index.d.cts +2082 -1
- package/dist/contracts/index.d.ts +2082 -1
- package/dist/contracts/index.js +84 -2
- package/dist/index.cjs +617 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +171 -3
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +408 -9
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +544 -1
- package/dist/schemas/index.d.ts +544 -1
- package/dist/schemas/index.js +88 -2
- package/package.json +1 -1
- package/dist/chunk-CL7UHAQE.js.map +0 -1
- package/dist/chunk-NCAGCDZV.js +0 -1
- package/dist/chunk-YKK4SQI7.js +0 -204
- package/dist/chunk-YKK4SQI7.js.map +0 -1
- /package/dist/{chunk-NCAGCDZV.js.map → chunk-W3NAS6DL.js.map} +0 -0
package/dist/schemas/index.cjs
CHANGED
|
@@ -32,8 +32,13 @@ var schemas_exports = {};
|
|
|
32
32
|
__export(schemas_exports, {
|
|
33
33
|
AcademicTermSchema: () => AcademicTermSchema,
|
|
34
34
|
AcademicYearSchema: () => AcademicYearSchema,
|
|
35
|
+
AcknowledgeDeliveryInputSchema: () => AcknowledgeDeliveryInputSchema,
|
|
36
|
+
AcknowledgeDiaryEntryInputSchema: () => AcknowledgeDiaryEntryInputSchema,
|
|
35
37
|
AttendanceRecordInputSchema: () => AttendanceRecordInputSchema,
|
|
36
38
|
AttendanceStatusSchema: () => AttendanceStatusSchema,
|
|
39
|
+
BankAccountTypeSchema: () => BankAccountTypeSchema,
|
|
40
|
+
BlockResolutionMethodSchema: () => BlockResolutionMethodSchema,
|
|
41
|
+
BranchBankAccountSchema: () => BranchBankAccountSchema,
|
|
37
42
|
BranchRefSchema: () => BranchRefSchema,
|
|
38
43
|
BulkUploadStudentRowSchema: () => BulkUploadStudentRowSchema,
|
|
39
44
|
BulkUploadStudentsInputSchema: () => BulkUploadStudentsInputSchema,
|
|
@@ -41,8 +46,12 @@ __export(schemas_exports, {
|
|
|
41
46
|
ChangePasswordInputSchema: () => ChangePasswordInputSchema,
|
|
42
47
|
ClassAttendanceRowSchema: () => ClassAttendanceRowSchema,
|
|
43
48
|
ClassSummarySchema: () => ClassSummarySchema,
|
|
49
|
+
CreateBankAccountInputSchema: () => CreateBankAccountInputSchema,
|
|
44
50
|
CreateDepartmentInputSchema: () => CreateDepartmentInputSchema,
|
|
51
|
+
CreateDiaryCategoryInputSchema: () => CreateDiaryCategoryInputSchema,
|
|
52
|
+
CreateDiaryEntryInputSchema: () => CreateDiaryEntryInputSchema,
|
|
45
53
|
CreateGradeInputSchema: () => CreateGradeInputSchema,
|
|
54
|
+
CreateNotificationInputSchema: () => CreateNotificationInputSchema,
|
|
46
55
|
CreateStaffInputSchema: () => CreateStaffInputSchema,
|
|
47
56
|
CreateStaffOutputSchema: () => CreateStaffOutputSchema,
|
|
48
57
|
CreateStudentInputSchema: () => CreateStudentInputSchema,
|
|
@@ -51,6 +60,15 @@ __export(schemas_exports, {
|
|
|
51
60
|
CreateYearInputSchema: () => CreateYearInputSchema,
|
|
52
61
|
CuidSchema: () => CuidSchema,
|
|
53
62
|
DepartmentSchema: () => DepartmentSchema,
|
|
63
|
+
DiaryAcknowledgementSchema: () => DiaryAcknowledgementSchema,
|
|
64
|
+
DiaryBlockIdInputSchema: () => DiaryBlockIdInputSchema,
|
|
65
|
+
DiaryBlockSchema: () => DiaryBlockSchema,
|
|
66
|
+
DiaryCategorySchema: () => DiaryCategorySchema,
|
|
67
|
+
DiaryEntryDetailSchema: () => DiaryEntryDetailSchema,
|
|
68
|
+
DiaryEntryForGuardianSchema: () => DiaryEntryForGuardianSchema,
|
|
69
|
+
DiaryEntrySchema: () => DiaryEntrySchema,
|
|
70
|
+
DiaryEntryStatusSchema: () => DiaryEntryStatusSchema,
|
|
71
|
+
DiarySeveritySchema: () => DiarySeveritySchema,
|
|
54
72
|
EmploymentTypeSchema: () => EmploymentTypeSchema,
|
|
55
73
|
GRADE_LEVELS: () => GRADE_LEVELS,
|
|
56
74
|
GenderSchema: () => GenderSchema,
|
|
@@ -58,7 +76,13 @@ __export(schemas_exports, {
|
|
|
58
76
|
GetByStudentInputSchema: () => GetByStudentInputSchema,
|
|
59
77
|
GradeLevelSchema: () => GradeLevelSchema,
|
|
60
78
|
GradeSchema: () => GradeSchema,
|
|
79
|
+
KenyanBankSchema: () => KenyanBankSchema,
|
|
61
80
|
LinkGuardianInputSchema: () => LinkGuardianInputSchema,
|
|
81
|
+
ListBankAccountsInputSchema: () => ListBankAccountsInputSchema,
|
|
82
|
+
ListDeliveriesInputSchema: () => ListDeliveriesInputSchema,
|
|
83
|
+
ListDiaryAcknowledgementsInputSchema: () => ListDiaryAcknowledgementsInputSchema,
|
|
84
|
+
ListDiaryEntriesInputSchema: () => ListDiaryEntriesInputSchema,
|
|
85
|
+
ListNotificationTemplatesInputSchema: () => ListNotificationTemplatesInputSchema,
|
|
62
86
|
ListStaffInputSchema: () => ListStaffInputSchema,
|
|
63
87
|
ListStudentsInputSchema: () => ListStudentsInputSchema,
|
|
64
88
|
ListTermsInputSchema: () => ListTermsInputSchema,
|
|
@@ -67,11 +91,28 @@ __export(schemas_exports, {
|
|
|
67
91
|
LogoutInputSchema: () => LogoutInputSchema,
|
|
68
92
|
MarkAttendanceInputSchema: () => MarkAttendanceInputSchema,
|
|
69
93
|
MarkAttendanceOutputSchema: () => MarkAttendanceOutputSchema,
|
|
94
|
+
MyAcknowledgementSchema: () => MyAcknowledgementSchema,
|
|
95
|
+
NotificationAudienceItemSchema: () => NotificationAudienceItemSchema,
|
|
96
|
+
NotificationAudienceTypeSchema: () => NotificationAudienceTypeSchema,
|
|
97
|
+
NotificationChannelSchema: () => NotificationChannelSchema,
|
|
98
|
+
NotificationDeliverySchema: () => NotificationDeliverySchema,
|
|
99
|
+
NotificationResponseItemSchema: () => NotificationResponseItemSchema,
|
|
100
|
+
NotificationTemplateSchema: () => NotificationTemplateSchema,
|
|
101
|
+
NotificationTemplateStatusSchema: () => NotificationTemplateStatusSchema,
|
|
102
|
+
NotificationUrgencySchema: () => NotificationUrgencySchema,
|
|
70
103
|
PaginationInputSchema: () => PaginationInputSchema,
|
|
104
|
+
PortalBlockSchema: () => PortalBlockSchema,
|
|
105
|
+
PortalBlockTypeSchema: () => PortalBlockTypeSchema,
|
|
71
106
|
RefreshTokenInputSchema: () => RefreshTokenInputSchema,
|
|
72
107
|
RefreshTokenOutputSchema: () => RefreshTokenOutputSchema,
|
|
108
|
+
RejectNotificationInputSchema: () => RejectNotificationInputSchema,
|
|
73
109
|
RequestPasswordResetInputSchema: () => RequestPasswordResetInputSchema,
|
|
74
110
|
ResetPasswordInputSchema: () => ResetPasswordInputSchema,
|
|
111
|
+
RespondToBlockInputSchema: () => RespondToBlockInputSchema,
|
|
112
|
+
RespondToBlockOutputSchema: () => RespondToBlockOutputSchema,
|
|
113
|
+
RespondToDeliveryInputSchema: () => RespondToDeliveryInputSchema,
|
|
114
|
+
RespondToDiaryEntryInputSchema: () => RespondToDiaryEntryInputSchema,
|
|
115
|
+
ResponseSummarySchema: () => ResponseSummarySchema,
|
|
75
116
|
SessionUserOutputSchema: () => SessionUserOutputSchema,
|
|
76
117
|
SessionUserRoleSchema: () => SessionUserRoleSchema,
|
|
77
118
|
SessionUserSubRoleSchema: () => SessionUserSubRoleSchema,
|
|
@@ -87,6 +128,8 @@ __export(schemas_exports, {
|
|
|
87
128
|
SwitchBranchInputSchema: () => SwitchBranchInputSchema,
|
|
88
129
|
TermSchema: () => TermSchema,
|
|
89
130
|
TimestampsSchema: () => TimestampsSchema,
|
|
131
|
+
UpdateBankAccountInputSchema: () => UpdateBankAccountInputSchema,
|
|
132
|
+
UpdateDiaryCategoryInputSchema: () => UpdateDiaryCategoryInputSchema,
|
|
90
133
|
UuidSchema: () => UuidSchema,
|
|
91
134
|
paginatedOutputSchema: () => paginatedOutputSchema
|
|
92
135
|
});
|
|
@@ -590,8 +633,321 @@ var ListTermsInputSchema = z6.object({
|
|
|
590
633
|
yearId: z6.string().uuid().optional()
|
|
591
634
|
});
|
|
592
635
|
|
|
593
|
-
// src/schemas/
|
|
636
|
+
// src/schemas/banking.ts
|
|
594
637
|
var z7 = __toESM(require("zod"), 1);
|
|
638
|
+
var BankAccountTypeSchema = z7.enum(["current", "savings"]);
|
|
639
|
+
var BranchBankAccountSchema = z7.object({
|
|
640
|
+
id: UuidSchema,
|
|
641
|
+
branchId: UuidSchema,
|
|
642
|
+
bankName: z7.string(),
|
|
643
|
+
bankCode: z7.string().nullable(),
|
|
644
|
+
bankBranchName: z7.string().nullable(),
|
|
645
|
+
accountNumber: z7.string(),
|
|
646
|
+
accountName: z7.string(),
|
|
647
|
+
accountType: BankAccountTypeSchema,
|
|
648
|
+
currency: z7.string(),
|
|
649
|
+
isDefault: z7.boolean(),
|
|
650
|
+
isActive: z7.boolean(),
|
|
651
|
+
reconciliationContactId: UuidSchema.nullable(),
|
|
652
|
+
notes: z7.string().nullable(),
|
|
653
|
+
createdAt: z7.string(),
|
|
654
|
+
updatedAt: z7.string()
|
|
655
|
+
});
|
|
656
|
+
var CreateBankAccountInputSchema = z7.object({
|
|
657
|
+
branchId: UuidSchema,
|
|
658
|
+
bankName: z7.string().min(1).max(100),
|
|
659
|
+
bankCode: z7.string().max(10).optional(),
|
|
660
|
+
bankBranchName: z7.string().max(100).optional(),
|
|
661
|
+
accountNumber: z7.string().min(1).max(30),
|
|
662
|
+
accountName: z7.string().min(1).max(200),
|
|
663
|
+
accountType: BankAccountTypeSchema,
|
|
664
|
+
currency: z7.string().length(3).optional(),
|
|
665
|
+
isDefault: z7.boolean().optional(),
|
|
666
|
+
reconciliationContactId: UuidSchema.optional(),
|
|
667
|
+
notes: z7.string().optional()
|
|
668
|
+
});
|
|
669
|
+
var UpdateBankAccountInputSchema = z7.object({
|
|
670
|
+
id: UuidSchema,
|
|
671
|
+
bankName: z7.string().min(1).max(100).optional(),
|
|
672
|
+
bankCode: z7.string().max(10).optional(),
|
|
673
|
+
bankBranchName: z7.string().max(100).optional(),
|
|
674
|
+
accountNumber: z7.string().min(1).max(30).optional(),
|
|
675
|
+
accountName: z7.string().min(1).max(200).optional(),
|
|
676
|
+
accountType: BankAccountTypeSchema.optional(),
|
|
677
|
+
currency: z7.string().length(3).optional(),
|
|
678
|
+
reconciliationContactId: UuidSchema.optional(),
|
|
679
|
+
notes: z7.string().optional()
|
|
680
|
+
});
|
|
681
|
+
var ListBankAccountsInputSchema = z7.object({
|
|
682
|
+
branchId: UuidSchema.optional()
|
|
683
|
+
});
|
|
684
|
+
var KenyanBankSchema = z7.object({
|
|
685
|
+
id: UuidSchema,
|
|
686
|
+
name: z7.string(),
|
|
687
|
+
code: z7.string(),
|
|
688
|
+
isActive: z7.boolean(),
|
|
689
|
+
createdAt: z7.string()
|
|
690
|
+
});
|
|
691
|
+
|
|
692
|
+
// src/schemas/notifications.ts
|
|
693
|
+
var z8 = __toESM(require("zod"), 1);
|
|
694
|
+
var NotificationUrgencySchema = z8.enum(["critical", "urgent", "important", "info"]);
|
|
695
|
+
var NotificationTemplateStatusSchema = z8.enum([
|
|
696
|
+
"draft",
|
|
697
|
+
"pending_approval",
|
|
698
|
+
"approved",
|
|
699
|
+
"scheduled",
|
|
700
|
+
"sent",
|
|
701
|
+
"cancelled",
|
|
702
|
+
"recurring_active"
|
|
703
|
+
]);
|
|
704
|
+
var NotificationAudienceTypeSchema = z8.enum([
|
|
705
|
+
"all_branches",
|
|
706
|
+
"branch",
|
|
707
|
+
"grade",
|
|
708
|
+
"class",
|
|
709
|
+
"role",
|
|
710
|
+
"individual"
|
|
711
|
+
]);
|
|
712
|
+
var NotificationChannelSchema = z8.enum(["in_app", "sms", "email", "push"]);
|
|
713
|
+
var PortalBlockTypeSchema = z8.enum(["diary", "notification", "fee", "custom"]);
|
|
714
|
+
var NotificationAudienceItemSchema = z8.object({
|
|
715
|
+
audienceType: NotificationAudienceTypeSchema,
|
|
716
|
+
audienceId: z8.string()
|
|
717
|
+
});
|
|
718
|
+
var CreateNotificationInputSchema = z8.object({
|
|
719
|
+
branchId: UuidSchema.optional(),
|
|
720
|
+
title: z8.string().min(1).max(200),
|
|
721
|
+
body: z8.string().min(1),
|
|
722
|
+
urgency: NotificationUrgencySchema,
|
|
723
|
+
isBlocking: z8.boolean().optional(),
|
|
724
|
+
deadlineHours: z8.number().int().positive().optional(),
|
|
725
|
+
redirectPath: z8.string().max(500).optional(),
|
|
726
|
+
redirectParams: z8.record(z8.string(), z8.string()).optional(),
|
|
727
|
+
requiresResponse: z8.boolean().optional(),
|
|
728
|
+
responseOptions: z8.array(z8.string()).optional(),
|
|
729
|
+
// Deliberately narrower than NotificationChannelSchema (excludes
|
|
730
|
+
// 'push') — matches the router's original inline restriction and
|
|
731
|
+
// NotificationsService's Channel type; 'push' exists in the DB enum
|
|
732
|
+
// but isn't yet wired end-to-end for template creation.
|
|
733
|
+
deliveryChannels: z8.array(z8.enum(["in_app", "sms", "email"])).optional(),
|
|
734
|
+
scheduledAt: z8.string().datetime().optional(),
|
|
735
|
+
recurrence: z8.record(z8.string(), z8.unknown()).optional(),
|
|
736
|
+
audience: z8.array(NotificationAudienceItemSchema)
|
|
737
|
+
});
|
|
738
|
+
var ListNotificationTemplatesInputSchema = z8.object({
|
|
739
|
+
status: z8.string().optional(),
|
|
740
|
+
branchId: UuidSchema.optional()
|
|
741
|
+
});
|
|
742
|
+
var NotificationTemplateSchema = z8.object({
|
|
743
|
+
id: UuidSchema,
|
|
744
|
+
branchId: UuidSchema.nullable(),
|
|
745
|
+
title: z8.string(),
|
|
746
|
+
body: z8.string(),
|
|
747
|
+
urgency: NotificationUrgencySchema,
|
|
748
|
+
isBlocking: z8.boolean(),
|
|
749
|
+
deadlineHours: z8.number().nullable(),
|
|
750
|
+
redirectPath: z8.string().nullable(),
|
|
751
|
+
redirectParams: z8.record(z8.string(), z8.string()).nullable(),
|
|
752
|
+
requiresResponse: z8.boolean(),
|
|
753
|
+
responseOptions: z8.array(z8.string()).nullable(),
|
|
754
|
+
deliveryChannels: z8.array(NotificationChannelSchema),
|
|
755
|
+
scheduledAt: z8.string().nullable(),
|
|
756
|
+
recurrence: z8.record(z8.string(), z8.unknown()).nullable(),
|
|
757
|
+
lastFiredAt: z8.string().nullable(),
|
|
758
|
+
nextFireAt: z8.string().nullable(),
|
|
759
|
+
status: NotificationTemplateStatusSchema,
|
|
760
|
+
createdBy: UuidSchema,
|
|
761
|
+
approvedBy: UuidSchema.nullable(),
|
|
762
|
+
approvedAt: z8.string().nullable(),
|
|
763
|
+
sentAt: z8.string().nullable(),
|
|
764
|
+
createdAt: z8.string(),
|
|
765
|
+
updatedAt: z8.string()
|
|
766
|
+
});
|
|
767
|
+
var RejectNotificationInputSchema = z8.object({
|
|
768
|
+
id: UuidSchema,
|
|
769
|
+
reason: z8.string().optional()
|
|
770
|
+
});
|
|
771
|
+
var ListDeliveriesInputSchema = z8.object({
|
|
772
|
+
isRead: z8.boolean().optional(),
|
|
773
|
+
isBlocking: z8.boolean().optional()
|
|
774
|
+
});
|
|
775
|
+
var NotificationDeliverySchema = z8.object({
|
|
776
|
+
id: UuidSchema,
|
|
777
|
+
notificationId: UuidSchema,
|
|
778
|
+
userId: UuidSchema,
|
|
779
|
+
channel: NotificationChannelSchema,
|
|
780
|
+
deliveredAt: z8.string().nullable(),
|
|
781
|
+
readAt: z8.string().nullable(),
|
|
782
|
+
isRead: z8.boolean(),
|
|
783
|
+
markedUnreadAt: z8.string().nullable(),
|
|
784
|
+
acknowledgedAt: z8.string().nullable(),
|
|
785
|
+
response: z8.string().nullable(),
|
|
786
|
+
isBlocking: z8.boolean(),
|
|
787
|
+
isResolved: z8.boolean(),
|
|
788
|
+
resolvedAt: z8.string().nullable(),
|
|
789
|
+
returnPath: z8.string().nullable(),
|
|
790
|
+
createdAt: z8.string()
|
|
791
|
+
});
|
|
792
|
+
var AcknowledgeDeliveryInputSchema = z8.object({
|
|
793
|
+
deliveryId: UuidSchema,
|
|
794
|
+
response: z8.string().optional()
|
|
795
|
+
});
|
|
796
|
+
var RespondToDeliveryInputSchema = z8.object({
|
|
797
|
+
deliveryId: UuidSchema,
|
|
798
|
+
response: z8.string().min(1)
|
|
799
|
+
});
|
|
800
|
+
var ResponseSummarySchema = z8.record(z8.string(), z8.number());
|
|
801
|
+
var NotificationResponseItemSchema = z8.object({
|
|
802
|
+
deliveryId: UuidSchema,
|
|
803
|
+
userId: UuidSchema,
|
|
804
|
+
userName: z8.string(),
|
|
805
|
+
userEmail: z8.string(),
|
|
806
|
+
response: z8.string().nullable(),
|
|
807
|
+
acknowledgedAt: z8.string().nullable(),
|
|
808
|
+
isResolved: z8.boolean()
|
|
809
|
+
});
|
|
810
|
+
var PortalBlockSchema = z8.object({
|
|
811
|
+
id: UuidSchema,
|
|
812
|
+
userId: UuidSchema,
|
|
813
|
+
blockType: PortalBlockTypeSchema,
|
|
814
|
+
sourceId: UuidSchema,
|
|
815
|
+
redirectPath: z8.string(),
|
|
816
|
+
redirectParams: z8.record(z8.string(), z8.string()).nullable(),
|
|
817
|
+
returnPath: z8.string().nullable(),
|
|
818
|
+
severity: NotificationUrgencySchema,
|
|
819
|
+
isActive: z8.boolean(),
|
|
820
|
+
activatedAt: z8.string(),
|
|
821
|
+
resolvedAt: z8.string().nullable(),
|
|
822
|
+
resolvedBy: UuidSchema.nullable(),
|
|
823
|
+
resolvedVia: z8.string().nullable(),
|
|
824
|
+
requiresResponse: z8.boolean(),
|
|
825
|
+
responseOptions: z8.array(z8.string()).nullable(),
|
|
826
|
+
createdAt: z8.string()
|
|
827
|
+
});
|
|
828
|
+
var RespondToBlockInputSchema = z8.object({
|
|
829
|
+
blockId: UuidSchema,
|
|
830
|
+
response: z8.string().min(1)
|
|
831
|
+
});
|
|
832
|
+
var RespondToBlockOutputSchema = z8.unknown();
|
|
833
|
+
|
|
834
|
+
// src/schemas/diary.ts
|
|
835
|
+
var z9 = __toESM(require("zod"), 1);
|
|
836
|
+
var DiarySeveritySchema = z9.enum(["info", "moderate", "serious", "critical"]);
|
|
837
|
+
var DiaryEntryStatusSchema = z9.enum(["active", "resolved", "lifted"]);
|
|
838
|
+
var BlockResolutionMethodSchema = z9.enum(["guardian_acknowledge", "staff_lift"]);
|
|
839
|
+
var DiaryCategorySchema = z9.object({
|
|
840
|
+
id: UuidSchema,
|
|
841
|
+
branchId: UuidSchema,
|
|
842
|
+
name: z9.string(),
|
|
843
|
+
description: z9.string().nullable(),
|
|
844
|
+
isActive: z9.boolean(),
|
|
845
|
+
createdBy: UuidSchema.nullable(),
|
|
846
|
+
createdAt: z9.string()
|
|
847
|
+
});
|
|
848
|
+
var CreateDiaryCategoryInputSchema = z9.object({
|
|
849
|
+
name: z9.string().min(1).max(100),
|
|
850
|
+
description: z9.string().optional()
|
|
851
|
+
});
|
|
852
|
+
var UpdateDiaryCategoryInputSchema = z9.object({
|
|
853
|
+
id: UuidSchema,
|
|
854
|
+
name: z9.string().min(1).max(100).optional(),
|
|
855
|
+
description: z9.string().optional(),
|
|
856
|
+
isActive: z9.boolean().optional()
|
|
857
|
+
});
|
|
858
|
+
var ListDiaryEntriesInputSchema = z9.object({
|
|
859
|
+
classId: UuidSchema.optional(),
|
|
860
|
+
studentId: UuidSchema.optional(),
|
|
861
|
+
postedBy: UuidSchema.optional()
|
|
862
|
+
});
|
|
863
|
+
var DiaryEntrySchema = z9.object({
|
|
864
|
+
id: UuidSchema,
|
|
865
|
+
branchId: UuidSchema,
|
|
866
|
+
classId: UuidSchema,
|
|
867
|
+
studentId: UuidSchema.nullable(),
|
|
868
|
+
postedBy: UuidSchema,
|
|
869
|
+
categoryId: UuidSchema,
|
|
870
|
+
title: z9.string(),
|
|
871
|
+
body: z9.string(),
|
|
872
|
+
severity: DiarySeveritySchema,
|
|
873
|
+
requiresResponse: z9.boolean(),
|
|
874
|
+
responseDeadlineDays: z9.number(),
|
|
875
|
+
isBlockingPortal: z9.boolean(),
|
|
876
|
+
isBlockingReportCard: z9.boolean(),
|
|
877
|
+
status: DiaryEntryStatusSchema,
|
|
878
|
+
resolvedAt: z9.string().nullable(),
|
|
879
|
+
resolvedBy: UuidSchema.nullable(),
|
|
880
|
+
liftApprovedBy: UuidSchema.nullable(),
|
|
881
|
+
liftApprovedAt: z9.string().nullable(),
|
|
882
|
+
createdAt: z9.string(),
|
|
883
|
+
updatedAt: z9.string()
|
|
884
|
+
});
|
|
885
|
+
var CreateDiaryEntryInputSchema = z9.object({
|
|
886
|
+
classId: UuidSchema,
|
|
887
|
+
studentId: UuidSchema.optional(),
|
|
888
|
+
categoryId: UuidSchema,
|
|
889
|
+
title: z9.string().min(1).max(200),
|
|
890
|
+
body: z9.string().min(1),
|
|
891
|
+
severity: DiarySeveritySchema,
|
|
892
|
+
requiresResponse: z9.boolean().optional(),
|
|
893
|
+
responseDeadlineDays: z9.number().int().positive().optional(),
|
|
894
|
+
isBlockingPortal: z9.boolean().optional(),
|
|
895
|
+
isBlockingReportCard: z9.boolean().optional()
|
|
896
|
+
});
|
|
897
|
+
var DiaryAcknowledgementSchema = z9.object({
|
|
898
|
+
id: UuidSchema,
|
|
899
|
+
entryId: UuidSchema,
|
|
900
|
+
guardianId: UuidSchema,
|
|
901
|
+
studentId: UuidSchema,
|
|
902
|
+
acknowledgedAt: z9.string().nullable(),
|
|
903
|
+
response: z9.string().nullable(),
|
|
904
|
+
isAcknowledged: z9.boolean(),
|
|
905
|
+
createdAt: z9.string()
|
|
906
|
+
});
|
|
907
|
+
var DiaryBlockSchema = z9.object({
|
|
908
|
+
id: UuidSchema,
|
|
909
|
+
entryId: UuidSchema,
|
|
910
|
+
guardianId: UuidSchema,
|
|
911
|
+
studentId: UuidSchema,
|
|
912
|
+
blockedAt: z9.string(),
|
|
913
|
+
resolvedAt: z9.string().nullable(),
|
|
914
|
+
resolvedBy: UuidSchema.nullable(),
|
|
915
|
+
resolvedVia: BlockResolutionMethodSchema.nullable(),
|
|
916
|
+
liftApprovedBy: UuidSchema.nullable(),
|
|
917
|
+
liftApprovedAt: z9.string().nullable(),
|
|
918
|
+
isActive: z9.boolean(),
|
|
919
|
+
createdAt: z9.string()
|
|
920
|
+
});
|
|
921
|
+
var MyAcknowledgementSchema = z9.object({
|
|
922
|
+
isAcknowledged: z9.boolean(),
|
|
923
|
+
response: z9.string().nullable()
|
|
924
|
+
});
|
|
925
|
+
var DiaryEntryDetailSchema = DiaryEntrySchema.extend({
|
|
926
|
+
acknowledgements: z9.array(DiaryAcknowledgementSchema),
|
|
927
|
+
blocks: z9.array(DiaryBlockSchema),
|
|
928
|
+
myAcknowledgement: MyAcknowledgementSchema.nullable()
|
|
929
|
+
});
|
|
930
|
+
var DiaryEntryForGuardianSchema = DiaryEntrySchema.extend({
|
|
931
|
+
myAcknowledgement: MyAcknowledgementSchema.nullable()
|
|
932
|
+
});
|
|
933
|
+
var AcknowledgeDiaryEntryInputSchema = z9.object({
|
|
934
|
+
entryId: UuidSchema,
|
|
935
|
+
studentId: UuidSchema
|
|
936
|
+
});
|
|
937
|
+
var RespondToDiaryEntryInputSchema = z9.object({
|
|
938
|
+
entryId: UuidSchema,
|
|
939
|
+
studentId: UuidSchema,
|
|
940
|
+
response: z9.string().min(1)
|
|
941
|
+
});
|
|
942
|
+
var DiaryBlockIdInputSchema = z9.object({
|
|
943
|
+
blockId: UuidSchema
|
|
944
|
+
});
|
|
945
|
+
var ListDiaryAcknowledgementsInputSchema = z9.object({
|
|
946
|
+
entryId: UuidSchema
|
|
947
|
+
});
|
|
948
|
+
|
|
949
|
+
// src/schemas/grades.ts
|
|
950
|
+
var z10 = __toESM(require("zod"), 1);
|
|
595
951
|
var GRADE_LEVELS = [
|
|
596
952
|
"PP1",
|
|
597
953
|
"PP2",
|
|
@@ -605,24 +961,29 @@ var GRADE_LEVELS = [
|
|
|
605
961
|
"G8",
|
|
606
962
|
"G9"
|
|
607
963
|
];
|
|
608
|
-
var GradeSchema =
|
|
609
|
-
id:
|
|
610
|
-
branchId:
|
|
611
|
-
name:
|
|
964
|
+
var GradeSchema = z10.object({
|
|
965
|
+
id: z10.string().uuid(),
|
|
966
|
+
branchId: z10.string().uuid(),
|
|
967
|
+
name: z10.string(),
|
|
612
968
|
level: GradeLevelSchema,
|
|
613
|
-
description:
|
|
969
|
+
description: z10.string().nullable()
|
|
614
970
|
});
|
|
615
|
-
var CreateGradeInputSchema =
|
|
616
|
-
name:
|
|
971
|
+
var CreateGradeInputSchema = z10.object({
|
|
972
|
+
name: z10.string().min(1).max(50),
|
|
617
973
|
level: GradeLevelSchema,
|
|
618
|
-
description:
|
|
974
|
+
description: z10.string().max(300).optional()
|
|
619
975
|
});
|
|
620
976
|
// Annotate the CommonJS export names for ESM import in node:
|
|
621
977
|
0 && (module.exports = {
|
|
622
978
|
AcademicTermSchema,
|
|
623
979
|
AcademicYearSchema,
|
|
980
|
+
AcknowledgeDeliveryInputSchema,
|
|
981
|
+
AcknowledgeDiaryEntryInputSchema,
|
|
624
982
|
AttendanceRecordInputSchema,
|
|
625
983
|
AttendanceStatusSchema,
|
|
984
|
+
BankAccountTypeSchema,
|
|
985
|
+
BlockResolutionMethodSchema,
|
|
986
|
+
BranchBankAccountSchema,
|
|
626
987
|
BranchRefSchema,
|
|
627
988
|
BulkUploadStudentRowSchema,
|
|
628
989
|
BulkUploadStudentsInputSchema,
|
|
@@ -630,8 +991,12 @@ var CreateGradeInputSchema = z7.object({
|
|
|
630
991
|
ChangePasswordInputSchema,
|
|
631
992
|
ClassAttendanceRowSchema,
|
|
632
993
|
ClassSummarySchema,
|
|
994
|
+
CreateBankAccountInputSchema,
|
|
633
995
|
CreateDepartmentInputSchema,
|
|
996
|
+
CreateDiaryCategoryInputSchema,
|
|
997
|
+
CreateDiaryEntryInputSchema,
|
|
634
998
|
CreateGradeInputSchema,
|
|
999
|
+
CreateNotificationInputSchema,
|
|
635
1000
|
CreateStaffInputSchema,
|
|
636
1001
|
CreateStaffOutputSchema,
|
|
637
1002
|
CreateStudentInputSchema,
|
|
@@ -640,6 +1005,15 @@ var CreateGradeInputSchema = z7.object({
|
|
|
640
1005
|
CreateYearInputSchema,
|
|
641
1006
|
CuidSchema,
|
|
642
1007
|
DepartmentSchema,
|
|
1008
|
+
DiaryAcknowledgementSchema,
|
|
1009
|
+
DiaryBlockIdInputSchema,
|
|
1010
|
+
DiaryBlockSchema,
|
|
1011
|
+
DiaryCategorySchema,
|
|
1012
|
+
DiaryEntryDetailSchema,
|
|
1013
|
+
DiaryEntryForGuardianSchema,
|
|
1014
|
+
DiaryEntrySchema,
|
|
1015
|
+
DiaryEntryStatusSchema,
|
|
1016
|
+
DiarySeveritySchema,
|
|
643
1017
|
EmploymentTypeSchema,
|
|
644
1018
|
GRADE_LEVELS,
|
|
645
1019
|
GenderSchema,
|
|
@@ -647,7 +1021,13 @@ var CreateGradeInputSchema = z7.object({
|
|
|
647
1021
|
GetByStudentInputSchema,
|
|
648
1022
|
GradeLevelSchema,
|
|
649
1023
|
GradeSchema,
|
|
1024
|
+
KenyanBankSchema,
|
|
650
1025
|
LinkGuardianInputSchema,
|
|
1026
|
+
ListBankAccountsInputSchema,
|
|
1027
|
+
ListDeliveriesInputSchema,
|
|
1028
|
+
ListDiaryAcknowledgementsInputSchema,
|
|
1029
|
+
ListDiaryEntriesInputSchema,
|
|
1030
|
+
ListNotificationTemplatesInputSchema,
|
|
651
1031
|
ListStaffInputSchema,
|
|
652
1032
|
ListStudentsInputSchema,
|
|
653
1033
|
ListTermsInputSchema,
|
|
@@ -656,11 +1036,28 @@ var CreateGradeInputSchema = z7.object({
|
|
|
656
1036
|
LogoutInputSchema,
|
|
657
1037
|
MarkAttendanceInputSchema,
|
|
658
1038
|
MarkAttendanceOutputSchema,
|
|
1039
|
+
MyAcknowledgementSchema,
|
|
1040
|
+
NotificationAudienceItemSchema,
|
|
1041
|
+
NotificationAudienceTypeSchema,
|
|
1042
|
+
NotificationChannelSchema,
|
|
1043
|
+
NotificationDeliverySchema,
|
|
1044
|
+
NotificationResponseItemSchema,
|
|
1045
|
+
NotificationTemplateSchema,
|
|
1046
|
+
NotificationTemplateStatusSchema,
|
|
1047
|
+
NotificationUrgencySchema,
|
|
659
1048
|
PaginationInputSchema,
|
|
1049
|
+
PortalBlockSchema,
|
|
1050
|
+
PortalBlockTypeSchema,
|
|
660
1051
|
RefreshTokenInputSchema,
|
|
661
1052
|
RefreshTokenOutputSchema,
|
|
1053
|
+
RejectNotificationInputSchema,
|
|
662
1054
|
RequestPasswordResetInputSchema,
|
|
663
1055
|
ResetPasswordInputSchema,
|
|
1056
|
+
RespondToBlockInputSchema,
|
|
1057
|
+
RespondToBlockOutputSchema,
|
|
1058
|
+
RespondToDeliveryInputSchema,
|
|
1059
|
+
RespondToDiaryEntryInputSchema,
|
|
1060
|
+
ResponseSummarySchema,
|
|
664
1061
|
SessionUserOutputSchema,
|
|
665
1062
|
SessionUserRoleSchema,
|
|
666
1063
|
SessionUserSubRoleSchema,
|
|
@@ -676,6 +1073,8 @@ var CreateGradeInputSchema = z7.object({
|
|
|
676
1073
|
SwitchBranchInputSchema,
|
|
677
1074
|
TermSchema,
|
|
678
1075
|
TimestampsSchema,
|
|
1076
|
+
UpdateBankAccountInputSchema,
|
|
1077
|
+
UpdateDiaryCategoryInputSchema,
|
|
679
1078
|
UuidSchema,
|
|
680
1079
|
paginatedOutputSchema
|
|
681
1080
|
});
|