@nyig/models 0.2.26 → 0.2.29
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/README.md +1 -1
- package/index.d.mts +422 -726
- package/index.d.ts +422 -726
- package/index.js +107 -138
- package/index.mjs +91 -118
- package/package.json +1 -2
package/index.d.mts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import * as mongoose from 'mongoose';
|
|
3
|
-
import { Types } from 'mongoose';
|
|
4
2
|
|
|
5
3
|
declare const zBPaymentInfo: z.ZodObject<{
|
|
6
4
|
/**
|
|
@@ -29,7 +27,7 @@ declare const zBPaymentInfo: z.ZodObject<{
|
|
|
29
27
|
type BPaymentInfo = z.infer<typeof zBPaymentInfo>;
|
|
30
28
|
|
|
31
29
|
declare const zBUserInfo: z.ZodObject<{
|
|
32
|
-
userId: z.ZodOptional<z.
|
|
30
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
33
31
|
firstName: z.ZodString;
|
|
34
32
|
lastName: z.ZodString;
|
|
35
33
|
rank: z.ZodString;
|
|
@@ -42,7 +40,7 @@ declare const zBUserInfo: z.ZodObject<{
|
|
|
42
40
|
lastName: string;
|
|
43
41
|
rank: string;
|
|
44
42
|
email: string;
|
|
45
|
-
userId?: string |
|
|
43
|
+
userId?: string | undefined;
|
|
46
44
|
phone?: string | undefined;
|
|
47
45
|
address?: string | undefined;
|
|
48
46
|
notes?: string | undefined;
|
|
@@ -51,7 +49,7 @@ declare const zBUserInfo: z.ZodObject<{
|
|
|
51
49
|
lastName: string;
|
|
52
50
|
rank: string;
|
|
53
51
|
email: string;
|
|
54
|
-
userId?: string |
|
|
52
|
+
userId?: string | undefined;
|
|
55
53
|
phone?: string | undefined;
|
|
56
54
|
address?: string | undefined;
|
|
57
55
|
notes?: string | undefined;
|
|
@@ -77,8 +75,8 @@ declare enum CampOption {
|
|
|
77
75
|
FULL = "full"
|
|
78
76
|
}
|
|
79
77
|
|
|
80
|
-
declare const
|
|
81
|
-
student: z.
|
|
78
|
+
declare const zBAttendance: z.ZodObject<{
|
|
79
|
+
student: z.ZodString;
|
|
82
80
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
83
81
|
tuition: z.ZodObject<{
|
|
84
82
|
primary: z.ZodNumber;
|
|
@@ -96,7 +94,7 @@ declare const zAttendance: z.ZodObject<{
|
|
|
96
94
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
97
95
|
campOption: z.ZodNativeEnum<typeof CampOption>;
|
|
98
96
|
}, "strip", z.ZodTypeAny, {
|
|
99
|
-
student:
|
|
97
|
+
student: string;
|
|
100
98
|
states: AttendState[];
|
|
101
99
|
tuition: {
|
|
102
100
|
primary: number;
|
|
@@ -106,7 +104,7 @@ declare const zAttendance: z.ZodObject<{
|
|
|
106
104
|
campOption: CampOption;
|
|
107
105
|
paid?: boolean | undefined;
|
|
108
106
|
}, {
|
|
109
|
-
student:
|
|
107
|
+
student: string;
|
|
110
108
|
states: AttendState[];
|
|
111
109
|
tuition: {
|
|
112
110
|
primary: number;
|
|
@@ -116,8 +114,8 @@ declare const zAttendance: z.ZodObject<{
|
|
|
116
114
|
campOption: CampOption;
|
|
117
115
|
paid?: boolean | undefined;
|
|
118
116
|
}>;
|
|
119
|
-
declare const
|
|
120
|
-
student: z.
|
|
117
|
+
declare const zAttendance: z.ZodObject<{
|
|
118
|
+
student: z.ZodString;
|
|
121
119
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
122
120
|
tuition: z.ZodObject<{
|
|
123
121
|
primary: z.ZodNumber;
|
|
@@ -134,12 +132,14 @@ declare const zMAttendance: z.ZodObject<{
|
|
|
134
132
|
}>;
|
|
135
133
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
136
134
|
campOption: z.ZodNativeEnum<typeof CampOption>;
|
|
137
|
-
_id: z.ZodString
|
|
135
|
+
_id: z.ZodString;
|
|
136
|
+
editedBy: z.ZodString;
|
|
138
137
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
139
138
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
140
139
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
141
|
-
_id:
|
|
142
|
-
|
|
140
|
+
_id: string;
|
|
141
|
+
editedBy: string;
|
|
142
|
+
student: string;
|
|
143
143
|
states: AttendState[];
|
|
144
144
|
tuition: {
|
|
145
145
|
primary: number;
|
|
@@ -151,8 +151,9 @@ declare const zMAttendance: z.ZodObject<{
|
|
|
151
151
|
createdAt?: Date | undefined;
|
|
152
152
|
updatedAt?: Date | undefined;
|
|
153
153
|
}, {
|
|
154
|
-
_id:
|
|
155
|
-
|
|
154
|
+
_id: string;
|
|
155
|
+
editedBy: string;
|
|
156
|
+
student: string;
|
|
156
157
|
states: AttendState[];
|
|
157
158
|
tuition: {
|
|
158
159
|
primary: number;
|
|
@@ -164,13 +165,13 @@ declare const zMAttendance: z.ZodObject<{
|
|
|
164
165
|
createdAt?: Date | undefined;
|
|
165
166
|
updatedAt?: Date | undefined;
|
|
166
167
|
}>;
|
|
168
|
+
type BAttendance = z.infer<typeof zBAttendance>;
|
|
167
169
|
type Attendance = z.infer<typeof zAttendance>;
|
|
168
|
-
type MAttendance = z.infer<typeof zMAttendance>;
|
|
169
170
|
|
|
170
|
-
declare const
|
|
171
|
-
course: z.
|
|
172
|
-
teacher: z.
|
|
173
|
-
semester: z.
|
|
171
|
+
declare const zBCampTracker: z.ZodObject<{
|
|
172
|
+
course: z.ZodString;
|
|
173
|
+
teacher: z.ZodString;
|
|
174
|
+
semester: z.ZodString;
|
|
174
175
|
/**
|
|
175
176
|
* occurrences are tracked by week for camps
|
|
176
177
|
*/
|
|
@@ -181,58 +182,61 @@ declare const zCampTracker: z.ZodObject<{
|
|
|
181
182
|
attendances: z.ZodArray<z.ZodString, "many">;
|
|
182
183
|
notes: z.ZodOptional<z.ZodString>;
|
|
183
184
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
course:
|
|
185
|
-
teacher:
|
|
186
|
-
semester:
|
|
185
|
+
course: string;
|
|
186
|
+
teacher: string;
|
|
187
|
+
semester: string;
|
|
187
188
|
occurrences: string[];
|
|
188
189
|
attendances: string[];
|
|
189
190
|
notes?: string | undefined;
|
|
190
191
|
}, {
|
|
191
|
-
course:
|
|
192
|
-
teacher:
|
|
193
|
-
semester:
|
|
192
|
+
course: string;
|
|
193
|
+
teacher: string;
|
|
194
|
+
semester: string;
|
|
194
195
|
occurrences: string[];
|
|
195
196
|
attendances: string[];
|
|
196
197
|
notes?: string | undefined;
|
|
197
198
|
}>;
|
|
198
|
-
declare const
|
|
199
|
+
declare const zCampTracker: z.ZodObject<{
|
|
199
200
|
notes: z.ZodOptional<z.ZodString>;
|
|
200
|
-
course: z.
|
|
201
|
-
teacher: z.
|
|
202
|
-
semester: z.
|
|
201
|
+
course: z.ZodString;
|
|
202
|
+
teacher: z.ZodString;
|
|
203
|
+
semester: z.ZodString;
|
|
203
204
|
occurrences: z.ZodArray<z.ZodString, "many">;
|
|
204
205
|
attendances: z.ZodArray<z.ZodString, "many">;
|
|
205
|
-
_id: z.ZodString
|
|
206
|
+
_id: z.ZodString;
|
|
207
|
+
editedBy: z.ZodString;
|
|
206
208
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
207
209
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
208
210
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
209
|
-
_id:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
_id: string;
|
|
212
|
+
editedBy: string;
|
|
213
|
+
course: string;
|
|
214
|
+
teacher: string;
|
|
215
|
+
semester: string;
|
|
213
216
|
occurrences: string[];
|
|
214
217
|
attendances: string[];
|
|
215
218
|
notes?: string | undefined;
|
|
216
219
|
createdAt?: Date | undefined;
|
|
217
220
|
updatedAt?: Date | undefined;
|
|
218
221
|
}, {
|
|
219
|
-
_id:
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
222
|
+
_id: string;
|
|
223
|
+
editedBy: string;
|
|
224
|
+
course: string;
|
|
225
|
+
teacher: string;
|
|
226
|
+
semester: string;
|
|
223
227
|
occurrences: string[];
|
|
224
228
|
attendances: string[];
|
|
225
229
|
notes?: string | undefined;
|
|
226
230
|
createdAt?: Date | undefined;
|
|
227
231
|
updatedAt?: Date | undefined;
|
|
228
232
|
}>;
|
|
233
|
+
type BCampTracker = z.infer<typeof zBCampTracker>;
|
|
229
234
|
type CampTracker = z.infer<typeof zCampTracker>;
|
|
230
|
-
type MCampTracker = z.infer<typeof zMCampTracker>;
|
|
231
235
|
|
|
232
|
-
declare const
|
|
233
|
-
course: z.
|
|
234
|
-
teacher: z.
|
|
235
|
-
student: z.
|
|
236
|
+
declare const zBClassTracker: z.ZodObject<{
|
|
237
|
+
course: z.ZodString;
|
|
238
|
+
teacher: z.ZodString;
|
|
239
|
+
student: z.ZodString;
|
|
236
240
|
classTimes: z.ZodArray<z.ZodDate, "many">;
|
|
237
241
|
completedList: z.ZodArray<z.ZodBoolean, "many">;
|
|
238
242
|
/**
|
|
@@ -256,9 +260,9 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
256
260
|
paused: z.ZodOptional<z.ZodBoolean>;
|
|
257
261
|
notes: z.ZodOptional<z.ZodString>;
|
|
258
262
|
}, "strip", z.ZodTypeAny, {
|
|
259
|
-
student:
|
|
260
|
-
course:
|
|
261
|
-
teacher:
|
|
263
|
+
student: string;
|
|
264
|
+
course: string;
|
|
265
|
+
teacher: string;
|
|
262
266
|
classTimes: Date[];
|
|
263
267
|
completedList: boolean[];
|
|
264
268
|
completed?: boolean | undefined;
|
|
@@ -271,9 +275,9 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
271
275
|
paused?: boolean | undefined;
|
|
272
276
|
notes?: string | undefined;
|
|
273
277
|
}, {
|
|
274
|
-
student:
|
|
275
|
-
course:
|
|
276
|
-
teacher:
|
|
278
|
+
student: string;
|
|
279
|
+
course: string;
|
|
280
|
+
teacher: string;
|
|
277
281
|
classTimes: Date[];
|
|
278
282
|
completedList: boolean[];
|
|
279
283
|
completed?: boolean | undefined;
|
|
@@ -286,9 +290,9 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
286
290
|
paused?: boolean | undefined;
|
|
287
291
|
notes?: string | undefined;
|
|
288
292
|
}>;
|
|
289
|
-
declare const
|
|
293
|
+
declare const zClassTracker: z.ZodObject<{
|
|
290
294
|
notes: z.ZodOptional<z.ZodString>;
|
|
291
|
-
student: z.
|
|
295
|
+
student: z.ZodString;
|
|
292
296
|
tuition: z.ZodOptional<z.ZodObject<{
|
|
293
297
|
primary: z.ZodNumber;
|
|
294
298
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -303,20 +307,22 @@ declare const zMClassTracker: z.ZodObject<{
|
|
|
303
307
|
shipping?: boolean | undefined;
|
|
304
308
|
}>>;
|
|
305
309
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
-
course: z.
|
|
307
|
-
teacher: z.
|
|
310
|
+
course: z.ZodString;
|
|
311
|
+
teacher: z.ZodString;
|
|
308
312
|
classTimes: z.ZodArray<z.ZodDate, "many">;
|
|
309
313
|
completedList: z.ZodArray<z.ZodBoolean, "many">;
|
|
310
314
|
completed: z.ZodOptional<z.ZodBoolean>;
|
|
311
315
|
paused: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
-
_id: z.ZodString
|
|
316
|
+
_id: z.ZodString;
|
|
317
|
+
editedBy: z.ZodString;
|
|
313
318
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
314
319
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
315
320
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
316
|
-
_id:
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
321
|
+
_id: string;
|
|
322
|
+
editedBy: string;
|
|
323
|
+
student: string;
|
|
324
|
+
course: string;
|
|
325
|
+
teacher: string;
|
|
320
326
|
classTimes: Date[];
|
|
321
327
|
completedList: boolean[];
|
|
322
328
|
notes?: string | undefined;
|
|
@@ -331,10 +337,11 @@ declare const zMClassTracker: z.ZodObject<{
|
|
|
331
337
|
createdAt?: Date | undefined;
|
|
332
338
|
updatedAt?: Date | undefined;
|
|
333
339
|
}, {
|
|
334
|
-
_id:
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
340
|
+
_id: string;
|
|
341
|
+
editedBy: string;
|
|
342
|
+
student: string;
|
|
343
|
+
course: string;
|
|
344
|
+
teacher: string;
|
|
338
345
|
classTimes: Date[];
|
|
339
346
|
completedList: boolean[];
|
|
340
347
|
notes?: string | undefined;
|
|
@@ -349,8 +356,8 @@ declare const zMClassTracker: z.ZodObject<{
|
|
|
349
356
|
createdAt?: Date | undefined;
|
|
350
357
|
updatedAt?: Date | undefined;
|
|
351
358
|
}>;
|
|
359
|
+
type BClassTracker = z.infer<typeof zBClassTracker>;
|
|
352
360
|
type ClassTracker = z.infer<typeof zClassTracker>;
|
|
353
|
-
type MClassTracker = z.infer<typeof zMClassTracker>;
|
|
354
361
|
|
|
355
362
|
declare enum AgeGroup {
|
|
356
363
|
ADULT = "Adult",
|
|
@@ -370,7 +377,7 @@ declare enum NYIGSchool {
|
|
|
370
377
|
ONLINE = "Online"
|
|
371
378
|
}
|
|
372
379
|
|
|
373
|
-
declare const
|
|
380
|
+
declare const zBCourse: z.ZodObject<{
|
|
374
381
|
name: z.ZodString;
|
|
375
382
|
category: z.ZodNativeEnum<typeof CourseCategory>;
|
|
376
383
|
/**
|
|
@@ -419,7 +426,7 @@ declare const zCourse: z.ZodObject<{
|
|
|
419
426
|
halfCampTuition?: number | undefined;
|
|
420
427
|
fullCampTuition?: number | undefined;
|
|
421
428
|
}>;
|
|
422
|
-
declare const
|
|
429
|
+
declare const zCourse: z.ZodObject<{
|
|
423
430
|
price: z.ZodNumber;
|
|
424
431
|
name: z.ZodString;
|
|
425
432
|
category: z.ZodNativeEnum<typeof CourseCategory>;
|
|
@@ -429,11 +436,13 @@ declare const zMCourse: z.ZodObject<{
|
|
|
429
436
|
recLevel: z.ZodString;
|
|
430
437
|
halfCampTuition: z.ZodOptional<z.ZodNumber>;
|
|
431
438
|
fullCampTuition: z.ZodOptional<z.ZodNumber>;
|
|
432
|
-
_id: z.ZodString
|
|
439
|
+
_id: z.ZodString;
|
|
440
|
+
editedBy: z.ZodString;
|
|
433
441
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
434
442
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
435
443
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
436
|
-
_id:
|
|
444
|
+
_id: string;
|
|
445
|
+
editedBy: string;
|
|
437
446
|
price: number;
|
|
438
447
|
name: string;
|
|
439
448
|
category: CourseCategory;
|
|
@@ -446,7 +455,8 @@ declare const zMCourse: z.ZodObject<{
|
|
|
446
455
|
createdAt?: Date | undefined;
|
|
447
456
|
updatedAt?: Date | undefined;
|
|
448
457
|
}, {
|
|
449
|
-
_id:
|
|
458
|
+
_id: string;
|
|
459
|
+
editedBy: string;
|
|
450
460
|
price: number;
|
|
451
461
|
name: string;
|
|
452
462
|
category: CourseCategory;
|
|
@@ -459,13 +469,13 @@ declare const zMCourse: z.ZodObject<{
|
|
|
459
469
|
createdAt?: Date | undefined;
|
|
460
470
|
updatedAt?: Date | undefined;
|
|
461
471
|
}>;
|
|
472
|
+
type BCourse = z.infer<typeof zBCourse>;
|
|
462
473
|
type Course = z.infer<typeof zCourse>;
|
|
463
|
-
type MCourse = z.infer<typeof zMCourse>;
|
|
464
474
|
|
|
465
|
-
declare const
|
|
466
|
-
course: z.
|
|
467
|
-
teacher: z.
|
|
468
|
-
semester: z.
|
|
475
|
+
declare const zBGroupTracker: z.ZodObject<{
|
|
476
|
+
course: z.ZodString;
|
|
477
|
+
teacher: z.ZodString;
|
|
478
|
+
semester: z.ZodString;
|
|
469
479
|
scheduleData: z.ZodObject<{
|
|
470
480
|
startTime: z.ZodString;
|
|
471
481
|
dayOfWeek: z.ZodNumber;
|
|
@@ -483,7 +493,7 @@ declare const zGroupTracker: z.ZodObject<{
|
|
|
483
493
|
/**
|
|
484
494
|
* attendances are tracked by week for Groups
|
|
485
495
|
*/
|
|
486
|
-
attendances: z.ZodArray<z.
|
|
496
|
+
attendances: z.ZodArray<z.ZodString, "many">;
|
|
487
497
|
/**
|
|
488
498
|
* public-facing ID of the course instance, e.g., 101
|
|
489
499
|
*/
|
|
@@ -498,11 +508,11 @@ declare const zGroupTracker: z.ZodObject<{
|
|
|
498
508
|
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
499
509
|
notes: z.ZodOptional<z.ZodString>;
|
|
500
510
|
}, "strip", z.ZodTypeAny, {
|
|
501
|
-
course:
|
|
502
|
-
teacher:
|
|
503
|
-
semester:
|
|
511
|
+
course: string;
|
|
512
|
+
teacher: string;
|
|
513
|
+
semester: string;
|
|
504
514
|
occurrences: Date[];
|
|
505
|
-
attendances:
|
|
515
|
+
attendances: string[];
|
|
506
516
|
scheduleData: {
|
|
507
517
|
startTime: string;
|
|
508
518
|
dayOfWeek: number;
|
|
@@ -512,11 +522,11 @@ declare const zGroupTracker: z.ZodObject<{
|
|
|
512
522
|
isNonPublic?: boolean | undefined;
|
|
513
523
|
notes?: string | undefined;
|
|
514
524
|
}, {
|
|
515
|
-
course:
|
|
516
|
-
teacher:
|
|
517
|
-
semester:
|
|
525
|
+
course: string;
|
|
526
|
+
teacher: string;
|
|
527
|
+
semester: string;
|
|
518
528
|
occurrences: Date[];
|
|
519
|
-
attendances:
|
|
529
|
+
attendances: string[];
|
|
520
530
|
scheduleData: {
|
|
521
531
|
startTime: string;
|
|
522
532
|
dayOfWeek: number;
|
|
@@ -526,13 +536,13 @@ declare const zGroupTracker: z.ZodObject<{
|
|
|
526
536
|
isNonPublic?: boolean | undefined;
|
|
527
537
|
notes?: string | undefined;
|
|
528
538
|
}>;
|
|
529
|
-
declare const
|
|
539
|
+
declare const zGroupTracker: z.ZodObject<{
|
|
530
540
|
notes: z.ZodOptional<z.ZodString>;
|
|
531
|
-
course: z.
|
|
532
|
-
teacher: z.
|
|
533
|
-
semester: z.
|
|
541
|
+
course: z.ZodString;
|
|
542
|
+
teacher: z.ZodString;
|
|
543
|
+
semester: z.ZodString;
|
|
534
544
|
occurrences: z.ZodArray<z.ZodDate, "many">;
|
|
535
|
-
attendances: z.ZodArray<z.
|
|
545
|
+
attendances: z.ZodArray<z.ZodString, "many">;
|
|
536
546
|
scheduleData: z.ZodObject<{
|
|
537
547
|
startTime: z.ZodString;
|
|
538
548
|
dayOfWeek: z.ZodNumber;
|
|
@@ -546,16 +556,18 @@ declare const zMGroupTracker: z.ZodObject<{
|
|
|
546
556
|
courseId: z.ZodOptional<z.ZodString>;
|
|
547
557
|
ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
|
|
548
558
|
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
549
|
-
_id: z.ZodString
|
|
559
|
+
_id: z.ZodString;
|
|
560
|
+
editedBy: z.ZodString;
|
|
550
561
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
551
562
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
552
563
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
553
|
-
_id:
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
564
|
+
_id: string;
|
|
565
|
+
editedBy: string;
|
|
566
|
+
course: string;
|
|
567
|
+
teacher: string;
|
|
568
|
+
semester: string;
|
|
557
569
|
occurrences: Date[];
|
|
558
|
-
attendances:
|
|
570
|
+
attendances: string[];
|
|
559
571
|
scheduleData: {
|
|
560
572
|
startTime: string;
|
|
561
573
|
dayOfWeek: number;
|
|
@@ -567,12 +579,13 @@ declare const zMGroupTracker: z.ZodObject<{
|
|
|
567
579
|
createdAt?: Date | undefined;
|
|
568
580
|
updatedAt?: Date | undefined;
|
|
569
581
|
}, {
|
|
570
|
-
_id:
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
582
|
+
_id: string;
|
|
583
|
+
editedBy: string;
|
|
584
|
+
course: string;
|
|
585
|
+
teacher: string;
|
|
586
|
+
semester: string;
|
|
574
587
|
occurrences: Date[];
|
|
575
|
-
attendances:
|
|
588
|
+
attendances: string[];
|
|
576
589
|
scheduleData: {
|
|
577
590
|
startTime: string;
|
|
578
591
|
dayOfWeek: number;
|
|
@@ -584,8 +597,8 @@ declare const zMGroupTracker: z.ZodObject<{
|
|
|
584
597
|
createdAt?: Date | undefined;
|
|
585
598
|
updatedAt?: Date | undefined;
|
|
586
599
|
}>;
|
|
600
|
+
type BGroupTracker = z.infer<typeof zBGroupTracker>;
|
|
587
601
|
type GroupTracker = z.infer<typeof zGroupTracker>;
|
|
588
|
-
type MGroupTracker = z.infer<typeof zMGroupTracker>;
|
|
589
602
|
|
|
590
603
|
declare const zScheduleData: z.ZodObject<{
|
|
591
604
|
startTime: z.ZodString;
|
|
@@ -599,8 +612,8 @@ declare const zScheduleData: z.ZodObject<{
|
|
|
599
612
|
}>;
|
|
600
613
|
type ScheduleData = z.infer<typeof zScheduleData>;
|
|
601
614
|
|
|
602
|
-
declare const
|
|
603
|
-
userId: z.ZodOptional<z.
|
|
615
|
+
declare const zBCampBooking: z.ZodObject<{
|
|
616
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
604
617
|
firstName: z.ZodString;
|
|
605
618
|
lastName: z.ZodString;
|
|
606
619
|
rank: z.ZodString;
|
|
@@ -625,7 +638,7 @@ declare const zCampBooking: z.ZodObject<{
|
|
|
625
638
|
campOption: CampOption;
|
|
626
639
|
isOnline: boolean;
|
|
627
640
|
classDates: string;
|
|
628
|
-
userId?: string |
|
|
641
|
+
userId?: string | undefined;
|
|
629
642
|
phone?: string | undefined;
|
|
630
643
|
address?: string | undefined;
|
|
631
644
|
notes?: string | undefined;
|
|
@@ -642,7 +655,7 @@ declare const zCampBooking: z.ZodObject<{
|
|
|
642
655
|
campOption: CampOption;
|
|
643
656
|
isOnline: boolean;
|
|
644
657
|
classDates: string;
|
|
645
|
-
userId?: string |
|
|
658
|
+
userId?: string | undefined;
|
|
646
659
|
phone?: string | undefined;
|
|
647
660
|
address?: string | undefined;
|
|
648
661
|
notes?: string | undefined;
|
|
@@ -651,11 +664,11 @@ declare const zCampBooking: z.ZodObject<{
|
|
|
651
664
|
paymentReceived?: boolean | undefined;
|
|
652
665
|
expireAt?: Date | undefined;
|
|
653
666
|
}>;
|
|
654
|
-
declare const
|
|
667
|
+
declare const zCampBooking: z.ZodObject<{
|
|
655
668
|
paymentAmount: z.ZodNumber;
|
|
656
669
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
657
670
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
658
|
-
userId: z.ZodOptional<z.
|
|
671
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
659
672
|
firstName: z.ZodString;
|
|
660
673
|
lastName: z.ZodString;
|
|
661
674
|
rank: z.ZodString;
|
|
@@ -668,7 +681,8 @@ declare const zMCampBooking: z.ZodObject<{
|
|
|
668
681
|
ctId: z.ZodOptional<z.ZodString>;
|
|
669
682
|
isOnline: z.ZodBoolean;
|
|
670
683
|
classDates: z.ZodString;
|
|
671
|
-
_id: z.ZodString
|
|
684
|
+
_id: z.ZodString;
|
|
685
|
+
editedBy: z.ZodString;
|
|
672
686
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
673
687
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
674
688
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -677,13 +691,14 @@ declare const zMCampBooking: z.ZodObject<{
|
|
|
677
691
|
lastName: string;
|
|
678
692
|
rank: string;
|
|
679
693
|
email: string;
|
|
680
|
-
_id:
|
|
694
|
+
_id: string;
|
|
695
|
+
editedBy: string;
|
|
681
696
|
campOption: CampOption;
|
|
682
697
|
isOnline: boolean;
|
|
683
698
|
classDates: string;
|
|
684
699
|
paymentReceived?: boolean | undefined;
|
|
685
700
|
expireAt?: Date | undefined;
|
|
686
|
-
userId?: string |
|
|
701
|
+
userId?: string | undefined;
|
|
687
702
|
phone?: string | undefined;
|
|
688
703
|
address?: string | undefined;
|
|
689
704
|
notes?: string | undefined;
|
|
@@ -697,13 +712,14 @@ declare const zMCampBooking: z.ZodObject<{
|
|
|
697
712
|
lastName: string;
|
|
698
713
|
rank: string;
|
|
699
714
|
email: string;
|
|
700
|
-
_id:
|
|
715
|
+
_id: string;
|
|
716
|
+
editedBy: string;
|
|
701
717
|
campOption: CampOption;
|
|
702
718
|
isOnline: boolean;
|
|
703
719
|
classDates: string;
|
|
704
720
|
paymentReceived?: boolean | undefined;
|
|
705
721
|
expireAt?: Date | undefined;
|
|
706
|
-
userId?: string |
|
|
722
|
+
userId?: string | undefined;
|
|
707
723
|
phone?: string | undefined;
|
|
708
724
|
address?: string | undefined;
|
|
709
725
|
notes?: string | undefined;
|
|
@@ -712,11 +728,11 @@ declare const zMCampBooking: z.ZodObject<{
|
|
|
712
728
|
createdAt?: Date | undefined;
|
|
713
729
|
updatedAt?: Date | undefined;
|
|
714
730
|
}>;
|
|
731
|
+
type BCampBooking = z.infer<typeof zBCampBooking>;
|
|
715
732
|
type CampBooking = z.infer<typeof zCampBooking>;
|
|
716
|
-
type MCampBooking = z.infer<typeof zMCampBooking>;
|
|
717
733
|
|
|
718
|
-
declare const
|
|
719
|
-
userId: z.ZodOptional<z.
|
|
734
|
+
declare const zBGroupBooking: z.ZodObject<{
|
|
735
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
720
736
|
firstName: z.ZodString;
|
|
721
737
|
lastName: z.ZodString;
|
|
722
738
|
rank: z.ZodString;
|
|
@@ -726,7 +742,7 @@ declare const zGroupBooking: z.ZodObject<{
|
|
|
726
742
|
notes: z.ZodOptional<z.ZodString>;
|
|
727
743
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
728
744
|
isOnline: z.ZodBoolean;
|
|
729
|
-
gtId: z.ZodOptional<z.
|
|
745
|
+
gtId: z.ZodOptional<z.ZodString>;
|
|
730
746
|
isTrial: z.ZodOptional<z.ZodBoolean>;
|
|
731
747
|
classDate: z.ZodOptional<z.ZodString>;
|
|
732
748
|
paymentAmount: z.ZodNumber;
|
|
@@ -739,12 +755,12 @@ declare const zGroupBooking: z.ZodObject<{
|
|
|
739
755
|
rank: string;
|
|
740
756
|
email: string;
|
|
741
757
|
isOnline: boolean;
|
|
742
|
-
userId?: string |
|
|
758
|
+
userId?: string | undefined;
|
|
743
759
|
phone?: string | undefined;
|
|
744
760
|
address?: string | undefined;
|
|
745
761
|
notes?: string | undefined;
|
|
746
762
|
shipping?: boolean | undefined;
|
|
747
|
-
gtId?: string |
|
|
763
|
+
gtId?: string | undefined;
|
|
748
764
|
isTrial?: boolean | undefined;
|
|
749
765
|
classDate?: string | undefined;
|
|
750
766
|
paymentReceived?: boolean | undefined;
|
|
@@ -756,22 +772,22 @@ declare const zGroupBooking: z.ZodObject<{
|
|
|
756
772
|
rank: string;
|
|
757
773
|
email: string;
|
|
758
774
|
isOnline: boolean;
|
|
759
|
-
userId?: string |
|
|
775
|
+
userId?: string | undefined;
|
|
760
776
|
phone?: string | undefined;
|
|
761
777
|
address?: string | undefined;
|
|
762
778
|
notes?: string | undefined;
|
|
763
779
|
shipping?: boolean | undefined;
|
|
764
|
-
gtId?: string |
|
|
780
|
+
gtId?: string | undefined;
|
|
765
781
|
isTrial?: boolean | undefined;
|
|
766
782
|
classDate?: string | undefined;
|
|
767
783
|
paymentReceived?: boolean | undefined;
|
|
768
784
|
expireAt?: Date | undefined;
|
|
769
785
|
}>;
|
|
770
|
-
declare const
|
|
786
|
+
declare const zGroupBooking: z.ZodObject<{
|
|
771
787
|
paymentAmount: z.ZodNumber;
|
|
772
788
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
773
789
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
774
|
-
userId: z.ZodOptional<z.
|
|
790
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
775
791
|
firstName: z.ZodString;
|
|
776
792
|
lastName: z.ZodString;
|
|
777
793
|
rank: z.ZodString;
|
|
@@ -781,10 +797,11 @@ declare const zMGroupBooking: z.ZodObject<{
|
|
|
781
797
|
notes: z.ZodOptional<z.ZodString>;
|
|
782
798
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
783
799
|
isOnline: z.ZodBoolean;
|
|
784
|
-
gtId: z.ZodOptional<z.
|
|
800
|
+
gtId: z.ZodOptional<z.ZodString>;
|
|
785
801
|
isTrial: z.ZodOptional<z.ZodBoolean>;
|
|
786
802
|
classDate: z.ZodOptional<z.ZodString>;
|
|
787
|
-
_id: z.ZodString
|
|
803
|
+
_id: z.ZodString;
|
|
804
|
+
editedBy: z.ZodString;
|
|
788
805
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
789
806
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
790
807
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -793,16 +810,17 @@ declare const zMGroupBooking: z.ZodObject<{
|
|
|
793
810
|
lastName: string;
|
|
794
811
|
rank: string;
|
|
795
812
|
email: string;
|
|
796
|
-
_id:
|
|
813
|
+
_id: string;
|
|
814
|
+
editedBy: string;
|
|
797
815
|
isOnline: boolean;
|
|
798
816
|
paymentReceived?: boolean | undefined;
|
|
799
817
|
expireAt?: Date | undefined;
|
|
800
|
-
userId?: string |
|
|
818
|
+
userId?: string | undefined;
|
|
801
819
|
phone?: string | undefined;
|
|
802
820
|
address?: string | undefined;
|
|
803
821
|
notes?: string | undefined;
|
|
804
822
|
shipping?: boolean | undefined;
|
|
805
|
-
gtId?: string |
|
|
823
|
+
gtId?: string | undefined;
|
|
806
824
|
isTrial?: boolean | undefined;
|
|
807
825
|
classDate?: string | undefined;
|
|
808
826
|
createdAt?: Date | undefined;
|
|
@@ -813,26 +831,27 @@ declare const zMGroupBooking: z.ZodObject<{
|
|
|
813
831
|
lastName: string;
|
|
814
832
|
rank: string;
|
|
815
833
|
email: string;
|
|
816
|
-
_id:
|
|
834
|
+
_id: string;
|
|
835
|
+
editedBy: string;
|
|
817
836
|
isOnline: boolean;
|
|
818
837
|
paymentReceived?: boolean | undefined;
|
|
819
838
|
expireAt?: Date | undefined;
|
|
820
|
-
userId?: string |
|
|
839
|
+
userId?: string | undefined;
|
|
821
840
|
phone?: string | undefined;
|
|
822
841
|
address?: string | undefined;
|
|
823
842
|
notes?: string | undefined;
|
|
824
843
|
shipping?: boolean | undefined;
|
|
825
|
-
gtId?: string |
|
|
844
|
+
gtId?: string | undefined;
|
|
826
845
|
isTrial?: boolean | undefined;
|
|
827
846
|
classDate?: string | undefined;
|
|
828
847
|
createdAt?: Date | undefined;
|
|
829
848
|
updatedAt?: Date | undefined;
|
|
830
849
|
}>;
|
|
850
|
+
type BGroupBooking = z.infer<typeof zBGroupBooking>;
|
|
831
851
|
type GroupBooking = z.infer<typeof zGroupBooking>;
|
|
832
|
-
type MGroupBooking = z.infer<typeof zMGroupBooking>;
|
|
833
852
|
|
|
834
|
-
declare const
|
|
835
|
-
userId: z.ZodOptional<z.
|
|
853
|
+
declare const zBPrivateBooking: z.ZodObject<{
|
|
854
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
836
855
|
firstName: z.ZodString;
|
|
837
856
|
lastName: z.ZodString;
|
|
838
857
|
rank: z.ZodString;
|
|
@@ -840,9 +859,9 @@ declare const zPrivateBooking: z.ZodObject<{
|
|
|
840
859
|
phone: z.ZodOptional<z.ZodString>;
|
|
841
860
|
address: z.ZodOptional<z.ZodString>;
|
|
842
861
|
notes: z.ZodOptional<z.ZodString>;
|
|
843
|
-
courseId: z.
|
|
862
|
+
courseId: z.ZodString;
|
|
844
863
|
classDate: z.ZodOptional<z.ZodString>;
|
|
845
|
-
teacherId: z.
|
|
864
|
+
teacherId: z.ZodString;
|
|
846
865
|
paymentAmount: z.ZodNumber;
|
|
847
866
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
848
867
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -852,9 +871,9 @@ declare const zPrivateBooking: z.ZodObject<{
|
|
|
852
871
|
lastName: string;
|
|
853
872
|
rank: string;
|
|
854
873
|
email: string;
|
|
855
|
-
courseId:
|
|
856
|
-
teacherId:
|
|
857
|
-
userId?: string |
|
|
874
|
+
courseId: string;
|
|
875
|
+
teacherId: string;
|
|
876
|
+
userId?: string | undefined;
|
|
858
877
|
phone?: string | undefined;
|
|
859
878
|
address?: string | undefined;
|
|
860
879
|
notes?: string | undefined;
|
|
@@ -867,9 +886,9 @@ declare const zPrivateBooking: z.ZodObject<{
|
|
|
867
886
|
lastName: string;
|
|
868
887
|
rank: string;
|
|
869
888
|
email: string;
|
|
870
|
-
courseId:
|
|
871
|
-
teacherId:
|
|
872
|
-
userId?: string |
|
|
889
|
+
courseId: string;
|
|
890
|
+
teacherId: string;
|
|
891
|
+
userId?: string | undefined;
|
|
873
892
|
phone?: string | undefined;
|
|
874
893
|
address?: string | undefined;
|
|
875
894
|
notes?: string | undefined;
|
|
@@ -877,11 +896,11 @@ declare const zPrivateBooking: z.ZodObject<{
|
|
|
877
896
|
paymentReceived?: boolean | undefined;
|
|
878
897
|
expireAt?: Date | undefined;
|
|
879
898
|
}>;
|
|
880
|
-
declare const
|
|
899
|
+
declare const zPrivateBooking: z.ZodObject<{
|
|
881
900
|
paymentAmount: z.ZodNumber;
|
|
882
901
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
883
902
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
884
|
-
userId: z.ZodOptional<z.
|
|
903
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
885
904
|
firstName: z.ZodString;
|
|
886
905
|
lastName: z.ZodString;
|
|
887
906
|
rank: z.ZodString;
|
|
@@ -889,10 +908,11 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
889
908
|
phone: z.ZodOptional<z.ZodString>;
|
|
890
909
|
address: z.ZodOptional<z.ZodString>;
|
|
891
910
|
notes: z.ZodOptional<z.ZodString>;
|
|
892
|
-
courseId: z.
|
|
911
|
+
courseId: z.ZodString;
|
|
893
912
|
classDate: z.ZodOptional<z.ZodString>;
|
|
894
|
-
teacherId: z.
|
|
895
|
-
_id: z.ZodString
|
|
913
|
+
teacherId: z.ZodString;
|
|
914
|
+
_id: z.ZodString;
|
|
915
|
+
editedBy: z.ZodString;
|
|
896
916
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
897
917
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
898
918
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -901,12 +921,13 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
901
921
|
lastName: string;
|
|
902
922
|
rank: string;
|
|
903
923
|
email: string;
|
|
904
|
-
_id:
|
|
905
|
-
|
|
906
|
-
|
|
924
|
+
_id: string;
|
|
925
|
+
editedBy: string;
|
|
926
|
+
courseId: string;
|
|
927
|
+
teacherId: string;
|
|
907
928
|
paymentReceived?: boolean | undefined;
|
|
908
929
|
expireAt?: Date | undefined;
|
|
909
|
-
userId?: string |
|
|
930
|
+
userId?: string | undefined;
|
|
910
931
|
phone?: string | undefined;
|
|
911
932
|
address?: string | undefined;
|
|
912
933
|
notes?: string | undefined;
|
|
@@ -919,12 +940,13 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
919
940
|
lastName: string;
|
|
920
941
|
rank: string;
|
|
921
942
|
email: string;
|
|
922
|
-
_id:
|
|
923
|
-
|
|
924
|
-
|
|
943
|
+
_id: string;
|
|
944
|
+
editedBy: string;
|
|
945
|
+
courseId: string;
|
|
946
|
+
teacherId: string;
|
|
925
947
|
paymentReceived?: boolean | undefined;
|
|
926
948
|
expireAt?: Date | undefined;
|
|
927
|
-
userId?: string |
|
|
949
|
+
userId?: string | undefined;
|
|
928
950
|
phone?: string | undefined;
|
|
929
951
|
address?: string | undefined;
|
|
930
952
|
notes?: string | undefined;
|
|
@@ -932,8 +954,8 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
932
954
|
createdAt?: Date | undefined;
|
|
933
955
|
updatedAt?: Date | undefined;
|
|
934
956
|
}>;
|
|
957
|
+
type BPrivateBooking = z.infer<typeof zBPrivateBooking>;
|
|
935
958
|
type PrivateBooking = z.infer<typeof zPrivateBooking>;
|
|
936
|
-
type MPrivateBooking = z.infer<typeof zMPrivateBooking>;
|
|
937
959
|
|
|
938
960
|
declare enum PaymentMethod {
|
|
939
961
|
CASH = "Cash",
|
|
@@ -966,7 +988,7 @@ declare const zInvoiceItem: z.ZodObject<{
|
|
|
966
988
|
units: number;
|
|
967
989
|
}>;
|
|
968
990
|
declare const zInvoicePackage: z.ZodObject<{
|
|
969
|
-
student: z.
|
|
991
|
+
student: z.ZodString;
|
|
970
992
|
items: z.ZodArray<z.ZodObject<{
|
|
971
993
|
course: z.ZodString;
|
|
972
994
|
price: z.ZodNumber;
|
|
@@ -981,24 +1003,24 @@ declare const zInvoicePackage: z.ZodObject<{
|
|
|
981
1003
|
units: number;
|
|
982
1004
|
}>, "many">;
|
|
983
1005
|
}, "strip", z.ZodTypeAny, {
|
|
984
|
-
student:
|
|
1006
|
+
student: string;
|
|
985
1007
|
items: {
|
|
986
1008
|
course: string;
|
|
987
1009
|
price: number;
|
|
988
1010
|
units: number;
|
|
989
1011
|
}[];
|
|
990
1012
|
}, {
|
|
991
|
-
student:
|
|
1013
|
+
student: string;
|
|
992
1014
|
items: {
|
|
993
1015
|
course: string;
|
|
994
1016
|
price: number;
|
|
995
1017
|
units: number;
|
|
996
1018
|
}[];
|
|
997
1019
|
}>;
|
|
998
|
-
declare const
|
|
1020
|
+
declare const zBInvoice: z.ZodObject<{
|
|
999
1021
|
billTo: z.ZodString;
|
|
1000
1022
|
packages: z.ZodArray<z.ZodObject<{
|
|
1001
|
-
student: z.
|
|
1023
|
+
student: z.ZodString;
|
|
1002
1024
|
items: z.ZodArray<z.ZodObject<{
|
|
1003
1025
|
course: z.ZodString;
|
|
1004
1026
|
price: z.ZodNumber;
|
|
@@ -1013,14 +1035,14 @@ declare const zInvoice: z.ZodObject<{
|
|
|
1013
1035
|
units: number;
|
|
1014
1036
|
}>, "many">;
|
|
1015
1037
|
}, "strip", z.ZodTypeAny, {
|
|
1016
|
-
student:
|
|
1038
|
+
student: string;
|
|
1017
1039
|
items: {
|
|
1018
1040
|
course: string;
|
|
1019
1041
|
price: number;
|
|
1020
1042
|
units: number;
|
|
1021
1043
|
}[];
|
|
1022
1044
|
}, {
|
|
1023
|
-
student:
|
|
1045
|
+
student: string;
|
|
1024
1046
|
items: {
|
|
1025
1047
|
course: string;
|
|
1026
1048
|
price: number;
|
|
@@ -1041,12 +1063,11 @@ declare const zInvoice: z.ZodObject<{
|
|
|
1041
1063
|
shipping: z.ZodOptional<z.ZodNumber>;
|
|
1042
1064
|
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
1043
1065
|
notes: z.ZodOptional<z.ZodString>;
|
|
1044
|
-
createdBy: z.
|
|
1045
|
-
lastEditBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
|
|
1066
|
+
createdBy: z.ZodString;
|
|
1046
1067
|
}, "strip", z.ZodTypeAny, {
|
|
1047
1068
|
billTo: string;
|
|
1048
1069
|
packages: {
|
|
1049
|
-
student:
|
|
1070
|
+
student: string;
|
|
1050
1071
|
items: {
|
|
1051
1072
|
course: string;
|
|
1052
1073
|
price: number;
|
|
@@ -1057,16 +1078,15 @@ declare const zInvoice: z.ZodObject<{
|
|
|
1057
1078
|
desc: string;
|
|
1058
1079
|
amount: number;
|
|
1059
1080
|
}[];
|
|
1060
|
-
createdBy:
|
|
1081
|
+
createdBy: string;
|
|
1061
1082
|
textbook?: number | undefined;
|
|
1062
1083
|
shipping?: number | undefined;
|
|
1063
1084
|
paid?: PaymentMethod | undefined;
|
|
1064
1085
|
notes?: string | undefined;
|
|
1065
|
-
lastEditBy?: string | Types.ObjectId | undefined;
|
|
1066
1086
|
}, {
|
|
1067
1087
|
billTo: string;
|
|
1068
1088
|
packages: {
|
|
1069
|
-
student:
|
|
1089
|
+
student: string;
|
|
1070
1090
|
items: {
|
|
1071
1091
|
course: string;
|
|
1072
1092
|
price: number;
|
|
@@ -1077,21 +1097,20 @@ declare const zInvoice: z.ZodObject<{
|
|
|
1077
1097
|
desc: string;
|
|
1078
1098
|
amount: number;
|
|
1079
1099
|
}[];
|
|
1080
|
-
createdBy:
|
|
1100
|
+
createdBy: string;
|
|
1081
1101
|
textbook?: number | undefined;
|
|
1082
1102
|
shipping?: number | undefined;
|
|
1083
1103
|
paid?: PaymentMethod | undefined;
|
|
1084
1104
|
notes?: string | undefined;
|
|
1085
|
-
lastEditBy?: string | Types.ObjectId | undefined;
|
|
1086
1105
|
}>;
|
|
1087
|
-
declare const
|
|
1106
|
+
declare const zInvoice: z.ZodObject<{
|
|
1088
1107
|
notes: z.ZodOptional<z.ZodString>;
|
|
1089
1108
|
textbook: z.ZodOptional<z.ZodNumber>;
|
|
1090
1109
|
shipping: z.ZodOptional<z.ZodNumber>;
|
|
1091
1110
|
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
1092
1111
|
billTo: z.ZodString;
|
|
1093
1112
|
packages: z.ZodArray<z.ZodObject<{
|
|
1094
|
-
student: z.
|
|
1113
|
+
student: z.ZodString;
|
|
1095
1114
|
items: z.ZodArray<z.ZodObject<{
|
|
1096
1115
|
course: z.ZodString;
|
|
1097
1116
|
price: z.ZodNumber;
|
|
@@ -1106,14 +1125,14 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1106
1125
|
units: number;
|
|
1107
1126
|
}>, "many">;
|
|
1108
1127
|
}, "strip", z.ZodTypeAny, {
|
|
1109
|
-
student:
|
|
1128
|
+
student: string;
|
|
1110
1129
|
items: {
|
|
1111
1130
|
course: string;
|
|
1112
1131
|
price: number;
|
|
1113
1132
|
units: number;
|
|
1114
1133
|
}[];
|
|
1115
1134
|
}, {
|
|
1116
|
-
student:
|
|
1135
|
+
student: string;
|
|
1117
1136
|
items: {
|
|
1118
1137
|
course: string;
|
|
1119
1138
|
price: number;
|
|
@@ -1130,16 +1149,17 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1130
1149
|
desc: string;
|
|
1131
1150
|
amount: number;
|
|
1132
1151
|
}>, "many">;
|
|
1133
|
-
createdBy: z.
|
|
1134
|
-
|
|
1135
|
-
|
|
1152
|
+
createdBy: z.ZodString;
|
|
1153
|
+
_id: z.ZodString;
|
|
1154
|
+
editedBy: z.ZodString;
|
|
1136
1155
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1137
1156
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1138
1157
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1139
|
-
_id:
|
|
1158
|
+
_id: string;
|
|
1159
|
+
editedBy: string;
|
|
1140
1160
|
billTo: string;
|
|
1141
1161
|
packages: {
|
|
1142
|
-
student:
|
|
1162
|
+
student: string;
|
|
1143
1163
|
items: {
|
|
1144
1164
|
course: string;
|
|
1145
1165
|
price: number;
|
|
@@ -1150,19 +1170,19 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1150
1170
|
desc: string;
|
|
1151
1171
|
amount: number;
|
|
1152
1172
|
}[];
|
|
1153
|
-
createdBy:
|
|
1173
|
+
createdBy: string;
|
|
1154
1174
|
notes?: string | undefined;
|
|
1155
1175
|
textbook?: number | undefined;
|
|
1156
1176
|
shipping?: number | undefined;
|
|
1157
1177
|
paid?: PaymentMethod | undefined;
|
|
1158
|
-
lastEditBy?: string | Types.ObjectId | undefined;
|
|
1159
1178
|
createdAt?: Date | undefined;
|
|
1160
1179
|
updatedAt?: Date | undefined;
|
|
1161
1180
|
}, {
|
|
1162
|
-
_id:
|
|
1181
|
+
_id: string;
|
|
1182
|
+
editedBy: string;
|
|
1163
1183
|
billTo: string;
|
|
1164
1184
|
packages: {
|
|
1165
|
-
student:
|
|
1185
|
+
student: string;
|
|
1166
1186
|
items: {
|
|
1167
1187
|
course: string;
|
|
1168
1188
|
price: number;
|
|
@@ -1173,20 +1193,19 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1173
1193
|
desc: string;
|
|
1174
1194
|
amount: number;
|
|
1175
1195
|
}[];
|
|
1176
|
-
createdBy:
|
|
1196
|
+
createdBy: string;
|
|
1177
1197
|
notes?: string | undefined;
|
|
1178
1198
|
textbook?: number | undefined;
|
|
1179
1199
|
shipping?: number | undefined;
|
|
1180
1200
|
paid?: PaymentMethod | undefined;
|
|
1181
|
-
lastEditBy?: string | Types.ObjectId | undefined;
|
|
1182
1201
|
createdAt?: Date | undefined;
|
|
1183
1202
|
updatedAt?: Date | undefined;
|
|
1184
1203
|
}>;
|
|
1185
1204
|
type Discount = z.infer<typeof zDiscount>;
|
|
1186
1205
|
type InvoiceItem = z.infer<typeof zInvoiceItem>;
|
|
1187
1206
|
type InvoicePackage = z.infer<typeof zInvoicePackage>;
|
|
1207
|
+
type BInvoice = z.infer<typeof zBInvoice>;
|
|
1188
1208
|
type Invoice = z.infer<typeof zInvoice>;
|
|
1189
|
-
type MInvoice = z.infer<typeof zMInvoice>;
|
|
1190
1209
|
|
|
1191
1210
|
interface PaymentIntent {
|
|
1192
1211
|
id: string;
|
|
@@ -1209,8 +1228,8 @@ declare const zTeacherPaymentRow: z.ZodObject<{
|
|
|
1209
1228
|
count: number;
|
|
1210
1229
|
wage: number;
|
|
1211
1230
|
}>;
|
|
1212
|
-
declare const
|
|
1213
|
-
teacher: z.
|
|
1231
|
+
declare const zBTeacherPayment: z.ZodObject<{
|
|
1232
|
+
teacher: z.ZodString;
|
|
1214
1233
|
rows: z.ZodArray<z.ZodObject<{
|
|
1215
1234
|
course: z.ZodString;
|
|
1216
1235
|
length: z.ZodNumber;
|
|
@@ -1229,7 +1248,7 @@ declare const zTeacherPayment: z.ZodObject<{
|
|
|
1229
1248
|
}>, "many">;
|
|
1230
1249
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
1231
1250
|
}, "strip", z.ZodTypeAny, {
|
|
1232
|
-
teacher:
|
|
1251
|
+
teacher: string;
|
|
1233
1252
|
rows: {
|
|
1234
1253
|
length: number;
|
|
1235
1254
|
course: string;
|
|
@@ -1238,7 +1257,7 @@ declare const zTeacherPayment: z.ZodObject<{
|
|
|
1238
1257
|
}[];
|
|
1239
1258
|
paid?: boolean | undefined;
|
|
1240
1259
|
}, {
|
|
1241
|
-
teacher:
|
|
1260
|
+
teacher: string;
|
|
1242
1261
|
rows: {
|
|
1243
1262
|
length: number;
|
|
1244
1263
|
course: string;
|
|
@@ -1247,9 +1266,9 @@ declare const zTeacherPayment: z.ZodObject<{
|
|
|
1247
1266
|
}[];
|
|
1248
1267
|
paid?: boolean | undefined;
|
|
1249
1268
|
}>;
|
|
1250
|
-
declare const
|
|
1269
|
+
declare const zTeacherPayment: z.ZodObject<{
|
|
1251
1270
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
1252
|
-
teacher: z.
|
|
1271
|
+
teacher: z.ZodString;
|
|
1253
1272
|
rows: z.ZodArray<z.ZodObject<{
|
|
1254
1273
|
course: z.ZodString;
|
|
1255
1274
|
length: z.ZodNumber;
|
|
@@ -1266,12 +1285,14 @@ declare const zMTeacherPayment: z.ZodObject<{
|
|
|
1266
1285
|
count: number;
|
|
1267
1286
|
wage: number;
|
|
1268
1287
|
}>, "many">;
|
|
1269
|
-
_id: z.ZodString
|
|
1288
|
+
_id: z.ZodString;
|
|
1289
|
+
editedBy: z.ZodString;
|
|
1270
1290
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1271
1291
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1272
1292
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1273
|
-
_id:
|
|
1274
|
-
|
|
1293
|
+
_id: string;
|
|
1294
|
+
editedBy: string;
|
|
1295
|
+
teacher: string;
|
|
1275
1296
|
rows: {
|
|
1276
1297
|
length: number;
|
|
1277
1298
|
course: string;
|
|
@@ -1282,8 +1303,9 @@ declare const zMTeacherPayment: z.ZodObject<{
|
|
|
1282
1303
|
createdAt?: Date | undefined;
|
|
1283
1304
|
updatedAt?: Date | undefined;
|
|
1284
1305
|
}, {
|
|
1285
|
-
_id:
|
|
1286
|
-
|
|
1306
|
+
_id: string;
|
|
1307
|
+
editedBy: string;
|
|
1308
|
+
teacher: string;
|
|
1287
1309
|
rows: {
|
|
1288
1310
|
length: number;
|
|
1289
1311
|
course: string;
|
|
@@ -1295,8 +1317,8 @@ declare const zMTeacherPayment: z.ZodObject<{
|
|
|
1295
1317
|
updatedAt?: Date | undefined;
|
|
1296
1318
|
}>;
|
|
1297
1319
|
type TeacherPaymentRow = z.infer<typeof zTeacherPaymentRow>;
|
|
1320
|
+
type BTeacherPayment = z.infer<typeof zBTeacherPayment>;
|
|
1298
1321
|
type TeacherPayment = z.infer<typeof zTeacherPayment>;
|
|
1299
|
-
type MTeacherPayment = z.infer<typeof zMTeacherPayment>;
|
|
1300
1322
|
|
|
1301
1323
|
declare const zTuition: z.ZodObject<{
|
|
1302
1324
|
primary: z.ZodNumber;
|
|
@@ -1356,9 +1378,6 @@ declare const zCourseTable: z.ZodObject<{
|
|
|
1356
1378
|
}>;
|
|
1357
1379
|
type CourseTable = z.infer<typeof zCourseTable>;
|
|
1358
1380
|
type TeacherDisplay = z.infer<typeof zTeacherDisplay>;
|
|
1359
|
-
interface MNYIGMission extends NYIGMission {
|
|
1360
|
-
_id: string;
|
|
1361
|
-
}
|
|
1362
1381
|
type AuroraCourses = {
|
|
1363
1382
|
[school in NYIGSchool]: {
|
|
1364
1383
|
[ageGroup in AgeGroup]: CourseTable[];
|
|
@@ -1400,9 +1419,9 @@ declare enum TicketStatus {
|
|
|
1400
1419
|
COMPLETED = "Completed"
|
|
1401
1420
|
}
|
|
1402
1421
|
|
|
1403
|
-
declare const
|
|
1404
|
-
requester: z.
|
|
1405
|
-
resolver: z.ZodOptional<z.
|
|
1422
|
+
declare const zBReportTicket: z.ZodObject<{
|
|
1423
|
+
requester: z.ZodString;
|
|
1424
|
+
resolver: z.ZodOptional<z.ZodString>;
|
|
1406
1425
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
1407
1426
|
title: z.ZodString;
|
|
1408
1427
|
description: z.ZodString;
|
|
@@ -1410,45 +1429,48 @@ declare const zReportTicket: z.ZodObject<{
|
|
|
1410
1429
|
status: TicketStatus;
|
|
1411
1430
|
description: string;
|
|
1412
1431
|
title: string;
|
|
1413
|
-
requester:
|
|
1414
|
-
resolver?: string |
|
|
1432
|
+
requester: string;
|
|
1433
|
+
resolver?: string | undefined;
|
|
1415
1434
|
}, {
|
|
1416
1435
|
status: TicketStatus;
|
|
1417
1436
|
description: string;
|
|
1418
1437
|
title: string;
|
|
1419
|
-
requester:
|
|
1420
|
-
resolver?: string |
|
|
1438
|
+
requester: string;
|
|
1439
|
+
resolver?: string | undefined;
|
|
1421
1440
|
}>;
|
|
1422
|
-
declare const
|
|
1441
|
+
declare const zReportTicket: z.ZodObject<{
|
|
1423
1442
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
1424
1443
|
description: z.ZodString;
|
|
1425
1444
|
title: z.ZodString;
|
|
1426
|
-
requester: z.
|
|
1427
|
-
resolver: z.ZodOptional<z.
|
|
1428
|
-
_id: z.ZodString
|
|
1445
|
+
requester: z.ZodString;
|
|
1446
|
+
resolver: z.ZodOptional<z.ZodString>;
|
|
1447
|
+
_id: z.ZodString;
|
|
1448
|
+
editedBy: z.ZodString;
|
|
1429
1449
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1430
1450
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1431
1451
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1432
1452
|
status: TicketStatus;
|
|
1433
|
-
_id:
|
|
1453
|
+
_id: string;
|
|
1454
|
+
editedBy: string;
|
|
1434
1455
|
description: string;
|
|
1435
1456
|
title: string;
|
|
1436
|
-
requester:
|
|
1437
|
-
resolver?: string |
|
|
1457
|
+
requester: string;
|
|
1458
|
+
resolver?: string | undefined;
|
|
1438
1459
|
createdAt?: Date | undefined;
|
|
1439
1460
|
updatedAt?: Date | undefined;
|
|
1440
1461
|
}, {
|
|
1441
1462
|
status: TicketStatus;
|
|
1442
|
-
_id:
|
|
1463
|
+
_id: string;
|
|
1464
|
+
editedBy: string;
|
|
1443
1465
|
description: string;
|
|
1444
1466
|
title: string;
|
|
1445
|
-
requester:
|
|
1446
|
-
resolver?: string |
|
|
1467
|
+
requester: string;
|
|
1468
|
+
resolver?: string | undefined;
|
|
1447
1469
|
createdAt?: Date | undefined;
|
|
1448
1470
|
updatedAt?: Date | undefined;
|
|
1449
1471
|
}>;
|
|
1472
|
+
type BReportTicket = z.infer<typeof zBReportTicket>;
|
|
1450
1473
|
type ReportTicket = z.infer<typeof zReportTicket>;
|
|
1451
|
-
type MReportTicket = z.infer<typeof zMReportTicket>;
|
|
1452
1474
|
|
|
1453
1475
|
declare enum Season {
|
|
1454
1476
|
FALL = "fall",
|
|
@@ -1456,7 +1478,7 @@ declare enum Season {
|
|
|
1456
1478
|
SUMMER = "summer"
|
|
1457
1479
|
}
|
|
1458
1480
|
|
|
1459
|
-
declare const
|
|
1481
|
+
declare const zBSemester: z.ZodObject<{
|
|
1460
1482
|
season: z.ZodNativeEnum<typeof Season>;
|
|
1461
1483
|
year: z.ZodNumber;
|
|
1462
1484
|
startDate: z.ZodDate;
|
|
@@ -1484,18 +1506,20 @@ declare const zSemester: z.ZodObject<{
|
|
|
1484
1506
|
blackoutDates: Date[];
|
|
1485
1507
|
importantDates: string[];
|
|
1486
1508
|
}>;
|
|
1487
|
-
declare const
|
|
1509
|
+
declare const zSemester: z.ZodObject<{
|
|
1488
1510
|
season: z.ZodNativeEnum<typeof Season>;
|
|
1489
1511
|
year: z.ZodNumber;
|
|
1490
1512
|
startDate: z.ZodDate;
|
|
1491
1513
|
endDate: z.ZodDate;
|
|
1492
1514
|
blackoutDates: z.ZodArray<z.ZodDate, "many">;
|
|
1493
1515
|
importantDates: z.ZodArray<z.ZodString, "many">;
|
|
1494
|
-
_id: z.ZodString
|
|
1516
|
+
_id: z.ZodString;
|
|
1517
|
+
editedBy: z.ZodString;
|
|
1495
1518
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1496
1519
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1497
1520
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1498
|
-
_id:
|
|
1521
|
+
_id: string;
|
|
1522
|
+
editedBy: string;
|
|
1499
1523
|
season: Season;
|
|
1500
1524
|
year: number;
|
|
1501
1525
|
startDate: Date;
|
|
@@ -1505,7 +1529,8 @@ declare const zMSemester: z.ZodObject<{
|
|
|
1505
1529
|
createdAt?: Date | undefined;
|
|
1506
1530
|
updatedAt?: Date | undefined;
|
|
1507
1531
|
}, {
|
|
1508
|
-
_id:
|
|
1532
|
+
_id: string;
|
|
1533
|
+
editedBy: string;
|
|
1509
1534
|
season: Season;
|
|
1510
1535
|
year: number;
|
|
1511
1536
|
startDate: Date;
|
|
@@ -1515,10 +1540,10 @@ declare const zMSemester: z.ZodObject<{
|
|
|
1515
1540
|
createdAt?: Date | undefined;
|
|
1516
1541
|
updatedAt?: Date | undefined;
|
|
1517
1542
|
}>;
|
|
1543
|
+
type BSemester = z.infer<typeof zBSemester>;
|
|
1518
1544
|
type Semester = z.infer<typeof zSemester>;
|
|
1519
|
-
type MSemester = z.infer<typeof zMSemester>;
|
|
1520
1545
|
|
|
1521
|
-
declare const
|
|
1546
|
+
declare const zBEventConfig: z.ZodObject<{
|
|
1522
1547
|
/**
|
|
1523
1548
|
* Location of the event
|
|
1524
1549
|
*/
|
|
@@ -1583,7 +1608,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
1583
1608
|
/**
|
|
1584
1609
|
* List of ticket object IDs for this tournament
|
|
1585
1610
|
*/
|
|
1586
|
-
tickets: z.ZodArray<z.
|
|
1611
|
+
tickets: z.ZodArray<z.ZodString, "many">;
|
|
1587
1612
|
/**
|
|
1588
1613
|
* If false, the tournament registration is closed
|
|
1589
1614
|
*/
|
|
@@ -1624,7 +1649,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
1624
1649
|
data: Record<string, {}[]>;
|
|
1625
1650
|
fields: string[];
|
|
1626
1651
|
};
|
|
1627
|
-
tickets:
|
|
1652
|
+
tickets: string[];
|
|
1628
1653
|
canRegister: boolean;
|
|
1629
1654
|
location?: string | undefined;
|
|
1630
1655
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1649,7 +1674,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
1649
1674
|
data: Record<string, {}[]>;
|
|
1650
1675
|
fields: string[];
|
|
1651
1676
|
};
|
|
1652
|
-
tickets:
|
|
1677
|
+
tickets: string[];
|
|
1653
1678
|
canRegister: boolean;
|
|
1654
1679
|
location?: string | undefined;
|
|
1655
1680
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1659,7 +1684,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
1659
1684
|
width: number;
|
|
1660
1685
|
} | undefined;
|
|
1661
1686
|
}>;
|
|
1662
|
-
declare const
|
|
1687
|
+
declare const zEventConfig: z.ZodObject<{
|
|
1663
1688
|
description: z.ZodString;
|
|
1664
1689
|
title: z.ZodString;
|
|
1665
1690
|
url: z.ZodString;
|
|
@@ -1688,6 +1713,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1688
1713
|
data: Record<string, {}[]>;
|
|
1689
1714
|
fields: string[];
|
|
1690
1715
|
}>;
|
|
1716
|
+
tickets: z.ZodArray<z.ZodString, "many">;
|
|
1691
1717
|
canRegister: z.ZodBoolean;
|
|
1692
1718
|
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1693
1719
|
image: z.ZodOptional<z.ZodObject<{
|
|
@@ -1703,35 +1729,13 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1703
1729
|
height: number;
|
|
1704
1730
|
width: number;
|
|
1705
1731
|
}>>;
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1714
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1715
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1716
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1717
|
-
price: number;
|
|
1718
|
-
name: string;
|
|
1719
|
-
description?: string | undefined;
|
|
1720
|
-
isNotBuyable?: boolean | undefined;
|
|
1721
|
-
lastBuyableDate?: Date | undefined;
|
|
1722
|
-
createdAt?: Date | undefined;
|
|
1723
|
-
updatedAt?: Date | undefined;
|
|
1724
|
-
}, {
|
|
1725
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1726
|
-
price: number;
|
|
1727
|
-
name: string;
|
|
1728
|
-
description?: string | undefined;
|
|
1729
|
-
isNotBuyable?: boolean | undefined;
|
|
1730
|
-
lastBuyableDate?: Date | undefined;
|
|
1731
|
-
createdAt?: Date | undefined;
|
|
1732
|
-
updatedAt?: Date | undefined;
|
|
1733
|
-
}>, "many">;
|
|
1734
|
-
}, "strip", z.ZodTypeAny, {
|
|
1732
|
+
_id: z.ZodString;
|
|
1733
|
+
editedBy: z.ZodString;
|
|
1734
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1735
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1736
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1737
|
+
_id: string;
|
|
1738
|
+
editedBy: string;
|
|
1735
1739
|
description: string;
|
|
1736
1740
|
title: string;
|
|
1737
1741
|
url: string;
|
|
@@ -1747,16 +1751,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1747
1751
|
data: Record<string, {}[]>;
|
|
1748
1752
|
fields: string[];
|
|
1749
1753
|
};
|
|
1750
|
-
tickets:
|
|
1751
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1752
|
-
price: number;
|
|
1753
|
-
name: string;
|
|
1754
|
-
description?: string | undefined;
|
|
1755
|
-
isNotBuyable?: boolean | undefined;
|
|
1756
|
-
lastBuyableDate?: Date | undefined;
|
|
1757
|
-
createdAt?: Date | undefined;
|
|
1758
|
-
updatedAt?: Date | undefined;
|
|
1759
|
-
}[];
|
|
1754
|
+
tickets: string[];
|
|
1760
1755
|
canRegister: boolean;
|
|
1761
1756
|
location?: string | undefined;
|
|
1762
1757
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1765,7 +1760,11 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1765
1760
|
height: number;
|
|
1766
1761
|
width: number;
|
|
1767
1762
|
} | undefined;
|
|
1763
|
+
createdAt?: Date | undefined;
|
|
1764
|
+
updatedAt?: Date | undefined;
|
|
1768
1765
|
}, {
|
|
1766
|
+
_id: string;
|
|
1767
|
+
editedBy: string;
|
|
1769
1768
|
description: string;
|
|
1770
1769
|
title: string;
|
|
1771
1770
|
url: string;
|
|
@@ -1781,16 +1780,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1781
1780
|
data: Record<string, {}[]>;
|
|
1782
1781
|
fields: string[];
|
|
1783
1782
|
};
|
|
1784
|
-
tickets:
|
|
1785
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1786
|
-
price: number;
|
|
1787
|
-
name: string;
|
|
1788
|
-
description?: string | undefined;
|
|
1789
|
-
isNotBuyable?: boolean | undefined;
|
|
1790
|
-
lastBuyableDate?: Date | undefined;
|
|
1791
|
-
createdAt?: Date | undefined;
|
|
1792
|
-
updatedAt?: Date | undefined;
|
|
1793
|
-
}[];
|
|
1783
|
+
tickets: string[];
|
|
1794
1784
|
canRegister: boolean;
|
|
1795
1785
|
location?: string | undefined;
|
|
1796
1786
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1799,8 +1789,14 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1799
1789
|
height: number;
|
|
1800
1790
|
width: number;
|
|
1801
1791
|
} | undefined;
|
|
1792
|
+
createdAt?: Date | undefined;
|
|
1793
|
+
updatedAt?: Date | undefined;
|
|
1802
1794
|
}>;
|
|
1803
|
-
declare const
|
|
1795
|
+
declare const zEventConfigResponse: z.ZodObject<{
|
|
1796
|
+
_id: z.ZodString;
|
|
1797
|
+
editedBy: z.ZodString;
|
|
1798
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1799
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1804
1800
|
description: z.ZodString;
|
|
1805
1801
|
title: z.ZodString;
|
|
1806
1802
|
url: z.ZodString;
|
|
@@ -1829,7 +1825,6 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1829
1825
|
data: Record<string, {}[]>;
|
|
1830
1826
|
fields: string[];
|
|
1831
1827
|
}>;
|
|
1832
|
-
tickets: z.ZodArray<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>, "many">;
|
|
1833
1828
|
canRegister: z.ZodBoolean;
|
|
1834
1829
|
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1835
1830
|
image: z.ZodOptional<z.ZodObject<{
|
|
@@ -1845,106 +1840,19 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1845
1840
|
height: number;
|
|
1846
1841
|
width: number;
|
|
1847
1842
|
}>>;
|
|
1848
|
-
_id: z.ZodString | z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
1849
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1850
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1851
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1852
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1853
|
-
description: string;
|
|
1854
|
-
title: string;
|
|
1855
|
-
url: string;
|
|
1856
|
-
shortTitle: string;
|
|
1857
|
-
tStart: Date;
|
|
1858
|
-
tEnd: Date;
|
|
1859
|
-
shortDescription: string;
|
|
1860
|
-
details: {
|
|
1861
|
-
data: {}[];
|
|
1862
|
-
fields: string[];
|
|
1863
|
-
};
|
|
1864
|
-
schedule: {
|
|
1865
|
-
data: Record<string, {}[]>;
|
|
1866
|
-
fields: string[];
|
|
1867
|
-
};
|
|
1868
|
-
tickets: (string | Types.ObjectId)[];
|
|
1869
|
-
canRegister: boolean;
|
|
1870
|
-
location?: string | undefined;
|
|
1871
|
-
donationsDisabled?: boolean | undefined;
|
|
1872
|
-
image?: {
|
|
1873
|
-
url: string;
|
|
1874
|
-
height: number;
|
|
1875
|
-
width: number;
|
|
1876
|
-
} | undefined;
|
|
1877
|
-
createdAt?: Date | undefined;
|
|
1878
|
-
updatedAt?: Date | undefined;
|
|
1879
|
-
}, {
|
|
1880
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1881
|
-
description: string;
|
|
1882
|
-
title: string;
|
|
1883
|
-
url: string;
|
|
1884
|
-
shortTitle: string;
|
|
1885
|
-
tStart: Date;
|
|
1886
|
-
tEnd: Date;
|
|
1887
|
-
shortDescription: string;
|
|
1888
|
-
details: {
|
|
1889
|
-
data: {}[];
|
|
1890
|
-
fields: string[];
|
|
1891
|
-
};
|
|
1892
|
-
schedule: {
|
|
1893
|
-
data: Record<string, {}[]>;
|
|
1894
|
-
fields: string[];
|
|
1895
|
-
};
|
|
1896
|
-
tickets: (string | Types.ObjectId)[];
|
|
1897
|
-
canRegister: boolean;
|
|
1898
|
-
location?: string | undefined;
|
|
1899
|
-
donationsDisabled?: boolean | undefined;
|
|
1900
|
-
image?: {
|
|
1901
|
-
url: string;
|
|
1902
|
-
height: number;
|
|
1903
|
-
width: number;
|
|
1904
|
-
} | undefined;
|
|
1905
|
-
createdAt?: Date | undefined;
|
|
1906
|
-
updatedAt?: Date | undefined;
|
|
1907
|
-
}>;
|
|
1908
|
-
declare const zMTConfigResponse: z.ZodObject<{
|
|
1909
|
-
description: z.ZodString;
|
|
1910
|
-
title: z.ZodString;
|
|
1911
|
-
url: z.ZodString;
|
|
1912
|
-
location: z.ZodOptional<z.ZodString>;
|
|
1913
|
-
shortTitle: z.ZodString;
|
|
1914
|
-
tStart: z.ZodDate;
|
|
1915
|
-
tEnd: z.ZodDate;
|
|
1916
|
-
shortDescription: z.ZodString;
|
|
1917
|
-
details: z.ZodObject<{
|
|
1918
|
-
fields: z.ZodArray<z.ZodString, "many">;
|
|
1919
|
-
data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
1920
|
-
}, "strip", z.ZodTypeAny, {
|
|
1921
|
-
data: {}[];
|
|
1922
|
-
fields: string[];
|
|
1923
|
-
}, {
|
|
1924
|
-
data: {}[];
|
|
1925
|
-
fields: string[];
|
|
1926
|
-
}>;
|
|
1927
|
-
schedule: z.ZodObject<{
|
|
1928
|
-
fields: z.ZodArray<z.ZodString, "many">;
|
|
1929
|
-
data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
|
|
1930
|
-
}, "strip", z.ZodTypeAny, {
|
|
1931
|
-
data: Record<string, {}[]>;
|
|
1932
|
-
fields: string[];
|
|
1933
|
-
}, {
|
|
1934
|
-
data: Record<string, {}[]>;
|
|
1935
|
-
fields: string[];
|
|
1936
|
-
}>;
|
|
1937
1843
|
tickets: z.ZodArray<z.ZodObject<{
|
|
1938
1844
|
price: z.ZodNumber;
|
|
1939
1845
|
name: z.ZodString;
|
|
1940
1846
|
description: z.ZodOptional<z.ZodString>;
|
|
1941
1847
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
1942
1848
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1943
|
-
_id: z.ZodString
|
|
1849
|
+
_id: z.ZodString;
|
|
1850
|
+
editedBy: z.ZodString;
|
|
1944
1851
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1945
1852
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1946
1853
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1947
|
-
_id:
|
|
1854
|
+
_id: string;
|
|
1855
|
+
editedBy: string;
|
|
1948
1856
|
price: number;
|
|
1949
1857
|
name: string;
|
|
1950
1858
|
description?: string | undefined;
|
|
@@ -1953,7 +1861,8 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1953
1861
|
createdAt?: Date | undefined;
|
|
1954
1862
|
updatedAt?: Date | undefined;
|
|
1955
1863
|
}, {
|
|
1956
|
-
_id:
|
|
1864
|
+
_id: string;
|
|
1865
|
+
editedBy: string;
|
|
1957
1866
|
price: number;
|
|
1958
1867
|
name: string;
|
|
1959
1868
|
description?: string | undefined;
|
|
@@ -1962,26 +1871,9 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1962
1871
|
createdAt?: Date | undefined;
|
|
1963
1872
|
updatedAt?: Date | undefined;
|
|
1964
1873
|
}>, "many">;
|
|
1965
|
-
canRegister: z.ZodBoolean;
|
|
1966
|
-
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1967
|
-
image: z.ZodOptional<z.ZodObject<{
|
|
1968
|
-
url: z.ZodString;
|
|
1969
|
-
height: z.ZodNumber;
|
|
1970
|
-
width: z.ZodNumber;
|
|
1971
|
-
}, "strip", z.ZodTypeAny, {
|
|
1972
|
-
url: string;
|
|
1973
|
-
height: number;
|
|
1974
|
-
width: number;
|
|
1975
|
-
}, {
|
|
1976
|
-
url: string;
|
|
1977
|
-
height: number;
|
|
1978
|
-
width: number;
|
|
1979
|
-
}>>;
|
|
1980
|
-
_id: z.ZodString | z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
1981
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1982
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1983
1874
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1984
|
-
_id:
|
|
1875
|
+
_id: string;
|
|
1876
|
+
editedBy: string;
|
|
1985
1877
|
description: string;
|
|
1986
1878
|
title: string;
|
|
1987
1879
|
url: string;
|
|
@@ -1998,7 +1890,8 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1998
1890
|
fields: string[];
|
|
1999
1891
|
};
|
|
2000
1892
|
tickets: {
|
|
2001
|
-
_id:
|
|
1893
|
+
_id: string;
|
|
1894
|
+
editedBy: string;
|
|
2002
1895
|
price: number;
|
|
2003
1896
|
name: string;
|
|
2004
1897
|
description?: string | undefined;
|
|
@@ -2008,6 +1901,8 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2008
1901
|
updatedAt?: Date | undefined;
|
|
2009
1902
|
}[];
|
|
2010
1903
|
canRegister: boolean;
|
|
1904
|
+
createdAt?: Date | undefined;
|
|
1905
|
+
updatedAt?: Date | undefined;
|
|
2011
1906
|
location?: string | undefined;
|
|
2012
1907
|
donationsDisabled?: boolean | undefined;
|
|
2013
1908
|
image?: {
|
|
@@ -2015,10 +1910,9 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2015
1910
|
height: number;
|
|
2016
1911
|
width: number;
|
|
2017
1912
|
} | undefined;
|
|
2018
|
-
createdAt?: Date | undefined;
|
|
2019
|
-
updatedAt?: Date | undefined;
|
|
2020
1913
|
}, {
|
|
2021
|
-
_id:
|
|
1914
|
+
_id: string;
|
|
1915
|
+
editedBy: string;
|
|
2022
1916
|
description: string;
|
|
2023
1917
|
title: string;
|
|
2024
1918
|
url: string;
|
|
@@ -2035,7 +1929,8 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2035
1929
|
fields: string[];
|
|
2036
1930
|
};
|
|
2037
1931
|
tickets: {
|
|
2038
|
-
_id:
|
|
1932
|
+
_id: string;
|
|
1933
|
+
editedBy: string;
|
|
2039
1934
|
price: number;
|
|
2040
1935
|
name: string;
|
|
2041
1936
|
description?: string | undefined;
|
|
@@ -2045,6 +1940,8 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2045
1940
|
updatedAt?: Date | undefined;
|
|
2046
1941
|
}[];
|
|
2047
1942
|
canRegister: boolean;
|
|
1943
|
+
createdAt?: Date | undefined;
|
|
1944
|
+
updatedAt?: Date | undefined;
|
|
2048
1945
|
location?: string | undefined;
|
|
2049
1946
|
donationsDisabled?: boolean | undefined;
|
|
2050
1947
|
image?: {
|
|
@@ -2052,13 +1949,10 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2052
1949
|
height: number;
|
|
2053
1950
|
width: number;
|
|
2054
1951
|
} | undefined;
|
|
2055
|
-
createdAt?: Date | undefined;
|
|
2056
|
-
updatedAt?: Date | undefined;
|
|
2057
1952
|
}>;
|
|
1953
|
+
type BEventConfig = z.infer<typeof zBEventConfig>;
|
|
2058
1954
|
type EventConfig = z.infer<typeof zEventConfig>;
|
|
2059
1955
|
type EventConfigResponse = z.infer<typeof zEventConfigResponse>;
|
|
2060
|
-
type MEventConfig = z.infer<typeof zMEventConfig>;
|
|
2061
|
-
type MEventConfigResponse = z.infer<typeof zMTConfigResponse>;
|
|
2062
1956
|
|
|
2063
1957
|
declare const zDetailsTable: z.ZodObject<{
|
|
2064
1958
|
fields: z.ZodArray<z.ZodString, "many">;
|
|
@@ -2083,8 +1977,8 @@ declare const zScheduleTable: z.ZodObject<{
|
|
|
2083
1977
|
type DetailsTable = z.infer<typeof zDetailsTable>;
|
|
2084
1978
|
type ScheduleTable = z.infer<typeof zScheduleTable>;
|
|
2085
1979
|
|
|
2086
|
-
declare const
|
|
2087
|
-
userId: z.ZodOptional<z.
|
|
1980
|
+
declare const zBEventReg: z.ZodObject<{
|
|
1981
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
2088
1982
|
firstName: z.ZodString;
|
|
2089
1983
|
lastName: z.ZodString;
|
|
2090
1984
|
rank: z.ZodString;
|
|
@@ -2093,20 +1987,19 @@ declare const zEventReg: z.ZodObject<{
|
|
|
2093
1987
|
address: z.ZodOptional<z.ZodString>;
|
|
2094
1988
|
notes: z.ZodOptional<z.ZodString>;
|
|
2095
1989
|
tickets: z.ZodArray<z.ZodObject<{
|
|
2096
|
-
ticket: z.
|
|
1990
|
+
ticket: z.ZodString;
|
|
2097
1991
|
amount: z.ZodNumber;
|
|
2098
1992
|
}, "strip", z.ZodTypeAny, {
|
|
2099
1993
|
amount: number;
|
|
2100
|
-
ticket:
|
|
1994
|
+
ticket: string;
|
|
2101
1995
|
}, {
|
|
2102
1996
|
amount: number;
|
|
2103
|
-
ticket:
|
|
1997
|
+
ticket: string;
|
|
2104
1998
|
}>, "many">;
|
|
2105
1999
|
agaId: z.ZodString;
|
|
2106
|
-
tournamentId: z.
|
|
2000
|
+
tournamentId: z.ZodString;
|
|
2107
2001
|
donation: z.ZodOptional<z.ZodNumber>;
|
|
2108
2002
|
createMethod: z.ZodOptional<z.ZodString>;
|
|
2109
|
-
edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2110
2003
|
paymentAmount: z.ZodNumber;
|
|
2111
2004
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
2112
2005
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -2118,17 +2011,16 @@ declare const zEventReg: z.ZodObject<{
|
|
|
2118
2011
|
email: string;
|
|
2119
2012
|
tickets: {
|
|
2120
2013
|
amount: number;
|
|
2121
|
-
ticket:
|
|
2014
|
+
ticket: string;
|
|
2122
2015
|
}[];
|
|
2123
2016
|
agaId: string;
|
|
2124
|
-
tournamentId:
|
|
2125
|
-
userId?: string |
|
|
2017
|
+
tournamentId: string;
|
|
2018
|
+
userId?: string | undefined;
|
|
2126
2019
|
phone?: string | undefined;
|
|
2127
2020
|
address?: string | undefined;
|
|
2128
2021
|
notes?: string | undefined;
|
|
2129
2022
|
donation?: number | undefined;
|
|
2130
2023
|
createMethod?: string | undefined;
|
|
2131
|
-
edited?: Types.ObjectId | undefined;
|
|
2132
2024
|
paymentReceived?: boolean | undefined;
|
|
2133
2025
|
expireAt?: Date | undefined;
|
|
2134
2026
|
}, {
|
|
@@ -2139,158 +2031,24 @@ declare const zEventReg: z.ZodObject<{
|
|
|
2139
2031
|
email: string;
|
|
2140
2032
|
tickets: {
|
|
2141
2033
|
amount: number;
|
|
2142
|
-
ticket:
|
|
2034
|
+
ticket: string;
|
|
2143
2035
|
}[];
|
|
2144
2036
|
agaId: string;
|
|
2145
|
-
tournamentId:
|
|
2146
|
-
userId?: string |
|
|
2037
|
+
tournamentId: string;
|
|
2038
|
+
userId?: string | undefined;
|
|
2147
2039
|
phone?: string | undefined;
|
|
2148
2040
|
address?: string | undefined;
|
|
2149
2041
|
notes?: string | undefined;
|
|
2150
2042
|
donation?: number | undefined;
|
|
2151
2043
|
createMethod?: string | undefined;
|
|
2152
|
-
edited?: Types.ObjectId | undefined;
|
|
2153
2044
|
paymentReceived?: boolean | undefined;
|
|
2154
2045
|
expireAt?: Date | undefined;
|
|
2155
2046
|
}>;
|
|
2156
|
-
declare const
|
|
2157
|
-
paymentAmount: z.ZodNumber;
|
|
2158
|
-
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
2159
|
-
expireAt: z.ZodOptional<z.ZodDate>;
|
|
2160
|
-
userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
|
|
2161
|
-
firstName: z.ZodString;
|
|
2162
|
-
lastName: z.ZodString;
|
|
2163
|
-
rank: z.ZodString;
|
|
2164
|
-
email: z.ZodString;
|
|
2165
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
2166
|
-
address: z.ZodOptional<z.ZodString>;
|
|
2167
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
2168
|
-
agaId: z.ZodString;
|
|
2169
|
-
tournamentId: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2170
|
-
donation: z.ZodOptional<z.ZodNumber>;
|
|
2171
|
-
createMethod: z.ZodOptional<z.ZodString>;
|
|
2172
|
-
edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2173
|
-
tickets: z.ZodArray<z.ZodObject<{
|
|
2174
|
-
amount: z.ZodNumber;
|
|
2175
|
-
ticket: z.ZodObject<{
|
|
2176
|
-
price: z.ZodNumber;
|
|
2177
|
-
name: z.ZodString;
|
|
2178
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2179
|
-
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2180
|
-
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2181
|
-
_id: z.ZodString | z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2182
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2183
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2184
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2185
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2186
|
-
price: number;
|
|
2187
|
-
name: string;
|
|
2188
|
-
description?: string | undefined;
|
|
2189
|
-
isNotBuyable?: boolean | undefined;
|
|
2190
|
-
lastBuyableDate?: Date | undefined;
|
|
2191
|
-
createdAt?: Date | undefined;
|
|
2192
|
-
updatedAt?: Date | undefined;
|
|
2193
|
-
}, {
|
|
2194
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2195
|
-
price: number;
|
|
2196
|
-
name: string;
|
|
2197
|
-
description?: string | undefined;
|
|
2198
|
-
isNotBuyable?: boolean | undefined;
|
|
2199
|
-
lastBuyableDate?: Date | undefined;
|
|
2200
|
-
createdAt?: Date | undefined;
|
|
2201
|
-
updatedAt?: Date | undefined;
|
|
2202
|
-
}>;
|
|
2203
|
-
}, "strip", z.ZodTypeAny, {
|
|
2204
|
-
amount: number;
|
|
2205
|
-
ticket: {
|
|
2206
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2207
|
-
price: number;
|
|
2208
|
-
name: string;
|
|
2209
|
-
description?: string | undefined;
|
|
2210
|
-
isNotBuyable?: boolean | undefined;
|
|
2211
|
-
lastBuyableDate?: Date | undefined;
|
|
2212
|
-
createdAt?: Date | undefined;
|
|
2213
|
-
updatedAt?: Date | undefined;
|
|
2214
|
-
};
|
|
2215
|
-
}, {
|
|
2216
|
-
amount: number;
|
|
2217
|
-
ticket: {
|
|
2218
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2219
|
-
price: number;
|
|
2220
|
-
name: string;
|
|
2221
|
-
description?: string | undefined;
|
|
2222
|
-
isNotBuyable?: boolean | undefined;
|
|
2223
|
-
lastBuyableDate?: Date | undefined;
|
|
2224
|
-
createdAt?: Date | undefined;
|
|
2225
|
-
updatedAt?: Date | undefined;
|
|
2226
|
-
};
|
|
2227
|
-
}>, "many">;
|
|
2228
|
-
}, "strip", z.ZodTypeAny, {
|
|
2229
|
-
paymentAmount: number;
|
|
2230
|
-
firstName: string;
|
|
2231
|
-
lastName: string;
|
|
2232
|
-
rank: string;
|
|
2233
|
-
email: string;
|
|
2234
|
-
tickets: {
|
|
2235
|
-
amount: number;
|
|
2236
|
-
ticket: {
|
|
2237
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2238
|
-
price: number;
|
|
2239
|
-
name: string;
|
|
2240
|
-
description?: string | undefined;
|
|
2241
|
-
isNotBuyable?: boolean | undefined;
|
|
2242
|
-
lastBuyableDate?: Date | undefined;
|
|
2243
|
-
createdAt?: Date | undefined;
|
|
2244
|
-
updatedAt?: Date | undefined;
|
|
2245
|
-
};
|
|
2246
|
-
}[];
|
|
2247
|
-
agaId: string;
|
|
2248
|
-
tournamentId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2249
|
-
paymentReceived?: boolean | undefined;
|
|
2250
|
-
expireAt?: Date | undefined;
|
|
2251
|
-
userId?: string | Types.ObjectId | undefined;
|
|
2252
|
-
phone?: string | undefined;
|
|
2253
|
-
address?: string | undefined;
|
|
2254
|
-
notes?: string | undefined;
|
|
2255
|
-
donation?: number | undefined;
|
|
2256
|
-
createMethod?: string | undefined;
|
|
2257
|
-
edited?: Types.ObjectId | undefined;
|
|
2258
|
-
}, {
|
|
2259
|
-
paymentAmount: number;
|
|
2260
|
-
firstName: string;
|
|
2261
|
-
lastName: string;
|
|
2262
|
-
rank: string;
|
|
2263
|
-
email: string;
|
|
2264
|
-
tickets: {
|
|
2265
|
-
amount: number;
|
|
2266
|
-
ticket: {
|
|
2267
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2268
|
-
price: number;
|
|
2269
|
-
name: string;
|
|
2270
|
-
description?: string | undefined;
|
|
2271
|
-
isNotBuyable?: boolean | undefined;
|
|
2272
|
-
lastBuyableDate?: Date | undefined;
|
|
2273
|
-
createdAt?: Date | undefined;
|
|
2274
|
-
updatedAt?: Date | undefined;
|
|
2275
|
-
};
|
|
2276
|
-
}[];
|
|
2277
|
-
agaId: string;
|
|
2278
|
-
tournamentId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2279
|
-
paymentReceived?: boolean | undefined;
|
|
2280
|
-
expireAt?: Date | undefined;
|
|
2281
|
-
userId?: string | Types.ObjectId | undefined;
|
|
2282
|
-
phone?: string | undefined;
|
|
2283
|
-
address?: string | undefined;
|
|
2284
|
-
notes?: string | undefined;
|
|
2285
|
-
donation?: number | undefined;
|
|
2286
|
-
createMethod?: string | undefined;
|
|
2287
|
-
edited?: Types.ObjectId | undefined;
|
|
2288
|
-
}>;
|
|
2289
|
-
declare const zMEventReg: z.ZodObject<{
|
|
2047
|
+
declare const zEventReg: z.ZodObject<{
|
|
2290
2048
|
paymentAmount: z.ZodNumber;
|
|
2291
2049
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
2292
2050
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
2293
|
-
userId: z.ZodOptional<z.
|
|
2051
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
2294
2052
|
firstName: z.ZodString;
|
|
2295
2053
|
lastName: z.ZodString;
|
|
2296
2054
|
rank: z.ZodString;
|
|
@@ -2299,21 +2057,21 @@ declare const zMEventReg: z.ZodObject<{
|
|
|
2299
2057
|
address: z.ZodOptional<z.ZodString>;
|
|
2300
2058
|
notes: z.ZodOptional<z.ZodString>;
|
|
2301
2059
|
tickets: z.ZodArray<z.ZodObject<{
|
|
2302
|
-
ticket: z.
|
|
2060
|
+
ticket: z.ZodString;
|
|
2303
2061
|
amount: z.ZodNumber;
|
|
2304
2062
|
}, "strip", z.ZodTypeAny, {
|
|
2305
2063
|
amount: number;
|
|
2306
|
-
ticket:
|
|
2064
|
+
ticket: string;
|
|
2307
2065
|
}, {
|
|
2308
2066
|
amount: number;
|
|
2309
|
-
ticket:
|
|
2067
|
+
ticket: string;
|
|
2310
2068
|
}>, "many">;
|
|
2311
2069
|
agaId: z.ZodString;
|
|
2312
|
-
tournamentId: z.
|
|
2070
|
+
tournamentId: z.ZodString;
|
|
2313
2071
|
donation: z.ZodOptional<z.ZodNumber>;
|
|
2314
2072
|
createMethod: z.ZodOptional<z.ZodString>;
|
|
2315
|
-
|
|
2316
|
-
|
|
2073
|
+
_id: z.ZodString;
|
|
2074
|
+
editedBy: z.ZodString;
|
|
2317
2075
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2318
2076
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2319
2077
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -2322,22 +2080,22 @@ declare const zMEventReg: z.ZodObject<{
|
|
|
2322
2080
|
lastName: string;
|
|
2323
2081
|
rank: string;
|
|
2324
2082
|
email: string;
|
|
2325
|
-
_id:
|
|
2083
|
+
_id: string;
|
|
2084
|
+
editedBy: string;
|
|
2326
2085
|
tickets: {
|
|
2327
2086
|
amount: number;
|
|
2328
|
-
ticket:
|
|
2087
|
+
ticket: string;
|
|
2329
2088
|
}[];
|
|
2330
2089
|
agaId: string;
|
|
2331
|
-
tournamentId:
|
|
2090
|
+
tournamentId: string;
|
|
2332
2091
|
paymentReceived?: boolean | undefined;
|
|
2333
2092
|
expireAt?: Date | undefined;
|
|
2334
|
-
userId?: string |
|
|
2093
|
+
userId?: string | undefined;
|
|
2335
2094
|
phone?: string | undefined;
|
|
2336
2095
|
address?: string | undefined;
|
|
2337
2096
|
notes?: string | undefined;
|
|
2338
2097
|
donation?: number | undefined;
|
|
2339
2098
|
createMethod?: string | undefined;
|
|
2340
|
-
edited?: Types.ObjectId | undefined;
|
|
2341
2099
|
createdAt?: Date | undefined;
|
|
2342
2100
|
updatedAt?: Date | undefined;
|
|
2343
2101
|
}, {
|
|
@@ -2346,30 +2104,30 @@ declare const zMEventReg: z.ZodObject<{
|
|
|
2346
2104
|
lastName: string;
|
|
2347
2105
|
rank: string;
|
|
2348
2106
|
email: string;
|
|
2349
|
-
_id:
|
|
2107
|
+
_id: string;
|
|
2108
|
+
editedBy: string;
|
|
2350
2109
|
tickets: {
|
|
2351
2110
|
amount: number;
|
|
2352
|
-
ticket:
|
|
2111
|
+
ticket: string;
|
|
2353
2112
|
}[];
|
|
2354
2113
|
agaId: string;
|
|
2355
|
-
tournamentId:
|
|
2114
|
+
tournamentId: string;
|
|
2356
2115
|
paymentReceived?: boolean | undefined;
|
|
2357
2116
|
expireAt?: Date | undefined;
|
|
2358
|
-
userId?: string |
|
|
2117
|
+
userId?: string | undefined;
|
|
2359
2118
|
phone?: string | undefined;
|
|
2360
2119
|
address?: string | undefined;
|
|
2361
2120
|
notes?: string | undefined;
|
|
2362
2121
|
donation?: number | undefined;
|
|
2363
2122
|
createMethod?: string | undefined;
|
|
2364
|
-
edited?: Types.ObjectId | undefined;
|
|
2365
2123
|
createdAt?: Date | undefined;
|
|
2366
2124
|
updatedAt?: Date | undefined;
|
|
2367
2125
|
}>;
|
|
2368
|
-
declare const
|
|
2126
|
+
declare const zEventRegResponse: z.ZodObject<{
|
|
2369
2127
|
paymentAmount: z.ZodNumber;
|
|
2370
2128
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
2371
2129
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
2372
|
-
userId: z.ZodOptional<z.
|
|
2130
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
2373
2131
|
firstName: z.ZodString;
|
|
2374
2132
|
lastName: z.ZodString;
|
|
2375
2133
|
rank: z.ZodString;
|
|
@@ -2377,6 +2135,14 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2377
2135
|
phone: z.ZodOptional<z.ZodString>;
|
|
2378
2136
|
address: z.ZodOptional<z.ZodString>;
|
|
2379
2137
|
notes: z.ZodOptional<z.ZodString>;
|
|
2138
|
+
_id: z.ZodString;
|
|
2139
|
+
editedBy: z.ZodString;
|
|
2140
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2141
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2142
|
+
agaId: z.ZodString;
|
|
2143
|
+
tournamentId: z.ZodString;
|
|
2144
|
+
donation: z.ZodOptional<z.ZodNumber>;
|
|
2145
|
+
createMethod: z.ZodOptional<z.ZodString>;
|
|
2380
2146
|
tickets: z.ZodArray<z.ZodObject<{
|
|
2381
2147
|
amount: z.ZodNumber;
|
|
2382
2148
|
ticket: z.ZodObject<{
|
|
@@ -2385,11 +2151,13 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2385
2151
|
description: z.ZodOptional<z.ZodString>;
|
|
2386
2152
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2387
2153
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2388
|
-
_id: z.ZodString
|
|
2154
|
+
_id: z.ZodString;
|
|
2155
|
+
editedBy: z.ZodString;
|
|
2389
2156
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2390
2157
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2391
2158
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2392
|
-
_id:
|
|
2159
|
+
_id: string;
|
|
2160
|
+
editedBy: string;
|
|
2393
2161
|
price: number;
|
|
2394
2162
|
name: string;
|
|
2395
2163
|
description?: string | undefined;
|
|
@@ -2398,7 +2166,8 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2398
2166
|
createdAt?: Date | undefined;
|
|
2399
2167
|
updatedAt?: Date | undefined;
|
|
2400
2168
|
}, {
|
|
2401
|
-
_id:
|
|
2169
|
+
_id: string;
|
|
2170
|
+
editedBy: string;
|
|
2402
2171
|
price: number;
|
|
2403
2172
|
name: string;
|
|
2404
2173
|
description?: string | undefined;
|
|
@@ -2410,7 +2179,8 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2410
2179
|
}, "strip", z.ZodTypeAny, {
|
|
2411
2180
|
amount: number;
|
|
2412
2181
|
ticket: {
|
|
2413
|
-
_id:
|
|
2182
|
+
_id: string;
|
|
2183
|
+
editedBy: string;
|
|
2414
2184
|
price: number;
|
|
2415
2185
|
name: string;
|
|
2416
2186
|
description?: string | undefined;
|
|
@@ -2422,7 +2192,8 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2422
2192
|
}, {
|
|
2423
2193
|
amount: number;
|
|
2424
2194
|
ticket: {
|
|
2425
|
-
_id:
|
|
2195
|
+
_id: string;
|
|
2196
|
+
editedBy: string;
|
|
2426
2197
|
price: number;
|
|
2427
2198
|
name: string;
|
|
2428
2199
|
description?: string | undefined;
|
|
@@ -2432,25 +2203,19 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2432
2203
|
updatedAt?: Date | undefined;
|
|
2433
2204
|
};
|
|
2434
2205
|
}>, "many">;
|
|
2435
|
-
agaId: z.ZodString;
|
|
2436
|
-
tournamentId: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2437
|
-
donation: z.ZodOptional<z.ZodNumber>;
|
|
2438
|
-
createMethod: z.ZodOptional<z.ZodString>;
|
|
2439
|
-
edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2440
|
-
_id: z.ZodString | z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2441
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2442
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2443
2206
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2444
2207
|
paymentAmount: number;
|
|
2445
2208
|
firstName: string;
|
|
2446
2209
|
lastName: string;
|
|
2447
2210
|
rank: string;
|
|
2448
2211
|
email: string;
|
|
2449
|
-
_id:
|
|
2212
|
+
_id: string;
|
|
2213
|
+
editedBy: string;
|
|
2450
2214
|
tickets: {
|
|
2451
2215
|
amount: number;
|
|
2452
2216
|
ticket: {
|
|
2453
|
-
_id:
|
|
2217
|
+
_id: string;
|
|
2218
|
+
editedBy: string;
|
|
2454
2219
|
price: number;
|
|
2455
2220
|
name: string;
|
|
2456
2221
|
description?: string | undefined;
|
|
@@ -2461,29 +2226,30 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2461
2226
|
};
|
|
2462
2227
|
}[];
|
|
2463
2228
|
agaId: string;
|
|
2464
|
-
tournamentId:
|
|
2229
|
+
tournamentId: string;
|
|
2465
2230
|
paymentReceived?: boolean | undefined;
|
|
2466
2231
|
expireAt?: Date | undefined;
|
|
2467
|
-
userId?: string |
|
|
2232
|
+
userId?: string | undefined;
|
|
2468
2233
|
phone?: string | undefined;
|
|
2469
2234
|
address?: string | undefined;
|
|
2470
2235
|
notes?: string | undefined;
|
|
2471
|
-
donation?: number | undefined;
|
|
2472
|
-
createMethod?: string | undefined;
|
|
2473
|
-
edited?: Types.ObjectId | undefined;
|
|
2474
2236
|
createdAt?: Date | undefined;
|
|
2475
2237
|
updatedAt?: Date | undefined;
|
|
2238
|
+
donation?: number | undefined;
|
|
2239
|
+
createMethod?: string | undefined;
|
|
2476
2240
|
}, {
|
|
2477
2241
|
paymentAmount: number;
|
|
2478
2242
|
firstName: string;
|
|
2479
2243
|
lastName: string;
|
|
2480
2244
|
rank: string;
|
|
2481
2245
|
email: string;
|
|
2482
|
-
_id:
|
|
2246
|
+
_id: string;
|
|
2247
|
+
editedBy: string;
|
|
2483
2248
|
tickets: {
|
|
2484
2249
|
amount: number;
|
|
2485
2250
|
ticket: {
|
|
2486
|
-
_id:
|
|
2251
|
+
_id: string;
|
|
2252
|
+
editedBy: string;
|
|
2487
2253
|
price: number;
|
|
2488
2254
|
name: string;
|
|
2489
2255
|
description?: string | undefined;
|
|
@@ -2494,36 +2260,34 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2494
2260
|
};
|
|
2495
2261
|
}[];
|
|
2496
2262
|
agaId: string;
|
|
2497
|
-
tournamentId:
|
|
2263
|
+
tournamentId: string;
|
|
2498
2264
|
paymentReceived?: boolean | undefined;
|
|
2499
2265
|
expireAt?: Date | undefined;
|
|
2500
|
-
userId?: string |
|
|
2266
|
+
userId?: string | undefined;
|
|
2501
2267
|
phone?: string | undefined;
|
|
2502
2268
|
address?: string | undefined;
|
|
2503
2269
|
notes?: string | undefined;
|
|
2504
|
-
donation?: number | undefined;
|
|
2505
|
-
createMethod?: string | undefined;
|
|
2506
|
-
edited?: Types.ObjectId | undefined;
|
|
2507
2270
|
createdAt?: Date | undefined;
|
|
2508
2271
|
updatedAt?: Date | undefined;
|
|
2272
|
+
donation?: number | undefined;
|
|
2273
|
+
createMethod?: string | undefined;
|
|
2509
2274
|
}>;
|
|
2275
|
+
type BEventReg = z.infer<typeof zBEventReg>;
|
|
2510
2276
|
type EventReg = z.infer<typeof zEventReg>;
|
|
2511
2277
|
type EventRegResponse = z.infer<typeof zEventRegResponse>;
|
|
2512
|
-
type MEventReg = z.infer<typeof zMEventReg>;
|
|
2513
|
-
type MEventRegResponse = z.infer<typeof zMEventRegResponse>;
|
|
2514
2278
|
|
|
2515
2279
|
declare const zEventTicketReg: z.ZodObject<{
|
|
2516
|
-
ticket: z.
|
|
2280
|
+
ticket: z.ZodString;
|
|
2517
2281
|
/**
|
|
2518
2282
|
* integer minimum 1, otherwise no ticket is being bought
|
|
2519
2283
|
*/
|
|
2520
2284
|
amount: z.ZodNumber;
|
|
2521
2285
|
}, "strip", z.ZodTypeAny, {
|
|
2522
2286
|
amount: number;
|
|
2523
|
-
ticket:
|
|
2287
|
+
ticket: string;
|
|
2524
2288
|
}, {
|
|
2525
2289
|
amount: number;
|
|
2526
|
-
ticket:
|
|
2290
|
+
ticket: string;
|
|
2527
2291
|
}>;
|
|
2528
2292
|
declare const zEventTicketRegResponse: z.ZodObject<{
|
|
2529
2293
|
amount: z.ZodNumber;
|
|
@@ -2533,11 +2297,13 @@ declare const zEventTicketRegResponse: z.ZodObject<{
|
|
|
2533
2297
|
description: z.ZodOptional<z.ZodString>;
|
|
2534
2298
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2535
2299
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2536
|
-
_id: z.ZodString
|
|
2300
|
+
_id: z.ZodString;
|
|
2301
|
+
editedBy: z.ZodString;
|
|
2537
2302
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2538
2303
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2539
2304
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2540
|
-
_id:
|
|
2305
|
+
_id: string;
|
|
2306
|
+
editedBy: string;
|
|
2541
2307
|
price: number;
|
|
2542
2308
|
name: string;
|
|
2543
2309
|
description?: string | undefined;
|
|
@@ -2546,7 +2312,8 @@ declare const zEventTicketRegResponse: z.ZodObject<{
|
|
|
2546
2312
|
createdAt?: Date | undefined;
|
|
2547
2313
|
updatedAt?: Date | undefined;
|
|
2548
2314
|
}, {
|
|
2549
|
-
_id:
|
|
2315
|
+
_id: string;
|
|
2316
|
+
editedBy: string;
|
|
2550
2317
|
price: number;
|
|
2551
2318
|
name: string;
|
|
2552
2319
|
description?: string | undefined;
|
|
@@ -2558,7 +2325,8 @@ declare const zEventTicketRegResponse: z.ZodObject<{
|
|
|
2558
2325
|
}, "strip", z.ZodTypeAny, {
|
|
2559
2326
|
amount: number;
|
|
2560
2327
|
ticket: {
|
|
2561
|
-
_id:
|
|
2328
|
+
_id: string;
|
|
2329
|
+
editedBy: string;
|
|
2562
2330
|
price: number;
|
|
2563
2331
|
name: string;
|
|
2564
2332
|
description?: string | undefined;
|
|
@@ -2570,7 +2338,8 @@ declare const zEventTicketRegResponse: z.ZodObject<{
|
|
|
2570
2338
|
}, {
|
|
2571
2339
|
amount: number;
|
|
2572
2340
|
ticket: {
|
|
2573
|
-
_id:
|
|
2341
|
+
_id: string;
|
|
2342
|
+
editedBy: string;
|
|
2574
2343
|
price: number;
|
|
2575
2344
|
name: string;
|
|
2576
2345
|
description?: string | undefined;
|
|
@@ -2583,7 +2352,7 @@ declare const zEventTicketRegResponse: z.ZodObject<{
|
|
|
2583
2352
|
type EventTicketRegResponse = z.infer<typeof zEventTicketRegResponse>;
|
|
2584
2353
|
type EventTicketReg = z.infer<typeof zEventTicketReg>;
|
|
2585
2354
|
|
|
2586
|
-
declare const
|
|
2355
|
+
declare const zBEventTicket: z.ZodObject<{
|
|
2587
2356
|
name: z.ZodString;
|
|
2588
2357
|
/**
|
|
2589
2358
|
* Price in cents
|
|
@@ -2614,17 +2383,19 @@ declare const zEventTicket: z.ZodObject<{
|
|
|
2614
2383
|
isNotBuyable?: boolean | undefined;
|
|
2615
2384
|
lastBuyableDate?: Date | undefined;
|
|
2616
2385
|
}>;
|
|
2617
|
-
declare const
|
|
2386
|
+
declare const zEventTicket: z.ZodObject<{
|
|
2618
2387
|
price: z.ZodNumber;
|
|
2619
2388
|
name: z.ZodString;
|
|
2620
2389
|
description: z.ZodOptional<z.ZodString>;
|
|
2621
2390
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2622
2391
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2623
|
-
_id: z.ZodString
|
|
2392
|
+
_id: z.ZodString;
|
|
2393
|
+
editedBy: z.ZodString;
|
|
2624
2394
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2625
2395
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2626
2396
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2627
|
-
_id:
|
|
2397
|
+
_id: string;
|
|
2398
|
+
editedBy: string;
|
|
2628
2399
|
price: number;
|
|
2629
2400
|
name: string;
|
|
2630
2401
|
description?: string | undefined;
|
|
@@ -2633,7 +2404,8 @@ declare const zMEventTicket: z.ZodObject<{
|
|
|
2633
2404
|
createdAt?: Date | undefined;
|
|
2634
2405
|
updatedAt?: Date | undefined;
|
|
2635
2406
|
}, {
|
|
2636
|
-
_id:
|
|
2407
|
+
_id: string;
|
|
2408
|
+
editedBy: string;
|
|
2637
2409
|
price: number;
|
|
2638
2410
|
name: string;
|
|
2639
2411
|
description?: string | undefined;
|
|
@@ -2642,8 +2414,8 @@ declare const zMEventTicket: z.ZodObject<{
|
|
|
2642
2414
|
createdAt?: Date | undefined;
|
|
2643
2415
|
updatedAt?: Date | undefined;
|
|
2644
2416
|
}>;
|
|
2417
|
+
type BEventTicket = z.infer<typeof zBEventTicket>;
|
|
2645
2418
|
type EventTicket = z.infer<typeof zEventTicket>;
|
|
2646
|
-
type MEventTicket = z.infer<typeof zMEventTicket>;
|
|
2647
2419
|
|
|
2648
2420
|
declare enum GoRank {
|
|
2649
2421
|
KYU1 = "1k",
|
|
@@ -2689,7 +2461,7 @@ declare enum GoRank {
|
|
|
2689
2461
|
PRO9 = "9p"
|
|
2690
2462
|
}
|
|
2691
2463
|
|
|
2692
|
-
declare const
|
|
2464
|
+
declare const zBUser: z.ZodObject<{
|
|
2693
2465
|
name: z.ZodString;
|
|
2694
2466
|
username: z.ZodOptional<z.ZodString>;
|
|
2695
2467
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -2720,7 +2492,7 @@ declare const zUser: z.ZodObject<{
|
|
|
2720
2492
|
phoneNumber?: string | undefined;
|
|
2721
2493
|
birthDate?: string | undefined;
|
|
2722
2494
|
}>;
|
|
2723
|
-
declare const
|
|
2495
|
+
declare const zUser: z.ZodObject<{
|
|
2724
2496
|
email: z.ZodOptional<z.ZodString>;
|
|
2725
2497
|
address: z.ZodOptional<z.ZodString>;
|
|
2726
2498
|
name: z.ZodString;
|
|
@@ -2730,11 +2502,13 @@ declare const zMUser: z.ZodObject<{
|
|
|
2730
2502
|
country: z.ZodOptional<z.ZodString>;
|
|
2731
2503
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2732
2504
|
birthDate: z.ZodOptional<z.ZodString>;
|
|
2733
|
-
_id: z.ZodString
|
|
2505
|
+
_id: z.ZodString;
|
|
2506
|
+
editedBy: z.ZodString;
|
|
2734
2507
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2735
2508
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2736
2509
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2737
|
-
_id:
|
|
2510
|
+
_id: string;
|
|
2511
|
+
editedBy: string;
|
|
2738
2512
|
name: string;
|
|
2739
2513
|
email?: string | undefined;
|
|
2740
2514
|
address?: string | undefined;
|
|
@@ -2747,7 +2521,8 @@ declare const zMUser: z.ZodObject<{
|
|
|
2747
2521
|
createdAt?: Date | undefined;
|
|
2748
2522
|
updatedAt?: Date | undefined;
|
|
2749
2523
|
}, {
|
|
2750
|
-
_id:
|
|
2524
|
+
_id: string;
|
|
2525
|
+
editedBy: string;
|
|
2751
2526
|
name: string;
|
|
2752
2527
|
email?: string | undefined;
|
|
2753
2528
|
address?: string | undefined;
|
|
@@ -2763,6 +2538,10 @@ declare const zMUser: z.ZodObject<{
|
|
|
2763
2538
|
declare const zStudent: z.ZodObject<{
|
|
2764
2539
|
email: z.ZodOptional<z.ZodString>;
|
|
2765
2540
|
address: z.ZodOptional<z.ZodString>;
|
|
2541
|
+
_id: z.ZodString;
|
|
2542
|
+
editedBy: z.ZodString;
|
|
2543
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2544
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2766
2545
|
name: z.ZodString;
|
|
2767
2546
|
username: z.ZodOptional<z.ZodString>;
|
|
2768
2547
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -2771,81 +2550,47 @@ declare const zStudent: z.ZodObject<{
|
|
|
2771
2550
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2772
2551
|
birthDate: z.ZodOptional<z.ZodString>;
|
|
2773
2552
|
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2774
|
-
guardian: z.ZodOptional<z.
|
|
2775
|
-
},
|
|
2553
|
+
guardian: z.ZodOptional<z.ZodString>;
|
|
2554
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2776
2555
|
rank: GoRank;
|
|
2556
|
+
_id: string;
|
|
2557
|
+
editedBy: string;
|
|
2777
2558
|
name: string;
|
|
2778
2559
|
email?: string | undefined;
|
|
2779
2560
|
address?: string | undefined;
|
|
2561
|
+
createdAt?: Date | undefined;
|
|
2562
|
+
updatedAt?: Date | undefined;
|
|
2780
2563
|
username?: string | undefined;
|
|
2781
2564
|
password?: string | undefined;
|
|
2782
2565
|
roles?: number[] | undefined;
|
|
2783
2566
|
country?: string | undefined;
|
|
2784
2567
|
phoneNumber?: string | undefined;
|
|
2785
2568
|
birthDate?: string | undefined;
|
|
2786
|
-
guardian?:
|
|
2569
|
+
guardian?: string | undefined;
|
|
2787
2570
|
}, {
|
|
2788
2571
|
rank: GoRank;
|
|
2572
|
+
_id: string;
|
|
2573
|
+
editedBy: string;
|
|
2789
2574
|
name: string;
|
|
2790
2575
|
email?: string | undefined;
|
|
2791
2576
|
address?: string | undefined;
|
|
2792
|
-
username?: string | undefined;
|
|
2793
|
-
password?: string | undefined;
|
|
2794
|
-
roles?: number[] | undefined;
|
|
2795
|
-
country?: string | undefined;
|
|
2796
|
-
phoneNumber?: string | undefined;
|
|
2797
|
-
birthDate?: string | undefined;
|
|
2798
|
-
guardian?: Types.ObjectId | undefined;
|
|
2799
|
-
}>;
|
|
2800
|
-
declare const zMStudent: z.ZodObject<{
|
|
2801
|
-
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2802
|
-
email: z.ZodOptional<z.ZodString>;
|
|
2803
|
-
address: z.ZodOptional<z.ZodString>;
|
|
2804
|
-
name: z.ZodString;
|
|
2805
|
-
username: z.ZodOptional<z.ZodString>;
|
|
2806
|
-
password: z.ZodOptional<z.ZodString>;
|
|
2807
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2808
|
-
country: z.ZodOptional<z.ZodString>;
|
|
2809
|
-
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2810
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
2811
|
-
guardian: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2812
|
-
_id: z.ZodString | z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2813
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2814
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2815
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2816
|
-
rank: GoRank;
|
|
2817
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2818
|
-
name: string;
|
|
2819
|
-
email?: string | undefined;
|
|
2820
|
-
address?: string | undefined;
|
|
2821
|
-
username?: string | undefined;
|
|
2822
|
-
password?: string | undefined;
|
|
2823
|
-
roles?: number[] | undefined;
|
|
2824
|
-
country?: string | undefined;
|
|
2825
|
-
phoneNumber?: string | undefined;
|
|
2826
|
-
birthDate?: string | undefined;
|
|
2827
|
-
guardian?: Types.ObjectId | undefined;
|
|
2828
2577
|
createdAt?: Date | undefined;
|
|
2829
2578
|
updatedAt?: Date | undefined;
|
|
2830
|
-
}, {
|
|
2831
|
-
rank: GoRank;
|
|
2832
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2833
|
-
name: string;
|
|
2834
|
-
email?: string | undefined;
|
|
2835
|
-
address?: string | undefined;
|
|
2836
2579
|
username?: string | undefined;
|
|
2837
2580
|
password?: string | undefined;
|
|
2838
2581
|
roles?: number[] | undefined;
|
|
2839
2582
|
country?: string | undefined;
|
|
2840
2583
|
phoneNumber?: string | undefined;
|
|
2841
2584
|
birthDate?: string | undefined;
|
|
2842
|
-
guardian?:
|
|
2843
|
-
createdAt?: Date | undefined;
|
|
2844
|
-
updatedAt?: Date | undefined;
|
|
2585
|
+
guardian?: string | undefined;
|
|
2845
2586
|
}>;
|
|
2846
2587
|
declare const zTeacher: z.ZodObject<{
|
|
2847
2588
|
email: z.ZodOptional<z.ZodString>;
|
|
2848
2589
|
address: z.ZodOptional<z.ZodString>;
|
|
2590
|
+
_id: z.ZodString;
|
|
2591
|
+
editedBy: z.ZodString;
|
|
2592
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2593
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2849
2594
|
name: z.ZodString;
|
|
2850
2595
|
username: z.ZodOptional<z.ZodString>;
|
|
2851
2596
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -2858,11 +2603,15 @@ declare const zTeacher: z.ZodObject<{
|
|
|
2858
2603
|
title: z.ZodOptional<z.ZodString>;
|
|
2859
2604
|
bio: z.ZodOptional<z.ZodString>;
|
|
2860
2605
|
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
2861
|
-
},
|
|
2606
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2862
2607
|
rank: GoRank;
|
|
2608
|
+
_id: string;
|
|
2609
|
+
editedBy: string;
|
|
2863
2610
|
name: string;
|
|
2864
2611
|
email?: string | undefined;
|
|
2865
2612
|
address?: string | undefined;
|
|
2613
|
+
createdAt?: Date | undefined;
|
|
2614
|
+
updatedAt?: Date | undefined;
|
|
2866
2615
|
username?: string | undefined;
|
|
2867
2616
|
password?: string | undefined;
|
|
2868
2617
|
roles?: number[] | undefined;
|
|
@@ -2875,64 +2624,13 @@ declare const zTeacher: z.ZodObject<{
|
|
|
2875
2624
|
available?: number[][][] | undefined;
|
|
2876
2625
|
}, {
|
|
2877
2626
|
rank: GoRank;
|
|
2627
|
+
_id: string;
|
|
2628
|
+
editedBy: string;
|
|
2878
2629
|
name: string;
|
|
2879
2630
|
email?: string | undefined;
|
|
2880
2631
|
address?: string | undefined;
|
|
2881
|
-
username?: string | undefined;
|
|
2882
|
-
password?: string | undefined;
|
|
2883
|
-
roles?: number[] | undefined;
|
|
2884
|
-
country?: string | undefined;
|
|
2885
|
-
phoneNumber?: string | undefined;
|
|
2886
|
-
birthDate?: string | undefined;
|
|
2887
|
-
isInactive?: boolean | undefined;
|
|
2888
|
-
title?: string | undefined;
|
|
2889
|
-
bio?: string | undefined;
|
|
2890
|
-
available?: number[][][] | undefined;
|
|
2891
|
-
}>;
|
|
2892
|
-
declare const zMTeacher: z.ZodObject<{
|
|
2893
|
-
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2894
|
-
email: z.ZodOptional<z.ZodString>;
|
|
2895
|
-
address: z.ZodOptional<z.ZodString>;
|
|
2896
|
-
name: z.ZodString;
|
|
2897
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2898
|
-
bio: z.ZodOptional<z.ZodString>;
|
|
2899
|
-
username: z.ZodOptional<z.ZodString>;
|
|
2900
|
-
password: z.ZodOptional<z.ZodString>;
|
|
2901
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2902
|
-
country: z.ZodOptional<z.ZodString>;
|
|
2903
|
-
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2904
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
2905
|
-
isInactive: z.ZodOptional<z.ZodBoolean>;
|
|
2906
|
-
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
2907
|
-
_id: z.ZodString | z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2908
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2909
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2910
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2911
|
-
rank: GoRank;
|
|
2912
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2913
|
-
name: string;
|
|
2914
|
-
email?: string | undefined;
|
|
2915
|
-
address?: string | undefined;
|
|
2916
|
-
title?: string | undefined;
|
|
2917
|
-
bio?: string | undefined;
|
|
2918
|
-
username?: string | undefined;
|
|
2919
|
-
password?: string | undefined;
|
|
2920
|
-
roles?: number[] | undefined;
|
|
2921
|
-
country?: string | undefined;
|
|
2922
|
-
phoneNumber?: string | undefined;
|
|
2923
|
-
birthDate?: string | undefined;
|
|
2924
|
-
isInactive?: boolean | undefined;
|
|
2925
|
-
available?: number[][][] | undefined;
|
|
2926
2632
|
createdAt?: Date | undefined;
|
|
2927
2633
|
updatedAt?: Date | undefined;
|
|
2928
|
-
}, {
|
|
2929
|
-
rank: GoRank;
|
|
2930
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2931
|
-
name: string;
|
|
2932
|
-
email?: string | undefined;
|
|
2933
|
-
address?: string | undefined;
|
|
2934
|
-
title?: string | undefined;
|
|
2935
|
-
bio?: string | undefined;
|
|
2936
2634
|
username?: string | undefined;
|
|
2937
2635
|
password?: string | undefined;
|
|
2938
2636
|
roles?: number[] | undefined;
|
|
@@ -2940,16 +2638,14 @@ declare const zMTeacher: z.ZodObject<{
|
|
|
2940
2638
|
phoneNumber?: string | undefined;
|
|
2941
2639
|
birthDate?: string | undefined;
|
|
2942
2640
|
isInactive?: boolean | undefined;
|
|
2641
|
+
title?: string | undefined;
|
|
2642
|
+
bio?: string | undefined;
|
|
2943
2643
|
available?: number[][][] | undefined;
|
|
2944
|
-
createdAt?: Date | undefined;
|
|
2945
|
-
updatedAt?: Date | undefined;
|
|
2946
2644
|
}>;
|
|
2947
|
-
type
|
|
2948
|
-
type MStudent = z.infer<typeof zMStudent>;
|
|
2645
|
+
type BUser = z.infer<typeof zBUser>;
|
|
2949
2646
|
type User = z.infer<typeof zUser>;
|
|
2950
|
-
type
|
|
2647
|
+
type Student = z.infer<typeof zStudent>;
|
|
2951
2648
|
type Teacher = z.infer<typeof zTeacher>;
|
|
2952
|
-
type MTeacher = z.infer<typeof zMTeacher>;
|
|
2953
2649
|
|
|
2954
2650
|
declare const zUserRoles: z.ZodObject<{
|
|
2955
2651
|
user: z.ZodNumber;
|
|
@@ -2966,4 +2662,4 @@ declare const zUserRoles: z.ZodObject<{
|
|
|
2966
2662
|
}>;
|
|
2967
2663
|
type UserRoles = z.infer<typeof zUserRoles>;
|
|
2968
2664
|
|
|
2969
|
-
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type
|
|
2665
|
+
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|