@nyig/models 0.5.0 → 0.5.2

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.ZodArray<z.ZodString, "many">;
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.ZodArray<z.ZodString, "many">;
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.ZodArray<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>;
@@ -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;
@@ -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;
@@ -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;
@@ -3516,6 +3516,7 @@ declare const zBInvoice: z.ZodObject<{
3516
3516
  paidAt: z.ZodOptional<z.ZodString>;
3517
3517
  showEin: z.ZodOptional<z.ZodBoolean>;
3518
3518
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
3519
+ feeLabel: z.ZodOptional<z.ZodString>;
3519
3520
  createdBy: z.ZodString;
3520
3521
  }, "strip", z.ZodTypeAny, {
3521
3522
  billTo: string;
@@ -3538,6 +3539,7 @@ declare const zBInvoice: z.ZodObject<{
3538
3539
  paid?: PaymentMethod | undefined;
3539
3540
  paidAt?: string | undefined;
3540
3541
  showEin?: boolean | undefined;
3542
+ feeLabel?: string | undefined;
3541
3543
  }, {
3542
3544
  billTo: string;
3543
3545
  packages: {
@@ -3559,6 +3561,7 @@ declare const zBInvoice: z.ZodObject<{
3559
3561
  paid?: PaymentMethod | undefined;
3560
3562
  paidAt?: string | undefined;
3561
3563
  showEin?: boolean | undefined;
3564
+ feeLabel?: string | undefined;
3562
3565
  }>;
3563
3566
  declare const zInvoice: z.ZodObject<{
3564
3567
  billTo: z.ZodString;
@@ -3608,6 +3611,7 @@ declare const zInvoice: z.ZodObject<{
3608
3611
  paidAt: z.ZodOptional<z.ZodString>;
3609
3612
  showEin: z.ZodOptional<z.ZodBoolean>;
3610
3613
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
3614
+ feeLabel: z.ZodOptional<z.ZodString>;
3611
3615
  createdBy: z.ZodString;
3612
3616
  } & {
3613
3617
  _id: z.ZodString;
@@ -3639,6 +3643,7 @@ declare const zInvoice: z.ZodObject<{
3639
3643
  paid?: PaymentMethod | undefined;
3640
3644
  paidAt?: string | undefined;
3641
3645
  showEin?: boolean | undefined;
3646
+ feeLabel?: string | undefined;
3642
3647
  }, {
3643
3648
  _id: string;
3644
3649
  billTo: string;
@@ -3664,6 +3669,7 @@ declare const zInvoice: z.ZodObject<{
3664
3669
  paid?: PaymentMethod | undefined;
3665
3670
  paidAt?: string | undefined;
3666
3671
  showEin?: boolean | undefined;
3672
+ feeLabel?: string | undefined;
3667
3673
  }>;
3668
3674
  declare const zInvoiceResponse: z.ZodObject<{
3669
3675
  billTo: z.ZodString;
@@ -3683,6 +3689,7 @@ declare const zInvoiceResponse: z.ZodObject<{
3683
3689
  paidAt: z.ZodOptional<z.ZodString>;
3684
3690
  showEin: z.ZodOptional<z.ZodBoolean>;
3685
3691
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
3692
+ feeLabel: z.ZodOptional<z.ZodString>;
3686
3693
  _id: z.ZodString;
3687
3694
  createdAt: z.ZodOptional<z.ZodString>;
3688
3695
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -4109,6 +4116,7 @@ declare const zInvoiceResponse: z.ZodObject<{
4109
4116
  paid?: PaymentMethod | undefined;
4110
4117
  paidAt?: string | undefined;
4111
4118
  showEin?: boolean | undefined;
4119
+ feeLabel?: string | undefined;
4112
4120
  }, {
4113
4121
  _id: string;
4114
4122
  billTo: string;
@@ -4207,6 +4215,7 @@ declare const zInvoiceResponse: z.ZodObject<{
4207
4215
  paid?: PaymentMethod | undefined;
4208
4216
  paidAt?: string | undefined;
4209
4217
  showEin?: boolean | undefined;
4218
+ feeLabel?: string | undefined;
4210
4219
  }>;
4211
4220
  type Discount = z.infer<typeof zDiscount>;
4212
4221
  type InvoiceItem = z.infer<typeof zInvoiceItem>;
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.ZodArray<z.ZodString, "many">;
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.ZodArray<z.ZodString, "many">;
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.ZodArray<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>;
@@ -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;
@@ -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;
@@ -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;
@@ -3516,6 +3516,7 @@ declare const zBInvoice: z.ZodObject<{
3516
3516
  paidAt: z.ZodOptional<z.ZodString>;
3517
3517
  showEin: z.ZodOptional<z.ZodBoolean>;
3518
3518
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
3519
+ feeLabel: z.ZodOptional<z.ZodString>;
3519
3520
  createdBy: z.ZodString;
3520
3521
  }, "strip", z.ZodTypeAny, {
3521
3522
  billTo: string;
@@ -3538,6 +3539,7 @@ declare const zBInvoice: z.ZodObject<{
3538
3539
  paid?: PaymentMethod | undefined;
3539
3540
  paidAt?: string | undefined;
3540
3541
  showEin?: boolean | undefined;
3542
+ feeLabel?: string | undefined;
3541
3543
  }, {
3542
3544
  billTo: string;
3543
3545
  packages: {
@@ -3559,6 +3561,7 @@ declare const zBInvoice: z.ZodObject<{
3559
3561
  paid?: PaymentMethod | undefined;
3560
3562
  paidAt?: string | undefined;
3561
3563
  showEin?: boolean | undefined;
3564
+ feeLabel?: string | undefined;
3562
3565
  }>;
3563
3566
  declare const zInvoice: z.ZodObject<{
3564
3567
  billTo: z.ZodString;
@@ -3608,6 +3611,7 @@ declare const zInvoice: z.ZodObject<{
3608
3611
  paidAt: z.ZodOptional<z.ZodString>;
3609
3612
  showEin: z.ZodOptional<z.ZodBoolean>;
3610
3613
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
3614
+ feeLabel: z.ZodOptional<z.ZodString>;
3611
3615
  createdBy: z.ZodString;
3612
3616
  } & {
3613
3617
  _id: z.ZodString;
@@ -3639,6 +3643,7 @@ declare const zInvoice: z.ZodObject<{
3639
3643
  paid?: PaymentMethod | undefined;
3640
3644
  paidAt?: string | undefined;
3641
3645
  showEin?: boolean | undefined;
3646
+ feeLabel?: string | undefined;
3642
3647
  }, {
3643
3648
  _id: string;
3644
3649
  billTo: string;
@@ -3664,6 +3669,7 @@ declare const zInvoice: z.ZodObject<{
3664
3669
  paid?: PaymentMethod | undefined;
3665
3670
  paidAt?: string | undefined;
3666
3671
  showEin?: boolean | undefined;
3672
+ feeLabel?: string | undefined;
3667
3673
  }>;
3668
3674
  declare const zInvoiceResponse: z.ZodObject<{
3669
3675
  billTo: z.ZodString;
@@ -3683,6 +3689,7 @@ declare const zInvoiceResponse: z.ZodObject<{
3683
3689
  paidAt: z.ZodOptional<z.ZodString>;
3684
3690
  showEin: z.ZodOptional<z.ZodBoolean>;
3685
3691
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
3692
+ feeLabel: z.ZodOptional<z.ZodString>;
3686
3693
  _id: z.ZodString;
3687
3694
  createdAt: z.ZodOptional<z.ZodString>;
3688
3695
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -4109,6 +4116,7 @@ declare const zInvoiceResponse: z.ZodObject<{
4109
4116
  paid?: PaymentMethod | undefined;
4110
4117
  paidAt?: string | undefined;
4111
4118
  showEin?: boolean | undefined;
4119
+ feeLabel?: string | undefined;
4112
4120
  }, {
4113
4121
  _id: string;
4114
4122
  billTo: string;
@@ -4207,6 +4215,7 @@ declare const zInvoiceResponse: z.ZodObject<{
4207
4215
  paid?: PaymentMethod | undefined;
4208
4216
  paidAt?: string | undefined;
4209
4217
  showEin?: boolean | undefined;
4218
+ feeLabel?: string | undefined;
4210
4219
  }>;
4211
4220
  type Discount = z.infer<typeof zDiscount>;
4212
4221
  type InvoiceItem = z.infer<typeof zInvoiceItem>;
package/index.js CHANGED
@@ -483,7 +483,7 @@ var zSemester = addAutoProps(zBSemester);
483
483
  var MAX_TEACHERS = 10;
484
484
  var zBCampTracker = import_zod13.z.object({
485
485
  course: import_zod13.z.string(),
486
- teacher: 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
+ 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`),
487
487
  semester: import_zod13.z.string(),
488
488
  /**
489
489
  * occurrences are tracked by week for camps
@@ -500,7 +500,7 @@ var zBCampTracker = import_zod13.z.object({
500
500
  var zCampTracker = addAutoProps(zBCampTracker);
501
501
  var zCampTrackerResponse = zCampTracker.extend({
502
502
  course: zCourse,
503
- teacher: 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
+ 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`),
504
504
  semester: zSemester,
505
505
  attendances: import_zod13.z.array(zAttendanceResponse)
506
506
  });
@@ -682,6 +682,7 @@ var zBInvoice = import_zod22.z.object({
682
682
  paidAt: import_zod22.z.string().optional(),
683
683
  showEin: import_zod22.z.boolean().optional(),
684
684
  notes: import_zod22.z.string().or(import_zod22.z.literal("")).optional(),
685
+ feeLabel: import_zod22.z.string().optional(),
685
686
  createdBy: import_zod22.z.string()
686
687
  });
687
688
  var zInvoice = addAutoProps(zBInvoice);
package/index.mjs CHANGED
@@ -375,7 +375,7 @@ var zSemester = addAutoProps(zBSemester);
375
375
  var MAX_TEACHERS = 10;
376
376
  var zBCampTracker = z13.object({
377
377
  course: z13.string(),
378
- teacher: 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
+ 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`),
379
379
  semester: z13.string(),
380
380
  /**
381
381
  * occurrences are tracked by week for camps
@@ -392,7 +392,7 @@ var zBCampTracker = z13.object({
392
392
  var zCampTracker = addAutoProps(zBCampTracker);
393
393
  var zCampTrackerResponse = zCampTracker.extend({
394
394
  course: zCourse,
395
- teacher: z13.array(zTeacher).min(1, "Camp must have at least 1 teacher").max(MAX_TEACHERS, `Camp can have at most ${MAX_TEACHERS} teachers`),
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`),
396
396
  semester: zSemester,
397
397
  attendances: z13.array(zAttendanceResponse)
398
398
  });
@@ -574,6 +574,7 @@ var zBInvoice = z22.object({
574
574
  paidAt: z22.string().optional(),
575
575
  showEin: z22.boolean().optional(),
576
576
  notes: z22.string().or(z22.literal("")).optional(),
577
+ feeLabel: z22.string().optional(),
577
578
  createdBy: z22.string()
578
579
  });
579
580
  var zInvoice = addAutoProps(zBInvoice);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
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"