@nyig/models 0.2.10 → 0.2.12

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 +1070 -421
  2. package/index.d.ts +1070 -421
  3. package/index.js +154 -144
  4. package/index.mjs +153 -144
  5. package/package.json +2 -1
package/index.d.mts CHANGED
@@ -1,104 +1,33 @@
1
1
  import { z } from 'zod';
2
+ import * as mongoose from 'mongoose';
2
3
 
3
- declare const zBUserInfo: z.ZodObject<{
4
- firstName: z.ZodString;
5
- lastName: z.ZodString;
6
- rank: z.ZodString;
7
- email: z.ZodString;
8
- phone: z.ZodOptional<z.ZodString>;
9
- address: z.ZodOptional<z.ZodString>;
10
- notes: z.ZodOptional<z.ZodString>;
11
- }, "strip", z.ZodTypeAny, {
12
- firstName: string;
13
- lastName: string;
14
- rank: string;
15
- email: string;
16
- phone?: string | undefined;
17
- address?: string | undefined;
18
- notes?: string | undefined;
19
- }, {
20
- firstName: string;
21
- lastName: string;
22
- rank: string;
23
- email: string;
24
- phone?: string | undefined;
25
- address?: string | undefined;
26
- notes?: string | undefined;
27
- }>;
28
- type BUserInfo = z.infer<typeof zBUserInfo>;
29
-
30
- declare const zPrivateBooking: z.ZodObject<{
31
- firstName: z.ZodString;
32
- lastName: z.ZodString;
33
- rank: z.ZodString;
34
- email: z.ZodString;
35
- phone: z.ZodOptional<z.ZodString>;
36
- address: z.ZodOptional<z.ZodString>;
37
- notes: z.ZodOptional<z.ZodString>;
38
- userId: z.ZodOptional<z.ZodString>;
39
- courseId: z.ZodString;
40
- teacherId: z.ZodString;
41
- classDate: z.ZodOptional<z.ZodString>;
4
+ declare const zBPaymentInfo: z.ZodObject<{
5
+ /**
6
+ * @units CENTS - Proposed payment amount in cents of the booking
7
+ */
42
8
  paymentAmount: z.ZodNumber;
9
+ /**
10
+ * True if the payment has been received. Populated by webhook.
11
+ */
43
12
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
13
+ /**
14
+ * When Date is reached, document is deleted by MongoDB sweeper.
15
+ * Creation typically marks one to two weeks.
16
+ * After payment, webhook should extend this date to essentially infinite.
17
+ */
44
18
  expireAt: z.ZodOptional<z.ZodDate>;
45
19
  }, "strip", z.ZodTypeAny, {
46
- firstName: string;
47
- lastName: string;
48
- rank: string;
49
- email: string;
50
20
  paymentAmount: number;
51
- courseId: string;
52
- teacherId: string;
53
- phone?: string | undefined;
54
- address?: string | undefined;
55
- notes?: string | undefined;
56
- userId?: string | undefined;
57
- classDate?: string | undefined;
58
21
  paymentReceived?: boolean | undefined;
59
22
  expireAt?: Date | undefined;
60
23
  }, {
61
- firstName: string;
62
- lastName: string;
63
- rank: string;
64
- email: string;
65
24
  paymentAmount: number;
66
- courseId: string;
67
- teacherId: string;
68
- phone?: string | undefined;
69
- address?: string | undefined;
70
- notes?: string | undefined;
71
- userId?: string | undefined;
72
- classDate?: string | undefined;
73
25
  paymentReceived?: boolean | undefined;
74
26
  expireAt?: Date | undefined;
75
27
  }>;
76
- declare const zMPrivateBooking: z.ZodObject<{
77
- [x: string]: any;
78
- [x: number]: any;
79
- [x: symbol]: any;
80
- _id: z.ZodString;
81
- createdAt: z.ZodOptional<z.ZodDate>;
82
- updatedAt: z.ZodOptional<z.ZodDate>;
83
- }, any, any, {
84
- [x: string]: any;
85
- [x: number]: any;
86
- [x: symbol]: any;
87
- _id?: string | undefined;
88
- createdAt?: Date | undefined;
89
- updatedAt?: Date | undefined;
90
- }, {
91
- [x: string]: any;
92
- [x: number]: any;
93
- [x: symbol]: any;
94
- _id?: string | undefined;
95
- createdAt?: Date | undefined;
96
- updatedAt?: Date | undefined;
97
- }>;
98
- type PrivateBooking = z.infer<typeof zPrivateBooking>;
99
- type MPrivateBooking = z.infer<typeof zMPrivateBooking>;
28
+ type BPaymentInfo = z.infer<typeof zBPaymentInfo>;
100
29
 
101
- declare const zGroupBooking: z.ZodObject<{
30
+ declare const zBUserInfo: z.ZodObject<{
102
31
  firstName: z.ZodString;
103
32
  lastName: z.ZodString;
104
33
  rank: z.ZodString;
@@ -106,74 +35,31 @@ declare const zGroupBooking: z.ZodObject<{
106
35
  phone: z.ZodOptional<z.ZodString>;
107
36
  address: z.ZodOptional<z.ZodString>;
108
37
  notes: z.ZodOptional<z.ZodString>;
109
- userId: z.ZodOptional<z.ZodString>;
110
- classDate: z.ZodOptional<z.ZodString>;
111
- gtId: z.ZodOptional<z.ZodString>;
112
- isTrial: z.ZodOptional<z.ZodBoolean>;
113
- isOnline: z.ZodBoolean;
114
- shipping: z.ZodOptional<z.ZodBoolean>;
115
- paymentAmount: z.ZodNumber;
116
- paymentReceived: z.ZodOptional<z.ZodBoolean>;
117
- expireAt: z.ZodOptional<z.ZodDate>;
118
38
  }, "strip", z.ZodTypeAny, {
119
39
  firstName: string;
120
40
  lastName: string;
121
41
  rank: string;
122
42
  email: string;
123
- paymentAmount: number;
124
- isOnline: boolean;
125
43
  phone?: string | undefined;
126
44
  address?: string | undefined;
127
45
  notes?: string | undefined;
128
- userId?: string | undefined;
129
- classDate?: string | undefined;
130
- gtId?: string | undefined;
131
- isTrial?: boolean | undefined;
132
- shipping?: boolean | undefined;
133
- paymentReceived?: boolean | undefined;
134
- expireAt?: Date | undefined;
135
46
  }, {
136
47
  firstName: string;
137
48
  lastName: string;
138
49
  rank: string;
139
50
  email: string;
140
- paymentAmount: number;
141
- isOnline: boolean;
142
51
  phone?: string | undefined;
143
52
  address?: string | undefined;
144
53
  notes?: string | undefined;
145
- userId?: string | undefined;
146
- classDate?: string | undefined;
147
- gtId?: string | undefined;
148
- isTrial?: boolean | undefined;
149
- shipping?: boolean | undefined;
150
- paymentReceived?: boolean | undefined;
151
- expireAt?: Date | undefined;
152
- }>;
153
- declare const zMGroupBooking: z.ZodObject<{
154
- [x: string]: any;
155
- [x: number]: any;
156
- [x: symbol]: any;
157
- _id: z.ZodString;
158
- createdAt: z.ZodOptional<z.ZodDate>;
159
- updatedAt: z.ZodOptional<z.ZodDate>;
160
- }, any, any, {
161
- [x: string]: any;
162
- [x: number]: any;
163
- [x: symbol]: any;
164
- _id?: string | undefined;
165
- createdAt?: Date | undefined;
166
- updatedAt?: Date | undefined;
167
- }, {
168
- [x: string]: any;
169
- [x: number]: any;
170
- [x: symbol]: any;
171
- _id?: string | undefined;
172
- createdAt?: Date | undefined;
173
- updatedAt?: Date | undefined;
174
54
  }>;
175
- type GroupBooking = z.infer<typeof zGroupBooking>;
176
- type MGroupBooking = z.infer<typeof zMGroupBooking>;
55
+ type BUserInfo = z.infer<typeof zBUserInfo>;
56
+
57
+ declare enum BookingType {
58
+ GROUP = "group",
59
+ PRIVATE = "private",
60
+ TOURNAMENT = "tournament",
61
+ CAMP = "camp"
62
+ }
177
63
 
178
64
  declare enum AttendState {
179
65
  ABSENT = "absent",
@@ -227,24 +113,50 @@ declare const zAttendance: z.ZodObject<{
227
113
  paid?: boolean | undefined;
228
114
  }>;
229
115
  declare const zMAttendance: z.ZodObject<{
230
- [x: string]: any;
231
- [x: number]: any;
232
- [x: symbol]: any;
233
- _id: z.ZodString;
116
+ student: z.ZodString;
117
+ states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
118
+ tuition: z.ZodObject<{
119
+ primary: z.ZodNumber;
120
+ textbook: z.ZodOptional<z.ZodBoolean>;
121
+ shipping: z.ZodOptional<z.ZodBoolean>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ primary: number;
124
+ textbook?: boolean | undefined;
125
+ shipping?: boolean | undefined;
126
+ }, {
127
+ primary: number;
128
+ textbook?: boolean | undefined;
129
+ shipping?: boolean | undefined;
130
+ }>;
131
+ paid: z.ZodOptional<z.ZodBoolean>;
132
+ campOption: z.ZodNativeEnum<typeof CampOption>;
133
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
234
134
  createdAt: z.ZodOptional<z.ZodDate>;
235
135
  updatedAt: z.ZodOptional<z.ZodDate>;
236
- }, any, any, {
237
- [x: string]: any;
238
- [x: number]: any;
239
- [x: symbol]: any;
240
- _id?: string | undefined;
136
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
137
+ _id: mongoose.Types.ObjectId;
138
+ student: string;
139
+ states: AttendState[];
140
+ tuition: {
141
+ primary: number;
142
+ textbook?: boolean | undefined;
143
+ shipping?: boolean | undefined;
144
+ };
145
+ campOption: CampOption;
146
+ paid?: boolean | undefined;
241
147
  createdAt?: Date | undefined;
242
148
  updatedAt?: Date | undefined;
243
149
  }, {
244
- [x: string]: any;
245
- [x: number]: any;
246
- [x: symbol]: any;
247
- _id?: string | undefined;
150
+ _id: mongoose.Types.ObjectId;
151
+ student: string;
152
+ states: AttendState[];
153
+ tuition: {
154
+ primary: number;
155
+ textbook?: boolean | undefined;
156
+ shipping?: boolean | undefined;
157
+ };
158
+ campOption: CampOption;
159
+ paid?: boolean | undefined;
248
160
  createdAt?: Date | undefined;
249
161
  updatedAt?: Date | undefined;
250
162
  }>;
@@ -289,24 +201,33 @@ declare const zCampTracker: z.ZodObject<{
289
201
  notes?: string | undefined;
290
202
  }>;
291
203
  declare const zMCampTracker: z.ZodObject<{
292
- [x: string]: any;
293
- [x: number]: any;
294
- [x: symbol]: any;
295
- _id: z.ZodString;
204
+ notes: z.ZodOptional<z.ZodString>;
205
+ course: z.ZodString;
206
+ teacher: z.ZodString;
207
+ semester: z.ZodString;
208
+ occurrences: z.ZodArray<z.ZodString, "many">;
209
+ attendances: z.ZodArray<z.ZodString, "many">;
210
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
296
211
  createdAt: z.ZodOptional<z.ZodDate>;
297
212
  updatedAt: z.ZodOptional<z.ZodDate>;
298
- }, any, any, {
299
- [x: string]: any;
300
- [x: number]: any;
301
- [x: symbol]: any;
302
- _id?: string | undefined;
213
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
214
+ _id: mongoose.Types.ObjectId;
215
+ course: string;
216
+ teacher: string;
217
+ semester: string;
218
+ occurrences: string[];
219
+ attendances: string[];
220
+ notes?: string | undefined;
303
221
  createdAt?: Date | undefined;
304
222
  updatedAt?: Date | undefined;
305
223
  }, {
306
- [x: string]: any;
307
- [x: number]: any;
308
- [x: symbol]: any;
309
- _id?: string | undefined;
224
+ _id: mongoose.Types.ObjectId;
225
+ course: string;
226
+ teacher: string;
227
+ semester: string;
228
+ occurrences: string[];
229
+ attendances: string[];
230
+ notes?: string | undefined;
310
231
  createdAt?: Date | undefined;
311
232
  updatedAt?: Date | undefined;
312
233
  }>;
@@ -335,9 +256,7 @@ declare const zClassTracker: z.ZodObject<{
335
256
  tuition: z.ZodOptional<z.ZodObject<{
336
257
  primary: z.ZodNumber;
337
258
  textbook: z.ZodOptional<z.ZodBoolean>;
338
- shipping: z.ZodOptional<z.ZodBoolean>; /**
339
- * Mongoose object ID
340
- */
259
+ shipping: z.ZodOptional<z.ZodBoolean>;
341
260
  }, "strip", z.ZodTypeAny, {
342
261
  primary: number;
343
262
  textbook?: boolean | undefined;
@@ -379,24 +298,62 @@ declare const zClassTracker: z.ZodObject<{
379
298
  notes?: string | undefined;
380
299
  }>;
381
300
  declare const zMClassTracker: z.ZodObject<{
382
- [x: string]: any;
383
- [x: number]: any;
384
- [x: symbol]: any;
385
- _id: z.ZodString;
301
+ notes: z.ZodOptional<z.ZodString>;
302
+ tuition: z.ZodOptional<z.ZodObject<{
303
+ primary: z.ZodNumber;
304
+ textbook: z.ZodOptional<z.ZodBoolean>;
305
+ shipping: z.ZodOptional<z.ZodBoolean>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ primary: number;
308
+ textbook?: boolean | undefined;
309
+ shipping?: boolean | undefined;
310
+ }, {
311
+ primary: number;
312
+ textbook?: boolean | undefined;
313
+ shipping?: boolean | undefined;
314
+ }>>;
315
+ paid: z.ZodOptional<z.ZodBoolean>;
316
+ course: z.ZodString;
317
+ teacher: z.ZodString;
318
+ semester: z.ZodString;
319
+ classTimes: z.ZodArray<z.ZodDate, "many">;
320
+ completedList: z.ZodArray<z.ZodBoolean, "many">;
321
+ completed: z.ZodOptional<z.ZodBoolean>;
322
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
386
323
  createdAt: z.ZodOptional<z.ZodDate>;
387
324
  updatedAt: z.ZodOptional<z.ZodDate>;
388
- }, any, any, {
389
- [x: string]: any;
390
- [x: number]: any;
391
- [x: symbol]: any;
392
- _id?: string | undefined;
325
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
326
+ _id: mongoose.Types.ObjectId;
327
+ course: string;
328
+ teacher: string;
329
+ semester: string;
330
+ classTimes: Date[];
331
+ completedList: boolean[];
332
+ notes?: string | undefined;
333
+ tuition?: {
334
+ primary: number;
335
+ textbook?: boolean | undefined;
336
+ shipping?: boolean | undefined;
337
+ } | undefined;
338
+ paid?: boolean | undefined;
339
+ completed?: boolean | undefined;
393
340
  createdAt?: Date | undefined;
394
341
  updatedAt?: Date | undefined;
395
342
  }, {
396
- [x: string]: any;
397
- [x: number]: any;
398
- [x: symbol]: any;
399
- _id?: string | undefined;
343
+ _id: mongoose.Types.ObjectId;
344
+ course: string;
345
+ teacher: string;
346
+ semester: string;
347
+ classTimes: Date[];
348
+ completedList: boolean[];
349
+ notes?: string | undefined;
350
+ tuition?: {
351
+ primary: number;
352
+ textbook?: boolean | undefined;
353
+ shipping?: boolean | undefined;
354
+ } | undefined;
355
+ paid?: boolean | undefined;
356
+ completed?: boolean | undefined;
400
357
  createdAt?: Date | undefined;
401
358
  updatedAt?: Date | undefined;
402
359
  }>;
@@ -471,28 +428,46 @@ declare const zCourse: z.ZodObject<{
471
428
  description?: string | undefined;
472
429
  }>;
473
430
  declare const zMCourse: z.ZodObject<{
474
- [x: string]: any;
475
- [x: number]: any;
476
- [x: symbol]: any;
477
- _id: z.ZodString;
431
+ price: z.ZodNumber;
432
+ name: z.ZodString;
433
+ category: z.ZodNativeEnum<typeof CourseCategory>;
434
+ duration: z.ZodNumber;
435
+ description: z.ZodOptional<z.ZodString>;
436
+ nyigSchool: z.ZodNativeEnum<typeof NYIGSchool>;
437
+ recLevel: z.ZodString;
438
+ halfCampTuition: z.ZodNumber;
439
+ fullCampTuition: z.ZodNumber;
440
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
478
441
  createdAt: z.ZodOptional<z.ZodDate>;
479
442
  updatedAt: z.ZodOptional<z.ZodDate>;
480
- }, any, any, {
481
- [x: string]: any;
482
- [x: number]: any;
483
- [x: symbol]: any;
484
- _id?: string | undefined;
443
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
444
+ _id: mongoose.Types.ObjectId;
445
+ price: number;
446
+ name: string;
447
+ category: CourseCategory;
448
+ duration: number;
449
+ nyigSchool: NYIGSchool;
450
+ recLevel: string;
451
+ halfCampTuition: number;
452
+ fullCampTuition: number;
453
+ description?: string | undefined;
485
454
  createdAt?: Date | undefined;
486
455
  updatedAt?: Date | undefined;
487
456
  }, {
488
- [x: string]: any;
489
- [x: number]: any;
490
- [x: symbol]: any;
491
- _id?: string | undefined;
492
- createdAt?: Date | undefined;
493
- updatedAt?: Date | undefined;
494
- }>;
495
- type Course = z.infer<typeof zCourse>;
457
+ _id: mongoose.Types.ObjectId;
458
+ price: number;
459
+ name: string;
460
+ category: CourseCategory;
461
+ duration: number;
462
+ nyigSchool: NYIGSchool;
463
+ recLevel: string;
464
+ halfCampTuition: number;
465
+ fullCampTuition: number;
466
+ description?: string | undefined;
467
+ createdAt?: Date | undefined;
468
+ updatedAt?: Date | undefined;
469
+ }>;
470
+ type Course = z.infer<typeof zCourse>;
496
471
  type MCourse = z.infer<typeof zMCourse>;
497
472
 
498
473
  declare const zGroupTracker: z.ZodObject<{
@@ -569,24 +544,60 @@ declare const zGroupTracker: z.ZodObject<{
569
544
  notes?: string | undefined;
570
545
  }>;
571
546
  declare const zMGroupTracker: z.ZodObject<{
572
- [x: string]: any;
573
- [x: number]: any;
574
- [x: symbol]: any;
575
- _id: z.ZodString;
547
+ notes: z.ZodOptional<z.ZodString>;
548
+ course: z.ZodString;
549
+ teacher: z.ZodString;
550
+ semester: z.ZodString;
551
+ occurrences: z.ZodArray<z.ZodDate, "many">;
552
+ attendances: z.ZodArray<z.ZodString, "many">;
553
+ scheduleData: z.ZodObject<{
554
+ startTime: z.ZodString;
555
+ dayOfWeek: z.ZodNumber;
556
+ }, "strip", z.ZodTypeAny, {
557
+ startTime: string;
558
+ dayOfWeek: number;
559
+ }, {
560
+ startTime: string;
561
+ dayOfWeek: number;
562
+ }>;
563
+ courseId: z.ZodOptional<z.ZodString>;
564
+ ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
565
+ isNonPublic: z.ZodOptional<z.ZodBoolean>;
566
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
576
567
  createdAt: z.ZodOptional<z.ZodDate>;
577
568
  updatedAt: z.ZodOptional<z.ZodDate>;
578
- }, any, any, {
579
- [x: string]: any;
580
- [x: number]: any;
581
- [x: symbol]: any;
582
- _id?: string | undefined;
569
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
570
+ _id: mongoose.Types.ObjectId;
571
+ course: string;
572
+ teacher: string;
573
+ semester: string;
574
+ occurrences: Date[];
575
+ attendances: string[];
576
+ scheduleData: {
577
+ startTime: string;
578
+ dayOfWeek: number;
579
+ };
580
+ notes?: string | undefined;
581
+ courseId?: string | undefined;
582
+ ageGroup?: AgeGroup | undefined;
583
+ isNonPublic?: boolean | undefined;
583
584
  createdAt?: Date | undefined;
584
585
  updatedAt?: Date | undefined;
585
586
  }, {
586
- [x: string]: any;
587
- [x: number]: any;
588
- [x: symbol]: any;
589
- _id?: string | undefined;
587
+ _id: mongoose.Types.ObjectId;
588
+ course: string;
589
+ teacher: string;
590
+ semester: string;
591
+ occurrences: Date[];
592
+ attendances: string[];
593
+ scheduleData: {
594
+ startTime: string;
595
+ dayOfWeek: number;
596
+ };
597
+ notes?: string | undefined;
598
+ courseId?: string | undefined;
599
+ ageGroup?: AgeGroup | undefined;
600
+ isNonPublic?: boolean | undefined;
590
601
  createdAt?: Date | undefined;
591
602
  updatedAt?: Date | undefined;
592
603
  }>;
@@ -613,100 +624,333 @@ declare const zCampBooking: z.ZodObject<{
613
624
  phone: z.ZodOptional<z.ZodString>;
614
625
  address: z.ZodOptional<z.ZodString>;
615
626
  notes: z.ZodOptional<z.ZodString>;
616
- userId: z.ZodOptional<z.ZodString>;
617
- isOnline: z.ZodBoolean;
618
627
  shipping: z.ZodOptional<z.ZodBoolean>;
619
628
  campOption: z.ZodNativeEnum<typeof CampOption>;
629
+ userId: z.ZodOptional<z.ZodString>;
620
630
  ctId: z.ZodOptional<z.ZodString>;
631
+ isOnline: z.ZodBoolean;
621
632
  classDates: z.ZodString;
622
633
  paymentAmount: z.ZodNumber;
623
634
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
624
635
  expireAt: z.ZodOptional<z.ZodDate>;
625
636
  }, "strip", z.ZodTypeAny, {
637
+ paymentAmount: number;
626
638
  firstName: string;
627
639
  lastName: string;
628
640
  rank: string;
629
641
  email: string;
630
- paymentAmount: number;
631
- isOnline: boolean;
632
642
  campOption: CampOption;
643
+ isOnline: boolean;
633
644
  classDates: string;
634
645
  phone?: string | undefined;
635
646
  address?: string | undefined;
636
647
  notes?: string | undefined;
637
- userId?: string | undefined;
638
648
  shipping?: boolean | undefined;
649
+ userId?: string | undefined;
639
650
  ctId?: string | undefined;
640
651
  paymentReceived?: boolean | undefined;
641
652
  expireAt?: Date | undefined;
642
653
  }, {
654
+ paymentAmount: number;
643
655
  firstName: string;
644
656
  lastName: string;
645
657
  rank: string;
646
658
  email: string;
647
- paymentAmount: number;
648
- isOnline: boolean;
649
659
  campOption: CampOption;
660
+ isOnline: boolean;
650
661
  classDates: string;
651
662
  phone?: string | undefined;
652
663
  address?: string | undefined;
653
664
  notes?: string | undefined;
654
- userId?: string | undefined;
655
665
  shipping?: boolean | undefined;
666
+ userId?: string | undefined;
656
667
  ctId?: string | undefined;
657
668
  paymentReceived?: boolean | undefined;
658
669
  expireAt?: Date | undefined;
659
670
  }>;
660
671
  declare const zMCampBooking: z.ZodObject<{
661
- [x: string]: any;
662
- [x: number]: any;
663
- [x: symbol]: any;
664
- _id: z.ZodString;
672
+ paymentAmount: z.ZodNumber;
673
+ paymentReceived: z.ZodOptional<z.ZodBoolean>;
674
+ expireAt: z.ZodOptional<z.ZodDate>;
675
+ firstName: z.ZodString;
676
+ lastName: z.ZodString;
677
+ rank: z.ZodString;
678
+ email: z.ZodString;
679
+ phone: z.ZodOptional<z.ZodString>;
680
+ address: z.ZodOptional<z.ZodString>;
681
+ notes: z.ZodOptional<z.ZodString>;
682
+ shipping: z.ZodOptional<z.ZodBoolean>;
683
+ campOption: z.ZodNativeEnum<typeof CampOption>;
684
+ userId: z.ZodOptional<z.ZodString>;
685
+ ctId: z.ZodOptional<z.ZodString>;
686
+ isOnline: z.ZodBoolean;
687
+ classDates: z.ZodString;
688
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
665
689
  createdAt: z.ZodOptional<z.ZodDate>;
666
690
  updatedAt: z.ZodOptional<z.ZodDate>;
667
- }, any, any, {
668
- [x: string]: any;
669
- [x: number]: any;
670
- [x: symbol]: any;
671
- _id?: string | undefined;
691
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
692
+ paymentAmount: number;
693
+ firstName: string;
694
+ lastName: string;
695
+ rank: string;
696
+ email: string;
697
+ _id: mongoose.Types.ObjectId;
698
+ campOption: CampOption;
699
+ isOnline: boolean;
700
+ classDates: string;
701
+ paymentReceived?: boolean | undefined;
702
+ expireAt?: Date | undefined;
703
+ phone?: string | undefined;
704
+ address?: string | undefined;
705
+ notes?: string | undefined;
706
+ shipping?: boolean | undefined;
707
+ userId?: string | undefined;
708
+ ctId?: string | undefined;
672
709
  createdAt?: Date | undefined;
673
710
  updatedAt?: Date | undefined;
674
711
  }, {
675
- [x: string]: any;
676
- [x: number]: any;
677
- [x: symbol]: any;
678
- _id?: string | undefined;
712
+ paymentAmount: number;
713
+ firstName: string;
714
+ lastName: string;
715
+ rank: string;
716
+ email: string;
717
+ _id: mongoose.Types.ObjectId;
718
+ campOption: CampOption;
719
+ isOnline: boolean;
720
+ classDates: string;
721
+ paymentReceived?: boolean | undefined;
722
+ expireAt?: Date | undefined;
723
+ phone?: string | undefined;
724
+ address?: string | undefined;
725
+ notes?: string | undefined;
726
+ shipping?: boolean | undefined;
727
+ userId?: string | undefined;
728
+ ctId?: string | undefined;
679
729
  createdAt?: Date | undefined;
680
730
  updatedAt?: Date | undefined;
681
731
  }>;
682
732
  type CampBooking = z.infer<typeof zCampBooking>;
683
733
  type MCampBooking = z.infer<typeof zMCampBooking>;
684
734
 
685
- declare const zBPaymentInfo: z.ZodObject<{
686
- /**
687
- * @units CENTS - Proposed payment amount in cents of the booking
688
- */
735
+ declare const zGroupBooking: z.ZodObject<{
736
+ firstName: z.ZodString;
737
+ lastName: z.ZodString;
738
+ rank: z.ZodString;
739
+ email: z.ZodString;
740
+ phone: z.ZodOptional<z.ZodString>;
741
+ address: z.ZodOptional<z.ZodString>;
742
+ notes: z.ZodOptional<z.ZodString>;
743
+ shipping: z.ZodOptional<z.ZodBoolean>;
744
+ userId: z.ZodOptional<z.ZodString>;
745
+ isOnline: z.ZodBoolean;
746
+ gtId: z.ZodOptional<z.ZodString>;
747
+ isTrial: z.ZodOptional<z.ZodBoolean>;
748
+ classDate: z.ZodOptional<z.ZodString>;
689
749
  paymentAmount: z.ZodNumber;
690
- /**
691
- * True if the payment has been received. Populated by webhook.
692
- */
693
750
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
694
- /**
695
- * When Date is reached, document is deleted by MongoDB sweeper.
696
- * Creation typically marks one to two weeks.
697
- * After payment, webhook should extend this date to essentially infinite.
698
- */
699
751
  expireAt: z.ZodOptional<z.ZodDate>;
700
752
  }, "strip", z.ZodTypeAny, {
701
753
  paymentAmount: number;
754
+ firstName: string;
755
+ lastName: string;
756
+ rank: string;
757
+ email: string;
758
+ isOnline: boolean;
759
+ phone?: string | undefined;
760
+ address?: string | undefined;
761
+ notes?: string | undefined;
762
+ shipping?: boolean | undefined;
763
+ userId?: string | undefined;
764
+ gtId?: string | undefined;
765
+ isTrial?: boolean | undefined;
766
+ classDate?: string | undefined;
702
767
  paymentReceived?: boolean | undefined;
703
768
  expireAt?: Date | undefined;
704
769
  }, {
705
770
  paymentAmount: number;
771
+ firstName: string;
772
+ lastName: string;
773
+ rank: string;
774
+ email: string;
775
+ isOnline: boolean;
776
+ phone?: string | undefined;
777
+ address?: string | undefined;
778
+ notes?: string | undefined;
779
+ shipping?: boolean | undefined;
780
+ userId?: string | undefined;
781
+ gtId?: string | undefined;
782
+ isTrial?: boolean | undefined;
783
+ classDate?: string | undefined;
706
784
  paymentReceived?: boolean | undefined;
707
785
  expireAt?: Date | undefined;
708
786
  }>;
709
- type BPaymentInfo = z.infer<typeof zBPaymentInfo>;
787
+ declare const zMGroupBooking: z.ZodObject<{
788
+ paymentAmount: z.ZodNumber;
789
+ paymentReceived: z.ZodOptional<z.ZodBoolean>;
790
+ expireAt: z.ZodOptional<z.ZodDate>;
791
+ firstName: z.ZodString;
792
+ lastName: z.ZodString;
793
+ rank: z.ZodString;
794
+ email: z.ZodString;
795
+ phone: z.ZodOptional<z.ZodString>;
796
+ address: z.ZodOptional<z.ZodString>;
797
+ notes: z.ZodOptional<z.ZodString>;
798
+ shipping: z.ZodOptional<z.ZodBoolean>;
799
+ userId: z.ZodOptional<z.ZodString>;
800
+ isOnline: z.ZodBoolean;
801
+ gtId: z.ZodOptional<z.ZodString>;
802
+ isTrial: z.ZodOptional<z.ZodBoolean>;
803
+ classDate: z.ZodOptional<z.ZodString>;
804
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
805
+ createdAt: z.ZodOptional<z.ZodDate>;
806
+ updatedAt: z.ZodOptional<z.ZodDate>;
807
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
808
+ paymentAmount: number;
809
+ firstName: string;
810
+ lastName: string;
811
+ rank: string;
812
+ email: string;
813
+ _id: mongoose.Types.ObjectId;
814
+ isOnline: boolean;
815
+ paymentReceived?: boolean | undefined;
816
+ expireAt?: Date | undefined;
817
+ phone?: string | undefined;
818
+ address?: string | undefined;
819
+ notes?: string | undefined;
820
+ shipping?: boolean | undefined;
821
+ userId?: string | undefined;
822
+ gtId?: string | undefined;
823
+ isTrial?: boolean | undefined;
824
+ classDate?: string | undefined;
825
+ createdAt?: Date | undefined;
826
+ updatedAt?: Date | undefined;
827
+ }, {
828
+ paymentAmount: number;
829
+ firstName: string;
830
+ lastName: string;
831
+ rank: string;
832
+ email: string;
833
+ _id: mongoose.Types.ObjectId;
834
+ isOnline: boolean;
835
+ paymentReceived?: boolean | undefined;
836
+ expireAt?: Date | undefined;
837
+ phone?: string | undefined;
838
+ address?: string | undefined;
839
+ notes?: string | undefined;
840
+ shipping?: boolean | undefined;
841
+ userId?: string | undefined;
842
+ gtId?: string | undefined;
843
+ isTrial?: boolean | undefined;
844
+ classDate?: string | undefined;
845
+ createdAt?: Date | undefined;
846
+ updatedAt?: Date | undefined;
847
+ }>;
848
+ type GroupBooking = z.infer<typeof zGroupBooking>;
849
+ type MGroupBooking = z.infer<typeof zMGroupBooking>;
850
+
851
+ declare const zPrivateBooking: z.ZodObject<{
852
+ firstName: z.ZodString;
853
+ lastName: z.ZodString;
854
+ rank: z.ZodString;
855
+ email: z.ZodString;
856
+ phone: z.ZodOptional<z.ZodString>;
857
+ address: z.ZodOptional<z.ZodString>;
858
+ notes: z.ZodOptional<z.ZodString>;
859
+ courseId: z.ZodString;
860
+ userId: z.ZodOptional<z.ZodString>;
861
+ classDate: z.ZodOptional<z.ZodString>;
862
+ teacherId: z.ZodString;
863
+ paymentAmount: z.ZodNumber;
864
+ paymentReceived: z.ZodOptional<z.ZodBoolean>;
865
+ expireAt: z.ZodOptional<z.ZodDate>;
866
+ }, "strip", z.ZodTypeAny, {
867
+ paymentAmount: number;
868
+ firstName: string;
869
+ lastName: string;
870
+ rank: string;
871
+ email: string;
872
+ courseId: string;
873
+ teacherId: string;
874
+ phone?: string | undefined;
875
+ address?: string | undefined;
876
+ notes?: string | undefined;
877
+ userId?: string | undefined;
878
+ classDate?: string | undefined;
879
+ paymentReceived?: boolean | undefined;
880
+ expireAt?: Date | undefined;
881
+ }, {
882
+ paymentAmount: number;
883
+ firstName: string;
884
+ lastName: string;
885
+ rank: string;
886
+ email: string;
887
+ courseId: string;
888
+ teacherId: string;
889
+ phone?: string | undefined;
890
+ address?: string | undefined;
891
+ notes?: string | undefined;
892
+ userId?: string | undefined;
893
+ classDate?: string | undefined;
894
+ paymentReceived?: boolean | undefined;
895
+ expireAt?: Date | undefined;
896
+ }>;
897
+ declare const zMPrivateBooking: z.ZodObject<{
898
+ paymentAmount: z.ZodNumber;
899
+ paymentReceived: z.ZodOptional<z.ZodBoolean>;
900
+ expireAt: z.ZodOptional<z.ZodDate>;
901
+ firstName: z.ZodString;
902
+ lastName: z.ZodString;
903
+ rank: z.ZodString;
904
+ email: z.ZodString;
905
+ phone: z.ZodOptional<z.ZodString>;
906
+ address: z.ZodOptional<z.ZodString>;
907
+ notes: z.ZodOptional<z.ZodString>;
908
+ courseId: z.ZodString;
909
+ userId: z.ZodOptional<z.ZodString>;
910
+ classDate: z.ZodOptional<z.ZodString>;
911
+ teacherId: z.ZodString;
912
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
913
+ createdAt: z.ZodOptional<z.ZodDate>;
914
+ updatedAt: z.ZodOptional<z.ZodDate>;
915
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
916
+ paymentAmount: number;
917
+ firstName: string;
918
+ lastName: string;
919
+ rank: string;
920
+ email: string;
921
+ _id: mongoose.Types.ObjectId;
922
+ courseId: string;
923
+ teacherId: string;
924
+ paymentReceived?: boolean | undefined;
925
+ expireAt?: Date | undefined;
926
+ phone?: string | undefined;
927
+ address?: string | undefined;
928
+ notes?: string | undefined;
929
+ userId?: string | undefined;
930
+ classDate?: string | undefined;
931
+ createdAt?: Date | undefined;
932
+ updatedAt?: Date | undefined;
933
+ }, {
934
+ paymentAmount: number;
935
+ firstName: string;
936
+ lastName: string;
937
+ rank: string;
938
+ email: string;
939
+ _id: mongoose.Types.ObjectId;
940
+ courseId: string;
941
+ teacherId: string;
942
+ paymentReceived?: boolean | undefined;
943
+ expireAt?: Date | undefined;
944
+ phone?: string | undefined;
945
+ address?: string | undefined;
946
+ notes?: string | undefined;
947
+ userId?: string | undefined;
948
+ classDate?: string | undefined;
949
+ createdAt?: Date | undefined;
950
+ updatedAt?: Date | undefined;
951
+ }>;
952
+ type PrivateBooking = z.infer<typeof zPrivateBooking>;
953
+ type MPrivateBooking = z.infer<typeof zMPrivateBooking>;
710
954
 
711
955
  declare enum PaymentMethod {
712
956
  CASH = "Cash",
@@ -763,21 +1007,126 @@ declare const zInvoicePackage: z.ZodObject<{
763
1007
  units: number;
764
1008
  }>, "many">;
765
1009
  }, "strip", z.ZodTypeAny, {
766
- student: string;
767
- items: {
768
- course: string;
769
- price: number;
770
- units: number;
1010
+ student: string;
1011
+ items: {
1012
+ course: string;
1013
+ price: number;
1014
+ units: number;
1015
+ }[];
1016
+ }, {
1017
+ student: string;
1018
+ items: {
1019
+ course: string;
1020
+ price: number;
1021
+ units: number;
1022
+ }[];
1023
+ }>;
1024
+ declare const zInvoice: z.ZodObject<{
1025
+ billTo: z.ZodString;
1026
+ packages: z.ZodArray<z.ZodObject<{
1027
+ /**
1028
+ * Mongoose object ID
1029
+ */
1030
+ student: z.ZodString;
1031
+ items: z.ZodArray<z.ZodObject<{
1032
+ /**
1033
+ * Mongoose object ID
1034
+ */
1035
+ course: z.ZodString;
1036
+ price: z.ZodNumber;
1037
+ units: z.ZodNumber;
1038
+ }, "strip", z.ZodTypeAny, {
1039
+ course: string;
1040
+ price: number;
1041
+ units: number;
1042
+ }, {
1043
+ course: string;
1044
+ price: number;
1045
+ units: number;
1046
+ }>, "many">;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ student: string;
1049
+ items: {
1050
+ course: string;
1051
+ price: number;
1052
+ units: number;
1053
+ }[];
1054
+ }, {
1055
+ student: string;
1056
+ items: {
1057
+ course: string;
1058
+ price: number;
1059
+ units: number;
1060
+ }[];
1061
+ }>, "many">;
1062
+ discounts: z.ZodArray<z.ZodObject<{
1063
+ desc: z.ZodString;
1064
+ amount: z.ZodNumber;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ desc: string;
1067
+ amount: number;
1068
+ }, {
1069
+ desc: string;
1070
+ amount: number;
1071
+ }>, "many">;
1072
+ textbook: z.ZodOptional<z.ZodNumber>;
1073
+ shipping: z.ZodOptional<z.ZodNumber>;
1074
+ paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
1075
+ 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>;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ billTo: string;
1086
+ packages: {
1087
+ student: string;
1088
+ items: {
1089
+ course: string;
1090
+ price: number;
1091
+ units: number;
1092
+ }[];
1093
+ }[];
1094
+ discounts: {
1095
+ desc: string;
1096
+ amount: number;
771
1097
  }[];
1098
+ createdBy: string;
1099
+ textbook?: number | undefined;
1100
+ shipping?: number | undefined;
1101
+ paid?: PaymentMethod | undefined;
1102
+ notes?: string | undefined;
1103
+ lastEditBy?: string | undefined;
772
1104
  }, {
773
- student: string;
774
- items: {
775
- course: string;
776
- price: number;
777
- units: number;
1105
+ billTo: string;
1106
+ packages: {
1107
+ student: string;
1108
+ items: {
1109
+ course: string;
1110
+ price: number;
1111
+ units: number;
1112
+ }[];
1113
+ }[];
1114
+ discounts: {
1115
+ desc: string;
1116
+ amount: number;
778
1117
  }[];
1118
+ createdBy: string;
1119
+ textbook?: number | undefined;
1120
+ shipping?: number | undefined;
1121
+ paid?: PaymentMethod | undefined;
1122
+ notes?: string | undefined;
1123
+ lastEditBy?: string | undefined;
779
1124
  }>;
780
- declare const zInvoice: z.ZodObject<{
1125
+ declare const zMInvoice: z.ZodObject<{
1126
+ notes: z.ZodOptional<z.ZodString>;
1127
+ textbook: z.ZodOptional<z.ZodNumber>;
1128
+ shipping: z.ZodOptional<z.ZodNumber>;
1129
+ paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
781
1130
  billTo: z.ZodString;
782
1131
  packages: z.ZodArray<z.ZodObject<{
783
1132
  /**
@@ -825,19 +1174,13 @@ declare const zInvoice: z.ZodObject<{
825
1174
  desc: string;
826
1175
  amount: number;
827
1176
  }>, "many">;
828
- textbook: z.ZodOptional<z.ZodNumber>;
829
- shipping: z.ZodOptional<z.ZodNumber>;
830
- paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
831
- notes: z.ZodOptional<z.ZodString>;
832
- /**
833
- * Mongoose object ID
834
- */
835
1177
  createdBy: z.ZodString;
836
- /**
837
- * Mongoose object ID
838
- */
839
1178
  lastEditBy: z.ZodOptional<z.ZodString>;
840
- }, "strip", z.ZodTypeAny, {
1179
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1180
+ createdAt: z.ZodOptional<z.ZodDate>;
1181
+ updatedAt: z.ZodOptional<z.ZodDate>;
1182
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1183
+ _id: mongoose.Types.ObjectId;
841
1184
  billTo: string;
842
1185
  packages: {
843
1186
  student: string;
@@ -852,12 +1195,15 @@ declare const zInvoice: z.ZodObject<{
852
1195
  amount: number;
853
1196
  }[];
854
1197
  createdBy: string;
1198
+ notes?: string | undefined;
855
1199
  textbook?: number | undefined;
856
1200
  shipping?: number | undefined;
857
1201
  paid?: PaymentMethod | undefined;
858
- notes?: string | undefined;
859
1202
  lastEditBy?: string | undefined;
1203
+ createdAt?: Date | undefined;
1204
+ updatedAt?: Date | undefined;
860
1205
  }, {
1206
+ _id: mongoose.Types.ObjectId;
861
1207
  billTo: string;
862
1208
  packages: {
863
1209
  student: string;
@@ -872,31 +1218,11 @@ declare const zInvoice: z.ZodObject<{
872
1218
  amount: number;
873
1219
  }[];
874
1220
  createdBy: string;
1221
+ notes?: string | undefined;
875
1222
  textbook?: number | undefined;
876
1223
  shipping?: number | undefined;
877
1224
  paid?: PaymentMethod | undefined;
878
- notes?: string | undefined;
879
1225
  lastEditBy?: string | undefined;
880
- }>;
881
- declare const zMInvoice: z.ZodObject<{
882
- [x: string]: any;
883
- [x: number]: any;
884
- [x: symbol]: any;
885
- _id: z.ZodString;
886
- createdAt: z.ZodOptional<z.ZodDate>;
887
- updatedAt: z.ZodOptional<z.ZodDate>;
888
- }, any, any, {
889
- [x: string]: any;
890
- [x: number]: any;
891
- [x: symbol]: any;
892
- _id?: string | undefined;
893
- createdAt?: Date | undefined;
894
- updatedAt?: Date | undefined;
895
- }, {
896
- [x: string]: any;
897
- [x: number]: any;
898
- [x: symbol]: any;
899
- _id?: string | undefined;
900
1226
  createdAt?: Date | undefined;
901
1227
  updatedAt?: Date | undefined;
902
1228
  }>;
@@ -906,6 +1232,11 @@ type InvoicePackage = z.infer<typeof zInvoicePackage>;
906
1232
  type Invoice = z.infer<typeof zInvoice>;
907
1233
  type MInvoice = z.infer<typeof zMInvoice>;
908
1234
 
1235
+ interface PaymentIntent {
1236
+ id: string;
1237
+ type: BookingType;
1238
+ }
1239
+
909
1240
  declare const zTeacherPaymentRow: z.ZodObject<{
910
1241
  course: z.ZodString;
911
1242
  length: z.ZodNumber;
@@ -961,24 +1292,49 @@ declare const zTeacherPayment: z.ZodObject<{
961
1292
  paid?: boolean | undefined;
962
1293
  }>;
963
1294
  declare const zMTeacherPayment: z.ZodObject<{
964
- [x: string]: any;
965
- [x: number]: any;
966
- [x: symbol]: any;
967
- _id: z.ZodString;
1295
+ paid: z.ZodOptional<z.ZodBoolean>;
1296
+ teacher: z.ZodString;
1297
+ rows: z.ZodArray<z.ZodObject<{
1298
+ course: z.ZodString;
1299
+ length: z.ZodNumber;
1300
+ count: z.ZodNumber;
1301
+ wage: z.ZodNumber;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ length: number;
1304
+ course: string;
1305
+ count: number;
1306
+ wage: number;
1307
+ }, {
1308
+ length: number;
1309
+ course: string;
1310
+ count: number;
1311
+ wage: number;
1312
+ }>, "many">;
1313
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
968
1314
  createdAt: z.ZodOptional<z.ZodDate>;
969
1315
  updatedAt: z.ZodOptional<z.ZodDate>;
970
- }, any, any, {
971
- [x: string]: any;
972
- [x: number]: any;
973
- [x: symbol]: any;
974
- _id?: string | undefined;
1316
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1317
+ _id: mongoose.Types.ObjectId;
1318
+ teacher: string;
1319
+ rows: {
1320
+ length: number;
1321
+ course: string;
1322
+ count: number;
1323
+ wage: number;
1324
+ }[];
1325
+ paid?: boolean | undefined;
975
1326
  createdAt?: Date | undefined;
976
1327
  updatedAt?: Date | undefined;
977
1328
  }, {
978
- [x: string]: any;
979
- [x: number]: any;
980
- [x: symbol]: any;
981
- _id?: string | undefined;
1329
+ _id: mongoose.Types.ObjectId;
1330
+ teacher: string;
1331
+ rows: {
1332
+ length: number;
1333
+ course: string;
1334
+ count: number;
1335
+ wage: number;
1336
+ }[];
1337
+ paid?: boolean | undefined;
982
1338
  createdAt?: Date | undefined;
983
1339
  updatedAt?: Date | undefined;
984
1340
  }>;
@@ -1108,24 +1464,30 @@ declare const zReportTicket: z.ZodObject<{
1108
1464
  resolver: string;
1109
1465
  }>;
1110
1466
  declare const zMReportTicket: z.ZodObject<{
1111
- [x: string]: any;
1112
- [x: number]: any;
1113
- [x: symbol]: any;
1114
- _id: z.ZodString;
1467
+ status: z.ZodNativeEnum<typeof TicketStatus>;
1468
+ description: z.ZodString;
1469
+ title: z.ZodString;
1470
+ requester: z.ZodString;
1471
+ resolver: z.ZodString;
1472
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1115
1473
  createdAt: z.ZodOptional<z.ZodDate>;
1116
1474
  updatedAt: z.ZodOptional<z.ZodDate>;
1117
- }, any, any, {
1118
- [x: string]: any;
1119
- [x: number]: any;
1120
- [x: symbol]: any;
1121
- _id?: string | undefined;
1475
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1476
+ status: TicketStatus;
1477
+ _id: mongoose.Types.ObjectId;
1478
+ description: string;
1479
+ title: string;
1480
+ requester: string;
1481
+ resolver: string;
1122
1482
  createdAt?: Date | undefined;
1123
1483
  updatedAt?: Date | undefined;
1124
1484
  }, {
1125
- [x: string]: any;
1126
- [x: number]: any;
1127
- [x: symbol]: any;
1128
- _id?: string | undefined;
1485
+ status: TicketStatus;
1486
+ _id: mongoose.Types.ObjectId;
1487
+ description: string;
1488
+ title: string;
1489
+ requester: string;
1490
+ resolver: string;
1129
1491
  createdAt?: Date | undefined;
1130
1492
  updatedAt?: Date | undefined;
1131
1493
  }>;
@@ -1167,24 +1529,33 @@ declare const zSemester: z.ZodObject<{
1167
1529
  importantDates: string[];
1168
1530
  }>;
1169
1531
  declare const zMSemester: z.ZodObject<{
1170
- [x: string]: any;
1171
- [x: number]: any;
1172
- [x: symbol]: any;
1173
- _id: z.ZodString;
1532
+ season: z.ZodNativeEnum<typeof Season>;
1533
+ year: z.ZodNumber;
1534
+ startDate: z.ZodDate;
1535
+ endDate: z.ZodDate;
1536
+ blackoutDates: z.ZodArray<z.ZodDate, "many">;
1537
+ importantDates: z.ZodArray<z.ZodString, "many">;
1538
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1174
1539
  createdAt: z.ZodOptional<z.ZodDate>;
1175
1540
  updatedAt: z.ZodOptional<z.ZodDate>;
1176
- }, any, any, {
1177
- [x: string]: any;
1178
- [x: number]: any;
1179
- [x: symbol]: any;
1180
- _id?: string | undefined;
1541
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1542
+ _id: mongoose.Types.ObjectId;
1543
+ season: Season;
1544
+ year: number;
1545
+ startDate: Date;
1546
+ endDate: Date;
1547
+ blackoutDates: Date[];
1548
+ importantDates: string[];
1181
1549
  createdAt?: Date | undefined;
1182
1550
  updatedAt?: Date | undefined;
1183
1551
  }, {
1184
- [x: string]: any;
1185
- [x: number]: any;
1186
- [x: symbol]: any;
1187
- _id?: string | undefined;
1552
+ _id: mongoose.Types.ObjectId;
1553
+ season: Season;
1554
+ year: number;
1555
+ startDate: Date;
1556
+ endDate: Date;
1557
+ blackoutDates: Date[];
1558
+ importantDates: string[];
1188
1559
  createdAt?: Date | undefined;
1189
1560
  updatedAt?: Date | undefined;
1190
1561
  }>;
@@ -1265,9 +1636,105 @@ declare const zTConfig: z.ZodObject<{
1265
1636
  * If true, free form donation amounts are disabled.
1266
1637
  */
1267
1638
  donationsDisabled: z.ZodOptional<z.ZodBoolean>;
1268
- /**
1269
- * Defines URL, height, width of the image
1270
- */
1639
+ /**
1640
+ * Defines URL, height, width of the image
1641
+ */
1642
+ image: z.ZodOptional<z.ZodObject<{
1643
+ url: z.ZodString;
1644
+ height: z.ZodNumber;
1645
+ width: z.ZodNumber;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ url: string;
1648
+ height: number;
1649
+ width: number;
1650
+ }, {
1651
+ url: string;
1652
+ height: number;
1653
+ width: number;
1654
+ }>>;
1655
+ }, "strip", z.ZodTypeAny, {
1656
+ description: string;
1657
+ title: string;
1658
+ url: string;
1659
+ shortTitle: string;
1660
+ tStart: Date;
1661
+ tEnd: Date;
1662
+ shortDescription: string;
1663
+ details: {
1664
+ data: {}[];
1665
+ fields: string[];
1666
+ };
1667
+ schedule: {
1668
+ data: Map<string, {}[]>;
1669
+ fields: string[];
1670
+ };
1671
+ tickets: string[];
1672
+ canRegister: boolean;
1673
+ location?: string | undefined;
1674
+ donationsDisabled?: boolean | undefined;
1675
+ image?: {
1676
+ url: string;
1677
+ height: number;
1678
+ width: number;
1679
+ } | undefined;
1680
+ }, {
1681
+ description: string;
1682
+ title: string;
1683
+ url: string;
1684
+ shortTitle: string;
1685
+ tStart: Date;
1686
+ tEnd: Date;
1687
+ shortDescription: string;
1688
+ details: {
1689
+ data: {}[];
1690
+ fields: string[];
1691
+ };
1692
+ schedule: {
1693
+ data: Map<string, {}[]>;
1694
+ fields: string[];
1695
+ };
1696
+ tickets: string[];
1697
+ canRegister: boolean;
1698
+ location?: string | undefined;
1699
+ donationsDisabled?: boolean | undefined;
1700
+ image?: {
1701
+ url: string;
1702
+ height: number;
1703
+ width: number;
1704
+ } | undefined;
1705
+ }>;
1706
+ declare const zMTConfig: z.ZodObject<{
1707
+ description: z.ZodString;
1708
+ title: z.ZodString;
1709
+ url: z.ZodString;
1710
+ location: z.ZodOptional<z.ZodString>;
1711
+ shortTitle: z.ZodString;
1712
+ tStart: z.ZodDate;
1713
+ tEnd: z.ZodDate;
1714
+ shortDescription: z.ZodString;
1715
+ details: z.ZodObject<{
1716
+ fields: z.ZodArray<z.ZodString, "many">;
1717
+ data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
1718
+ }, "strip", z.ZodTypeAny, {
1719
+ data: {}[];
1720
+ fields: string[];
1721
+ }, {
1722
+ data: {}[];
1723
+ fields: string[];
1724
+ }>;
1725
+ schedule: z.ZodObject<{
1726
+ fields: z.ZodArray<z.ZodString, "many">;
1727
+ data: z.ZodMap<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
1728
+ }, "strip", z.ZodTypeAny, {
1729
+ data: Map<string, {}[]>;
1730
+ fields: string[];
1731
+ }, {
1732
+ data: Map<string, {}[]>;
1733
+ fields: string[];
1734
+ }>;
1735
+ tickets: z.ZodArray<z.ZodString, "many">;
1736
+ canRegister: z.ZodBoolean;
1737
+ donationsDisabled: z.ZodOptional<z.ZodBoolean>;
1271
1738
  image: z.ZodOptional<z.ZodObject<{
1272
1739
  url: z.ZodString;
1273
1740
  height: z.ZodNumber;
@@ -1281,7 +1748,11 @@ declare const zTConfig: z.ZodObject<{
1281
1748
  height: number;
1282
1749
  width: number;
1283
1750
  }>>;
1284
- }, "strip", z.ZodTypeAny, {
1751
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1752
+ createdAt: z.ZodOptional<z.ZodDate>;
1753
+ updatedAt: z.ZodOptional<z.ZodDate>;
1754
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1755
+ _id: mongoose.Types.ObjectId;
1285
1756
  description: string;
1286
1757
  title: string;
1287
1758
  url: string;
@@ -1306,7 +1777,10 @@ declare const zTConfig: z.ZodObject<{
1306
1777
  height: number;
1307
1778
  width: number;
1308
1779
  } | undefined;
1780
+ createdAt?: Date | undefined;
1781
+ updatedAt?: Date | undefined;
1309
1782
  }, {
1783
+ _id: mongoose.Types.ObjectId;
1310
1784
  description: string;
1311
1785
  title: string;
1312
1786
  url: string;
@@ -1331,26 +1805,6 @@ declare const zTConfig: z.ZodObject<{
1331
1805
  height: number;
1332
1806
  width: number;
1333
1807
  } | undefined;
1334
- }>;
1335
- declare const zMTConfig: z.ZodObject<{
1336
- [x: string]: any;
1337
- [x: number]: any;
1338
- [x: symbol]: any;
1339
- _id: z.ZodString;
1340
- createdAt: z.ZodOptional<z.ZodDate>;
1341
- updatedAt: z.ZodOptional<z.ZodDate>;
1342
- }, any, any, {
1343
- [x: string]: any;
1344
- [x: number]: any;
1345
- [x: symbol]: any;
1346
- _id?: string | undefined;
1347
- createdAt?: Date | undefined;
1348
- updatedAt?: Date | undefined;
1349
- }, {
1350
- [x: string]: any;
1351
- [x: number]: any;
1352
- [x: symbol]: any;
1353
- _id?: string | undefined;
1354
1808
  createdAt?: Date | undefined;
1355
1809
  updatedAt?: Date | undefined;
1356
1810
  }>;
@@ -1407,11 +1861,11 @@ declare const zTReg: z.ZodObject<{
1407
1861
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
1408
1862
  expireAt: z.ZodOptional<z.ZodDate>;
1409
1863
  }, "strip", z.ZodTypeAny, {
1864
+ paymentAmount: number;
1410
1865
  firstName: string;
1411
1866
  lastName: string;
1412
1867
  rank: string;
1413
1868
  email: string;
1414
- paymentAmount: number;
1415
1869
  tickets: {
1416
1870
  amount: number;
1417
1871
  ticket: string;
@@ -1427,11 +1881,11 @@ declare const zTReg: z.ZodObject<{
1427
1881
  paymentReceived?: boolean | undefined;
1428
1882
  expireAt?: Date | undefined;
1429
1883
  }, {
1884
+ paymentAmount: number;
1430
1885
  firstName: string;
1431
1886
  lastName: string;
1432
1887
  rank: string;
1433
1888
  email: string;
1434
- paymentAmount: number;
1435
1889
  tickets: {
1436
1890
  amount: number;
1437
1891
  ticket: string;
@@ -1448,24 +1902,78 @@ declare const zTReg: z.ZodObject<{
1448
1902
  expireAt?: Date | undefined;
1449
1903
  }>;
1450
1904
  declare const zMTReg: z.ZodObject<{
1451
- [x: string]: any;
1452
- [x: number]: any;
1453
- [x: symbol]: any;
1454
- _id: z.ZodString;
1905
+ paymentAmount: z.ZodNumber;
1906
+ paymentReceived: z.ZodOptional<z.ZodBoolean>;
1907
+ expireAt: z.ZodOptional<z.ZodDate>;
1908
+ firstName: z.ZodString;
1909
+ lastName: z.ZodString;
1910
+ rank: z.ZodString;
1911
+ email: z.ZodString;
1912
+ phone: z.ZodOptional<z.ZodString>;
1913
+ address: z.ZodOptional<z.ZodString>;
1914
+ notes: z.ZodOptional<z.ZodString>;
1915
+ tickets: z.ZodArray<z.ZodObject<{
1916
+ ticket: z.ZodString;
1917
+ amount: z.ZodNumber;
1918
+ }, "strip", z.ZodTypeAny, {
1919
+ amount: number;
1920
+ ticket: string;
1921
+ }, {
1922
+ amount: number;
1923
+ ticket: string;
1924
+ }>, "many">;
1925
+ agaId: z.ZodString;
1926
+ tournamentId: z.ZodString;
1927
+ donation: z.ZodOptional<z.ZodNumber>;
1928
+ createMethod: z.ZodOptional<z.ZodString>;
1929
+ edited: z.ZodOptional<z.ZodString>;
1930
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1455
1931
  createdAt: z.ZodOptional<z.ZodDate>;
1456
1932
  updatedAt: z.ZodOptional<z.ZodDate>;
1457
- }, any, any, {
1458
- [x: string]: any;
1459
- [x: number]: any;
1460
- [x: symbol]: any;
1461
- _id?: string | undefined;
1933
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1934
+ paymentAmount: number;
1935
+ firstName: string;
1936
+ lastName: string;
1937
+ rank: string;
1938
+ email: string;
1939
+ _id: mongoose.Types.ObjectId;
1940
+ tickets: {
1941
+ amount: number;
1942
+ ticket: string;
1943
+ }[];
1944
+ agaId: string;
1945
+ tournamentId: string;
1946
+ paymentReceived?: boolean | undefined;
1947
+ expireAt?: Date | undefined;
1948
+ phone?: string | undefined;
1949
+ address?: string | undefined;
1950
+ notes?: string | undefined;
1951
+ donation?: number | undefined;
1952
+ createMethod?: string | undefined;
1953
+ edited?: string | undefined;
1462
1954
  createdAt?: Date | undefined;
1463
1955
  updatedAt?: Date | undefined;
1464
1956
  }, {
1465
- [x: string]: any;
1466
- [x: number]: any;
1467
- [x: symbol]: any;
1468
- _id?: string | undefined;
1957
+ paymentAmount: number;
1958
+ firstName: string;
1959
+ lastName: string;
1960
+ rank: string;
1961
+ email: string;
1962
+ _id: mongoose.Types.ObjectId;
1963
+ tickets: {
1964
+ amount: number;
1965
+ ticket: string;
1966
+ }[];
1967
+ agaId: string;
1968
+ tournamentId: string;
1969
+ paymentReceived?: boolean | undefined;
1970
+ expireAt?: Date | undefined;
1971
+ phone?: string | undefined;
1972
+ address?: string | undefined;
1973
+ notes?: string | undefined;
1974
+ donation?: number | undefined;
1975
+ createMethod?: string | undefined;
1976
+ edited?: string | undefined;
1469
1977
  createdAt?: Date | undefined;
1470
1978
  updatedAt?: Date | undefined;
1471
1979
  }>;
@@ -1507,39 +2015,45 @@ declare const zTTicket: z.ZodObject<{
1507
2015
  /**
1508
2016
  * @optional If date is provided and in the past, ticket cannot be purchased
1509
2017
  */
1510
- lastBuytableDate: z.ZodOptional<z.ZodDate>;
2018
+ lastBuyableDate: z.ZodOptional<z.ZodDate>;
1511
2019
  }, "strip", z.ZodTypeAny, {
1512
2020
  price: number;
1513
2021
  name: string;
1514
2022
  description?: string | undefined;
1515
2023
  isNotBuyable?: boolean | undefined;
1516
- lastBuytableDate?: Date | undefined;
2024
+ lastBuyableDate?: Date | undefined;
1517
2025
  }, {
1518
2026
  price: number;
1519
2027
  name: string;
1520
2028
  description?: string | undefined;
1521
2029
  isNotBuyable?: boolean | undefined;
1522
- lastBuytableDate?: Date | undefined;
2030
+ lastBuyableDate?: Date | undefined;
1523
2031
  }>;
1524
2032
  declare const zMTTicket: z.ZodObject<{
1525
- [x: string]: any;
1526
- [x: number]: any;
1527
- [x: symbol]: any;
1528
- _id: z.ZodString;
2033
+ price: z.ZodNumber;
2034
+ name: z.ZodString;
2035
+ description: z.ZodOptional<z.ZodString>;
2036
+ isNotBuyable: z.ZodOptional<z.ZodBoolean>;
2037
+ lastBuyableDate: z.ZodOptional<z.ZodDate>;
2038
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1529
2039
  createdAt: z.ZodOptional<z.ZodDate>;
1530
2040
  updatedAt: z.ZodOptional<z.ZodDate>;
1531
- }, any, any, {
1532
- [x: string]: any;
1533
- [x: number]: any;
1534
- [x: symbol]: any;
1535
- _id?: string | undefined;
2041
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2042
+ _id: mongoose.Types.ObjectId;
2043
+ price: number;
2044
+ name: string;
2045
+ description?: string | undefined;
2046
+ isNotBuyable?: boolean | undefined;
2047
+ lastBuyableDate?: Date | undefined;
1536
2048
  createdAt?: Date | undefined;
1537
2049
  updatedAt?: Date | undefined;
1538
2050
  }, {
1539
- [x: string]: any;
1540
- [x: number]: any;
1541
- [x: symbol]: any;
1542
- _id?: string | undefined;
2051
+ _id: mongoose.Types.ObjectId;
2052
+ price: number;
2053
+ name: string;
2054
+ description?: string | undefined;
2055
+ isNotBuyable?: boolean | undefined;
2056
+ lastBuyableDate?: Date | undefined;
1543
2057
  createdAt?: Date | undefined;
1544
2058
  updatedAt?: Date | undefined;
1545
2059
  }>;
@@ -1642,24 +2156,62 @@ declare const zUser: z.ZodObject<{
1642
2156
  birthDate?: string | undefined;
1643
2157
  }>;
1644
2158
  declare const zMUser: z.ZodObject<{
1645
- [x: string]: any;
1646
- [x: number]: any;
1647
- [x: symbol]: any;
1648
- _id: z.ZodString;
2159
+ email: z.ZodOptional<z.ZodString>;
2160
+ address: z.ZodOptional<z.ZodString>;
2161
+ name: z.ZodString;
2162
+ username: z.ZodOptional<z.ZodString>;
2163
+ password: z.ZodOptional<z.ZodString>;
2164
+ roles: z.ZodOptional<z.ZodObject<{
2165
+ user: z.ZodNumber;
2166
+ admin: z.ZodNumber;
2167
+ superadmin: z.ZodNumber;
2168
+ }, "strip", z.ZodTypeAny, {
2169
+ user: number;
2170
+ admin: number;
2171
+ superadmin: number;
2172
+ }, {
2173
+ user: number;
2174
+ admin: number;
2175
+ superadmin: number;
2176
+ }>>;
2177
+ country: z.ZodOptional<z.ZodString>;
2178
+ phoneNumber: z.ZodOptional<z.ZodString>;
2179
+ birthDate: z.ZodOptional<z.ZodString>;
2180
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1649
2181
  createdAt: z.ZodOptional<z.ZodDate>;
1650
2182
  updatedAt: z.ZodOptional<z.ZodDate>;
1651
- }, any, any, {
1652
- [x: string]: any;
1653
- [x: number]: any;
1654
- [x: symbol]: any;
1655
- _id?: string | undefined;
2183
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2184
+ _id: mongoose.Types.ObjectId;
2185
+ name: string;
2186
+ email?: string | undefined;
2187
+ address?: string | undefined;
2188
+ username?: string | undefined;
2189
+ password?: string | undefined;
2190
+ roles?: {
2191
+ user: number;
2192
+ admin: number;
2193
+ superadmin: number;
2194
+ } | undefined;
2195
+ country?: string | undefined;
2196
+ phoneNumber?: string | undefined;
2197
+ birthDate?: string | undefined;
1656
2198
  createdAt?: Date | undefined;
1657
2199
  updatedAt?: Date | undefined;
1658
2200
  }, {
1659
- [x: string]: any;
1660
- [x: number]: any;
1661
- [x: symbol]: any;
1662
- _id?: string | undefined;
2201
+ _id: mongoose.Types.ObjectId;
2202
+ name: string;
2203
+ email?: string | undefined;
2204
+ address?: string | undefined;
2205
+ username?: string | undefined;
2206
+ password?: string | undefined;
2207
+ roles?: {
2208
+ user: number;
2209
+ admin: number;
2210
+ superadmin: number;
2211
+ } | undefined;
2212
+ country?: string | undefined;
2213
+ phoneNumber?: string | undefined;
2214
+ birthDate?: string | undefined;
1663
2215
  createdAt?: Date | undefined;
1664
2216
  updatedAt?: Date | undefined;
1665
2217
  }>;
@@ -1721,24 +2273,68 @@ declare const zStudent: z.ZodObject<{
1721
2273
  guardian?: string | undefined;
1722
2274
  }>;
1723
2275
  declare const zMStudent: z.ZodObject<{
1724
- [x: string]: any;
1725
- [x: number]: any;
1726
- [x: symbol]: any;
1727
- _id: z.ZodString;
2276
+ rank: z.ZodNativeEnum<typeof GoRank>;
2277
+ email: z.ZodOptional<z.ZodString>;
2278
+ address: z.ZodOptional<z.ZodString>;
2279
+ name: z.ZodString;
2280
+ username: z.ZodOptional<z.ZodString>;
2281
+ password: z.ZodOptional<z.ZodString>;
2282
+ roles: z.ZodOptional<z.ZodObject<{
2283
+ user: z.ZodNumber;
2284
+ admin: z.ZodNumber;
2285
+ superadmin: z.ZodNumber;
2286
+ }, "strip", z.ZodTypeAny, {
2287
+ user: number;
2288
+ admin: number;
2289
+ superadmin: number;
2290
+ }, {
2291
+ user: number;
2292
+ admin: number;
2293
+ superadmin: number;
2294
+ }>>;
2295
+ country: z.ZodOptional<z.ZodString>;
2296
+ phoneNumber: z.ZodOptional<z.ZodString>;
2297
+ birthDate: z.ZodOptional<z.ZodString>;
2298
+ guardian: z.ZodOptional<z.ZodString>;
2299
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1728
2300
  createdAt: z.ZodOptional<z.ZodDate>;
1729
2301
  updatedAt: z.ZodOptional<z.ZodDate>;
1730
- }, any, any, {
1731
- [x: string]: any;
1732
- [x: number]: any;
1733
- [x: symbol]: any;
1734
- _id?: string | undefined;
2302
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2303
+ rank: GoRank;
2304
+ _id: mongoose.Types.ObjectId;
2305
+ name: string;
2306
+ email?: string | undefined;
2307
+ address?: string | undefined;
2308
+ username?: string | undefined;
2309
+ password?: string | undefined;
2310
+ roles?: {
2311
+ user: number;
2312
+ admin: number;
2313
+ superadmin: number;
2314
+ } | undefined;
2315
+ country?: string | undefined;
2316
+ phoneNumber?: string | undefined;
2317
+ birthDate?: string | undefined;
2318
+ guardian?: string | undefined;
1735
2319
  createdAt?: Date | undefined;
1736
2320
  updatedAt?: Date | undefined;
1737
2321
  }, {
1738
- [x: string]: any;
1739
- [x: number]: any;
1740
- [x: symbol]: any;
1741
- _id?: string | undefined;
2322
+ rank: GoRank;
2323
+ _id: mongoose.Types.ObjectId;
2324
+ name: string;
2325
+ email?: string | undefined;
2326
+ address?: string | undefined;
2327
+ username?: string | undefined;
2328
+ password?: string | undefined;
2329
+ roles?: {
2330
+ user: number;
2331
+ admin: number;
2332
+ superadmin: number;
2333
+ } | undefined;
2334
+ country?: string | undefined;
2335
+ phoneNumber?: string | undefined;
2336
+ birthDate?: string | undefined;
2337
+ guardian?: string | undefined;
1742
2338
  createdAt?: Date | undefined;
1743
2339
  updatedAt?: Date | undefined;
1744
2340
  }>;
@@ -1809,24 +2405,77 @@ declare const zTeacher: z.ZodObject<{
1809
2405
  available?: number[][][] | undefined;
1810
2406
  }>;
1811
2407
  declare const zMTeacher: z.ZodObject<{
1812
- [x: string]: any;
1813
- [x: number]: any;
1814
- [x: symbol]: any;
1815
- _id: z.ZodString;
2408
+ rank: z.ZodNativeEnum<typeof GoRank>;
2409
+ email: z.ZodOptional<z.ZodString>;
2410
+ address: z.ZodOptional<z.ZodString>;
2411
+ name: z.ZodString;
2412
+ title: z.ZodOptional<z.ZodString>;
2413
+ bio: z.ZodOptional<z.ZodString>;
2414
+ username: z.ZodOptional<z.ZodString>;
2415
+ password: z.ZodOptional<z.ZodString>;
2416
+ roles: z.ZodOptional<z.ZodObject<{
2417
+ user: z.ZodNumber;
2418
+ admin: z.ZodNumber;
2419
+ superadmin: z.ZodNumber;
2420
+ }, "strip", z.ZodTypeAny, {
2421
+ user: number;
2422
+ admin: number;
2423
+ superadmin: number;
2424
+ }, {
2425
+ user: number;
2426
+ admin: number;
2427
+ superadmin: number;
2428
+ }>>;
2429
+ country: z.ZodOptional<z.ZodString>;
2430
+ phoneNumber: z.ZodOptional<z.ZodString>;
2431
+ birthDate: z.ZodOptional<z.ZodString>;
2432
+ isInactive: z.ZodOptional<z.ZodBoolean>;
2433
+ 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>;
1816
2435
  createdAt: z.ZodOptional<z.ZodDate>;
1817
2436
  updatedAt: z.ZodOptional<z.ZodDate>;
1818
- }, any, any, {
1819
- [x: string]: any;
1820
- [x: number]: any;
1821
- [x: symbol]: any;
1822
- _id?: string | undefined;
2437
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2438
+ rank: GoRank;
2439
+ _id: mongoose.Types.ObjectId;
2440
+ name: string;
2441
+ email?: string | undefined;
2442
+ address?: string | undefined;
2443
+ title?: string | undefined;
2444
+ bio?: string | undefined;
2445
+ username?: string | undefined;
2446
+ password?: string | undefined;
2447
+ roles?: {
2448
+ user: number;
2449
+ admin: number;
2450
+ superadmin: number;
2451
+ } | undefined;
2452
+ country?: string | undefined;
2453
+ phoneNumber?: string | undefined;
2454
+ birthDate?: string | undefined;
2455
+ isInactive?: boolean | undefined;
2456
+ available?: number[][][] | undefined;
1823
2457
  createdAt?: Date | undefined;
1824
2458
  updatedAt?: Date | undefined;
1825
2459
  }, {
1826
- [x: string]: any;
1827
- [x: number]: any;
1828
- [x: symbol]: any;
1829
- _id?: string | undefined;
2460
+ rank: GoRank;
2461
+ _id: mongoose.Types.ObjectId;
2462
+ name: string;
2463
+ email?: string | undefined;
2464
+ address?: string | undefined;
2465
+ title?: string | undefined;
2466
+ bio?: string | undefined;
2467
+ username?: string | undefined;
2468
+ password?: string | undefined;
2469
+ roles?: {
2470
+ user: number;
2471
+ admin: number;
2472
+ superadmin: number;
2473
+ } | undefined;
2474
+ country?: string | undefined;
2475
+ phoneNumber?: string | undefined;
2476
+ birthDate?: string | undefined;
2477
+ isInactive?: boolean | undefined;
2478
+ available?: number[][][] | undefined;
1830
2479
  createdAt?: Date | undefined;
1831
2480
  updatedAt?: Date | undefined;
1832
2481
  }>;
@@ -1852,4 +2501,4 @@ declare const zUserRoles: z.ZodObject<{
1852
2501
  }>;
1853
2502
  type UserRoles = z.infer<typeof zUserRoles>;
1854
2503
 
1855
- export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, type BUserInfo, type CampBooking, CampOption, type CampTracker, type ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type MAttendance, type MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type MGroupBooking, type MGroupTracker, type MInvoice, type MNYIGMission, type MPrivateBooking, type MReportTicket, type MSemester, type MStudent, type MTConfig, type MTReg, type MTTicket, type MTeacher, type MTeacherPayment, type MUser, type NYIGMission, NYIGSchool, PaymentMethod, type PrivateBooking, type ReportTicket, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type TConfig, type TReg, type TTicket, type TTicketReg, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBPaymentInfo, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zMAttendance, zMCampBooking, zMCampTracker, zMClassTracker, zMCourse, zMGroupBooking, zMGroupTracker, zMInvoice, zMPrivateBooking, zMReportTicket, zMSemester, zMStudent, zMTConfig, zMTReg, zMTTicket, zMTeacher, zMTeacherPayment, zMUser, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTConfig, zTReg, zTTicket, zTTicketReg, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
2504
+ export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type MAttendance, type MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type MGroupBooking, type MGroupTracker, type MInvoice, type MNYIGMission, type MPrivateBooking, type MReportTicket, type MSemester, type MStudent, type MTConfig, type MTReg, type MTTicket, type MTeacher, type MTeacherPayment, type MUser, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type TConfig, type TReg, type TTicket, type TTicketReg, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBPaymentInfo, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zMAttendance, zMCampBooking, zMCampTracker, zMClassTracker, zMCourse, zMGroupBooking, zMGroupTracker, zMInvoice, zMPrivateBooking, zMReportTicket, zMSemester, zMStudent, zMTConfig, zMTReg, zMTTicket, zMTeacher, zMTeacherPayment, zMUser, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTConfig, zTReg, zTTicket, zTTicketReg, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentRow, zTuition, zUser, zUserRoles };