@nyig/models 0.2.13 → 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.
Files changed (5) hide show
  1. package/index.d.mts +190 -151
  2. package/index.d.ts +190 -151
  3. package/index.js +209 -204
  4. package/index.mjs +210 -205
  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;
@@ -165,52 +168,58 @@ type Attendance = z.infer<typeof zAttendance>;
165
168
  type MAttendance = z.infer<typeof zMAttendance>;
166
169
 
167
170
  declare const zCampTracker: z.ZodObject<{
168
- notes: z.ZodOptional<z.ZodString>;
171
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
172
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
173
+ semester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
174
+ /**
175
+ * occurrences are tracked by week for camps
176
+ */
169
177
  occurrences: z.ZodArray<z.ZodString, "many">;
178
+ /**
179
+ * attendances are tracked by week for camps
180
+ */
170
181
  attendances: z.ZodArray<z.ZodString, "many">;
171
- course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
172
- teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
173
- semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
182
+ notes: z.ZodOptional<z.ZodString>;
174
183
  }, "strip", z.ZodTypeAny, {
175
- course: mongoose.Types.ObjectId;
176
- teacher: mongoose.Types.ObjectId;
177
- semester: mongoose.Types.ObjectId;
184
+ course: Types.ObjectId;
185
+ teacher: Types.ObjectId;
186
+ semester: Types.ObjectId;
178
187
  occurrences: string[];
179
188
  attendances: string[];
180
189
  notes?: string | undefined;
181
190
  }, {
182
- course: mongoose.Types.ObjectId;
183
- teacher: mongoose.Types.ObjectId;
184
- semester: mongoose.Types.ObjectId;
191
+ course: Types.ObjectId;
192
+ teacher: Types.ObjectId;
193
+ semester: Types.ObjectId;
185
194
  occurrences: string[];
186
195
  attendances: string[];
187
196
  notes?: string | undefined;
188
197
  }>;
