@nyig/models 0.2.14 → 0.2.15

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
@@ -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
  }>;
@@ -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;