@nyig/models 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.mts +222 -299
- package/index.d.ts +222 -299
- package/index.js +207 -244
- package/index.mjs +207 -244
- package/package.json +2 -1
package/index.d.mts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import * as mongoose from 'mongoose';
|
|
3
|
+
import { Types } from 'mongoose';
|
|
2
4
|
|
|
3
5
|
declare const zBPaymentInfo: z.ZodObject<{
|
|
4
6
|
/**
|
|
@@ -73,7 +75,7 @@ declare enum CampOption {
|
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
declare const zAttendance: z.ZodObject<{
|
|
76
|
-
student: z.
|
|
78
|
+
student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
77
79
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
78
80
|
tuition: z.ZodObject<{
|
|
79
81
|
primary: z.ZodNumber;
|
|
@@ -91,7 +93,7 @@ declare const zAttendance: z.ZodObject<{
|
|
|
91
93
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
92
94
|
campOption: z.ZodNativeEnum<typeof CampOption>;
|
|
93
95
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
student:
|
|
96
|
+
student: Types.ObjectId;
|
|
95
97
|
states: AttendState[];
|
|
96
98
|
tuition: {
|
|
97
99
|
primary: number;
|
|
@@ -101,7 +103,7 @@ declare const zAttendance: z.ZodObject<{
|
|
|
101
103
|
campOption: CampOption;
|
|
102
104
|
paid?: boolean | undefined;
|
|
103
105
|
}, {
|
|
104
|
-
student:
|
|
106
|
+
student: Types.ObjectId;
|
|
105
107
|
states: AttendState[];
|
|
106
108
|
tuition: {
|
|
107
109
|
primary: number;
|
|
@@ -112,7 +114,7 @@ declare const zAttendance: z.ZodObject<{
|
|
|
112
114
|
paid?: boolean | undefined;
|
|
113
115
|
}>;
|
|
114
116
|
declare const zMAttendance: z.ZodObject<{
|
|
115
|
-
student: z.
|
|
117
|
+
student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
116
118
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
117
119
|
tuition: z.ZodObject<{
|
|
118
120
|
primary: z.ZodNumber;
|
|
@@ -129,12 +131,12 @@ declare const zMAttendance: z.ZodObject<{
|
|
|
129
131
|
}>;
|
|
130
132
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
131
133
|
campOption: z.ZodNativeEnum<typeof CampOption>;
|
|
132
|
-
_id: z.
|
|
134
|
+
_id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
133
135
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
134
136
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
135
137
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
136
|
-
_id:
|
|
137
|
-
student:
|
|
138
|
+
_id: Types.ObjectId;
|
|
139
|
+
student: Types.ObjectId;
|
|
138
140
|
states: AttendState[];
|
|
139
141
|
tuition: {
|
|
140
142
|
primary: number;
|
|
@@ -146,8 +148,8 @@ declare const zMAttendance: z.ZodObject<{
|
|
|
146
148
|
createdAt?: Date | undefined;
|
|
147
149
|
updatedAt?: Date | undefined;
|
|
148
150
|
}, {
|
|
149
|
-
_id:
|
|
150
|
-
student:
|
|
151
|
+
_id: Types.ObjectId;
|
|
152
|
+
student: Types.ObjectId;
|
|
151
153
|
states: AttendState[];
|
|
152
154
|
tuition: {
|
|
153
155
|
primary: number;
|
|
@@ -163,67 +165,52 @@ type Attendance = z.infer<typeof zAttendance>;
|
|
|
163
165
|
type MAttendance = z.infer<typeof zMAttendance>;
|
|
164
166
|
|
|
165
167
|
declare const zCampTracker: z.ZodObject<{
|
|
166
|
-
|
|
167
|
-
* Mongoose object ID
|
|
168
|
-
*/
|
|
169
|
-
course: z.ZodString;
|
|
170
|
-
/**
|
|
171
|
-
* Mongoose object ID
|
|
172
|
-
*/
|
|
173
|
-
teacher: z.ZodString;
|
|
174
|
-
/**
|
|
175
|
-
* Mongoose object ID
|
|
176
|
-
*/
|
|
177
|
-
semester: z.ZodString;
|
|
178
|
-
/**
|
|
179
|
-
* occurrences are tracked by week for camps
|
|
180
|
-
*/
|
|
168
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
181
169
|
occurrences: z.ZodArray<z.ZodString, "many">;
|
|
182
|
-
/**
|
|
183
|
-
* attendances are tracked by week for camps
|
|
184
|
-
*/
|
|
185
170
|
attendances: z.ZodArray<z.ZodString, "many">;
|
|
186
|
-
|
|
171
|
+
course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
172
|
+
teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
173
|
+
semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
187
174
|
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
course:
|
|
189
|
-
teacher:
|
|
190
|
-
semester:
|
|
175
|
+
course: mongoose.Types.ObjectId;
|
|
176
|
+
teacher: mongoose.Types.ObjectId;
|
|
177
|
+
semester: mongoose.Types.ObjectId;
|
|
191
178
|
occurrences: string[];
|
|
192
179
|
attendances: string[];
|
|
193
180
|
notes?: string | undefined;
|
|
194
181
|
}, {
|
|
195
|
-
course:
|
|
196
|
-
teacher:
|
|
197
|
-
semester:
|
|
182
|
+
course: mongoose.Types.ObjectId;
|
|
183
|
+
teacher: mongoose.Types.ObjectId;
|
|
184
|
+
semester: mongoose.Types.ObjectId;
|
|
198
185
|
occurrences: string[];
|
|
199
186
|
attendances: string[];
|
|
200
187
|
notes?: string | undefined;
|
|
201
188
|
}>;
|
|
202
189
|
declare const zMCampTracker: z.ZodObject<{
|
|
203
190
|
notes: z.ZodOptional<z.ZodString>;
|
|
204
|
-
course: z.
|
|
205
|
-
teacher: z.
|
|
206
|
-
semester: z.
|
|
191
|
+
course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
192
|
+
teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
193
|
+
semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
207
194
|
occurrences: z.ZodArray<z.ZodString, "many">;
|
|
208
195
|
attendances: z.ZodArray<z.ZodString, "many">;
|
|
209
|
-
_id: z.
|
|
196
|
+
_id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
210
197
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
211
198
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
212
199
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
213
|
-
_id:
|
|
214
|
-
course:
|
|
215
|
-
teacher:
|
|
216
|
-
semester:
|
|
200
|
+
_id: mongoose.Types.ObjectId;
|
|
201
|
+
course: mongoose.Types.ObjectId;
|
|
202
|
+
teacher: mongoose.Types.ObjectId;
|
|
203
|
+
semester: mongoose.Types.ObjectId;
|
|
217
204
|
occurrences: string[];
|
|
218
205
|
attendances: string[];
|
|
219
206
|
notes?: string | undefined;
|
|
220
207
|
createdAt?: Date | undefined;
|
|
221
208
|
updatedAt?: Date | undefined;
|
|
222
209
|
}, {
|
|
223
|
-
_id:
|
|
224
|
-
course:
|
|
225
|
-
teacher:
|
|
226
|
-
semester:
|
|
210
|
+
_id: mongoose.Types.ObjectId;
|
|
211
|
+
course: mongoose.Types.ObjectId;
|
|
212
|
+
teacher: mongoose.Types.ObjectId;
|
|
213
|
+
semester: mongoose.Types.ObjectId;
|
|
227
214
|
occurrences: string[];
|
|
228
215
|
attendances: string[];
|
|
229
216
|
notes?: string | undefined;
|
|
@@ -234,30 +221,11 @@ type CampTracker = z.infer<typeof zCampTracker>;
|
|
|
234
221
|
type MCampTracker = z.infer<typeof zMCampTracker>;
|
|
235
222
|
|
|
236
223
|
declare const zClassTracker: z.ZodObject<{
|
|
237
|
-
|
|
238
|
-
* Mongoose object ID
|
|
239
|
-
*/
|
|
240
|
-
course: z.ZodString;
|
|
241
|
-
/**
|
|
242
|
-
* Mongoose object ID
|
|
243
|
-
*/
|
|
244
|
-
teacher: z.ZodString;
|
|
245
|
-
/**
|
|
246
|
-
* Mongoose object ID
|
|
247
|
-
*/
|
|
248
|
-
semester: z.ZodString;
|
|
249
|
-
classTimes: z.ZodArray<z.ZodDate, "many">;
|
|
250
|
-
completedList: z.ZodArray<z.ZodBoolean, "many">;
|
|
251
|
-
/**
|
|
252
|
-
* Virtual mongoose field when all values in completedList is true
|
|
253
|
-
*/
|
|
254
|
-
completed: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
255
225
|
tuition: z.ZodOptional<z.ZodObject<{
|
|
256
226
|
primary: z.ZodNumber;
|
|
257
227
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
258
|
-
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
-
* Mongoose object ID
|
|
260
|
-
*/
|
|
228
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
261
229
|
}, "strip", z.ZodTypeAny, {
|
|
262
230
|
primary: number;
|
|
263
231
|
textbook?: boolean | undefined;
|
|
@@ -268,44 +236,47 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
268
236
|
shipping?: boolean | undefined;
|
|
269
237
|
}>>;
|
|
270
238
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
-
|
|
239
|
+
classTimes: z.ZodArray<z.ZodDate, "many">;
|
|
240
|
+
completedList: z.ZodArray<z.ZodBoolean, "many">;
|
|
241
|
+
completed: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
243
|
+
teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
244
|
+
semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
272
245
|
}, "strip", z.ZodTypeAny, {
|
|
273
|
-
course:
|
|
274
|
-
teacher:
|
|
275
|
-
semester:
|
|
246
|
+
course: mongoose.Types.ObjectId;
|
|
247
|
+
teacher: mongoose.Types.ObjectId;
|
|
248
|
+
semester: mongoose.Types.ObjectId;
|
|
276
249
|
classTimes: Date[];
|
|
277
250
|
completedList: boolean[];
|
|
278
|
-
|
|
251
|
+
notes?: string | undefined;
|
|
279
252
|
tuition?: {
|
|
280
253
|
primary: number;
|
|
281
254
|
textbook?: boolean | undefined;
|
|
282
255
|
shipping?: boolean | undefined;
|
|
283
256
|
} | undefined;
|
|
284
257
|
paid?: boolean | undefined;
|
|
285
|
-
|
|
258
|
+
completed?: boolean | undefined;
|
|
286
259
|
}, {
|
|
287
|
-
course:
|
|
288
|
-
teacher:
|
|
289
|
-
semester:
|
|
260
|
+
course: mongoose.Types.ObjectId;
|
|
261
|
+
teacher: mongoose.Types.ObjectId;
|
|
262
|
+
semester: mongoose.Types.ObjectId;
|
|
290
263
|
classTimes: Date[];
|
|
291
264
|
completedList: boolean[];
|
|
292
|
-
|
|
265
|
+
notes?: string | undefined;
|
|
293
266
|
tuition?: {
|
|
294
267
|
primary: number;
|
|
295
268
|
textbook?: boolean | undefined;
|
|
296
269
|
shipping?: boolean | undefined;
|
|
297
270
|
} | undefined;
|
|
298
271
|
paid?: boolean | undefined;
|
|
299
|
-
|
|
272
|
+
completed?: boolean | undefined;
|
|
300
273
|
}>;
|
|
301
274
|
declare const zMClassTracker: z.ZodObject<{
|
|
302
275
|
notes: z.ZodOptional<z.ZodString>;
|
|
303
276
|
tuition: z.ZodOptional<z.ZodObject<{
|
|
304
277
|
primary: z.ZodNumber;
|
|
305
278
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
-
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
307
|
-
* Mongoose object ID
|
|
308
|
-
*/
|
|
279
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
309
280
|
}, "strip", z.ZodTypeAny, {
|
|
310
281
|
primary: number;
|
|
311
282
|
textbook?: boolean | undefined;
|
|
@@ -316,20 +287,20 @@ declare const zMClassTracker: z.ZodObject<{
|
|
|
316
287
|
shipping?: boolean | undefined;
|
|
317
288
|
}>>;
|
|
318
289
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
-
course: z.
|
|
320
|
-
teacher: z.
|
|
321
|
-
semester: z.
|
|
290
|
+
course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
291
|
+
teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
292
|
+
semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
322
293
|
classTimes: z.ZodArray<z.ZodDate, "many">;
|
|
323
294
|
completedList: z.ZodArray<z.ZodBoolean, "many">;
|
|
324
295
|
completed: z.ZodOptional<z.ZodBoolean>;
|
|
325
|
-
_id: z.
|
|
296
|
+
_id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
326
297
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
327
298
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
328
299
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
329
|
-
_id:
|
|
330
|
-
course:
|
|
331
|
-
teacher:
|
|
332
|
-
semester:
|
|
300
|
+
_id: mongoose.Types.ObjectId;
|
|
301
|
+
course: mongoose.Types.ObjectId;
|
|
302
|
+
teacher: mongoose.Types.ObjectId;
|
|
303
|
+
semester: mongoose.Types.ObjectId;
|
|
333
304
|
classTimes: Date[];
|
|
334
305
|
completedList: boolean[];
|
|
335
306
|
notes?: string | undefined;
|
|
@@ -343,10 +314,10 @@ declare const zMClassTracker: z.ZodObject<{
|
|
|
343
314
|
createdAt?: Date | undefined;
|
|
344
315
|
updatedAt?: Date | undefined;
|
|
345
316
|
}, {
|
|
346
|
-
_id:
|
|
347
|
-
course:
|
|
348
|
-
teacher:
|
|
349
|
-
semester:
|
|
317
|
+
_id: mongoose.Types.ObjectId;
|
|
318
|
+
course: mongoose.Types.ObjectId;
|
|
319
|
+
teacher: mongoose.Types.ObjectId;
|
|
320
|
+
semester: mongoose.Types.ObjectId;
|
|
350
321
|
classTimes: Date[];
|
|
351
322
|
completedList: boolean[];
|
|
352
323
|
notes?: string | undefined;
|
|
@@ -440,11 +411,11 @@ declare const zMCourse: z.ZodObject<{
|
|
|
440
411
|
recLevel: z.ZodString;
|
|
441
412
|
halfCampTuition: z.ZodNumber;
|
|
442
413
|
fullCampTuition: z.ZodNumber;
|
|
443
|
-
_id: z.
|
|
414
|
+
_id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
444
415
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
445
416
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
446
417
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
447
|
-
_id:
|
|
418
|
+
_id: mongoose.Types.ObjectId;
|
|
448
419
|
price: number;
|
|
449
420
|
name: string;
|
|
450
421
|
category: CourseCategory;
|
|
@@ -457,7 +428,7 @@ declare const zMCourse: z.ZodObject<{
|
|
|
457
428
|
createdAt?: Date | undefined;
|
|
458
429
|
updatedAt?: Date | undefined;
|
|
459
430
|
}, {
|
|
460
|
-
_id:
|
|
431
|
+
_id: mongoose.Types.ObjectId;
|
|
461
432
|
price: number;
|
|
462
433
|
name: string;
|
|
463
434
|
category: CourseCategory;
|
|
@@ -474,18 +445,9 @@ type Course = z.infer<typeof zCourse>;
|
|
|
474
445
|
type MCourse = z.infer<typeof zMCourse>;
|
|
475
446
|
|
|
476
447
|
declare const zGroupTracker: z.ZodObject<{
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
course: z.ZodString;
|
|
481
|
-
/**
|
|
482
|
-
* Mongoose object ID
|
|
483
|
-
*/
|
|
484
|
-
teacher: z.ZodString;
|
|
485
|
-
/**
|
|
486
|
-
* Mongoose object ID
|
|
487
|
-
*/
|
|
488
|
-
semester: z.ZodString;
|
|
448
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
449
|
+
occurrences: z.ZodArray<z.ZodDate, "many">;
|
|
450
|
+
attendances: z.ZodArray<z.ZodString, "many">;
|
|
489
451
|
scheduleData: z.ZodObject<{
|
|
490
452
|
startTime: z.ZodString;
|
|
491
453
|
dayOfWeek: z.ZodNumber;
|
|
@@ -496,61 +458,46 @@ declare const zGroupTracker: z.ZodObject<{
|
|
|
496
458
|
startTime: string;
|
|
497
459
|
dayOfWeek: number;
|
|
498
460
|
}>;
|
|
499
|
-
/**
|
|
500
|
-
* occurrences are tracked by week for Groups
|
|
501
|
-
*/
|
|
502
|
-
occurrences: z.ZodArray<z.ZodDate, "many">;
|
|
503
|
-
/**
|
|
504
|
-
* attendances are tracked by week for Groups
|
|
505
|
-
*/
|
|
506
|
-
attendances: z.ZodArray<z.ZodString, "many">;
|
|
507
|
-
/**
|
|
508
|
-
* ID of the course instance, e.g., 101
|
|
509
|
-
*/
|
|
510
461
|
courseId: z.ZodOptional<z.ZodString>;
|
|
511
|
-
/**
|
|
512
|
-
* Age group of the class instance, e.g. "adult", "youth"
|
|
513
|
-
*/
|
|
514
462
|
ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
|
|
515
|
-
/**
|
|
516
|
-
* If true, the course is hidden from public view
|
|
517
|
-
*/
|
|
518
463
|
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
519
|
-
|
|
464
|
+
course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
465
|
+
teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
466
|
+
semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
520
467
|
}, "strip", z.ZodTypeAny, {
|
|
521
|
-
course:
|
|
522
|
-
teacher:
|
|
523
|
-
semester:
|
|
468
|
+
course: mongoose.Types.ObjectId;
|
|
469
|
+
teacher: mongoose.Types.ObjectId;
|
|
470
|
+
semester: mongoose.Types.ObjectId;
|
|
524
471
|
occurrences: Date[];
|
|
525
472
|
attendances: string[];
|
|
526
473
|
scheduleData: {
|
|
527
474
|
startTime: string;
|
|
528
475
|
dayOfWeek: number;
|
|
529
476
|
};
|
|
477
|
+
notes?: string | undefined;
|
|
530
478
|
courseId?: string | undefined;
|
|
531
479
|
ageGroup?: AgeGroup | undefined;
|
|
532
480
|
isNonPublic?: boolean | undefined;
|
|
533
|
-
notes?: string | undefined;
|
|
534
481
|
}, {
|
|
535
|
-
course:
|
|
536
|
-
teacher:
|
|
537
|
-
semester:
|
|
482
|
+
course: mongoose.Types.ObjectId;
|
|
483
|
+
teacher: mongoose.Types.ObjectId;
|
|
484
|
+
semester: mongoose.Types.ObjectId;
|
|
538
485
|
occurrences: Date[];
|
|
539
486
|
attendances: string[];
|
|
540
487
|
scheduleData: {
|
|
541
488
|
startTime: string;
|
|
542
489
|
dayOfWeek: number;
|
|
543
490
|
};
|
|
491
|
+
notes?: string | undefined;
|
|
544
492
|
courseId?: string | undefined;
|
|
545
493
|
ageGroup?: AgeGroup | undefined;
|
|
546
494
|
isNonPublic?: boolean | undefined;
|
|
547
|
-
notes?: string | undefined;
|
|
548
495
|
}>;
|
|
549
496
|
declare const zMGroupTracker: z.ZodObject<{
|
|
550
497
|
notes: z.ZodOptional<z.ZodString>;
|
|
551
|
-
course: z.
|
|
552
|
-
teacher: z.
|
|
553
|
-
semester: z.
|
|
498
|
+
course: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
499
|
+
teacher: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
500
|
+
semester: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
554
501
|
occurrences: z.ZodArray<z.ZodDate, "many">;
|
|
555
502
|
attendances: z.ZodArray<z.ZodString, "many">;
|
|
556
503
|
scheduleData: z.ZodObject<{
|
|
@@ -566,14 +513,14 @@ declare const zMGroupTracker: z.ZodObject<{
|
|
|
566
513
|
courseId: z.ZodOptional<z.ZodString>;
|
|
567
514
|
ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
|
|
568
515
|
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
569
|
-
_id: z.
|
|
516
|
+
_id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
570
517
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
571
518
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
572
519
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
573
|
-
_id:
|
|
574
|
-
course:
|
|
575
|
-
teacher:
|
|
576
|
-
semester:
|
|
520
|
+
_id: mongoose.Types.ObjectId;
|
|
521
|
+
course: mongoose.Types.ObjectId;
|
|
522
|
+
teacher: mongoose.Types.ObjectId;
|
|
523
|
+
semester: mongoose.Types.ObjectId;
|
|
577
524
|
occurrences: Date[];
|
|
578
525
|
attendances: string[];
|
|
579
526
|
scheduleData: {
|
|
@@ -587,10 +534,10 @@ declare const zMGroupTracker: z.ZodObject<{
|
|
|
587
534
|
createdAt?: Date | undefined;
|
|
588
535
|
updatedAt?: Date | undefined;
|
|
589
536
|
}, {
|
|
590
|
-
_id:
|
|
591
|
-
course:
|
|
592
|
-
teacher:
|
|
593
|
-
semester:
|
|
537
|
+
_id: mongoose.Types.ObjectId;
|
|
538
|
+
course: mongoose.Types.ObjectId;
|
|
539
|
+
teacher: mongoose.Types.ObjectId;
|
|
540
|
+
semester: mongoose.Types.ObjectId;
|
|
594
541
|
occurrences: Date[];
|
|
595
542
|
attendances: string[];
|
|
596
543
|
scheduleData: {
|
|
@@ -688,7 +635,7 @@ declare const zMCampBooking: z.ZodObject<{
|
|
|
688
635
|
ctId: z.ZodOptional<z.ZodString>;
|
|
689
636
|
isOnline: z.ZodBoolean;
|
|
690
637
|
classDates: z.ZodString;
|
|
691
|
-
_id: z.
|
|
638
|
+
_id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
692
639
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
693
640
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
694
641
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -697,7 +644,7 @@ declare const zMCampBooking: z.ZodObject<{
|
|
|
697
644
|
lastName: string;
|
|
698
645
|
rank: string;
|
|
699
646
|
email: string;
|
|
700
|
-
_id:
|
|
647
|
+
_id: mongoose.Types.ObjectId;
|
|
701
648
|
campOption: CampOption;
|
|
702
649
|
isOnline: boolean;
|
|
703
650
|
classDates: string;
|
|
@@ -717,7 +664,7 @@ declare const zMCampBooking: z.ZodObject<{
|
|
|
717
664
|
lastName: string;
|
|
718
665
|
rank: string;
|
|
719
666
|
email: string;
|
|
720
|
-
_id:
|
|
667
|
+
_id: mongoose.Types.ObjectId;
|
|
721
668
|
campOption: CampOption;
|
|
722
669
|
isOnline: boolean;
|
|
723
670
|
classDates: string;
|
|
@@ -804,7 +751,7 @@ declare const zMGroupBooking: z.ZodObject<{
|
|
|
804
751
|
gtId: z.ZodOptional<z.ZodString>;
|
|
805
752
|
isTrial: z.ZodOptional<z.ZodBoolean>;
|
|
806
753
|
classDate: z.ZodOptional<z.ZodString>;
|
|
807
|
-
_id: z.
|
|
754
|
+
_id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
808
755
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
809
756
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
810
757
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -813,7 +760,7 @@ declare const zMGroupBooking: z.ZodObject<{
|
|
|
813
760
|
lastName: string;
|
|
814
761
|
rank: string;
|
|
815
762
|
email: string;
|
|
816
|
-
_id:
|
|
763
|
+
_id: mongoose.Types.ObjectId;
|
|
817
764
|
isOnline: boolean;
|
|
818
765
|
paymentReceived?: boolean | undefined;
|
|
819
766
|
expireAt?: Date | undefined;
|
|
@@ -833,7 +780,7 @@ declare const zMGroupBooking: z.ZodObject<{
|
|
|
833
780
|
lastName: string;
|
|
834
781
|
rank: string;
|
|
835
782
|
email: string;
|
|
836
|
-
_id:
|
|
783
|
+
_id: mongoose.Types.ObjectId;
|
|
837
784
|
isOnline: boolean;
|
|
838
785
|
paymentReceived?: boolean | undefined;
|
|
839
786
|
expireAt?: Date | undefined;
|
|
@@ -912,7 +859,7 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
912
859
|
userId: z.ZodOptional<z.ZodString>;
|
|
913
860
|
classDate: z.ZodOptional<z.ZodString>;
|
|
914
861
|
teacherId: z.ZodString;
|
|
915
|
-
_id: z.
|
|
862
|
+
_id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
916
863
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
917
864
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
918
865
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -921,7 +868,7 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
921
868
|
lastName: string;
|
|
922
869
|
rank: string;
|
|
923
870
|
email: string;
|
|
924
|
-
_id:
|
|
871
|
+
_id: mongoose.Types.ObjectId;
|
|
925
872
|
courseId: string;
|
|
926
873
|
teacherId: string;
|
|
927
874
|
paymentReceived?: boolean | undefined;
|
|
@@ -939,7 +886,7 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
939
886
|
lastName: string;
|
|
940
887
|
rank: string;
|
|
941
888
|
email: string;
|
|
942
|
-
_id:
|
|
889
|
+
_id: mongoose.Types.ObjectId;
|
|
943
890
|
courseId: string;
|
|
944
891
|
teacherId: string;
|
|
945
892
|
paymentReceived?: boolean | undefined;
|
|
@@ -973,53 +920,44 @@ declare const zDiscount: z.ZodObject<{
|
|
|
973
920
|
amount: number;
|
|
974
921
|
}>;
|
|
975
922
|
declare const zInvoiceItem: z.ZodObject<{
|
|
976
|
-
|
|
977
|
-
* Mongoose object ID
|
|
978
|
-
*/
|
|
979
|
-
course: z.ZodString;
|
|
923
|
+
course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
980
924
|
price: z.ZodNumber;
|
|
981
925
|
units: z.ZodNumber;
|
|
982
926
|
}, "strip", z.ZodTypeAny, {
|
|
983
|
-
course:
|
|
927
|
+
course: Types.ObjectId;
|
|
984
928
|
price: number;
|
|
985
929
|
units: number;
|
|
986
930
|
}, {
|
|
987
|
-
course:
|
|
931
|
+
course: Types.ObjectId;
|
|
988
932
|
price: number;
|
|
989
933
|
units: number;
|
|
990
934
|
}>;
|
|
991
935
|
declare const zInvoicePackage: z.ZodObject<{
|
|
992
|
-
|
|
993
|
-
* Mongoose object ID
|
|
994
|
-
*/
|
|
995
|
-
student: z.ZodString;
|
|
936
|
+
student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
996
937
|
items: z.ZodArray<z.ZodObject<{
|
|
997
|
-
|
|
998
|
-
* Mongoose object ID
|
|
999
|
-
*/
|
|
1000
|
-
course: z.ZodString;
|
|
938
|
+
course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1001
939
|
price: z.ZodNumber;
|
|
1002
940
|
units: z.ZodNumber;
|
|
1003
941
|
}, "strip", z.ZodTypeAny, {
|
|
1004
|
-
course:
|
|
942
|
+
course: Types.ObjectId;
|
|
1005
943
|
price: number;
|
|
1006
944
|
units: number;
|
|
1007
945
|
}, {
|
|
1008
|
-
course:
|
|
946
|
+
course: Types.ObjectId;
|
|
1009
947
|
price: number;
|
|
1010
948
|
units: number;
|
|
1011
949
|
}>, "many">;
|
|
1012
950
|
}, "strip", z.ZodTypeAny, {
|
|
1013
|
-
student:
|
|
951
|
+
student: Types.ObjectId;
|
|
1014
952
|
items: {
|
|
1015
|
-
course:
|
|
953
|
+
course: Types.ObjectId;
|
|
1016
954
|
price: number;
|
|
1017
955
|
units: number;
|
|
1018
956
|
}[];
|
|
1019
957
|
}, {
|
|
1020
|
-
student:
|
|
958
|
+
student: Types.ObjectId;
|
|
1021
959
|
items: {
|
|
1022
|
-
course:
|
|
960
|
+
course: Types.ObjectId;
|
|
1023
961
|
price: number;
|
|
1024
962
|
units: number;
|
|
1025
963
|
}[];
|
|
@@ -1027,37 +965,31 @@ declare const zInvoicePackage: z.ZodObject<{
|
|
|
1027
965
|
declare const zInvoice: z.ZodObject<{
|
|
1028
966
|
billTo: z.ZodString;
|
|
1029
967
|
packages: z.ZodArray<z.ZodObject<{
|
|
1030
|
-
|
|
1031
|
-
* Mongoose object ID
|
|
1032
|
-
*/
|
|
1033
|
-
student: z.ZodString;
|
|
968
|
+
student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1034
969
|
items: z.ZodArray<z.ZodObject<{
|
|
1035
|
-
|
|
1036
|
-
* Mongoose object ID
|
|
1037
|
-
*/
|
|
1038
|
-
course: z.ZodString;
|
|
970
|
+
course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1039
971
|
price: z.ZodNumber;
|
|
1040
972
|
units: z.ZodNumber;
|
|
1041
973
|
}, "strip", z.ZodTypeAny, {
|
|
1042
|
-
course:
|
|
974
|
+
course: Types.ObjectId;
|
|
1043
975
|
price: number;
|
|
1044
976
|
units: number;
|
|
1045
977
|
}, {
|
|
1046
|
-
course:
|
|
978
|
+
course: Types.ObjectId;
|
|
1047
979
|
price: number;
|
|
1048
980
|
units: number;
|
|
1049
981
|
}>, "many">;
|
|
1050
982
|
}, "strip", z.ZodTypeAny, {
|
|
1051
|
-
student:
|
|
983
|
+
student: Types.ObjectId;
|
|
1052
984
|
items: {
|
|
1053
|
-
course:
|
|
985
|
+
course: Types.ObjectId;
|
|
1054
986
|
price: number;
|
|
1055
987
|
units: number;
|
|
1056
988
|
}[];
|
|
1057
989
|
}, {
|
|
1058
|
-
student:
|
|
990
|
+
student: Types.ObjectId;
|
|
1059
991
|
items: {
|
|
1060
|
-
course:
|
|
992
|
+
course: Types.ObjectId;
|
|
1061
993
|
price: number;
|
|
1062
994
|
units: number;
|
|
1063
995
|
}[];
|
|
@@ -1076,20 +1008,14 @@ declare const zInvoice: z.ZodObject<{
|
|
|
1076
1008
|
shipping: z.ZodOptional<z.ZodNumber>;
|
|
1077
1009
|
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
1078
1010
|
notes: z.ZodOptional<z.ZodString>;
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
*/
|
|
1082
|
-
createdBy: z.ZodString;
|
|
1083
|
-
/**
|
|
1084
|
-
* Mongoose object ID
|
|
1085
|
-
*/
|
|
1086
|
-
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
createdBy: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1012
|
+
lastEditBy: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
1087
1013
|
}, "strip", z.ZodTypeAny, {
|
|
1088
1014
|
billTo: string;
|
|
1089
1015
|
packages: {
|
|
1090
|
-
student:
|
|
1016
|
+
student: Types.ObjectId;
|
|
1091
1017
|
items: {
|
|
1092
|
-
course:
|
|
1018
|
+
course: Types.ObjectId;
|
|
1093
1019
|
price: number;
|
|
1094
1020
|
units: number;
|
|
1095
1021
|
}[];
|
|
@@ -1098,18 +1024,18 @@ declare const zInvoice: z.ZodObject<{
|
|
|
1098
1024
|
desc: string;
|
|
1099
1025
|
amount: number;
|
|
1100
1026
|
}[];
|
|
1101
|
-
createdBy:
|
|
1027
|
+
createdBy: Types.ObjectId;
|
|
1102
1028
|
textbook?: number | undefined;
|
|
1103
1029
|
shipping?: number | undefined;
|
|
1104
1030
|
paid?: PaymentMethod | undefined;
|
|
1105
1031
|
notes?: string | undefined;
|
|
1106
|
-
lastEditBy?:
|
|
1032
|
+
lastEditBy?: Types.ObjectId | undefined;
|
|
1107
1033
|
}, {
|
|
1108
1034
|
billTo: string;
|
|
1109
1035
|
packages: {
|
|
1110
|
-
student:
|
|
1036
|
+
student: Types.ObjectId;
|
|
1111
1037
|
items: {
|
|
1112
|
-
course:
|
|
1038
|
+
course: Types.ObjectId;
|
|
1113
1039
|
price: number;
|
|
1114
1040
|
units: number;
|
|
1115
1041
|
}[];
|
|
@@ -1118,12 +1044,12 @@ declare const zInvoice: z.ZodObject<{
|
|
|
1118
1044
|
desc: string;
|
|
1119
1045
|
amount: number;
|
|
1120
1046
|
}[];
|
|
1121
|
-
createdBy:
|
|
1047
|
+
createdBy: Types.ObjectId;
|
|
1122
1048
|
textbook?: number | undefined;
|
|
1123
1049
|
shipping?: number | undefined;
|
|
1124
1050
|
paid?: PaymentMethod | undefined;
|
|
1125
1051
|
notes?: string | undefined;
|
|
1126
|
-
lastEditBy?:
|
|
1052
|
+
lastEditBy?: Types.ObjectId | undefined;
|
|
1127
1053
|
}>;
|
|
1128
1054
|
declare const zMInvoice: z.ZodObject<{
|
|
1129
1055
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -1132,37 +1058,31 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1132
1058
|
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
1133
1059
|
billTo: z.ZodString;
|
|
1134
1060
|
packages: z.ZodArray<z.ZodObject<{
|
|
1135
|
-
|
|
1136
|
-
* Mongoose object ID
|
|
1137
|
-
*/
|
|
1138
|
-
student: z.ZodString;
|
|
1061
|
+
student: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1139
1062
|
items: z.ZodArray<z.ZodObject<{
|
|
1140
|
-
|
|
1141
|
-
* Mongoose object ID
|
|
1142
|
-
*/
|
|
1143
|
-
course: z.ZodString;
|
|
1063
|
+
course: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1144
1064
|
price: z.ZodNumber;
|
|
1145
1065
|
units: z.ZodNumber;
|
|
1146
1066
|
}, "strip", z.ZodTypeAny, {
|
|
1147
|
-
course:
|
|
1067
|
+
course: Types.ObjectId;
|
|
1148
1068
|
price: number;
|
|
1149
1069
|
units: number;
|
|
1150
1070
|
}, {
|
|
1151
|
-
course:
|
|
1071
|
+
course: Types.ObjectId;
|
|
1152
1072
|
price: number;
|
|
1153
1073
|
units: number;
|
|
1154
1074
|
}>, "many">;
|
|
1155
1075
|
}, "strip", z.ZodTypeAny, {
|
|
1156
|
-
student:
|
|
1076
|
+
student: Types.ObjectId;
|
|
1157
1077
|
items: {
|
|
1158
|
-
course:
|
|
1078
|
+
course: Types.ObjectId;
|
|
1159
1079
|
price: number;
|
|
1160
1080
|
units: number;
|
|
1161
1081
|
}[];
|
|
1162
1082
|
}, {
|
|
1163
|
-
student:
|
|
1083
|
+
student: Types.ObjectId;
|
|
1164
1084
|
items: {
|
|
1165
|
-
course:
|
|
1085
|
+
course: Types.ObjectId;
|
|
1166
1086
|
price: number;
|
|
1167
1087
|
units: number;
|
|
1168
1088
|
}[];
|
|
@@ -1177,18 +1097,18 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1177
1097
|
desc: string;
|
|
1178
1098
|
amount: number;
|
|
1179
1099
|
}>, "many">;
|
|
1180
|
-
createdBy: z.
|
|
1181
|
-
lastEditBy: z.ZodOptional<z.
|
|
1182
|
-
_id: z.
|
|
1100
|
+
createdBy: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1101
|
+
lastEditBy: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
1102
|
+
_id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1183
1103
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1184
1104
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1185
1105
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1186
|
-
_id:
|
|
1106
|
+
_id: Types.ObjectId;
|
|
1187
1107
|
billTo: string;
|
|
1188
1108
|
packages: {
|
|
1189
|
-
student:
|
|
1109
|
+
student: Types.ObjectId;
|
|
1190
1110
|
items: {
|
|
1191
|
-
course:
|
|
1111
|
+
course: Types.ObjectId;
|
|
1192
1112
|
price: number;
|
|
1193
1113
|
units: number;
|
|
1194
1114
|
}[];
|
|
@@ -1197,21 +1117,21 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1197
1117
|
desc: string;
|
|
1198
1118
|
amount: number;
|
|
1199
1119
|
}[];
|
|
1200
|
-
createdBy:
|
|
1120
|
+
createdBy: Types.ObjectId;
|
|
1201
1121
|
notes?: string | undefined;
|
|
1202
1122
|
textbook?: number | undefined;
|
|
1203
1123
|
shipping?: number | undefined;
|
|
1204
1124
|
paid?: PaymentMethod | undefined;
|
|
1205
|
-
lastEditBy?:
|
|
1125
|
+
lastEditBy?: Types.ObjectId | undefined;
|
|
1206
1126
|
createdAt?: Date | undefined;
|
|
1207
1127
|
updatedAt?: Date | undefined;
|
|
1208
1128
|
}, {
|
|
1209
|
-
_id:
|
|
1129
|
+
_id: Types.ObjectId;
|
|
1210
1130
|
billTo: string;
|
|
1211
1131
|
packages: {
|
|
1212
|
-
student:
|
|
1132
|
+
student: Types.ObjectId;
|
|
1213
1133
|
items: {
|
|
1214
|
-
course:
|
|
1134
|
+
course: Types.ObjectId;
|
|
1215
1135
|
price: number;
|
|
1216
1136
|
units: number;
|
|
1217
1137
|
}[];
|
|
@@ -1220,12 +1140,12 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1220
1140
|
desc: string;
|
|
1221
1141
|
amount: number;
|
|
1222
1142
|
}[];
|
|
1223
|
-
createdBy:
|
|
1143
|
+
createdBy: Types.ObjectId;
|
|
1224
1144
|
notes?: string | undefined;
|
|
1225
1145
|
textbook?: number | undefined;
|
|
1226
1146
|
shipping?: number | undefined;
|
|
1227
1147
|
paid?: PaymentMethod | undefined;
|
|
1228
|
-
lastEditBy?:
|
|
1148
|
+
lastEditBy?: Types.ObjectId | undefined;
|
|
1229
1149
|
createdAt?: Date | undefined;
|
|
1230
1150
|
updatedAt?: Date | undefined;
|
|
1231
1151
|
}>;
|
|
@@ -1313,11 +1233,11 @@ declare const zMTeacherPayment: z.ZodObject<{
|
|
|
1313
1233
|
count: number;
|
|
1314
1234
|
wage: number;
|
|
1315
1235
|
}>, "many">;
|
|
1316
|
-
_id: z.
|
|
1236
|
+
_id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
1317
1237
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1318
1238
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1319
1239
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1320
|
-
_id:
|
|
1240
|
+
_id: mongoose.Types.ObjectId;
|
|
1321
1241
|
teacher: string;
|
|
1322
1242
|
rows: {
|
|
1323
1243
|
length: number;
|
|
@@ -1329,7 +1249,7 @@ declare const zMTeacherPayment: z.ZodObject<{
|
|
|
1329
1249
|
createdAt?: Date | undefined;
|
|
1330
1250
|
updatedAt?: Date | undefined;
|
|
1331
1251
|
}, {
|
|
1332
|
-
_id:
|
|
1252
|
+
_id: mongoose.Types.ObjectId;
|
|
1333
1253
|
teacher: string;
|
|
1334
1254
|
rows: {
|
|
1335
1255
|
length: number;
|
|
@@ -1472,12 +1392,12 @@ declare const zMReportTicket: z.ZodObject<{
|
|
|
1472
1392
|
title: z.ZodString;
|
|
1473
1393
|
requester: z.ZodString;
|
|
1474
1394
|
resolver: z.ZodString;
|
|
1475
|
-
_id: z.
|
|
1395
|
+
_id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
1476
1396
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1477
1397
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1478
1398
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1479
1399
|
status: TicketStatus;
|
|
1480
|
-
_id:
|
|
1400
|
+
_id: mongoose.Types.ObjectId;
|
|
1481
1401
|
description: string;
|
|
1482
1402
|
title: string;
|
|
1483
1403
|
requester: string;
|
|
@@ -1486,7 +1406,7 @@ declare const zMReportTicket: z.ZodObject<{
|
|
|
1486
1406
|
updatedAt?: Date | undefined;
|
|
1487
1407
|
}, {
|
|
1488
1408
|
status: TicketStatus;
|
|
1489
|
-
_id:
|
|
1409
|
+
_id: mongoose.Types.ObjectId;
|
|
1490
1410
|
description: string;
|
|
1491
1411
|
title: string;
|
|
1492
1412
|
requester: string;
|
|
@@ -1538,11 +1458,11 @@ declare const zMSemester: z.ZodObject<{
|
|
|
1538
1458
|
endDate: z.ZodDate;
|
|
1539
1459
|
blackoutDates: z.ZodArray<z.ZodDate, "many">;
|
|
1540
1460
|
importantDates: z.ZodArray<z.ZodString, "many">;
|
|
1541
|
-
_id: z.
|
|
1461
|
+
_id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
1542
1462
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1543
1463
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1544
1464
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1545
|
-
_id:
|
|
1465
|
+
_id: mongoose.Types.ObjectId;
|
|
1546
1466
|
season: Season;
|
|
1547
1467
|
year: number;
|
|
1548
1468
|
startDate: Date;
|
|
@@ -1552,7 +1472,7 @@ declare const zMSemester: z.ZodObject<{
|
|
|
1552
1472
|
createdAt?: Date | undefined;
|
|
1553
1473
|
updatedAt?: Date | undefined;
|
|
1554
1474
|
}, {
|
|
1555
|
-
_id:
|
|
1475
|
+
_id: mongoose.Types.ObjectId;
|
|
1556
1476
|
season: Season;
|
|
1557
1477
|
year: number;
|
|
1558
1478
|
startDate: Date;
|
|
@@ -1619,6 +1539,9 @@ declare const zTConfig: z.ZodObject<{
|
|
|
1619
1539
|
*/
|
|
1620
1540
|
schedule: z.ZodObject<{
|
|
1621
1541
|
fields: z.ZodArray<z.ZodString, "many">;
|
|
1542
|
+
/**
|
|
1543
|
+
* Location of the event
|
|
1544
|
+
*/
|
|
1622
1545
|
data: z.ZodMap<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
|
|
1623
1546
|
}, "strip", z.ZodTypeAny, {
|
|
1624
1547
|
data: Map<string, {}[]>;
|
|
@@ -1630,7 +1553,7 @@ declare const zTConfig: z.ZodObject<{
|
|
|
1630
1553
|
/**
|
|
1631
1554
|
* List of ticket object IDs for this tournament
|
|
1632
1555
|
*/
|
|
1633
|
-
tickets: z.ZodArray<z.
|
|
1556
|
+
tickets: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
|
|
1634
1557
|
/**
|
|
1635
1558
|
* If false, the tournament registration is closed
|
|
1636
1559
|
*/
|
|
@@ -1671,7 +1594,7 @@ declare const zTConfig: z.ZodObject<{
|
|
|
1671
1594
|
data: Map<string, {}[]>;
|
|
1672
1595
|
fields: string[];
|
|
1673
1596
|
};
|
|
1674
|
-
tickets:
|
|
1597
|
+
tickets: Types.ObjectId[];
|
|
1675
1598
|
canRegister: boolean;
|
|
1676
1599
|
location?: string | undefined;
|
|
1677
1600
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1696,7 +1619,7 @@ declare const zTConfig: z.ZodObject<{
|
|
|
1696
1619
|
data: Map<string, {}[]>;
|
|
1697
1620
|
fields: string[];
|
|
1698
1621
|
};
|
|
1699
|
-
tickets:
|
|
1622
|
+
tickets: Types.ObjectId[];
|
|
1700
1623
|
canRegister: boolean;
|
|
1701
1624
|
location?: string | undefined;
|
|
1702
1625
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1727,6 +1650,9 @@ declare const zMTConfig: z.ZodObject<{
|
|
|
1727
1650
|
}>;
|
|
1728
1651
|
schedule: z.ZodObject<{
|
|
1729
1652
|
fields: z.ZodArray<z.ZodString, "many">;
|
|
1653
|
+
/**
|
|
1654
|
+
* Location of the event
|
|
1655
|
+
*/
|
|
1730
1656
|
data: z.ZodMap<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
|
|
1731
1657
|
}, "strip", z.ZodTypeAny, {
|
|
1732
1658
|
data: Map<string, {}[]>;
|
|
@@ -1735,7 +1661,7 @@ declare const zMTConfig: z.ZodObject<{
|
|
|
1735
1661
|
data: Map<string, {}[]>;
|
|
1736
1662
|
fields: string[];
|
|
1737
1663
|
}>;
|
|
1738
|
-
tickets: z.ZodArray<z.
|
|
1664
|
+
tickets: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
|
|
1739
1665
|
canRegister: z.ZodBoolean;
|
|
1740
1666
|
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1741
1667
|
image: z.ZodOptional<z.ZodObject<{
|
|
@@ -1751,11 +1677,11 @@ declare const zMTConfig: z.ZodObject<{
|
|
|
1751
1677
|
height: number;
|
|
1752
1678
|
width: number;
|
|
1753
1679
|
}>>;
|
|
1754
|
-
_id: z.
|
|
1680
|
+
_id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1755
1681
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1756
1682
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1757
1683
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1758
|
-
_id:
|
|
1684
|
+
_id: Types.ObjectId;
|
|
1759
1685
|
description: string;
|
|
1760
1686
|
title: string;
|
|
1761
1687
|
url: string;
|
|
@@ -1771,7 +1697,7 @@ declare const zMTConfig: z.ZodObject<{
|
|
|
1771
1697
|
data: Map<string, {}[]>;
|
|
1772
1698
|
fields: string[];
|
|
1773
1699
|
};
|
|
1774
|
-
tickets:
|
|
1700
|
+
tickets: Types.ObjectId[];
|
|
1775
1701
|
canRegister: boolean;
|
|
1776
1702
|
location?: string | undefined;
|
|
1777
1703
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1783,7 +1709,7 @@ declare const zMTConfig: z.ZodObject<{
|
|
|
1783
1709
|
createdAt?: Date | undefined;
|
|
1784
1710
|
updatedAt?: Date | undefined;
|
|
1785
1711
|
}, {
|
|
1786
|
-
_id:
|
|
1712
|
+
_id: Types.ObjectId;
|
|
1787
1713
|
description: string;
|
|
1788
1714
|
title: string;
|
|
1789
1715
|
url: string;
|
|
@@ -1799,7 +1725,7 @@ declare const zMTConfig: z.ZodObject<{
|
|
|
1799
1725
|
data: Map<string, {}[]>;
|
|
1800
1726
|
fields: string[];
|
|
1801
1727
|
};
|
|
1802
|
-
tickets:
|
|
1728
|
+
tickets: Types.ObjectId[];
|
|
1803
1729
|
canRegister: boolean;
|
|
1804
1730
|
location?: string | undefined;
|
|
1805
1731
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1846,20 +1772,20 @@ declare const zTReg: z.ZodObject<{
|
|
|
1846
1772
|
address: z.ZodOptional<z.ZodString>;
|
|
1847
1773
|
notes: z.ZodOptional<z.ZodString>;
|
|
1848
1774
|
tickets: z.ZodArray<z.ZodObject<{
|
|
1849
|
-
ticket: z.
|
|
1775
|
+
ticket: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1850
1776
|
amount: z.ZodNumber;
|
|
1851
1777
|
}, "strip", z.ZodTypeAny, {
|
|
1852
1778
|
amount: number;
|
|
1853
|
-
ticket:
|
|
1779
|
+
ticket: Types.ObjectId;
|
|
1854
1780
|
}, {
|
|
1855
1781
|
amount: number;
|
|
1856
|
-
ticket:
|
|
1782
|
+
ticket: Types.ObjectId;
|
|
1857
1783
|
}>, "many">;
|
|
1858
1784
|
agaId: z.ZodString;
|
|
1859
|
-
tournamentId: z.
|
|
1785
|
+
tournamentId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1860
1786
|
donation: z.ZodOptional<z.ZodNumber>;
|
|
1861
1787
|
createMethod: z.ZodOptional<z.ZodString>;
|
|
1862
|
-
edited: z.ZodOptional<z.
|
|
1788
|
+
edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
1863
1789
|
paymentAmount: z.ZodNumber;
|
|
1864
1790
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
1865
1791
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -1871,16 +1797,16 @@ declare const zTReg: z.ZodObject<{
|
|
|
1871
1797
|
email: string;
|
|
1872
1798
|
tickets: {
|
|
1873
1799
|
amount: number;
|
|
1874
|
-
ticket:
|
|
1800
|
+
ticket: Types.ObjectId;
|
|
1875
1801
|
}[];
|
|
1876
1802
|
agaId: string;
|
|
1877
|
-
tournamentId:
|
|
1803
|
+
tournamentId: Types.ObjectId;
|
|
1878
1804
|
phone?: string | undefined;
|
|
1879
1805
|
address?: string | undefined;
|
|
1880
1806
|
notes?: string | undefined;
|
|
1881
1807
|
donation?: number | undefined;
|
|
1882
1808
|
createMethod?: string | undefined;
|
|
1883
|
-
edited?:
|
|
1809
|
+
edited?: Types.ObjectId | undefined;
|
|
1884
1810
|
paymentReceived?: boolean | undefined;
|
|
1885
1811
|
expireAt?: Date | undefined;
|
|
1886
1812
|
}, {
|
|
@@ -1891,16 +1817,16 @@ declare const zTReg: z.ZodObject<{
|
|
|
1891
1817
|
email: string;
|
|
1892
1818
|
tickets: {
|
|
1893
1819
|
amount: number;
|
|
1894
|
-
ticket:
|
|
1820
|
+
ticket: Types.ObjectId;
|
|
1895
1821
|
}[];
|
|
1896
1822
|
agaId: string;
|
|
1897
|
-
tournamentId:
|
|
1823
|
+
tournamentId: Types.ObjectId;
|
|
1898
1824
|
phone?: string | undefined;
|
|
1899
1825
|
address?: string | undefined;
|
|
1900
1826
|
notes?: string | undefined;
|
|
1901
1827
|
donation?: number | undefined;
|
|
1902
1828
|
createMethod?: string | undefined;
|
|
1903
|
-
edited?:
|
|
1829
|
+
edited?: Types.ObjectId | undefined;
|
|
1904
1830
|
paymentReceived?: boolean | undefined;
|
|
1905
1831
|
expireAt?: Date | undefined;
|
|
1906
1832
|
}>;
|
|
@@ -1916,21 +1842,21 @@ declare const zMTReg: z.ZodObject<{
|
|
|
1916
1842
|
address: z.ZodOptional<z.ZodString>;
|
|
1917
1843
|
notes: z.ZodOptional<z.ZodString>;
|
|
1918
1844
|
tickets: z.ZodArray<z.ZodObject<{
|
|
1919
|
-
ticket: z.
|
|
1845
|
+
ticket: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1920
1846
|
amount: z.ZodNumber;
|
|
1921
1847
|
}, "strip", z.ZodTypeAny, {
|
|
1922
1848
|
amount: number;
|
|
1923
|
-
ticket:
|
|
1849
|
+
ticket: Types.ObjectId;
|
|
1924
1850
|
}, {
|
|
1925
1851
|
amount: number;
|
|
1926
|
-
ticket:
|
|
1852
|
+
ticket: Types.ObjectId;
|
|
1927
1853
|
}>, "many">;
|
|
1928
1854
|
agaId: z.ZodString;
|
|
1929
|
-
tournamentId: z.
|
|
1855
|
+
tournamentId: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1930
1856
|
donation: z.ZodOptional<z.ZodNumber>;
|
|
1931
1857
|
createMethod: z.ZodOptional<z.ZodString>;
|
|
1932
|
-
edited: z.ZodOptional<z.
|
|
1933
|
-
_id: z.
|
|
1858
|
+
edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
1859
|
+
_id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1934
1860
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1935
1861
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1936
1862
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -1939,13 +1865,13 @@ declare const zMTReg: z.ZodObject<{
|
|
|
1939
1865
|
lastName: string;
|
|
1940
1866
|
rank: string;
|
|
1941
1867
|
email: string;
|
|
1942
|
-
_id:
|
|
1868
|
+
_id: Types.ObjectId;
|
|
1943
1869
|
tickets: {
|
|
1944
1870
|
amount: number;
|
|
1945
|
-
ticket:
|
|
1871
|
+
ticket: Types.ObjectId;
|
|
1946
1872
|
}[];
|
|
1947
1873
|
agaId: string;
|
|
1948
|
-
tournamentId:
|
|
1874
|
+
tournamentId: Types.ObjectId;
|
|
1949
1875
|
paymentReceived?: boolean | undefined;
|
|
1950
1876
|
expireAt?: Date | undefined;
|
|
1951
1877
|
phone?: string | undefined;
|
|
@@ -1953,7 +1879,7 @@ declare const zMTReg: z.ZodObject<{
|
|
|
1953
1879
|
notes?: string | undefined;
|
|
1954
1880
|
donation?: number | undefined;
|
|
1955
1881
|
createMethod?: string | undefined;
|
|
1956
|
-
edited?:
|
|
1882
|
+
edited?: Types.ObjectId | undefined;
|
|
1957
1883
|
createdAt?: Date | undefined;
|
|
1958
1884
|
updatedAt?: Date | undefined;
|
|
1959
1885
|
}, {
|
|
@@ -1962,13 +1888,13 @@ declare const zMTReg: z.ZodObject<{
|
|
|
1962
1888
|
lastName: string;
|
|
1963
1889
|
rank: string;
|
|
1964
1890
|
email: string;
|
|
1965
|
-
_id:
|
|
1891
|
+
_id: Types.ObjectId;
|
|
1966
1892
|
tickets: {
|
|
1967
1893
|
amount: number;
|
|
1968
|
-
ticket:
|
|
1894
|
+
ticket: Types.ObjectId;
|
|
1969
1895
|
}[];
|
|
1970
1896
|
agaId: string;
|
|
1971
|
-
tournamentId:
|
|
1897
|
+
tournamentId: Types.ObjectId;
|
|
1972
1898
|
paymentReceived?: boolean | undefined;
|
|
1973
1899
|
expireAt?: Date | undefined;
|
|
1974
1900
|
phone?: string | undefined;
|
|
@@ -1976,7 +1902,7 @@ declare const zMTReg: z.ZodObject<{
|
|
|
1976
1902
|
notes?: string | undefined;
|
|
1977
1903
|
donation?: number | undefined;
|
|
1978
1904
|
createMethod?: string | undefined;
|
|
1979
|
-
edited?:
|
|
1905
|
+
edited?: Types.ObjectId | undefined;
|
|
1980
1906
|
createdAt?: Date | undefined;
|
|
1981
1907
|
updatedAt?: Date | undefined;
|
|
1982
1908
|
}>;
|
|
@@ -1984,20 +1910,17 @@ type TReg = z.infer<typeof zTReg>;
|
|
|
1984
1910
|
type MTReg = z.infer<typeof zMTReg>;
|
|
1985
1911
|
|
|
1986
1912
|
declare const zTTicketReg: z.ZodObject<{
|
|
1987
|
-
|
|
1988
|
-
* Mongoose ID of the ticket
|
|
1989
|
-
*/
|
|
1990
|
-
ticket: z.ZodString;
|
|
1913
|
+
ticket: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
1991
1914
|
/**
|
|
1992
1915
|
* integer minimum 1, otherwise no ticket is being bought
|
|
1993
1916
|
*/
|
|
1994
1917
|
amount: z.ZodNumber;
|
|
1995
1918
|
}, "strip", z.ZodTypeAny, {
|
|
1996
1919
|
amount: number;
|
|
1997
|
-
ticket:
|
|
1920
|
+
ticket: Types.ObjectId;
|
|
1998
1921
|
}, {
|
|
1999
1922
|
amount: number;
|
|
2000
|
-
ticket:
|
|
1923
|
+
ticket: Types.ObjectId;
|
|
2001
1924
|
}>;
|
|
2002
1925
|
type TTicketReg = z.infer<typeof zTTicketReg>;
|
|
2003
1926
|
|
|
@@ -2038,11 +1961,11 @@ declare const zMTTicket: z.ZodObject<{
|
|
|
2038
1961
|
description: z.ZodOptional<z.ZodString>;
|
|
2039
1962
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2040
1963
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2041
|
-
_id: z.
|
|
1964
|
+
_id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
|
|
2042
1965
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2043
1966
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2044
1967
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2045
|
-
_id:
|
|
1968
|
+
_id: mongoose.Types.ObjectId;
|
|
2046
1969
|
price: number;
|
|
2047
1970
|
name: string;
|
|
2048
1971
|
description?: string | undefined;
|
|
@@ -2051,7 +1974,7 @@ declare const zMTTicket: z.ZodObject<{
|
|
|
2051
1974
|
createdAt?: Date | undefined;
|
|
2052
1975
|
updatedAt?: Date | undefined;
|
|
2053
1976
|
}, {
|
|
2054
|
-
_id:
|
|
1977
|
+
_id: mongoose.Types.ObjectId;
|
|
2055
1978
|
price: number;
|
|
2056
1979
|
name: string;
|
|
2057
1980
|
description?: string | undefined;
|
|
@@ -2180,11 +2103,11 @@ declare const zMUser: z.ZodObject<{
|
|
|
2180
2103
|
country: z.ZodOptional<z.ZodString>;
|
|
2181
2104
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2182
2105
|
birthDate: z.ZodOptional<z.ZodString>;
|
|
2183
|
-
_id: z.
|
|
2106
|
+
_id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
2184
2107
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2185
2108
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2186
2109
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2187
|
-
_id:
|
|
2110
|
+
_id: Types.ObjectId;
|
|
2188
2111
|
name: string;
|
|
2189
2112
|
email?: string | undefined;
|
|
2190
2113
|
address?: string | undefined;
|
|
@@ -2201,7 +2124,7 @@ declare const zMUser: z.ZodObject<{
|
|
|
2201
2124
|
createdAt?: Date | undefined;
|
|
2202
2125
|
updatedAt?: Date | undefined;
|
|
2203
2126
|
}, {
|
|
2204
|
-
_id:
|
|
2127
|
+
_id: Types.ObjectId;
|
|
2205
2128
|
name: string;
|
|
2206
2129
|
email?: string | undefined;
|
|
2207
2130
|
address?: string | undefined;
|
|
@@ -2241,7 +2164,7 @@ declare const zStudent: z.ZodObject<{
|
|
|
2241
2164
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2242
2165
|
birthDate: z.ZodOptional<z.ZodString>;
|
|
2243
2166
|
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2244
|
-
guardian: z.ZodOptional<z.
|
|
2167
|
+
guardian: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2245
2168
|
}, "strip", z.ZodTypeAny, {
|
|
2246
2169
|
rank: GoRank;
|
|
2247
2170
|
name: string;
|
|
@@ -2257,7 +2180,7 @@ declare const zStudent: z.ZodObject<{
|
|
|
2257
2180
|
country?: string | undefined;
|
|
2258
2181
|
phoneNumber?: string | undefined;
|
|
2259
2182
|
birthDate?: string | undefined;
|
|
2260
|
-
guardian?:
|
|
2183
|
+
guardian?: Types.ObjectId | undefined;
|
|
2261
2184
|
}, {
|
|
2262
2185
|
rank: GoRank;
|
|
2263
2186
|
name: string;
|
|
@@ -2273,7 +2196,7 @@ declare const zStudent: z.ZodObject<{
|
|
|
2273
2196
|
country?: string | undefined;
|
|
2274
2197
|
phoneNumber?: string | undefined;
|
|
2275
2198
|
birthDate?: string | undefined;
|
|
2276
|
-
guardian?:
|
|
2199
|
+
guardian?: Types.ObjectId | undefined;
|
|
2277
2200
|
}>;
|
|
2278
2201
|
declare const zMStudent: z.ZodObject<{
|
|
2279
2202
|
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
@@ -2298,13 +2221,13 @@ declare const zMStudent: z.ZodObject<{
|
|
|
2298
2221
|
country: z.ZodOptional<z.ZodString>;
|
|
2299
2222
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2300
2223
|
birthDate: z.ZodOptional<z.ZodString>;
|
|
2301
|
-
guardian: z.ZodOptional<z.
|
|
2302
|
-
_id: z.
|
|
2224
|
+
guardian: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2225
|
+
_id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
2303
2226
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2304
2227
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2305
2228
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2306
2229
|
rank: GoRank;
|
|
2307
|
-
_id:
|
|
2230
|
+
_id: Types.ObjectId;
|
|
2308
2231
|
name: string;
|
|
2309
2232
|
email?: string | undefined;
|
|
2310
2233
|
address?: string | undefined;
|
|
@@ -2318,12 +2241,12 @@ declare const zMStudent: z.ZodObject<{
|
|
|
2318
2241
|
country?: string | undefined;
|
|
2319
2242
|
phoneNumber?: string | undefined;
|
|
2320
2243
|
birthDate?: string | undefined;
|
|
2321
|
-
guardian?:
|
|
2244
|
+
guardian?: Types.ObjectId | undefined;
|
|
2322
2245
|
createdAt?: Date | undefined;
|
|
2323
2246
|
updatedAt?: Date | undefined;
|
|
2324
2247
|
}, {
|
|
2325
2248
|
rank: GoRank;
|
|
2326
|
-
_id:
|
|
2249
|
+
_id: Types.ObjectId;
|
|
2327
2250
|
name: string;
|
|
2328
2251
|
email?: string | undefined;
|
|
2329
2252
|
address?: string | undefined;
|
|
@@ -2337,7 +2260,7 @@ declare const zMStudent: z.ZodObject<{
|
|
|
2337
2260
|
country?: string | undefined;
|
|
2338
2261
|
phoneNumber?: string | undefined;
|
|
2339
2262
|
birthDate?: string | undefined;
|
|
2340
|
-
guardian?:
|
|
2263
|
+
guardian?: Types.ObjectId | undefined;
|
|
2341
2264
|
createdAt?: Date | undefined;
|
|
2342
2265
|
updatedAt?: Date | undefined;
|
|
2343
2266
|
}>;
|
|
@@ -2434,12 +2357,12 @@ declare const zMTeacher: z.ZodObject<{
|
|
|
2434
2357
|
birthDate: z.ZodOptional<z.ZodString>;
|
|
2435
2358
|
isInactive: z.ZodOptional<z.ZodBoolean>;
|
|
2436
2359
|
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
2437
|
-
_id: z.
|
|
2360
|
+
_id: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
|
|
2438
2361
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2439
2362
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2440
2363
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2441
2364
|
rank: GoRank;
|
|
2442
|
-
_id:
|
|
2365
|
+
_id: Types.ObjectId;
|
|
2443
2366
|
name: string;
|
|
2444
2367
|
email?: string | undefined;
|
|
2445
2368
|
address?: string | undefined;
|
|
@@ -2461,7 +2384,7 @@ declare const zMTeacher: z.ZodObject<{
|
|
|
2461
2384
|
updatedAt?: Date | undefined;
|
|
2462
2385
|
}, {
|
|
2463
2386
|
rank: GoRank;
|
|
2464
|
-
_id:
|
|
2387
|
+
_id: Types.ObjectId;
|
|
2465
2388
|
name: string;
|
|
2466
2389
|
email?: string | undefined;
|
|
2467
2390
|
address?: string | undefined;
|