@nyig/models 0.2.14 → 0.2.17

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.
Files changed (5) hide show
  1. package/index.d.mts +90 -195
  2. package/index.d.ts +90 -195
  3. package/index.js +77 -71
  4. package/index.mjs +78 -72
  5. package/package.json +1 -1
package/index.d.mts CHANGED
@@ -29,6 +29,7 @@ declare const zBPaymentInfo: z.ZodObject<{
29
29
  type BPaymentInfo = z.infer<typeof zBPaymentInfo>;
30
30
 
31
31
  declare const zBUserInfo: z.ZodObject<{
32
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
32
33
  firstName: z.ZodString;
33
34
  lastName: z.ZodString;
34
35
  rank: z.ZodString;
@@ -41,6 +42,7 @@ declare const zBUserInfo: z.ZodObject<{
41
42
  lastName: string;
42
43
  rank: string;
43
44
  email: string;
45
+ userId?: Types.ObjectId | undefined;
44
46
  phone?: string | undefined;
45
47
  address?: string | undefined;
46
48
  notes?: string | undefined;
@@ -49,6 +51,7 @@ declare const zBUserInfo: z.ZodObject<{
49
51
  lastName: string;
50
52
  rank: string;
51
53
  email: string;
54
+ userId?: Types.ObjectId | undefined;
52
55
  phone?: string | undefined;
53
56
  address?: string | undefined;
54
57
  notes?: string | undefined;
@@ -250,6 +253,7 @@ declare const zClassTracker: z.ZodObject<{
250
253
  shipping?: boolean | undefined;
251
254
  }>>;
252
255
  paid: z.ZodOptional<z.ZodBoolean>;
256
+ paused: z.ZodOptional<z.ZodBoolean>;
253
257
  notes: z.ZodOptional<z.ZodString>;
254
258
  }, "strip", z.ZodTypeAny, {
255
259
  student: Types.ObjectId;
@@ -264,6 +268,7 @@ declare const zClassTracker: z.ZodObject<{
264
268
  shipping?: boolean | undefined;
265
269
  } | undefined;
266
270
  paid?: boolean | undefined;
271
+ paused?: boolean | undefined;
267
272
  notes?: string | undefined;
268
273
  }, {
269
274
  student: Types.ObjectId;
@@ -278,6 +283,7 @@ declare const zClassTracker: z.ZodObject<{
278
283
  shipping?: boolean | undefined;
279
284
  } | undefined;
280
285
  paid?: boolean | undefined;
286
+ paused?: boolean | undefined;
281
287
  notes?: string | undefined;
282
288
  }>;
283
289
  declare const zMClassTracker: z.ZodObject<{
@@ -302,6 +308,7 @@ declare const zMClassTracker: z.ZodObject<{
302
308
  classTimes: z.ZodArray<z.ZodDate, "many">;
303
309
  completedList: z.ZodArray<z.ZodBoolean, "many">;
304
310
  completed: z.ZodOptional<z.ZodBoolean>;
311
+ paused: z.ZodOptional<z.ZodBoolean>;
305
312
  _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
306
313
  createdAt: z.ZodOptional<z.ZodDate>;
307
314
  updatedAt: z.ZodOptional<z.ZodDate>;
@@ -320,6 +327,7 @@ declare const zMClassTracker: z.ZodObject<{
320
327
  } | undefined;
321
328
  paid?: boolean | undefined;
322
329
  completed?: boolean | undefined;
330
+ paused?: boolean | undefined;
323
331
  createdAt?: Date | undefined;
324
332
  updatedAt?: Date | undefined;
325
333
  }, {
@@ -337,6 +345,7 @@ declare const zMClassTracker: z.ZodObject<{
337
345
  } | undefined;
338
346
  paid?: boolean | undefined;
339
347
  completed?: boolean | undefined;
348
+ paused?: boolean | undefined;
340
349
  createdAt?: Date | undefined;
341
350
  updatedAt?: Date | undefined;
342
351
  }>;
@@ -384,11 +393,11 @@ declare const zCourse: z.ZodObject<{
384
393
  /**
385
394
  * Camp tuition for half-day option
386
395
  */
387
- halfCampTuition: z.ZodNumber;
396
+ halfCampTuition: z.ZodOptional<z.ZodNumber>;
388
397
  /**
389
398
  * Camp tuition for full-day option
390
399
  */
391
- fullCampTuition: z.ZodNumber;
400
+ fullCampTuition: z.ZodOptional<z.ZodNumber>;
392
401
  }, "strip", z.ZodTypeAny, {
393
402
  price: number;
394
403
  name: string;
@@ -396,9 +405,9 @@ declare const zCourse: z.ZodObject<{
396
405
  duration: number;
397
406
  nyigSchool: NYIGSchool;
398
407
  recLevel: string;
399
- halfCampTuition: number;
400
- fullCampTuition: number;
401
408
  description?: string | undefined;
409
+ halfCampTuition?: number | undefined;
410
+ fullCampTuition?: number | undefined;
402
411
  }, {
403
412
  price: number;
404
413
  name: string;
@@ -406,9 +415,9 @@ declare const zCourse: z.ZodObject<{
406
415
  duration: number;
407
416
  nyigSchool: NYIGSchool;
408
417
  recLevel: string;
409
- halfCampTuition: number;
410
- fullCampTuition: number;
411
418
  description?: string | undefined;
419
+ halfCampTuition?: number | undefined;
420
+ fullCampTuition?: number | undefined;
412
421
  }>;
413
422
  declare const zMCourse: z.ZodObject<{
414
423
  price: z.ZodNumber;
@@ -418,8 +427,8 @@ declare const zMCourse: z.ZodObject<{
418
427
  description: z.ZodOptional<z.ZodString>;
419
428
  nyigSchool: z.ZodNativeEnum<typeof NYIGSchool>;
420
429
  recLevel: z.ZodString;
421
- halfCampTuition: z.ZodNumber;
422
- fullCampTuition: z.ZodNumber;
430
+ halfCampTuition: z.ZodOptional<z.ZodNumber>;
431
+ fullCampTuition: z.ZodOptional<z.ZodNumber>;
423
432
  _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
424
433
  createdAt: z.ZodOptional<z.ZodDate>;
425
434
  updatedAt: z.ZodOptional<z.ZodDate>;
@@ -431,9 +440,9 @@ declare const zMCourse: z.ZodObject<{
431
440
  duration: number;
432
441
  nyigSchool: NYIGSchool;
433
442
  recLevel: string;
434
- halfCampTuition: number;
435
- fullCampTuition: number;
436
443
  description?: string | undefined;
444
+ halfCampTuition?: number | undefined;
445
+ fullCampTuition?: number | undefined;
437
446
  createdAt?: Date | undefined;
438
447
  updatedAt?: Date | undefined;
439
448
  }, {
@@ -444,9 +453,9 @@ declare const zMCourse: z.ZodObject<{
444
453
  duration: number;
445
454
  nyigSchool: NYIGSchool;
446
455
  recLevel: string;
447
- halfCampTuition: number;
448
- fullCampTuition: number;
449
456
  description?: string | undefined;
457
+ halfCampTuition?: number | undefined;
458
+ fullCampTuition?: number | undefined;
450
459
  createdAt?: Date | undefined;
451
460
  updatedAt?: Date | undefined;
452
461
  }>;
@@ -591,6 +600,7 @@ declare const zScheduleData: z.ZodObject<{
591
600
  type ScheduleData = z.infer<typeof zScheduleData>;
592
601
 
593
602
  declare const zCampBooking: z.ZodObject<{
603
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
594
604
  firstName: z.ZodString;
595
605
  lastName: z.ZodString;
596
606
  rank: z.ZodString;
@@ -600,7 +610,6 @@ declare const zCampBooking: z.ZodObject<{
600
610
  notes: z.ZodOptional<z.ZodString>;
601
611
  shipping: z.ZodOptional<z.ZodBoolean>;
602
612
  campOption: z.ZodNativeEnum<typeof CampOption>;
603
- userId: z.ZodOptional<z.ZodString>;
604
613
  ctId: z.ZodOptional<z.ZodString>;
605
614
  isOnline: z.ZodBoolean;
606
615
  classDates: z.ZodString;
@@ -616,11 +625,11 @@ declare const zCampBooking: z.ZodObject<{
616
625
  campOption: CampOption;
617
626
  isOnline: boolean;
618
627
  classDates: string;
628
+ userId?: Types.ObjectId | undefined;
619
629
  phone?: string | undefined;
620
630
  address?: string | undefined;
621
631
  notes?: string | undefined;
622
632
  shipping?: boolean | undefined;
623
- userId?: string | undefined;
624
633
  ctId?: string | undefined;
625
634
  paymentReceived?: boolean | undefined;
626
635
  expireAt?: Date | undefined;
@@ -633,11 +642,11 @@ declare const zCampBooking: z.ZodObject<{
633
642
  campOption: CampOption;
634
643
  isOnline: boolean;
635
644
  classDates: string;
645
+ userId?: Types.ObjectId | undefined;
636
646
  phone?: string | undefined;
637
647
  address?: string | undefined;
638
648
  notes?: string | undefined;
639
649
  shipping?: boolean | undefined;
640
- userId?: string | undefined;
641
650
  ctId?: string | undefined;
642
651
  paymentReceived?: boolean | undefined;
643
652
  expireAt?: Date | undefined;
@@ -646,6 +655,7 @@ declare const zMCampBooking: z.ZodObject<{
646
655
  paymentAmount: z.ZodNumber;
647
656
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
648
657
  expireAt: z.ZodOptional<z.ZodDate>;
658
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
649
659
  firstName: z.ZodString;
650
660
  lastName: z.ZodString;
651
661
  rank: z.ZodString;
@@ -655,11 +665,10 @@ declare const zMCampBooking: z.ZodObject<{
655
665
  notes: z.ZodOptional<z.ZodString>;
656
666
  shipping: z.ZodOptional<z.ZodBoolean>;
657
667
  campOption: z.ZodNativeEnum<typeof CampOption>;
658
- userId: z.ZodOptional<z.ZodString>;
659
668
  ctId: z.ZodOptional<z.ZodString>;
660
669
  isOnline: z.ZodBoolean;
661
670
  classDates: z.ZodString;
662
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
671
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
663
672
  createdAt: z.ZodOptional<z.ZodDate>;
664
673
  updatedAt: z.ZodOptional<z.ZodDate>;
665
674
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -668,17 +677,17 @@ declare const zMCampBooking: z.ZodObject<{
668
677
  lastName: string;
669
678
  rank: string;
670
679
  email: string;
671
- _id: mongoose.Types.ObjectId;
680
+ _id: Types.ObjectId;
672
681
  campOption: CampOption;
673
682
  isOnline: boolean;
674
683
  classDates: string;
675
684
  paymentReceived?: boolean | undefined;
676
685
  expireAt?: Date | undefined;
686
+ userId?: Types.ObjectId | undefined;
677
687
  phone?: string | undefined;
678
688
  address?: string | undefined;
679
689
  notes?: string | undefined;
680
690
  shipping?: boolean | undefined;
681
- userId?: string | undefined;
682
691
  ctId?: string | undefined;
683
692
  createdAt?: Date | undefined;
684
693
  updatedAt?: Date | undefined;
@@ -688,17 +697,17 @@ declare const zMCampBooking: z.ZodObject<{
688
697
  lastName: string;
689
698
  rank: string;
690
699
  email: string;
691
- _id: mongoose.Types.ObjectId;
700
+ _id: Types.ObjectId;
692
701
  campOption: CampOption;
693
702
  isOnline: boolean;
694
703
  classDates: string;
695
704
  paymentReceived?: boolean | undefined;
696
705
  expireAt?: Date | undefined;
706
+ userId?: Types.ObjectId | undefined;
697
707
  phone?: string | undefined;
698
708
  address?: string | undefined;
699
709
  notes?: string | undefined;
700
710
  shipping?: boolean | undefined;
701
- userId?: string | undefined;
702
711
  ctId?: string | undefined;
703
712
  createdAt?: Date | undefined;
704
713
  updatedAt?: Date | undefined;
@@ -707,6 +716,7 @@ type CampBooking = z.infer<typeof zCampBooking>;
707
716
  type MCampBooking = z.infer<typeof zMCampBooking>;
708
717
 
709
718
  declare const zGroupBooking: z.ZodObject<{
719
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
710
720
  firstName: z.ZodString;
711
721
  lastName: z.ZodString;
712
722
  rank: z.ZodString;
@@ -715,9 +725,8 @@ declare const zGroupBooking: z.ZodObject<{
715
725
  address: z.ZodOptional<z.ZodString>;
716
726
  notes: z.ZodOptional<z.ZodString>;
717
727
  shipping: z.ZodOptional<z.ZodBoolean>;
718
- userId: z.ZodOptional<z.ZodString>;
719
728
  isOnline: z.ZodBoolean;
720
- gtId: z.ZodOptional<z.ZodString>;
729
+ gtId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
721
730
  isTrial: z.ZodOptional<z.ZodBoolean>;
722
731
  classDate: z.ZodOptional<z.ZodString>;
723
732
  paymentAmount: z.ZodNumber;
@@ -730,12 +739,12 @@ declare const zGroupBooking: z.ZodObject<{
730
739
  rank: string;
731
740
  email: string;
732
741
  isOnline: boolean;
742
+ userId?: Types.ObjectId | undefined;
733
743
  phone?: string | undefined;
734
744
  address?: string | undefined;
735
745
  notes?: string | undefined;
736
746
  shipping?: boolean | undefined;
737
- userId?: string | undefined;
738
- gtId?: string | undefined;
747
+ gtId?: Types.ObjectId | undefined;
739
748
  isTrial?: boolean | undefined;
740
749
  classDate?: string | undefined;
741
750
  paymentReceived?: boolean | undefined;
@@ -747,12 +756,12 @@ declare const zGroupBooking: z.ZodObject<{
747
756
  rank: string;
748
757
  email: string;
749
758
  isOnline: boolean;
759
+ userId?: Types.ObjectId | undefined;
750
760
  phone?: string | undefined;
751
761
  address?: string | undefined;
752
762
  notes?: string | undefined;
753
763
  shipping?: boolean | undefined;
754
- userId?: string | undefined;
755
- gtId?: string | undefined;
764
+ gtId?: Types.ObjectId | undefined;
756
765
  isTrial?: boolean | undefined;
757
766
  classDate?: string | undefined;
758
767
  paymentReceived?: boolean | undefined;
@@ -762,6 +771,7 @@ declare const zMGroupBooking: z.ZodObject<{
762
771
  paymentAmount: z.ZodNumber;
763
772
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
764
773
  expireAt: z.ZodOptional<z.ZodDate>;
774
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
765
775
  firstName: z.ZodString;
766
776
  lastName: z.ZodString;
767
777
  rank: z.ZodString;
@@ -770,12 +780,11 @@ declare const zMGroupBooking: z.ZodObject<{
770
780
  address: z.ZodOptional<z.ZodString>;
771
781
  notes: z.ZodOptional<z.ZodString>;
772
782
  shipping: z.ZodOptional<z.ZodBoolean>;
773
- userId: z.ZodOptional<z.ZodString>;
774
783
  isOnline: z.ZodBoolean;
775
- gtId: z.ZodOptional<z.ZodString>;
784
+ gtId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
776
785
  isTrial: z.ZodOptional<z.ZodBoolean>;
777
786
  classDate: z.ZodOptional<z.ZodString>;
778
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
787
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
779
788
  createdAt: z.ZodOptional<z.ZodDate>;
780
789
  updatedAt: z.ZodOptional<z.ZodDate>;
781
790
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -784,16 +793,16 @@ declare const zMGroupBooking: z.ZodObject<{
784
793
  lastName: string;
785
794
  rank: string;
786
795
  email: string;
787
- _id: mongoose.Types.ObjectId;
796
+ _id: Types.ObjectId;
788
797
  isOnline: boolean;
789
798
  paymentReceived?: boolean | undefined;
790
799
  expireAt?: Date | undefined;
800
+ userId?: Types.ObjectId | undefined;
791
801
  phone?: string | undefined;
792
802
  address?: string | undefined;
793
803
  notes?: string | undefined;
794
804
  shipping?: boolean | undefined;
795
- userId?: string | undefined;
796
- gtId?: string | undefined;
805
+ gtId?: Types.ObjectId | undefined;
797
806
  isTrial?: boolean | undefined;
798
807
  classDate?: string | undefined;
799
808
  createdAt?: Date | undefined;
@@ -804,16 +813,16 @@ declare const zMGroupBooking: z.ZodObject<{
804
813
  lastName: string;
805
814
  rank: string;
806
815
  email: string;
807
- _id: mongoose.Types.ObjectId;
816
+ _id: Types.ObjectId;
808
817
  isOnline: boolean;
809
818
  paymentReceived?: boolean | undefined;
810
819
  expireAt?: Date | undefined;
820
+ userId?: Types.ObjectId | undefined;
811
821
  phone?: string | undefined;
812
822
  address?: string | undefined;
813
823
  notes?: string | undefined;
814
824
  shipping?: boolean | undefined;
815
- userId?: string | undefined;
816
- gtId?: string | undefined;
825
+ gtId?: Types.ObjectId | undefined;
817
826
  isTrial?: boolean | undefined;
818
827
  classDate?: string | undefined;
819
828
  createdAt?: Date | undefined;
@@ -823,6 +832,7 @@ type GroupBooking = z.infer<typeof zGroupBooking>;
823
832
  type MGroupBooking = z.infer<typeof zMGroupBooking>;
824
833
 
825
834
  declare const zPrivateBooking: z.ZodObject<{
835
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
826
836
  firstName: z.ZodString;
827
837
  lastName: z.ZodString;
828
838
  rank: z.ZodString;
@@ -830,10 +840,9 @@ declare const zPrivateBooking: z.ZodObject<{
830
840
  phone: z.ZodOptional<z.ZodString>;
831
841
  address: z.ZodOptional<z.ZodString>;
832
842
  notes: z.ZodOptional<z.ZodString>;
833
- courseId: z.ZodString;
834
- userId: z.ZodOptional<z.ZodString>;
843
+ courseId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
835
844
  classDate: z.ZodOptional<z.ZodString>;
836
- teacherId: z.ZodString;
845
+ teacherId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
837
846
  paymentAmount: z.ZodNumber;
838
847
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
839
848
  expireAt: z.ZodOptional<z.ZodDate>;
@@ -843,12 +852,12 @@ declare const zPrivateBooking: z.ZodObject<{
843
852
  lastName: string;
844
853
  rank: string;
845
854
  email: string;
846
- courseId: string;
847
- teacherId: string;
855
+ courseId: Types.ObjectId;
856
+ teacherId: Types.ObjectId;
857
+ userId?: Types.ObjectId | undefined;
848
858
  phone?: string | undefined;
849
859
  address?: string | undefined;
850
860
  notes?: string | undefined;
851
- userId?: string | undefined;
852
861
  classDate?: string | undefined;
853
862
  paymentReceived?: boolean | undefined;
854
863
  expireAt?: Date | undefined;
@@ -858,12 +867,12 @@ declare const zPrivateBooking: z.ZodObject<{
858
867
  lastName: string;
859
868
  rank: string;
860
869
  email: string;
861
- courseId: string;
862
- teacherId: string;
870
+ courseId: Types.ObjectId;
871
+ teacherId: Types.ObjectId;
872
+ userId?: Types.ObjectId | undefined;
863
873
  phone?: string | undefined;
864
874
  address?: string | undefined;
865
875
  notes?: string | undefined;
866
- userId?: string | undefined;
867
876
  classDate?: string | undefined;
868
877
  paymentReceived?: boolean | undefined;
869
878
  expireAt?: Date | undefined;
@@ -872,6 +881,7 @@ declare const zMPrivateBooking: z.ZodObject<{
872
881
  paymentAmount: z.ZodNumber;
873
882
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
874
883
  expireAt: z.ZodOptional<z.ZodDate>;
884
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
875
885
  firstName: z.ZodString;
876
886
  lastName: z.ZodString;
877
887
  rank: z.ZodString;
@@ -879,11 +889,10 @@ declare const zMPrivateBooking: z.ZodObject<{
879
889
  phone: z.ZodOptional<z.ZodString>;
880
890
  address: z.ZodOptional<z.ZodString>;
881
891
  notes: z.ZodOptional<z.ZodString>;
882
- courseId: z.ZodString;
883
- userId: z.ZodOptional<z.ZodString>;
892
+ courseId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
884
893
  classDate: z.ZodOptional<z.ZodString>;
885
- teacherId: z.ZodString;
886
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
894
+ teacherId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
895
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
887
896
  createdAt: z.ZodOptional<z.ZodDate>;
888
897
  updatedAt: z.ZodOptional<z.ZodDate>;
889
898
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -892,15 +901,15 @@ declare const zMPrivateBooking: z.ZodObject<{
892
901
  lastName: string;
893
902
  rank: string;
894
903
  email: string;
895
- _id: mongoose.Types.ObjectId;
896
- courseId: string;
897
- teacherId: string;
904
+ _id: Types.ObjectId;
905
+ courseId: Types.ObjectId;
906
+ teacherId: Types.ObjectId;
898
907
  paymentReceived?: boolean | undefined;
899
908
  expireAt?: Date | undefined;
909
+ userId?: Types.ObjectId | undefined;
900
910
  phone?: string | undefined;
901
911
  address?: string | undefined;
902
912
  notes?: string | undefined;
903
- userId?: string | undefined;
904
913
  classDate?: string | undefined;
905
914
  createdAt?: Date | undefined;
906
915
  updatedAt?: Date | undefined;
@@ -910,15 +919,15 @@ declare const zMPrivateBooking: z.ZodObject<{
910
919
  lastName: string;
911
920
  rank: string;
912
921
  email: string;
913
- _id: mongoose.Types.ObjectId;
914
- courseId: string;
915
- teacherId: string;
922
+ _id: Types.ObjectId;
923
+ courseId: Types.ObjectId;
924
+ teacherId: Types.ObjectId;
916
925
  paymentReceived?: boolean | undefined;
917
926
  expireAt?: Date | undefined;
927
+ userId?: Types.ObjectId | undefined;
918
928
  phone?: string | undefined;
919
929
  address?: string | undefined;
920
930
  notes?: string | undefined;
921
- userId?: string | undefined;
922
931
  classDate?: string | undefined;
923
932
  createdAt?: Date | undefined;
924
933
  updatedAt?: Date | undefined;
@@ -1788,6 +1797,7 @@ type DetailsTable = z.infer<typeof zDetailsTable>;
1788
1797
  type ScheduleTable = z.infer<typeof zScheduleTable>;
1789
1798
 
1790
1799
  declare const zTReg: z.ZodObject<{
1800
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1791
1801
  firstName: z.ZodString;
1792
1802
  lastName: z.ZodString;
1793
1803
  rank: z.ZodString;
@@ -1825,6 +1835,7 @@ declare const zTReg: z.ZodObject<{
1825
1835
  }[];
1826
1836
  agaId: string;
1827
1837
  tournamentId: Types.ObjectId;
1838
+ userId?: Types.ObjectId | undefined;
1828
1839
  phone?: string | undefined;
1829
1840
  address?: string | undefined;
1830
1841
  notes?: string | undefined;
@@ -1845,6 +1856,7 @@ declare const zTReg: z.ZodObject<{
1845
1856
  }[];
1846
1857
  agaId: string;
1847
1858
  tournamentId: Types.ObjectId;
1859
+ userId?: Types.ObjectId | undefined;
1848
1860
  phone?: string | undefined;
1849
1861
  address?: string | undefined;
1850
1862
  notes?: string | undefined;
@@ -1858,6 +1870,7 @@ declare const zMTReg: z.ZodObject<{
1858
1870
  paymentAmount: z.ZodNumber;
1859
1871
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
1860
1872
  expireAt: z.ZodOptional<z.ZodDate>;
1873
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1861
1874
  firstName: z.ZodString;
1862
1875
  lastName: z.ZodString;
1863
1876
  rank: z.ZodString;
@@ -1898,6 +1911,7 @@ declare const zMTReg: z.ZodObject<{
1898
1911
  tournamentId: Types.ObjectId;
1899
1912
  paymentReceived?: boolean | undefined;
1900
1913
  expireAt?: Date | undefined;
1914
+ userId?: Types.ObjectId | undefined;
1901
1915
  phone?: string | undefined;
1902
1916
  address?: string | undefined;
1903
1917
  notes?: string | undefined;
@@ -1921,6 +1935,7 @@ declare const zMTReg: z.ZodObject<{
1921
1935
  tournamentId: Types.ObjectId;
1922
1936
  paymentReceived?: boolean | undefined;
1923
1937
  expireAt?: Date | undefined;
1938
+ userId?: Types.ObjectId | undefined;
1924
1939
  phone?: string | undefined;
1925
1940
  address?: string | undefined;
1926
1941
  notes?: string | undefined;
@@ -2058,19 +2073,7 @@ declare const zUser: z.ZodObject<{
2058
2073
  name: z.ZodString;
2059
2074
  username: z.ZodOptional<z.ZodString>;
2060
2075
  password: z.ZodOptional<z.ZodString>;
2061
- roles: z.ZodOptional<z.ZodObject<{
2062
- user: z.ZodNumber;
2063
- admin: z.ZodNumber;
2064
- superadmin: z.ZodNumber;
2065
- }, "strip", z.ZodTypeAny, {
2066
- user: number;
2067
- admin: number;
2068
- superadmin: number;
2069
- }, {
2070
- user: number;
2071
- admin: number;
2072
- superadmin: number;
2073
- }>>;
2076
+ roles: z.ZodArray<z.ZodNumber, "many">;
2074
2077
  email: z.ZodOptional<z.ZodString>;
2075
2078
  address: z.ZodOptional<z.ZodString>;
2076
2079
  country: z.ZodOptional<z.ZodString>;
@@ -2078,13 +2081,9 @@ declare const zUser: z.ZodObject<{
2078
2081
  birthDate: z.ZodOptional<z.ZodString>;
2079
2082
  }, "strip", z.ZodTypeAny, {
2080
2083
  name: string;
2084
+ roles: number[];
2081
2085
  username?: string | undefined;
2082
2086
  password?: string | undefined;
2083
- roles?: {
2084
- user: number;
2085
- admin: number;
2086
- superadmin: number;
2087
- } | undefined;
2088
2087
  email?: string | undefined;
2089
2088
  address?: string | undefined;
2090
2089
  country?: string | undefined;
@@ -2092,13 +2091,9 @@ declare const zUser: z.ZodObject<{
2092
2091
  birthDate?: string | undefined;
2093
2092
  }, {
2094
2093
  name: string;
2094
+ roles: number[];
2095
2095
  username?: string | undefined;
2096
2096
  password?: string | undefined;
2097
- roles?: {
2098
- user: number;
2099
- admin: number;
2100
- superadmin: number;
2101
- } | undefined;
2102
2097
  email?: string | undefined;
2103
2098
  address?: string | undefined;
2104
2099
  country?: string | undefined;
@@ -2111,19 +2106,7 @@ declare const zMUser: z.ZodObject<{
2111
2106
  name: z.ZodString;
2112
2107
  username: z.ZodOptional<z.ZodString>;
2113
2108
  password: z.ZodOptional<z.ZodString>;
2114
- roles: z.ZodOptional<z.ZodObject<{
2115
- user: z.ZodNumber;
2116
- admin: z.ZodNumber;
2117
- superadmin: z.ZodNumber;
2118
- }, "strip", z.ZodTypeAny, {
2119
- user: number;
2120
- admin: number;
2121
- superadmin: number;
2122
- }, {
2123
- user: number;
2124
- admin: number;
2125
- superadmin: number;
2126
- }>>;
2109
+ roles: z.ZodArray<z.ZodNumber, "many">;
2127
2110
  country: z.ZodOptional<z.ZodString>;
2128
2111
  phoneNumber: z.ZodOptional<z.ZodString>;
2129
2112
  birthDate: z.ZodOptional<z.ZodString>;
@@ -2133,15 +2116,11 @@ declare const zMUser: z.ZodObject<{
2133
2116
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2134
2117
  _id: Types.ObjectId;
2135
2118
  name: string;
2119
+ roles: number[];
2136
2120
  email?: string | undefined;
2137
2121
  address?: string | undefined;
2138
2122
  username?: string | undefined;
2139
2123
  password?: string | undefined;
2140
- roles?: {
2141
- user: number;
2142
- admin: number;
2143
- superadmin: number;
2144
- } | undefined;
2145
2124
  country?: string | undefined;
2146
2125
  phoneNumber?: string | undefined;
2147
2126
  birthDate?: string | undefined;
@@ -2150,15 +2129,11 @@ declare const zMUser: z.ZodObject<{
2150
2129
  }, {
2151
2130
  _id: Types.ObjectId;
2152
2131
  name: string;
2132
+ roles: number[];
2153
2133
  email?: string | undefined;
2154
2134
  address?: string | undefined;
2155
2135
  username?: string | undefined;
2156
2136
  password?: string | undefined;
2157
- roles?: {
2158
- user: number;
2159
- admin: number;
2160
- superadmin: number;
2161
- } | undefined;
2162
2137
  country?: string | undefined;
2163
2138
  phoneNumber?: string | undefined;
2164
2139
  birthDate?: string | undefined;
@@ -2171,19 +2146,7 @@ declare const zStudent: z.ZodObject<{
2171
2146
  name: z.ZodString;
2172
2147
  username: z.ZodOptional<z.ZodString>;
2173
2148
  password: z.ZodOptional<z.ZodString>;
2174
- roles: z.ZodOptional<z.ZodObject<{
2175
- user: z.ZodNumber;
2176
- admin: z.ZodNumber;
2177
- superadmin: z.ZodNumber;
2178
- }, "strip", z.ZodTypeAny, {
2179
- user: number;
2180
- admin: number;
2181
- superadmin: number;
2182
- }, {
2183
- user: number;
2184
- admin: number;
2185
- superadmin: number;
2186
- }>>;
2149
+ roles: z.ZodArray<z.ZodNumber, "many">;
2187
2150
  country: z.ZodOptional<z.ZodString>;
2188
2151
  phoneNumber: z.ZodOptional<z.ZodString>;
2189
2152
  birthDate: z.ZodOptional<z.ZodString>;
@@ -2192,15 +2155,11 @@ declare const zStudent: z.ZodObject<{
2192
2155
  }, "strip", z.ZodTypeAny, {
2193
2156
  rank: GoRank;
2194
2157
  name: string;
2158
+ roles: number[];
2195
2159
  email?: string | undefined;
2196
2160
  address?: string | undefined;
2197
2161
  username?: string | undefined;
2198
2162
  password?: string | undefined;
2199
- roles?: {
2200
- user: number;
2201
- admin: number;
2202
- superadmin: number;
2203
- } | undefined;
2204
2163
  country?: string | undefined;
2205
2164
  phoneNumber?: string | undefined;
2206
2165
  birthDate?: string | undefined;
@@ -2208,15 +2167,11 @@ declare const zStudent: z.ZodObject<{
2208
2167
  }, {
2209
2168
  rank: GoRank;
2210
2169
  name: string;
2170
+ roles: number[];
2211
2171
  email?: string | undefined;
2212
2172
  address?: string | undefined;
2213
2173
  username?: string | undefined;
2214
2174
  password?: string | undefined;
2215
- roles?: {
2216
- user: number;
2217
- admin: number;
2218
- superadmin: number;
2219
- } | undefined;
2220
2175
  country?: string | undefined;
2221
2176
  phoneNumber?: string | undefined;
2222
2177
  birthDate?: string | undefined;
@@ -2229,19 +2184,7 @@ declare const zMStudent: z.ZodObject<{
2229
2184
  name: z.ZodString;
2230
2185
  username: z.ZodOptional<z.ZodString>;
2231
2186
  password: z.ZodOptional<z.ZodString>;
2232
- roles: z.ZodOptional<z.ZodObject<{
2233
- user: z.ZodNumber;
2234
- admin: z.ZodNumber;
2235
- superadmin: z.ZodNumber;
2236
- }, "strip", z.ZodTypeAny, {
2237
- user: number;
2238
- admin: number;
2239
- superadmin: number;
2240
- }, {
2241
- user: number;
2242
- admin: number;
2243
- superadmin: number;
2244
- }>>;
2187
+ roles: z.ZodArray<z.ZodNumber, "many">;
2245
2188
  country: z.ZodOptional<z.ZodString>;
2246
2189
  phoneNumber: z.ZodOptional<z.ZodString>;
2247
2190
  birthDate: z.ZodOptional<z.ZodString>;
@@ -2253,15 +2196,11 @@ declare const zMStudent: z.ZodObject<{
2253
2196
  rank: GoRank;
2254
2197
  _id: Types.ObjectId;
2255
2198
  name: string;
2199
+ roles: number[];
2256
2200
  email?: string | undefined;
2257
2201
  address?: string | undefined;
2258
2202
  username?: string | undefined;
2259
2203
  password?: string | undefined;
2260
- roles?: {
2261
- user: number;
2262
- admin: number;
2263
- superadmin: number;
2264
- } | undefined;
2265
2204
  country?: string | undefined;
2266
2205
  phoneNumber?: string | undefined;
2267
2206
  birthDate?: string | undefined;
@@ -2272,15 +2211,11 @@ declare const zMStudent: z.ZodObject<{
2272
2211
  rank: GoRank;
2273
2212
  _id: Types.ObjectId;
2274
2213
  name: string;
2214
+ roles: number[];
2275
2215
  email?: string | undefined;
2276
2216
  address?: string | undefined;
2277
2217
  username?: string | undefined;
2278
2218
  password?: string | undefined;
2279
- roles?: {
2280
- user: number;
2281
- admin: number;
2282
- superadmin: number;
2283
- } | undefined;
2284
2219
  country?: string | undefined;
2285
2220
  phoneNumber?: string | undefined;
2286
2221
  birthDate?: string | undefined;
@@ -2294,19 +2229,7 @@ declare const zTeacher: z.ZodObject<{
2294
2229
  name: z.ZodString;
2295
2230
  username: z.ZodOptional<z.ZodString>;
2296
2231
  password: z.ZodOptional<z.ZodString>;
2297
- roles: z.ZodOptional<z.ZodObject<{
2298
- user: z.ZodNumber;
2299
- admin: z.ZodNumber;
2300
- superadmin: z.ZodNumber;
2301
- }, "strip", z.ZodTypeAny, {
2302
- user: number;
2303
- admin: number;
2304
- superadmin: number;
2305
- }, {
2306
- user: number;
2307
- admin: number;
2308
- superadmin: number;
2309
- }>>;
2232
+ roles: z.ZodArray<z.ZodNumber, "many">;
2310
2233
  country: z.ZodOptional<z.ZodString>;
2311
2234
  phoneNumber: z.ZodOptional<z.ZodString>;
2312
2235
  birthDate: z.ZodOptional<z.ZodString>;
@@ -2318,15 +2241,11 @@ declare const zTeacher: z.ZodObject<{
2318
2241
  }, "strip", z.ZodTypeAny, {
2319
2242
  rank: GoRank;
2320
2243
  name: string;
2244
+ roles: number[];
2321
2245
  email?: string | undefined;
2322
2246
  address?: string | undefined;
2323
2247
  username?: string | undefined;
2324
2248
  password?: string | undefined;
2325
- roles?: {
2326
- user: number;
2327
- admin: number;
2328
- superadmin: number;
2329
- } | undefined;
2330
2249
  country?: string | undefined;
2331
2250
  phoneNumber?: string | undefined;
2332
2251
  birthDate?: string | undefined;
@@ -2337,15 +2256,11 @@ declare const zTeacher: z.ZodObject<{
2337
2256
  }, {
2338
2257
  rank: GoRank;
2339
2258
  name: string;
2259
+ roles: number[];
2340
2260
  email?: string | undefined;
2341
2261
  address?: string | undefined;
2342
2262
  username?: string | undefined;
2343
2263
  password?: string | undefined;
2344
- roles?: {
2345
- user: number;
2346
- admin: number;
2347
- superadmin: number;
2348
- } | undefined;
2349
2264
  country?: string | undefined;
2350
2265
  phoneNumber?: string | undefined;
2351
2266
  birthDate?: string | undefined;
@@ -2363,19 +2278,7 @@ declare const zMTeacher: z.ZodObject<{
2363
2278
  bio: z.ZodOptional<z.ZodString>;
2364
2279
  username: z.ZodOptional<z.ZodString>;
2365
2280
  password: z.ZodOptional<z.ZodString>;
2366
- roles: z.ZodOptional<z.ZodObject<{
2367
- user: z.ZodNumber;
2368
- admin: z.ZodNumber;
2369
- superadmin: z.ZodNumber;
2370
- }, "strip", z.ZodTypeAny, {
2371
- user: number;
2372
- admin: number;
2373
- superadmin: number;
2374
- }, {
2375
- user: number;
2376
- admin: number;
2377
- superadmin: number;
2378
- }>>;
2281
+ roles: z.ZodArray<z.ZodNumber, "many">;
2379
2282
  country: z.ZodOptional<z.ZodString>;
2380
2283
  phoneNumber: z.ZodOptional<z.ZodString>;
2381
2284
  birthDate: z.ZodOptional<z.ZodString>;
@@ -2388,17 +2291,13 @@ declare const zMTeacher: z.ZodObject<{
2388
2291
  rank: GoRank;
2389
2292
  _id: Types.ObjectId;
2390
2293
  name: string;
2294
+ roles: number[];
2391
2295
  email?: string | undefined;
2392
2296
  address?: string | undefined;
2393
2297
  title?: string | undefined;
2394
2298
  bio?: string | undefined;
2395
2299
  username?: string | undefined;
2396
2300
  password?: string | undefined;
2397
- roles?: {
2398
- user: number;
2399
- admin: number;
2400
- superadmin: number;
2401
- } | undefined;
2402
2301
  country?: string | undefined;
2403
2302
  phoneNumber?: string | undefined;
2404
2303
  birthDate?: string | undefined;
@@ -2410,17 +2309,13 @@ declare const zMTeacher: z.ZodObject<{
2410
2309
  rank: GoRank;
2411
2310
  _id: Types.ObjectId;
2412
2311
  name: string;
2312
+ roles: number[];
2413
2313
  email?: string | undefined;
2414
2314
  address?: string | undefined;
2415
2315
  title?: string | undefined;
2416
2316
  bio?: string | undefined;
2417
2317
  username?: string | undefined;
2418
2318
  password?: string | undefined;
2419
- roles?: {
2420
- user: number;
2421
- admin: number;
2422
- superadmin: number;
2423
- } | undefined;
2424
2319
  country?: string | undefined;
2425
2320
  phoneNumber?: string | undefined;
2426
2321
  birthDate?: string | undefined;