@aibrains/shared-types 0.16.0 → 0.17.0

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.
@@ -153,8 +153,8 @@ export declare const createCourseSchema: z.ZodObject<{
153
153
  typicalDuration: "semester" | "quarter" | "trimester" | "year";
154
154
  description?: string | undefined;
155
155
  departmentId?: string | undefined;
156
- academicYearId?: string | undefined;
157
156
  departmentName?: string | undefined;
157
+ academicYearId?: string | undefined;
158
158
  objectives?: string[] | undefined;
159
159
  creditType?: "elective" | "honors" | "ap" | "ib" | "dual_enrollment" | "academic" | undefined;
160
160
  prerequisites?: string[] | undefined;
@@ -187,8 +187,8 @@ export declare const createCourseSchema: z.ZodObject<{
187
187
  typicalDuration: "semester" | "quarter" | "trimester" | "year";
188
188
  description?: string | undefined;
189
189
  departmentId?: string | undefined;
190
- academicYearId?: string | undefined;
191
190
  departmentName?: string | undefined;
191
+ academicYearId?: string | undefined;
192
192
  objectives?: string[] | undefined;
193
193
  creditType?: "elective" | "honors" | "ap" | "ib" | "dual_enrollment" | "academic" | undefined;
194
194
  prerequisites?: string[] | undefined;
@@ -278,11 +278,11 @@ export declare const updateCourseSchema: z.ZodObject<Omit<{
278
278
  gradeLevels?: string[] | undefined;
279
279
  description?: string | undefined;
280
280
  departmentId?: string | undefined;
281
+ departmentName?: string | undefined;
281
282
  academicYearId?: string | undefined;
282
283
  subjectArea?: "vocational" | "other" | "mathematics" | "science" | "english_language_arts" | "social_studies" | "physical_education" | "technology" | "world_languages" | "arts" | "business" | undefined;
283
284
  credits?: number | undefined;
284
285
  courseName?: string | undefined;
285
- departmentName?: string | undefined;
286
286
  objectives?: string[] | undefined;
287
287
  creditType?: "elective" | "honors" | "ap" | "ib" | "dual_enrollment" | "academic" | undefined;
288
288
  courseType?: "vocational" | "elective" | "required" | "enrichment" | "remedial" | "honors" | "ap" | "ib" | "dual_enrollment" | undefined;
@@ -310,11 +310,11 @@ export declare const updateCourseSchema: z.ZodObject<Omit<{
310
310
  gradeLevels?: string[] | undefined;
311
311
  description?: string | undefined;
312
312
  departmentId?: string | undefined;
313
+ departmentName?: string | undefined;
313
314
  academicYearId?: string | undefined;
314
315
  subjectArea?: "vocational" | "other" | "mathematics" | "science" | "english_language_arts" | "social_studies" | "physical_education" | "technology" | "world_languages" | "arts" | "business" | undefined;
315
316
  credits?: number | undefined;
316
317
  courseName?: string | undefined;
317
- departmentName?: string | undefined;
318
318
  objectives?: string[] | undefined;
319
319
  creditType?: "elective" | "honors" | "ap" | "ib" | "dual_enrollment" | "academic" | undefined;
320
320
  courseType?: "vocational" | "elective" | "required" | "enrichment" | "remedial" | "honors" | "ap" | "ib" | "dual_enrollment" | undefined;
@@ -427,8 +427,8 @@ export declare const courseResponseSchema: z.ZodObject<{
427
427
  updatedBy?: string | undefined;
428
428
  description?: string | undefined;
429
429
  departmentId?: string | undefined;
430
- academicYearId?: string | undefined;
431
430
  departmentName?: string | undefined;
431
+ academicYearId?: string | undefined;
432
432
  objectives?: string[] | undefined;
433
433
  creditType?: "elective" | "honors" | "ap" | "ib" | "dual_enrollment" | "academic" | undefined;
434
434
  prerequisites?: string[] | undefined;
@@ -468,8 +468,8 @@ export declare const courseResponseSchema: z.ZodObject<{
468
468
  updatedBy?: string | undefined;
469
469
  description?: string | undefined;
470
470
  departmentId?: string | undefined;
471
- academicYearId?: string | undefined;
472
471
  departmentName?: string | undefined;
472
+ academicYearId?: string | undefined;
473
473
  objectives?: string[] | undefined;
474
474
  creditType?: "elective" | "honors" | "ap" | "ib" | "dual_enrollment" | "academic" | undefined;
475
475
  prerequisites?: string[] | undefined;
@@ -581,8 +581,8 @@ export declare const courseListResponseSchema: z.ZodObject<{
581
581
  updatedBy?: string | undefined;
582
582
  description?: string | undefined;
583
583
  departmentId?: string | undefined;
584
- academicYearId?: string | undefined;
585
584
  departmentName?: string | undefined;
585
+ academicYearId?: string | undefined;
586
586
  objectives?: string[] | undefined;
587
587
  creditType?: "elective" | "honors" | "ap" | "ib" | "dual_enrollment" | "academic" | undefined;
588
588
  prerequisites?: string[] | undefined;
@@ -622,8 +622,8 @@ export declare const courseListResponseSchema: z.ZodObject<{
622
622
  updatedBy?: string | undefined;
623
623
  description?: string | undefined;
624
624
  departmentId?: string | undefined;
625
- academicYearId?: string | undefined;
626
625
  departmentName?: string | undefined;
626
+ academicYearId?: string | undefined;
627
627
  objectives?: string[] | undefined;
628
628
  creditType?: "elective" | "honors" | "ap" | "ib" | "dual_enrollment" | "academic" | undefined;
629
629
  prerequisites?: string[] | undefined;
@@ -668,8 +668,8 @@ export declare const courseListResponseSchema: z.ZodObject<{
668
668
  updatedBy?: string | undefined;
669
669
  description?: string | undefined;
670
670
  departmentId?: string | undefined;
671
- academicYearId?: string | undefined;
672
671
  departmentName?: string | undefined;
672
+ academicYearId?: string | undefined;
673
673
  objectives?: string[] | undefined;
674
674
  creditType?: "elective" | "honors" | "ap" | "ib" | "dual_enrollment" | "academic" | undefined;
675
675
  prerequisites?: string[] | undefined;
@@ -714,8 +714,8 @@ export declare const courseListResponseSchema: z.ZodObject<{
714
714
  updatedBy?: string | undefined;
715
715
  description?: string | undefined;
716
716
  departmentId?: string | undefined;
717
- academicYearId?: string | undefined;
718
717
  departmentName?: string | undefined;
718
+ academicYearId?: string | undefined;
719
719
  objectives?: string[] | undefined;
720
720
  creditType?: "elective" | "honors" | "ap" | "ib" | "dual_enrollment" | "academic" | undefined;
721
721
  prerequisites?: string[] | undefined;
@@ -85,8 +85,9 @@ export declare const urlSchema: z.ZodString;
85
85
  export declare const isoDateSchema: z.ZodString;
86
86
  /**
87
87
  * Date string in YYYY-MM-DD format (for dates without time).
88
- * Enforces Gregorian (AD) year range to reject Bikram Sambat (BS) dates
89
- * which would have years like 2081-2083.
88
+ * Accepts Gregorian (AD) dates from 1900–2100.
89
+ * All dates must be in Gregorian calendar; BS↔AD conversion
90
+ * happens at the display/input layer (see bikram-sambat.ts).
90
91
  */
91
92
  export declare const dateSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
92
93
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,6BAA6B,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC;;;;;;;;;;;;;;;EAM/E,CAAC;AAML;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAMhE;;GAEG;AACH,eAAO,MAAM,UAAU,aAAoB,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,WAAW,aAAmC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,WAAW,aAGvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,aAAmB,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,aAAa,aAAwB,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,UAAU,yEAYtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,aAGtB,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAczB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAMpD;;GAEG;AACH,eAAO,MAAM,kBAAkB,+CAA6C,CAAC;AAC7E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK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EG;AACH,eAAO,MAAM,UAAU,aAGtB,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAczB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAMpD;;GAEG;AACH,eAAO,MAAM,kBAAkB,+CAA6C,CAAC;AAC7E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAM1D;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -66,13 +66,14 @@ exports.urlSchema = zod_1.z.string().url();
66
66
  exports.isoDateSchema = zod_1.z.string().datetime();
67
67
  /**
68
68
  * Date string in YYYY-MM-DD format (for dates without time).
69
- * Enforces Gregorian (AD) year range to reject Bikram Sambat (BS) dates
70
- * which would have years like 2081-2083.
69
+ * Accepts Gregorian (AD) dates from 1900–2100.
70
+ * All dates must be in Gregorian calendar; BS↔AD conversion
71
+ * happens at the display/input layer (see bikram-sambat.ts).
71
72
  */
72
73
  exports.dateSchema = zod_1.z.string().regex(/^\d{4}-\d{2}-\d{2}$/, 'Date must be in YYYY-MM-DD format').refine((date) => !isNaN(Date.parse(date)), 'Invalid date').refine((date) => {
73
74
  const year = parseInt(date.substring(0, 4), 10);
74
- return year >= 2020 && year <= 2100;
75
- }, 'Date must be in Gregorian (AD) calendar. BS dates like 2081 are not accepted — use AD equivalent.');
75
+ return year >= 1900 && year <= 2100;
76
+ }, 'Date year must be between 1900 and 2100 (Gregorian/AD calendar).');
76
77
  /**
77
78
  * Time string in HH:MM format (24-hour)
78
79
  */
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,6BAAwB;AAExB,+CAA+C;AAC/C,aAAa;AACb,+CAA+C;AAE/C;;GAEG;AACU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACpD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAIH;;GAEG;AACI,MAAM,6BAA6B,GAAG,CAAyB,UAAa,EAAE,EAAE,CACrF,OAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,UAAU,CAAC;IAC1B,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AANQ,QAAA,6BAA6B,iCAMrC;AAEL,+CAA+C;AAC/C,kBAAkB;AAClB,+CAA+C;AAE/C;;GAEG;AACU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAA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E;IACrB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACjC,CAAC,CAAC;AAIH,+CAA+C;AAC/C,6BAA6B;AAC7B,+CAA+C;AAE/C;;GAEG;AACU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
@@ -136,8 +136,8 @@ export declare const enrollmentStaffRoleSchema: z.ZodObject<{
136
136
  startDate?: string | undefined;
137
137
  endDate?: string | undefined;
138
138
  gradeLevels?: string[] | undefined;
139
- isPrimary?: boolean | undefined;
140
139
  departmentId?: string | undefined;
140
+ isPrimary?: boolean | undefined;
141
141
  subjects?: string[] | undefined;
142
142
  }>;
143
143
  export type EnrollmentStaffRoleDto = z.infer<typeof enrollmentStaffRoleSchema>;
@@ -215,8 +215,8 @@ export declare const createEnrollmentStaffSchema: z.ZodObject<{
215
215
  startDate?: string | undefined;
216
216
  endDate?: string | undefined;
217
217
  gradeLevels?: string[] | undefined;
218
- isPrimary?: boolean | undefined;
219
218
  departmentId?: string | undefined;
219
+ isPrimary?: boolean | undefined;
220
220
  subjects?: string[] | undefined;
221
221
  }>, "many">;
222
222
  education: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -412,8 +412,8 @@ export declare const createEnrollmentStaffSchema: z.ZodObject<{
412
412
  startDate?: string | undefined;
413
413
  endDate?: string | undefined;
414
414
  gradeLevels?: string[] | undefined;
415
- isPrimary?: boolean | undefined;
416
415
  departmentId?: string | undefined;
416
+ isPrimary?: boolean | undefined;
417
417
  subjects?: string[] | undefined;
418
418
  }[];
419
419
  phone?: string | undefined;
@@ -543,8 +543,8 @@ export declare const updateEnrollmentStaffSchema: z.ZodObject<{
543
543
  startDate?: string | undefined;
544
544
  endDate?: string | undefined;
545
545
  gradeLevels?: string[] | undefined;
546
- isPrimary?: boolean | undefined;
547
546
  departmentId?: string | undefined;
547
+ isPrimary?: boolean | undefined;
548
548
  subjects?: string[] | undefined;
549
549
  }>, "many">>;
550
550
  education: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -755,8 +755,8 @@ export declare const updateEnrollmentStaffSchema: z.ZodObject<{
755
755
  startDate?: string | undefined;
756
756
  endDate?: string | undefined;
757
757
  gradeLevels?: string[] | undefined;
758
- isPrimary?: boolean | undefined;
759
758
  departmentId?: string | undefined;
759
+ isPrimary?: boolean | undefined;
760
760
  subjects?: string[] | undefined;
761
761
  }[] | undefined;
762
762
  emergencyContact?: {
@@ -875,8 +875,8 @@ export declare const enrollmentStaffResponseSchema: z.ZodObject<{
875
875
  startDate?: string | undefined;
876
876
  endDate?: string | undefined;
877
877
  gradeLevels?: string[] | undefined;
878
- isPrimary?: boolean | undefined;
879
878
  departmentId?: string | undefined;
879
+ isPrimary?: boolean | undefined;
880
880
  subjects?: string[] | undefined;
881
881
  }>, "many">;
882
882
  primarySchoolId: z.ZodOptional<z.ZodString>;
@@ -1092,8 +1092,8 @@ export declare const enrollmentStaffResponseSchema: z.ZodObject<{
1092
1092
  startDate?: string | undefined;
1093
1093
  endDate?: string | undefined;
1094
1094
  gradeLevels?: string[] | undefined;
1095
- isPrimary?: boolean | undefined;
1096
1095
  departmentId?: string | undefined;
1096
+ isPrimary?: boolean | undefined;
1097
1097
  subjects?: string[] | undefined;
1098
1098
  }[];
1099
1099
  fullName: string;
@@ -1231,8 +1231,8 @@ export declare const enrollmentStaffListResponseSchema: z.ZodObject<{
1231
1231
  startDate?: string | undefined;
1232
1232
  endDate?: string | undefined;
1233
1233
  gradeLevels?: string[] | undefined;
1234
- isPrimary?: boolean | undefined;
1235
1234
  departmentId?: string | undefined;
1235
+ isPrimary?: boolean | undefined;
1236
1236
  subjects?: string[] | undefined;
1237
1237
  }>, "many">;
1238
1238
  primarySchoolId: z.ZodOptional<z.ZodString>;
@@ -1448,8 +1448,8 @@ export declare const enrollmentStaffListResponseSchema: z.ZodObject<{
1448
1448
  startDate?: string | undefined;
1449
1449
  endDate?: string | undefined;
1450
1450
  gradeLevels?: string[] | undefined;
1451
- isPrimary?: boolean | undefined;
1452
1451
  departmentId?: string | undefined;
1452
+ isPrimary?: boolean | undefined;
1453
1453
  subjects?: string[] | undefined;
1454
1454
  }[];
1455
1455
  fullName: string;
@@ -1608,8 +1608,8 @@ export declare const enrollmentStaffListResponseSchema: z.ZodObject<{
1608
1608
  startDate?: string | undefined;
1609
1609
  endDate?: string | undefined;
1610
1610
  gradeLevels?: string[] | undefined;
1611
- isPrimary?: boolean | undefined;
1612
1611
  departmentId?: string | undefined;
1612
+ isPrimary?: boolean | undefined;
1613
1613
  subjects?: string[] | undefined;
1614
1614
  }[];
1615
1615
  fullName: string;
@@ -2783,16 +2783,16 @@ export declare const enrollmentStaffFilterSchema: z.ZodObject<{
2783
2783
  searchTerm: z.ZodOptional<z.ZodString>;
2784
2784
  }, "strip", z.ZodTypeAny, {
2785
2785
  schoolId?: string | undefined;
2786
+ departmentId?: string | undefined;
2786
2787
  employmentType?: "full_time" | "part_time" | "contract" | "temporary" | "volunteer" | undefined;
2787
2788
  employmentStatus?: "active" | "on_leave" | "terminated" | "retired" | "pending" | undefined;
2788
- departmentId?: string | undefined;
2789
2789
  searchTerm?: string | undefined;
2790
2790
  roleType?: "other" | "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "substitute" | "security" | "administrator" | "office_staff" | "custodian" | "it_support" | "aide" | "coach" | undefined;
2791
2791
  }, {
2792
2792
  schoolId?: string | undefined;
2793
+ departmentId?: string | undefined;
2793
2794
  employmentType?: "full_time" | "part_time" | "contract" | "temporary" | "volunteer" | undefined;
2794
2795
  employmentStatus?: "active" | "on_leave" | "terminated" | "retired" | "pending" | undefined;
2795
- departmentId?: string | undefined;
2796
2796
  searchTerm?: string | undefined;
2797
2797
  roleType?: "other" | "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "substitute" | "security" | "administrator" | "office_staff" | "custodian" | "it_support" | "aide" | "coach" | undefined;
2798
2798
  }>;
@@ -158,7 +158,7 @@ export declare const discountRuleResponseSchema: z.ZodObject<{
158
158
  maxDiscountAmount?: number | undefined;
159
159
  }>;
160
160
  export type DiscountRule = z.infer<typeof discountRuleResponseSchema>;
161
- export declare const createDiscountRuleSchema: z.ZodObject<{
161
+ export declare const createDiscountRuleSchema: z.ZodEffects<z.ZodObject<{
162
162
  name: z.ZodString;
163
163
  description: z.ZodOptional<z.ZodString>;
164
164
  academicYearId: z.ZodString;
@@ -253,11 +253,58 @@ export declare const createDiscountRuleSchema: z.ZodObject<{
253
253
  description?: string | undefined;
254
254
  priority?: number | undefined;
255
255
  maxDiscountAmount?: number | undefined;
256
+ }>, {
257
+ type: "percentage" | "fixed";
258
+ value: number;
259
+ name: string;
260
+ academicYearId: string;
261
+ priority: number;
262
+ applicableFeeTypes: ("custom" | "lab" | "library" | "exam" | "tuition" | "admission" | "transport" | "hostel" | "uniform" | "miscellaneous")[];
263
+ condition: {
264
+ type: "sibling";
265
+ minSiblings: number;
266
+ } | {
267
+ type: "early_payment";
268
+ daysBefore: number;
269
+ } | {
270
+ type: "scholarship";
271
+ scholarshipId: string;
272
+ } | {
273
+ type: "staff_child";
274
+ } | {
275
+ type: "manual";
276
+ };
277
+ description?: string | undefined;
278
+ maxDiscountAmount?: number | undefined;
279
+ }, {
280
+ type: "percentage" | "fixed";
281
+ value: number;
282
+ name: string;
283
+ academicYearId: string;
284
+ applicableFeeTypes: ("custom" | "lab" | "library" | "exam" | "tuition" | "admission" | "transport" | "hostel" | "uniform" | "miscellaneous")[];
285
+ condition: {
286
+ type: "sibling";
287
+ minSiblings?: number | undefined;
288
+ } | {
289
+ type: "early_payment";
290
+ daysBefore: number;
291
+ } | {
292
+ type: "scholarship";
293
+ scholarshipId: string;
294
+ } | {
295
+ type: "staff_child";
296
+ } | {
297
+ type: "manual";
298
+ };
299
+ description?: string | undefined;
300
+ priority?: number | undefined;
301
+ maxDiscountAmount?: number | undefined;
256
302
  }>;
257
303
  export type CreateDiscountRuleDto = z.infer<typeof createDiscountRuleSchema>;
258
- export declare const updateDiscountRuleSchema: z.ZodObject<{
304
+ export declare const updateDiscountRuleSchema: z.ZodEffects<z.ZodObject<{
259
305
  name: z.ZodOptional<z.ZodString>;
260
306
  description: z.ZodOptional<z.ZodString>;
307
+ type: z.ZodOptional<z.ZodEnum<["percentage", "fixed"]>>;
261
308
  value: z.ZodOptional<z.ZodNumber>;
262
309
  applicableFeeTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["tuition", "admission", "exam", "transport", "library", "lab", "hostel", "uniform", "miscellaneous", "custom"]>, "many">>;
263
310
  condition: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -304,6 +351,53 @@ export declare const updateDiscountRuleSchema: z.ZodObject<{
304
351
  isActive: z.ZodOptional<z.ZodBoolean>;
305
352
  maxDiscountAmount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
306
353
  }, "strip", z.ZodTypeAny, {
354
+ type?: "percentage" | "fixed" | undefined;
355
+ value?: number | undefined;
356
+ name?: string | undefined;
357
+ isActive?: boolean | undefined;
358
+ description?: string | undefined;
359
+ priority?: number | undefined;
360
+ applicableFeeTypes?: ("custom" | "lab" | "library" | "exam" | "tuition" | "admission" | "transport" | "hostel" | "uniform" | "miscellaneous")[] | undefined;
361
+ condition?: {
362
+ type: "sibling";
363
+ minSiblings: number;
364
+ } | {
365
+ type: "early_payment";
366
+ daysBefore: number;
367
+ } | {
368
+ type: "scholarship";
369
+ scholarshipId: string;
370
+ } | {
371
+ type: "staff_child";
372
+ } | {
373
+ type: "manual";
374
+ } | undefined;
375
+ maxDiscountAmount?: number | null | undefined;
376
+ }, {
377
+ type?: "percentage" | "fixed" | undefined;
378
+ value?: number | undefined;
379
+ name?: string | undefined;
380
+ isActive?: boolean | undefined;
381
+ description?: string | undefined;
382
+ priority?: number | undefined;
383
+ applicableFeeTypes?: ("custom" | "lab" | "library" | "exam" | "tuition" | "admission" | "transport" | "hostel" | "uniform" | "miscellaneous")[] | undefined;
384
+ condition?: {
385
+ type: "sibling";
386
+ minSiblings?: number | undefined;
387
+ } | {
388
+ type: "early_payment";
389
+ daysBefore: number;
390
+ } | {
391
+ type: "scholarship";
392
+ scholarshipId: string;
393
+ } | {
394
+ type: "staff_child";
395
+ } | {
396
+ type: "manual";
397
+ } | undefined;
398
+ maxDiscountAmount?: number | null | undefined;
399
+ }>, {
400
+ type?: "percentage" | "fixed" | undefined;
307
401
  value?: number | undefined;
308
402
  name?: string | undefined;
309
403
  isActive?: boolean | undefined;
@@ -326,6 +420,7 @@ export declare const updateDiscountRuleSchema: z.ZodObject<{
326
420
  } | undefined;
327
421
  maxDiscountAmount?: number | null | undefined;
328
422
  }, {
423
+ type?: "percentage" | "fixed" | undefined;
329
424
  value?: number | undefined;
330
425
  name?: string | undefined;
331
426
  isActive?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"discount-rule.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/finance/discount-rule.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;;;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K,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEtE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAapC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAapC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -43,15 +43,16 @@ exports.createDiscountRuleSchema = zod_1.z.object({
43
43
  condition: exports.discountConditionSchema,
44
44
  priority: zod_1.z.number().int().min(0).default(0),
45
45
  maxDiscountAmount: zod_1.z.number().min(0).optional(),
46
- });
46
+ }).refine((data) => data.type !== 'percentage' || data.value <= 100, { message: 'Percentage discount value cannot exceed 100', path: ['value'] });
47
47
  exports.updateDiscountRuleSchema = zod_1.z.object({
48
48
  name: zod_1.z.string().min(1).max(200).optional(),
49
49
  description: zod_1.z.string().max(1000).optional(),
50
+ type: zod_1.z.enum(['percentage', 'fixed']).optional(),
50
51
  value: zod_1.z.number().min(0).optional(),
51
52
  applicableFeeTypes: zod_1.z.array(common_1.feeTypeEnum).optional(),
52
53
  condition: exports.discountConditionSchema.optional(),
53
54
  priority: zod_1.z.number().int().min(0).optional(),
54
55
  isActive: zod_1.z.boolean().optional(),
55
56
  maxDiscountAmount: zod_1.z.number().min(0).optional().nullable(),
56
- });
57
+ }).refine((data) => data.type !== 'percentage' || data.value === undefined || data.value <= 100, { message: 'Percentage discount value cannot exceed 100', path: ['value'] });
57
58
  //# sourceMappingURL=discount-rule.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"discount-rule.schema.js","sourceRoot":"","sources":["../../../src/schemas/finance/discount-rule.schema.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6BAAwB;AACxB,qCAAmE;AACnE,sCAAuC;AAE1B,QAAA,uBAAuB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAClE,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACzF,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9E,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;IAC5C,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;CACxC,CAAC,CAAC;AAIU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,EAAE,EAAE,mBAAU;IACd,QAAQ,EAAE,mBAAU;IACpB,cAAc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AE,CAAC,OAAO,CAAC,EAAE,CAC5E,CAAC"}
@@ -89,6 +89,7 @@ export declare const approveRefundSchema: z.ZodObject<{
89
89
  }, {
90
90
  notes?: string | undefined;
91
91
  }>;
92
+ export type ApproveRefundDto = z.infer<typeof approveRefundSchema>;
92
93
  export declare const rejectRefundSchema: z.ZodObject<{
93
94
  reason: z.ZodString;
94
95
  }, "strip", z.ZodTypeAny, {
@@ -96,4 +97,5 @@ export declare const rejectRefundSchema: z.ZodObject<{
96
97
  }, {
97
98
  reason: string;
98
99
  }>;
100
+ export type RejectRefundDto = z.infer<typeof rejectRefundSchema>;
99
101
  //# sourceMappingURL=refund.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"refund.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/finance/refund.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB,iGAE3B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBtC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAExE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E,eAAO,MAAM,mBAAmB;;;;;;EAE9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC"}
1
+ {"version":3,"file":"refund.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/finance/refund.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,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AAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAIU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,SAAS,EAAE,mBAAU;IACrB,SAAS,EAAE,mBAAU;IACrB,MAAM,EAAE,qBAAY,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IACrE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACnC,CAAC,CAAC;AAIU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAIU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACnC,CAAC,CAAC"}
@@ -46,8 +46,8 @@ export declare const assignRoleSchema: z.ZodObject<{
46
46
  }, "strip", z.ZodTypeAny, {
47
47
  schoolId: string;
48
48
  role: "Parent" | "Student" | "Principal" | "VicePrincipal" | "Teacher" | "Accountant" | "Staff" | "Counselor" | "Nurse";
49
- expiresAt?: string | undefined;
50
49
  departmentId?: string | undefined;
50
+ expiresAt?: string | undefined;
51
51
  permissionOverrides?: {
52
52
  resource: string;
53
53
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";
@@ -56,8 +56,8 @@ export declare const assignRoleSchema: z.ZodObject<{
56
56
  }, {
57
57
  schoolId: string;
58
58
  role: "Parent" | "Student" | "Principal" | "VicePrincipal" | "Teacher" | "Accountant" | "Staff" | "Counselor" | "Nurse";
59
- expiresAt?: string | undefined;
60
59
  departmentId?: string | undefined;
60
+ expiresAt?: string | undefined;
61
61
  permissionOverrides?: {
62
62
  resource: string;
63
63
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";
@@ -86,8 +86,8 @@ export declare const updateRoleSchema: z.ZodObject<{
86
86
  }, "strip", z.ZodTypeAny, {
87
87
  isActive?: boolean | undefined;
88
88
  role?: "Parent" | "Student" | "Principal" | "VicePrincipal" | "Teacher" | "Accountant" | "Staff" | "Counselor" | "Nurse" | undefined;
89
- expiresAt?: string | undefined;
90
89
  departmentId?: string | undefined;
90
+ expiresAt?: string | undefined;
91
91
  permissionOverrides?: {
92
92
  resource: string;
93
93
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";
@@ -96,8 +96,8 @@ export declare const updateRoleSchema: z.ZodObject<{
96
96
  }, {
97
97
  isActive?: boolean | undefined;
98
98
  role?: "Parent" | "Student" | "Principal" | "VicePrincipal" | "Teacher" | "Accountant" | "Staff" | "Counselor" | "Nurse" | undefined;
99
- expiresAt?: string | undefined;
100
99
  departmentId?: string | undefined;
100
+ expiresAt?: string | undefined;
101
101
  permissionOverrides?: {
102
102
  resource: string;
103
103
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";
@@ -136,8 +136,8 @@ export declare const roleAssignmentResponseSchema: z.ZodObject<{
136
136
  assignedAt: string;
137
137
  assignedBy: string;
138
138
  schoolName?: string | undefined;
139
- expiresAt?: string | undefined;
140
139
  departmentId?: string | undefined;
140
+ expiresAt?: string | undefined;
141
141
  permissionOverrides?: {
142
142
  resource: string;
143
143
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";
@@ -151,8 +151,8 @@ export declare const roleAssignmentResponseSchema: z.ZodObject<{
151
151
  assignedAt: string;
152
152
  assignedBy: string;
153
153
  schoolName?: string | undefined;
154
- expiresAt?: string | undefined;
155
154
  departmentId?: string | undefined;
155
+ expiresAt?: string | undefined;
156
156
  permissionOverrides?: {
157
157
  resource: string;
158
158
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";
@@ -194,8 +194,8 @@ export declare const userRolesResponseSchema: z.ZodObject<{
194
194
  assignedAt: string;
195
195
  assignedBy: string;
196
196
  schoolName?: string | undefined;
197
- expiresAt?: string | undefined;
198
197
  departmentId?: string | undefined;
198
+ expiresAt?: string | undefined;
199
199
  permissionOverrides?: {
200
200
  resource: string;
201
201
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";
@@ -209,8 +209,8 @@ export declare const userRolesResponseSchema: z.ZodObject<{
209
209
  assignedAt: string;
210
210
  assignedBy: string;
211
211
  schoolName?: string | undefined;
212
- expiresAt?: string | undefined;
213
212
  departmentId?: string | undefined;
213
+ expiresAt?: string | undefined;
214
214
  permissionOverrides?: {
215
215
  resource: string;
216
216
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";
@@ -228,8 +228,8 @@ export declare const userRolesResponseSchema: z.ZodObject<{
228
228
  assignedAt: string;
229
229
  assignedBy: string;
230
230
  schoolName?: string | undefined;
231
- expiresAt?: string | undefined;
232
231
  departmentId?: string | undefined;
232
+ expiresAt?: string | undefined;
233
233
  permissionOverrides?: {
234
234
  resource: string;
235
235
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";
@@ -247,8 +247,8 @@ export declare const userRolesResponseSchema: z.ZodObject<{
247
247
  assignedAt: string;
248
248
  assignedBy: string;
249
249
  schoolName?: string | undefined;
250
- expiresAt?: string | undefined;
251
250
  departmentId?: string | undefined;
251
+ expiresAt?: string | undefined;
252
252
  permissionOverrides?: {
253
253
  resource: string;
254
254
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";
@@ -327,8 +327,8 @@ export declare const changeSchoolRoleSchema: z.ZodObject<{
327
327
  expiresAt: z.ZodOptional<z.ZodString>;
328
328
  }, "strip", z.ZodTypeAny, {
329
329
  newRole: "Parent" | "Student" | "Principal" | "VicePrincipal" | "Teacher" | "Accountant" | "Staff" | "Counselor" | "Nurse";
330
- expiresAt?: string | undefined;
331
330
  departmentId?: string | undefined;
331
+ expiresAt?: string | undefined;
332
332
  permissionOverrides?: {
333
333
  resource: string;
334
334
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";
@@ -336,8 +336,8 @@ export declare const changeSchoolRoleSchema: z.ZodObject<{
336
336
  }[] | undefined;
337
337
  }, {
338
338
  newRole: "Parent" | "Student" | "Principal" | "VicePrincipal" | "Teacher" | "Accountant" | "Staff" | "Counselor" | "Nurse";
339
- expiresAt?: string | undefined;
340
339
  departmentId?: string | undefined;
340
+ expiresAt?: string | undefined;
341
341
  permissionOverrides?: {
342
342
  resource: string;
343
343
  action: "view" | "create" | "edit" | "delete" | "manage" | "approve" | "send" | "export";