@brite-future-schools-contracts/contracts 2.0.26 → 2.0.30
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-LIPNVYGK.js +374 -0
- package/dist/chunk-LIPNVYGK.js.map +1 -0
- package/dist/chunk-W3NAS6DL.js +1 -0
- package/dist/{chunk-CL7UHAQE.js → chunk-WGPI4GGP.js} +362 -10
- package/dist/chunk-WGPI4GGP.js.map +1 -0
- package/dist/contracts/index.cjs +494 -0
- package/dist/contracts/index.cjs.map +1 -1
- package/dist/contracts/index.d.cts +2084 -1
- package/dist/contracts/index.d.ts +2084 -1
- package/dist/contracts/index.js +84 -2
- package/dist/index.cjs +613 -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 +404 -9
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +545 -1
- package/dist/schemas/index.d.ts +545 -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,317 @@ 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
|
+
deliveryChannels: z8.array(NotificationChannelSchema).optional(),
|
|
730
|
+
scheduledAt: z8.string().datetime().optional(),
|
|
731
|
+
recurrence: z8.record(z8.string(), z8.unknown()).optional(),
|
|
732
|
+
audience: z8.array(NotificationAudienceItemSchema)
|
|
733
|
+
});
|
|
734
|
+
var ListNotificationTemplatesInputSchema = z8.object({
|
|
735
|
+
status: z8.string().optional(),
|
|
736
|
+
branchId: UuidSchema.optional()
|
|
737
|
+
});
|
|
738
|
+
var NotificationTemplateSchema = z8.object({
|
|
739
|
+
id: UuidSchema,
|
|
740
|
+
branchId: UuidSchema.nullable(),
|
|
741
|
+
title: z8.string(),
|
|
742
|
+
body: z8.string(),
|
|
743
|
+
urgency: NotificationUrgencySchema,
|
|
744
|
+
isBlocking: z8.boolean(),
|
|
745
|
+
deadlineHours: z8.number().nullable(),
|
|
746
|
+
redirectPath: z8.string().nullable(),
|
|
747
|
+
redirectParams: z8.record(z8.string(), z8.string()).nullable(),
|
|
748
|
+
requiresResponse: z8.boolean(),
|
|
749
|
+
responseOptions: z8.array(z8.string()).nullable(),
|
|
750
|
+
deliveryChannels: z8.array(NotificationChannelSchema),
|
|
751
|
+
scheduledAt: z8.string().nullable(),
|
|
752
|
+
recurrence: z8.record(z8.string(), z8.unknown()).nullable(),
|
|
753
|
+
lastFiredAt: z8.string().nullable(),
|
|
754
|
+
nextFireAt: z8.string().nullable(),
|
|
755
|
+
status: NotificationTemplateStatusSchema,
|
|
756
|
+
createdBy: UuidSchema,
|
|
757
|
+
approvedBy: UuidSchema.nullable(),
|
|
758
|
+
approvedAt: z8.string().nullable(),
|
|
759
|
+
sentAt: z8.string().nullable(),
|
|
760
|
+
createdAt: z8.string(),
|
|
761
|
+
updatedAt: z8.string()
|
|
762
|
+
});
|
|
763
|
+
var RejectNotificationInputSchema = z8.object({
|
|
764
|
+
id: UuidSchema,
|
|
765
|
+
reason: z8.string().optional()
|
|
766
|
+
});
|
|
767
|
+
var ListDeliveriesInputSchema = z8.object({
|
|
768
|
+
isRead: z8.boolean().optional(),
|
|
769
|
+
isBlocking: z8.boolean().optional()
|
|
770
|
+
});
|
|
771
|
+
var NotificationDeliverySchema = z8.object({
|
|
772
|
+
id: UuidSchema,
|
|
773
|
+
notificationId: UuidSchema,
|
|
774
|
+
userId: UuidSchema,
|
|
775
|
+
channel: NotificationChannelSchema,
|
|
776
|
+
deliveredAt: z8.string().nullable(),
|
|
777
|
+
readAt: z8.string().nullable(),
|
|
778
|
+
isRead: z8.boolean(),
|
|
779
|
+
markedUnreadAt: z8.string().nullable(),
|
|
780
|
+
acknowledgedAt: z8.string().nullable(),
|
|
781
|
+
response: z8.string().nullable(),
|
|
782
|
+
isBlocking: z8.boolean(),
|
|
783
|
+
isResolved: z8.boolean(),
|
|
784
|
+
resolvedAt: z8.string().nullable(),
|
|
785
|
+
returnPath: z8.string().nullable(),
|
|
786
|
+
createdAt: z8.string()
|
|
787
|
+
});
|
|
788
|
+
var AcknowledgeDeliveryInputSchema = z8.object({
|
|
789
|
+
deliveryId: UuidSchema,
|
|
790
|
+
response: z8.string().optional()
|
|
791
|
+
});
|
|
792
|
+
var RespondToDeliveryInputSchema = z8.object({
|
|
793
|
+
deliveryId: UuidSchema,
|
|
794
|
+
response: z8.string().min(1)
|
|
795
|
+
});
|
|
796
|
+
var ResponseSummarySchema = z8.record(z8.string(), z8.number());
|
|
797
|
+
var NotificationResponseItemSchema = z8.object({
|
|
798
|
+
deliveryId: UuidSchema,
|
|
799
|
+
userId: UuidSchema,
|
|
800
|
+
userName: z8.string(),
|
|
801
|
+
userEmail: z8.string(),
|
|
802
|
+
response: z8.string().nullable(),
|
|
803
|
+
acknowledgedAt: z8.string().nullable(),
|
|
804
|
+
isResolved: z8.boolean()
|
|
805
|
+
});
|
|
806
|
+
var PortalBlockSchema = z8.object({
|
|
807
|
+
id: UuidSchema,
|
|
808
|
+
userId: UuidSchema,
|
|
809
|
+
blockType: PortalBlockTypeSchema,
|
|
810
|
+
sourceId: UuidSchema,
|
|
811
|
+
redirectPath: z8.string(),
|
|
812
|
+
redirectParams: z8.record(z8.string(), z8.string()).nullable(),
|
|
813
|
+
returnPath: z8.string().nullable(),
|
|
814
|
+
severity: NotificationUrgencySchema,
|
|
815
|
+
isActive: z8.boolean(),
|
|
816
|
+
activatedAt: z8.string(),
|
|
817
|
+
resolvedAt: z8.string().nullable(),
|
|
818
|
+
resolvedBy: UuidSchema.nullable(),
|
|
819
|
+
resolvedVia: z8.string().nullable(),
|
|
820
|
+
requiresResponse: z8.boolean(),
|
|
821
|
+
responseOptions: z8.array(z8.string()).nullable(),
|
|
822
|
+
createdAt: z8.string()
|
|
823
|
+
});
|
|
824
|
+
var RespondToBlockInputSchema = z8.object({
|
|
825
|
+
blockId: UuidSchema,
|
|
826
|
+
response: z8.string().min(1)
|
|
827
|
+
});
|
|
828
|
+
var RespondToBlockOutputSchema = z8.unknown();
|
|
829
|
+
|
|
830
|
+
// src/schemas/diary.ts
|
|
831
|
+
var z9 = __toESM(require("zod"), 1);
|
|
832
|
+
var DiarySeveritySchema = z9.enum(["info", "moderate", "serious", "critical"]);
|
|
833
|
+
var DiaryEntryStatusSchema = z9.enum(["active", "resolved", "lifted"]);
|
|
834
|
+
var BlockResolutionMethodSchema = z9.enum(["guardian_acknowledge", "staff_lift"]);
|
|
835
|
+
var DiaryCategorySchema = z9.object({
|
|
836
|
+
id: UuidSchema,
|
|
837
|
+
branchId: UuidSchema,
|
|
838
|
+
name: z9.string(),
|
|
839
|
+
description: z9.string().nullable(),
|
|
840
|
+
isActive: z9.boolean(),
|
|
841
|
+
createdBy: UuidSchema.nullable(),
|
|
842
|
+
createdAt: z9.string()
|
|
843
|
+
});
|
|
844
|
+
var CreateDiaryCategoryInputSchema = z9.object({
|
|
845
|
+
name: z9.string().min(1).max(100),
|
|
846
|
+
description: z9.string().optional()
|
|
847
|
+
});
|
|
848
|
+
var UpdateDiaryCategoryInputSchema = z9.object({
|
|
849
|
+
id: UuidSchema,
|
|
850
|
+
name: z9.string().min(1).max(100).optional(),
|
|
851
|
+
description: z9.string().optional(),
|
|
852
|
+
isActive: z9.boolean().optional()
|
|
853
|
+
});
|
|
854
|
+
var ListDiaryEntriesInputSchema = z9.object({
|
|
855
|
+
classId: UuidSchema.optional(),
|
|
856
|
+
studentId: UuidSchema.optional(),
|
|
857
|
+
postedBy: UuidSchema.optional()
|
|
858
|
+
});
|
|
859
|
+
var DiaryEntrySchema = z9.object({
|
|
860
|
+
id: UuidSchema,
|
|
861
|
+
branchId: UuidSchema,
|
|
862
|
+
classId: UuidSchema,
|
|
863
|
+
studentId: UuidSchema.nullable(),
|
|
864
|
+
postedBy: UuidSchema,
|
|
865
|
+
categoryId: UuidSchema,
|
|
866
|
+
title: z9.string(),
|
|
867
|
+
body: z9.string(),
|
|
868
|
+
severity: DiarySeveritySchema,
|
|
869
|
+
requiresResponse: z9.boolean(),
|
|
870
|
+
responseDeadlineDays: z9.number(),
|
|
871
|
+
isBlockingPortal: z9.boolean(),
|
|
872
|
+
isBlockingReportCard: z9.boolean(),
|
|
873
|
+
status: DiaryEntryStatusSchema,
|
|
874
|
+
resolvedAt: z9.string().nullable(),
|
|
875
|
+
resolvedBy: UuidSchema.nullable(),
|
|
876
|
+
liftApprovedBy: UuidSchema.nullable(),
|
|
877
|
+
liftApprovedAt: z9.string().nullable(),
|
|
878
|
+
createdAt: z9.string(),
|
|
879
|
+
updatedAt: z9.string()
|
|
880
|
+
});
|
|
881
|
+
var CreateDiaryEntryInputSchema = z9.object({
|
|
882
|
+
classId: UuidSchema,
|
|
883
|
+
studentId: UuidSchema.optional(),
|
|
884
|
+
categoryId: UuidSchema,
|
|
885
|
+
title: z9.string().min(1).max(200),
|
|
886
|
+
body: z9.string().min(1),
|
|
887
|
+
severity: DiarySeveritySchema,
|
|
888
|
+
requiresResponse: z9.boolean().optional(),
|
|
889
|
+
responseDeadlineDays: z9.number().int().positive().optional(),
|
|
890
|
+
isBlockingPortal: z9.boolean().optional(),
|
|
891
|
+
isBlockingReportCard: z9.boolean().optional()
|
|
892
|
+
});
|
|
893
|
+
var DiaryAcknowledgementSchema = z9.object({
|
|
894
|
+
id: UuidSchema,
|
|
895
|
+
entryId: UuidSchema,
|
|
896
|
+
guardianId: UuidSchema,
|
|
897
|
+
studentId: UuidSchema,
|
|
898
|
+
acknowledgedAt: z9.string().nullable(),
|
|
899
|
+
response: z9.string().nullable(),
|
|
900
|
+
isAcknowledged: z9.boolean(),
|
|
901
|
+
createdAt: z9.string()
|
|
902
|
+
});
|
|
903
|
+
var DiaryBlockSchema = z9.object({
|
|
904
|
+
id: UuidSchema,
|
|
905
|
+
entryId: UuidSchema,
|
|
906
|
+
guardianId: UuidSchema,
|
|
907
|
+
studentId: UuidSchema,
|
|
908
|
+
blockedAt: z9.string(),
|
|
909
|
+
resolvedAt: z9.string().nullable(),
|
|
910
|
+
resolvedBy: UuidSchema.nullable(),
|
|
911
|
+
resolvedVia: BlockResolutionMethodSchema.nullable(),
|
|
912
|
+
liftApprovedBy: UuidSchema.nullable(),
|
|
913
|
+
liftApprovedAt: z9.string().nullable(),
|
|
914
|
+
isActive: z9.boolean(),
|
|
915
|
+
createdAt: z9.string()
|
|
916
|
+
});
|
|
917
|
+
var MyAcknowledgementSchema = z9.object({
|
|
918
|
+
isAcknowledged: z9.boolean(),
|
|
919
|
+
response: z9.string().nullable()
|
|
920
|
+
});
|
|
921
|
+
var DiaryEntryDetailSchema = DiaryEntrySchema.extend({
|
|
922
|
+
acknowledgements: z9.array(DiaryAcknowledgementSchema),
|
|
923
|
+
blocks: z9.array(DiaryBlockSchema),
|
|
924
|
+
myAcknowledgement: MyAcknowledgementSchema.nullable()
|
|
925
|
+
});
|
|
926
|
+
var DiaryEntryForGuardianSchema = DiaryEntrySchema.extend({
|
|
927
|
+
myAcknowledgement: MyAcknowledgementSchema.nullable()
|
|
928
|
+
});
|
|
929
|
+
var AcknowledgeDiaryEntryInputSchema = z9.object({
|
|
930
|
+
entryId: UuidSchema,
|
|
931
|
+
studentId: UuidSchema
|
|
932
|
+
});
|
|
933
|
+
var RespondToDiaryEntryInputSchema = z9.object({
|
|
934
|
+
entryId: UuidSchema,
|
|
935
|
+
studentId: UuidSchema,
|
|
936
|
+
response: z9.string().min(1)
|
|
937
|
+
});
|
|
938
|
+
var DiaryBlockIdInputSchema = z9.object({
|
|
939
|
+
blockId: UuidSchema
|
|
940
|
+
});
|
|
941
|
+
var ListDiaryAcknowledgementsInputSchema = z9.object({
|
|
942
|
+
entryId: UuidSchema
|
|
943
|
+
});
|
|
944
|
+
|
|
945
|
+
// src/schemas/grades.ts
|
|
946
|
+
var z10 = __toESM(require("zod"), 1);
|
|
595
947
|
var GRADE_LEVELS = [
|
|
596
948
|
"PP1",
|
|
597
949
|
"PP2",
|
|
@@ -605,24 +957,29 @@ var GRADE_LEVELS = [
|
|
|
605
957
|
"G8",
|
|
606
958
|
"G9"
|
|
607
959
|
];
|
|
608
|
-
var GradeSchema =
|
|
609
|
-
id:
|
|
610
|
-
branchId:
|
|
611
|
-
name:
|
|
960
|
+
var GradeSchema = z10.object({
|
|
961
|
+
id: z10.string().uuid(),
|
|
962
|
+
branchId: z10.string().uuid(),
|
|
963
|
+
name: z10.string(),
|
|
612
964
|
level: GradeLevelSchema,
|
|
613
|
-
description:
|
|
965
|
+
description: z10.string().nullable()
|
|
614
966
|
});
|
|
615
|
-
var CreateGradeInputSchema =
|
|
616
|
-
name:
|
|
967
|
+
var CreateGradeInputSchema = z10.object({
|
|
968
|
+
name: z10.string().min(1).max(50),
|
|
617
969
|
level: GradeLevelSchema,
|
|
618
|
-
description:
|
|
970
|
+
description: z10.string().max(300).optional()
|
|
619
971
|
});
|
|
620
972
|
// Annotate the CommonJS export names for ESM import in node:
|
|
621
973
|
0 && (module.exports = {
|
|
622
974
|
AcademicTermSchema,
|
|
623
975
|
AcademicYearSchema,
|
|
976
|
+
AcknowledgeDeliveryInputSchema,
|
|
977
|
+
AcknowledgeDiaryEntryInputSchema,
|
|
624
978
|
AttendanceRecordInputSchema,
|
|
625
979
|
AttendanceStatusSchema,
|
|
980
|
+
BankAccountTypeSchema,
|
|
981
|
+
BlockResolutionMethodSchema,
|
|
982
|
+
BranchBankAccountSchema,
|
|
626
983
|
BranchRefSchema,
|
|
627
984
|
BulkUploadStudentRowSchema,
|
|
628
985
|
BulkUploadStudentsInputSchema,
|
|
@@ -630,8 +987,12 @@ var CreateGradeInputSchema = z7.object({
|
|
|
630
987
|
ChangePasswordInputSchema,
|
|
631
988
|
ClassAttendanceRowSchema,
|
|
632
989
|
ClassSummarySchema,
|
|
990
|
+
CreateBankAccountInputSchema,
|
|
633
991
|
CreateDepartmentInputSchema,
|
|
992
|
+
CreateDiaryCategoryInputSchema,
|
|
993
|
+
CreateDiaryEntryInputSchema,
|
|
634
994
|
CreateGradeInputSchema,
|
|
995
|
+
CreateNotificationInputSchema,
|
|
635
996
|
CreateStaffInputSchema,
|
|
636
997
|
CreateStaffOutputSchema,
|
|
637
998
|
CreateStudentInputSchema,
|
|
@@ -640,6 +1001,15 @@ var CreateGradeInputSchema = z7.object({
|
|
|
640
1001
|
CreateYearInputSchema,
|
|
641
1002
|
CuidSchema,
|
|
642
1003
|
DepartmentSchema,
|
|
1004
|
+
DiaryAcknowledgementSchema,
|
|
1005
|
+
DiaryBlockIdInputSchema,
|
|
1006
|
+
DiaryBlockSchema,
|
|
1007
|
+
DiaryCategorySchema,
|
|
1008
|
+
DiaryEntryDetailSchema,
|
|
1009
|
+
DiaryEntryForGuardianSchema,
|
|
1010
|
+
DiaryEntrySchema,
|
|
1011
|
+
DiaryEntryStatusSchema,
|
|
1012
|
+
DiarySeveritySchema,
|
|
643
1013
|
EmploymentTypeSchema,
|
|
644
1014
|
GRADE_LEVELS,
|
|
645
1015
|
GenderSchema,
|
|
@@ -647,7 +1017,13 @@ var CreateGradeInputSchema = z7.object({
|
|
|
647
1017
|
GetByStudentInputSchema,
|
|
648
1018
|
GradeLevelSchema,
|
|
649
1019
|
GradeSchema,
|
|
1020
|
+
KenyanBankSchema,
|
|
650
1021
|
LinkGuardianInputSchema,
|
|
1022
|
+
ListBankAccountsInputSchema,
|
|
1023
|
+
ListDeliveriesInputSchema,
|
|
1024
|
+
ListDiaryAcknowledgementsInputSchema,
|
|
1025
|
+
ListDiaryEntriesInputSchema,
|
|
1026
|
+
ListNotificationTemplatesInputSchema,
|
|
651
1027
|
ListStaffInputSchema,
|
|
652
1028
|
ListStudentsInputSchema,
|
|
653
1029
|
ListTermsInputSchema,
|
|
@@ -656,11 +1032,28 @@ var CreateGradeInputSchema = z7.object({
|
|
|
656
1032
|
LogoutInputSchema,
|
|
657
1033
|
MarkAttendanceInputSchema,
|
|
658
1034
|
MarkAttendanceOutputSchema,
|
|
1035
|
+
MyAcknowledgementSchema,
|
|
1036
|
+
NotificationAudienceItemSchema,
|
|
1037
|
+
NotificationAudienceTypeSchema,
|
|
1038
|
+
NotificationChannelSchema,
|
|
1039
|
+
NotificationDeliverySchema,
|
|
1040
|
+
NotificationResponseItemSchema,
|
|
1041
|
+
NotificationTemplateSchema,
|
|
1042
|
+
NotificationTemplateStatusSchema,
|
|
1043
|
+
NotificationUrgencySchema,
|
|
659
1044
|
PaginationInputSchema,
|
|
1045
|
+
PortalBlockSchema,
|
|
1046
|
+
PortalBlockTypeSchema,
|
|
660
1047
|
RefreshTokenInputSchema,
|
|
661
1048
|
RefreshTokenOutputSchema,
|
|
1049
|
+
RejectNotificationInputSchema,
|
|
662
1050
|
RequestPasswordResetInputSchema,
|
|
663
1051
|
ResetPasswordInputSchema,
|
|
1052
|
+
RespondToBlockInputSchema,
|
|
1053
|
+
RespondToBlockOutputSchema,
|
|
1054
|
+
RespondToDeliveryInputSchema,
|
|
1055
|
+
RespondToDiaryEntryInputSchema,
|
|
1056
|
+
ResponseSummarySchema,
|
|
664
1057
|
SessionUserOutputSchema,
|
|
665
1058
|
SessionUserRoleSchema,
|
|
666
1059
|
SessionUserSubRoleSchema,
|
|
@@ -676,6 +1069,8 @@ var CreateGradeInputSchema = z7.object({
|
|
|
676
1069
|
SwitchBranchInputSchema,
|
|
677
1070
|
TermSchema,
|
|
678
1071
|
TimestampsSchema,
|
|
1072
|
+
UpdateBankAccountInputSchema,
|
|
1073
|
+
UpdateDiaryCategoryInputSchema,
|
|
679
1074
|
UuidSchema,
|
|
680
1075
|
paginatedOutputSchema
|
|
681
1076
|
});
|