@nyig/models 0.2.20 → 0.2.22

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 +237 -237
  2. package/index.d.ts +237 -237
  3. package/index.js +23 -23
  4. package/index.mjs +23 -23
  5. package/package.json +1 -1
package/index.d.mts CHANGED
@@ -29,7 +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
+ userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
33
33
  firstName: z.ZodString;
34
34
  lastName: z.ZodString;
35
35
  rank: z.ZodString;
@@ -42,7 +42,7 @@ declare const zBUserInfo: z.ZodObject<{
42
42
  lastName: string;
43
43
  rank: string;
44
44
  email: string;
45
- userId?: Types.ObjectId | undefined;
45
+ userId?: string | Types.ObjectId | undefined;
46
46
  phone?: string | undefined;
47
47
  address?: string | undefined;
48
48
  notes?: string | undefined;
@@ -51,7 +51,7 @@ declare const zBUserInfo: z.ZodObject<{
51
51
  lastName: string;
52
52
  rank: string;
53
53
  email: string;
54
- userId?: Types.ObjectId | undefined;
54
+ userId?: string | Types.ObjectId | undefined;
55
55
  phone?: string | undefined;
56
56
  address?: string | undefined;
57
57
  notes?: string | undefined;
@@ -78,7 +78,7 @@ declare enum CampOption {
78
78
  }
79
79
 
80
80
  declare const zAttendance: z.ZodObject<{
81
- student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
81
+ student: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
82
82
  states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
83
83
  tuition: z.ZodObject<{
84
84
  primary: z.ZodNumber;
@@ -96,7 +96,7 @@ declare const zAttendance: z.ZodObject<{
96
96
  paid: z.ZodOptional<z.ZodBoolean>;
97
97
  campOption: z.ZodNativeEnum<typeof CampOption>;
98
98
  }, "strip", z.ZodTypeAny, {
99
- student: Types.ObjectId;
99
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
100
100
  states: AttendState[];
101
101
  tuition: {
102
102
  primary: number;
@@ -106,7 +106,7 @@ declare const zAttendance: z.ZodObject<{
106
106
  campOption: CampOption;
107
107
  paid?: boolean | undefined;
108
108
  }, {
109
- student: Types.ObjectId;
109
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
110
110
  states: AttendState[];
111
111
  tuition: {
112
112
  primary: number;
@@ -117,7 +117,7 @@ declare const zAttendance: z.ZodObject<{
117
117
  paid?: boolean | undefined;
118
118
  }>;
119
119
  declare const zMAttendance: z.ZodObject<{
120
- student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
120
+ student: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
121
121
  states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
122
122
  tuition: z.ZodObject<{
123
123
  primary: z.ZodNumber;
@@ -134,12 +134,12 @@ declare const zMAttendance: z.ZodObject<{
134
134
  }>;
135
135
  paid: z.ZodOptional<z.ZodBoolean>;
136
136
  campOption: z.ZodNativeEnum<typeof CampOption>;
137
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
137
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
138
138
  createdAt: z.ZodOptional<z.ZodDate>;
139
139
  updatedAt: z.ZodOptional<z.ZodDate>;
140
140
  }, z.UnknownKeysParam, z.ZodTypeAny, {
141
- _id: Types.ObjectId;
142
- student: Types.ObjectId;
141
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
142
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
143
143
  states: AttendState[];
144
144
  tuition: {
145
145
  primary: number;
@@ -151,8 +151,8 @@ declare const zMAttendance: z.ZodObject<{
151
151
  createdAt?: Date | undefined;
152
152
  updatedAt?: Date | undefined;
153
153
  }, {
154
- _id: Types.ObjectId;
155
- student: Types.ObjectId;
154
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
155
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
156
156
  states: AttendState[];
157
157
  tuition: {
158
158
  primary: number;
@@ -168,9 +168,9 @@ type Attendance = z.infer<typeof zAttendance>;
168
168
  type MAttendance = z.infer<typeof zMAttendance>;
169
169
 
170
170
  declare const zCampTracker: z.ZodObject<{
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>;
171
+ course: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
172
+ teacher: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
173
+ semester: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
174
174
  /**
175
175
  * occurrences are tracked by week for camps
176
176
  */
@@ -181,45 +181,45 @@ declare const zCampTracker: z.ZodObject<{
181
181
  attendances: z.ZodArray<z.ZodString, "many">;
182
182
  notes: z.ZodOptional<z.ZodString>;
183
183
  }, "strip", z.ZodTypeAny, {
184
- course: Types.ObjectId;
185
- teacher: Types.ObjectId;
186
- semester: Types.ObjectId;
184
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
185
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
186
+ semester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
187
187
  occurrences: string[];
188
188
  attendances: string[];
189
189
  notes?: string | undefined;
190
190
  }, {
191
- course: Types.ObjectId;
192
- teacher: Types.ObjectId;
193
- semester: Types.ObjectId;
191
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
192
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
193
+ semester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
194
194
  occurrences: string[];
195
195
  attendances: string[];
196
196
  notes?: string | undefined;
197
197
  }>;
198
198
  declare const zMCampTracker: z.ZodObject<{
199
199
  notes: z.ZodOptional<z.ZodString>;
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>;
200
+ course: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
201
+ teacher: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
202
+ semester: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
203
203
  occurrences: z.ZodArray<z.ZodString, "many">;
204
204
  attendances: z.ZodArray<z.ZodString, "many">;
205
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
205
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
206
206
  createdAt: z.ZodOptional<z.ZodDate>;
207
207
  updatedAt: z.ZodOptional<z.ZodDate>;
208
208
  }, z.UnknownKeysParam, z.ZodTypeAny, {
209
- _id: Types.ObjectId;
210
- course: Types.ObjectId;
211
- teacher: Types.ObjectId;
212
- semester: Types.ObjectId;
209
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
210
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
211
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
212
+ semester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
213
213
  occurrences: string[];
214
214
  attendances: string[];
215
215
  notes?: string | undefined;
216
216
  createdAt?: Date | undefined;
217
217
  updatedAt?: Date | undefined;
218
218
  }, {
219
- _id: Types.ObjectId;
220
- course: Types.ObjectId;
221
- teacher: Types.ObjectId;
222
- semester: Types.ObjectId;
219
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
220
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
221
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
222
+ semester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
223
223
  occurrences: string[];
224
224
  attendances: string[];
225
225
  notes?: string | undefined;
@@ -230,9 +230,9 @@ type CampTracker = z.infer<typeof zCampTracker>;
230
230
  type MCampTracker = z.infer<typeof zMCampTracker>;
231
231
 
232
232
  declare const zClassTracker: z.ZodObject<{
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>;
233
+ course: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
234
+ teacher: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
235
+ student: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
236
236
  classTimes: z.ZodArray<z.ZodDate, "many">;
237
237
  completedList: z.ZodArray<z.ZodBoolean, "many">;
238
238
  /**
@@ -256,9 +256,9 @@ declare const zClassTracker: z.ZodObject<{
256
256
  paused: z.ZodOptional<z.ZodBoolean>;
257
257
  notes: z.ZodOptional<z.ZodString>;
258
258
  }, "strip", z.ZodTypeAny, {
259
- student: Types.ObjectId;
260
- course: Types.ObjectId;
261
- teacher: Types.ObjectId;
259
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
260
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
261
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
262
262
  classTimes: Date[];
263
263
  completedList: boolean[];
264
264
  completed?: boolean | undefined;
@@ -271,9 +271,9 @@ declare const zClassTracker: z.ZodObject<{
271
271
  paused?: boolean | undefined;
272
272
  notes?: string | undefined;
273
273
  }, {
274
- student: Types.ObjectId;
275
- course: Types.ObjectId;
276
- teacher: Types.ObjectId;
274
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
275
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
276
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
277
277
  classTimes: Date[];
278
278
  completedList: boolean[];
279
279
  completed?: boolean | undefined;
@@ -288,7 +288,7 @@ declare const zClassTracker: z.ZodObject<{
288
288
  }>;
289
289
  declare const zMClassTracker: z.ZodObject<{
290
290
  notes: z.ZodOptional<z.ZodString>;
291
- student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
291
+ student: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
292
292
  tuition: z.ZodOptional<z.ZodObject<{
293
293
  primary: z.ZodNumber;
294
294
  textbook: z.ZodOptional<z.ZodBoolean>;
@@ -303,20 +303,20 @@ declare const zMClassTracker: z.ZodObject<{
303
303
  shipping?: boolean | undefined;
304
304
  }>>;
305
305
  paid: z.ZodOptional<z.ZodBoolean>;
306
- course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
307
- teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
306
+ course: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
307
+ teacher: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
308
308
  classTimes: z.ZodArray<z.ZodDate, "many">;
309
309
  completedList: z.ZodArray<z.ZodBoolean, "many">;
310
310
  completed: z.ZodOptional<z.ZodBoolean>;
311
311
  paused: z.ZodOptional<z.ZodBoolean>;
312
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
312
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
313
313
  createdAt: z.ZodOptional<z.ZodDate>;
314
314
  updatedAt: z.ZodOptional<z.ZodDate>;
315
315
  }, z.UnknownKeysParam, z.ZodTypeAny, {
316
- _id: Types.ObjectId;
317
- student: Types.ObjectId;
318
- course: Types.ObjectId;
319
- teacher: Types.ObjectId;
316
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
317
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
318
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
319
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
320
320
  classTimes: Date[];
321
321
  completedList: boolean[];
322
322
  notes?: string | undefined;
@@ -331,10 +331,10 @@ declare const zMClassTracker: z.ZodObject<{
331
331
  createdAt?: Date | undefined;
332
332
  updatedAt?: Date | undefined;
333
333
  }, {
334
- _id: Types.ObjectId;
335
- student: Types.ObjectId;
336
- course: Types.ObjectId;
337
- teacher: Types.ObjectId;
334
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
335
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
336
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
337
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
338
338
  classTimes: Date[];
339
339
  completedList: boolean[];
340
340
  notes?: string | undefined;
@@ -429,11 +429,11 @@ declare const zMCourse: z.ZodObject<{
429
429
  recLevel: z.ZodString;
430
430
  halfCampTuition: z.ZodOptional<z.ZodNumber>;
431
431
  fullCampTuition: z.ZodOptional<z.ZodNumber>;
432
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
432
+ _id: z.ZodUnion<[z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>, z.ZodString]>;
433
433
  createdAt: z.ZodOptional<z.ZodDate>;
434
434
  updatedAt: z.ZodOptional<z.ZodDate>;
435
435
  }, z.UnknownKeysParam, z.ZodTypeAny, {
436
- _id: mongoose.Types.ObjectId;
436
+ _id: (string | mongoose.Types.ObjectId) & (string | mongoose.Types.ObjectId | undefined);
437
437
  price: number;
438
438
  name: string;
439
439
  category: CourseCategory;
@@ -446,7 +446,7 @@ declare const zMCourse: z.ZodObject<{
446
446
  createdAt?: Date | undefined;
447
447
  updatedAt?: Date | undefined;
448
448
  }, {
449
- _id: mongoose.Types.ObjectId;
449
+ _id: (string | mongoose.Types.ObjectId) & (string | mongoose.Types.ObjectId | undefined);
450
450
  price: number;
451
451
  name: string;
452
452
  category: CourseCategory;
@@ -463,9 +463,9 @@ type Course = z.infer<typeof zCourse>;
463
463
  type MCourse = z.infer<typeof zMCourse>;
464
464
 
465
465
  declare const zGroupTracker: z.ZodObject<{
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>;
466
+ course: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
467
+ teacher: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
468
+ semester: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
469
469
  scheduleData: z.ZodObject<{
470
470
  startTime: z.ZodString;
471
471
  dayOfWeek: z.ZodNumber;
@@ -498,9 +498,9 @@ declare const zGroupTracker: z.ZodObject<{
498
498
  isNonPublic: z.ZodOptional<z.ZodBoolean>;
499
499
  notes: z.ZodOptional<z.ZodString>;
500
500
  }, "strip", z.ZodTypeAny, {
501
- course: Types.ObjectId;
502
- teacher: Types.ObjectId;
503
- semester: Types.ObjectId;
501
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
502
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
503
+ semester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
504
504
  occurrences: Date[];
505
505
  attendances: Types.ObjectId[];
506
506
  scheduleData: {
@@ -512,9 +512,9 @@ declare const zGroupTracker: z.ZodObject<{
512
512
  isNonPublic?: boolean | undefined;
513
513
  notes?: string | undefined;
514
514
  }, {
515
- course: Types.ObjectId;
516
- teacher: Types.ObjectId;
517
- semester: Types.ObjectId;
515
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
516
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
517
+ semester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
518
518
  occurrences: Date[];
519
519
  attendances: Types.ObjectId[];
520
520
  scheduleData: {
@@ -528,9 +528,9 @@ declare const zGroupTracker: z.ZodObject<{
528
528
  }>;
529
529
  declare const zMGroupTracker: z.ZodObject<{
530
530
  notes: z.ZodOptional<z.ZodString>;
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>;
531
+ course: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
532
+ teacher: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
533
+ semester: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
534
534
  occurrences: z.ZodArray<z.ZodDate, "many">;
535
535
  attendances: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
536
536
  scheduleData: z.ZodObject<{
@@ -546,14 +546,14 @@ declare const zMGroupTracker: z.ZodObject<{
546
546
  courseId: z.ZodOptional<z.ZodString>;
547
547
  ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
548
548
  isNonPublic: z.ZodOptional<z.ZodBoolean>;
549
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
549
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
550
550
  createdAt: z.ZodOptional<z.ZodDate>;
551
551
  updatedAt: z.ZodOptional<z.ZodDate>;
552
552
  }, z.UnknownKeysParam, z.ZodTypeAny, {
553
- _id: Types.ObjectId;
554
- course: Types.ObjectId;
555
- teacher: Types.ObjectId;
556
- semester: Types.ObjectId;
553
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
554
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
555
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
556
+ semester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
557
557
  occurrences: Date[];
558
558
  attendances: Types.ObjectId[];
559
559
  scheduleData: {
@@ -567,10 +567,10 @@ declare const zMGroupTracker: z.ZodObject<{
567
567
  createdAt?: Date | undefined;
568
568
  updatedAt?: Date | undefined;
569
569
  }, {
570
- _id: Types.ObjectId;
571
- course: Types.ObjectId;
572
- teacher: Types.ObjectId;
573
- semester: Types.ObjectId;
570
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
571
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
572
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
573
+ semester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
574
574
  occurrences: Date[];
575
575
  attendances: Types.ObjectId[];
576
576
  scheduleData: {
@@ -600,7 +600,7 @@ declare const zScheduleData: z.ZodObject<{
600
600
  type ScheduleData = z.infer<typeof zScheduleData>;
601
601
 
602
602
  declare const zCampBooking: z.ZodObject<{
603
- userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
603
+ userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
604
604
  firstName: z.ZodString;
605
605
  lastName: z.ZodString;
606
606
  rank: z.ZodString;
@@ -625,7 +625,7 @@ declare const zCampBooking: z.ZodObject<{
625
625
  campOption: CampOption;
626
626
  isOnline: boolean;
627
627
  classDates: string;
628
- userId?: Types.ObjectId | undefined;
628
+ userId?: string | Types.ObjectId | undefined;
629
629
  phone?: string | undefined;
630
630
  address?: string | undefined;
631
631
  notes?: string | undefined;
@@ -642,7 +642,7 @@ declare const zCampBooking: z.ZodObject<{
642
642
  campOption: CampOption;
643
643
  isOnline: boolean;
644
644
  classDates: string;
645
- userId?: Types.ObjectId | undefined;
645
+ userId?: string | Types.ObjectId | undefined;
646
646
  phone?: string | undefined;
647
647
  address?: string | undefined;
648
648
  notes?: string | undefined;
@@ -655,7 +655,7 @@ declare const zMCampBooking: z.ZodObject<{
655
655
  paymentAmount: z.ZodNumber;
656
656
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
657
657
  expireAt: z.ZodOptional<z.ZodDate>;
658
- userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
658
+ userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
659
659
  firstName: z.ZodString;
660
660
  lastName: z.ZodString;
661
661
  rank: z.ZodString;
@@ -668,7 +668,7 @@ declare const zMCampBooking: z.ZodObject<{
668
668
  ctId: z.ZodOptional<z.ZodString>;
669
669
  isOnline: z.ZodBoolean;
670
670
  classDates: z.ZodString;
671
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
671
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
672
672
  createdAt: z.ZodOptional<z.ZodDate>;
673
673
  updatedAt: z.ZodOptional<z.ZodDate>;
674
674
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -677,13 +677,13 @@ declare const zMCampBooking: z.ZodObject<{
677
677
  lastName: string;
678
678
  rank: string;
679
679
  email: string;
680
- _id: Types.ObjectId;
680
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
681
681
  campOption: CampOption;
682
682
  isOnline: boolean;
683
683
  classDates: string;
684
684
  paymentReceived?: boolean | undefined;
685
685
  expireAt?: Date | undefined;
686
- userId?: Types.ObjectId | undefined;
686
+ userId?: string | Types.ObjectId | undefined;
687
687
  phone?: string | undefined;
688
688
  address?: string | undefined;
689
689
  notes?: string | undefined;
@@ -697,13 +697,13 @@ declare const zMCampBooking: z.ZodObject<{
697
697
  lastName: string;
698
698
  rank: string;
699
699
  email: string;
700
- _id: Types.ObjectId;
700
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
701
701
  campOption: CampOption;
702
702
  isOnline: boolean;
703
703
  classDates: string;
704
704
  paymentReceived?: boolean | undefined;
705
705
  expireAt?: Date | undefined;
706
- userId?: Types.ObjectId | undefined;
706
+ userId?: string | Types.ObjectId | undefined;
707
707
  phone?: string | undefined;
708
708
  address?: string | undefined;
709
709
  notes?: string | undefined;
@@ -716,7 +716,7 @@ type CampBooking = z.infer<typeof zCampBooking>;
716
716
  type MCampBooking = z.infer<typeof zMCampBooking>;
717
717
 
718
718
  declare const zGroupBooking: z.ZodObject<{
719
- userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
719
+ userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
720
720
  firstName: z.ZodString;
721
721
  lastName: z.ZodString;
722
722
  rank: z.ZodString;
@@ -726,7 +726,7 @@ declare const zGroupBooking: z.ZodObject<{
726
726
  notes: z.ZodOptional<z.ZodString>;
727
727
  shipping: z.ZodOptional<z.ZodBoolean>;
728
728
  isOnline: z.ZodBoolean;
729
- gtId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
729
+ gtId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
730
730
  isTrial: z.ZodOptional<z.ZodBoolean>;
731
731
  classDate: z.ZodOptional<z.ZodString>;
732
732
  paymentAmount: z.ZodNumber;
@@ -739,12 +739,12 @@ declare const zGroupBooking: z.ZodObject<{
739
739
  rank: string;
740
740
  email: string;
741
741
  isOnline: boolean;
742
- userId?: Types.ObjectId | undefined;
742
+ userId?: string | Types.ObjectId | undefined;
743
743
  phone?: string | undefined;
744
744
  address?: string | undefined;
745
745
  notes?: string | undefined;
746
746
  shipping?: boolean | undefined;
747
- gtId?: Types.ObjectId | undefined;
747
+ gtId?: string | Types.ObjectId | undefined;
748
748
  isTrial?: boolean | undefined;
749
749
  classDate?: string | undefined;
750
750
  paymentReceived?: boolean | undefined;
@@ -756,12 +756,12 @@ declare const zGroupBooking: z.ZodObject<{
756
756
  rank: string;
757
757
  email: string;
758
758
  isOnline: boolean;
759
- userId?: Types.ObjectId | undefined;
759
+ userId?: string | Types.ObjectId | undefined;
760
760
  phone?: string | undefined;
761
761
  address?: string | undefined;
762
762
  notes?: string | undefined;
763
763
  shipping?: boolean | undefined;
764
- gtId?: Types.ObjectId | undefined;
764
+ gtId?: string | Types.ObjectId | undefined;
765
765
  isTrial?: boolean | undefined;
766
766
  classDate?: string | undefined;
767
767
  paymentReceived?: boolean | undefined;
@@ -771,7 +771,7 @@ declare const zMGroupBooking: z.ZodObject<{
771
771
  paymentAmount: z.ZodNumber;
772
772
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
773
773
  expireAt: z.ZodOptional<z.ZodDate>;
774
- userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
774
+ userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
775
775
  firstName: z.ZodString;
776
776
  lastName: z.ZodString;
777
777
  rank: z.ZodString;
@@ -781,10 +781,10 @@ declare const zMGroupBooking: z.ZodObject<{
781
781
  notes: z.ZodOptional<z.ZodString>;
782
782
  shipping: z.ZodOptional<z.ZodBoolean>;
783
783
  isOnline: z.ZodBoolean;
784
- gtId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
784
+ gtId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
785
785
  isTrial: z.ZodOptional<z.ZodBoolean>;
786
786
  classDate: z.ZodOptional<z.ZodString>;
787
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
787
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
788
788
  createdAt: z.ZodOptional<z.ZodDate>;
789
789
  updatedAt: z.ZodOptional<z.ZodDate>;
790
790
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -793,16 +793,16 @@ declare const zMGroupBooking: z.ZodObject<{
793
793
  lastName: string;
794
794
  rank: string;
795
795
  email: string;
796
- _id: Types.ObjectId;
796
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
797
797
  isOnline: boolean;
798
798
  paymentReceived?: boolean | undefined;
799
799
  expireAt?: Date | undefined;
800
- userId?: Types.ObjectId | undefined;
800
+ userId?: string | Types.ObjectId | undefined;
801
801
  phone?: string | undefined;
802
802
  address?: string | undefined;
803
803
  notes?: string | undefined;
804
804
  shipping?: boolean | undefined;
805
- gtId?: Types.ObjectId | undefined;
805
+ gtId?: string | Types.ObjectId | undefined;
806
806
  isTrial?: boolean | undefined;
807
807
  classDate?: string | undefined;
808
808
  createdAt?: Date | undefined;
@@ -813,16 +813,16 @@ declare const zMGroupBooking: z.ZodObject<{
813
813
  lastName: string;
814
814
  rank: string;
815
815
  email: string;
816
- _id: Types.ObjectId;
816
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
817
817
  isOnline: boolean;
818
818
  paymentReceived?: boolean | undefined;
819
819
  expireAt?: Date | undefined;
820
- userId?: Types.ObjectId | undefined;
820
+ userId?: string | Types.ObjectId | undefined;
821
821
  phone?: string | undefined;
822
822
  address?: string | undefined;
823
823
  notes?: string | undefined;
824
824
  shipping?: boolean | undefined;
825
- gtId?: Types.ObjectId | undefined;
825
+ gtId?: string | Types.ObjectId | undefined;
826
826
  isTrial?: boolean | undefined;
827
827
  classDate?: string | undefined;
828
828
  createdAt?: Date | undefined;
@@ -832,7 +832,7 @@ type GroupBooking = z.infer<typeof zGroupBooking>;
832
832
  type MGroupBooking = z.infer<typeof zMGroupBooking>;
833
833
 
834
834
  declare const zPrivateBooking: z.ZodObject<{
835
- userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
835
+ userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
836
836
  firstName: z.ZodString;
837
837
  lastName: z.ZodString;
838
838
  rank: z.ZodString;
@@ -840,9 +840,9 @@ declare const zPrivateBooking: z.ZodObject<{
840
840
  phone: z.ZodOptional<z.ZodString>;
841
841
  address: z.ZodOptional<z.ZodString>;
842
842
  notes: z.ZodOptional<z.ZodString>;
843
- courseId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
843
+ courseId: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
844
844
  classDate: z.ZodOptional<z.ZodString>;
845
- teacherId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
845
+ teacherId: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
846
846
  paymentAmount: z.ZodNumber;
847
847
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
848
848
  expireAt: z.ZodOptional<z.ZodDate>;
@@ -852,9 +852,9 @@ declare const zPrivateBooking: z.ZodObject<{
852
852
  lastName: string;
853
853
  rank: string;
854
854
  email: string;
855
- courseId: Types.ObjectId;
856
- teacherId: Types.ObjectId;
857
- userId?: Types.ObjectId | undefined;
855
+ courseId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
856
+ teacherId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
857
+ userId?: string | Types.ObjectId | undefined;
858
858
  phone?: string | undefined;
859
859
  address?: string | undefined;
860
860
  notes?: string | undefined;
@@ -867,9 +867,9 @@ declare const zPrivateBooking: z.ZodObject<{
867
867
  lastName: string;
868
868
  rank: string;
869
869
  email: string;
870
- courseId: Types.ObjectId;
871
- teacherId: Types.ObjectId;
872
- userId?: Types.ObjectId | undefined;
870
+ courseId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
871
+ teacherId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
872
+ userId?: string | Types.ObjectId | undefined;
873
873
  phone?: string | undefined;
874
874
  address?: string | undefined;
875
875
  notes?: string | undefined;
@@ -881,7 +881,7 @@ declare const zMPrivateBooking: z.ZodObject<{
881
881
  paymentAmount: z.ZodNumber;
882
882
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
883
883
  expireAt: z.ZodOptional<z.ZodDate>;
884
- userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
884
+ userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
885
885
  firstName: z.ZodString;
886
886
  lastName: z.ZodString;
887
887
  rank: z.ZodString;
@@ -889,10 +889,10 @@ declare const zMPrivateBooking: z.ZodObject<{
889
889
  phone: z.ZodOptional<z.ZodString>;
890
890
  address: z.ZodOptional<z.ZodString>;
891
891
  notes: z.ZodOptional<z.ZodString>;
892
- courseId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
892
+ courseId: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
893
893
  classDate: z.ZodOptional<z.ZodString>;
894
- teacherId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
895
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
894
+ teacherId: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
895
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
896
896
  createdAt: z.ZodOptional<z.ZodDate>;
897
897
  updatedAt: z.ZodOptional<z.ZodDate>;
898
898
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -901,12 +901,12 @@ declare const zMPrivateBooking: z.ZodObject<{
901
901
  lastName: string;
902
902
  rank: string;
903
903
  email: string;
904
- _id: Types.ObjectId;
905
- courseId: Types.ObjectId;
906
- teacherId: Types.ObjectId;
904
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
905
+ courseId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
906
+ teacherId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
907
907
  paymentReceived?: boolean | undefined;
908
908
  expireAt?: Date | undefined;
909
- userId?: Types.ObjectId | undefined;
909
+ userId?: string | Types.ObjectId | undefined;
910
910
  phone?: string | undefined;
911
911
  address?: string | undefined;
912
912
  notes?: string | undefined;
@@ -919,12 +919,12 @@ declare const zMPrivateBooking: z.ZodObject<{
919
919
  lastName: string;
920
920
  rank: string;
921
921
  email: string;
922
- _id: Types.ObjectId;
923
- courseId: Types.ObjectId;
924
- teacherId: Types.ObjectId;
922
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
923
+ courseId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
924
+ teacherId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
925
925
  paymentReceived?: boolean | undefined;
926
926
  expireAt?: Date | undefined;
927
- userId?: Types.ObjectId | undefined;
927
+ userId?: string | Types.ObjectId | undefined;
928
928
  phone?: string | undefined;
929
929
  address?: string | undefined;
930
930
  notes?: string | undefined;
@@ -953,44 +953,44 @@ declare const zDiscount: z.ZodObject<{
953
953
  amount: number;
954
954
  }>;
955
955
  declare const zInvoiceItem: z.ZodObject<{
956
- course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
956
+ course: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
957
957
  price: z.ZodNumber;
958
958
  units: z.ZodNumber;
959
959
  }, "strip", z.ZodTypeAny, {
960
- course: Types.ObjectId;
960
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
961
961
  price: number;
962
962
  units: number;
963
963
  }, {
964
- course: Types.ObjectId;
964
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
965
965
  price: number;
966
966
  units: number;
967
967
  }>;
968
968
  declare const zInvoicePackage: z.ZodObject<{
969
- student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
969
+ student: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
970
970
  items: z.ZodArray<z.ZodObject<{
971
- course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
971
+ course: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
972
972
  price: z.ZodNumber;
973
973
  units: z.ZodNumber;
974
974
  }, "strip", z.ZodTypeAny, {
975
- course: Types.ObjectId;
975
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
976
976
  price: number;
977
977
  units: number;
978
978
  }, {
979
- course: Types.ObjectId;
979
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
980
980
  price: number;
981
981
  units: number;
982
982
  }>, "many">;
983
983
  }, "strip", z.ZodTypeAny, {
984
- student: Types.ObjectId;
984
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
985
985
  items: {
986
- course: Types.ObjectId;
986
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
987
987
  price: number;
988
988
  units: number;
989
989
  }[];
990
990
  }, {
991
- student: Types.ObjectId;
991
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
992
992
  items: {
993
- course: Types.ObjectId;
993
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
994
994
  price: number;
995
995
  units: number;
996
996
  }[];
@@ -998,31 +998,31 @@ declare const zInvoicePackage: z.ZodObject<{
998
998
  declare const zInvoice: z.ZodObject<{
999
999
  billTo: z.ZodString;
1000
1000
  packages: z.ZodArray<z.ZodObject<{
1001
- student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1001
+ student: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1002
1002
  items: z.ZodArray<z.ZodObject<{
1003
- course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1003
+ course: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1004
1004
  price: z.ZodNumber;
1005
1005
  units: z.ZodNumber;
1006
1006
  }, "strip", z.ZodTypeAny, {
1007
- course: Types.ObjectId;
1007
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1008
1008
  price: number;
1009
1009
  units: number;
1010
1010
  }, {
1011
- course: Types.ObjectId;
1011
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1012
1012
  price: number;
1013
1013
  units: number;
1014
1014
  }>, "many">;
1015
1015
  }, "strip", z.ZodTypeAny, {
1016
- student: Types.ObjectId;
1016
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1017
1017
  items: {
1018
- course: Types.ObjectId;
1018
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1019
1019
  price: number;
1020
1020
  units: number;
1021
1021
  }[];
1022
1022
  }, {
1023
- student: Types.ObjectId;
1023
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1024
1024
  items: {
1025
- course: Types.ObjectId;
1025
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1026
1026
  price: number;
1027
1027
  units: number;
1028
1028
  }[];
@@ -1041,14 +1041,14 @@ declare const zInvoice: z.ZodObject<{
1041
1041
  shipping: z.ZodOptional<z.ZodNumber>;
1042
1042
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
1043
1043
  notes: z.ZodOptional<z.ZodString>;
1044
- createdBy: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1044
+ createdBy: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1045
1045
  lastEditBy: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1046
1046
  }, "strip", z.ZodTypeAny, {
1047
1047
  billTo: string;
1048
1048
  packages: {
1049
- student: Types.ObjectId;
1049
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1050
1050
  items: {
1051
- course: Types.ObjectId;
1051
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1052
1052
  price: number;
1053
1053
  units: number;
1054
1054
  }[];
@@ -1057,7 +1057,7 @@ declare const zInvoice: z.ZodObject<{
1057
1057
  desc: string;
1058
1058
  amount: number;
1059
1059
  }[];
1060
- createdBy: Types.ObjectId;
1060
+ createdBy: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1061
1061
  textbook?: number | undefined;
1062
1062
  shipping?: number | undefined;
1063
1063
  paid?: PaymentMethod | undefined;
@@ -1066,9 +1066,9 @@ declare const zInvoice: z.ZodObject<{
1066
1066
  }, {
1067
1067
  billTo: string;
1068
1068
  packages: {
1069
- student: Types.ObjectId;
1069
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1070
1070
  items: {
1071
- course: Types.ObjectId;
1071
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1072
1072
  price: number;
1073
1073
  units: number;
1074
1074
  }[];
@@ -1077,7 +1077,7 @@ declare const zInvoice: z.ZodObject<{
1077
1077
  desc: string;
1078
1078
  amount: number;
1079
1079
  }[];
1080
- createdBy: Types.ObjectId;
1080
+ createdBy: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1081
1081
  textbook?: number | undefined;
1082
1082
  shipping?: number | undefined;
1083
1083
  paid?: PaymentMethod | undefined;
@@ -1091,31 +1091,31 @@ declare const zMInvoice: z.ZodObject<{
1091
1091
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
1092
1092
  billTo: z.ZodString;
1093
1093
  packages: z.ZodArray<z.ZodObject<{
1094
- student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1094
+ student: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1095
1095
  items: z.ZodArray<z.ZodObject<{
1096
- course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1096
+ course: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1097
1097
  price: z.ZodNumber;
1098
1098
  units: z.ZodNumber;
1099
1099
  }, "strip", z.ZodTypeAny, {
1100
- course: Types.ObjectId;
1100
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1101
1101
  price: number;
1102
1102
  units: number;
1103
1103
  }, {
1104
- course: Types.ObjectId;
1104
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1105
1105
  price: number;
1106
1106
  units: number;
1107
1107
  }>, "many">;
1108
1108
  }, "strip", z.ZodTypeAny, {
1109
- student: Types.ObjectId;
1109
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1110
1110
  items: {
1111
- course: Types.ObjectId;
1111
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1112
1112
  price: number;
1113
1113
  units: number;
1114
1114
  }[];
1115
1115
  }, {
1116
- student: Types.ObjectId;
1116
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1117
1117
  items: {
1118
- course: Types.ObjectId;
1118
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1119
1119
  price: number;
1120
1120
  units: number;
1121
1121
  }[];
@@ -1130,18 +1130,18 @@ declare const zMInvoice: z.ZodObject<{
1130
1130
  desc: string;
1131
1131
  amount: number;
1132
1132
  }>, "many">;
1133
- createdBy: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1133
+ createdBy: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1134
1134
  lastEditBy: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1135
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1135
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1136
1136
  createdAt: z.ZodOptional<z.ZodDate>;
1137
1137
  updatedAt: z.ZodOptional<z.ZodDate>;
1138
1138
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1139
- _id: Types.ObjectId;
1139
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1140
1140
  billTo: string;
1141
1141
  packages: {
1142
- student: Types.ObjectId;
1142
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1143
1143
  items: {
1144
- course: Types.ObjectId;
1144
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1145
1145
  price: number;
1146
1146
  units: number;
1147
1147
  }[];
@@ -1150,7 +1150,7 @@ declare const zMInvoice: z.ZodObject<{
1150
1150
  desc: string;
1151
1151
  amount: number;
1152
1152
  }[];
1153
- createdBy: Types.ObjectId;
1153
+ createdBy: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1154
1154
  notes?: string | undefined;
1155
1155
  textbook?: number | undefined;
1156
1156
  shipping?: number | undefined;
@@ -1159,12 +1159,12 @@ declare const zMInvoice: z.ZodObject<{
1159
1159
  createdAt?: Date | undefined;
1160
1160
  updatedAt?: Date | undefined;
1161
1161
  }, {
1162
- _id: Types.ObjectId;
1162
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1163
1163
  billTo: string;
1164
1164
  packages: {
1165
- student: Types.ObjectId;
1165
+ student: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1166
1166
  items: {
1167
- course: Types.ObjectId;
1167
+ course: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1168
1168
  price: number;
1169
1169
  units: number;
1170
1170
  }[];
@@ -1173,7 +1173,7 @@ declare const zMInvoice: z.ZodObject<{
1173
1173
  desc: string;
1174
1174
  amount: number;
1175
1175
  }[];
1176
- createdBy: Types.ObjectId;
1176
+ createdBy: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1177
1177
  notes?: string | undefined;
1178
1178
  textbook?: number | undefined;
1179
1179
  shipping?: number | undefined;
@@ -1266,11 +1266,11 @@ declare const zMTeacherPayment: z.ZodObject<{
1266
1266
  count: number;
1267
1267
  wage: number;
1268
1268
  }>, "many">;
1269
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1269
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1270
1270
  createdAt: z.ZodOptional<z.ZodDate>;
1271
1271
  updatedAt: z.ZodOptional<z.ZodDate>;
1272
1272
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1273
- _id: Types.ObjectId;
1273
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1274
1274
  teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1275
1275
  rows: {
1276
1276
  length: number;
@@ -1282,7 +1282,7 @@ declare const zMTeacherPayment: z.ZodObject<{
1282
1282
  createdAt?: Date | undefined;
1283
1283
  updatedAt?: Date | undefined;
1284
1284
  }, {
1285
- _id: Types.ObjectId;
1285
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1286
1286
  teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1287
1287
  rows: {
1288
1288
  length: number;
@@ -1401,8 +1401,8 @@ declare enum TicketStatus {
1401
1401
  }
1402
1402
 
1403
1403
  declare const zReportTicket: z.ZodObject<{
1404
- requester: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1405
- resolver: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1404
+ requester: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1405
+ resolver: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
1406
1406
  status: z.ZodNativeEnum<typeof TicketStatus>;
1407
1407
  title: z.ZodString;
1408
1408
  description: z.ZodString;
@@ -1410,40 +1410,40 @@ declare const zReportTicket: z.ZodObject<{
1410
1410
  status: TicketStatus;
1411
1411
  description: string;
1412
1412
  title: string;
1413
- requester: Types.ObjectId;
1414
- resolver: Types.ObjectId;
1413
+ requester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1414
+ resolver?: string | Types.ObjectId | undefined;
1415
1415
  }, {
1416
1416
  status: TicketStatus;
1417
1417
  description: string;
1418
1418
  title: string;
1419
- requester: Types.ObjectId;
1420
- resolver: Types.ObjectId;
1419
+ requester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1420
+ resolver?: string | Types.ObjectId | undefined;
1421
1421
  }>;
1422
1422
  declare const zMReportTicket: z.ZodObject<{
1423
1423
  status: z.ZodNativeEnum<typeof TicketStatus>;
1424
1424
  description: z.ZodString;
1425
1425
  title: z.ZodString;
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>;
1426
+ requester: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1427
+ resolver: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
1428
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1429
1429
  createdAt: z.ZodOptional<z.ZodDate>;
1430
1430
  updatedAt: z.ZodOptional<z.ZodDate>;
1431
1431
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1432
1432
  status: TicketStatus;
1433
- _id: Types.ObjectId;
1433
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1434
1434
  description: string;
1435
1435
  title: string;
1436
- requester: Types.ObjectId;
1437
- resolver: Types.ObjectId;
1436
+ requester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1437
+ resolver?: string | Types.ObjectId | undefined;
1438
1438
  createdAt?: Date | undefined;
1439
1439
  updatedAt?: Date | undefined;
1440
1440
  }, {
1441
1441
  status: TicketStatus;
1442
- _id: Types.ObjectId;
1442
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1443
1443
  description: string;
1444
1444
  title: string;
1445
- requester: Types.ObjectId;
1446
- resolver: Types.ObjectId;
1445
+ requester: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1446
+ resolver?: string | Types.ObjectId | undefined;
1447
1447
  createdAt?: Date | undefined;
1448
1448
  updatedAt?: Date | undefined;
1449
1449
  }>;
@@ -1491,11 +1491,11 @@ declare const zMSemester: z.ZodObject<{
1491
1491
  endDate: z.ZodDate;
1492
1492
  blackoutDates: z.ZodArray<z.ZodDate, "many">;
1493
1493
  importantDates: z.ZodArray<z.ZodString, "many">;
1494
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1494
+ _id: z.ZodUnion<[z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>, z.ZodString]>;
1495
1495
  createdAt: z.ZodOptional<z.ZodDate>;
1496
1496
  updatedAt: z.ZodOptional<z.ZodDate>;
1497
1497
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1498
- _id: mongoose.Types.ObjectId;
1498
+ _id: (string | mongoose.Types.ObjectId) & (string | mongoose.Types.ObjectId | undefined);
1499
1499
  season: Season;
1500
1500
  year: number;
1501
1501
  startDate: Date;
@@ -1505,7 +1505,7 @@ declare const zMSemester: z.ZodObject<{
1505
1505
  createdAt?: Date | undefined;
1506
1506
  updatedAt?: Date | undefined;
1507
1507
  }, {
1508
- _id: mongoose.Types.ObjectId;
1508
+ _id: (string | mongoose.Types.ObjectId) & (string | mongoose.Types.ObjectId | undefined);
1509
1509
  season: Season;
1510
1510
  year: number;
1511
1511
  startDate: Date;
@@ -1586,7 +1586,7 @@ declare const zTConfig: z.ZodObject<{
1586
1586
  /**
1587
1587
  * List of ticket object IDs for this tournament
1588
1588
  */
1589
- tickets: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
1589
+ tickets: z.ZodArray<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>, "many">;
1590
1590
  /**
1591
1591
  * If false, the tournament registration is closed
1592
1592
  */
@@ -1627,7 +1627,7 @@ declare const zTConfig: z.ZodObject<{
1627
1627
  data: Map<string, {}[]>;
1628
1628
  fields: string[];
1629
1629
  };
1630
- tickets: Types.ObjectId[];
1630
+ tickets: (string | Types.ObjectId)[];
1631
1631
  canRegister: boolean;
1632
1632
  location?: string | undefined;
1633
1633
  donationsDisabled?: boolean | undefined;
@@ -1652,7 +1652,7 @@ declare const zTConfig: z.ZodObject<{
1652
1652
  data: Map<string, {}[]>;
1653
1653
  fields: string[];
1654
1654
  };
1655
- tickets: Types.ObjectId[];
1655
+ tickets: (string | Types.ObjectId)[];
1656
1656
  canRegister: boolean;
1657
1657
  location?: string | undefined;
1658
1658
  donationsDisabled?: boolean | undefined;
@@ -1694,7 +1694,7 @@ declare const zMTConfig: z.ZodObject<{
1694
1694
  data: Map<string, {}[]>;
1695
1695
  fields: string[];
1696
1696
  }>;
1697
- tickets: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
1697
+ tickets: z.ZodArray<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>, "many">;
1698
1698
  canRegister: z.ZodBoolean;
1699
1699
  donationsDisabled: z.ZodOptional<z.ZodBoolean>;
1700
1700
  image: z.ZodOptional<z.ZodObject<{
@@ -1710,11 +1710,11 @@ declare const zMTConfig: z.ZodObject<{
1710
1710
  height: number;
1711
1711
  width: number;
1712
1712
  }>>;
1713
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1713
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1714
1714
  createdAt: z.ZodOptional<z.ZodDate>;
1715
1715
  updatedAt: z.ZodOptional<z.ZodDate>;
1716
1716
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1717
- _id: Types.ObjectId;
1717
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1718
1718
  description: string;
1719
1719
  title: string;
1720
1720
  url: string;
@@ -1730,7 +1730,7 @@ declare const zMTConfig: z.ZodObject<{
1730
1730
  data: Map<string, {}[]>;
1731
1731
  fields: string[];
1732
1732
  };
1733
- tickets: Types.ObjectId[];
1733
+ tickets: (string | Types.ObjectId)[];
1734
1734
  canRegister: boolean;
1735
1735
  location?: string | undefined;
1736
1736
  donationsDisabled?: boolean | undefined;
@@ -1742,7 +1742,7 @@ declare const zMTConfig: z.ZodObject<{
1742
1742
  createdAt?: Date | undefined;
1743
1743
  updatedAt?: Date | undefined;
1744
1744
  }, {
1745
- _id: Types.ObjectId;
1745
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1746
1746
  description: string;
1747
1747
  title: string;
1748
1748
  url: string;
@@ -1758,7 +1758,7 @@ declare const zMTConfig: z.ZodObject<{
1758
1758
  data: Map<string, {}[]>;
1759
1759
  fields: string[];
1760
1760
  };
1761
- tickets: Types.ObjectId[];
1761
+ tickets: (string | Types.ObjectId)[];
1762
1762
  canRegister: boolean;
1763
1763
  location?: string | undefined;
1764
1764
  donationsDisabled?: boolean | undefined;
@@ -1797,7 +1797,7 @@ type DetailsTable = z.infer<typeof zDetailsTable>;
1797
1797
  type ScheduleTable = z.infer<typeof zScheduleTable>;
1798
1798
 
1799
1799
  declare const zTReg: z.ZodObject<{
1800
- userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1800
+ userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
1801
1801
  firstName: z.ZodString;
1802
1802
  lastName: z.ZodString;
1803
1803
  rank: z.ZodString;
@@ -1806,17 +1806,17 @@ declare const zTReg: z.ZodObject<{
1806
1806
  address: z.ZodOptional<z.ZodString>;
1807
1807
  notes: z.ZodOptional<z.ZodString>;
1808
1808
  tickets: z.ZodArray<z.ZodObject<{
1809
- ticket: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1809
+ ticket: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1810
1810
  amount: z.ZodNumber;
1811
1811
  }, "strip", z.ZodTypeAny, {
1812
1812
  amount: number;
1813
- ticket: Types.ObjectId;
1813
+ ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1814
1814
  }, {
1815
1815
  amount: number;
1816
- ticket: Types.ObjectId;
1816
+ ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1817
1817
  }>, "many">;
1818
1818
  agaId: z.ZodString;
1819
- tournamentId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1819
+ tournamentId: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1820
1820
  donation: z.ZodOptional<z.ZodNumber>;
1821
1821
  createMethod: z.ZodOptional<z.ZodString>;
1822
1822
  edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
@@ -1831,11 +1831,11 @@ declare const zTReg: z.ZodObject<{
1831
1831
  email: string;
1832
1832
  tickets: {
1833
1833
  amount: number;
1834
- ticket: Types.ObjectId;
1834
+ ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1835
1835
  }[];
1836
1836
  agaId: string;
1837
- tournamentId: Types.ObjectId;
1838
- userId?: Types.ObjectId | undefined;
1837
+ tournamentId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1838
+ userId?: string | Types.ObjectId | undefined;
1839
1839
  phone?: string | undefined;
1840
1840
  address?: string | undefined;
1841
1841
  notes?: string | undefined;
@@ -1852,11 +1852,11 @@ declare const zTReg: z.ZodObject<{
1852
1852
  email: string;
1853
1853
  tickets: {
1854
1854
  amount: number;
1855
- ticket: Types.ObjectId;
1855
+ ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1856
1856
  }[];
1857
1857
  agaId: string;
1858
- tournamentId: Types.ObjectId;
1859
- userId?: Types.ObjectId | undefined;
1858
+ tournamentId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1859
+ userId?: string | Types.ObjectId | undefined;
1860
1860
  phone?: string | undefined;
1861
1861
  address?: string | undefined;
1862
1862
  notes?: string | undefined;
@@ -1870,7 +1870,7 @@ declare const zMTReg: z.ZodObject<{
1870
1870
  paymentAmount: z.ZodNumber;
1871
1871
  paymentReceived: z.ZodOptional<z.ZodBoolean>;
1872
1872
  expireAt: z.ZodOptional<z.ZodDate>;
1873
- userId: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1873
+ userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
1874
1874
  firstName: z.ZodString;
1875
1875
  lastName: z.ZodString;
1876
1876
  rank: z.ZodString;
@@ -1879,21 +1879,21 @@ declare const zMTReg: z.ZodObject<{
1879
1879
  address: z.ZodOptional<z.ZodString>;
1880
1880
  notes: z.ZodOptional<z.ZodString>;
1881
1881
  tickets: z.ZodArray<z.ZodObject<{
1882
- ticket: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1882
+ ticket: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1883
1883
  amount: z.ZodNumber;
1884
1884
  }, "strip", z.ZodTypeAny, {
1885
1885
  amount: number;
1886
- ticket: Types.ObjectId;
1886
+ ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1887
1887
  }, {
1888
1888
  amount: number;
1889
- ticket: Types.ObjectId;
1889
+ ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1890
1890
  }>, "many">;
1891
1891
  agaId: z.ZodString;
1892
- tournamentId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1892
+ tournamentId: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1893
1893
  donation: z.ZodOptional<z.ZodNumber>;
1894
1894
  createMethod: z.ZodOptional<z.ZodString>;
1895
1895
  edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
1896
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1896
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1897
1897
  createdAt: z.ZodOptional<z.ZodDate>;
1898
1898
  updatedAt: z.ZodOptional<z.ZodDate>;
1899
1899
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -1902,16 +1902,16 @@ declare const zMTReg: z.ZodObject<{
1902
1902
  lastName: string;
1903
1903
  rank: string;
1904
1904
  email: string;
1905
- _id: Types.ObjectId;
1905
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1906
1906
  tickets: {
1907
1907
  amount: number;
1908
- ticket: Types.ObjectId;
1908
+ ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1909
1909
  }[];
1910
1910
  agaId: string;
1911
- tournamentId: Types.ObjectId;
1911
+ tournamentId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1912
1912
  paymentReceived?: boolean | undefined;
1913
1913
  expireAt?: Date | undefined;
1914
- userId?: Types.ObjectId | undefined;
1914
+ userId?: string | Types.ObjectId | undefined;
1915
1915
  phone?: string | undefined;
1916
1916
  address?: string | undefined;
1917
1917
  notes?: string | undefined;
@@ -1926,16 +1926,16 @@ declare const zMTReg: z.ZodObject<{
1926
1926
  lastName: string;
1927
1927
  rank: string;
1928
1928
  email: string;
1929
- _id: Types.ObjectId;
1929
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1930
1930
  tickets: {
1931
1931
  amount: number;
1932
- ticket: Types.ObjectId;
1932
+ ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1933
1933
  }[];
1934
1934
  agaId: string;
1935
- tournamentId: Types.ObjectId;
1935
+ tournamentId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1936
1936
  paymentReceived?: boolean | undefined;
1937
1937
  expireAt?: Date | undefined;
1938
- userId?: Types.ObjectId | undefined;
1938
+ userId?: string | Types.ObjectId | undefined;
1939
1939
  phone?: string | undefined;
1940
1940
  address?: string | undefined;
1941
1941
  notes?: string | undefined;
@@ -1949,17 +1949,17 @@ type TReg = z.infer<typeof zTReg>;
1949
1949
  type MTReg = z.infer<typeof zMTReg>;
1950
1950
 
1951
1951
  declare const zTTicketReg: z.ZodObject<{
1952
- ticket: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1952
+ ticket: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1953
1953
  /**
1954
1954
  * integer minimum 1, otherwise no ticket is being bought
1955
1955
  */
1956
1956
  amount: z.ZodNumber;
1957
1957
  }, "strip", z.ZodTypeAny, {
1958
1958
  amount: number;
1959
- ticket: Types.ObjectId;
1959
+ ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1960
1960
  }, {
1961
1961
  amount: number;
1962
- ticket: Types.ObjectId;
1962
+ ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1963
1963
  }>;
1964
1964
  type TTicketReg = z.infer<typeof zTTicketReg>;
1965
1965
 
@@ -2000,11 +2000,11 @@ declare const zMTTicket: z.ZodObject<{
2000
2000
  description: z.ZodOptional<z.ZodString>;
2001
2001
  isNotBuyable: z.ZodOptional<z.ZodBoolean>;
2002
2002
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
2003
- _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2003
+ _id: z.ZodUnion<[z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>, z.ZodString]>;
2004
2004
  createdAt: z.ZodOptional<z.ZodDate>;
2005
2005
  updatedAt: z.ZodOptional<z.ZodDate>;
2006
2006
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2007
- _id: mongoose.Types.ObjectId;
2007
+ _id: (string | mongoose.Types.ObjectId) & (string | mongoose.Types.ObjectId | undefined);
2008
2008
  price: number;
2009
2009
  name: string;
2010
2010
  description?: string | undefined;
@@ -2013,7 +2013,7 @@ declare const zMTTicket: z.ZodObject<{
2013
2013
  createdAt?: Date | undefined;
2014
2014
  updatedAt?: Date | undefined;
2015
2015
  }, {
2016
- _id: mongoose.Types.ObjectId;
2016
+ _id: (string | mongoose.Types.ObjectId) & (string | mongoose.Types.ObjectId | undefined);
2017
2017
  price: number;
2018
2018
  name: string;
2019
2019
  description?: string | undefined;
@@ -2110,11 +2110,11 @@ declare const zMUser: z.ZodObject<{
2110
2110
  country: z.ZodOptional<z.ZodString>;
2111
2111
  phoneNumber: z.ZodOptional<z.ZodString>;
2112
2112
  birthDate: z.ZodOptional<z.ZodString>;
2113
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
2113
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
2114
2114
  createdAt: z.ZodOptional<z.ZodDate>;
2115
2115
  updatedAt: z.ZodOptional<z.ZodDate>;
2116
2116
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2117
- _id: Types.ObjectId;
2117
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
2118
2118
  name: string;
2119
2119
  email?: string | undefined;
2120
2120
  address?: string | undefined;
@@ -2127,7 +2127,7 @@ declare const zMUser: z.ZodObject<{
2127
2127
  createdAt?: Date | undefined;
2128
2128
  updatedAt?: Date | undefined;
2129
2129
  }, {
2130
- _id: Types.ObjectId;
2130
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
2131
2131
  name: string;
2132
2132
  email?: string | undefined;
2133
2133
  address?: string | undefined;
@@ -2189,12 +2189,12 @@ declare const zMStudent: z.ZodObject<{
2189
2189
  phoneNumber: z.ZodOptional<z.ZodString>;
2190
2190
  birthDate: z.ZodOptional<z.ZodString>;
2191
2191
  guardian: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
2192
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
2192
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
2193
2193
  createdAt: z.ZodOptional<z.ZodDate>;
2194
2194
  updatedAt: z.ZodOptional<z.ZodDate>;
2195
2195
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2196
2196
  rank: GoRank;
2197
- _id: Types.ObjectId;
2197
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
2198
2198
  name: string;
2199
2199
  email?: string | undefined;
2200
2200
  address?: string | undefined;
@@ -2209,7 +2209,7 @@ declare const zMStudent: z.ZodObject<{
2209
2209
  updatedAt?: Date | undefined;
2210
2210
  }, {
2211
2211
  rank: GoRank;
2212
- _id: Types.ObjectId;
2212
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
2213
2213
  name: string;
2214
2214
  email?: string | undefined;
2215
2215
  address?: string | undefined;
@@ -2284,12 +2284,12 @@ declare const zMTeacher: z.ZodObject<{
2284
2284
  birthDate: z.ZodOptional<z.ZodString>;
2285
2285
  isInactive: z.ZodOptional<z.ZodBoolean>;
2286
2286
  available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
2287
- _id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
2287
+ _id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
2288
2288
  createdAt: z.ZodOptional<z.ZodDate>;
2289
2289
  updatedAt: z.ZodOptional<z.ZodDate>;
2290
2290
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2291
2291
  rank: GoRank;
2292
- _id: Types.ObjectId;
2292
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
2293
2293
  name: string;
2294
2294
  email?: string | undefined;
2295
2295
  address?: string | undefined;
@@ -2307,7 +2307,7 @@ declare const zMTeacher: z.ZodObject<{
2307
2307
  updatedAt?: Date | undefined;
2308
2308
  }, {
2309
2309
  rank: GoRank;
2310
- _id: Types.ObjectId;
2310
+ _id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
2311
2311
  name: string;
2312
2312
  email?: string | undefined;
2313
2313
  address?: string | undefined;