@nyig/models 0.2.12 → 0.2.14

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 +212 -262
  2. package/index.d.ts +212 -262
  3. package/index.js +35 -70
  4. package/index.mjs +35 -70
  5. package/package.json +1 -1
package/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import * as mongoose from 'mongoose';
3
+ import { Types } from 'mongoose';
3
4
 
4
5
  declare const zBPaymentInfo: z.ZodObject<{
5
6
  /**
@@ -74,7 +75,7 @@ declare enum CampOption {
74
75
  }
75
76
 
76
77
  declare const zAttendance: z.ZodObject<{
77
- student: z.ZodString;
78
+ student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
78
79
  states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
79
80
  tuition: z.ZodObject<{
80
81
  primary: z.ZodNumber;
@@ -92,7 +93,7 @@ declare const zAttendance: z.ZodObject<{
92
93
  paid: z.ZodOptional<z.ZodBoolean>;
93
94
  campOption: z.ZodNativeEnum<typeof CampOption>;
94
95
  }, "strip", z.ZodTypeAny, {
95
- student: string;
96
+ student: Types.ObjectId;
96
97
  states: AttendState[];
97
98
  tuition: {
98
99
  primary: number;
@@ -102,7 +103,7 @@ declare const zAttendance: z.ZodObject<{
102
103
  campOption: CampOption;
103
104
  paid?: boolean | undefined;
104
105
  }, {
105
- student: string;
106
+ student: Types.ObjectId;
106
107
  states: AttendState[];
107
108
  tuition: {
108
109
  primary: number;
@@ -113,7 +114,7 @@ declare const zAttendance: z.ZodObject<{
113
114
  paid?: boolean | undefined;
114
115
  }>;
115
116
  declare const zMAttendance: z.ZodObject<{
116
- student: z.ZodString;
117
+ student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
117
118
  states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
118
119
  tuition: z.ZodObject<{
119
120
  primary: z.ZodNumber;
@@ -130,12 +131,12 @@ declare const zMAttendance: z.ZodObject<{
130
131
  }>;
131
132
  paid: z.ZodOptional<z.ZodBoolean>;
132
133
  campOption: z.ZodNativeEnum<typeof CampOption>;
133
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
134
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
134
135
  createdAt: z.ZodOptional<z.ZodDate>;
135
136
  updatedAt: z.ZodOptional<z.ZodDate>;
136
137
  }, z.UnknownKeysParam, z.ZodTypeAny, {
137
- _id: mongoose.Types.ObjectId;
138
- student: string;
138
+ _id: Types.ObjectId;
139
+ student: Types.ObjectId;
139
140
  states: AttendState[];
140
141
  tuition: {
141
142
  primary: number;
@@ -147,8 +148,8 @@ declare const zMAttendance: z.ZodObject<{
147
148
  createdAt?: Date | undefined;
148
149
  updatedAt?: Date | undefined;
149
150
  }, {
150
- _id: mongoose.Types.ObjectId;
151
- student: string;
151
+ _id: Types.ObjectId;
152
+ student: Types.ObjectId;
152
153
  states: AttendState[];
153
154
  tuition: {
154
155
  primary: number;
@@ -164,18 +165,9 @@ type Attendance = z.infer<typeof zAttendance>;
164
165
  type MAttendance = z.infer<typeof zMAttendance>;
165
166
 
166
167
  declare const zCampTracker: z.ZodObject<{
167
- /**
168
- * Mongoose object ID
169
- */
170
- course: z.ZodString;
171
- /**
172
- * Mongoose object ID
173
- */
174
- teacher: z.ZodString;
175
- /**
176
- * Mongoose object ID
177
- */
178
- semester: z.ZodString;
168
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
169
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
170
+ semester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
179
171
  /**
180
172
  * occurrences are tracked by week for camps
181
173
  */
@@ -186,45 +178,45 @@ declare const zCampTracker: z.ZodObject<{
186
178
  attendances: z.ZodArray<z.ZodString, "many">;
187
179
  notes: z.ZodOptional<z.ZodString>;
188
180
  }, "strip", z.ZodTypeAny, {
189
- course: string;
190
- teacher: string;
191
- semester: string;
181
+ course: Types.ObjectId;
182
+ teacher: Types.ObjectId;
183
+ semester: Types.ObjectId;
192
184
  occurrences: string[];
193
185
  attendances: string[];
194
186
  notes?: string | undefined;
195
187
  }, {
196
- course: string;
197
- teacher: string;
198
- semester: string;
188
+ course: Types.ObjectId;
189
+ teacher: Types.ObjectId;
190
+ semester: Types.ObjectId;
199
191
  occurrences: string[];
200
192
  attendances: string[];
201
193
  notes?: string | undefined;
202
194
  }>;
203
195
  declare const zMCampTracker: z.ZodObject<{
204
196
  notes: z.ZodOptional<z.ZodString>;
205
- course: z.ZodString;
206
- teacher: z.ZodString;
207
- semester: z.ZodString;
197
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
198
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
199
+ semester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
208
200
  occurrences: z.ZodArray<z.ZodString, "many">;
209
201
  attendances: z.ZodArray<z.ZodString, "many">;
210
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
202
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
211
203
  createdAt: z.ZodOptional<z.ZodDate>;
212
204
  updatedAt: z.ZodOptional<z.ZodDate>;
213
205
  }, z.UnknownKeysParam, z.ZodTypeAny, {
214
- _id: mongoose.Types.ObjectId;
215
- course: string;
216
- teacher: string;
217
- semester: string;
206
+ _id: Types.ObjectId;
207
+ course: Types.ObjectId;
208
+ teacher: Types.ObjectId;
209
+ semester: Types.ObjectId;
218
210
  occurrences: string[];
219
211
  attendances: string[];
220
212
  notes?: string | undefined;
221
213
  createdAt?: Date | undefined;
222
214
  updatedAt?: Date | undefined;
223
215
  }, {
224
- _id: mongoose.Types.ObjectId;
225
- course: string;
226
- teacher: string;
227
- semester: string;
216
+ _id: Types.ObjectId;
217
+ course: Types.ObjectId;
218
+ teacher: Types.ObjectId;
219
+ semester: Types.ObjectId;
228
220
  occurrences: string[];
229
221
  attendances: string[];
230
222
  notes?: string | undefined;
@@ -235,18 +227,9 @@ type CampTracker = z.infer<typeof zCampTracker>;
235
227
  type MCampTracker = z.infer<typeof zMCampTracker>;
236
228
 
237
229
  declare const zClassTracker: z.ZodObject<{
238
- /**
239
- * Mongoose object ID
240
- */
241
- course: z.ZodString;
242
- /**
243
- * Mongoose object ID
244
- */
245
- teacher: z.ZodString;
246
- /**
247
- * Mongoose object ID
248
- */
249
- semester: z.ZodString;
230
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
231
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
232
+ student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
250
233
  classTimes: z.ZodArray<z.ZodDate, "many">;
251
234
  completedList: z.ZodArray<z.ZodBoolean, "many">;
252
235
  /**
@@ -269,9 +252,9 @@ declare const zClassTracker: z.ZodObject<{
269
252
  paid: z.ZodOptional<z.ZodBoolean>;
270
253
  notes: z.ZodOptional<z.ZodString>;
271
254
  }, "strip", z.ZodTypeAny, {
272
- course: string;
273
- teacher: string;
274
- semester: string;
255
+ student: Types.ObjectId;
256
+ course: Types.ObjectId;
257
+ teacher: Types.ObjectId;
275
258
  classTimes: Date[];
276
259
  completedList: boolean[];
277
260
  completed?: boolean | undefined;
@@ -283,9 +266,9 @@ declare const zClassTracker: z.ZodObject<{
283
266
  paid?: boolean | undefined;
284
267
  notes?: string | undefined;
285
268
  }, {
286
- course: string;
287
- teacher: string;
288
- semester: string;
269
+ student: Types.ObjectId;
270
+ course: Types.ObjectId;
271
+ teacher: Types.ObjectId;
289
272
  classTimes: Date[];
290
273
  completedList: boolean[];
291
274
  completed?: boolean | undefined;
@@ -299,6 +282,7 @@ declare const zClassTracker: z.ZodObject<{
299
282
  }>;
300
283
  declare const zMClassTracker: z.ZodObject<{
301
284
  notes: z.ZodOptional<z.ZodString>;
285
+ student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
302
286
  tuition: z.ZodOptional<z.ZodObject<{
303
287
  primary: z.ZodNumber;
304
288
  textbook: z.ZodOptional<z.ZodBoolean>;
@@ -313,20 +297,19 @@ declare const zMClassTracker: z.ZodObject<{
313
297
  shipping?: boolean | undefined;
314
298
  }>>;
315
299
  paid: z.ZodOptional<z.ZodBoolean>;
316
- course: z.ZodString;
317
- teacher: z.ZodString;
318
- semester: z.ZodString;
300
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
301
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
319
302
  classTimes: z.ZodArray<z.ZodDate, "many">;
320
303
  completedList: z.ZodArray<z.ZodBoolean, "many">;
321
304
  completed: z.ZodOptional<z.ZodBoolean>;
322
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
305
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
323
306
  createdAt: z.ZodOptional<z.ZodDate>;
324
307
  updatedAt: z.ZodOptional<z.ZodDate>;
325
308
  }, z.UnknownKeysParam, z.ZodTypeAny, {
326
- _id: mongoose.Types.ObjectId;
327
- course: string;
328
- teacher: string;
329
- semester: string;
309
+ _id: Types.ObjectId;
310
+ student: Types.ObjectId;
311
+ course: Types.ObjectId;
312
+ teacher: Types.ObjectId;
330
313
  classTimes: Date[];
331
314
  completedList: boolean[];
332
315
  notes?: string | undefined;
@@ -340,10 +323,10 @@ declare const zMClassTracker: z.ZodObject<{
340
323
  createdAt?: Date | undefined;
341
324
  updatedAt?: Date | undefined;
342
325
  }, {
343
- _id: mongoose.Types.ObjectId;
344
- course: string;
345
- teacher: string;
346
- semester: string;
326
+ _id: Types.ObjectId;
327
+ student: Types.ObjectId;
328
+ course: Types.ObjectId;
329
+ teacher: Types.ObjectId;
347
330
  classTimes: Date[];
348
331
  completedList: boolean[];
349
332
  notes?: string | undefined;
@@ -471,18 +454,9 @@ type Course = z.infer<typeof zCourse>;
471
454
  type MCourse = z.infer<typeof zMCourse>;
472
455
 
473
456
  declare const zGroupTracker: z.ZodObject<{
474
- /**
475
- * Mongoose object ID
476
- */
477
- course: z.ZodString;
478
- /**
479
- * Mongoose object ID
480
- */
481
- teacher: z.ZodString;
482
- /**
483
- * Mongoose object ID
484
- */
485
- semester: z.ZodString;
457
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
458
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
459
+ semester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
486
460
  scheduleData: z.ZodObject<{
487
461
  startTime: z.ZodString;
488
462
  dayOfWeek: z.ZodNumber;
@@ -500,9 +474,9 @@ declare const zGroupTracker: z.ZodObject<{
500
474
  /**
501
475
  * attendances are tracked by week for Groups
502
476
  */
503
- attendances: z.ZodArray<z.ZodString, "many">;
477
+ attendances: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
504
478
  /**
505
- * ID of the course instance, e.g., 101
479
+ * public-facing ID of the course instance, e.g., 101
506
480
  */
507
481
  courseId: z.ZodOptional<z.ZodString>;
508
482
  /**
@@ -515,11 +489,11 @@ declare const zGroupTracker: z.ZodObject<{
515
489
  isNonPublic: z.ZodOptional<z.ZodBoolean>;
516
490
  notes: z.ZodOptional<z.ZodString>;
517
491
  }, "strip", z.ZodTypeAny, {
518
- course: string;
519
- teacher: string;
520
- semester: string;
492
+ course: Types.ObjectId;
493
+ teacher: Types.ObjectId;
494
+ semester: Types.ObjectId;
521
495
  occurrences: Date[];
522
- attendances: string[];
496
+ attendances: Types.ObjectId[];
523
497
  scheduleData: {
524
498
  startTime: string;
525
499
  dayOfWeek: number;
@@ -529,11 +503,11 @@ declare const zGroupTracker: z.ZodObject<{
529
503
  isNonPublic?: boolean | undefined;
530
504
  notes?: string | undefined;
531
505
  }, {
532
- course: string;
533
- teacher: string;
534
- semester: string;
506
+ course: Types.ObjectId;
507
+ teacher: Types.ObjectId;
508
+ semester: Types.ObjectId;
535
509
  occurrences: Date[];
536
- attendances: string[];
510
+ attendances: Types.ObjectId[];
537
511
  scheduleData: {
538
512
  startTime: string;
539
513
  dayOfWeek: number;
@@ -545,11 +519,11 @@ declare const zGroupTracker: z.ZodObject<{
545
519
  }>;
546
520
  declare const zMGroupTracker: z.ZodObject<{
547
521
  notes: z.ZodOptional<z.ZodString>;
548
- course: z.ZodString;
549
- teacher: z.ZodString;
550
- semester: z.ZodString;
522
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
523
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
524
+ semester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
551
525
  occurrences: z.ZodArray<z.ZodDate, "many">;
552
- attendances: z.ZodArray<z.ZodString, "many">;
526
+ attendances: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
553
527
  scheduleData: z.ZodObject<{
554
528
  startTime: z.ZodString;
555
529
  dayOfWeek: z.ZodNumber;
@@ -563,16 +537,16 @@ declare const zMGroupTracker: z.ZodObject<{
563
537
  courseId: z.ZodOptional<z.ZodString>;
564
538
  ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
565
539
  isNonPublic: z.ZodOptional<z.ZodBoolean>;
566
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
540
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
567
541
  createdAt: z.ZodOptional<z.ZodDate>;
568
542
  updatedAt: z.ZodOptional<z.ZodDate>;
569
543
  }, z.UnknownKeysParam, z.ZodTypeAny, {
570
- _id: mongoose.Types.ObjectId;
571
- course: string;
572
- teacher: string;
573
- semester: string;
544
+ _id: Types.ObjectId;
545
+ course: Types.ObjectId;
546
+ teacher: Types.ObjectId;
547
+ semester: Types.ObjectId;
574
548
  occurrences: Date[];
575
- attendances: string[];
549
+ attendances: Types.ObjectId[];
576
550
  scheduleData: {
577
551
  startTime: string;
578
552
  dayOfWeek: number;
@@ -584,12 +558,12 @@ declare const zMGroupTracker: z.ZodObject<{
584
558
  createdAt?: Date | undefined;
585
559
  updatedAt?: Date | undefined;
586
560
  }, {
587
- _id: mongoose.Types.ObjectId;
588
- course: string;
589
- teacher: string;
590
- semester: string;
561
+ _id: Types.ObjectId;
562
+ course: Types.ObjectId;
563
+ teacher: Types.ObjectId;
564
+ semester: Types.ObjectId;
591
565
  occurrences: Date[];
592
- attendances: string[];
566
+ attendances: Types.ObjectId[];
593
567
  scheduleData: {
594
568
  startTime: string;
595
569
  dayOfWeek: number;
@@ -970,53 +944,44 @@ declare const zDiscount: z.ZodObject<{
970
944
  amount: number;
971
945
  }>;
972
946
  declare const zInvoiceItem: z.ZodObject<{
973
- /**
974
- * Mongoose object ID
975
- */
976
- course: z.ZodString;
947
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
977
948
  price: z.ZodNumber;
978
949
  units: z.ZodNumber;
979
950
  }, "strip", z.ZodTypeAny, {
980
- course: string;
951
+ course: Types.ObjectId;
981
952
  price: number;
982
953
  units: number;
983
954
  }, {
984
- course: string;
955
+ course: Types.ObjectId;
985
956
  price: number;
986
957
  units: number;
987
958
  }>;
988
959
  declare const zInvoicePackage: z.ZodObject<{
989
- /**
990
- * Mongoose object ID
991
- */
992
- student: z.ZodString;
960
+ student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
993
961
  items: z.ZodArray<z.ZodObject<{
994
- /**
995
- * Mongoose object ID
996
- */
997
- course: z.ZodString;
962
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
998
963
  price: z.ZodNumber;
999
964
  units: z.ZodNumber;
1000
965
  }, "strip", z.ZodTypeAny, {
1001
- course: string;
966
+ course: Types.ObjectId;
1002
967
  price: number;
1003
968
  units: number;
1004
969
  }, {
1005
- course: string;
970
+ course: Types.ObjectId;
1006
971
  price: number;
1007
972
  units: number;
1008
973
  }>, "many">;
1009
974
  }, "strip", z.ZodTypeAny, {
1010
- student: string;
975
+ student: Types.ObjectId;
1011
976
  items: {
1012
- course: string;
977
+ course: Types.ObjectId;
1013
978
  price: number;
1014
979
  units: number;
1015
980
  }[];
1016
981
  }, {
1017
- student: string;
982
+ student: Types.ObjectId;
1018
983
  items: {
1019
- course: string;
984
+ course: Types.ObjectId;
1020
985
  price: number;
1021
986
  units: number;
1022
987
  }[];
@@ -1024,37 +989,31 @@ declare const zInvoicePackage: z.ZodObject<{
1024
989
  declare const zInvoice: z.ZodObject<{
1025
990
  billTo: z.ZodString;
1026
991
  packages: z.ZodArray<z.ZodObject<{
1027
- /**
1028
- * Mongoose object ID
1029
- */
1030
- student: z.ZodString;
992
+ student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1031
993
  items: z.ZodArray<z.ZodObject<{
1032
- /**
1033
- * Mongoose object ID
1034
- */
1035
- course: z.ZodString;
994
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1036
995
  price: z.ZodNumber;
1037
996
  units: z.ZodNumber;
1038
997
  }, "strip", z.ZodTypeAny, {
1039
- course: string;
998
+ course: Types.ObjectId;
1040
999
  price: number;
1041
1000
  units: number;
1042
1001
  }, {
1043
- course: string;
1002
+ course: Types.ObjectId;
1044
1003
  price: number;
1045
1004
  units: number;
1046
1005
  }>, "many">;
1047
1006
  }, "strip", z.ZodTypeAny, {
1048
- student: string;
1007
+ student: Types.ObjectId;
1049
1008
  items: {
1050
- course: string;
1009
+ course: Types.ObjectId;
1051
1010
  price: number;
1052
1011
  units: number;
1053
1012
  }[];
1054
1013
  }, {
1055
- student: string;
1014
+ student: Types.ObjectId;
1056
1015
  items: {
1057
- course: string;
1016
+ course: Types.ObjectId;
1058
1017
  price: number;
1059
1018
  units: number;
1060
1019
  }[];
@@ -1073,20 +1032,14 @@ declare const zInvoice: z.ZodObject<{
1073
1032
  shipping: z.ZodOptional<z.ZodNumber>;
1074
1033
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
1075
1034
  notes: z.ZodOptional<z.ZodString>;
1076
- /**
1077
- * Mongoose object ID
1078
- */
1079
- createdBy: z.ZodString;
1080
- /**
1081
- * Mongoose object ID
1082
- */
1083
- lastEditBy: z.ZodOptional<z.ZodString>;
1035
+ createdBy: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1036
+ lastEditBy: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1084
1037
  }, "strip", z.ZodTypeAny, {
1085
1038
  billTo: string;
1086
1039
  packages: {
1087
- student: string;
1040
+ student: Types.ObjectId;
1088
1041
  items: {
1089
- course: string;
1042
+ course: Types.ObjectId;
1090
1043
  price: number;
1091
1044
  units: number;
1092
1045
  }[];
@@ -1095,18 +1048,18 @@ declare const zInvoice: z.ZodObject<{
1095
1048
  desc: string;
1096
1049
  amount: number;
1097
1050
  }[];
1098
- createdBy: string;
1051
+ createdBy: Types.ObjectId;
1099
1052
  textbook?: number | undefined;
1100
1053
  shipping?: number | undefined;
1101
1054
  paid?: PaymentMethod | undefined;
1102
1055
  notes?: string | undefined;
1103
- lastEditBy?: string | undefined;
1056
+ lastEditBy?: Types.ObjectId | undefined;
1104
1057
  }, {
1105
1058
  billTo: string;
1106
1059
  packages: {
1107
- student: string;
1060
+ student: Types.ObjectId;
1108
1061
  items: {
1109
- course: string;
1062
+ course: Types.ObjectId;
1110
1063
  price: number;
1111
1064
  units: number;
1112
1065
  }[];
@@ -1115,12 +1068,12 @@ declare const zInvoice: z.ZodObject<{
1115
1068
  desc: string;
1116
1069
  amount: number;
1117
1070
  }[];
1118
- createdBy: string;
1071
+ createdBy: Types.ObjectId;
1119
1072
  textbook?: number | undefined;
1120
1073
  shipping?: number | undefined;
1121
1074
  paid?: PaymentMethod | undefined;
1122
1075
  notes?: string | undefined;
1123
- lastEditBy?: string | undefined;
1076
+ lastEditBy?: Types.ObjectId | undefined;
1124
1077
  }>;
1125
1078
  declare const zMInvoice: z.ZodObject<{
1126
1079
  notes: z.ZodOptional<z.ZodString>;
@@ -1129,37 +1082,31 @@ declare const zMInvoice: z.ZodObject<{
1129
1082
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
1130
1083
  billTo: z.ZodString;
1131
1084
  packages: z.ZodArray<z.ZodObject<{
1132
- /**
1133
- * Mongoose object ID
1134
- */
1135
- student: z.ZodString;
1085
+ student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1136
1086
  items: z.ZodArray<z.ZodObject<{
1137
- /**
1138
- * Mongoose object ID
1139
- */
1140
- course: z.ZodString;
1087
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1141
1088
  price: z.ZodNumber;
1142
1089
  units: z.ZodNumber;
1143
1090
  }, "strip", z.ZodTypeAny, {
1144
- course: string;
1091
+ course: Types.ObjectId;
1145
1092
  price: number;
1146
1093
  units: number;
1147
1094
  }, {
1148
- course: string;
1095
+ course: Types.ObjectId;
1149
1096
  price: number;
1150
1097
  units: number;
1151
1098
  }>, "many">;
1152
1099
  }, "strip", z.ZodTypeAny, {
1153
- student: string;
1100
+ student: Types.ObjectId;
1154
1101
  items: {
1155
- course: string;
1102
+ course: Types.ObjectId;
1156
1103
  price: number;
1157
1104
  units: number;
1158
1105
  }[];
1159
1106
  }, {
1160
- student: string;
1107
+ student: Types.ObjectId;
1161
1108
  items: {
1162
- course: string;
1109
+ course: Types.ObjectId;
1163
1110
  price: number;
1164
1111
  units: number;
1165
1112
  }[];
@@ -1174,18 +1121,18 @@ declare const zMInvoice: z.ZodObject<{
1174
1121
  desc: string;
1175
1122
  amount: number;
1176
1123
  }>, "many">;
1177
- createdBy: z.ZodString;
1178
- lastEditBy: z.ZodOptional<z.ZodString>;
1179
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1124
+ createdBy: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1125
+ lastEditBy: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1126
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1180
1127
  createdAt: z.ZodOptional<z.ZodDate>;
1181
1128
  updatedAt: z.ZodOptional<z.ZodDate>;
1182
1129
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1183
- _id: mongoose.Types.ObjectId;
1130
+ _id: Types.ObjectId;
1184
1131
  billTo: string;
1185
1132
  packages: {
1186
- student: string;
1133
+ student: Types.ObjectId;
1187
1134
  items: {
1188
- course: string;
1135
+ course: Types.ObjectId;
1189
1136
  price: number;
1190
1137
  units: number;
1191
1138
  }[];
@@ -1194,21 +1141,21 @@ declare const zMInvoice: z.ZodObject<{
1194
1141
  desc: string;
1195
1142
  amount: number;
1196
1143
  }[];
1197
- createdBy: string;
1144
+ createdBy: Types.ObjectId;
1198
1145
  notes?: string | undefined;
1199
1146
  textbook?: number | undefined;
1200
1147
  shipping?: number | undefined;
1201
1148
  paid?: PaymentMethod | undefined;
1202
- lastEditBy?: string | undefined;
1149
+ lastEditBy?: Types.ObjectId | undefined;
1203
1150
  createdAt?: Date | undefined;
1204
1151
  updatedAt?: Date | undefined;
1205
1152
  }, {
1206
- _id: mongoose.Types.ObjectId;
1153
+ _id: Types.ObjectId;
1207
1154
  billTo: string;
1208
1155
  packages: {
1209
- student: string;
1156
+ student: Types.ObjectId;
1210
1157
  items: {
1211
- course: string;
1158
+ course: Types.ObjectId;
1212
1159
  price: number;
1213
1160
  units: number;
1214
1161
  }[];
@@ -1217,12 +1164,12 @@ declare const zMInvoice: z.ZodObject<{
1217
1164
  desc: string;
1218
1165
  amount: number;
1219
1166
  }[];
1220
- createdBy: string;
1167
+ createdBy: Types.ObjectId;
1221
1168
  notes?: string | undefined;
1222
1169
  textbook?: number | undefined;
1223
1170
  shipping?: number | undefined;
1224
1171
  paid?: PaymentMethod | undefined;
1225
- lastEditBy?: string | undefined;
1172
+ lastEditBy?: Types.ObjectId | undefined;
1226
1173
  createdAt?: Date | undefined;
1227
1174
  updatedAt?: Date | undefined;
1228
1175
  }>;
@@ -1254,7 +1201,7 @@ declare const zTeacherPaymentRow: z.ZodObject<{
1254
1201
  wage: number;
1255
1202
  }>;
1256
1203
  declare const zTeacherPayment: z.ZodObject<{
1257
- teacher: z.ZodString;
1204
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1258
1205
  rows: z.ZodArray<z.ZodObject<{
1259
1206
  course: z.ZodString;
1260
1207
  length: z.ZodNumber;
@@ -1273,7 +1220,7 @@ declare const zTeacherPayment: z.ZodObject<{
1273
1220
  }>, "many">;
1274
1221
  paid: z.ZodOptional<z.ZodBoolean>;
1275
1222
  }, "strip", z.ZodTypeAny, {
1276
- teacher: string;
1223
+ teacher: Types.ObjectId;
1277
1224
  rows: {
1278
1225
  length: number;
1279
1226
  course: string;
@@ -1282,7 +1229,7 @@ declare const zTeacherPayment: z.ZodObject<{
1282
1229
  }[];
1283
1230
  paid?: boolean | undefined;
1284
1231
  }, {
1285
- teacher: string;
1232
+ teacher: Types.ObjectId;
1286
1233
  rows: {
1287
1234
  length: number;
1288
1235
  course: string;
@@ -1293,7 +1240,7 @@ declare const zTeacherPayment: z.ZodObject<{
1293
1240
  }>;
1294
1241
  declare const zMTeacherPayment: z.ZodObject<{
1295
1242
  paid: z.ZodOptional<z.ZodBoolean>;
1296
- teacher: z.ZodString;
1243
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1297
1244
  rows: z.ZodArray<z.ZodObject<{
1298
1245
  course: z.ZodString;
1299
1246
  length: z.ZodNumber;
@@ -1310,12 +1257,12 @@ declare const zMTeacherPayment: z.ZodObject<{
1310
1257
  count: number;
1311
1258
  wage: number;
1312
1259
  }>, "many">;
1313
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1260
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1314
1261
  createdAt: z.ZodOptional<z.ZodDate>;
1315
1262
  updatedAt: z.ZodOptional<z.ZodDate>;
1316
1263
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1317
- _id: mongoose.Types.ObjectId;
1318
- teacher: string;
1264
+ _id: Types.ObjectId;
1265
+ teacher: Types.ObjectId;
1319
1266
  rows: {
1320
1267
  length: number;
1321
1268
  course: string;
@@ -1326,8 +1273,8 @@ declare const zMTeacherPayment: z.ZodObject<{
1326
1273
  createdAt?: Date | undefined;
1327
1274
  updatedAt?: Date | undefined;
1328
1275
  }, {
1329
- _id: mongoose.Types.ObjectId;
1330
- teacher: string;
1276
+ _id: Types.ObjectId;
1277
+ teacher: Types.ObjectId;
1331
1278
  rows: {
1332
1279
  length: number;
1333
1280
  course: string;
@@ -1445,8 +1392,8 @@ declare enum TicketStatus {
1445
1392
  }
1446
1393
 
1447
1394
  declare const zReportTicket: z.ZodObject<{
1448
- requester: z.ZodString;
1449
- resolver: z.ZodString;
1395
+ requester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1396
+ resolver: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1450
1397
  status: z.ZodNativeEnum<typeof TicketStatus>;
1451
1398
  title: z.ZodString;
1452
1399
  description: z.ZodString;
@@ -1454,40 +1401,40 @@ declare const zReportTicket: z.ZodObject<{
1454
1401
  status: TicketStatus;
1455
1402
  description: string;
1456
1403
  title: string;
1457
- requester: string;
1458
- resolver: string;
1404
+ requester: Types.ObjectId;
1405
+ resolver: Types.ObjectId;
1459
1406
  }, {
1460
1407
  status: TicketStatus;
1461
1408
  description: string;
1462
1409
  title: string;
1463
- requester: string;
1464
- resolver: string;
1410
+ requester: Types.ObjectId;
1411
+ resolver: Types.ObjectId;
1465
1412
  }>;
1466
1413
  declare const zMReportTicket: z.ZodObject<{
1467
1414
  status: z.ZodNativeEnum<typeof TicketStatus>;
1468
1415
  description: z.ZodString;
1469
1416
  title: z.ZodString;
1470
- requester: z.ZodString;
1471
- resolver: z.ZodString;
1472
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1417
+ requester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1418
+ resolver: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1419
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1473
1420
  createdAt: z.ZodOptional<z.ZodDate>;
1474
1421
  updatedAt: z.ZodOptional<z.ZodDate>;
1475
1422
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1476
1423
  status: TicketStatus;
1477
- _id: mongoose.Types.ObjectId;
1424
+ _id: Types.ObjectId;
1478
1425
  description: string;
1479
1426
  title: string;
1480
- requester: string;
1481
- resolver: string;
1427
+ requester: Types.ObjectId;
1428
+ resolver: Types.ObjectId;
1482
1429
  createdAt?: Date | undefined;
1483
1430
  updatedAt?: Date | undefined;
1484
1431
  }, {
1485
1432
  status: TicketStatus;
1486
- _id: mongoose.Types.ObjectId;
1433
+ _id: Types.ObjectId;
1487
1434
  description: string;
1488
1435
  title: string;
1489
- requester: string;
1490
- resolver: string;
1436
+ requester: Types.ObjectId;
1437
+ resolver: Types.ObjectId;
1491
1438
  createdAt?: Date | undefined;
1492
1439
  updatedAt?: Date | undefined;
1493
1440
  }>;
@@ -1616,6 +1563,9 @@ declare const zTConfig: z.ZodObject<{
1616
1563
  */
1617
1564
  schedule: z.ZodObject<{
1618
1565
  fields: z.ZodArray<z.ZodString, "many">;
1566
+ /**
1567
+ * Location of the event
1568
+ */
1619
1569
  data: z.ZodMap<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
1620
1570
  }, "strip", z.ZodTypeAny, {
1621
1571
  data: Map<string, {}[]>;
@@ -1627,7 +1577,7 @@ declare const zTConfig: z.ZodObject<{
1627
1577
  /**
1628
1578
  * List of ticket object IDs for this tournament
1629
1579
  */
1630
- tickets: z.ZodArray<z.ZodString, "many">;
1580
+ tickets: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
1631
1581
  /**
1632
1582
  * If false, the tournament registration is closed
1633
1583
  */
@@ -1668,7 +1618,7 @@ declare const zTConfig: z.ZodObject<{
1668
1618
  data: Map<string, {}[]>;
1669
1619
  fields: string[];
1670
1620
  };
1671
- tickets: string[];
1621
+ tickets: Types.ObjectId[];
1672
1622
  canRegister: boolean;
1673
1623
  location?: string | undefined;
1674
1624
  donationsDisabled?: boolean | undefined;
@@ -1693,7 +1643,7 @@ declare const zTConfig: z.ZodObject<{
1693
1643
  data: Map<string, {}[]>;
1694
1644
  fields: string[];
1695
1645
  };
1696
- tickets: string[];
1646
+ tickets: Types.ObjectId[];
1697
1647
  canRegister: boolean;
1698
1648
  location?: string | undefined;
1699
1649
  donationsDisabled?: boolean | undefined;
@@ -1724,6 +1674,9 @@ declare const zMTConfig: z.ZodObject<{
1724
1674
  }>;
1725
1675
  schedule: z.ZodObject<{
1726
1676
  fields: z.ZodArray<z.ZodString, "many">;
1677
+ /**
1678
+ * Location of the event
1679
+ */
1727
1680
  data: z.ZodMap<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
1728
1681
  }, "strip", z.ZodTypeAny, {
1729
1682
  data: Map<string, {}[]>;
@@ -1732,7 +1685,7 @@ declare const zMTConfig: z.ZodObject<{
1732
1685
  data: Map<string, {}[]>;
1733
1686
  fields: string[];
1734
1687
  }>;
1735
- tickets: z.ZodArray<z.ZodString, "many">;
1688
+ tickets: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
1736
1689
  canRegister: z.ZodBoolean;
1737
1690
  donationsDisabled: z.ZodOptional<z.ZodBoolean>;
1738
1691
  image: z.ZodOptional<z.ZodObject<{
@@ -1748,11 +1701,11 @@ declare const zMTConfig: z.ZodObject<{
1748
1701
  height: number;
1749
1702
  width: number;
1750
1703
  }>>;
1751
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1704
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1752
1705
  createdAt: z.ZodOptional<z.ZodDate>;
1753
1706
  updatedAt: z.ZodOptional<z.ZodDate>;
1754
1707
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1755
- _id: mongoose.Types.ObjectId;
1708
+ _id: Types.ObjectId;
1756
1709
  description: string;
1757
1710
  title: string;
1758
1711
  url: string;
@@ -1768,7 +1721,7 @@ declare const zMTConfig: z.ZodObject<{
1768
1721
  data: Map<string, {}[]>;
1769
1722
  fields: string[];
1770
1723
  };
1771
- tickets: string[];
1724
+ tickets: Types.ObjectId[];
1772
1725
  canRegister: boolean;
1773
1726
  location?: string | undefined;
1774
1727
  donationsDisabled?: boolean | undefined;
@@ -1780,7 +1733,7 @@ declare const zMTConfig: z.ZodObject<{
1780
1733
  createdAt?: Date | undefined;
1781
1734
  updatedAt?: Date | undefined;
1782
1735
  }, {
1783
- _id: mongoose.Types.ObjectId;
1736
+ _id: Types.ObjectId;
1784
1737
  description: string;
1785
1738
  title: string;
1786
1739
  url: string;
@@ -1796,7 +1749,7 @@ declare const zMTConfig: z.ZodObject<{
1796
1749
  data: Map<string, {}[]>;
1797
1750
  fields: string[];
1798
1751
  };
1799
- tickets: string[];
1752
+ tickets: Types.ObjectId[];
1800
1753
  canRegister: boolean;
1801
1754
  location?: string | undefined;
1802
1755
  donationsDisabled?: boolean | undefined;
@@ -1843,20 +1796,20 @@ declare const zTReg: z.ZodObject<{
1843
1796
  address: z.ZodOptional<z.ZodString>;
1844
1797
  notes: z.ZodOptional<z.ZodString>;
1845
1798
  tickets: z.ZodArray<z.ZodObject<{
1846
- ticket: z.ZodString;
1799
+ ticket: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1847
1800
  amount: z.ZodNumber;
1848
1801
  }, "strip", z.ZodTypeAny, {
1849
1802
  amount: number;
1850
- ticket: string;
1803
+ ticket: Types.ObjectId;
1851
1804
  }, {
1852
1805
  amount: number;
1853
- ticket: string;
1806
+ ticket: Types.ObjectId;
1854
1807
  }>, "many">;
1855
1808
  agaId: z.ZodString;
1856
- tournamentId: z.ZodString;
1809
+ tournamentId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1857
1810
  donation: z.ZodOptional<z.ZodNumber>;
1858
1811
  createMethod: z.ZodOptional<z.ZodString>;
1859
- edited: z.ZodOptional<z.ZodString>;
1812
+ edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1860
1813
  paymentAmount: z.ZodNumber;
1861
1814
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
1862
1815
  expireAt: z.ZodOptional<z.ZodDate>;
@@ -1868,16 +1821,16 @@ declare const zTReg: z.ZodObject<{
1868
1821
  email: string;
1869
1822
  tickets: {
1870
1823
  amount: number;
1871
- ticket: string;
1824
+ ticket: Types.ObjectId;
1872
1825
  }[];
1873
1826
  agaId: string;
1874
- tournamentId: string;
1827
+ tournamentId: Types.ObjectId;
1875
1828
  phone?: string | undefined;
1876
1829
  address?: string | undefined;
1877
1830
  notes?: string | undefined;
1878
1831
  donation?: number | undefined;
1879
1832
  createMethod?: string | undefined;
1880
- edited?: string | undefined;
1833
+ edited?: Types.ObjectId | undefined;
1881
1834
  paymentReceived?: boolean | undefined;
1882
1835
  expireAt?: Date | undefined;
1883
1836
  }, {
@@ -1888,16 +1841,16 @@ declare const zTReg: z.ZodObject<{
1888
1841
  email: string;
1889
1842
  tickets: {
1890
1843
  amount: number;
1891
- ticket: string;
1844
+ ticket: Types.ObjectId;
1892
1845
  }[];
1893
1846
  agaId: string;
1894
- tournamentId: string;
1847
+ tournamentId: Types.ObjectId;
1895
1848
  phone?: string | undefined;
1896
1849
  address?: string | undefined;
1897
1850
  notes?: string | undefined;
1898
1851
  donation?: number | undefined;
1899
1852
  createMethod?: string | undefined;
1900
- edited?: string | undefined;
1853
+ edited?: Types.ObjectId | undefined;
1901
1854
  paymentReceived?: boolean | undefined;
1902
1855
  expireAt?: Date | undefined;
1903
1856
  }>;
@@ -1913,21 +1866,21 @@ declare const zMTReg: z.ZodObject<{
1913
1866
  address: z.ZodOptional<z.ZodString>;
1914
1867
  notes: z.ZodOptional<z.ZodString>;
1915
1868
  tickets: z.ZodArray<z.ZodObject<{
1916
- ticket: z.ZodString;
1869
+ ticket: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1917
1870
  amount: z.ZodNumber;
1918
1871
  }, "strip", z.ZodTypeAny, {
1919
1872
  amount: number;
1920
- ticket: string;
1873
+ ticket: Types.ObjectId;
1921
1874
  }, {
1922
1875
  amount: number;
1923
- ticket: string;
1876
+ ticket: Types.ObjectId;
1924
1877
  }>, "many">;
1925
1878
  agaId: z.ZodString;
1926
- tournamentId: z.ZodString;
1879
+ tournamentId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1927
1880
  donation: z.ZodOptional<z.ZodNumber>;
1928
1881
  createMethod: z.ZodOptional<z.ZodString>;
1929
- edited: z.ZodOptional<z.ZodString>;
1930
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1882
+ edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1883
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1931
1884
  createdAt: z.ZodOptional<z.ZodDate>;
1932
1885
  updatedAt: z.ZodOptional<z.ZodDate>;
1933
1886
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -1936,13 +1889,13 @@ declare const zMTReg: z.ZodObject<{
1936
1889
  lastName: string;
1937
1890
  rank: string;
1938
1891
  email: string;
1939
- _id: mongoose.Types.ObjectId;
1892
+ _id: Types.ObjectId;
1940
1893
  tickets: {
1941
1894
  amount: number;
1942
- ticket: string;
1895
+ ticket: Types.ObjectId;
1943
1896
  }[];
1944
1897
  agaId: string;
1945
- tournamentId: string;
1898
+ tournamentId: Types.ObjectId;
1946
1899
  paymentReceived?: boolean | undefined;
1947
1900
  expireAt?: Date | undefined;
1948
1901
  phone?: string | undefined;
@@ -1950,7 +1903,7 @@ declare const zMTReg: z.ZodObject<{
1950
1903
  notes?: string | undefined;
1951
1904
  donation?: number | undefined;
1952
1905
  createMethod?: string | undefined;
1953
- edited?: string | undefined;
1906
+ edited?: Types.ObjectId | undefined;
1954
1907
  createdAt?: Date | undefined;
1955
1908
  updatedAt?: Date | undefined;
1956
1909
  }, {
@@ -1959,13 +1912,13 @@ declare const zMTReg: z.ZodObject<{
1959
1912
  lastName: string;
1960
1913
  rank: string;
1961
1914
  email: string;
1962
- _id: mongoose.Types.ObjectId;
1915
+ _id: Types.ObjectId;
1963
1916
  tickets: {
1964
1917
  amount: number;
1965
- ticket: string;
1918
+ ticket: Types.ObjectId;
1966
1919
  }[];
1967
1920
  agaId: string;
1968
- tournamentId: string;
1921
+ tournamentId: Types.ObjectId;
1969
1922
  paymentReceived?: boolean | undefined;
1970
1923
  expireAt?: Date | undefined;
1971
1924
  phone?: string | undefined;
@@ -1973,7 +1926,7 @@ declare const zMTReg: z.ZodObject<{
1973
1926
  notes?: string | undefined;
1974
1927
  donation?: number | undefined;
1975
1928
  createMethod?: string | undefined;
1976
- edited?: string | undefined;
1929
+ edited?: Types.ObjectId | undefined;
1977
1930
  createdAt?: Date | undefined;
1978
1931
  updatedAt?: Date | undefined;
1979
1932
  }>;
@@ -1981,20 +1934,17 @@ type TReg = z.infer<typeof zTReg>;
1981
1934
  type MTReg = z.infer<typeof zMTReg>;
1982
1935
 
1983
1936
  declare const zTTicketReg: z.ZodObject<{
1984
- /**
1985
- * Mongoose ID of the ticket
1986
- */
1987
- ticket: z.ZodString;
1937
+ ticket: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1988
1938
  /**
1989
1939
  * integer minimum 1, otherwise no ticket is being bought
1990
1940
  */
1991
1941
  amount: z.ZodNumber;
1992
1942
  }, "strip", z.ZodTypeAny, {
1993
1943
  amount: number;
1994
- ticket: string;
1944
+ ticket: Types.ObjectId;
1995
1945
  }, {
1996
1946
  amount: number;
1997
- ticket: string;
1947
+ ticket: Types.ObjectId;
1998
1948
  }>;
1999
1949
  type TTicketReg = z.infer<typeof zTTicketReg>;
2000
1950
 
@@ -2177,11 +2127,11 @@ declare const zMUser: z.ZodObject<{
2177
2127
  country: z.ZodOptional<z.ZodString>;
2178
2128
  phoneNumber: z.ZodOptional<z.ZodString>;
2179
2129
  birthDate: z.ZodOptional<z.ZodString>;
2180
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2130
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
2181
2131
  createdAt: z.ZodOptional<z.ZodDate>;
2182
2132
  updatedAt: z.ZodOptional<z.ZodDate>;
2183
2133
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2184
- _id: mongoose.Types.ObjectId;
2134
+ _id: Types.ObjectId;
2185
2135
  name: string;
2186
2136
  email?: string | undefined;
2187
2137
  address?: string | undefined;
@@ -2198,7 +2148,7 @@ declare const zMUser: z.ZodObject<{
2198
2148
  createdAt?: Date | undefined;
2199
2149
  updatedAt?: Date | undefined;
2200
2150
  }, {
2201
- _id: mongoose.Types.ObjectId;
2151
+ _id: Types.ObjectId;
2202
2152
  name: string;
2203
2153
  email?: string | undefined;
2204
2154
  address?: string | undefined;
@@ -2238,7 +2188,7 @@ declare const zStudent: z.ZodObject<{
2238
2188
  phoneNumber: z.ZodOptional<z.ZodString>;
2239
2189
  birthDate: z.ZodOptional<z.ZodString>;
2240
2190
  rank: z.ZodNativeEnum<typeof GoRank>;
2241
- guardian: z.ZodOptional<z.ZodString>;
2191
+ guardian: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
2242
2192
  }, "strip", z.ZodTypeAny, {
2243
2193
  rank: GoRank;
2244
2194
  name: string;
@@ -2254,7 +2204,7 @@ declare const zStudent: z.ZodObject<{
2254
2204
  country?: string | undefined;
2255
2205
  phoneNumber?: string | undefined;
2256
2206
  birthDate?: string | undefined;
2257
- guardian?: string | undefined;
2207
+ guardian?: Types.ObjectId | undefined;
2258
2208
  }, {
2259
2209
  rank: GoRank;
2260
2210
  name: string;
@@ -2270,7 +2220,7 @@ declare const zStudent: z.ZodObject<{
2270
2220
  country?: string | undefined;
2271
2221
  phoneNumber?: string | undefined;
2272
2222
  birthDate?: string | undefined;
2273
- guardian?: string | undefined;
2223
+ guardian?: Types.ObjectId | undefined;
2274
2224
  }>;
2275
2225
  declare const zMStudent: z.ZodObject<{
2276
2226
  rank: z.ZodNativeEnum<typeof GoRank>;
@@ -2295,13 +2245,13 @@ declare const zMStudent: z.ZodObject<{
2295
2245
  country: z.ZodOptional<z.ZodString>;
2296
2246
  phoneNumber: z.ZodOptional<z.ZodString>;
2297
2247
  birthDate: z.ZodOptional<z.ZodString>;
2298
- guardian: z.ZodOptional<z.ZodString>;
2299
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2248
+ guardian: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
2249
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
2300
2250
  createdAt: z.ZodOptional<z.ZodDate>;
2301
2251
  updatedAt: z.ZodOptional<z.ZodDate>;
2302
2252
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2303
2253
  rank: GoRank;
2304
- _id: mongoose.Types.ObjectId;
2254
+ _id: Types.ObjectId;
2305
2255
  name: string;
2306
2256
  email?: string | undefined;
2307
2257
  address?: string | undefined;
@@ -2315,12 +2265,12 @@ declare const zMStudent: z.ZodObject<{
2315
2265
  country?: string | undefined;
2316
2266
  phoneNumber?: string | undefined;
2317
2267
  birthDate?: string | undefined;
2318
- guardian?: string | undefined;
2268
+ guardian?: Types.ObjectId | undefined;
2319
2269
  createdAt?: Date | undefined;
2320
2270
  updatedAt?: Date | undefined;
2321
2271
  }, {
2322
2272
  rank: GoRank;
2323
- _id: mongoose.Types.ObjectId;
2273
+ _id: Types.ObjectId;
2324
2274
  name: string;
2325
2275
  email?: string | undefined;
2326
2276
  address?: string | undefined;
@@ -2334,7 +2284,7 @@ declare const zMStudent: z.ZodObject<{
2334
2284
  country?: string | undefined;
2335
2285
  phoneNumber?: string | undefined;
2336
2286
  birthDate?: string | undefined;
2337
- guardian?: string | undefined;
2287
+ guardian?: Types.ObjectId | undefined;
2338
2288
  createdAt?: Date | undefined;
2339
2289
  updatedAt?: Date | undefined;
2340
2290
  }>;
@@ -2431,12 +2381,12 @@ declare const zMTeacher: z.ZodObject<{
2431
2381
  birthDate: z.ZodOptional<z.ZodString>;
2432
2382
  isInactive: z.ZodOptional<z.ZodBoolean>;
2433
2383
  available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
2434
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2384
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
2435
2385
  createdAt: z.ZodOptional<z.ZodDate>;
2436
2386
  updatedAt: z.ZodOptional<z.ZodDate>;
2437
2387
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2438
2388
  rank: GoRank;
2439
- _id: mongoose.Types.ObjectId;
2389
+ _id: Types.ObjectId;
2440
2390
  name: string;
2441
2391
  email?: string | undefined;
2442
2392
  address?: string | undefined;
@@ -2458,7 +2408,7 @@ declare const zMTeacher: z.ZodObject<{
2458
2408
  updatedAt?: Date | undefined;
2459
2409
  }, {
2460
2410
  rank: GoRank;
2461
- _id: mongoose.Types.ObjectId;
2411
+ _id: Types.ObjectId;
2462
2412
  name: string;
2463
2413
  email?: string | undefined;
2464
2414
  address?: string | undefined;