@nyig/models 0.4.19 → 0.5.1

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/index.d.mts CHANGED
@@ -418,7 +418,7 @@ type AttendanceResponse = z.infer<typeof zAttendanceResponse>;
418
418
 
419
419
  declare const zBCampTracker: z.ZodObject<{
420
420
  course: z.ZodString;
421
- teacher: z.ZodString;
421
+ teachers: z.ZodArray<z.ZodString, "many">;
422
422
  semester: z.ZodString;
423
423
  /**
424
424
  * occurrences are tracked by week for camps
@@ -484,7 +484,7 @@ declare const zBCampTracker: z.ZodObject<{
484
484
  notes: z.ZodOptional<z.ZodString>;
485
485
  }, "strip", z.ZodTypeAny, {
486
486
  course: string;
487
- teacher: string;
487
+ teachers: string[];
488
488
  semester: string;
489
489
  occurrences: string[];
490
490
  attendances: {
@@ -507,7 +507,7 @@ declare const zBCampTracker: z.ZodObject<{
507
507
  isNonPublic?: boolean | undefined;
508
508
  }, {
509
509
  course: string;
510
- teacher: string;
510
+ teachers: string[];
511
511
  semester: string;
512
512
  occurrences: string[];
513
513
  attendances: {
@@ -531,7 +531,7 @@ declare const zBCampTracker: z.ZodObject<{
531
531
  }>;
532
532
  declare const zCampTracker: z.ZodObject<{
533
533
  course: z.ZodString;
534
- teacher: z.ZodString;
534
+ teachers: z.ZodArray<z.ZodString, "many">;
535
535
  semester: z.ZodString;
536
536
  /**
537
537
  * occurrences are tracked by week for camps
@@ -603,7 +603,7 @@ declare const zCampTracker: z.ZodObject<{
603
603
  }, z.UnknownKeysParam, z.ZodTypeAny, {
604
604
  _id: string;
605
605
  course: string;
606
- teacher: string;
606
+ teachers: string[];
607
607
  semester: string;
608
608
  occurrences: string[];
609
609
  attendances: {
@@ -630,7 +630,7 @@ declare const zCampTracker: z.ZodObject<{
630
630
  }, {
631
631
  _id: string;
632
632
  course: string;
633
- teacher: string;
633
+ teachers: string[];
634
634
  semester: string;
635
635
  occurrences: string[];
636
636
  attendances: {
@@ -712,7 +712,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
712
712
  fullCampTuition?: number | undefined;
713
713
  superadminOnly?: boolean | undefined;
714
714
  }>;
715
- teacher: z.ZodObject<{
715
+ teachers: z.ZodArray<z.ZodObject<{
716
716
  name: z.ZodString;
717
717
  username: z.ZodOptional<z.ZodString>;
718
718
  password: z.ZodOptional<z.ZodString>;
@@ -800,7 +800,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
800
800
  bio?: string | undefined;
801
801
  imageUrl?: string | undefined;
802
802
  available?: number[][][] | undefined;
803
- }>;
803
+ }>, "many">;
804
804
  semester: z.ZodObject<{
805
805
  season: z.ZodNativeEnum<typeof Season>;
806
806
  year: z.ZodNumber;
@@ -1021,7 +1021,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
1021
1021
  fullCampTuition?: number | undefined;
1022
1022
  superadminOnly?: boolean | undefined;
1023
1023
  };
1024
- teacher: {
1024
+ teachers: {
1025
1025
  rank: GoRank;
1026
1026
  _id: string;
1027
1027
  name: string;
@@ -1047,7 +1047,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
1047
1047
  bio?: string | undefined;
1048
1048
  imageUrl?: string | undefined;
1049
1049
  available?: number[][][] | undefined;
1050
- };
1050
+ }[];
1051
1051
  semester: {
1052
1052
  _id: string;
1053
1053
  season: Season;
@@ -1121,7 +1121,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
1121
1121
  fullCampTuition?: number | undefined;
1122
1122
  superadminOnly?: boolean | undefined;
1123
1123
  };
1124
- teacher: {
1124
+ teachers: {
1125
1125
  rank: GoRank;
1126
1126
  _id: string;
1127
1127
  name: string;
@@ -1147,7 +1147,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
1147
1147
  bio?: string | undefined;
1148
1148
  imageUrl?: string | undefined;
1149
1149
  available?: number[][][] | undefined;
1150
- };
1150
+ }[];
1151
1151
  semester: {
1152
1152
  _id: string;
1153
1153
  season: Season;
@@ -2003,7 +2003,6 @@ declare const zBGroupTracker: z.ZodObject<{
2003
2003
  notes: z.ZodOptional<z.ZodString>;
2004
2004
  }, "strip", z.ZodTypeAny, {
2005
2005
  course: string;
2006
- teacher: string;
2007
2006
  semester: string;
2008
2007
  occurrences: string[];
2009
2008
  attendances: {
@@ -2021,6 +2020,7 @@ declare const zBGroupTracker: z.ZodObject<{
2021
2020
  paid?: boolean | undefined;
2022
2021
  campOption?: CampOption | undefined;
2023
2022
  }[];
2023
+ teacher: string;
2024
2024
  scheduleData: {
2025
2025
  startTime: string;
2026
2026
  dayOfWeek: number;
@@ -2033,7 +2033,6 @@ declare const zBGroupTracker: z.ZodObject<{
2033
2033
  ageGroup?: AgeGroup | undefined;
2034
2034
  }, {
2035
2035
  course: string;
2036
- teacher: string;
2037
2036
  semester: string;
2038
2037
  occurrences: string[];
2039
2038
  attendances: {
@@ -2051,6 +2050,7 @@ declare const zBGroupTracker: z.ZodObject<{
2051
2050
  paid?: boolean | undefined;
2052
2051
  campOption?: CampOption | undefined;
2053
2052
  }[];
2053
+ teacher: string;
2054
2054
  scheduleData: {
2055
2055
  startTime: string;
2056
2056
  dayOfWeek: number;
@@ -2162,7 +2162,6 @@ declare const zGroupTracker: z.ZodObject<{
2162
2162
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2163
2163
  _id: string;
2164
2164
  course: string;
2165
- teacher: string;
2166
2165
  semester: string;
2167
2166
  occurrences: string[];
2168
2167
  attendances: {
@@ -2180,6 +2179,7 @@ declare const zGroupTracker: z.ZodObject<{
2180
2179
  paid?: boolean | undefined;
2181
2180
  campOption?: CampOption | undefined;
2182
2181
  }[];
2182
+ teacher: string;
2183
2183
  scheduleData: {
2184
2184
  startTime: string;
2185
2185
  dayOfWeek: number;
@@ -2196,7 +2196,6 @@ declare const zGroupTracker: z.ZodObject<{
2196
2196
  }, {
2197
2197
  _id: string;
2198
2198
  course: string;
2199
- teacher: string;
2200
2199
  semester: string;
2201
2200
  occurrences: string[];
2202
2201
  attendances: {
@@ -2214,6 +2213,7 @@ declare const zGroupTracker: z.ZodObject<{
2214
2213
  paid?: boolean | undefined;
2215
2214
  campOption?: CampOption | undefined;
2216
2215
  }[];
2216
+ teacher: string;
2217
2217
  scheduleData: {
2218
2218
  startTime: string;
2219
2219
  dayOfWeek: number;
@@ -2611,33 +2611,6 @@ declare const zGroupTrackerResponse: z.ZodObject<{
2611
2611
  fullCampTuition?: number | undefined;
2612
2612
  superadminOnly?: boolean | undefined;
2613
2613
  };
2614
- teacher: {
2615
- rank: GoRank;
2616
- _id: string;
2617
- name: string;
2618
- email?: string | undefined;
2619
- address?: string | undefined;
2620
- editedBy?: string | undefined;
2621
- createdAt?: string | undefined;
2622
- updatedAt?: string | undefined;
2623
- username?: string | undefined;
2624
- password?: string | undefined;
2625
- roles?: {
2626
- user: number;
2627
- admin?: number | undefined;
2628
- superadmin?: number | undefined;
2629
- } | undefined;
2630
- country?: string | undefined;
2631
- phoneNumber?: string | undefined;
2632
- birthDate?: string | undefined;
2633
- shouldChangePassword?: boolean | undefined;
2634
- isInactive?: boolean | undefined;
2635
- doesNotTeachPrivateLessons?: boolean | undefined;
2636
- title?: string | undefined;
2637
- bio?: string | undefined;
2638
- imageUrl?: string | undefined;
2639
- available?: number[][][] | undefined;
2640
- };
2641
2614
  semester: {
2642
2615
  _id: string;
2643
2616
  season: Season;
@@ -2687,6 +2660,33 @@ declare const zGroupTrackerResponse: z.ZodObject<{
2687
2660
  paid?: boolean | undefined;
2688
2661
  campOption?: CampOption | undefined;
2689
2662
  }[];
2663
+ teacher: {
2664
+ rank: GoRank;
2665
+ _id: string;
2666
+ name: string;
2667
+ email?: string | undefined;
2668
+ address?: string | undefined;
2669
+ editedBy?: string | undefined;
2670
+ createdAt?: string | undefined;
2671
+ updatedAt?: string | undefined;
2672
+ username?: string | undefined;
2673
+ password?: string | undefined;
2674
+ roles?: {
2675
+ user: number;
2676
+ admin?: number | undefined;
2677
+ superadmin?: number | undefined;
2678
+ } | undefined;
2679
+ country?: string | undefined;
2680
+ phoneNumber?: string | undefined;
2681
+ birthDate?: string | undefined;
2682
+ shouldChangePassword?: boolean | undefined;
2683
+ isInactive?: boolean | undefined;
2684
+ doesNotTeachPrivateLessons?: boolean | undefined;
2685
+ title?: string | undefined;
2686
+ bio?: string | undefined;
2687
+ imageUrl?: string | undefined;
2688
+ available?: number[][][] | undefined;
2689
+ };
2690
2690
  scheduleData: {
2691
2691
  startTime: string;
2692
2692
  dayOfWeek: number;
@@ -2718,33 +2718,6 @@ declare const zGroupTrackerResponse: z.ZodObject<{
2718
2718
  fullCampTuition?: number | undefined;
2719
2719
  superadminOnly?: boolean | undefined;
2720
2720
  };
2721
- teacher: {
2722
- rank: GoRank;
2723
- _id: string;
2724
- name: string;
2725
- email?: string | undefined;
2726
- address?: string | undefined;
2727
- editedBy?: string | undefined;
2728
- createdAt?: string | undefined;
2729
- updatedAt?: string | undefined;
2730
- username?: string | undefined;
2731
- password?: string | undefined;
2732
- roles?: {
2733
- user: number;
2734
- admin?: number | undefined;
2735
- superadmin?: number | undefined;
2736
- } | undefined;
2737
- country?: string | undefined;
2738
- phoneNumber?: string | undefined;
2739
- birthDate?: string | undefined;
2740
- shouldChangePassword?: boolean | undefined;
2741
- isInactive?: boolean | undefined;
2742
- doesNotTeachPrivateLessons?: boolean | undefined;
2743
- title?: string | undefined;
2744
- bio?: string | undefined;
2745
- imageUrl?: string | undefined;
2746
- available?: number[][][] | undefined;
2747
- };
2748
2721
  semester: {
2749
2722
  _id: string;
2750
2723
  season: Season;
@@ -2794,6 +2767,33 @@ declare const zGroupTrackerResponse: z.ZodObject<{
2794
2767
  paid?: boolean | undefined;
2795
2768
  campOption?: CampOption | undefined;
2796
2769
  }[];
2770
+ teacher: {
2771
+ rank: GoRank;
2772
+ _id: string;
2773
+ name: string;
2774
+ email?: string | undefined;
2775
+ address?: string | undefined;
2776
+ editedBy?: string | undefined;
2777
+ createdAt?: string | undefined;
2778
+ updatedAt?: string | undefined;
2779
+ username?: string | undefined;
2780
+ password?: string | undefined;
2781
+ roles?: {
2782
+ user: number;
2783
+ admin?: number | undefined;
2784
+ superadmin?: number | undefined;
2785
+ } | undefined;
2786
+ country?: string | undefined;
2787
+ phoneNumber?: string | undefined;
2788
+ birthDate?: string | undefined;
2789
+ shouldChangePassword?: boolean | undefined;
2790
+ isInactive?: boolean | undefined;
2791
+ doesNotTeachPrivateLessons?: boolean | undefined;
2792
+ title?: string | undefined;
2793
+ bio?: string | undefined;
2794
+ imageUrl?: string | undefined;
2795
+ available?: number[][][] | undefined;
2796
+ };
2797
2797
  scheduleData: {
2798
2798
  startTime: string;
2799
2799
  dayOfWeek: number;
package/index.d.ts CHANGED
@@ -418,7 +418,7 @@ type AttendanceResponse = z.infer<typeof zAttendanceResponse>;
418
418
 
419
419
  declare const zBCampTracker: z.ZodObject<{
420
420
  course: z.ZodString;
421
- teacher: z.ZodString;
421
+ teachers: z.ZodArray<z.ZodString, "many">;
422
422
  semester: z.ZodString;
423
423
  /**
424
424
  * occurrences are tracked by week for camps
@@ -484,7 +484,7 @@ declare const zBCampTracker: z.ZodObject<{
484
484
  notes: z.ZodOptional<z.ZodString>;
485
485
  }, "strip", z.ZodTypeAny, {
486
486
  course: string;
487
- teacher: string;
487
+ teachers: string[];
488
488
  semester: string;
489
489
  occurrences: string[];
490
490
  attendances: {
@@ -507,7 +507,7 @@ declare const zBCampTracker: z.ZodObject<{
507
507
  isNonPublic?: boolean | undefined;
508
508
  }, {
509
509
  course: string;
510
- teacher: string;
510
+ teachers: string[];
511
511
  semester: string;
512
512
  occurrences: string[];
513
513
  attendances: {
@@ -531,7 +531,7 @@ declare const zBCampTracker: z.ZodObject<{
531
531
  }>;
532
532
  declare const zCampTracker: z.ZodObject<{
533
533
  course: z.ZodString;
534
- teacher: z.ZodString;
534
+ teachers: z.ZodArray<z.ZodString, "many">;
535
535
  semester: z.ZodString;
536
536
  /**
537
537
  * occurrences are tracked by week for camps
@@ -603,7 +603,7 @@ declare const zCampTracker: z.ZodObject<{
603
603
  }, z.UnknownKeysParam, z.ZodTypeAny, {
604
604
  _id: string;
605
605
  course: string;
606
- teacher: string;
606
+ teachers: string[];
607
607
  semester: string;
608
608
  occurrences: string[];
609
609
  attendances: {
@@ -630,7 +630,7 @@ declare const zCampTracker: z.ZodObject<{
630
630
  }, {
631
631
  _id: string;
632
632
  course: string;
633
- teacher: string;
633
+ teachers: string[];
634
634
  semester: string;
635
635
  occurrences: string[];
636
636
  attendances: {
@@ -712,7 +712,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
712
712
  fullCampTuition?: number | undefined;
713
713
  superadminOnly?: boolean | undefined;
714
714
  }>;
715
- teacher: z.ZodObject<{
715
+ teachers: z.ZodArray<z.ZodObject<{
716
716
  name: z.ZodString;
717
717
  username: z.ZodOptional<z.ZodString>;
718
718
  password: z.ZodOptional<z.ZodString>;
@@ -800,7 +800,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
800
800
  bio?: string | undefined;
801
801
  imageUrl?: string | undefined;
802
802
  available?: number[][][] | undefined;
803
- }>;
803
+ }>, "many">;
804
804
  semester: z.ZodObject<{
805
805
  season: z.ZodNativeEnum<typeof Season>;
806
806
  year: z.ZodNumber;
@@ -1021,7 +1021,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
1021
1021
  fullCampTuition?: number | undefined;
1022
1022
  superadminOnly?: boolean | undefined;
1023
1023
  };
1024
- teacher: {
1024
+ teachers: {
1025
1025
  rank: GoRank;
1026
1026
  _id: string;
1027
1027
  name: string;
@@ -1047,7 +1047,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
1047
1047
  bio?: string | undefined;
1048
1048
  imageUrl?: string | undefined;
1049
1049
  available?: number[][][] | undefined;
1050
- };
1050
+ }[];
1051
1051
  semester: {
1052
1052
  _id: string;
1053
1053
  season: Season;
@@ -1121,7 +1121,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
1121
1121
  fullCampTuition?: number | undefined;
1122
1122
  superadminOnly?: boolean | undefined;
1123
1123
  };
1124
- teacher: {
1124
+ teachers: {
1125
1125
  rank: GoRank;
1126
1126
  _id: string;
1127
1127
  name: string;
@@ -1147,7 +1147,7 @@ declare const zCampTrackerResponse: z.ZodObject<{
1147
1147
  bio?: string | undefined;
1148
1148
  imageUrl?: string | undefined;
1149
1149
  available?: number[][][] | undefined;
1150
- };
1150
+ }[];
1151
1151
  semester: {
1152
1152
  _id: string;
1153
1153
  season: Season;
@@ -2003,7 +2003,6 @@ declare const zBGroupTracker: z.ZodObject<{
2003
2003
  notes: z.ZodOptional<z.ZodString>;
2004
2004
  }, "strip", z.ZodTypeAny, {
2005
2005
  course: string;
2006
- teacher: string;
2007
2006
  semester: string;
2008
2007
  occurrences: string[];
2009
2008
  attendances: {
@@ -2021,6 +2020,7 @@ declare const zBGroupTracker: z.ZodObject<{
2021
2020
  paid?: boolean | undefined;
2022
2021
  campOption?: CampOption | undefined;
2023
2022
  }[];
2023
+ teacher: string;
2024
2024
  scheduleData: {
2025
2025
  startTime: string;
2026
2026
  dayOfWeek: number;
@@ -2033,7 +2033,6 @@ declare const zBGroupTracker: z.ZodObject<{
2033
2033
  ageGroup?: AgeGroup | undefined;
2034
2034
  }, {
2035
2035
  course: string;
2036
- teacher: string;
2037
2036
  semester: string;
2038
2037
  occurrences: string[];
2039
2038
  attendances: {
@@ -2051,6 +2050,7 @@ declare const zBGroupTracker: z.ZodObject<{
2051
2050
  paid?: boolean | undefined;
2052
2051
  campOption?: CampOption | undefined;
2053
2052
  }[];
2053
+ teacher: string;
2054
2054
  scheduleData: {
2055
2055
  startTime: string;
2056
2056
  dayOfWeek: number;
@@ -2162,7 +2162,6 @@ declare const zGroupTracker: z.ZodObject<{
2162
2162
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2163
2163
  _id: string;
2164
2164
  course: string;
2165
- teacher: string;
2166
2165
  semester: string;
2167
2166
  occurrences: string[];
2168
2167
  attendances: {
@@ -2180,6 +2179,7 @@ declare const zGroupTracker: z.ZodObject<{
2180
2179
  paid?: boolean | undefined;
2181
2180
  campOption?: CampOption | undefined;
2182
2181
  }[];
2182
+ teacher: string;
2183
2183
  scheduleData: {
2184
2184
  startTime: string;
2185
2185
  dayOfWeek: number;
@@ -2196,7 +2196,6 @@ declare const zGroupTracker: z.ZodObject<{
2196
2196
  }, {
2197
2197
  _id: string;
2198
2198
  course: string;
2199
- teacher: string;
2200
2199
  semester: string;
2201
2200
  occurrences: string[];
2202
2201
  attendances: {
@@ -2214,6 +2213,7 @@ declare const zGroupTracker: z.ZodObject<{
2214
2213
  paid?: boolean | undefined;
2215
2214
  campOption?: CampOption | undefined;
2216
2215
  }[];
2216
+ teacher: string;
2217
2217
  scheduleData: {
2218
2218
  startTime: string;
2219
2219
  dayOfWeek: number;
@@ -2611,33 +2611,6 @@ declare const zGroupTrackerResponse: z.ZodObject<{
2611
2611
  fullCampTuition?: number | undefined;
2612
2612
  superadminOnly?: boolean | undefined;
2613
2613
  };
2614
- teacher: {
2615
- rank: GoRank;
2616
- _id: string;
2617
- name: string;
2618
- email?: string | undefined;
2619
- address?: string | undefined;
2620
- editedBy?: string | undefined;
2621
- createdAt?: string | undefined;
2622
- updatedAt?: string | undefined;
2623
- username?: string | undefined;
2624
- password?: string | undefined;
2625
- roles?: {
2626
- user: number;
2627
- admin?: number | undefined;
2628
- superadmin?: number | undefined;
2629
- } | undefined;
2630
- country?: string | undefined;
2631
- phoneNumber?: string | undefined;
2632
- birthDate?: string | undefined;
2633
- shouldChangePassword?: boolean | undefined;
2634
- isInactive?: boolean | undefined;
2635
- doesNotTeachPrivateLessons?: boolean | undefined;
2636
- title?: string | undefined;
2637
- bio?: string | undefined;
2638
- imageUrl?: string | undefined;
2639
- available?: number[][][] | undefined;
2640
- };
2641
2614
  semester: {
2642
2615
  _id: string;
2643
2616
  season: Season;
@@ -2687,6 +2660,33 @@ declare const zGroupTrackerResponse: z.ZodObject<{
2687
2660
  paid?: boolean | undefined;
2688
2661
  campOption?: CampOption | undefined;
2689
2662
  }[];
2663
+ teacher: {
2664
+ rank: GoRank;
2665
+ _id: string;
2666
+ name: string;
2667
+ email?: string | undefined;
2668
+ address?: string | undefined;
2669
+ editedBy?: string | undefined;
2670
+ createdAt?: string | undefined;
2671
+ updatedAt?: string | undefined;
2672
+ username?: string | undefined;
2673
+ password?: string | undefined;
2674
+ roles?: {
2675
+ user: number;
2676
+ admin?: number | undefined;
2677
+ superadmin?: number | undefined;
2678
+ } | undefined;
2679
+ country?: string | undefined;
2680
+ phoneNumber?: string | undefined;
2681
+ birthDate?: string | undefined;
2682
+ shouldChangePassword?: boolean | undefined;
2683
+ isInactive?: boolean | undefined;
2684
+ doesNotTeachPrivateLessons?: boolean | undefined;
2685
+ title?: string | undefined;
2686
+ bio?: string | undefined;
2687
+ imageUrl?: string | undefined;
2688
+ available?: number[][][] | undefined;
2689
+ };
2690
2690
  scheduleData: {
2691
2691
  startTime: string;
2692
2692
  dayOfWeek: number;
@@ -2718,33 +2718,6 @@ declare const zGroupTrackerResponse: z.ZodObject<{
2718
2718
  fullCampTuition?: number | undefined;
2719
2719
  superadminOnly?: boolean | undefined;
2720
2720
  };
2721
- teacher: {
2722
- rank: GoRank;
2723
- _id: string;
2724
- name: string;
2725
- email?: string | undefined;
2726
- address?: string | undefined;
2727
- editedBy?: string | undefined;
2728
- createdAt?: string | undefined;
2729
- updatedAt?: string | undefined;
2730
- username?: string | undefined;
2731
- password?: string | undefined;
2732
- roles?: {
2733
- user: number;
2734
- admin?: number | undefined;
2735
- superadmin?: number | undefined;
2736
- } | undefined;
2737
- country?: string | undefined;
2738
- phoneNumber?: string | undefined;
2739
- birthDate?: string | undefined;
2740
- shouldChangePassword?: boolean | undefined;
2741
- isInactive?: boolean | undefined;
2742
- doesNotTeachPrivateLessons?: boolean | undefined;
2743
- title?: string | undefined;
2744
- bio?: string | undefined;
2745
- imageUrl?: string | undefined;
2746
- available?: number[][][] | undefined;
2747
- };
2748
2721
  semester: {
2749
2722
  _id: string;
2750
2723
  season: Season;
@@ -2794,6 +2767,33 @@ declare const zGroupTrackerResponse: z.ZodObject<{
2794
2767
  paid?: boolean | undefined;
2795
2768
  campOption?: CampOption | undefined;
2796
2769
  }[];
2770
+ teacher: {
2771
+ rank: GoRank;
2772
+ _id: string;
2773
+ name: string;
2774
+ email?: string | undefined;
2775
+ address?: string | undefined;
2776
+ editedBy?: string | undefined;
2777
+ createdAt?: string | undefined;
2778
+ updatedAt?: string | undefined;
2779
+ username?: string | undefined;
2780
+ password?: string | undefined;
2781
+ roles?: {
2782
+ user: number;
2783
+ admin?: number | undefined;
2784
+ superadmin?: number | undefined;
2785
+ } | undefined;
2786
+ country?: string | undefined;
2787
+ phoneNumber?: string | undefined;
2788
+ birthDate?: string | undefined;
2789
+ shouldChangePassword?: boolean | undefined;
2790
+ isInactive?: boolean | undefined;
2791
+ doesNotTeachPrivateLessons?: boolean | undefined;
2792
+ title?: string | undefined;
2793
+ bio?: string | undefined;
2794
+ imageUrl?: string | undefined;
2795
+ available?: number[][][] | undefined;
2796
+ };
2797
2797
  scheduleData: {
2798
2798
  startTime: string;
2799
2799
  dayOfWeek: number;
package/index.js CHANGED
@@ -480,9 +480,10 @@ var zBSemester = import_zod12.z.object({
480
480
  var zSemester = addAutoProps(zBSemester);
481
481
 
482
482
  // src/interface/tracking/campTracker.ts
483
+ var MAX_TEACHERS = 10;
483
484
  var zBCampTracker = import_zod13.z.object({
484
485
  course: import_zod13.z.string(),
485
- teacher: import_zod13.z.string(),
486
+ teachers: import_zod13.z.array(import_zod13.z.string()).min(1, "Camp must have at least 1 teacher").max(MAX_TEACHERS, `Camp can have at most ${MAX_TEACHERS} teachers`),
486
487
  semester: import_zod13.z.string(),
487
488
  /**
488
489
  * occurrences are tracked by week for camps
@@ -499,7 +500,7 @@ var zBCampTracker = import_zod13.z.object({
499
500
  var zCampTracker = addAutoProps(zBCampTracker);
500
501
  var zCampTrackerResponse = zCampTracker.extend({
501
502
  course: zCourse,
502
- teacher: zTeacher,
503
+ teachers: import_zod13.z.array(zTeacher).min(1, "Camp must have at least 1 teacher").max(MAX_TEACHERS, `Camp can have at most ${MAX_TEACHERS} teachers`),
503
504
  semester: zSemester,
504
505
  attendances: import_zod13.z.array(zAttendanceResponse)
505
506
  });
package/index.mjs CHANGED
@@ -372,9 +372,10 @@ var zBSemester = z12.object({
372
372
  var zSemester = addAutoProps(zBSemester);
373
373
 
374
374
  // src/interface/tracking/campTracker.ts
375
+ var MAX_TEACHERS = 10;
375
376
  var zBCampTracker = z13.object({
376
377
  course: z13.string(),
377
- teacher: z13.string(),
378
+ teachers: z13.array(z13.string()).min(1, "Camp must have at least 1 teacher").max(MAX_TEACHERS, `Camp can have at most ${MAX_TEACHERS} teachers`),
378
379
  semester: z13.string(),
379
380
  /**
380
381
  * occurrences are tracked by week for camps
@@ -391,7 +392,7 @@ var zBCampTracker = z13.object({
391
392
  var zCampTracker = addAutoProps(zBCampTracker);
392
393
  var zCampTrackerResponse = zCampTracker.extend({
393
394
  course: zCourse,
394
- teacher: zTeacher,
395
+ teachers: z13.array(zTeacher).min(1, "Camp must have at least 1 teacher").max(MAX_TEACHERS, `Camp can have at most ${MAX_TEACHERS} teachers`),
395
396
  semester: zSemester,
396
397
  attendances: z13.array(zAttendanceResponse)
397
398
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.4.19",
3
+ "version": "0.5.1",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -9,12 +9,12 @@
9
9
  "zod": ">=3.25.46"
10
10
  },
11
11
  "devDependencies": {
12
- "@changesets/cli": "^2.29.4",
12
+ "@changesets/cli": "^2.29.5",
13
13
  "husky": "^9.1.7",
14
- "lint-staged": "^16.1.0",
15
- "prettier": "^3.5.3",
14
+ "lint-staged": "^16.1.2",
15
+ "prettier": "^3.6.2",
16
16
  "tsup": "^8.5.0",
17
- "typescript": "^5.8.3"
17
+ "typescript": "^5.9.2"
18
18
  },
19
19
  "lint-staged": {
20
20
  "*.{js,ts,md}": "prettier --write"