189
198
  declare const zMCampTracker: z.ZodObject<{
190
199
  notes: z.ZodOptional<z.ZodString>;
191
- course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
192
- teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
193
- semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
200
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
201
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
202
+ semester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
194
203
  occurrences: z.ZodArray<z.ZodString, "many">;
195
204
  attendances: z.ZodArray<z.ZodString, "many">;
196
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
205
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
197
206
  createdAt: z.ZodOptional<z.ZodDate>;
198
207
  updatedAt: z.ZodOptional<z.ZodDate>;
199
208
  }, z.UnknownKeysParam, z.ZodTypeAny, {
200
- _id: mongoose.Types.ObjectId;
201
- course: mongoose.Types.ObjectId;
202
- teacher: mongoose.Types.ObjectId;
203
- semester: mongoose.Types.ObjectId;
209
+ _id: Types.ObjectId;
210
+ course: Types.ObjectId;
211
+ teacher: Types.ObjectId;
212
+ semester: Types.ObjectId;
204
213
  occurrences: string[];
205
214
  attendances: string[];
206
215
  notes?: string | undefined;
207
216
  createdAt?: Date | undefined;
208
217
  updatedAt?: Date | undefined;
209
218
  }, {
210
- _id: mongoose.Types.ObjectId;
211
- course: mongoose.Types.ObjectId;
212
- teacher: mongoose.Types.ObjectId;
213
- semester: mongoose.Types.ObjectId;
219
+ _id: Types.ObjectId;
220
+ course: Types.ObjectId;
221
+ teacher: Types.ObjectId;
222
+ semester: Types.ObjectId;
214
223
  occurrences: string[];
215
224
  attendances: string[];
216
225
  notes?: string | undefined;
@@ -221,7 +230,15 @@ type CampTracker = z.infer<typeof zCampTracker>;
221
230
  type MCampTracker = z.infer<typeof zMCampTracker>;
222
231
 
223
232
  declare const zClassTracker: z.ZodObject<{
224
- notes: z.ZodOptional<z.ZodString>;
233
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
234
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
235
+ student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
236
+ classTimes: z.ZodArray<z.ZodDate, "many">;
237
+ completedList: z.ZodArray<z.ZodBoolean, "many">;
238
+ /**
239
+ * Virtual mongoose field when all values in completedList is true
240
+ */
241
+ completed: z.ZodOptional<z.ZodBoolean>;
225
242
  tuition: z.ZodOptional<z.ZodObject<{
226
243
  primary: z.ZodNumber;
227
244
  textbook: z.ZodOptional<z.ZodBoolean>;
@@ -236,43 +253,42 @@ declare const zClassTracker: z.ZodObject<{
236
253
  shipping?: boolean | undefined;
237
254
  }>>;
238
255
  paid: z.ZodOptional<z.ZodBoolean>;
239
- classTimes: z.ZodArray<z.ZodDate, "many">;
240
- completedList: z.ZodArray<z.ZodBoolean, "many">;
241
- completed: z.ZodOptional<z.ZodBoolean>;
242
- course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
243
- teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
244
- semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
256
+ paused: z.ZodOptional<z.ZodBoolean>;
257
+ notes: z.ZodOptional<z.ZodString>;
245
258
  }, "strip", z.ZodTypeAny, {
246
- course: mongoose.Types.ObjectId;
247
- teacher: mongoose.Types.ObjectId;
248
- semester: mongoose.Types.ObjectId;
259
+ student: Types.ObjectId;
260
+ course: Types.ObjectId;
261
+ teacher: Types.ObjectId;
249
262
  classTimes: Date[];
250
263
  completedList: boolean[];
251
- notes?: string | undefined;
264
+ completed?: boolean | undefined;
252
265
  tuition?: {
253
266
  primary: number;
254
267
  textbook?: boolean | undefined;
255
268
  shipping?: boolean | undefined;
256
269
  } | undefined;
257
270
  paid?: boolean | undefined;
258
- completed?: boolean | undefined;
271
+ paused?: boolean | undefined;
272
+ notes?: string | undefined;
259
273
  }, {
260
- course: mongoose.Types.ObjectId;
261
- teacher: mongoose.Types.ObjectId;
262
- semester: mongoose.Types.ObjectId;
274
+ student: Types.ObjectId;
275
+ course: Types.ObjectId;
276
+ teacher: Types.ObjectId;
263
277
  classTimes: Date[];
264
278
  completedList: boolean[];
265
- notes?: string | undefined;
279
+ completed?: boolean | undefined;
266
280
  tuition?: {
267
281
  primary: number;
268
282
  textbook?: boolean | undefined;
269
283
  shipping?: boolean | undefined;
270
284
  } | undefined;
271
285
  paid?: boolean | undefined;
272
- completed?: boolean | undefined;
286
+ paused?: boolean | undefined;
287
+ notes?: string | undefined;
273
288
  }>;
274
289
  declare const zMClassTracker: z.ZodObject<{
275
290
  notes: z.ZodOptional<z.ZodString>;
291
+ student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
276
292
  tuition: z.ZodOptional<z.ZodObject<{
277
293
  primary: z.ZodNumber;
278
294
  textbook: z.ZodOptional<z.ZodBoolean>;
@@ -287,20 +303,20 @@ declare const zMClassTracker: z.ZodObject<{
287
303
  shipping?: boolean | undefined;
288
304
  }>>;
289
305
  paid: z.ZodOptional<z.ZodBoolean>;
290
- course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
291
- teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
292
- semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
306
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
307
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
293
308
  classTimes: z.ZodArray<z.ZodDate, "many">;
294
309
  completedList: z.ZodArray<z.ZodBoolean, "many">;
295
310
  completed: z.ZodOptional<z.ZodBoolean>;
296
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
311
+ paused: z.ZodOptional<z.ZodBoolean>;
312
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
297
313
  createdAt: z.ZodOptional<z.ZodDate>;
298
314
  updatedAt: z.ZodOptional<z.ZodDate>;
299
315
  }, z.UnknownKeysParam, z.ZodTypeAny, {
300
- _id: mongoose.Types.ObjectId;
301
- course: mongoose.Types.ObjectId;
302
- teacher: mongoose.Types.ObjectId;
303
- semester: mongoose.Types.ObjectId;
316
+ _id: Types.ObjectId;
317
+ student: Types.ObjectId;
318
+ course: Types.ObjectId;
319
+ teacher: Types.ObjectId;
304
320
  classTimes: Date[];
305
321
  completedList: boolean[];
306
322
  notes?: string | undefined;
@@ -311,13 +327,14 @@ declare const zMClassTracker: z.ZodObject<{
311
327
  } | undefined;
312
328
  paid?: boolean | undefined;
313
329
  completed?: boolean | undefined;
330
+ paused?: boolean | undefined;
314
331
  createdAt?: Date | undefined;
315
332
  updatedAt?: Date | undefined;
316
333
  }, {
317
- _id: mongoose.Types.ObjectId;
318
- course: mongoose.Types.ObjectId;
319
- teacher: mongoose.Types.ObjectId;
320
- semester: mongoose.Types.ObjectId;
334
+ _id: Types.ObjectId;
335
+ student: Types.ObjectId;
336
+ course: Types.ObjectId;
337
+ teacher: Types.ObjectId;
321
338
  classTimes: Date[];
322
339
  completedList: boolean[];
323
340
  notes?: string | undefined;
@@ -328,6 +345,7 @@ declare const zMClassTracker: z.ZodObject<{
328
345
  } | undefined;
329
346
  paid?: boolean | undefined;
330
347
  completed?: boolean | undefined;
348
+ paused?: boolean | undefined;
331
349
  createdAt?: Date | undefined;
332
350
  updatedAt?: Date | undefined;
333
351
  }>;
@@ -445,9 +463,9 @@ type Course = z.infer<typeof zCourse>;
445
463
  type MCourse = z.infer<typeof zMCourse>;
446
464
 
447
465
  declare const zGroupTracker: z.ZodObject<{
448
- notes: z.ZodOptional<z.ZodString>;
449
- occurrences: z.ZodArray<z.ZodDate, "many">;
450
- attendances: z.ZodArray<z.ZodString, "many">;
466
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
467
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
468
+ semester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
451
469
  scheduleData: z.ZodObject<{
452
470
  startTime: z.ZodString;
453
471
  dayOfWeek: z.ZodNumber;
@@ -458,48 +476,63 @@ declare const zGroupTracker: z.ZodObject<{
458
476
  startTime: string;
459
477
  dayOfWeek: number;
460
478
  }>;
479
+ /**
480
+ * occurrences are tracked by week for Groups
481
+ */
482
+ occurrences: z.ZodArray<z.ZodDate, "many">;
483
+ /**
484
+ * attendances are tracked by week for Groups
485
+ */
486
+ attendances: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
487
+ /**
488
+ * public-facing ID of the course instance, e.g., 101
489
+ */
461
490
  courseId: z.ZodOptional<z.ZodString>;
491
+ /**
492
+ * Age group of the class instance, e.g. "adult", "youth"
493
+ */
462
494
  ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
495
+ /**
496
+ * If true, the course is hidden from public view
497
+ */
463
498
  isNonPublic: z.ZodOptional<z.ZodBoolean>;
464
- course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
465
- teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
466
- semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
499
+ notes: z.ZodOptional<z.ZodString>;
467
500
  }, "strip", z.ZodTypeAny, {
468
- course: mongoose.Types.ObjectId;
469
- teacher: mongoose.Types.ObjectId;
470
- semester: mongoose.Types.ObjectId;
501
+ course: Types.ObjectId;
502
+ teacher: Types.ObjectId;
503
+ semester: Types.ObjectId;
471
504
  occurrences: Date[];
472
- attendances: string[];
505
+ attendances: Types.ObjectId[];
473
506
  scheduleData: {
474
507
  startTime: string;
475
508
  dayOfWeek: number;
476
509
  };
477
- notes?: string | undefined;
478
510
  courseId?: string | undefined;
479
511
  ageGroup?: AgeGroup | undefined;
480
512
  isNonPublic?: boolean | undefined;
513
+ notes?: string | undefined;
481
514
  }, {
482
- course: mongoose.Types.ObjectId;
483
- teacher: mongoose.Types.ObjectId;
484
- semester: mongoose.Types.ObjectId;
515
+ course: Types.ObjectId;
516
+ teacher: Types.ObjectId;
517
+ semester: Types.ObjectId;
485
518
  occurrences: Date[];
486
- attendances: string[];
519
+ attendances: Types.ObjectId[];
487
520
  scheduleData: {
488
521
  startTime: string;
489
522
  dayOfWeek: number;
490
523
  };
491
- notes?: string | undefined;
492
524
  courseId?: string | undefined;
493
525
  ageGroup?: AgeGroup | undefined;
494
526
  isNonPublic?: boolean | undefined;
527
+ notes?: string | undefined;
495
528
  }>;
496
529
  declare const zMGroupTracker: z.ZodObject<{
497
530
  notes: z.ZodOptional<z.ZodString>;
498
- course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
499
- teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
500
- semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
531
+ course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
532
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
533
+ semester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
501
534
  occurrences: z.ZodArray<z.ZodDate, "many">;
502
- attendances: z.ZodArray<z.ZodString, "many">;
535
+ attendances: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
503
536
  scheduleData: z.ZodObject<{
504
537
  startTime: z.ZodString;
505
538
  dayOfWeek: z.ZodNumber;
@@ -513,16 +546,16 @@ declare const zMGroupTracker: z.ZodObject<{
513
546
  courseId: z.ZodOptional<z.ZodString>;
514
547
  ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
515
548
  isNonPublic: z.ZodOptional<z.ZodBoolean>;
516
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
549
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
517
550
  createdAt: z.ZodOptional<z.ZodDate>;
518
551
  updatedAt: z.ZodOptional<z.ZodDate>;
519
552
  }, z.UnknownKeysParam, z.ZodTypeAny, {
520
- _id: mongoose.Types.ObjectId;
521
- course: mongoose.Types.ObjectId;
522
- teacher: mongoose.Types.ObjectId;
523
- semester: mongoose.Types.ObjectId;
553
+ _id: Types.ObjectId;
554
+ course: Types.ObjectId;
555
+ teacher: Types.ObjectId;
556
+ semester: Types.ObjectId;
524
557
  occurrences: Date[];
525
- attendances: string[];
558
+ attendances: Types.ObjectId[];
526
559
  scheduleData: {
527
560
  startTime: string;
528
561
  dayOfWeek: number;
@@ -534,12 +567,12 @@ declare const zMGroupTracker: z.ZodObject<{
534
567
  createdAt?: Date | undefined;
535
568
  updatedAt?: Date | undefined;
536
569
  }, {
537
- _id: mongoose.Types.ObjectId;
538
- course: mongoose.Types.ObjectId;
539
- teacher: mongoose.Types.ObjectId;
540
- semester: mongoose.Types.ObjectId;
570
+ _id: Types.ObjectId;
571
+ course: Types.ObjectId;
572
+ teacher: Types.ObjectId;
573
+ semester: Types.ObjectId;
541
574
  occurrences: Date[];
542
- attendances: string[];
575
+ attendances: Types.ObjectId[];
543
576
  scheduleData: {
544
577
  startTime: string;
545
578
  dayOfWeek: number;
@@ -567,6 +600,7 @@ declare const zScheduleData: z.ZodObject<{
567
600
  type ScheduleData = z.infer<typeof zScheduleData>;
568
601
 
569
602
  declare const zCampBooking: z.ZodObject<{
603
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
570
604
  firstName: z.ZodString;
571
605
  lastName: z.ZodString;
572
606
  rank: z.ZodString;
@@ -576,7 +610,6 @@ declare const zCampBooking: z.ZodObject<{
576
610
  notes: z.ZodOptional<z.ZodString>;
577
611
  shipping: z.ZodOptional<z.ZodBoolean>;
578
612
  campOption: z.ZodNativeEnum<typeof CampOption>;
579
- userId: z.ZodOptional<z.ZodString>;
580
613
  ctId: z.ZodOptional<z.ZodString>;
581
614
  isOnline: z.ZodBoolean;
582
615
  classDates: z.ZodString;
@@ -592,11 +625,11 @@ declare const zCampBooking: z.ZodObject<{
592
625
  campOption: CampOption;
593
626
  isOnline: boolean;
594
627
  classDates: string;
628
+ userId?: Types.ObjectId | undefined;
595
629
  phone?: string | undefined;
596
630
  address?: string | undefined;
597
631
  notes?: string | undefined;
598
632
  shipping?: boolean | undefined;
599
- userId?: string | undefined;
600
633
  ctId?: string | undefined;
601
634
  paymentReceived?: boolean | undefined;
602
635
  expireAt?: Date | undefined;
@@ -609,11 +642,11 @@ declare const zCampBooking: z.ZodObject<{
609
642
  campOption: CampOption;
610
643
  isOnline: boolean;
611
644
  classDates: string;
645
+ userId?: Types.ObjectId | undefined;
612
646
  phone?: string | undefined;
613
647
  address?: string | undefined;
614
648
  notes?: string | undefined;
615
649
  shipping?: boolean | undefined;
616
- userId?: string | undefined;
617
650
  ctId?: string | undefined;
618
651
  paymentReceived?: boolean | undefined;
619
652
  expireAt?: Date | undefined;
@@ -622,6 +655,7 @@ declare const zMCampBooking: z.ZodObject<{
622
655
  paymentAmount: z.ZodNumber;
623
656
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
624
657
  expireAt: z.ZodOptional<z.ZodDate>;
658
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
625
659
  firstName: z.ZodString;
626
660
  lastName: z.ZodString;
627
661
  rank: z.ZodString;
@@ -631,11 +665,10 @@ declare const zMCampBooking: z.ZodObject<{
631
665
  notes: z.ZodOptional<z.ZodString>;
632
666
  shipping: z.ZodOptional<z.ZodBoolean>;
633
667
  campOption: z.ZodNativeEnum<typeof CampOption>;
634
- userId: z.ZodOptional<z.ZodString>;
635
668
  ctId: z.ZodOptional<z.ZodString>;
636
669
  isOnline: z.ZodBoolean;
637
670
  classDates: z.ZodString;
638
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
671
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
639
672
  createdAt: z.ZodOptional<z.ZodDate>;
640
673
  updatedAt: z.ZodOptional<z.ZodDate>;
641
674
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -644,17 +677,17 @@ declare const zMCampBooking: z.ZodObject<{
644
677
  lastName: string;
645
678
  rank: string;
646
679
  email: string;
647
- _id: mongoose.Types.ObjectId;
680
+ _id: Types.ObjectId;
648
681
  campOption: CampOption;
649
682
  isOnline: boolean;
650
683
  classDates: string;
651
684
  paymentReceived?: boolean | undefined;
652
685
  expireAt?: Date | undefined;
686
+ userId?: Types.ObjectId | undefined;
653
687
  phone?: string | undefined;
654
688
  address?: string | undefined;
655
689
  notes?: string | undefined;
656
690
  shipping?: boolean | undefined;
657
- userId?: string | undefined;
658
691
  ctId?: string | undefined;
659
692
  createdAt?: Date | undefined;
660
693
  updatedAt?: Date | undefined;
@@ -664,17 +697,17 @@ declare const zMCampBooking: z.ZodObject<{
664
697
  lastName: string;
665
698
  rank: string;
666
699
  email: string;
667
- _id: mongoose.Types.ObjectId;
700
+ _id: Types.ObjectId;
668
701
  campOption: CampOption;
669
702
  isOnline: boolean;
670
703
  classDates: string;
671
704
  paymentReceived?: boolean | undefined;
672
705
  expireAt?: Date | undefined;
706
+ userId?: Types.ObjectId | undefined;
673
707
  phone?: string | undefined;
674
708
  address?: string | undefined;
675
709
  notes?: string | undefined;
676
710
  shipping?: boolean | undefined;
677
- userId?: string | undefined;
678
711
  ctId?: string | undefined;
679
712
  createdAt?: Date | undefined;
680
713
  updatedAt?: Date | undefined;
@@ -683,6 +716,7 @@ type CampBooking = z.infer<typeof zCampBooking>;
683
716
  type MCampBooking = z.infer<typeof zMCampBooking>;
684
717
 
685
718
  declare const zGroupBooking: z.ZodObject<{
719
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
686
720
  firstName: z.ZodString;
687
721
  lastName: z.ZodString;
688
722
  rank: z.ZodString;
@@ -691,9 +725,8 @@ declare const zGroupBooking: z.ZodObject<{
691
725
  address: z.ZodOptional<z.ZodString>;
692
726
  notes: z.ZodOptional<z.ZodString>;
693
727
  shipping: z.ZodOptional<z.ZodBoolean>;
694
- userId: z.ZodOptional<z.ZodString>;
695
728
  isOnline: z.ZodBoolean;
696
- gtId: z.ZodOptional<z.ZodString>;
729
+ gtId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
697
730
  isTrial: z.ZodOptional<z.ZodBoolean>;
698
731
  classDate: z.ZodOptional<z.ZodString>;
699
732
  paymentAmount: z.ZodNumber;
@@ -706,12 +739,12 @@ declare const zGroupBooking: z.ZodObject<{
706
739
  rank: string;
707
740
  email: string;
708
741
  isOnline: boolean;
742
+ userId?: Types.ObjectId | undefined;
709
743
  phone?: string | undefined;
710
744
  address?: string | undefined;
711
745
  notes?: string | undefined;
712
746
  shipping?: boolean | undefined;
713
- userId?: string | undefined;
714
- gtId?: string | undefined;
747
+ gtId?: Types.ObjectId | undefined;
715
748
  isTrial?: boolean | undefined;
716
749
  classDate?: string | undefined;
717
750
  paymentReceived?: boolean | undefined;
@@ -723,12 +756,12 @@ declare const zGroupBooking: z.ZodObject<{
723
756
  rank: string;
724
757
  email: string;
725
758
  isOnline: boolean;
759
+ userId?: Types.ObjectId | undefined;
726
760
  phone?: string | undefined;
727
761
  address?: string | undefined;
728
762
  notes?: string | undefined;
729
763
  shipping?: boolean | undefined;
730
- userId?: string | undefined;
731
- gtId?: string | undefined;
764
+ gtId?: Types.ObjectId | undefined;
732
765
  isTrial?: boolean | undefined;
733
766
  classDate?: string | undefined;
734
767
  paymentReceived?: boolean | undefined;
@@ -738,6 +771,7 @@ declare const zMGroupBooking: z.ZodObject<{
738
771
  paymentAmount: z.ZodNumber;
739
772
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
740
773
  expireAt: z.ZodOptional<z.ZodDate>;
774
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
741
775
  firstName: z.ZodString;
742
776
  lastName: z.ZodString;
743
777
  rank: z.ZodString;
@@ -746,12 +780,11 @@ declare const zMGroupBooking: z.ZodObject<{
746
780
  address: z.ZodOptional<z.ZodString>;
747
781
  notes: z.ZodOptional<z.ZodString>;
748
782
  shipping: z.ZodOptional<z.ZodBoolean>;
749
- userId: z.ZodOptional<z.ZodString>;
750
783
  isOnline: z.ZodBoolean;
751
- gtId: z.ZodOptional<z.ZodString>;
784
+ gtId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
752
785
  isTrial: z.ZodOptional<z.ZodBoolean>;
753
786
  classDate: z.ZodOptional<z.ZodString>;
754
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
787
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
755
788
  createdAt: z.ZodOptional<z.ZodDate>;
756
789
  updatedAt: z.ZodOptional<z.ZodDate>;
757
790
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -760,16 +793,16 @@ declare const zMGroupBooking: z.ZodObject<{
760
793
  lastName: string;
761
794
  rank: string;
762
795
  email: string;
763
- _id: mongoose.Types.ObjectId;
796
+ _id: Types.ObjectId;
764
797
  isOnline: boolean;
765
798
  paymentReceived?: boolean | undefined;
766
799
  expireAt?: Date | undefined;
800
+ userId?: Types.ObjectId | undefined;
767
801
  phone?: string | undefined;
768
802
  address?: string | undefined;
769
803
  notes?: string | undefined;
770
804
  shipping?: boolean | undefined;
771
- userId?: string | undefined;
772
- gtId?: string | undefined;
805
+ gtId?: Types.ObjectId | undefined;
773
806
  isTrial?: boolean | undefined;
774
807
  classDate?: string | undefined;
775
808
  createdAt?: Date | undefined;
@@ -780,16 +813,16 @@ declare const zMGroupBooking: z.ZodObject<{
780
813
  lastName: string;
781
814
  rank: string;
782
815
  email: string;
783
- _id: mongoose.Types.ObjectId;
816
+ _id: Types.ObjectId;
784
817
  isOnline: boolean;
785
818
  paymentReceived?: boolean | undefined;
786
819
  expireAt?: Date | undefined;
820
+ userId?: Types.ObjectId | undefined;
787
821
  phone?: string | undefined;
788
822
  address?: string | undefined;
789
823
  notes?: string | undefined;
790
824
  shipping?: boolean | undefined;
791
- userId?: string | undefined;
792
- gtId?: string | undefined;
825
+ gtId?: Types.ObjectId | undefined;
793
826
  isTrial?: boolean | undefined;
794
827
  classDate?: string | undefined;
795
828
  createdAt?: Date | undefined;
@@ -799,6 +832,7 @@ type GroupBooking = z.infer<typeof zGroupBooking>;
799
832
  type MGroupBooking = z.infer<typeof zMGroupBooking>;
800
833
 
801
834
  declare const zPrivateBooking: z.ZodObject<{
835
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
802
836
  firstName: z.ZodString;
803
837
  lastName: z.ZodString;
804
838
  rank: z.ZodString;
@@ -806,10 +840,9 @@ declare const zPrivateBooking: z.ZodObject<{
806
840
  phone: z.ZodOptional<z.ZodString>;
807
841
  address: z.ZodOptional<z.ZodString>;
808
842
  notes: z.ZodOptional<z.ZodString>;
809
- courseId: z.ZodString;
810
- userId: z.ZodOptional<z.ZodString>;
843
+ courseId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
811
844
  classDate: z.ZodOptional<z.ZodString>;
812
- teacherId: z.ZodString;
845
+ teacherId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
813
846
  paymentAmount: z.ZodNumber;
814
847
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
815
848
  expireAt: z.ZodOptional<z.ZodDate>;
@@ -819,12 +852,12 @@ declare const zPrivateBooking: z.ZodObject<{
819
852
  lastName: string;
820
853
  rank: string;
821
854
  email: string;
822
- courseId: string;
823
- teacherId: string;
855
+ courseId: Types.ObjectId;
856
+ teacherId: Types.ObjectId;
857
+ userId?: Types.ObjectId | undefined;
824
858
  phone?: string | undefined;
825
859
  address?: string | undefined;
826
860
  notes?: string | undefined;
827
- userId?: string | undefined;
828
861
  classDate?: string | undefined;
829
862
  paymentReceived?: boolean | undefined;
830
863
  expireAt?: Date | undefined;
@@ -834,12 +867,12 @@ declare const zPrivateBooking: z.ZodObject<{
834
867
  lastName: string;
835
868
  rank: string;
836
869
  email: string;
837
- courseId: string;
838
- teacherId: string;
870
+ courseId: Types.ObjectId;
871
+ teacherId: Types.ObjectId;
872
+ userId?: Types.ObjectId | undefined;
839
873
  phone?: string | undefined;
840
874
  address?: string | undefined;
841
875
  notes?: string | undefined;
842
- userId?: string | undefined;
843
876
  classDate?: string | undefined;
844
877
  paymentReceived?: boolean | undefined;
845
878
  expireAt?: Date | undefined;
@@ -848,6 +881,7 @@ declare const zMPrivateBooking: z.ZodObject<{
848
881
  paymentAmount: z.ZodNumber;
849
882
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
850
883
  expireAt: z.ZodOptional<z.ZodDate>;
884
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
851
885
  firstName: z.ZodString;
852
886
  lastName: z.ZodString;
853
887
  rank: z.ZodString;
@@ -855,11 +889,10 @@ declare const zMPrivateBooking: z.ZodObject<{
855
889
  phone: z.ZodOptional<z.ZodString>;
856
890
  address: z.ZodOptional<z.ZodString>;
857
891
  notes: z.ZodOptional<z.ZodString>;
858
- courseId: z.ZodString;
859
- userId: z.ZodOptional<z.ZodString>;
892
+ courseId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
860
893
  classDate: z.ZodOptional<z.ZodString>;
861
- teacherId: z.ZodString;
862
- _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>;
863
896
  createdAt: z.ZodOptional<z.ZodDate>;
864
897
  updatedAt: z.ZodOptional<z.ZodDate>;
865
898
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -868,15 +901,15 @@ declare const zMPrivateBooking: z.ZodObject<{
868
901
  lastName: string;
869
902
  rank: string;
870
903
  email: string;
871
- _id: mongoose.Types.ObjectId;
872
- courseId: string;
873
- teacherId: string;
904
+ _id: Types.ObjectId;
905
+ courseId: Types.ObjectId;
906
+ teacherId: Types.ObjectId;
874
907
  paymentReceived?: boolean | undefined;
875
908
  expireAt?: Date | undefined;
909
+ userId?: Types.ObjectId | undefined;
876
910
  phone?: string | undefined;
877
911
  address?: string | undefined;
878
912
  notes?: string | undefined;
879
- userId?: string | undefined;
880
913
  classDate?: string | undefined;
881
914
  createdAt?: Date | undefined;
882
915
  updatedAt?: Date | undefined;
@@ -886,15 +919,15 @@ declare const zMPrivateBooking: z.ZodObject<{
886
919
  lastName: string;
887
920
  rank: string;
888
921
  email: string;
889
- _id: mongoose.Types.ObjectId;
890
- courseId: string;
891
- teacherId: string;
922
+ _id: Types.ObjectId;
923
+ courseId: Types.ObjectId;
924
+ teacherId: Types.ObjectId;
892
925
  paymentReceived?: boolean | undefined;
893
926
  expireAt?: Date | undefined;
927
+ userId?: Types.ObjectId | undefined;
894
928
  phone?: string | undefined;
895
929
  address?: string | undefined;
896
930
  notes?: string | undefined;
897
- userId?: string | undefined;
898
931
  classDate?: string | undefined;
899
932
  createdAt?: Date | undefined;
900
933
  updatedAt?: Date | undefined;
@@ -1177,7 +1210,7 @@ declare const zTeacherPaymentRow: z.ZodObject<{
1177
1210
  wage: number;
1178
1211
  }>;
1179
1212
  declare const zTeacherPayment: z.ZodObject<{
1180
- teacher: z.ZodString;
1213
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1181
1214
  rows: z.ZodArray<z.ZodObject<{
1182
1215
  course: z.ZodString;
1183
1216
  length: z.ZodNumber;
@@ -1196,7 +1229,7 @@ declare const zTeacherPayment: z.ZodObject<{
1196
1229
  }>, "many">;
1197
1230
  paid: z.ZodOptional<z.ZodBoolean>;
1198
1231
  }, "strip", z.ZodTypeAny, {
1199
- teacher: string;
1232
+ teacher: Types.ObjectId;
1200
1233
  rows: {
1201
1234
  length: number;
1202
1235
  course: string;
@@ -1205,7 +1238,7 @@ declare const zTeacherPayment: z.ZodObject<{
1205
1238
  }[];
1206
1239
  paid?: boolean | undefined;
1207
1240
  }, {
1208
- teacher: string;
1241
+ teacher: Types.ObjectId;
1209
1242
  rows: {
1210
1243
  length: number;
1211
1244
  course: string;
@@ -1216,7 +1249,7 @@ declare const zTeacherPayment: z.ZodObject<{
1216
1249
  }>;
1217
1250
  declare const zMTeacherPayment: z.ZodObject<{
1218
1251
  paid: z.ZodOptional<z.ZodBoolean>;
1219
- teacher: z.ZodString;
1252
+ teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1220
1253
  rows: z.ZodArray<z.ZodObject<{
1221
1254
  course: z.ZodString;
1222
1255
  length: z.ZodNumber;
@@ -1233,12 +1266,12 @@ declare const zMTeacherPayment: z.ZodObject<{
1233
1266
  count: number;
1234
1267
  wage: number;
1235
1268
  }>, "many">;
1236
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1269
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1237
1270
  createdAt: z.ZodOptional<z.ZodDate>;
1238
1271
  updatedAt: z.ZodOptional<z.ZodDate>;
1239
1272
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1240
- _id: mongoose.Types.ObjectId;
1241
- teacher: string;
1273
+ _id: Types.ObjectId;
1274
+ teacher: Types.ObjectId;
1242
1275
  rows: {
1243
1276
  length: number;
1244
1277
  course: string;
@@ -1249,8 +1282,8 @@ declare const zMTeacherPayment: z.ZodObject<{
1249
1282
  createdAt?: Date | undefined;
1250
1283
  updatedAt?: Date | undefined;
1251
1284
  }, {
1252
- _id: mongoose.Types.ObjectId;
1253
- teacher: string;
1285
+ _id: Types.ObjectId;
1286
+ teacher: Types.ObjectId;
1254
1287
  rows: {
1255
1288
  length: number;
1256
1289
  course: string;
@@ -1368,8 +1401,8 @@ declare enum TicketStatus {
1368
1401
  }
1369
1402
 
1370
1403
  declare const zReportTicket: z.ZodObject<{
1371
- requester: z.ZodString;
1372
- resolver: z.ZodString;
1404
+ requester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1405
+ resolver: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1373
1406
  status: z.ZodNativeEnum<typeof TicketStatus>;
1374
1407
  title: z.ZodString;
1375
1408
  description: z.ZodString;
@@ -1377,40 +1410,40 @@ declare const zReportTicket: z.ZodObject<{
1377
1410
  status: TicketStatus;
1378
1411
  description: string;
1379
1412
  title: string;
1380
- requester: string;
1381
- resolver: string;
1413
+ requester: Types.ObjectId;
1414
+ resolver: Types.ObjectId;
1382
1415
  }, {
1383
1416
  status: TicketStatus;
1384
1417
  description: string;
1385
1418
  title: string;
1386
- requester: string;
1387
- resolver: string;
1419
+ requester: Types.ObjectId;
1420
+ resolver: Types.ObjectId;
1388
1421
  }>;
1389
1422
  declare const zMReportTicket: z.ZodObject<{
1390
1423
  status: z.ZodNativeEnum<typeof TicketStatus>;
1391
1424
  description: z.ZodString;
1392
1425
  title: z.ZodString;
1393
- requester: z.ZodString;
1394
- resolver: z.ZodString;
1395
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1426
+ requester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1427
+ resolver: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1428
+ _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1396
1429
  createdAt: z.ZodOptional<z.ZodDate>;
1397
1430
  updatedAt: z.ZodOptional<z.ZodDate>;
1398
1431
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1399
1432
  status: TicketStatus;
1400
- _id: mongoose.Types.ObjectId;
1433
+ _id: Types.ObjectId;
1401
1434
  description: string;
1402
1435
  title: string;
1403
- requester: string;
1404
- resolver: string;
1436
+ requester: Types.ObjectId;
1437
+ resolver: Types.ObjectId;
1405
1438
  createdAt?: Date | undefined;
1406
1439
  updatedAt?: Date | undefined;
1407
1440
  }, {
1408
1441
  status: TicketStatus;
1409
- _id: mongoose.Types.ObjectId;
1442
+ _id: Types.ObjectId;
1410
1443
  description: string;
1411
1444
  title: string;
1412
- requester: string;
1413
- resolver: string;
1445
+ requester: Types.ObjectId;
1446
+ resolver: Types.ObjectId;
1414
1447
  createdAt?: Date | undefined;
1415
1448
  updatedAt?: Date | undefined;
1416
1449
  }>;
@@ -1764,6 +1797,7 @@ type DetailsTable = z.infer<typeof zDetailsTable>;
1764
1797
  type ScheduleTable = z.infer<typeof zScheduleTable>;
1765
1798
 
1766
1799
  declare const zTReg: z.ZodObject<{
1800
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1767
1801
  firstName: z.ZodString;
1768
1802
  lastName: z.ZodString;
1769
1803
  rank: z.ZodString;
@@ -1801,6 +1835,7 @@ declare const zTReg: z.ZodObject<{
1801
1835
  }[];
1802
1836
  agaId: string;
1803
1837
  tournamentId: Types.ObjectId;
1838
+ userId?: Types.ObjectId | undefined;
1804
1839
  phone?: string | undefined;
1805
1840
  address?: string | undefined;
1806
1841
  notes?: string | undefined;
@@ -1821,6 +1856,7 @@ declare const zTReg: z.ZodObject<{
1821
1856
  }[];
1822
1857
  agaId: string;
1823
1858
  tournamentId: Types.ObjectId;
1859
+ userId?: Types.ObjectId | undefined;
1824
1860
  phone?: string | undefined;
1825
1861
  address?: string | undefined;
1826
1862
  notes?: string | undefined;
@@ -1834,6 +1870,7 @@ declare const zMTReg: z.ZodObject<{
1834
1870
  paymentAmount: z.ZodNumber;
1835
1871
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
1836
1872
  expireAt: z.ZodOptional<z.ZodDate>;
1873
+ userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1837
1874
  firstName: z.ZodString;
1838
1875
  lastName: z.ZodString;
1839
1876
  rank: z.ZodString;
@@ -1874,6 +1911,7 @@ declare const zMTReg: z.ZodObject<{
1874
1911
  tournamentId: Types.ObjectId;
1875
1912
  paymentReceived?: boolean | undefined;
1876
1913
  expireAt?: Date | undefined;
1914
+ userId?: Types.ObjectId | undefined;
1877
1915
  phone?: string | undefined;
1878
1916
  address?: string | undefined;
1879
1917
  notes?: string | undefined;
@@ -1897,6 +1935,7 @@ declare const zMTReg: z.ZodObject<{
1897
1935
  tournamentId: Types.ObjectId;
1898
1936
  paymentReceived?: boolean | undefined;
1899
1937
  expireAt?: Date | undefined;
1938
+ userId?: Types.ObjectId | undefined;
1900
1939
  phone?: string | undefined;
1901
1940
  address?: string | undefined;
1902
1941
  notes?: string | undefined;