@nyig/models 0.2.27 → 0.2.30
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 +463 -790
- package/index.d.ts +463 -790
- package/index.js +108 -148
- package/index.mjs +92 -127
- 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.
|
|
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
|
*/
|
|
@@ -179,60 +180,69 @@ declare const zCampTracker: z.ZodObject<{
|
|
|
179
180
|
* attendances are tracked by week for camps
|
|
180
181
|
*/
|
|
181
182
|
attendances: z.ZodArray<z.ZodString, "many">;
|
|
183
|
+
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
182
184
|
notes: z.ZodOptional<z.ZodString>;
|
|
183
185
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
course:
|
|
185
|
-
teacher:
|
|
186
|
-
semester:
|
|
186
|
+
course: string;
|
|
187
|
+
teacher: string;
|
|
188
|
+
semester: string;
|
|
187
189
|
occurrences: string[];
|
|
188
190
|
attendances: string[];
|
|
191
|
+
isNonPublic?: boolean | undefined;
|
|
189
192
|
notes?: string | undefined;
|
|
190
193
|
}, {
|
|
191
|
-
course:
|
|
192
|
-
teacher:
|
|
193
|
-
semester:
|
|
194
|
+
course: string;
|
|
195
|
+
teacher: string;
|
|
196
|
+
semester: string;
|
|
194
197
|
occurrences: string[];
|
|
195
198
|
attendances: string[];
|
|
199
|
+
isNonPublic?: boolean | undefined;
|
|
196
200
|
notes?: string | undefined;
|
|
197
201
|
}>;
|
|
198
|
-
declare const
|
|
202
|
+
declare const zCampTracker: z.ZodObject<{
|
|
199
203
|
notes: z.ZodOptional<z.ZodString>;
|
|
200
|
-
course: z.
|
|
201
|
-
teacher: z.
|
|
202
|
-
semester: z.
|
|
204
|
+
course: z.ZodString;
|
|
205
|
+
teacher: z.ZodString;
|
|
206
|
+
semester: z.ZodString;
|
|
203
207
|
occurrences: z.ZodArray<z.ZodString, "many">;
|
|
204
208
|
attendances: z.ZodArray<z.ZodString, "many">;
|
|
205
|
-
|
|
209
|
+
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
210
|
+
_id: z.ZodString;
|
|
211
|
+
editedBy: z.ZodString;
|
|
206
212
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
207
213
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
208
214
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
209
|
-
_id:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
215
|
+
_id: string;
|
|
216
|
+
editedBy: string;
|
|
217
|
+
course: string;
|
|
218
|
+
teacher: string;
|
|
219
|
+
semester: string;
|
|
213
220
|
occurrences: string[];
|
|
214
221
|
attendances: string[];
|
|
215
222
|
notes?: string | undefined;
|
|
223
|
+
isNonPublic?: boolean | undefined;
|
|
216
224
|
createdAt?: Date | undefined;
|
|
217
225
|
updatedAt?: Date | undefined;
|
|
218
226
|
}, {
|
|
219
|
-
_id:
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
227
|
+
_id: string;
|
|
228
|
+
editedBy: string;
|
|
229
|
+
course: string;
|
|
230
|
+
teacher: string;
|
|
231
|
+
semester: string;
|
|
223
232
|
occurrences: string[];
|
|
224
233
|
attendances: string[];
|
|
225
234
|
notes?: string | undefined;
|
|
235
|
+
isNonPublic?: boolean | undefined;
|
|
226
236
|
createdAt?: Date | undefined;
|
|
227
237
|
updatedAt?: Date | undefined;
|
|
228
238
|
}>;
|
|
239
|
+
type BCampTracker = z.infer<typeof zBCampTracker>;
|
|
229
240
|
type CampTracker = z.infer<typeof zCampTracker>;
|
|
230
|
-
type MCampTracker = z.infer<typeof zMCampTracker>;
|
|
231
241
|
|
|
232
|
-
declare const
|
|
233
|
-
course: z.
|
|
234
|
-
teacher: z.
|
|
235
|
-
student: z.
|
|
242
|
+
declare const zBClassTracker: z.ZodObject<{
|
|
243
|
+
course: z.ZodString;
|
|
244
|
+
teacher: z.ZodString;
|
|
245
|
+
student: z.ZodString;
|
|
236
246
|
classTimes: z.ZodArray<z.ZodDate, "many">;
|
|
237
247
|
completedList: z.ZodArray<z.ZodBoolean, "many">;
|
|
238
248
|
/**
|
|
@@ -256,9 +266,9 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
256
266
|
paused: z.ZodOptional<z.ZodBoolean>;
|
|
257
267
|
notes: z.ZodOptional<z.ZodString>;
|
|
258
268
|
}, "strip", z.ZodTypeAny, {
|
|
259
|
-
student:
|
|
260
|
-
course:
|
|
261
|
-
teacher:
|
|
269
|
+
student: string;
|
|
270
|
+
course: string;
|
|
271
|
+
teacher: string;
|
|
262
272
|
classTimes: Date[];
|
|
263
273
|
completedList: boolean[];
|
|
264
274
|
completed?: boolean | undefined;
|
|
@@ -271,9 +281,9 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
271
281
|
paused?: boolean | undefined;
|
|
272
282
|
notes?: string | undefined;
|
|
273
283
|
}, {
|
|
274
|
-
student:
|
|
275
|
-
course:
|
|
276
|
-
teacher:
|
|
284
|
+
student: string;
|
|
285
|
+
course: string;
|
|
286
|
+
teacher: string;
|
|
277
287
|
classTimes: Date[];
|
|
278
288
|
completedList: boolean[];
|
|
279
289
|
completed?: boolean | undefined;
|
|
@@ -286,9 +296,9 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
286
296
|
paused?: boolean | undefined;
|
|
287
297
|
notes?: string | undefined;
|
|
288
298
|
}>;
|
|
289
|
-
declare const
|
|
299
|
+
declare const zClassTracker: z.ZodObject<{
|
|
290
300
|
notes: z.ZodOptional<z.ZodString>;
|
|
291
|
-
student: z.
|
|
301
|
+
student: z.ZodString;
|
|
292
302
|
tuition: z.ZodOptional<z.ZodObject<{
|
|
293
303
|
primary: z.ZodNumber;
|
|
294
304
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -303,20 +313,22 @@ declare const zMClassTracker: z.ZodObject<{
|
|
|
303
313
|
shipping?: boolean | undefined;
|
|
304
314
|
}>>;
|
|
305
315
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
-
course: z.
|
|
307
|
-
teacher: z.
|
|
316
|
+
course: z.ZodString;
|
|
317
|
+
teacher: z.ZodString;
|
|
308
318
|
classTimes: z.ZodArray<z.ZodDate, "many">;
|
|
309
319
|
completedList: z.ZodArray<z.ZodBoolean, "many">;
|
|
310
320
|
completed: z.ZodOptional<z.ZodBoolean>;
|
|
311
321
|
paused: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
-
_id: z.
|
|
322
|
+
_id: z.ZodString;
|
|
323
|
+
editedBy: z.ZodString;
|
|
313
324
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
314
325
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
315
326
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
316
|
-
_id:
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
327
|
+
_id: string;
|
|
328
|
+
editedBy: string;
|
|
329
|
+
student: string;
|
|
330
|
+
course: string;
|
|
331
|
+
teacher: string;
|
|
320
332
|
classTimes: Date[];
|
|
321
333
|
completedList: boolean[];
|
|
322
334
|
notes?: string | undefined;
|
|
@@ -331,10 +343,11 @@ declare const zMClassTracker: z.ZodObject<{
|
|
|
331
343
|
createdAt?: Date | undefined;
|
|
332
344
|
updatedAt?: Date | undefined;
|
|
333
345
|
}, {
|
|
334
|
-
_id:
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
346
|
+
_id: string;
|
|
347
|
+
editedBy: string;
|
|
348
|
+
student: string;
|
|
349
|
+
course: string;
|
|
350
|
+
teacher: string;
|
|
338
351
|
classTimes: Date[];
|
|
339
352
|
completedList: boolean[];
|
|
340
353
|
notes?: string | undefined;
|
|
@@ -349,8 +362,8 @@ declare const zMClassTracker: z.ZodObject<{
|
|
|
349
362
|
createdAt?: Date | undefined;
|
|
350
363
|
updatedAt?: Date | undefined;
|
|
351
364
|
}>;
|
|
365
|
+
type BClassTracker = z.infer<typeof zBClassTracker>;
|
|
352
366
|
type ClassTracker = z.infer<typeof zClassTracker>;
|
|
353
|
-
type MClassTracker = z.infer<typeof zMClassTracker>;
|
|
354
367
|
|
|
355
368
|
declare enum AgeGroup {
|
|
356
369
|
ADULT = "Adult",
|
|
@@ -370,7 +383,7 @@ declare enum NYIGSchool {
|
|
|
370
383
|
ONLINE = "Online"
|
|
371
384
|
}
|
|
372
385
|
|
|
373
|
-
declare const
|
|
386
|
+
declare const zBCourse: z.ZodObject<{
|
|
374
387
|
name: z.ZodString;
|
|
375
388
|
category: z.ZodNativeEnum<typeof CourseCategory>;
|
|
376
389
|
/**
|
|
@@ -419,7 +432,7 @@ declare const zCourse: z.ZodObject<{
|
|
|
419
432
|
halfCampTuition?: number | undefined;
|
|
420
433
|
fullCampTuition?: number | undefined;
|
|
421
434
|
}>;
|
|
422
|
-
declare const
|
|
435
|
+
declare const zCourse: z.ZodObject<{
|
|
423
436
|
price: z.ZodNumber;
|
|
424
437
|
name: z.ZodString;
|
|
425
438
|
category: z.ZodNativeEnum<typeof CourseCategory>;
|
|
@@ -429,11 +442,13 @@ declare const zMCourse: z.ZodObject<{
|
|
|
429
442
|
recLevel: z.ZodString;
|
|
430
443
|
halfCampTuition: z.ZodOptional<z.ZodNumber>;
|
|
431
444
|
fullCampTuition: z.ZodOptional<z.ZodNumber>;
|
|
432
|
-
_id: z.
|
|
445
|
+
_id: z.ZodString;
|
|
446
|
+
editedBy: z.ZodString;
|
|
433
447
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
434
448
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
435
449
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
436
|
-
_id:
|
|
450
|
+
_id: string;
|
|
451
|
+
editedBy: string;
|
|
437
452
|
price: number;
|
|
438
453
|
name: string;
|
|
439
454
|
category: CourseCategory;
|
|
@@ -446,7 +461,8 @@ declare const zMCourse: z.ZodObject<{
|
|
|
446
461
|
createdAt?: Date | undefined;
|
|
447
462
|
updatedAt?: Date | undefined;
|
|
448
463
|
}, {
|
|
449
|
-
_id:
|
|
464
|
+
_id: string;
|
|
465
|
+
editedBy: string;
|
|
450
466
|
price: number;
|
|
451
467
|
name: string;
|
|
452
468
|
category: CourseCategory;
|
|
@@ -459,13 +475,13 @@ declare const zMCourse: z.ZodObject<{
|
|
|
459
475
|
createdAt?: Date | undefined;
|
|
460
476
|
updatedAt?: Date | undefined;
|
|
461
477
|
}>;
|
|
478
|
+
type BCourse = z.infer<typeof zBCourse>;
|
|
462
479
|
type Course = z.infer<typeof zCourse>;
|
|
463
|
-
type MCourse = z.infer<typeof zMCourse>;
|
|
464
480
|
|
|
465
|
-
declare const
|
|
466
|
-
course: z.
|
|
467
|
-
teacher: z.
|
|
468
|
-
semester: z.
|
|
481
|
+
declare const zBGroupTracker: z.ZodObject<{
|
|
482
|
+
course: z.ZodString;
|
|
483
|
+
teacher: z.ZodString;
|
|
484
|
+
semester: z.ZodString;
|
|
469
485
|
scheduleData: z.ZodObject<{
|
|
470
486
|
startTime: z.ZodString;
|
|
471
487
|
dayOfWeek: z.ZodNumber;
|
|
@@ -483,7 +499,7 @@ declare const zGroupTracker: z.ZodObject<{
|
|
|
483
499
|
/**
|
|
484
500
|
* attendances are tracked by week for Groups
|
|
485
501
|
*/
|
|
486
|
-
attendances: z.ZodArray<z.
|
|
502
|
+
attendances: z.ZodArray<z.ZodString, "many">;
|
|
487
503
|
/**
|
|
488
504
|
* public-facing ID of the course instance, e.g., 101
|
|
489
505
|
*/
|
|
@@ -498,11 +514,11 @@ declare const zGroupTracker: z.ZodObject<{
|
|
|
498
514
|
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
499
515
|
notes: z.ZodOptional<z.ZodString>;
|
|
500
516
|
}, "strip", z.ZodTypeAny, {
|
|
501
|
-
course:
|
|
502
|
-
teacher:
|
|
503
|
-
semester:
|
|
517
|
+
course: string;
|
|
518
|
+
teacher: string;
|
|
519
|
+
semester: string;
|
|
504
520
|
occurrences: Date[];
|
|
505
|
-
attendances:
|
|
521
|
+
attendances: string[];
|
|
506
522
|
scheduleData: {
|
|
507
523
|
startTime: string;
|
|
508
524
|
dayOfWeek: number;
|
|
@@ -512,11 +528,11 @@ declare const zGroupTracker: z.ZodObject<{
|
|
|
512
528
|
isNonPublic?: boolean | undefined;
|
|
513
529
|
notes?: string | undefined;
|
|
514
530
|
}, {
|
|
515
|
-
course:
|
|
516
|
-
teacher:
|
|
517
|
-
semester:
|
|
531
|
+
course: string;
|
|
532
|
+
teacher: string;
|
|
533
|
+
semester: string;
|
|
518
534
|
occurrences: Date[];
|
|
519
|
-
attendances:
|
|
535
|
+
attendances: string[];
|
|
520
536
|
scheduleData: {
|
|
521
537
|
startTime: string;
|
|
522
538
|
dayOfWeek: number;
|
|
@@ -526,13 +542,14 @@ declare const zGroupTracker: z.ZodObject<{
|
|
|
526
542
|
isNonPublic?: boolean | undefined;
|
|
527
543
|
notes?: string | undefined;
|
|
528
544
|
}>;
|
|
529
|
-
declare const
|
|
545
|
+
declare const zGroupTracker: z.ZodObject<{
|
|
530
546
|
notes: z.ZodOptional<z.ZodString>;
|
|
531
|
-
course: z.
|
|
532
|
-
teacher: z.
|
|
533
|
-
semester: z.
|
|
547
|
+
course: z.ZodString;
|
|
548
|
+
teacher: z.ZodString;
|
|
549
|
+
semester: z.ZodString;
|
|
534
550
|
occurrences: z.ZodArray<z.ZodDate, "many">;
|
|
535
|
-
attendances: z.ZodArray<z.
|
|
551
|
+
attendances: z.ZodArray<z.ZodString, "many">;
|
|
552
|
+
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
536
553
|
scheduleData: z.ZodObject<{
|
|
537
554
|
startTime: z.ZodString;
|
|
538
555
|
dayOfWeek: z.ZodNumber;
|
|
@@ -545,47 +562,49 @@ declare const zMGroupTracker: z.ZodObject<{
|
|
|
545
562
|
}>;
|
|
546
563
|
courseId: z.ZodOptional<z.ZodString>;
|
|
547
564
|
ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
|
|
548
|
-
|
|
549
|
-
|
|
565
|
+
_id: z.ZodString;
|
|
566
|
+
editedBy: z.ZodString;
|
|
550
567
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
551
568
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
552
569
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
553
|
-
_id:
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
570
|
+
_id: string;
|
|
571
|
+
editedBy: string;
|
|
572
|
+
course: string;
|
|
573
|
+
teacher: string;
|
|
574
|
+
semester: string;
|
|
557
575
|
occurrences: Date[];
|
|
558
|
-
attendances:
|
|
576
|
+
attendances: string[];
|
|
559
577
|
scheduleData: {
|
|
560
578
|
startTime: string;
|
|
561
579
|
dayOfWeek: number;
|
|
562
580
|
};
|
|
563
581
|
notes?: string | undefined;
|
|
582
|
+
isNonPublic?: boolean | undefined;
|
|
564
583
|
courseId?: string | undefined;
|
|
565
584
|
ageGroup?: AgeGroup | undefined;
|
|
566
|
-
isNonPublic?: boolean | undefined;
|
|
567
585
|
createdAt?: Date | undefined;
|
|
568
586
|
updatedAt?: Date | undefined;
|
|
569
587
|
}, {
|
|
570
|
-
_id:
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
588
|
+
_id: string;
|
|
589
|
+
editedBy: string;
|
|
590
|
+
course: string;
|
|
591
|
+
teacher: string;
|
|
592
|
+
semester: string;
|
|
574
593
|
occurrences: Date[];
|
|
575
|
-
attendances:
|
|
594
|
+
attendances: string[];
|
|
576
595
|
scheduleData: {
|
|
577
596
|
startTime: string;
|
|
578
597
|
dayOfWeek: number;
|
|
579
598
|
};
|
|
580
599
|
notes?: string | undefined;
|
|
600
|
+
isNonPublic?: boolean | undefined;
|
|
581
601
|
courseId?: string | undefined;
|
|
582
602
|
ageGroup?: AgeGroup | undefined;
|
|
583
|
-
isNonPublic?: boolean | undefined;
|
|
584
603
|
createdAt?: Date | undefined;
|
|
585
604
|
updatedAt?: Date | undefined;
|
|
586
605
|
}>;
|
|
606
|
+
type BGroupTracker = z.infer<typeof zBGroupTracker>;
|
|
587
607
|
type GroupTracker = z.infer<typeof zGroupTracker>;
|
|
588
|
-
type MGroupTracker = z.infer<typeof zMGroupTracker>;
|
|
589
608
|
|
|
590
609
|
declare const zScheduleData: z.ZodObject<{
|
|
591
610
|
startTime: z.ZodString;
|
|
@@ -599,8 +618,8 @@ declare const zScheduleData: z.ZodObject<{
|
|
|
599
618
|
}>;
|
|
600
619
|
type ScheduleData = z.infer<typeof zScheduleData>;
|
|
601
620
|
|
|
602
|
-
declare const
|
|
603
|
-
userId: z.ZodOptional<z.
|
|
621
|
+
declare const zBCampBooking: z.ZodObject<{
|
|
622
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
604
623
|
firstName: z.ZodString;
|
|
605
624
|
lastName: z.ZodString;
|
|
606
625
|
rank: z.ZodString;
|
|
@@ -625,7 +644,7 @@ declare const zCampBooking: z.ZodObject<{
|
|
|
625
644
|
campOption: CampOption;
|
|
626
645
|
isOnline: boolean;
|
|
627
646
|
classDates: string;
|
|
628
|
-
userId?: string |
|
|
647
|
+
userId?: string | undefined;
|
|
629
648
|
phone?: string | undefined;
|
|
630
649
|
address?: string | undefined;
|
|
631
650
|
notes?: string | undefined;
|
|
@@ -642,7 +661,7 @@ declare const zCampBooking: z.ZodObject<{
|
|
|
642
661
|
campOption: CampOption;
|
|
643
662
|
isOnline: boolean;
|
|
644
663
|
classDates: string;
|
|
645
|
-
userId?: string |
|
|
664
|
+
userId?: string | undefined;
|
|
646
665
|
phone?: string | undefined;
|
|
647
666
|
address?: string | undefined;
|
|
648
667
|
notes?: string | undefined;
|
|
@@ -651,11 +670,11 @@ declare const zCampBooking: z.ZodObject<{
|
|
|
651
670
|
paymentReceived?: boolean | undefined;
|
|
652
671
|
expireAt?: Date | undefined;
|
|
653
672
|
}>;
|
|
654
|
-
declare const
|
|
673
|
+
declare const zCampBooking: z.ZodObject<{
|
|
655
674
|
paymentAmount: z.ZodNumber;
|
|
656
675
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
657
676
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
658
|
-
userId: z.ZodOptional<z.
|
|
677
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
659
678
|
firstName: z.ZodString;
|
|
660
679
|
lastName: z.ZodString;
|
|
661
680
|
rank: z.ZodString;
|
|
@@ -668,7 +687,8 @@ declare const zMCampBooking: z.ZodObject<{
|
|
|
668
687
|
ctId: z.ZodOptional<z.ZodString>;
|
|
669
688
|
isOnline: z.ZodBoolean;
|
|
670
689
|
classDates: z.ZodString;
|
|
671
|
-
_id: z.
|
|
690
|
+
_id: z.ZodString;
|
|
691
|
+
editedBy: z.ZodString;
|
|
672
692
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
673
693
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
674
694
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -677,13 +697,14 @@ declare const zMCampBooking: z.ZodObject<{
|
|
|
677
697
|
lastName: string;
|
|
678
698
|
rank: string;
|
|
679
699
|
email: string;
|
|
680
|
-
_id:
|
|
700
|
+
_id: string;
|
|
701
|
+
editedBy: string;
|
|
681
702
|
campOption: CampOption;
|
|
682
703
|
isOnline: boolean;
|
|
683
704
|
classDates: string;
|
|
684
705
|
paymentReceived?: boolean | undefined;
|
|
685
706
|
expireAt?: Date | undefined;
|
|
686
|
-
userId?: string |
|
|
707
|
+
userId?: string | undefined;
|
|
687
708
|
phone?: string | undefined;
|
|
688
709
|
address?: string | undefined;
|
|
689
710
|
notes?: string | undefined;
|
|
@@ -697,13 +718,14 @@ declare const zMCampBooking: z.ZodObject<{
|
|
|
697
718
|
lastName: string;
|
|
698
719
|
rank: string;
|
|
699
720
|
email: string;
|
|
700
|
-
_id:
|
|
721
|
+
_id: string;
|
|
722
|
+
editedBy: string;
|
|
701
723
|
campOption: CampOption;
|
|
702
724
|
isOnline: boolean;
|
|
703
725
|
classDates: string;
|
|
704
726
|
paymentReceived?: boolean | undefined;
|
|
705
727
|
expireAt?: Date | undefined;
|
|
706
|
-
userId?: string |
|
|
728
|
+
userId?: string | undefined;
|
|
707
729
|
phone?: string | undefined;
|
|
708
730
|
address?: string | undefined;
|
|
709
731
|
notes?: string | undefined;
|
|
@@ -712,11 +734,11 @@ declare const zMCampBooking: z.ZodObject<{
|
|
|
712
734
|
createdAt?: Date | undefined;
|
|
713
735
|
updatedAt?: Date | undefined;
|
|
714
736
|
}>;
|
|
737
|
+
type BCampBooking = z.infer<typeof zBCampBooking>;
|
|
715
738
|
type CampBooking = z.infer<typeof zCampBooking>;
|
|
716
|
-
type MCampBooking = z.infer<typeof zMCampBooking>;
|
|
717
739
|
|
|
718
|
-
declare const
|
|
719
|
-
userId: z.ZodOptional<z.
|
|
740
|
+
declare const zBGroupBooking: z.ZodObject<{
|
|
741
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
720
742
|
firstName: z.ZodString;
|
|
721
743
|
lastName: z.ZodString;
|
|
722
744
|
rank: z.ZodString;
|
|
@@ -726,7 +748,7 @@ declare const zGroupBooking: z.ZodObject<{
|
|
|
726
748
|
notes: z.ZodOptional<z.ZodString>;
|
|
727
749
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
728
750
|
isOnline: z.ZodBoolean;
|
|
729
|
-
gtId: z.ZodOptional<z.
|
|
751
|
+
gtId: z.ZodOptional<z.ZodString>;
|
|
730
752
|
isTrial: z.ZodOptional<z.ZodBoolean>;
|
|
731
753
|
classDate: z.ZodOptional<z.ZodString>;
|
|
732
754
|
paymentAmount: z.ZodNumber;
|
|
@@ -739,12 +761,12 @@ declare const zGroupBooking: z.ZodObject<{
|
|
|
739
761
|
rank: string;
|
|
740
762
|
email: string;
|
|
741
763
|
isOnline: boolean;
|
|
742
|
-
userId?: string |
|
|
764
|
+
userId?: string | undefined;
|
|
743
765
|
phone?: string | undefined;
|
|
744
766
|
address?: string | undefined;
|
|
745
767
|
notes?: string | undefined;
|
|
746
768
|
shipping?: boolean | undefined;
|
|
747
|
-
gtId?: string |
|
|
769
|
+
gtId?: string | undefined;
|
|
748
770
|
isTrial?: boolean | undefined;
|
|
749
771
|
classDate?: string | undefined;
|
|
750
772
|
paymentReceived?: boolean | undefined;
|
|
@@ -756,22 +778,22 @@ declare const zGroupBooking: z.ZodObject<{
|
|
|
756
778
|
rank: string;
|
|
757
779
|
email: string;
|
|
758
780
|
isOnline: boolean;
|
|
759
|
-
userId?: string |
|
|
781
|
+
userId?: string | undefined;
|
|
760
782
|
phone?: string | undefined;
|
|
761
783
|
address?: string | undefined;
|
|
762
784
|
notes?: string | undefined;
|
|
763
785
|
shipping?: boolean | undefined;
|
|
764
|
-
gtId?: string |
|
|
786
|
+
gtId?: string | undefined;
|
|
765
787
|
isTrial?: boolean | undefined;
|
|
766
788
|
classDate?: string | undefined;
|
|
767
789
|
paymentReceived?: boolean | undefined;
|
|
768
790
|
expireAt?: Date | undefined;
|
|
769
791
|
}>;
|
|
770
|
-
declare const
|
|
792
|
+
declare const zGroupBooking: z.ZodObject<{
|
|
771
793
|
paymentAmount: z.ZodNumber;
|
|
772
794
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
773
795
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
774
|
-
userId: z.ZodOptional<z.
|
|
796
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
775
797
|
firstName: z.ZodString;
|
|
776
798
|
lastName: z.ZodString;
|
|
777
799
|
rank: z.ZodString;
|
|
@@ -781,10 +803,11 @@ declare const zMGroupBooking: z.ZodObject<{
|
|
|
781
803
|
notes: z.ZodOptional<z.ZodString>;
|
|
782
804
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
783
805
|
isOnline: z.ZodBoolean;
|
|
784
|
-
gtId: z.ZodOptional<z.
|
|
806
|
+
gtId: z.ZodOptional<z.ZodString>;
|
|
785
807
|
isTrial: z.ZodOptional<z.ZodBoolean>;
|
|
786
808
|
classDate: z.ZodOptional<z.ZodString>;
|
|
787
|
-
_id: z.
|
|
809
|
+
_id: z.ZodString;
|
|
810
|
+
editedBy: z.ZodString;
|
|
788
811
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
789
812
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
790
813
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -793,16 +816,17 @@ declare const zMGroupBooking: z.ZodObject<{
|
|
|
793
816
|
lastName: string;
|
|
794
817
|
rank: string;
|
|
795
818
|
email: string;
|
|
796
|
-
_id:
|
|
819
|
+
_id: string;
|
|
820
|
+
editedBy: string;
|
|
797
821
|
isOnline: boolean;
|
|
798
822
|
paymentReceived?: boolean | undefined;
|
|
799
823
|
expireAt?: Date | undefined;
|
|
800
|
-
userId?: string |
|
|
824
|
+
userId?: string | undefined;
|
|
801
825
|
phone?: string | undefined;
|
|
802
826
|
address?: string | undefined;
|
|
803
827
|
notes?: string | undefined;
|
|
804
828
|
shipping?: boolean | undefined;
|
|
805
|
-
gtId?: string |
|
|
829
|
+
gtId?: string | undefined;
|
|
806
830
|
isTrial?: boolean | undefined;
|
|
807
831
|
classDate?: string | undefined;
|
|
808
832
|
createdAt?: Date | undefined;
|
|
@@ -813,26 +837,27 @@ declare const zMGroupBooking: z.ZodObject<{
|
|
|
813
837
|
lastName: string;
|
|
814
838
|
rank: string;
|
|
815
839
|
email: string;
|
|
816
|
-
_id:
|
|
840
|
+
_id: string;
|
|
841
|
+
editedBy: string;
|
|
817
842
|
isOnline: boolean;
|
|
818
843
|
paymentReceived?: boolean | undefined;
|
|
819
844
|
expireAt?: Date | undefined;
|
|
820
|
-
userId?: string |
|
|
845
|
+
userId?: string | undefined;
|
|
821
846
|
phone?: string | undefined;
|
|
822
847
|
address?: string | undefined;
|
|
823
848
|
notes?: string | undefined;
|
|
824
849
|
shipping?: boolean | undefined;
|
|
825
|
-
gtId?: string |
|
|
850
|
+
gtId?: string | undefined;
|
|
826
851
|
isTrial?: boolean | undefined;
|
|
827
852
|
classDate?: string | undefined;
|
|
828
853
|
createdAt?: Date | undefined;
|
|
829
854
|
updatedAt?: Date | undefined;
|
|
830
855
|
}>;
|
|
856
|
+
type BGroupBooking = z.infer<typeof zBGroupBooking>;
|
|
831
857
|
type GroupBooking = z.infer<typeof zGroupBooking>;
|
|
832
|
-
type MGroupBooking = z.infer<typeof zMGroupBooking>;
|
|
833
858
|
|
|
834
|
-
declare const
|
|
835
|
-
userId: z.ZodOptional<z.
|
|
859
|
+
declare const zBPrivateBooking: z.ZodObject<{
|
|
860
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
836
861
|
firstName: z.ZodString;
|
|
837
862
|
lastName: z.ZodString;
|
|
838
863
|
rank: z.ZodString;
|
|
@@ -840,9 +865,9 @@ declare const zPrivateBooking: z.ZodObject<{
|
|
|
840
865
|
phone: z.ZodOptional<z.ZodString>;
|
|
841
866
|
address: z.ZodOptional<z.ZodString>;
|
|
842
867
|
notes: z.ZodOptional<z.ZodString>;
|
|
843
|
-
courseId: z.
|
|
868
|
+
courseId: z.ZodString;
|
|
844
869
|
classDate: z.ZodOptional<z.ZodString>;
|
|
845
|
-
teacherId: z.
|
|
870
|
+
teacherId: z.ZodString;
|
|
846
871
|
paymentAmount: z.ZodNumber;
|
|
847
872
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
848
873
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -852,9 +877,9 @@ declare const zPrivateBooking: z.ZodObject<{
|
|
|
852
877
|
lastName: string;
|
|
853
878
|
rank: string;
|
|
854
879
|
email: string;
|
|
855
|
-
courseId:
|
|
856
|
-
teacherId:
|
|
857
|
-
userId?: string |
|
|
880
|
+
courseId: string;
|
|
881
|
+
teacherId: string;
|
|
882
|
+
userId?: string | undefined;
|
|
858
883
|
phone?: string | undefined;
|
|
859
884
|
address?: string | undefined;
|
|
860
885
|
notes?: string | undefined;
|
|
@@ -867,9 +892,9 @@ declare const zPrivateBooking: z.ZodObject<{
|
|
|
867
892
|
lastName: string;
|
|
868
893
|
rank: string;
|
|
869
894
|
email: string;
|
|
870
|
-
courseId:
|
|
871
|
-
teacherId:
|
|
872
|
-
userId?: string |
|
|
895
|
+
courseId: string;
|
|
896
|
+
teacherId: string;
|
|
897
|
+
userId?: string | undefined;
|
|
873
898
|
phone?: string | undefined;
|
|
874
899
|
address?: string | undefined;
|
|
875
900
|
notes?: string | undefined;
|
|
@@ -877,11 +902,11 @@ declare const zPrivateBooking: z.ZodObject<{
|
|
|
877
902
|
paymentReceived?: boolean | undefined;
|
|
878
903
|
expireAt?: Date | undefined;
|
|
879
904
|
}>;
|
|
880
|
-
declare const
|
|
905
|
+
declare const zPrivateBooking: z.ZodObject<{
|
|
881
906
|
paymentAmount: z.ZodNumber;
|
|
882
907
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
883
908
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
884
|
-
userId: z.ZodOptional<z.
|
|
909
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
885
910
|
firstName: z.ZodString;
|
|
886
911
|
lastName: z.ZodString;
|
|
887
912
|
rank: z.ZodString;
|
|
@@ -889,10 +914,11 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
889
914
|
phone: z.ZodOptional<z.ZodString>;
|
|
890
915
|
address: z.ZodOptional<z.ZodString>;
|
|
891
916
|
notes: z.ZodOptional<z.ZodString>;
|
|
892
|
-
courseId: z.
|
|
917
|
+
courseId: z.ZodString;
|
|
893
918
|
classDate: z.ZodOptional<z.ZodString>;
|
|
894
|
-
teacherId: z.
|
|
895
|
-
_id: z.
|
|
919
|
+
teacherId: z.ZodString;
|
|
920
|
+
_id: z.ZodString;
|
|
921
|
+
editedBy: z.ZodString;
|
|
896
922
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
897
923
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
898
924
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -901,12 +927,13 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
901
927
|
lastName: string;
|
|
902
928
|
rank: string;
|
|
903
929
|
email: string;
|
|
904
|
-
_id:
|
|
905
|
-
|
|
906
|
-
|
|
930
|
+
_id: string;
|
|
931
|
+
editedBy: string;
|
|
932
|
+
courseId: string;
|
|
933
|
+
teacherId: string;
|
|
907
934
|
paymentReceived?: boolean | undefined;
|
|
908
935
|
expireAt?: Date | undefined;
|
|
909
|
-
userId?: string |
|
|
936
|
+
userId?: string | undefined;
|
|
910
937
|
phone?: string | undefined;
|
|
911
938
|
address?: string | undefined;
|
|
912
939
|
notes?: string | undefined;
|
|
@@ -919,12 +946,13 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
919
946
|
lastName: string;
|
|
920
947
|
rank: string;
|
|
921
948
|
email: string;
|
|
922
|
-
_id:
|
|
923
|
-
|
|
924
|
-
|
|
949
|
+
_id: string;
|
|
950
|
+
editedBy: string;
|
|
951
|
+
courseId: string;
|
|
952
|
+
teacherId: string;
|
|
925
953
|
paymentReceived?: boolean | undefined;
|
|
926
954
|
expireAt?: Date | undefined;
|
|
927
|
-
userId?: string |
|
|
955
|
+
userId?: string | undefined;
|
|
928
956
|
phone?: string | undefined;
|
|
929
957
|
address?: string | undefined;
|
|
930
958
|
notes?: string | undefined;
|
|
@@ -932,8 +960,8 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
932
960
|
createdAt?: Date | undefined;
|
|
933
961
|
updatedAt?: Date | undefined;
|
|
934
962
|
}>;
|
|
963
|
+
type BPrivateBooking = z.infer<typeof zBPrivateBooking>;
|
|
935
964
|
type PrivateBooking = z.infer<typeof zPrivateBooking>;
|
|
936
|
-
type MPrivateBooking = z.infer<typeof zMPrivateBooking>;
|
|
937
965
|
|
|
938
966
|
declare enum PaymentMethod {
|
|
939
967
|
CASH = "Cash",
|
|
@@ -966,7 +994,7 @@ declare const zInvoiceItem: z.ZodObject<{
|
|
|
966
994
|
units: number;
|
|
967
995
|
}>;
|
|
968
996
|
declare const zInvoicePackage: z.ZodObject<{
|
|
969
|
-
student: z.
|
|
997
|
+
student: z.ZodString;
|
|
970
998
|
items: z.ZodArray<z.ZodObject<{
|
|
971
999
|
course: z.ZodString;
|
|
972
1000
|
price: z.ZodNumber;
|
|
@@ -981,24 +1009,24 @@ declare const zInvoicePackage: z.ZodObject<{
|
|
|
981
1009
|
units: number;
|
|
982
1010
|
}>, "many">;
|
|
983
1011
|
}, "strip", z.ZodTypeAny, {
|
|
984
|
-
student:
|
|
1012
|
+
student: string;
|
|
985
1013
|
items: {
|
|
986
1014
|
course: string;
|
|
987
1015
|
price: number;
|
|
988
1016
|
units: number;
|
|
989
1017
|
}[];
|
|
990
1018
|
}, {
|
|
991
|
-
student:
|
|
1019
|
+
student: string;
|
|
992
1020
|
items: {
|
|
993
1021
|
course: string;
|
|
994
1022
|
price: number;
|
|
995
1023
|
units: number;
|
|
996
1024
|
}[];
|
|
997
1025
|
}>;
|
|
998
|
-
declare const
|
|
1026
|
+
declare const zBInvoice: z.ZodObject<{
|
|
999
1027
|
billTo: z.ZodString;
|
|
1000
1028
|
packages: z.ZodArray<z.ZodObject<{
|
|
1001
|
-
student: z.
|
|
1029
|
+
student: z.ZodString;
|
|
1002
1030
|
items: z.ZodArray<z.ZodObject<{
|
|
1003
1031
|
course: z.ZodString;
|
|
1004
1032
|
price: z.ZodNumber;
|
|
@@ -1013,14 +1041,14 @@ declare const zInvoice: z.ZodObject<{
|
|
|
1013
1041
|
units: number;
|
|
1014
1042
|
}>, "many">;
|
|
1015
1043
|
}, "strip", z.ZodTypeAny, {
|
|
1016
|
-
student:
|
|
1044
|
+
student: string;
|
|
1017
1045
|
items: {
|
|
1018
1046
|
course: string;
|
|
1019
1047
|
price: number;
|
|
1020
1048
|
units: number;
|
|
1021
1049
|
}[];
|
|
1022
1050
|
}, {
|
|
1023
|
-
student:
|
|
1051
|
+
student: string;
|
|
1024
1052
|
items: {
|
|
1025
1053
|
course: string;
|
|
1026
1054
|
price: number;
|
|
@@ -1041,12 +1069,11 @@ declare const zInvoice: z.ZodObject<{
|
|
|
1041
1069
|
shipping: z.ZodOptional<z.ZodNumber>;
|
|
1042
1070
|
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
1043
1071
|
notes: z.ZodOptional<z.ZodString>;
|
|
1044
|
-
createdBy: z.
|
|
1045
|
-
lastEditBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
|
|
1072
|
+
createdBy: z.ZodString;
|
|
1046
1073
|
}, "strip", z.ZodTypeAny, {
|
|
1047
1074
|
billTo: string;
|
|
1048
1075
|
packages: {
|
|
1049
|
-
student:
|
|
1076
|
+
student: string;
|
|
1050
1077
|
items: {
|
|
1051
1078
|
course: string;
|
|
1052
1079
|
price: number;
|
|
@@ -1057,16 +1084,15 @@ declare const zInvoice: z.ZodObject<{
|
|
|
1057
1084
|
desc: string;
|
|
1058
1085
|
amount: number;
|
|
1059
1086
|
}[];
|
|
1060
|
-
createdBy:
|
|
1087
|
+
createdBy: string;
|
|
1061
1088
|
textbook?: number | undefined;
|
|
1062
1089
|
shipping?: number | undefined;
|
|
1063
1090
|
paid?: PaymentMethod | undefined;
|
|
1064
1091
|
notes?: string | undefined;
|
|
1065
|
-
lastEditBy?: string | Types.ObjectId | undefined;
|
|
1066
1092
|
}, {
|
|
1067
1093
|
billTo: string;
|
|
1068
1094
|
packages: {
|
|
1069
|
-
student:
|
|
1095
|
+
student: string;
|
|
1070
1096
|
items: {
|
|
1071
1097
|
course: string;
|
|
1072
1098
|
price: number;
|
|
@@ -1077,21 +1103,20 @@ declare const zInvoice: z.ZodObject<{
|
|
|
1077
1103
|
desc: string;
|
|
1078
1104
|
amount: number;
|
|
1079
1105
|
}[];
|
|
1080
|
-
createdBy:
|
|
1106
|
+
createdBy: string;
|
|
1081
1107
|
textbook?: number | undefined;
|
|
1082
1108
|
shipping?: number | undefined;
|
|
1083
1109
|
paid?: PaymentMethod | undefined;
|
|
1084
1110
|
notes?: string | undefined;
|
|
1085
|
-
lastEditBy?: string | Types.ObjectId | undefined;
|
|
1086
1111
|
}>;
|
|
1087
|
-
declare const
|
|
1112
|
+
declare const zInvoice: z.ZodObject<{
|
|
1088
1113
|
notes: z.ZodOptional<z.ZodString>;
|
|
1089
1114
|
textbook: z.ZodOptional<z.ZodNumber>;
|
|
1090
1115
|
shipping: z.ZodOptional<z.ZodNumber>;
|
|
1091
1116
|
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
1092
1117
|
billTo: z.ZodString;
|
|
1093
1118
|
packages: z.ZodArray<z.ZodObject<{
|
|
1094
|
-
student: z.
|
|
1119
|
+
student: z.ZodString;
|
|
1095
1120
|
items: z.ZodArray<z.ZodObject<{
|
|
1096
1121
|
course: z.ZodString;
|
|
1097
1122
|
price: z.ZodNumber;
|
|
@@ -1106,14 +1131,14 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1106
1131
|
units: number;
|
|
1107
1132
|
}>, "many">;
|
|
1108
1133
|
}, "strip", z.ZodTypeAny, {
|
|
1109
|
-
student:
|
|
1134
|
+
student: string;
|
|
1110
1135
|
items: {
|
|
1111
1136
|
course: string;
|
|
1112
1137
|
price: number;
|
|
1113
1138
|
units: number;
|
|
1114
1139
|
}[];
|
|
1115
1140
|
}, {
|
|
1116
|
-
student:
|
|
1141
|
+
student: string;
|
|
1117
1142
|
items: {
|
|
1118
1143
|
course: string;
|
|
1119
1144
|
price: number;
|
|
@@ -1130,16 +1155,17 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1130
1155
|
desc: string;
|
|
1131
1156
|
amount: number;
|
|
1132
1157
|
}>, "many">;
|
|
1133
|
-
createdBy: z.
|
|
1134
|
-
|
|
1135
|
-
|
|
1158
|
+
createdBy: z.ZodString;
|
|
1159
|
+
_id: z.ZodString;
|
|
1160
|
+
editedBy: z.ZodString;
|
|
1136
1161
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1137
1162
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1138
1163
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1139
|
-
_id:
|
|
1164
|
+
_id: string;
|
|
1165
|
+
editedBy: string;
|
|
1140
1166
|
billTo: string;
|
|
1141
1167
|
packages: {
|
|
1142
|
-
student:
|
|
1168
|
+
student: string;
|
|
1143
1169
|
items: {
|
|
1144
1170
|
course: string;
|
|
1145
1171
|
price: number;
|
|
@@ -1150,19 +1176,19 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1150
1176
|
desc: string;
|
|
1151
1177
|
amount: number;
|
|
1152
1178
|
}[];
|
|
1153
|
-
createdBy:
|
|
1179
|
+
createdBy: string;
|
|
1154
1180
|
notes?: string | undefined;
|
|
1155
1181
|
textbook?: number | undefined;
|
|
1156
1182
|
shipping?: number | undefined;
|
|
1157
1183
|
paid?: PaymentMethod | undefined;
|
|
1158
|
-
lastEditBy?: string | Types.ObjectId | undefined;
|
|
1159
1184
|
createdAt?: Date | undefined;
|
|
1160
1185
|
updatedAt?: Date | undefined;
|
|
1161
1186
|
}, {
|
|
1162
|
-
_id:
|
|
1187
|
+
_id: string;
|
|
1188
|
+
editedBy: string;
|
|
1163
1189
|
billTo: string;
|
|
1164
1190
|
packages: {
|
|
1165
|
-
student:
|
|
1191
|
+
student: string;
|
|
1166
1192
|
items: {
|
|
1167
1193
|
course: string;
|
|
1168
1194
|
price: number;
|
|
@@ -1173,20 +1199,19 @@ declare const zMInvoice: z.ZodObject<{
|
|
|
1173
1199
|
desc: string;
|
|
1174
1200
|
amount: number;
|
|
1175
1201
|
}[];
|
|
1176
|
-
createdBy:
|
|
1202
|
+
createdBy: string;
|
|
1177
1203
|
notes?: string | undefined;
|
|
1178
1204
|
textbook?: number | undefined;
|
|
1179
1205
|
shipping?: number | undefined;
|
|
1180
1206
|
paid?: PaymentMethod | undefined;
|
|
1181
|
-
lastEditBy?: string | Types.ObjectId | undefined;
|
|
1182
1207
|
createdAt?: Date | undefined;
|
|
1183
1208
|
updatedAt?: Date | undefined;
|
|
1184
1209
|
}>;
|
|
1185
1210
|
type Discount = z.infer<typeof zDiscount>;
|
|
1186
1211
|
type InvoiceItem = z.infer<typeof zInvoiceItem>;
|
|
1187
1212
|
type InvoicePackage = z.infer<typeof zInvoicePackage>;
|
|
1213
|
+
type BInvoice = z.infer<typeof zBInvoice>;
|
|
1188
1214
|
type Invoice = z.infer<typeof zInvoice>;
|
|
1189
|
-
type MInvoice = z.infer<typeof zMInvoice>;
|
|
1190
1215
|
|
|
1191
1216
|
interface PaymentIntent {
|
|
1192
1217
|
id: string;
|
|
@@ -1209,8 +1234,8 @@ declare const zTeacherPaymentRow: z.ZodObject<{
|
|
|
1209
1234
|
count: number;
|
|
1210
1235
|
wage: number;
|
|
1211
1236
|
}>;
|
|
1212
|
-
declare const
|
|
1213
|
-
teacher: z.
|
|
1237
|
+
declare const zBTeacherPayment: z.ZodObject<{
|
|
1238
|
+
teacher: z.ZodString;
|
|
1214
1239
|
rows: z.ZodArray<z.ZodObject<{
|
|
1215
1240
|
course: z.ZodString;
|
|
1216
1241
|
length: z.ZodNumber;
|
|
@@ -1229,7 +1254,7 @@ declare const zTeacherPayment: z.ZodObject<{
|
|
|
1229
1254
|
}>, "many">;
|
|
1230
1255
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
1231
1256
|
}, "strip", z.ZodTypeAny, {
|
|
1232
|
-
teacher:
|
|
1257
|
+
teacher: string;
|
|
1233
1258
|
rows: {
|
|
1234
1259
|
length: number;
|
|
1235
1260
|
course: string;
|
|
@@ -1238,7 +1263,7 @@ declare const zTeacherPayment: z.ZodObject<{
|
|
|
1238
1263
|
}[];
|
|
1239
1264
|
paid?: boolean | undefined;
|
|
1240
1265
|
}, {
|
|
1241
|
-
teacher:
|
|
1266
|
+
teacher: string;
|
|
1242
1267
|
rows: {
|
|
1243
1268
|
length: number;
|
|
1244
1269
|
course: string;
|
|
@@ -1247,9 +1272,9 @@ declare const zTeacherPayment: z.ZodObject<{
|
|
|
1247
1272
|
}[];
|
|
1248
1273
|
paid?: boolean | undefined;
|
|
1249
1274
|
}>;
|
|
1250
|
-
declare const
|
|
1275
|
+
declare const zTeacherPayment: z.ZodObject<{
|
|
1251
1276
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
1252
|
-
teacher: z.
|
|
1277
|
+
teacher: z.ZodString;
|
|
1253
1278
|
rows: z.ZodArray<z.ZodObject<{
|
|
1254
1279
|
course: z.ZodString;
|
|
1255
1280
|
length: z.ZodNumber;
|
|
@@ -1266,12 +1291,14 @@ declare const zMTeacherPayment: z.ZodObject<{
|
|
|
1266
1291
|
count: number;
|
|
1267
1292
|
wage: number;
|
|
1268
1293
|
}>, "many">;
|
|
1269
|
-
_id: z.
|
|
1294
|
+
_id: z.ZodString;
|
|
1295
|
+
editedBy: z.ZodString;
|
|
1270
1296
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1271
1297
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1272
1298
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1273
|
-
_id:
|
|
1274
|
-
|
|
1299
|
+
_id: string;
|
|
1300
|
+
editedBy: string;
|
|
1301
|
+
teacher: string;
|
|
1275
1302
|
rows: {
|
|
1276
1303
|
length: number;
|
|
1277
1304
|
course: string;
|
|
@@ -1282,8 +1309,9 @@ declare const zMTeacherPayment: z.ZodObject<{
|
|
|
1282
1309
|
createdAt?: Date | undefined;
|
|
1283
1310
|
updatedAt?: Date | undefined;
|
|
1284
1311
|
}, {
|
|
1285
|
-
_id:
|
|
1286
|
-
|
|
1312
|
+
_id: string;
|
|
1313
|
+
editedBy: string;
|
|
1314
|
+
teacher: string;
|
|
1287
1315
|
rows: {
|
|
1288
1316
|
length: number;
|
|
1289
1317
|
course: string;
|
|
@@ -1295,8 +1323,8 @@ declare const zMTeacherPayment: z.ZodObject<{
|
|
|
1295
1323
|
updatedAt?: Date | undefined;
|
|
1296
1324
|
}>;
|
|
1297
1325
|
type TeacherPaymentRow = z.infer<typeof zTeacherPaymentRow>;
|
|
1326
|
+
type BTeacherPayment = z.infer<typeof zBTeacherPayment>;
|
|
1298
1327
|
type TeacherPayment = z.infer<typeof zTeacherPayment>;
|
|
1299
|
-
type MTeacherPayment = z.infer<typeof zMTeacherPayment>;
|
|
1300
1328
|
|
|
1301
1329
|
declare const zTuition: z.ZodObject<{
|
|
1302
1330
|
primary: z.ZodNumber;
|
|
@@ -1356,9 +1384,6 @@ declare const zCourseTable: z.ZodObject<{
|
|
|
1356
1384
|
}>;
|
|
1357
1385
|
type CourseTable = z.infer<typeof zCourseTable>;
|
|
1358
1386
|
type TeacherDisplay = z.infer<typeof zTeacherDisplay>;
|
|
1359
|
-
interface MNYIGMission extends NYIGMission {
|
|
1360
|
-
_id: string;
|
|
1361
|
-
}
|
|
1362
1387
|
type AuroraCourses = {
|
|
1363
1388
|
[school in NYIGSchool]: {
|
|
1364
1389
|
[ageGroup in AgeGroup]: CourseTable[];
|
|
@@ -1400,9 +1425,9 @@ declare enum TicketStatus {
|
|
|
1400
1425
|
COMPLETED = "Completed"
|
|
1401
1426
|
}
|
|
1402
1427
|
|
|
1403
|
-
declare const
|
|
1404
|
-
requester: z.
|
|
1405
|
-
resolver: z.ZodOptional<z.
|
|
1428
|
+
declare const zBReportTicket: z.ZodObject<{
|
|
1429
|
+
requester: z.ZodString;
|
|
1430
|
+
resolver: z.ZodOptional<z.ZodString>;
|
|
1406
1431
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
1407
1432
|
title: z.ZodString;
|
|
1408
1433
|
description: z.ZodString;
|
|
@@ -1410,45 +1435,48 @@ declare const zReportTicket: z.ZodObject<{
|
|
|
1410
1435
|
status: TicketStatus;
|
|
1411
1436
|
description: string;
|
|
1412
1437
|
title: string;
|
|
1413
|
-
requester:
|
|
1414
|
-
resolver?: string |
|
|
1438
|
+
requester: string;
|
|
1439
|
+
resolver?: string | undefined;
|
|
1415
1440
|
}, {
|
|
1416
1441
|
status: TicketStatus;
|
|
1417
1442
|
description: string;
|
|
1418
1443
|
title: string;
|
|
1419
|
-
requester:
|
|
1420
|
-
resolver?: string |
|
|
1444
|
+
requester: string;
|
|
1445
|
+
resolver?: string | undefined;
|
|
1421
1446
|
}>;
|
|
1422
|
-
declare const
|
|
1447
|
+
declare const zReportTicket: z.ZodObject<{
|
|
1423
1448
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
1424
1449
|
description: z.ZodString;
|
|
1425
1450
|
title: z.ZodString;
|
|
1426
|
-
requester: z.
|
|
1427
|
-
resolver: z.ZodOptional<z.
|
|
1428
|
-
_id: z.
|
|
1451
|
+
requester: z.ZodString;
|
|
1452
|
+
resolver: z.ZodOptional<z.ZodString>;
|
|
1453
|
+
_id: z.ZodString;
|
|
1454
|
+
editedBy: z.ZodString;
|
|
1429
1455
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1430
1456
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1431
1457
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1432
1458
|
status: TicketStatus;
|
|
1433
|
-
_id:
|
|
1459
|
+
_id: string;
|
|
1460
|
+
editedBy: string;
|
|
1434
1461
|
description: string;
|
|
1435
1462
|
title: string;
|
|
1436
|
-
requester:
|
|
1437
|
-
resolver?: string |
|
|
1463
|
+
requester: string;
|
|
1464
|
+
resolver?: string | undefined;
|
|
1438
1465
|
createdAt?: Date | undefined;
|
|
1439
1466
|
updatedAt?: Date | undefined;
|
|
1440
1467
|
}, {
|
|
1441
1468
|
status: TicketStatus;
|
|
1442
|
-
_id:
|
|
1469
|
+
_id: string;
|
|
1470
|
+
editedBy: string;
|
|
1443
1471
|
description: string;
|
|
1444
1472
|
title: string;
|
|
1445
|
-
requester:
|
|
1446
|
-
resolver?: string |
|
|
1473
|
+
requester: string;
|
|
1474
|
+
resolver?: string | undefined;
|
|
1447
1475
|
createdAt?: Date | undefined;
|
|
1448
1476
|
updatedAt?: Date | undefined;
|
|
1449
1477
|
}>;
|
|
1478
|
+
type BReportTicket = z.infer<typeof zBReportTicket>;
|
|
1450
1479
|
type ReportTicket = z.infer<typeof zReportTicket>;
|
|
1451
|
-
type MReportTicket = z.infer<typeof zMReportTicket>;
|
|
1452
1480
|
|
|
1453
1481
|
declare enum Season {
|
|
1454
1482
|
FALL = "fall",
|
|
@@ -1456,7 +1484,7 @@ declare enum Season {
|
|
|
1456
1484
|
SUMMER = "summer"
|
|
1457
1485
|
}
|
|
1458
1486
|
|
|
1459
|
-
declare const
|
|
1487
|
+
declare const zBSemester: z.ZodObject<{
|
|
1460
1488
|
season: z.ZodNativeEnum<typeof Season>;
|
|
1461
1489
|
year: z.ZodNumber;
|
|
1462
1490
|
startDate: z.ZodDate;
|
|
@@ -1484,18 +1512,20 @@ declare const zSemester: z.ZodObject<{
|
|
|
1484
1512
|
blackoutDates: Date[];
|
|
1485
1513
|
importantDates: string[];
|
|
1486
1514
|
}>;
|
|
1487
|
-
declare const
|
|
1515
|
+
declare const zSemester: z.ZodObject<{
|
|
1488
1516
|
season: z.ZodNativeEnum<typeof Season>;
|
|
1489
1517
|
year: z.ZodNumber;
|
|
1490
1518
|
startDate: z.ZodDate;
|
|
1491
1519
|
endDate: z.ZodDate;
|
|
1492
1520
|
blackoutDates: z.ZodArray<z.ZodDate, "many">;
|
|
1493
1521
|
importantDates: z.ZodArray<z.ZodString, "many">;
|
|
1494
|
-
_id: z.
|
|
1522
|
+
_id: z.ZodString;
|
|
1523
|
+
editedBy: z.ZodString;
|
|
1495
1524
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1496
1525
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1497
1526
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1498
|
-
_id:
|
|
1527
|
+
_id: string;
|
|
1528
|
+
editedBy: string;
|
|
1499
1529
|
season: Season;
|
|
1500
1530
|
year: number;
|
|
1501
1531
|
startDate: Date;
|
|
@@ -1505,7 +1535,8 @@ declare const zMSemester: z.ZodObject<{
|
|
|
1505
1535
|
createdAt?: Date | undefined;
|
|
1506
1536
|
updatedAt?: Date | undefined;
|
|
1507
1537
|
}, {
|
|
1508
|
-
_id:
|
|
1538
|
+
_id: string;
|
|
1539
|
+
editedBy: string;
|
|
1509
1540
|
season: Season;
|
|
1510
1541
|
year: number;
|
|
1511
1542
|
startDate: Date;
|
|
@@ -1515,10 +1546,10 @@ declare const zMSemester: z.ZodObject<{
|
|
|
1515
1546
|
createdAt?: Date | undefined;
|
|
1516
1547
|
updatedAt?: Date | undefined;
|
|
1517
1548
|
}>;
|
|
1549
|
+
type BSemester = z.infer<typeof zBSemester>;
|
|
1518
1550
|
type Semester = z.infer<typeof zSemester>;
|
|
1519
|
-
type MSemester = z.infer<typeof zMSemester>;
|
|
1520
1551
|
|
|
1521
|
-
declare const
|
|
1552
|
+
declare const zBEventConfig: z.ZodObject<{
|
|
1522
1553
|
/**
|
|
1523
1554
|
* Location of the event
|
|
1524
1555
|
*/
|
|
@@ -1583,7 +1614,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
1583
1614
|
/**
|
|
1584
1615
|
* List of ticket object IDs for this tournament
|
|
1585
1616
|
*/
|
|
1586
|
-
tickets: z.ZodArray<z.
|
|
1617
|
+
tickets: z.ZodArray<z.ZodString, "many">;
|
|
1587
1618
|
/**
|
|
1588
1619
|
* If false, the tournament registration is closed
|
|
1589
1620
|
*/
|
|
@@ -1624,7 +1655,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
1624
1655
|
data: Record<string, {}[]>;
|
|
1625
1656
|
fields: string[];
|
|
1626
1657
|
};
|
|
1627
|
-
tickets:
|
|
1658
|
+
tickets: string[];
|
|
1628
1659
|
canRegister: boolean;
|
|
1629
1660
|
location?: string | undefined;
|
|
1630
1661
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1649,7 +1680,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
1649
1680
|
data: Record<string, {}[]>;
|
|
1650
1681
|
fields: string[];
|
|
1651
1682
|
};
|
|
1652
|
-
tickets:
|
|
1683
|
+
tickets: string[];
|
|
1653
1684
|
canRegister: boolean;
|
|
1654
1685
|
location?: string | undefined;
|
|
1655
1686
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1659,7 +1690,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
1659
1690
|
width: number;
|
|
1660
1691
|
} | undefined;
|
|
1661
1692
|
}>;
|
|
1662
|
-
declare const
|
|
1693
|
+
declare const zEventConfig: z.ZodObject<{
|
|
1663
1694
|
description: z.ZodString;
|
|
1664
1695
|
title: z.ZodString;
|
|
1665
1696
|
url: z.ZodString;
|
|
@@ -1688,7 +1719,7 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1688
1719
|
data: Record<string, {}[]>;
|
|
1689
1720
|
fields: string[];
|
|
1690
1721
|
}>;
|
|
1691
|
-
tickets: z.ZodArray<z.
|
|
1722
|
+
tickets: z.ZodArray<z.ZodString, "many">;
|
|
1692
1723
|
canRegister: z.ZodBoolean;
|
|
1693
1724
|
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1694
1725
|
image: z.ZodOptional<z.ZodObject<{
|
|
@@ -1704,11 +1735,13 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1704
1735
|
height: number;
|
|
1705
1736
|
width: number;
|
|
1706
1737
|
}>>;
|
|
1707
|
-
_id: z.
|
|
1738
|
+
_id: z.ZodString;
|
|
1739
|
+
editedBy: z.ZodString;
|
|
1708
1740
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1709
1741
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1710
1742
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1711
|
-
_id:
|
|
1743
|
+
_id: string;
|
|
1744
|
+
editedBy: string;
|
|
1712
1745
|
description: string;
|
|
1713
1746
|
title: string;
|
|
1714
1747
|
url: string;
|
|
@@ -1724,7 +1757,7 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1724
1757
|
data: Record<string, {}[]>;
|
|
1725
1758
|
fields: string[];
|
|
1726
1759
|
};
|
|
1727
|
-
tickets:
|
|
1760
|
+
tickets: string[];
|
|
1728
1761
|
canRegister: boolean;
|
|
1729
1762
|
location?: string | undefined;
|
|
1730
1763
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1736,7 +1769,8 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1736
1769
|
createdAt?: Date | undefined;
|
|
1737
1770
|
updatedAt?: Date | undefined;
|
|
1738
1771
|
}, {
|
|
1739
|
-
_id:
|
|
1772
|
+
_id: string;
|
|
1773
|
+
editedBy: string;
|
|
1740
1774
|
description: string;
|
|
1741
1775
|
title: string;
|
|
1742
1776
|
url: string;
|
|
@@ -1752,7 +1786,7 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1752
1786
|
data: Record<string, {}[]>;
|
|
1753
1787
|
fields: string[];
|
|
1754
1788
|
};
|
|
1755
|
-
tickets:
|
|
1789
|
+
tickets: string[];
|
|
1756
1790
|
canRegister: boolean;
|
|
1757
1791
|
location?: string | undefined;
|
|
1758
1792
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1765,6 +1799,10 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1765
1799
|
updatedAt?: Date | undefined;
|
|
1766
1800
|
}>;
|
|
1767
1801
|
declare const zEventConfigResponse: z.ZodObject<{
|
|
1802
|
+
_id: z.ZodString;
|
|
1803
|
+
editedBy: z.ZodString;
|
|
1804
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1805
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1768
1806
|
description: z.ZodString;
|
|
1769
1807
|
title: z.ZodString;
|
|
1770
1808
|
url: z.ZodString;
|
|
@@ -1815,10 +1853,12 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1815
1853
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
1816
1854
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1817
1855
|
_id: z.ZodString;
|
|
1856
|
+
editedBy: z.ZodString;
|
|
1818
1857
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1819
1858
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1820
1859
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1821
1860
|
_id: string;
|
|
1861
|
+
editedBy: string;
|
|
1822
1862
|
price: number;
|
|
1823
1863
|
name: string;
|
|
1824
1864
|
description?: string | undefined;
|
|
@@ -1828,6 +1868,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1828
1868
|
updatedAt?: Date | undefined;
|
|
1829
1869
|
}, {
|
|
1830
1870
|
_id: string;
|
|
1871
|
+
editedBy: string;
|
|
1831
1872
|
price: number;
|
|
1832
1873
|
name: string;
|
|
1833
1874
|
description?: string | undefined;
|
|
@@ -1836,7 +1877,9 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1836
1877
|
createdAt?: Date | undefined;
|
|
1837
1878
|
updatedAt?: Date | undefined;
|
|
1838
1879
|
}>, "many">;
|
|
1839
|
-
},
|
|
1880
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1881
|
+
_id: string;
|
|
1882
|
+
editedBy: string;
|
|
1840
1883
|
description: string;
|
|
1841
1884
|
title: string;
|
|
1842
1885
|
url: string;
|
|
@@ -1854,6 +1897,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1854
1897
|
};
|
|
1855
1898
|
tickets: {
|
|
1856
1899
|
_id: string;
|
|
1900
|
+
editedBy: string;
|
|
1857
1901
|
price: number;
|
|
1858
1902
|
name: string;
|
|
1859
1903
|
description?: string | undefined;
|
|
@@ -1863,6 +1907,8 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1863
1907
|
updatedAt?: Date | undefined;
|
|
1864
1908
|
}[];
|
|
1865
1909
|
canRegister: boolean;
|
|
1910
|
+
createdAt?: Date | undefined;
|
|
1911
|
+
updatedAt?: Date | undefined;
|
|
1866
1912
|
location?: string | undefined;
|
|
1867
1913
|
donationsDisabled?: boolean | undefined;
|
|
1868
1914
|
image?: {
|
|
@@ -1871,6 +1917,8 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1871
1917
|
width: number;
|
|
1872
1918
|
} | undefined;
|
|
1873
1919
|
}, {
|
|
1920
|
+
_id: string;
|
|
1921
|
+
editedBy: string;
|
|
1874
1922
|
description: string;
|
|
1875
1923
|
title: string;
|
|
1876
1924
|
url: string;
|
|
@@ -1888,6 +1936,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1888
1936
|
};
|
|
1889
1937
|
tickets: {
|
|
1890
1938
|
_id: string;
|
|
1939
|
+
editedBy: string;
|
|
1891
1940
|
price: number;
|
|
1892
1941
|
name: string;
|
|
1893
1942
|
description?: string | undefined;
|
|
@@ -1897,6 +1946,8 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1897
1946
|
updatedAt?: Date | undefined;
|
|
1898
1947
|
}[];
|
|
1899
1948
|
canRegister: boolean;
|
|
1949
|
+
createdAt?: Date | undefined;
|
|
1950
|
+
updatedAt?: Date | undefined;
|
|
1900
1951
|
location?: string | undefined;
|
|
1901
1952
|
donationsDisabled?: boolean | undefined;
|
|
1902
1953
|
image?: {
|
|
@@ -1905,230 +1956,77 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1905
1956
|
width: number;
|
|
1906
1957
|
} | undefined;
|
|
1907
1958
|
}>;
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
}>;
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1959
|
+
type BEventConfig = z.infer<typeof zBEventConfig>;
|
|
1960
|
+
type EventConfig = z.infer<typeof zEventConfig>;
|
|
1961
|
+
type EventConfigResponse = z.infer<typeof zEventConfigResponse>;
|
|
1962
|
+
|
|
1963
|
+
declare const zDetailsTable: z.ZodObject<{
|
|
1964
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
1965
|
+
data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
1966
|
+
}, "strip", z.ZodTypeAny, {
|
|
1967
|
+
data: {}[];
|
|
1968
|
+
fields: string[];
|
|
1969
|
+
}, {
|
|
1970
|
+
data: {}[];
|
|
1971
|
+
fields: string[];
|
|
1972
|
+
}>;
|
|
1973
|
+
declare const zScheduleTable: z.ZodObject<{
|
|
1974
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
1975
|
+
data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
|
|
1976
|
+
}, "strip", z.ZodTypeAny, {
|
|
1977
|
+
data: Record<string, {}[]>;
|
|
1978
|
+
fields: string[];
|
|
1979
|
+
}, {
|
|
1980
|
+
data: Record<string, {}[]>;
|
|
1981
|
+
fields: string[];
|
|
1982
|
+
}>;
|
|
1983
|
+
type DetailsTable = z.infer<typeof zDetailsTable>;
|
|
1984
|
+
type ScheduleTable = z.infer<typeof zScheduleTable>;
|
|
1985
|
+
|
|
1986
|
+
declare const zBEventReg: z.ZodObject<{
|
|
1987
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
1988
|
+
firstName: z.ZodString;
|
|
1989
|
+
lastName: z.ZodString;
|
|
1990
|
+
rank: z.ZodString;
|
|
1991
|
+
email: z.ZodString;
|
|
1992
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1993
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1994
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1937
1995
|
tickets: z.ZodArray<z.ZodObject<{
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1941
|
-
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
1942
|
-
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1943
|
-
_id: z.ZodString;
|
|
1944
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1945
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1946
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1947
|
-
_id: string;
|
|
1948
|
-
price: number;
|
|
1949
|
-
name: string;
|
|
1950
|
-
description?: string | undefined;
|
|
1951
|
-
isNotBuyable?: boolean | undefined;
|
|
1952
|
-
lastBuyableDate?: Date | undefined;
|
|
1953
|
-
createdAt?: Date | undefined;
|
|
1954
|
-
updatedAt?: Date | undefined;
|
|
1955
|
-
}, {
|
|
1956
|
-
_id: string;
|
|
1957
|
-
price: number;
|
|
1958
|
-
name: string;
|
|
1959
|
-
description?: string | undefined;
|
|
1960
|
-
isNotBuyable?: boolean | undefined;
|
|
1961
|
-
lastBuyableDate?: Date | undefined;
|
|
1962
|
-
createdAt?: Date | undefined;
|
|
1963
|
-
updatedAt?: Date | undefined;
|
|
1964
|
-
}>, "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;
|
|
1996
|
+
ticket: z.ZodString;
|
|
1997
|
+
amount: z.ZodNumber;
|
|
1971
1998
|
}, "strip", z.ZodTypeAny, {
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
width: number;
|
|
1999
|
+
amount: number;
|
|
2000
|
+
ticket: string;
|
|
1975
2001
|
}, {
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
details: {
|
|
1993
|
-
data: {}[];
|
|
1994
|
-
fields: string[];
|
|
1995
|
-
};
|
|
1996
|
-
schedule: {
|
|
1997
|
-
data: Record<string, {}[]>;
|
|
1998
|
-
fields: string[];
|
|
1999
|
-
};
|
|
2002
|
+
amount: number;
|
|
2003
|
+
ticket: string;
|
|
2004
|
+
}>, "many">;
|
|
2005
|
+
agaId: z.ZodString;
|
|
2006
|
+
tournamentId: z.ZodString;
|
|
2007
|
+
donation: z.ZodOptional<z.ZodNumber>;
|
|
2008
|
+
createMethod: z.ZodOptional<z.ZodString>;
|
|
2009
|
+
paymentAmount: z.ZodNumber;
|
|
2010
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
2011
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
2012
|
+
}, "strip", z.ZodTypeAny, {
|
|
2013
|
+
paymentAmount: number;
|
|
2014
|
+
firstName: string;
|
|
2015
|
+
lastName: string;
|
|
2016
|
+
rank: string;
|
|
2017
|
+
email: string;
|
|
2000
2018
|
tickets: {
|
|
2001
|
-
_id: string;
|
|
2002
|
-
price: number;
|
|
2003
|
-
name: string;
|
|
2004
|
-
description?: string | undefined;
|
|
2005
|
-
isNotBuyable?: boolean | undefined;
|
|
2006
|
-
lastBuyableDate?: Date | undefined;
|
|
2007
|
-
createdAt?: Date | undefined;
|
|
2008
|
-
updatedAt?: Date | undefined;
|
|
2009
|
-
}[];
|
|
2010
|
-
canRegister: boolean;
|
|
2011
|
-
location?: string | undefined;
|
|
2012
|
-
donationsDisabled?: boolean | undefined;
|
|
2013
|
-
image?: {
|
|
2014
|
-
url: string;
|
|
2015
|
-
height: number;
|
|
2016
|
-
width: number;
|
|
2017
|
-
} | undefined;
|
|
2018
|
-
createdAt?: Date | undefined;
|
|
2019
|
-
updatedAt?: Date | undefined;
|
|
2020
|
-
}, {
|
|
2021
|
-
_id: string;
|
|
2022
|
-
description: string;
|
|
2023
|
-
title: string;
|
|
2024
|
-
url: string;
|
|
2025
|
-
shortTitle: string;
|
|
2026
|
-
tStart: Date;
|
|
2027
|
-
tEnd: Date;
|
|
2028
|
-
shortDescription: string;
|
|
2029
|
-
details: {
|
|
2030
|
-
data: {}[];
|
|
2031
|
-
fields: string[];
|
|
2032
|
-
};
|
|
2033
|
-
schedule: {
|
|
2034
|
-
data: Record<string, {}[]>;
|
|
2035
|
-
fields: string[];
|
|
2036
|
-
};
|
|
2037
|
-
tickets: {
|
|
2038
|
-
_id: string;
|
|
2039
|
-
price: number;
|
|
2040
|
-
name: string;
|
|
2041
|
-
description?: string | undefined;
|
|
2042
|
-
isNotBuyable?: boolean | undefined;
|
|
2043
|
-
lastBuyableDate?: Date | undefined;
|
|
2044
|
-
createdAt?: Date | undefined;
|
|
2045
|
-
updatedAt?: Date | undefined;
|
|
2046
|
-
}[];
|
|
2047
|
-
canRegister: boolean;
|
|
2048
|
-
location?: string | undefined;
|
|
2049
|
-
donationsDisabled?: boolean | undefined;
|
|
2050
|
-
image?: {
|
|
2051
|
-
url: string;
|
|
2052
|
-
height: number;
|
|
2053
|
-
width: number;
|
|
2054
|
-
} | undefined;
|
|
2055
|
-
createdAt?: Date | undefined;
|
|
2056
|
-
updatedAt?: Date | undefined;
|
|
2057
|
-
}>;
|
|
2058
|
-
type EventConfig = z.infer<typeof zEventConfig>;
|
|
2059
|
-
type EventConfigResponse = z.infer<typeof zEventConfigResponse>;
|
|
2060
|
-
type MEventConfig = z.infer<typeof zMEventConfig>;
|
|
2061
|
-
type MEventConfigResponse = z.infer<typeof zMEventConfigResponse>;
|
|
2062
|
-
|
|
2063
|
-
declare const zDetailsTable: z.ZodObject<{
|
|
2064
|
-
fields: z.ZodArray<z.ZodString, "many">;
|
|
2065
|
-
data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
2066
|
-
}, "strip", z.ZodTypeAny, {
|
|
2067
|
-
data: {}[];
|
|
2068
|
-
fields: string[];
|
|
2069
|
-
}, {
|
|
2070
|
-
data: {}[];
|
|
2071
|
-
fields: string[];
|
|
2072
|
-
}>;
|
|
2073
|
-
declare const zScheduleTable: z.ZodObject<{
|
|
2074
|
-
fields: z.ZodArray<z.ZodString, "many">;
|
|
2075
|
-
data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
|
|
2076
|
-
}, "strip", z.ZodTypeAny, {
|
|
2077
|
-
data: Record<string, {}[]>;
|
|
2078
|
-
fields: string[];
|
|
2079
|
-
}, {
|
|
2080
|
-
data: Record<string, {}[]>;
|
|
2081
|
-
fields: string[];
|
|
2082
|
-
}>;
|
|
2083
|
-
type DetailsTable = z.infer<typeof zDetailsTable>;
|
|
2084
|
-
type ScheduleTable = z.infer<typeof zScheduleTable>;
|
|
2085
|
-
|
|
2086
|
-
declare const zEventReg: z.ZodObject<{
|
|
2087
|
-
userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
|
|
2088
|
-
firstName: z.ZodString;
|
|
2089
|
-
lastName: z.ZodString;
|
|
2090
|
-
rank: z.ZodString;
|
|
2091
|
-
email: z.ZodString;
|
|
2092
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
2093
|
-
address: z.ZodOptional<z.ZodString>;
|
|
2094
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
2095
|
-
tickets: z.ZodArray<z.ZodObject<{
|
|
2096
|
-
ticket: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2097
|
-
amount: z.ZodNumber;
|
|
2098
|
-
}, "strip", z.ZodTypeAny, {
|
|
2099
|
-
amount: number;
|
|
2100
|
-
ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2101
|
-
}, {
|
|
2102
2019
|
amount: number;
|
|
2103
|
-
ticket:
|
|
2104
|
-
}>, "many">;
|
|
2105
|
-
agaId: z.ZodString;
|
|
2106
|
-
tournamentId: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2107
|
-
donation: z.ZodOptional<z.ZodNumber>;
|
|
2108
|
-
createMethod: z.ZodOptional<z.ZodString>;
|
|
2109
|
-
edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2110
|
-
paymentAmount: z.ZodNumber;
|
|
2111
|
-
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
2112
|
-
expireAt: z.ZodOptional<z.ZodDate>;
|
|
2113
|
-
}, "strip", z.ZodTypeAny, {
|
|
2114
|
-
paymentAmount: number;
|
|
2115
|
-
firstName: string;
|
|
2116
|
-
lastName: string;
|
|
2117
|
-
rank: string;
|
|
2118
|
-
email: string;
|
|
2119
|
-
tickets: {
|
|
2120
|
-
amount: number;
|
|
2121
|
-
ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2020
|
+
ticket: string;
|
|
2122
2021
|
}[];
|
|
2123
2022
|
agaId: string;
|
|
2124
|
-
tournamentId:
|
|
2125
|
-
userId?: string |
|
|
2023
|
+
tournamentId: string;
|
|
2024
|
+
userId?: string | undefined;
|
|
2126
2025
|
phone?: string | undefined;
|
|
2127
2026
|
address?: string | undefined;
|
|
2128
2027
|
notes?: string | undefined;
|
|
2129
2028
|
donation?: number | undefined;
|
|
2130
2029
|
createMethod?: string | undefined;
|
|
2131
|
-
edited?: Types.ObjectId | undefined;
|
|
2132
2030
|
paymentReceived?: boolean | undefined;
|
|
2133
2031
|
expireAt?: Date | undefined;
|
|
2134
2032
|
}, {
|
|
@@ -2139,158 +2037,24 @@ declare const zEventReg: z.ZodObject<{
|
|
|
2139
2037
|
email: string;
|
|
2140
2038
|
tickets: {
|
|
2141
2039
|
amount: number;
|
|
2142
|
-
ticket:
|
|
2143
|
-
}[];
|
|
2144
|
-
agaId: string;
|
|
2145
|
-
tournamentId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2146
|
-
userId?: string | Types.ObjectId | undefined;
|
|
2147
|
-
phone?: string | undefined;
|
|
2148
|
-
address?: string | undefined;
|
|
2149
|
-
notes?: string | undefined;
|
|
2150
|
-
donation?: number | undefined;
|
|
2151
|
-
createMethod?: string | undefined;
|
|
2152
|
-
edited?: Types.ObjectId | undefined;
|
|
2153
|
-
paymentReceived?: boolean | undefined;
|
|
2154
|
-
expireAt?: Date | undefined;
|
|
2155
|
-
}>;
|
|
2156
|
-
declare const zEventRegResponse: z.ZodObject<{
|
|
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.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
|
-
};
|
|
2040
|
+
ticket: string;
|
|
2246
2041
|
}[];
|
|
2247
2042
|
agaId: string;
|
|
2248
|
-
tournamentId:
|
|
2249
|
-
|
|
2250
|
-
expireAt?: Date | undefined;
|
|
2251
|
-
userId?: string | Types.ObjectId | undefined;
|
|
2043
|
+
tournamentId: string;
|
|
2044
|
+
userId?: string | undefined;
|
|
2252
2045
|
phone?: string | undefined;
|
|
2253
2046
|
address?: string | undefined;
|
|
2254
2047
|
notes?: string | undefined;
|
|
2255
2048
|
donation?: number | undefined;
|
|
2256
2049
|
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
2050
|
paymentReceived?: boolean | undefined;
|
|
2280
2051
|
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
2052
|
}>;
|
|
2289
|
-
declare const
|
|
2053
|
+
declare const zEventReg: z.ZodObject<{
|
|
2290
2054
|
paymentAmount: z.ZodNumber;
|
|
2291
2055
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
2292
2056
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
2293
|
-
userId: z.ZodOptional<z.
|
|
2057
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
2294
2058
|
firstName: z.ZodString;
|
|
2295
2059
|
lastName: z.ZodString;
|
|
2296
2060
|
rank: z.ZodString;
|
|
@@ -2299,21 +2063,21 @@ declare const zMEventReg: z.ZodObject<{
|
|
|
2299
2063
|
address: z.ZodOptional<z.ZodString>;
|
|
2300
2064
|
notes: z.ZodOptional<z.ZodString>;
|
|
2301
2065
|
tickets: z.ZodArray<z.ZodObject<{
|
|
2302
|
-
ticket: z.
|
|
2066
|
+
ticket: z.ZodString;
|
|
2303
2067
|
amount: z.ZodNumber;
|
|
2304
2068
|
}, "strip", z.ZodTypeAny, {
|
|
2305
2069
|
amount: number;
|
|
2306
|
-
ticket:
|
|
2070
|
+
ticket: string;
|
|
2307
2071
|
}, {
|
|
2308
2072
|
amount: number;
|
|
2309
|
-
ticket:
|
|
2073
|
+
ticket: string;
|
|
2310
2074
|
}>, "many">;
|
|
2311
2075
|
agaId: z.ZodString;
|
|
2312
|
-
tournamentId: z.
|
|
2076
|
+
tournamentId: z.ZodString;
|
|
2313
2077
|
donation: z.ZodOptional<z.ZodNumber>;
|
|
2314
2078
|
createMethod: z.ZodOptional<z.ZodString>;
|
|
2315
|
-
|
|
2316
|
-
|
|
2079
|
+
_id: z.ZodString;
|
|
2080
|
+
editedBy: z.ZodString;
|
|
2317
2081
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2318
2082
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2319
2083
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -2322,22 +2086,22 @@ declare const zMEventReg: z.ZodObject<{
|
|
|
2322
2086
|
lastName: string;
|
|
2323
2087
|
rank: string;
|
|
2324
2088
|
email: string;
|
|
2325
|
-
_id:
|
|
2089
|
+
_id: string;
|
|
2090
|
+
editedBy: string;
|
|
2326
2091
|
tickets: {
|
|
2327
2092
|
amount: number;
|
|
2328
|
-
ticket:
|
|
2093
|
+
ticket: string;
|
|
2329
2094
|
}[];
|
|
2330
2095
|
agaId: string;
|
|
2331
|
-
tournamentId:
|
|
2096
|
+
tournamentId: string;
|
|
2332
2097
|
paymentReceived?: boolean | undefined;
|
|
2333
2098
|
expireAt?: Date | undefined;
|
|
2334
|
-
userId?: string |
|
|
2099
|
+
userId?: string | undefined;
|
|
2335
2100
|
phone?: string | undefined;
|
|
2336
2101
|
address?: string | undefined;
|
|
2337
2102
|
notes?: string | undefined;
|
|
2338
2103
|
donation?: number | undefined;
|
|
2339
2104
|
createMethod?: string | undefined;
|
|
2340
|
-
edited?: Types.ObjectId | undefined;
|
|
2341
2105
|
createdAt?: Date | undefined;
|
|
2342
2106
|
updatedAt?: Date | undefined;
|
|
2343
2107
|
}, {
|
|
@@ -2346,30 +2110,30 @@ declare const zMEventReg: z.ZodObject<{
|
|
|
2346
2110
|
lastName: string;
|
|
2347
2111
|
rank: string;
|
|
2348
2112
|
email: string;
|
|
2349
|
-
_id:
|
|
2113
|
+
_id: string;
|
|
2114
|
+
editedBy: string;
|
|
2350
2115
|
tickets: {
|
|
2351
2116
|
amount: number;
|
|
2352
|
-
ticket:
|
|
2117
|
+
ticket: string;
|
|
2353
2118
|
}[];
|
|
2354
2119
|
agaId: string;
|
|
2355
|
-
tournamentId:
|
|
2120
|
+
tournamentId: string;
|
|
2356
2121
|
paymentReceived?: boolean | undefined;
|
|
2357
2122
|
expireAt?: Date | undefined;
|
|
2358
|
-
userId?: string |
|
|
2123
|
+
userId?: string | undefined;
|
|
2359
2124
|
phone?: string | undefined;
|
|
2360
2125
|
address?: string | undefined;
|
|
2361
2126
|
notes?: string | undefined;
|
|
2362
2127
|
donation?: number | undefined;
|
|
2363
2128
|
createMethod?: string | undefined;
|
|
2364
|
-
edited?: Types.ObjectId | undefined;
|
|
2365
2129
|
createdAt?: Date | undefined;
|
|
2366
2130
|
updatedAt?: Date | undefined;
|
|
2367
2131
|
}>;
|
|
2368
|
-
declare const
|
|
2132
|
+
declare const zEventRegResponse: z.ZodObject<{
|
|
2369
2133
|
paymentAmount: z.ZodNumber;
|
|
2370
2134
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
2371
2135
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
2372
|
-
userId: z.ZodOptional<z.
|
|
2136
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
2373
2137
|
firstName: z.ZodString;
|
|
2374
2138
|
lastName: z.ZodString;
|
|
2375
2139
|
rank: z.ZodString;
|
|
@@ -2377,6 +2141,14 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2377
2141
|
phone: z.ZodOptional<z.ZodString>;
|
|
2378
2142
|
address: z.ZodOptional<z.ZodString>;
|
|
2379
2143
|
notes: z.ZodOptional<z.ZodString>;
|
|
2144
|
+
_id: z.ZodString;
|
|
2145
|
+
editedBy: z.ZodString;
|
|
2146
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2147
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2148
|
+
agaId: z.ZodString;
|
|
2149
|
+
tournamentId: z.ZodString;
|
|
2150
|
+
donation: z.ZodOptional<z.ZodNumber>;
|
|
2151
|
+
createMethod: z.ZodOptional<z.ZodString>;
|
|
2380
2152
|
tickets: z.ZodArray<z.ZodObject<{
|
|
2381
2153
|
amount: z.ZodNumber;
|
|
2382
2154
|
ticket: z.ZodObject<{
|
|
@@ -2385,11 +2157,13 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2385
2157
|
description: z.ZodOptional<z.ZodString>;
|
|
2386
2158
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2387
2159
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2388
|
-
_id: z.
|
|
2160
|
+
_id: z.ZodString;
|
|
2161
|
+
editedBy: z.ZodString;
|
|
2389
2162
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2390
2163
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2391
2164
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2392
|
-
_id:
|
|
2165
|
+
_id: string;
|
|
2166
|
+
editedBy: string;
|
|
2393
2167
|
price: number;
|
|
2394
2168
|
name: string;
|
|
2395
2169
|
description?: string | undefined;
|
|
@@ -2398,7 +2172,8 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2398
2172
|
createdAt?: Date | undefined;
|
|
2399
2173
|
updatedAt?: Date | undefined;
|
|
2400
2174
|
}, {
|
|
2401
|
-
_id:
|
|
2175
|
+
_id: string;
|
|
2176
|
+
editedBy: string;
|
|
2402
2177
|
price: number;
|
|
2403
2178
|
name: string;
|
|
2404
2179
|
description?: string | undefined;
|
|
@@ -2410,7 +2185,8 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2410
2185
|
}, "strip", z.ZodTypeAny, {
|
|
2411
2186
|
amount: number;
|
|
2412
2187
|
ticket: {
|
|
2413
|
-
_id:
|
|
2188
|
+
_id: string;
|
|
2189
|
+
editedBy: string;
|
|
2414
2190
|
price: number;
|
|
2415
2191
|
name: string;
|
|
2416
2192
|
description?: string | undefined;
|
|
@@ -2422,7 +2198,8 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2422
2198
|
}, {
|
|
2423
2199
|
amount: number;
|
|
2424
2200
|
ticket: {
|
|
2425
|
-
_id:
|
|
2201
|
+
_id: string;
|
|
2202
|
+
editedBy: string;
|
|
2426
2203
|
price: number;
|
|
2427
2204
|
name: string;
|
|
2428
2205
|
description?: string | undefined;
|
|
@@ -2432,14 +2209,6 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2432
2209
|
updatedAt?: Date | undefined;
|
|
2433
2210
|
};
|
|
2434
2211
|
}>, "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;
|
|
2441
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2442
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2443
2212
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2444
2213
|
paymentAmount: number;
|
|
2445
2214
|
firstName: string;
|
|
@@ -2447,10 +2216,12 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2447
2216
|
rank: string;
|
|
2448
2217
|
email: string;
|
|
2449
2218
|
_id: string;
|
|
2219
|
+
editedBy: string;
|
|
2450
2220
|
tickets: {
|
|
2451
2221
|
amount: number;
|
|
2452
2222
|
ticket: {
|
|
2453
|
-
_id:
|
|
2223
|
+
_id: string;
|
|
2224
|
+
editedBy: string;
|
|
2454
2225
|
price: number;
|
|
2455
2226
|
name: string;
|
|
2456
2227
|
description?: string | undefined;
|
|
@@ -2461,18 +2232,17 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2461
2232
|
};
|
|
2462
2233
|
}[];
|
|
2463
2234
|
agaId: string;
|
|
2464
|
-
tournamentId:
|
|
2235
|
+
tournamentId: string;
|
|
2465
2236
|
paymentReceived?: boolean | undefined;
|
|
2466
2237
|
expireAt?: Date | undefined;
|
|
2467
|
-
userId?: string |
|
|
2238
|
+
userId?: string | undefined;
|
|
2468
2239
|
phone?: string | undefined;
|
|
2469
2240
|
address?: string | undefined;
|
|
2470
2241
|
notes?: string | undefined;
|
|
2471
|
-
donation?: number | undefined;
|
|
2472
|
-
createMethod?: string | undefined;
|
|
2473
|
-
edited?: Types.ObjectId | undefined;
|
|
2474
2242
|
createdAt?: Date | undefined;
|
|
2475
2243
|
updatedAt?: Date | undefined;
|
|
2244
|
+
donation?: number | undefined;
|
|
2245
|
+
createMethod?: string | undefined;
|
|
2476
2246
|
}, {
|
|
2477
2247
|
paymentAmount: number;
|
|
2478
2248
|
firstName: string;
|
|
@@ -2480,10 +2250,12 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2480
2250
|
rank: string;
|
|
2481
2251
|
email: string;
|
|
2482
2252
|
_id: string;
|
|
2253
|
+
editedBy: string;
|
|
2483
2254
|
tickets: {
|
|
2484
2255
|
amount: number;
|
|
2485
2256
|
ticket: {
|
|
2486
|
-
_id:
|
|
2257
|
+
_id: string;
|
|
2258
|
+
editedBy: string;
|
|
2487
2259
|
price: number;
|
|
2488
2260
|
name: string;
|
|
2489
2261
|
description?: string | undefined;
|
|
@@ -2494,36 +2266,34 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2494
2266
|
};
|
|
2495
2267
|
}[];
|
|
2496
2268
|
agaId: string;
|
|
2497
|
-
tournamentId:
|
|
2269
|
+
tournamentId: string;
|
|
2498
2270
|
paymentReceived?: boolean | undefined;
|
|
2499
2271
|
expireAt?: Date | undefined;
|
|
2500
|
-
userId?: string |
|
|
2272
|
+
userId?: string | undefined;
|
|
2501
2273
|
phone?: string | undefined;
|
|
2502
2274
|
address?: string | undefined;
|
|
2503
2275
|
notes?: string | undefined;
|
|
2504
|
-
donation?: number | undefined;
|
|
2505
|
-
createMethod?: string | undefined;
|
|
2506
|
-
edited?: Types.ObjectId | undefined;
|
|
2507
2276
|
createdAt?: Date | undefined;
|
|
2508
2277
|
updatedAt?: Date | undefined;
|
|
2278
|
+
donation?: number | undefined;
|
|
2279
|
+
createMethod?: string | undefined;
|
|
2509
2280
|
}>;
|
|
2281
|
+
type BEventReg = z.infer<typeof zBEventReg>;
|
|
2510
2282
|
type EventReg = z.infer<typeof zEventReg>;
|
|
2511
2283
|
type EventRegResponse = z.infer<typeof zEventRegResponse>;
|
|
2512
|
-
type MEventReg = z.infer<typeof zMEventReg>;
|
|
2513
|
-
type MEventRegResponse = z.infer<typeof zMEventRegResponse>;
|
|
2514
2284
|
|
|
2515
2285
|
declare const zEventTicketReg: z.ZodObject<{
|
|
2516
|
-
ticket: z.
|
|
2286
|
+
ticket: z.ZodString;
|
|
2517
2287
|
/**
|
|
2518
2288
|
* integer minimum 1, otherwise no ticket is being bought
|
|
2519
2289
|
*/
|
|
2520
2290
|
amount: z.ZodNumber;
|
|
2521
2291
|
}, "strip", z.ZodTypeAny, {
|
|
2522
2292
|
amount: number;
|
|
2523
|
-
ticket:
|
|
2293
|
+
ticket: string;
|
|
2524
2294
|
}, {
|
|
2525
2295
|
amount: number;
|
|
2526
|
-
ticket:
|
|
2296
|
+
ticket: string;
|
|
2527
2297
|
}>;
|
|
2528
2298
|
declare const zEventTicketRegResponse: z.ZodObject<{
|
|
2529
2299
|
amount: z.ZodNumber;
|
|
@@ -2533,11 +2303,13 @@ declare const zEventTicketRegResponse: z.ZodObject<{
|
|
|
2533
2303
|
description: z.ZodOptional<z.ZodString>;
|
|
2534
2304
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2535
2305
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2536
|
-
_id: z.
|
|
2306
|
+
_id: z.ZodString;
|
|
2307
|
+
editedBy: z.ZodString;
|
|
2537
2308
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2538
2309
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2539
2310
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2540
|
-
_id:
|
|
2311
|
+
_id: string;
|
|
2312
|
+
editedBy: string;
|
|
2541
2313
|
price: number;
|
|
2542
2314
|
name: string;
|
|
2543
2315
|
description?: string | undefined;
|
|
@@ -2546,7 +2318,8 @@ declare const zEventTicketRegResponse: z.ZodObject<{
|
|
|
2546
2318
|
createdAt?: Date | undefined;
|
|
2547
2319
|
updatedAt?: Date | undefined;
|
|
2548
2320
|
}, {
|
|
2549
|
-
_id:
|
|
2321
|
+
_id: string;
|
|
2322
|
+
editedBy: string;
|
|
2550
2323
|
price: number;
|
|
2551
2324
|
name: string;
|
|
2552
2325
|
description?: string | undefined;
|
|
@@ -2558,7 +2331,8 @@ declare const zEventTicketRegResponse: z.ZodObject<{
|
|
|
2558
2331
|
}, "strip", z.ZodTypeAny, {
|
|
2559
2332
|
amount: number;
|
|
2560
2333
|
ticket: {
|
|
2561
|
-
_id:
|
|
2334
|
+
_id: string;
|
|
2335
|
+
editedBy: string;
|
|
2562
2336
|
price: number;
|
|
2563
2337
|
name: string;
|
|
2564
2338
|
description?: string | undefined;
|
|
@@ -2570,7 +2344,8 @@ declare const zEventTicketRegResponse: z.ZodObject<{
|
|
|
2570
2344
|
}, {
|
|
2571
2345
|
amount: number;
|
|
2572
2346
|
ticket: {
|
|
2573
|
-
_id:
|
|
2347
|
+
_id: string;
|
|
2348
|
+
editedBy: string;
|
|
2574
2349
|
price: number;
|
|
2575
2350
|
name: string;
|
|
2576
2351
|
description?: string | undefined;
|
|
@@ -2583,7 +2358,7 @@ declare const zEventTicketRegResponse: z.ZodObject<{
|
|
|
2583
2358
|
type EventTicketRegResponse = z.infer<typeof zEventTicketRegResponse>;
|
|
2584
2359
|
type EventTicketReg = z.infer<typeof zEventTicketReg>;
|
|
2585
2360
|
|
|
2586
|
-
declare const
|
|
2361
|
+
declare const zBEventTicket: z.ZodObject<{
|
|
2587
2362
|
name: z.ZodString;
|
|
2588
2363
|
/**
|
|
2589
2364
|
* Price in cents
|
|
@@ -2614,45 +2389,19 @@ declare const zEventTicket: z.ZodObject<{
|
|
|
2614
2389
|
isNotBuyable?: boolean | undefined;
|
|
2615
2390
|
lastBuyableDate?: Date | undefined;
|
|
2616
2391
|
}>;
|
|
2617
|
-
declare const
|
|
2618
|
-
price: z.ZodNumber;
|
|
2619
|
-
name: z.ZodString;
|
|
2620
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2621
|
-
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2622
|
-
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2623
|
-
_id: z.ZodUnion<[z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>, z.ZodString]>;
|
|
2624
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2625
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2626
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2627
|
-
_id: (string | mongoose.Types.ObjectId) & (string | mongoose.Types.ObjectId | undefined);
|
|
2628
|
-
price: number;
|
|
2629
|
-
name: string;
|
|
2630
|
-
description?: string | undefined;
|
|
2631
|
-
isNotBuyable?: boolean | undefined;
|
|
2632
|
-
lastBuyableDate?: Date | undefined;
|
|
2633
|
-
createdAt?: Date | undefined;
|
|
2634
|
-
updatedAt?: Date | undefined;
|
|
2635
|
-
}, {
|
|
2636
|
-
_id: (string | mongoose.Types.ObjectId) & (string | mongoose.Types.ObjectId | undefined);
|
|
2637
|
-
price: number;
|
|
2638
|
-
name: string;
|
|
2639
|
-
description?: string | undefined;
|
|
2640
|
-
isNotBuyable?: boolean | undefined;
|
|
2641
|
-
lastBuyableDate?: Date | undefined;
|
|
2642
|
-
createdAt?: Date | undefined;
|
|
2643
|
-
updatedAt?: Date | undefined;
|
|
2644
|
-
}>;
|
|
2645
|
-
declare const zMEventTicketResponse: z.ZodObject<{
|
|
2392
|
+
declare const zEventTicket: z.ZodObject<{
|
|
2646
2393
|
price: z.ZodNumber;
|
|
2647
2394
|
name: z.ZodString;
|
|
2648
2395
|
description: z.ZodOptional<z.ZodString>;
|
|
2649
2396
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2650
2397
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2651
2398
|
_id: z.ZodString;
|
|
2399
|
+
editedBy: z.ZodString;
|
|
2652
2400
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2653
2401
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2654
2402
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2655
2403
|
_id: string;
|
|
2404
|
+
editedBy: string;
|
|
2656
2405
|
price: number;
|
|
2657
2406
|
name: string;
|
|
2658
2407
|
description?: string | undefined;
|
|
@@ -2662,6 +2411,7 @@ declare const zMEventTicketResponse: z.ZodObject<{
|
|
|
2662
2411
|
updatedAt?: Date | undefined;
|
|
2663
2412
|
}, {
|
|
2664
2413
|
_id: string;
|
|
2414
|
+
editedBy: string;
|
|
2665
2415
|
price: number;
|
|
2666
2416
|
name: string;
|
|
2667
2417
|
description?: string | undefined;
|
|
@@ -2670,9 +2420,8 @@ declare const zMEventTicketResponse: z.ZodObject<{
|
|
|
2670
2420
|
createdAt?: Date | undefined;
|
|
2671
2421
|
updatedAt?: Date | undefined;
|
|
2672
2422
|
}>;
|
|
2423
|
+
type BEventTicket = z.infer<typeof zBEventTicket>;
|
|
2673
2424
|
type EventTicket = z.infer<typeof zEventTicket>;
|
|
2674
|
-
type MEventTicket = z.infer<typeof zMEventTicket>;
|
|
2675
|
-
type MEventTicketResponse = z.infer<typeof zMEventTicketResponse>;
|
|
2676
2425
|
|
|
2677
2426
|
declare enum GoRank {
|
|
2678
2427
|
KYU1 = "1k",
|
|
@@ -2718,7 +2467,7 @@ declare enum GoRank {
|
|
|
2718
2467
|
PRO9 = "9p"
|
|
2719
2468
|
}
|
|
2720
2469
|
|
|
2721
|
-
declare const
|
|
2470
|
+
declare const zBUser: z.ZodObject<{
|
|
2722
2471
|
name: z.ZodString;
|
|
2723
2472
|
username: z.ZodOptional<z.ZodString>;
|
|
2724
2473
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -2749,7 +2498,7 @@ declare const zUser: z.ZodObject<{
|
|
|
2749
2498
|
phoneNumber?: string | undefined;
|
|
2750
2499
|
birthDate?: string | undefined;
|
|
2751
2500
|
}>;
|
|
2752
|
-
declare const
|
|
2501
|
+
declare const zUser: z.ZodObject<{
|
|
2753
2502
|
email: z.ZodOptional<z.ZodString>;
|
|
2754
2503
|
address: z.ZodOptional<z.ZodString>;
|
|
2755
2504
|
name: z.ZodString;
|
|
@@ -2759,11 +2508,13 @@ declare const zMUser: z.ZodObject<{
|
|
|
2759
2508
|
country: z.ZodOptional<z.ZodString>;
|
|
2760
2509
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2761
2510
|
birthDate: z.ZodOptional<z.ZodString>;
|
|
2762
|
-
_id: z.
|
|
2511
|
+
_id: z.ZodString;
|
|
2512
|
+
editedBy: z.ZodString;
|
|
2763
2513
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2764
2514
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2765
2515
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2766
|
-
_id:
|
|
2516
|
+
_id: string;
|
|
2517
|
+
editedBy: string;
|
|
2767
2518
|
name: string;
|
|
2768
2519
|
email?: string | undefined;
|
|
2769
2520
|
address?: string | undefined;
|
|
@@ -2776,7 +2527,8 @@ declare const zMUser: z.ZodObject<{
|
|
|
2776
2527
|
createdAt?: Date | undefined;
|
|
2777
2528
|
updatedAt?: Date | undefined;
|
|
2778
2529
|
}, {
|
|
2779
|
-
_id:
|
|
2530
|
+
_id: string;
|
|
2531
|
+
editedBy: string;
|
|
2780
2532
|
name: string;
|
|
2781
2533
|
email?: string | undefined;
|
|
2782
2534
|
address?: string | undefined;
|
|
@@ -2792,6 +2544,10 @@ declare const zMUser: z.ZodObject<{
|
|
|
2792
2544
|
declare const zStudent: z.ZodObject<{
|
|
2793
2545
|
email: z.ZodOptional<z.ZodString>;
|
|
2794
2546
|
address: z.ZodOptional<z.ZodString>;
|
|
2547
|
+
_id: z.ZodString;
|
|
2548
|
+
editedBy: z.ZodString;
|
|
2549
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2550
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2795
2551
|
name: z.ZodString;
|
|
2796
2552
|
username: z.ZodOptional<z.ZodString>;
|
|
2797
2553
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -2800,81 +2556,47 @@ declare const zStudent: z.ZodObject<{
|
|
|
2800
2556
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2801
2557
|
birthDate: z.ZodOptional<z.ZodString>;
|
|
2802
2558
|
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2803
|
-
guardian: z.ZodOptional<z.
|
|
2804
|
-
},
|
|
2559
|
+
guardian: z.ZodOptional<z.ZodString>;
|
|
2560
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2805
2561
|
rank: GoRank;
|
|
2562
|
+
_id: string;
|
|
2563
|
+
editedBy: string;
|
|
2806
2564
|
name: string;
|
|
2807
2565
|
email?: string | undefined;
|
|
2808
2566
|
address?: string | undefined;
|
|
2567
|
+
createdAt?: Date | undefined;
|
|
2568
|
+
updatedAt?: Date | undefined;
|
|
2809
2569
|
username?: string | undefined;
|
|
2810
2570
|
password?: string | undefined;
|
|
2811
2571
|
roles?: number[] | undefined;
|
|
2812
2572
|
country?: string | undefined;
|
|
2813
2573
|
phoneNumber?: string | undefined;
|
|
2814
2574
|
birthDate?: string | undefined;
|
|
2815
|
-
guardian?:
|
|
2575
|
+
guardian?: string | undefined;
|
|
2816
2576
|
}, {
|
|
2817
2577
|
rank: GoRank;
|
|
2578
|
+
_id: string;
|
|
2579
|
+
editedBy: string;
|
|
2818
2580
|
name: string;
|
|
2819
2581
|
email?: string | undefined;
|
|
2820
2582
|
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
|
-
}>;
|
|
2829
|
-
declare const zMStudent: z.ZodObject<{
|
|
2830
|
-
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2831
|
-
email: z.ZodOptional<z.ZodString>;
|
|
2832
|
-
address: z.ZodOptional<z.ZodString>;
|
|
2833
|
-
name: z.ZodString;
|
|
2834
|
-
username: z.ZodOptional<z.ZodString>;
|
|
2835
|
-
password: z.ZodOptional<z.ZodString>;
|
|
2836
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2837
|
-
country: z.ZodOptional<z.ZodString>;
|
|
2838
|
-
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2839
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
2840
|
-
guardian: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2841
|
-
_id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2842
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2843
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2844
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2845
|
-
rank: GoRank;
|
|
2846
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2847
|
-
name: string;
|
|
2848
|
-
email?: string | undefined;
|
|
2849
|
-
address?: string | undefined;
|
|
2850
|
-
username?: string | undefined;
|
|
2851
|
-
password?: string | undefined;
|
|
2852
|
-
roles?: number[] | undefined;
|
|
2853
|
-
country?: string | undefined;
|
|
2854
|
-
phoneNumber?: string | undefined;
|
|
2855
|
-
birthDate?: string | undefined;
|
|
2856
|
-
guardian?: Types.ObjectId | undefined;
|
|
2857
2583
|
createdAt?: Date | undefined;
|
|
2858
2584
|
updatedAt?: Date | undefined;
|
|
2859
|
-
}, {
|
|
2860
|
-
rank: GoRank;
|
|
2861
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2862
|
-
name: string;
|
|
2863
|
-
email?: string | undefined;
|
|
2864
|
-
address?: string | undefined;
|
|
2865
2585
|
username?: string | undefined;
|
|
2866
2586
|
password?: string | undefined;
|
|
2867
2587
|
roles?: number[] | undefined;
|
|
2868
2588
|
country?: string | undefined;
|
|
2869
2589
|
phoneNumber?: string | undefined;
|
|
2870
2590
|
birthDate?: string | undefined;
|
|
2871
|
-
guardian?:
|
|
2872
|
-
createdAt?: Date | undefined;
|
|
2873
|
-
updatedAt?: Date | undefined;
|
|
2591
|
+
guardian?: string | undefined;
|
|
2874
2592
|
}>;
|
|
2875
2593
|
declare const zTeacher: z.ZodObject<{
|
|
2876
2594
|
email: z.ZodOptional<z.ZodString>;
|
|
2877
2595
|
address: z.ZodOptional<z.ZodString>;
|
|
2596
|
+
_id: z.ZodString;
|
|
2597
|
+
editedBy: z.ZodString;
|
|
2598
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2599
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2878
2600
|
name: z.ZodString;
|
|
2879
2601
|
username: z.ZodOptional<z.ZodString>;
|
|
2880
2602
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -2887,11 +2609,15 @@ declare const zTeacher: z.ZodObject<{
|
|
|
2887
2609
|
title: z.ZodOptional<z.ZodString>;
|
|
2888
2610
|
bio: z.ZodOptional<z.ZodString>;
|
|
2889
2611
|
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
2890
|
-
},
|
|
2612
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2891
2613
|
rank: GoRank;
|
|
2614
|
+
_id: string;
|
|
2615
|
+
editedBy: string;
|
|
2892
2616
|
name: string;
|
|
2893
2617
|
email?: string | undefined;
|
|
2894
2618
|
address?: string | undefined;
|
|
2619
|
+
createdAt?: Date | undefined;
|
|
2620
|
+
updatedAt?: Date | undefined;
|
|
2895
2621
|
username?: string | undefined;
|
|
2896
2622
|
password?: string | undefined;
|
|
2897
2623
|
roles?: number[] | undefined;
|
|
@@ -2904,64 +2630,13 @@ declare const zTeacher: z.ZodObject<{
|
|
|
2904
2630
|
available?: number[][][] | undefined;
|
|
2905
2631
|
}, {
|
|
2906
2632
|
rank: GoRank;
|
|
2633
|
+
_id: string;
|
|
2634
|
+
editedBy: string;
|
|
2907
2635
|
name: string;
|
|
2908
2636
|
email?: string | undefined;
|
|
2909
2637
|
address?: string | undefined;
|
|
2910
|
-
username?: string | undefined;
|
|
2911
|
-
password?: string | undefined;
|
|
2912
|
-
roles?: number[] | undefined;
|
|
2913
|
-
country?: string | undefined;
|
|
2914
|
-
phoneNumber?: string | undefined;
|
|
2915
|
-
birthDate?: string | undefined;
|
|
2916
|
-
isInactive?: boolean | undefined;
|
|
2917
|
-
title?: string | undefined;
|
|
2918
|
-
bio?: string | undefined;
|
|
2919
|
-
available?: number[][][] | undefined;
|
|
2920
|
-
}>;
|
|
2921
|
-
declare const zMTeacher: z.ZodObject<{
|
|
2922
|
-
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2923
|
-
email: z.ZodOptional<z.ZodString>;
|
|
2924
|
-
address: z.ZodOptional<z.ZodString>;
|
|
2925
|
-
name: z.ZodString;
|
|
2926
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2927
|
-
bio: z.ZodOptional<z.ZodString>;
|
|
2928
|
-
username: z.ZodOptional<z.ZodString>;
|
|
2929
|
-
password: z.ZodOptional<z.ZodString>;
|
|
2930
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2931
|
-
country: z.ZodOptional<z.ZodString>;
|
|
2932
|
-
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2933
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
2934
|
-
isInactive: z.ZodOptional<z.ZodBoolean>;
|
|
2935
|
-
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
2936
|
-
_id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2937
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2938
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2939
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2940
|
-
rank: GoRank;
|
|
2941
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2942
|
-
name: string;
|
|
2943
|
-
email?: string | undefined;
|
|
2944
|
-
address?: string | undefined;
|
|
2945
|
-
title?: string | undefined;
|
|
2946
|
-
bio?: string | undefined;
|
|
2947
|
-
username?: string | undefined;
|
|
2948
|
-
password?: string | undefined;
|
|
2949
|
-
roles?: number[] | undefined;
|
|
2950
|
-
country?: string | undefined;
|
|
2951
|
-
phoneNumber?: string | undefined;
|
|
2952
|
-
birthDate?: string | undefined;
|
|
2953
|
-
isInactive?: boolean | undefined;
|
|
2954
|
-
available?: number[][][] | undefined;
|
|
2955
2638
|
createdAt?: Date | undefined;
|
|
2956
2639
|
updatedAt?: Date | undefined;
|
|
2957
|
-
}, {
|
|
2958
|
-
rank: GoRank;
|
|
2959
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2960
|
-
name: string;
|
|
2961
|
-
email?: string | undefined;
|
|
2962
|
-
address?: string | undefined;
|
|
2963
|
-
title?: string | undefined;
|
|
2964
|
-
bio?: string | undefined;
|
|
2965
2640
|
username?: string | undefined;
|
|
2966
2641
|
password?: string | undefined;
|
|
2967
2642
|
roles?: number[] | undefined;
|
|
@@ -2969,16 +2644,14 @@ declare const zMTeacher: z.ZodObject<{
|
|
|
2969
2644
|
phoneNumber?: string | undefined;
|
|
2970
2645
|
birthDate?: string | undefined;
|
|
2971
2646
|
isInactive?: boolean | undefined;
|
|
2647
|
+
title?: string | undefined;
|
|
2648
|
+
bio?: string | undefined;
|
|
2972
2649
|
available?: number[][][] | undefined;
|
|
2973
|
-
createdAt?: Date | undefined;
|
|
2974
|
-
updatedAt?: Date | undefined;
|
|
2975
2650
|
}>;
|
|
2976
|
-
type
|
|
2977
|
-
type MStudent = z.infer<typeof zMStudent>;
|
|
2651
|
+
type BUser = z.infer<typeof zBUser>;
|
|
2978
2652
|
type User = z.infer<typeof zUser>;
|
|
2979
|
-
type
|
|
2653
|
+
type Student = z.infer<typeof zStudent>;
|
|
2980
2654
|
type Teacher = z.infer<typeof zTeacher>;
|
|
2981
|
-
type MTeacher = z.infer<typeof zMTeacher>;
|
|
2982
2655
|
|
|
2983
2656
|
declare const zUserRoles: z.ZodObject<{
|
|
2984
2657
|
user: z.ZodNumber;
|
|
@@ -2995,4 +2668,4 @@ declare const zUserRoles: z.ZodObject<{
|
|
|
2995
2668
|
}>;
|
|
2996
2669
|
type UserRoles = z.infer<typeof zUserRoles>;
|
|
2997
2670
|
|
|
2998
|
-
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type
|
|
2671
|
+
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 };
|