@nyig/models 0.2.5 → 0.2.6
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 +5 -0
- package/index.d.mts +1840 -2
- package/index.d.ts +1840 -2
- package/index.js +779 -6
- package/index.mjs +720 -5
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -1,14 +1,1852 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
3
|
+
declare const zBUserInfo: z.ZodObject<{
|
|
4
|
+
firstName: z.ZodString;
|
|
5
|
+
lastName: z.ZodString;
|
|
6
|
+
rank: z.ZodString;
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
9
|
+
address: z.ZodOptional<z.ZodString>;
|
|
10
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
rank: string;
|
|
15
|
+
email: string;
|
|
16
|
+
phone?: string | undefined;
|
|
17
|
+
address?: string | undefined;
|
|
18
|
+
notes?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
firstName: string;
|
|
21
|
+
lastName: string;
|
|
22
|
+
rank: string;
|
|
23
|
+
email: string;
|
|
24
|
+
phone?: string | undefined;
|
|
25
|
+
address?: string | undefined;
|
|
26
|
+
notes?: string | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
type BUserInfo = z.infer<typeof zBUserInfo>;
|
|
29
|
+
|
|
30
|
+
declare const zPrivateBooking: z.ZodObject<{
|
|
31
|
+
firstName: z.ZodString;
|
|
32
|
+
lastName: z.ZodString;
|
|
33
|
+
rank: z.ZodString;
|
|
34
|
+
email: z.ZodString;
|
|
35
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
36
|
+
address: z.ZodOptional<z.ZodString>;
|
|
37
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
38
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
39
|
+
courseId: z.ZodString;
|
|
40
|
+
teacherId: z.ZodString;
|
|
41
|
+
classDate: z.ZodOptional<z.ZodString>;
|
|
42
|
+
paymentAmount: z.ZodNumber;
|
|
43
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
firstName: string;
|
|
47
|
+
lastName: string;
|
|
48
|
+
rank: string;
|
|
49
|
+
email: string;
|
|
50
|
+
paymentAmount: number;
|
|
51
|
+
courseId: string;
|
|
52
|
+
teacherId: string;
|
|
53
|
+
phone?: string | undefined;
|
|
54
|
+
address?: string | undefined;
|
|
55
|
+
notes?: string | undefined;
|
|
56
|
+
userId?: string | undefined;
|
|
57
|
+
classDate?: string | undefined;
|
|
58
|
+
paymentReceived?: boolean | undefined;
|
|
59
|
+
expireAt?: Date | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
firstName: string;
|
|
62
|
+
lastName: string;
|
|
63
|
+
rank: string;
|
|
64
|
+
email: string;
|
|
65
|
+
paymentAmount: number;
|
|
66
|
+
courseId: string;
|
|
67
|
+
teacherId: string;
|
|
68
|
+
phone?: string | undefined;
|
|
69
|
+
address?: string | undefined;
|
|
70
|
+
notes?: string | undefined;
|
|
71
|
+
userId?: string | undefined;
|
|
72
|
+
classDate?: string | undefined;
|
|
73
|
+
paymentReceived?: boolean | undefined;
|
|
74
|
+
expireAt?: Date | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
declare const zMPrivateBooking: z.ZodObject<{
|
|
77
|
+
[x: string]: any;
|
|
78
|
+
[x: number]: any;
|
|
79
|
+
[x: symbol]: any;
|
|
80
|
+
_id: z.ZodString;
|
|
81
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
82
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
83
|
+
}, any, any, {
|
|
84
|
+
[x: string]: any;
|
|
85
|
+
[x: number]: any;
|
|
86
|
+
[x: symbol]: any;
|
|
87
|
+
_id?: string | undefined;
|
|
88
|
+
createdAt?: Date | undefined;
|
|
89
|
+
updatedAt?: Date | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
[x: string]: any;
|
|
92
|
+
[x: number]: any;
|
|
93
|
+
[x: symbol]: any;
|
|
94
|
+
_id?: string | undefined;
|
|
95
|
+
createdAt?: Date | undefined;
|
|
96
|
+
updatedAt?: Date | undefined;
|
|
97
|
+
}>;
|
|
98
|
+
type BPrivate = z.infer<typeof zPrivateBooking>;
|
|
99
|
+
type MBPrivate = z.infer<typeof zMPrivateBooking>;
|
|
100
|
+
|
|
101
|
+
declare const zGroupBooking: z.ZodObject<{
|
|
102
|
+
firstName: z.ZodString;
|
|
103
|
+
lastName: z.ZodString;
|
|
104
|
+
rank: z.ZodString;
|
|
105
|
+
email: z.ZodString;
|
|
106
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
107
|
+
address: z.ZodOptional<z.ZodString>;
|
|
108
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
109
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
classDate: z.ZodOptional<z.ZodString>;
|
|
111
|
+
gtId: z.ZodOptional<z.ZodString>;
|
|
112
|
+
isTrial: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
isOnline: z.ZodBoolean;
|
|
114
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
paymentAmount: z.ZodNumber;
|
|
116
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
firstName: string;
|
|
120
|
+
lastName: string;
|
|
121
|
+
rank: string;
|
|
122
|
+
email: string;
|
|
123
|
+
paymentAmount: number;
|
|
124
|
+
isOnline: boolean;
|
|
125
|
+
phone?: string | undefined;
|
|
126
|
+
address?: string | undefined;
|
|
127
|
+
notes?: string | undefined;
|
|
128
|
+
userId?: string | undefined;
|
|
129
|
+
classDate?: string | undefined;
|
|
130
|
+
gtId?: string | undefined;
|
|
131
|
+
isTrial?: boolean | undefined;
|
|
132
|
+
shipping?: boolean | undefined;
|
|
133
|
+
paymentReceived?: boolean | undefined;
|
|
134
|
+
expireAt?: Date | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
firstName: string;
|
|
137
|
+
lastName: string;
|
|
138
|
+
rank: string;
|
|
139
|
+
email: string;
|
|
140
|
+
paymentAmount: number;
|
|
141
|
+
isOnline: boolean;
|
|
142
|
+
phone?: string | undefined;
|
|
143
|
+
address?: string | undefined;
|
|
144
|
+
notes?: string | undefined;
|
|
145
|
+
userId?: string | undefined;
|
|
146
|
+
classDate?: string | undefined;
|
|
147
|
+
gtId?: string | undefined;
|
|
148
|
+
isTrial?: boolean | undefined;
|
|
149
|
+
shipping?: boolean | undefined;
|
|
150
|
+
paymentReceived?: boolean | undefined;
|
|
151
|
+
expireAt?: Date | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
declare const zMGroupBooking: z.ZodObject<{
|
|
154
|
+
[x: string]: any;
|
|
155
|
+
[x: number]: any;
|
|
156
|
+
[x: symbol]: any;
|
|
157
|
+
_id: z.ZodString;
|
|
158
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
159
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
160
|
+
}, any, any, {
|
|
161
|
+
[x: string]: any;
|
|
162
|
+
[x: number]: any;
|
|
163
|
+
[x: symbol]: any;
|
|
164
|
+
_id?: string | undefined;
|
|
165
|
+
createdAt?: Date | undefined;
|
|
166
|
+
updatedAt?: Date | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
[x: string]: any;
|
|
169
|
+
[x: number]: any;
|
|
170
|
+
[x: symbol]: any;
|
|
171
|
+
_id?: string | undefined;
|
|
172
|
+
createdAt?: Date | undefined;
|
|
173
|
+
updatedAt?: Date | undefined;
|
|
174
|
+
}>;
|
|
175
|
+
type GroupBooking = z.infer<typeof zGroupBooking>;
|
|
176
|
+
type MGroupBooking = z.infer<typeof zMGroupBooking>;
|
|
177
|
+
|
|
178
|
+
declare enum AttendState {
|
|
179
|
+
ABSENT = "absent",
|
|
180
|
+
PRESENT = "present",
|
|
181
|
+
NONE = "none"
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare enum CampOption {
|
|
185
|
+
AM = "am",
|
|
186
|
+
PM = "pm",
|
|
187
|
+
FULL = "full"
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
declare const zAttendance: z.ZodObject<{
|
|
191
|
+
student: z.ZodString;
|
|
192
|
+
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
193
|
+
tuition: z.ZodObject<{
|
|
194
|
+
primary: z.ZodNumber;
|
|
195
|
+
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
primary: number;
|
|
199
|
+
textbook?: boolean | undefined;
|
|
200
|
+
shipping?: boolean | undefined;
|
|
201
|
+
}, {
|
|
202
|
+
primary: number;
|
|
203
|
+
textbook?: boolean | undefined;
|
|
204
|
+
shipping?: boolean | undefined;
|
|
205
|
+
}>;
|
|
206
|
+
paid: z.ZodOptional<z.ZodBoolean>;
|
|
207
|
+
campOption: z.ZodNativeEnum<typeof CampOption>;
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
student: string;
|
|
210
|
+
states: AttendState[];
|
|
211
|
+
tuition: {
|
|
212
|
+
primary: number;
|
|
213
|
+
textbook?: boolean | undefined;
|
|
214
|
+
shipping?: boolean | undefined;
|
|
215
|
+
};
|
|
216
|
+
campOption: CampOption;
|
|
217
|
+
paid?: boolean | undefined;
|
|
218
|
+
}, {
|
|
219
|
+
student: string;
|
|
220
|
+
states: AttendState[];
|
|
221
|
+
tuition: {
|
|
222
|
+
primary: number;
|
|
223
|
+
textbook?: boolean | undefined;
|
|
224
|
+
shipping?: boolean | undefined;
|
|
225
|
+
};
|
|
226
|
+
campOption: CampOption;
|
|
227
|
+
paid?: boolean | undefined;
|
|
228
|
+
}>;
|
|
229
|
+
declare const zMAttendance: z.ZodObject<{
|
|
230
|
+
[x: string]: any;
|
|
231
|
+
[x: number]: any;
|
|
232
|
+
[x: symbol]: any;
|
|
233
|
+
_id: z.ZodString;
|
|
234
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
235
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
236
|
+
}, any, any, {
|
|
237
|
+
[x: string]: any;
|
|
238
|
+
[x: number]: any;
|
|
239
|
+
[x: symbol]: any;
|
|
240
|
+
_id?: string | undefined;
|
|
241
|
+
createdAt?: Date | undefined;
|
|
242
|
+
updatedAt?: Date | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
[x: string]: any;
|
|
245
|
+
[x: number]: any;
|
|
246
|
+
[x: symbol]: any;
|
|
247
|
+
_id?: string | undefined;
|
|
248
|
+
createdAt?: Date | undefined;
|
|
249
|
+
updatedAt?: Date | undefined;
|
|
250
|
+
}>;
|
|
251
|
+
type Attendance = z.infer<typeof zAttendance>;
|
|
252
|
+
type MAttendance = z.infer<typeof zMAttendance>;
|
|
253
|
+
|
|
254
|
+
declare const zCampTracker: z.ZodObject<{
|
|
255
|
+
/**
|
|
256
|
+
* Mongoose object ID
|
|
257
|
+
*/
|
|
258
|
+
course: z.ZodString;
|
|
259
|
+
/**
|
|
260
|
+
* Mongoose object ID
|
|
261
|
+
*/
|
|
262
|
+
teacher: z.ZodString;
|
|
263
|
+
/**
|
|
264
|
+
* Mongoose object ID
|
|
265
|
+
*/
|
|
266
|
+
semester: z.ZodString;
|
|
267
|
+
/**
|
|
268
|
+
* occurrences are tracked by week for camps
|
|
269
|
+
*/
|
|
270
|
+
occurrences: z.ZodArray<z.ZodString, "many">;
|
|
271
|
+
/**
|
|
272
|
+
* attendances are tracked by week for camps
|
|
273
|
+
*/
|
|
274
|
+
attendances: z.ZodArray<z.ZodString, "many">;
|
|
275
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
course: string;
|
|
278
|
+
teacher: string;
|
|
279
|
+
semester: string;
|
|
280
|
+
occurrences: string[];
|
|
281
|
+
attendances: string[];
|
|
282
|
+
notes?: string | undefined;
|
|
283
|
+
}, {
|
|
284
|
+
course: string;
|
|
285
|
+
teacher: string;
|
|
286
|
+
semester: string;
|
|
287
|
+
occurrences: string[];
|
|
288
|
+
attendances: string[];
|
|
289
|
+
notes?: string | undefined;
|
|
290
|
+
}>;
|
|
291
|
+
declare const zMCampTracker: z.ZodObject<{
|
|
292
|
+
[x: string]: any;
|
|
293
|
+
[x: number]: any;
|
|
294
|
+
[x: symbol]: any;
|
|
295
|
+
_id: z.ZodString;
|
|
296
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
297
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
298
|
+
}, any, any, {
|
|
299
|
+
[x: string]: any;
|
|
300
|
+
[x: number]: any;
|
|
301
|
+
[x: symbol]: any;
|
|
302
|
+
_id?: string | undefined;
|
|
303
|
+
createdAt?: Date | undefined;
|
|
304
|
+
updatedAt?: Date | undefined;
|
|
305
|
+
}, {
|
|
306
|
+
[x: string]: any;
|
|
307
|
+
[x: number]: any;
|
|
308
|
+
[x: symbol]: any;
|
|
309
|
+
_id?: string | undefined;
|
|
310
|
+
createdAt?: Date | undefined;
|
|
311
|
+
updatedAt?: Date | undefined;
|
|
312
|
+
}>;
|
|
313
|
+
type CampTracker = z.infer<typeof zCampTracker>;
|
|
314
|
+
type MCampTracker = z.infer<typeof zMCampTracker>;
|
|
315
|
+
|
|
316
|
+
declare const zClassTracker: z.ZodObject<{
|
|
317
|
+
/**
|
|
318
|
+
* Mongoose object ID
|
|
319
|
+
*/
|
|
320
|
+
course: z.ZodString;
|
|
321
|
+
/**
|
|
322
|
+
* Mongoose object ID
|
|
323
|
+
*/
|
|
324
|
+
teacher: z.ZodString;
|
|
325
|
+
/**
|
|
326
|
+
* Mongoose object ID
|
|
327
|
+
*/
|
|
328
|
+
semester: z.ZodString;
|
|
329
|
+
classTimes: z.ZodArray<z.ZodDate, "many">;
|
|
330
|
+
completedList: z.ZodArray<z.ZodBoolean, "many">;
|
|
331
|
+
/**
|
|
332
|
+
* Virtual mongoose field when all values in completedList is true
|
|
333
|
+
*/
|
|
334
|
+
completed: z.ZodOptional<z.ZodBoolean>;
|
|
335
|
+
tuition: z.ZodOptional<z.ZodObject<{
|
|
336
|
+
primary: z.ZodNumber;
|
|
337
|
+
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
339
|
+
}, "strip", z.ZodTypeAny, {
|
|
340
|
+
primary: number;
|
|
341
|
+
textbook?: boolean | undefined;
|
|
342
|
+
shipping?: boolean | undefined;
|
|
343
|
+
}, {
|
|
344
|
+
primary: number;
|
|
345
|
+
textbook?: boolean | undefined;
|
|
346
|
+
shipping?: boolean | undefined;
|
|
347
|
+
}>>;
|
|
348
|
+
paid: z.ZodOptional<z.ZodBoolean>;
|
|
349
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
350
|
+
}, "strip", z.ZodTypeAny, {
|
|
351
|
+
course: string;
|
|
352
|
+
teacher: string;
|
|
353
|
+
semester: string;
|
|
354
|
+
classTimes: Date[];
|
|
355
|
+
completedList: boolean[];
|
|
356
|
+
completed?: boolean | undefined;
|
|
357
|
+
tuition?: {
|
|
358
|
+
primary: number;
|
|
359
|
+
textbook?: boolean | undefined;
|
|
360
|
+
shipping?: boolean | undefined;
|
|
361
|
+
} | undefined;
|
|
362
|
+
paid?: boolean | undefined;
|
|
363
|
+
notes?: string | undefined;
|
|
364
|
+
}, {
|
|
365
|
+
course: string;
|
|
366
|
+
teacher: string;
|
|
367
|
+
semester: string;
|
|
368
|
+
classTimes: Date[];
|
|
369
|
+
completedList: boolean[];
|
|
370
|
+
completed?: boolean | undefined;
|
|
371
|
+
tuition?: {
|
|
372
|
+
primary: number;
|
|
373
|
+
textbook?: boolean | undefined;
|
|
374
|
+
shipping?: boolean | undefined;
|
|
375
|
+
} | undefined;
|
|
376
|
+
paid?: boolean | undefined;
|
|
377
|
+
notes?: string | undefined;
|
|
378
|
+
}>;
|
|
379
|
+
declare const zMClassTracker: z.ZodObject<{
|
|
380
|
+
[x: string]: any;
|
|
381
|
+
[x: number]: any;
|
|
382
|
+
[x: symbol]: any;
|
|
383
|
+
_id: z.ZodString;
|
|
384
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
385
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
386
|
+
}, any, any, {
|
|
387
|
+
[x: string]: any;
|
|
388
|
+
[x: number]: any;
|
|
389
|
+
[x: symbol]: any;
|
|
390
|
+
_id?: string | undefined;
|
|
391
|
+
createdAt?: Date | undefined;
|
|
392
|
+
updatedAt?: Date | undefined;
|
|
393
|
+
}, {
|
|
394
|
+
[x: string]: any;
|
|
395
|
+
[x: number]: any;
|
|
396
|
+
[x: symbol]: any;
|
|
397
|
+
_id?: string | undefined;
|
|
398
|
+
createdAt?: Date | undefined;
|
|
399
|
+
updatedAt?: Date | undefined;
|
|
400
|
+
}>;
|
|
401
|
+
type ClassTracker = z.infer<typeof zClassTracker>;
|
|
402
|
+
type MClassTracker = z.infer<typeof zMClassTracker>;
|
|
403
|
+
|
|
404
|
+
declare enum AgeGroup {
|
|
405
|
+
ADULT = "Adult",
|
|
406
|
+
YOUTH = "Youth"
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
declare enum CourseCategory {
|
|
410
|
+
GROUP = "group",
|
|
411
|
+
PRIVATE = "private",
|
|
412
|
+
SEMIPRIVATE = "semiprivate",
|
|
413
|
+
CAMP = "camp"
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
declare enum NYIGSchool {
|
|
417
|
+
MANHATTAN = "Manhattan",
|
|
418
|
+
LITTLENECK = "Little Neck",
|
|
419
|
+
ONLINE = "Online"
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
declare const zCourse: z.ZodObject<{
|
|
4
423
|
name: z.ZodString;
|
|
424
|
+
category: z.ZodNativeEnum<typeof CourseCategory>;
|
|
425
|
+
/**
|
|
426
|
+
* @unit SECONDS - Duration of the course in seconds
|
|
427
|
+
*/
|
|
428
|
+
duration: z.ZodNumber;
|
|
429
|
+
/**
|
|
430
|
+
* @unit CENTS - Price of the course in cents
|
|
431
|
+
*/
|
|
432
|
+
price: z.ZodNumber;
|
|
433
|
+
description: z.ZodOptional<z.ZodString>;
|
|
434
|
+
/**
|
|
435
|
+
* NYIG School locations
|
|
436
|
+
*/
|
|
437
|
+
nyigSchool: z.ZodNativeEnum<typeof NYIGSchool>;
|
|
438
|
+
/**
|
|
439
|
+
* Recommended level before taking this course
|
|
440
|
+
*/
|
|
441
|
+
recLevel: z.ZodString;
|
|
442
|
+
/**
|
|
443
|
+
* Camp tuition for half-day option
|
|
444
|
+
*/
|
|
445
|
+
halfCampTuition: z.ZodNumber;
|
|
446
|
+
/**
|
|
447
|
+
* Camp tuition for full-day option
|
|
448
|
+
*/
|
|
449
|
+
fullCampTuition: z.ZodNumber;
|
|
450
|
+
}, "strip", z.ZodTypeAny, {
|
|
451
|
+
price: number;
|
|
452
|
+
name: string;
|
|
453
|
+
category: CourseCategory;
|
|
454
|
+
duration: number;
|
|
455
|
+
nyigSchool: NYIGSchool;
|
|
456
|
+
recLevel: string;
|
|
457
|
+
halfCampTuition: number;
|
|
458
|
+
fullCampTuition: number;
|
|
459
|
+
description?: string | undefined;
|
|
460
|
+
}, {
|
|
461
|
+
price: number;
|
|
462
|
+
name: string;
|
|
463
|
+
category: CourseCategory;
|
|
464
|
+
duration: number;
|
|
465
|
+
nyigSchool: NYIGSchool;
|
|
466
|
+
recLevel: string;
|
|
467
|
+
halfCampTuition: number;
|
|
468
|
+
fullCampTuition: number;
|
|
469
|
+
description?: string | undefined;
|
|
470
|
+
}>;
|
|
471
|
+
declare const zMCourse: z.ZodObject<{
|
|
472
|
+
[x: string]: any;
|
|
473
|
+
[x: number]: any;
|
|
474
|
+
[x: symbol]: any;
|
|
475
|
+
_id: z.ZodString;
|
|
476
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
477
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
478
|
+
}, any, any, {
|
|
479
|
+
[x: string]: any;
|
|
480
|
+
[x: number]: any;
|
|
481
|
+
[x: symbol]: any;
|
|
482
|
+
_id?: string | undefined;
|
|
483
|
+
createdAt?: Date | undefined;
|
|
484
|
+
updatedAt?: Date | undefined;
|
|
485
|
+
}, {
|
|
486
|
+
[x: string]: any;
|
|
487
|
+
[x: number]: any;
|
|
488
|
+
[x: symbol]: any;
|
|
489
|
+
_id?: string | undefined;
|
|
490
|
+
createdAt?: Date | undefined;
|
|
491
|
+
updatedAt?: Date | undefined;
|
|
492
|
+
}>;
|
|
493
|
+
type Course = z.infer<typeof zCourse>;
|
|
494
|
+
type MCourse = z.infer<typeof zMCourse>;
|
|
495
|
+
|
|
496
|
+
declare const zGroupTracker: z.ZodObject<{
|
|
497
|
+
/**
|
|
498
|
+
* Mongoose object ID
|
|
499
|
+
*/
|
|
500
|
+
course: z.ZodString;
|
|
501
|
+
/**
|
|
502
|
+
* Mongoose object ID
|
|
503
|
+
*/
|
|
504
|
+
teacher: z.ZodString;
|
|
505
|
+
/**
|
|
506
|
+
* Mongoose object ID
|
|
507
|
+
*/
|
|
508
|
+
semester: z.ZodString;
|
|
509
|
+
scheduleData: z.ZodObject<{
|
|
510
|
+
startTime: z.ZodString;
|
|
511
|
+
dayOfWeek: z.ZodNumber;
|
|
512
|
+
}, "strip", z.ZodTypeAny, {
|
|
513
|
+
startTime: string;
|
|
514
|
+
dayOfWeek: number;
|
|
515
|
+
}, {
|
|
516
|
+
startTime: string;
|
|
517
|
+
dayOfWeek: number;
|
|
518
|
+
}>;
|
|
519
|
+
/**
|
|
520
|
+
* occurrences are tracked by week for Groups
|
|
521
|
+
*/
|
|
522
|
+
occurrences: z.ZodArray<z.ZodDate, "many">;
|
|
523
|
+
/**
|
|
524
|
+
* attendances are tracked by week for Groups
|
|
525
|
+
*/
|
|
526
|
+
attendances: z.ZodArray<z.ZodString, "many">;
|
|
527
|
+
/**
|
|
528
|
+
* ID of the course instance, e.g., 101
|
|
529
|
+
*/
|
|
530
|
+
courseId: z.ZodOptional<z.ZodString>;
|
|
531
|
+
/**
|
|
532
|
+
* Age group of the class instance, e.g. "adult", "youth"
|
|
533
|
+
*/
|
|
534
|
+
ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
|
|
535
|
+
/**
|
|
536
|
+
* If true, the course is hidden from public view
|
|
537
|
+
*/
|
|
538
|
+
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
539
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
540
|
+
}, "strip", z.ZodTypeAny, {
|
|
541
|
+
course: string;
|
|
542
|
+
teacher: string;
|
|
543
|
+
semester: string;
|
|
544
|
+
occurrences: Date[];
|
|
545
|
+
attendances: string[];
|
|
546
|
+
scheduleData: {
|
|
547
|
+
startTime: string;
|
|
548
|
+
dayOfWeek: number;
|
|
549
|
+
};
|
|
550
|
+
courseId?: string | undefined;
|
|
551
|
+
ageGroup?: AgeGroup | undefined;
|
|
552
|
+
isNonPublic?: boolean | undefined;
|
|
553
|
+
notes?: string | undefined;
|
|
554
|
+
}, {
|
|
555
|
+
course: string;
|
|
556
|
+
teacher: string;
|
|
557
|
+
semester: string;
|
|
558
|
+
occurrences: Date[];
|
|
559
|
+
attendances: string[];
|
|
560
|
+
scheduleData: {
|
|
561
|
+
startTime: string;
|
|
562
|
+
dayOfWeek: number;
|
|
563
|
+
};
|
|
564
|
+
courseId?: string | undefined;
|
|
565
|
+
ageGroup?: AgeGroup | undefined;
|
|
566
|
+
isNonPublic?: boolean | undefined;
|
|
567
|
+
notes?: string | undefined;
|
|
568
|
+
}>;
|
|
569
|
+
declare const zMGroupTracker: z.ZodObject<{
|
|
570
|
+
[x: string]: any;
|
|
571
|
+
[x: number]: any;
|
|
572
|
+
[x: symbol]: any;
|
|
573
|
+
_id: z.ZodString;
|
|
574
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
575
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
576
|
+
}, any, any, {
|
|
577
|
+
[x: string]: any;
|
|
578
|
+
[x: number]: any;
|
|
579
|
+
[x: symbol]: any;
|
|
580
|
+
_id?: string | undefined;
|
|
581
|
+
createdAt?: Date | undefined;
|
|
582
|
+
updatedAt?: Date | undefined;
|
|
583
|
+
}, {
|
|
584
|
+
[x: string]: any;
|
|
585
|
+
[x: number]: any;
|
|
586
|
+
[x: symbol]: any;
|
|
587
|
+
_id?: string | undefined;
|
|
588
|
+
createdAt?: Date | undefined;
|
|
589
|
+
updatedAt?: Date | undefined;
|
|
590
|
+
}>;
|
|
591
|
+
type GroupTracker = z.infer<typeof zGroupTracker>;
|
|
592
|
+
type MGroupTracker = z.infer<typeof zMGroupTracker>;
|
|
593
|
+
|
|
594
|
+
declare const zScheduleData: z.ZodObject<{
|
|
595
|
+
startTime: z.ZodString;
|
|
596
|
+
dayOfWeek: z.ZodNumber;
|
|
597
|
+
}, "strip", z.ZodTypeAny, {
|
|
598
|
+
startTime: string;
|
|
599
|
+
dayOfWeek: number;
|
|
600
|
+
}, {
|
|
601
|
+
startTime: string;
|
|
602
|
+
dayOfWeek: number;
|
|
603
|
+
}>;
|
|
604
|
+
type ScheduleData = z.infer<typeof zScheduleData>;
|
|
605
|
+
|
|
606
|
+
declare const zCampBooking: z.ZodObject<{
|
|
607
|
+
firstName: z.ZodString;
|
|
608
|
+
lastName: z.ZodString;
|
|
609
|
+
rank: z.ZodString;
|
|
5
610
|
email: z.ZodString;
|
|
611
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
612
|
+
address: z.ZodOptional<z.ZodString>;
|
|
613
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
614
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
615
|
+
isOnline: z.ZodBoolean;
|
|
616
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
617
|
+
campOption: z.ZodNativeEnum<typeof CampOption>;
|
|
618
|
+
ctId: z.ZodOptional<z.ZodString>;
|
|
619
|
+
classDates: z.ZodString;
|
|
620
|
+
paymentAmount: z.ZodNumber;
|
|
621
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
622
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
623
|
+
}, "strip", z.ZodTypeAny, {
|
|
624
|
+
firstName: string;
|
|
625
|
+
lastName: string;
|
|
626
|
+
rank: string;
|
|
627
|
+
email: string;
|
|
628
|
+
paymentAmount: number;
|
|
629
|
+
isOnline: boolean;
|
|
630
|
+
campOption: CampOption;
|
|
631
|
+
classDates: string;
|
|
632
|
+
phone?: string | undefined;
|
|
633
|
+
address?: string | undefined;
|
|
634
|
+
notes?: string | undefined;
|
|
635
|
+
userId?: string | undefined;
|
|
636
|
+
shipping?: boolean | undefined;
|
|
637
|
+
ctId?: string | undefined;
|
|
638
|
+
paymentReceived?: boolean | undefined;
|
|
639
|
+
expireAt?: Date | undefined;
|
|
640
|
+
}, {
|
|
641
|
+
firstName: string;
|
|
642
|
+
lastName: string;
|
|
643
|
+
rank: string;
|
|
644
|
+
email: string;
|
|
645
|
+
paymentAmount: number;
|
|
646
|
+
isOnline: boolean;
|
|
647
|
+
campOption: CampOption;
|
|
648
|
+
classDates: string;
|
|
649
|
+
phone?: string | undefined;
|
|
650
|
+
address?: string | undefined;
|
|
651
|
+
notes?: string | undefined;
|
|
652
|
+
userId?: string | undefined;
|
|
653
|
+
shipping?: boolean | undefined;
|
|
654
|
+
ctId?: string | undefined;
|
|
655
|
+
paymentReceived?: boolean | undefined;
|
|
656
|
+
expireAt?: Date | undefined;
|
|
657
|
+
}>;
|
|
658
|
+
declare const zMCampBooking: z.ZodObject<{
|
|
659
|
+
[x: string]: any;
|
|
660
|
+
[x: number]: any;
|
|
661
|
+
[x: symbol]: any;
|
|
662
|
+
_id: z.ZodString;
|
|
663
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
664
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
665
|
+
}, any, any, {
|
|
666
|
+
[x: string]: any;
|
|
667
|
+
[x: number]: any;
|
|
668
|
+
[x: symbol]: any;
|
|
669
|
+
_id?: string | undefined;
|
|
670
|
+
createdAt?: Date | undefined;
|
|
671
|
+
updatedAt?: Date | undefined;
|
|
672
|
+
}, {
|
|
673
|
+
[x: string]: any;
|
|
674
|
+
[x: number]: any;
|
|
675
|
+
[x: symbol]: any;
|
|
676
|
+
_id?: string | undefined;
|
|
677
|
+
createdAt?: Date | undefined;
|
|
678
|
+
updatedAt?: Date | undefined;
|
|
679
|
+
}>;
|
|
680
|
+
type CampBooking = z.infer<typeof zCampBooking>;
|
|
681
|
+
type MCampBooking = z.infer<typeof zMCampBooking>;
|
|
682
|
+
|
|
683
|
+
declare const zBPaymentInfo: z.ZodObject<{
|
|
684
|
+
/**
|
|
685
|
+
* @units CENTS - Proposed payment amount in cents of the booking
|
|
686
|
+
*/
|
|
687
|
+
paymentAmount: z.ZodNumber;
|
|
688
|
+
/**
|
|
689
|
+
* True if the payment has been received. Populated by webhook.
|
|
690
|
+
*/
|
|
691
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
692
|
+
/**
|
|
693
|
+
* When Date is reached, document is deleted by MongoDB sweeper.
|
|
694
|
+
* Creation typically marks one to two weeks.
|
|
695
|
+
* After payment, webhook should extend this date to essentially infinite.
|
|
696
|
+
*/
|
|
697
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
6
698
|
}, "strip", z.ZodTypeAny, {
|
|
699
|
+
paymentAmount: number;
|
|
700
|
+
paymentReceived?: boolean | undefined;
|
|
701
|
+
expireAt?: Date | undefined;
|
|
702
|
+
}, {
|
|
703
|
+
paymentAmount: number;
|
|
704
|
+
paymentReceived?: boolean | undefined;
|
|
705
|
+
expireAt?: Date | undefined;
|
|
706
|
+
}>;
|
|
707
|
+
type BPaymentInfo = z.infer<typeof zBPaymentInfo>;
|
|
708
|
+
|
|
709
|
+
declare enum PaymentMethod {
|
|
710
|
+
CASH = "Cash",
|
|
711
|
+
CHECK = "Check",
|
|
712
|
+
VENMO = "Venmo",
|
|
713
|
+
ZELLE = "Zelle Transfer"
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
declare const zDiscount: z.ZodObject<{
|
|
717
|
+
desc: z.ZodString;
|
|
718
|
+
amount: z.ZodNumber;
|
|
719
|
+
}, "strip", z.ZodTypeAny, {
|
|
720
|
+
desc: string;
|
|
721
|
+
amount: number;
|
|
722
|
+
}, {
|
|
723
|
+
desc: string;
|
|
724
|
+
amount: number;
|
|
725
|
+
}>;
|
|
726
|
+
declare const zInvoiceItem: z.ZodObject<{
|
|
727
|
+
/**
|
|
728
|
+
* Mongoose object ID
|
|
729
|
+
*/
|
|
730
|
+
course: z.ZodString;
|
|
731
|
+
price: z.ZodNumber;
|
|
732
|
+
units: z.ZodNumber;
|
|
733
|
+
}, "strip", z.ZodTypeAny, {
|
|
734
|
+
course: string;
|
|
735
|
+
price: number;
|
|
736
|
+
units: number;
|
|
737
|
+
}, {
|
|
738
|
+
course: string;
|
|
739
|
+
price: number;
|
|
740
|
+
units: number;
|
|
741
|
+
}>;
|
|
742
|
+
declare const zInvoicePackage: z.ZodObject<{
|
|
743
|
+
/**
|
|
744
|
+
* Mongoose object ID
|
|
745
|
+
*/
|
|
746
|
+
student: z.ZodString;
|
|
747
|
+
items: z.ZodArray<z.ZodObject<{
|
|
748
|
+
/**
|
|
749
|
+
* Mongoose object ID
|
|
750
|
+
*/
|
|
751
|
+
course: z.ZodString;
|
|
752
|
+
price: z.ZodNumber;
|
|
753
|
+
units: z.ZodNumber;
|
|
754
|
+
}, "strip", z.ZodTypeAny, {
|
|
755
|
+
course: string;
|
|
756
|
+
price: number;
|
|
757
|
+
units: number;
|
|
758
|
+
}, {
|
|
759
|
+
course: string;
|
|
760
|
+
price: number;
|
|
761
|
+
units: number;
|
|
762
|
+
}>, "many">;
|
|
763
|
+
}, "strip", z.ZodTypeAny, {
|
|
764
|
+
student: string;
|
|
765
|
+
items: {
|
|
766
|
+
course: string;
|
|
767
|
+
price: number;
|
|
768
|
+
units: number;
|
|
769
|
+
}[];
|
|
770
|
+
}, {
|
|
771
|
+
student: string;
|
|
772
|
+
items: {
|
|
773
|
+
course: string;
|
|
774
|
+
price: number;
|
|
775
|
+
units: number;
|
|
776
|
+
}[];
|
|
777
|
+
}>;
|
|
778
|
+
declare const zInvoice: z.ZodObject<{
|
|
779
|
+
billTo: z.ZodString;
|
|
780
|
+
packages: z.ZodArray<z.ZodObject<{
|
|
781
|
+
/**
|
|
782
|
+
* Mongoose object ID
|
|
783
|
+
*/
|
|
784
|
+
student: z.ZodString;
|
|
785
|
+
items: z.ZodArray<z.ZodObject<{
|
|
786
|
+
/**
|
|
787
|
+
* Mongoose object ID
|
|
788
|
+
*/
|
|
789
|
+
course: z.ZodString;
|
|
790
|
+
price: z.ZodNumber;
|
|
791
|
+
units: z.ZodNumber;
|
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
|
793
|
+
course: string;
|
|
794
|
+
price: number;
|
|
795
|
+
units: number;
|
|
796
|
+
}, {
|
|
797
|
+
course: string;
|
|
798
|
+
price: number;
|
|
799
|
+
units: number;
|
|
800
|
+
}>, "many">;
|
|
801
|
+
}, "strip", z.ZodTypeAny, {
|
|
802
|
+
student: string;
|
|
803
|
+
items: {
|
|
804
|
+
course: string;
|
|
805
|
+
price: number;
|
|
806
|
+
units: number;
|
|
807
|
+
}[];
|
|
808
|
+
}, {
|
|
809
|
+
student: string;
|
|
810
|
+
items: {
|
|
811
|
+
course: string;
|
|
812
|
+
price: number;
|
|
813
|
+
units: number;
|
|
814
|
+
}[];
|
|
815
|
+
}>, "many">;
|
|
816
|
+
discounts: z.ZodArray<z.ZodObject<{
|
|
817
|
+
desc: z.ZodString;
|
|
818
|
+
amount: z.ZodNumber;
|
|
819
|
+
}, "strip", z.ZodTypeAny, {
|
|
820
|
+
desc: string;
|
|
821
|
+
amount: number;
|
|
822
|
+
}, {
|
|
823
|
+
desc: string;
|
|
824
|
+
amount: number;
|
|
825
|
+
}>, "many">;
|
|
826
|
+
textbook: z.ZodOptional<z.ZodNumber>;
|
|
827
|
+
shipping: z.ZodOptional<z.ZodNumber>;
|
|
828
|
+
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
829
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
830
|
+
/**
|
|
831
|
+
* Mongoose object ID
|
|
832
|
+
*/
|
|
833
|
+
createdBy: z.ZodString;
|
|
834
|
+
/**
|
|
835
|
+
* Mongoose object ID
|
|
836
|
+
*/
|
|
837
|
+
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
838
|
+
}, "strip", z.ZodTypeAny, {
|
|
839
|
+
billTo: string;
|
|
840
|
+
packages: {
|
|
841
|
+
student: string;
|
|
842
|
+
items: {
|
|
843
|
+
course: string;
|
|
844
|
+
price: number;
|
|
845
|
+
units: number;
|
|
846
|
+
}[];
|
|
847
|
+
}[];
|
|
848
|
+
discounts: {
|
|
849
|
+
desc: string;
|
|
850
|
+
amount: number;
|
|
851
|
+
}[];
|
|
852
|
+
createdBy: string;
|
|
853
|
+
textbook?: number | undefined;
|
|
854
|
+
shipping?: number | undefined;
|
|
855
|
+
paid?: PaymentMethod | undefined;
|
|
856
|
+
notes?: string | undefined;
|
|
857
|
+
lastEditBy?: string | undefined;
|
|
858
|
+
}, {
|
|
859
|
+
billTo: string;
|
|
860
|
+
packages: {
|
|
861
|
+
student: string;
|
|
862
|
+
items: {
|
|
863
|
+
course: string;
|
|
864
|
+
price: number;
|
|
865
|
+
units: number;
|
|
866
|
+
}[];
|
|
867
|
+
}[];
|
|
868
|
+
discounts: {
|
|
869
|
+
desc: string;
|
|
870
|
+
amount: number;
|
|
871
|
+
}[];
|
|
872
|
+
createdBy: string;
|
|
873
|
+
textbook?: number | undefined;
|
|
874
|
+
shipping?: number | undefined;
|
|
875
|
+
paid?: PaymentMethod | undefined;
|
|
876
|
+
notes?: string | undefined;
|
|
877
|
+
lastEditBy?: string | undefined;
|
|
878
|
+
}>;
|
|
879
|
+
declare const zMInvoice: z.ZodObject<{
|
|
880
|
+
[x: string]: any;
|
|
881
|
+
[x: number]: any;
|
|
882
|
+
[x: symbol]: any;
|
|
883
|
+
_id: z.ZodString;
|
|
884
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
885
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
886
|
+
}, any, any, {
|
|
887
|
+
[x: string]: any;
|
|
888
|
+
[x: number]: any;
|
|
889
|
+
[x: symbol]: any;
|
|
890
|
+
_id?: string | undefined;
|
|
891
|
+
createdAt?: Date | undefined;
|
|
892
|
+
updatedAt?: Date | undefined;
|
|
893
|
+
}, {
|
|
894
|
+
[x: string]: any;
|
|
895
|
+
[x: number]: any;
|
|
896
|
+
[x: symbol]: any;
|
|
897
|
+
_id?: string | undefined;
|
|
898
|
+
createdAt?: Date | undefined;
|
|
899
|
+
updatedAt?: Date | undefined;
|
|
900
|
+
}>;
|
|
901
|
+
type Discount = z.infer<typeof zDiscount>;
|
|
902
|
+
type InvoiceItem = z.infer<typeof zInvoiceItem>;
|
|
903
|
+
type InvoicePackage = z.infer<typeof zInvoicePackage>;
|
|
904
|
+
type Invoice = z.infer<typeof zInvoice>;
|
|
905
|
+
type MInvoice = z.infer<typeof zMInvoice>;
|
|
906
|
+
|
|
907
|
+
declare const zTeacherPaymentRow: z.ZodObject<{
|
|
908
|
+
course: z.ZodString;
|
|
909
|
+
length: z.ZodNumber;
|
|
910
|
+
count: z.ZodNumber;
|
|
911
|
+
wage: z.ZodNumber;
|
|
912
|
+
}, "strip", z.ZodTypeAny, {
|
|
913
|
+
length: number;
|
|
914
|
+
course: string;
|
|
915
|
+
count: number;
|
|
916
|
+
wage: number;
|
|
917
|
+
}, {
|
|
918
|
+
length: number;
|
|
919
|
+
course: string;
|
|
920
|
+
count: number;
|
|
921
|
+
wage: number;
|
|
922
|
+
}>;
|
|
923
|
+
declare const zTeacherPayment: z.ZodObject<{
|
|
924
|
+
teacher: z.ZodString;
|
|
925
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
926
|
+
course: z.ZodString;
|
|
927
|
+
length: z.ZodNumber;
|
|
928
|
+
count: z.ZodNumber;
|
|
929
|
+
wage: z.ZodNumber;
|
|
930
|
+
}, "strip", z.ZodTypeAny, {
|
|
931
|
+
length: number;
|
|
932
|
+
course: string;
|
|
933
|
+
count: number;
|
|
934
|
+
wage: number;
|
|
935
|
+
}, {
|
|
936
|
+
length: number;
|
|
937
|
+
course: string;
|
|
938
|
+
count: number;
|
|
939
|
+
wage: number;
|
|
940
|
+
}>, "many">;
|
|
941
|
+
paid: z.ZodOptional<z.ZodBoolean>;
|
|
942
|
+
}, "strip", z.ZodTypeAny, {
|
|
943
|
+
teacher: string;
|
|
944
|
+
rows: {
|
|
945
|
+
length: number;
|
|
946
|
+
course: string;
|
|
947
|
+
count: number;
|
|
948
|
+
wage: number;
|
|
949
|
+
}[];
|
|
950
|
+
paid?: boolean | undefined;
|
|
951
|
+
}, {
|
|
952
|
+
teacher: string;
|
|
953
|
+
rows: {
|
|
954
|
+
length: number;
|
|
955
|
+
course: string;
|
|
956
|
+
count: number;
|
|
957
|
+
wage: number;
|
|
958
|
+
}[];
|
|
959
|
+
paid?: boolean | undefined;
|
|
960
|
+
}>;
|
|
961
|
+
declare const zMTeacherPayment: z.ZodObject<{
|
|
962
|
+
[x: string]: any;
|
|
963
|
+
[x: number]: any;
|
|
964
|
+
[x: symbol]: any;
|
|
965
|
+
_id: z.ZodString;
|
|
966
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
967
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
968
|
+
}, any, any, {
|
|
969
|
+
[x: string]: any;
|
|
970
|
+
[x: number]: any;
|
|
971
|
+
[x: symbol]: any;
|
|
972
|
+
_id?: string | undefined;
|
|
973
|
+
createdAt?: Date | undefined;
|
|
974
|
+
updatedAt?: Date | undefined;
|
|
975
|
+
}, {
|
|
976
|
+
[x: string]: any;
|
|
977
|
+
[x: number]: any;
|
|
978
|
+
[x: symbol]: any;
|
|
979
|
+
_id?: string | undefined;
|
|
980
|
+
createdAt?: Date | undefined;
|
|
981
|
+
updatedAt?: Date | undefined;
|
|
982
|
+
}>;
|
|
983
|
+
type TeacherPaymentRow = z.infer<typeof zTeacherPaymentRow>;
|
|
984
|
+
type TeacherPayment = z.infer<typeof zTeacherPayment>;
|
|
985
|
+
type MTeacherPayment = z.infer<typeof zMTeacherPayment>;
|
|
986
|
+
|
|
987
|
+
declare const zTuition: z.ZodObject<{
|
|
988
|
+
primary: z.ZodNumber;
|
|
989
|
+
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
990
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
991
|
+
}, "strip", z.ZodTypeAny, {
|
|
992
|
+
primary: number;
|
|
993
|
+
textbook?: boolean | undefined;
|
|
994
|
+
shipping?: boolean | undefined;
|
|
995
|
+
}, {
|
|
996
|
+
primary: number;
|
|
997
|
+
textbook?: boolean | undefined;
|
|
998
|
+
shipping?: boolean | undefined;
|
|
999
|
+
}>;
|
|
1000
|
+
type Tuition = z.infer<typeof zTuition>;
|
|
1001
|
+
|
|
1002
|
+
declare const zTeacherDisplay: z.ZodObject<{
|
|
1003
|
+
name: z.ZodString;
|
|
1004
|
+
email: z.ZodString;
|
|
1005
|
+
title: z.ZodString;
|
|
1006
|
+
imageUrl: z.ZodString;
|
|
1007
|
+
bio: z.ZodString;
|
|
1008
|
+
}, "strip", z.ZodTypeAny, {
|
|
1009
|
+
email: string;
|
|
7
1010
|
name: string;
|
|
1011
|
+
title: string;
|
|
1012
|
+
imageUrl: string;
|
|
1013
|
+
bio: string;
|
|
1014
|
+
}, {
|
|
8
1015
|
email: string;
|
|
1016
|
+
name: string;
|
|
1017
|
+
title: string;
|
|
1018
|
+
imageUrl: string;
|
|
1019
|
+
bio: string;
|
|
1020
|
+
}>;
|
|
1021
|
+
declare const zCourseTable: z.ZodObject<{
|
|
1022
|
+
id: z.ZodString;
|
|
1023
|
+
name: z.ZodString;
|
|
1024
|
+
duration: z.ZodNumber;
|
|
1025
|
+
dateAndTime: z.ZodString;
|
|
1026
|
+
recommendedLevel: z.ZodString;
|
|
1027
|
+
tuition: z.ZodString;
|
|
1028
|
+
}, "strip", z.ZodTypeAny, {
|
|
1029
|
+
tuition: string;
|
|
1030
|
+
name: string;
|
|
1031
|
+
duration: number;
|
|
1032
|
+
id: string;
|
|
1033
|
+
dateAndTime: string;
|
|
1034
|
+
recommendedLevel: string;
|
|
9
1035
|
}, {
|
|
1036
|
+
tuition: string;
|
|
10
1037
|
name: string;
|
|
1038
|
+
duration: number;
|
|
1039
|
+
id: string;
|
|
1040
|
+
dateAndTime: string;
|
|
1041
|
+
recommendedLevel: string;
|
|
1042
|
+
}>;
|
|
1043
|
+
type CourseTable = z.infer<typeof zCourseTable>;
|
|
1044
|
+
type TeacherDisplay = z.infer<typeof zTeacherDisplay>;
|
|
1045
|
+
interface MNYIGMission extends NYIGMission {
|
|
1046
|
+
_id: string;
|
|
1047
|
+
}
|
|
1048
|
+
type AuroraCourses = {
|
|
1049
|
+
[school in NYIGSchool]: {
|
|
1050
|
+
[ageGroup in AgeGroup]: CourseTable[];
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
interface NYIGMission {
|
|
1054
|
+
_id?: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* @index @unique version of the mission
|
|
1057
|
+
* "current" is the current mission.
|
|
1058
|
+
* Previous mission versions need to be changed to the last effective date
|
|
1059
|
+
* e.g., "2022-10-01"
|
|
1060
|
+
*/
|
|
1061
|
+
version: string;
|
|
1062
|
+
main1: string;
|
|
1063
|
+
main2: string;
|
|
1064
|
+
mission: string;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
declare const zImageDef: z.ZodObject<{
|
|
1068
|
+
url: z.ZodString;
|
|
1069
|
+
height: z.ZodNumber;
|
|
1070
|
+
width: z.ZodNumber;
|
|
1071
|
+
}, "strip", z.ZodTypeAny, {
|
|
1072
|
+
url: string;
|
|
1073
|
+
height: number;
|
|
1074
|
+
width: number;
|
|
1075
|
+
}, {
|
|
1076
|
+
url: string;
|
|
1077
|
+
height: number;
|
|
1078
|
+
width: number;
|
|
1079
|
+
}>;
|
|
1080
|
+
type ImageDef = z.infer<typeof zImageDef>;
|
|
1081
|
+
|
|
1082
|
+
declare enum TicketStatus {
|
|
1083
|
+
REQUESTED = "Requested",
|
|
1084
|
+
IN_PROGRESS = "In-progress",
|
|
1085
|
+
SIGN_OFF = "Sign-off",
|
|
1086
|
+
COMPLETED = "Completed"
|
|
1087
|
+
}
|
|
1088
|
+
declare const zReportTicket: z.ZodObject<{
|
|
1089
|
+
requester: z.ZodString;
|
|
1090
|
+
resolver: z.ZodString;
|
|
1091
|
+
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
1092
|
+
title: z.ZodString;
|
|
1093
|
+
description: z.ZodString;
|
|
1094
|
+
}, "strip", z.ZodTypeAny, {
|
|
1095
|
+
status: TicketStatus;
|
|
1096
|
+
description: string;
|
|
1097
|
+
title: string;
|
|
1098
|
+
requester: string;
|
|
1099
|
+
resolver: string;
|
|
1100
|
+
}, {
|
|
1101
|
+
status: TicketStatus;
|
|
1102
|
+
description: string;
|
|
1103
|
+
title: string;
|
|
1104
|
+
requester: string;
|
|
1105
|
+
resolver: string;
|
|
1106
|
+
}>;
|
|
1107
|
+
declare const zMReportTicket: z.ZodObject<{
|
|
1108
|
+
[x: string]: any;
|
|
1109
|
+
[x: number]: any;
|
|
1110
|
+
[x: symbol]: any;
|
|
1111
|
+
_id: z.ZodString;
|
|
1112
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1113
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1114
|
+
}, any, any, {
|
|
1115
|
+
[x: string]: any;
|
|
1116
|
+
[x: number]: any;
|
|
1117
|
+
[x: symbol]: any;
|
|
1118
|
+
_id?: string | undefined;
|
|
1119
|
+
createdAt?: Date | undefined;
|
|
1120
|
+
updatedAt?: Date | undefined;
|
|
1121
|
+
}, {
|
|
1122
|
+
[x: string]: any;
|
|
1123
|
+
[x: number]: any;
|
|
1124
|
+
[x: symbol]: any;
|
|
1125
|
+
_id?: string | undefined;
|
|
1126
|
+
createdAt?: Date | undefined;
|
|
1127
|
+
updatedAt?: Date | undefined;
|
|
1128
|
+
}>;
|
|
1129
|
+
type ReportTicket = z.infer<typeof zReportTicket>;
|
|
1130
|
+
type MReportTicket = z.infer<typeof zMReportTicket>;
|
|
1131
|
+
|
|
1132
|
+
declare enum Season {
|
|
1133
|
+
FALL = "fall",
|
|
1134
|
+
SPRING = "spring",
|
|
1135
|
+
SUMMER = "summer"
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
declare const zSemester: z.ZodObject<{
|
|
1139
|
+
season: z.ZodNativeEnum<typeof Season>;
|
|
1140
|
+
year: z.ZodNumber;
|
|
1141
|
+
startDate: z.ZodDate;
|
|
1142
|
+
endDate: z.ZodDate;
|
|
1143
|
+
/**
|
|
1144
|
+
* Format: start, end, start, end, ...
|
|
1145
|
+
*/
|
|
1146
|
+
blackoutDates: z.ZodArray<z.ZodDate, "many">;
|
|
1147
|
+
/**
|
|
1148
|
+
* List of names of some break: date range
|
|
1149
|
+
*/
|
|
1150
|
+
importantDates: z.ZodArray<z.ZodString, "many">;
|
|
1151
|
+
}, "strip", z.ZodTypeAny, {
|
|
1152
|
+
season: Season;
|
|
1153
|
+
year: number;
|
|
1154
|
+
startDate: Date;
|
|
1155
|
+
endDate: Date;
|
|
1156
|
+
blackoutDates: Date[];
|
|
1157
|
+
importantDates: string[];
|
|
1158
|
+
}, {
|
|
1159
|
+
season: Season;
|
|
1160
|
+
year: number;
|
|
1161
|
+
startDate: Date;
|
|
1162
|
+
endDate: Date;
|
|
1163
|
+
blackoutDates: Date[];
|
|
1164
|
+
importantDates: string[];
|
|
1165
|
+
}>;
|
|
1166
|
+
declare const zMSemester: z.ZodObject<{
|
|
1167
|
+
[x: string]: any;
|
|
1168
|
+
[x: number]: any;
|
|
1169
|
+
[x: symbol]: any;
|
|
1170
|
+
_id: z.ZodString;
|
|
1171
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1172
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1173
|
+
}, any, any, {
|
|
1174
|
+
[x: string]: any;
|
|
1175
|
+
[x: number]: any;
|
|
1176
|
+
[x: symbol]: any;
|
|
1177
|
+
_id?: string | undefined;
|
|
1178
|
+
createdAt?: Date | undefined;
|
|
1179
|
+
updatedAt?: Date | undefined;
|
|
1180
|
+
}, {
|
|
1181
|
+
[x: string]: any;
|
|
1182
|
+
[x: number]: any;
|
|
1183
|
+
[x: symbol]: any;
|
|
1184
|
+
_id?: string | undefined;
|
|
1185
|
+
createdAt?: Date | undefined;
|
|
1186
|
+
updatedAt?: Date | undefined;
|
|
1187
|
+
}>;
|
|
1188
|
+
type Semester = z.infer<typeof zSemester>;
|
|
1189
|
+
type MSemester = z.infer<typeof zMSemester>;
|
|
1190
|
+
|
|
1191
|
+
declare const zTConfig: z.ZodObject<{
|
|
1192
|
+
/**
|
|
1193
|
+
* Location of the event
|
|
1194
|
+
*/
|
|
1195
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1196
|
+
/**
|
|
1197
|
+
* URL of the tournament on the official website
|
|
1198
|
+
* Must be a valid URL link
|
|
1199
|
+
*/
|
|
1200
|
+
url: z.ZodString;
|
|
1201
|
+
/**
|
|
1202
|
+
* Full name of the tournament
|
|
1203
|
+
*/
|
|
1204
|
+
title: z.ZodString;
|
|
1205
|
+
/**
|
|
1206
|
+
* Abbreviated title of the tournament
|
|
1207
|
+
*/
|
|
1208
|
+
shortTitle: z.ZodString;
|
|
1209
|
+
/**
|
|
1210
|
+
* Tournament start date and time
|
|
1211
|
+
*/
|
|
1212
|
+
tStart: z.ZodDate;
|
|
1213
|
+
/**
|
|
1214
|
+
* Tournament end date and time
|
|
1215
|
+
*/
|
|
1216
|
+
tEnd: z.ZodDate;
|
|
1217
|
+
/**
|
|
1218
|
+
* Short description for tournament card
|
|
1219
|
+
*/
|
|
1220
|
+
shortDescription: z.ZodString;
|
|
1221
|
+
/**
|
|
1222
|
+
* Full description
|
|
1223
|
+
*/
|
|
1224
|
+
description: z.ZodString;
|
|
1225
|
+
/**
|
|
1226
|
+
* Defines the tournament details table with 2 columns
|
|
1227
|
+
* typically Time and Event
|
|
1228
|
+
*/
|
|
1229
|
+
details: z.ZodObject<{
|
|
1230
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
1231
|
+
data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
1232
|
+
}, "strip", z.ZodTypeAny, {
|
|
1233
|
+
data: {}[];
|
|
1234
|
+
fields: string[];
|
|
1235
|
+
}, {
|
|
1236
|
+
data: {}[];
|
|
1237
|
+
fields: string[];
|
|
1238
|
+
}>;
|
|
1239
|
+
/**
|
|
1240
|
+
* Defines the tournament schedule.
|
|
1241
|
+
* data is a map of tab title -> 2 column table rows.
|
|
1242
|
+
*/
|
|
1243
|
+
schedule: z.ZodObject<{
|
|
1244
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
1245
|
+
data: z.ZodMap<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
|
|
1246
|
+
}, "strip", z.ZodTypeAny, {
|
|
1247
|
+
data: Map<string, {}[]>;
|
|
1248
|
+
fields: string[];
|
|
1249
|
+
}, {
|
|
1250
|
+
data: Map<string, {}[]>;
|
|
1251
|
+
fields: string[];
|
|
1252
|
+
}>;
|
|
1253
|
+
/**
|
|
1254
|
+
* List of ticket object IDs for this tournament
|
|
1255
|
+
*/
|
|
1256
|
+
tickets: z.ZodArray<z.ZodString, "many">;
|
|
1257
|
+
/**
|
|
1258
|
+
* If false, the tournament registration is closed
|
|
1259
|
+
*/
|
|
1260
|
+
canRegister: z.ZodBoolean;
|
|
1261
|
+
/**
|
|
1262
|
+
* If true, free form donation amounts are disabled.
|
|
1263
|
+
*/
|
|
1264
|
+
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1265
|
+
/**
|
|
1266
|
+
* Defines URL, height, width of the image
|
|
1267
|
+
*/
|
|
1268
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
1269
|
+
url: z.ZodString;
|
|
1270
|
+
height: z.ZodNumber;
|
|
1271
|
+
width: z.ZodNumber;
|
|
1272
|
+
}, "strip", z.ZodTypeAny, {
|
|
1273
|
+
url: string;
|
|
1274
|
+
height: number;
|
|
1275
|
+
width: number;
|
|
1276
|
+
}, {
|
|
1277
|
+
url: string;
|
|
1278
|
+
height: number;
|
|
1279
|
+
width: number;
|
|
1280
|
+
}>>;
|
|
1281
|
+
}, "strip", z.ZodTypeAny, {
|
|
1282
|
+
description: string;
|
|
1283
|
+
title: string;
|
|
1284
|
+
url: string;
|
|
1285
|
+
shortTitle: string;
|
|
1286
|
+
tStart: Date;
|
|
1287
|
+
tEnd: Date;
|
|
1288
|
+
shortDescription: string;
|
|
1289
|
+
details: {
|
|
1290
|
+
data: {}[];
|
|
1291
|
+
fields: string[];
|
|
1292
|
+
};
|
|
1293
|
+
schedule: {
|
|
1294
|
+
data: Map<string, {}[]>;
|
|
1295
|
+
fields: string[];
|
|
1296
|
+
};
|
|
1297
|
+
tickets: string[];
|
|
1298
|
+
canRegister: boolean;
|
|
1299
|
+
location?: string | undefined;
|
|
1300
|
+
donationsDisabled?: boolean | undefined;
|
|
1301
|
+
image?: {
|
|
1302
|
+
url: string;
|
|
1303
|
+
height: number;
|
|
1304
|
+
width: number;
|
|
1305
|
+
} | undefined;
|
|
1306
|
+
}, {
|
|
1307
|
+
description: string;
|
|
1308
|
+
title: string;
|
|
1309
|
+
url: string;
|
|
1310
|
+
shortTitle: string;
|
|
1311
|
+
tStart: Date;
|
|
1312
|
+
tEnd: Date;
|
|
1313
|
+
shortDescription: string;
|
|
1314
|
+
details: {
|
|
1315
|
+
data: {}[];
|
|
1316
|
+
fields: string[];
|
|
1317
|
+
};
|
|
1318
|
+
schedule: {
|
|
1319
|
+
data: Map<string, {}[]>;
|
|
1320
|
+
fields: string[];
|
|
1321
|
+
};
|
|
1322
|
+
tickets: string[];
|
|
1323
|
+
canRegister: boolean;
|
|
1324
|
+
location?: string | undefined;
|
|
1325
|
+
donationsDisabled?: boolean | undefined;
|
|
1326
|
+
image?: {
|
|
1327
|
+
url: string;
|
|
1328
|
+
height: number;
|
|
1329
|
+
width: number;
|
|
1330
|
+
} | undefined;
|
|
1331
|
+
}>;
|
|
1332
|
+
declare const zMTConfig: z.ZodObject<{
|
|
1333
|
+
[x: string]: any;
|
|
1334
|
+
[x: number]: any;
|
|
1335
|
+
[x: symbol]: any;
|
|
1336
|
+
_id: z.ZodString;
|
|
1337
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1338
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1339
|
+
}, any, any, {
|
|
1340
|
+
[x: string]: any;
|
|
1341
|
+
[x: number]: any;
|
|
1342
|
+
[x: symbol]: any;
|
|
1343
|
+
_id?: string | undefined;
|
|
1344
|
+
createdAt?: Date | undefined;
|
|
1345
|
+
updatedAt?: Date | undefined;
|
|
1346
|
+
}, {
|
|
1347
|
+
[x: string]: any;
|
|
1348
|
+
[x: number]: any;
|
|
1349
|
+
[x: symbol]: any;
|
|
1350
|
+
_id?: string | undefined;
|
|
1351
|
+
createdAt?: Date | undefined;
|
|
1352
|
+
updatedAt?: Date | undefined;
|
|
1353
|
+
}>;
|
|
1354
|
+
type TConfig = z.infer<typeof zTConfig>;
|
|
1355
|
+
type MTConfig = z.infer<typeof zMTConfig>;
|
|
1356
|
+
|
|
1357
|
+
declare const zDetailsTable: z.ZodObject<{
|
|
1358
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
1359
|
+
data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
1360
|
+
}, "strip", z.ZodTypeAny, {
|
|
1361
|
+
data: {}[];
|
|
1362
|
+
fields: string[];
|
|
1363
|
+
}, {
|
|
1364
|
+
data: {}[];
|
|
1365
|
+
fields: string[];
|
|
1366
|
+
}>;
|
|
1367
|
+
declare const zScheduleTable: z.ZodObject<{
|
|
1368
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
1369
|
+
data: z.ZodMap<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
|
|
1370
|
+
}, "strip", z.ZodTypeAny, {
|
|
1371
|
+
data: Map<string, {}[]>;
|
|
1372
|
+
fields: string[];
|
|
1373
|
+
}, {
|
|
1374
|
+
data: Map<string, {}[]>;
|
|
1375
|
+
fields: string[];
|
|
1376
|
+
}>;
|
|
1377
|
+
type DetailsTable = z.infer<typeof zDetailsTable>;
|
|
1378
|
+
type ScheduleTable = z.infer<typeof zScheduleTable>;
|
|
1379
|
+
|
|
1380
|
+
declare const zTReg: z.ZodObject<{
|
|
1381
|
+
firstName: z.ZodString;
|
|
1382
|
+
lastName: z.ZodString;
|
|
1383
|
+
rank: z.ZodString;
|
|
1384
|
+
email: z.ZodString;
|
|
1385
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1386
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1388
|
+
tickets: z.ZodArray<z.ZodObject<{
|
|
1389
|
+
ticket: z.ZodString;
|
|
1390
|
+
amount: z.ZodNumber;
|
|
1391
|
+
}, "strip", z.ZodTypeAny, {
|
|
1392
|
+
amount: number;
|
|
1393
|
+
ticket: string;
|
|
1394
|
+
}, {
|
|
1395
|
+
amount: number;
|
|
1396
|
+
ticket: string;
|
|
1397
|
+
}>, "many">;
|
|
1398
|
+
agaId: z.ZodString;
|
|
1399
|
+
tournamentId: z.ZodString;
|
|
1400
|
+
donation: z.ZodOptional<z.ZodNumber>;
|
|
1401
|
+
createMethod: z.ZodOptional<z.ZodString>;
|
|
1402
|
+
edited: z.ZodOptional<z.ZodString>;
|
|
1403
|
+
paymentAmount: z.ZodNumber;
|
|
1404
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
1405
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
1406
|
+
}, "strip", z.ZodTypeAny, {
|
|
1407
|
+
firstName: string;
|
|
1408
|
+
lastName: string;
|
|
1409
|
+
rank: string;
|
|
1410
|
+
email: string;
|
|
1411
|
+
paymentAmount: number;
|
|
1412
|
+
tickets: {
|
|
1413
|
+
amount: number;
|
|
1414
|
+
ticket: string;
|
|
1415
|
+
}[];
|
|
1416
|
+
agaId: string;
|
|
1417
|
+
tournamentId: string;
|
|
1418
|
+
phone?: string | undefined;
|
|
1419
|
+
address?: string | undefined;
|
|
1420
|
+
notes?: string | undefined;
|
|
1421
|
+
donation?: number | undefined;
|
|
1422
|
+
createMethod?: string | undefined;
|
|
1423
|
+
edited?: string | undefined;
|
|
1424
|
+
paymentReceived?: boolean | undefined;
|
|
1425
|
+
expireAt?: Date | undefined;
|
|
1426
|
+
}, {
|
|
1427
|
+
firstName: string;
|
|
1428
|
+
lastName: string;
|
|
1429
|
+
rank: string;
|
|
11
1430
|
email: string;
|
|
1431
|
+
paymentAmount: number;
|
|
1432
|
+
tickets: {
|
|
1433
|
+
amount: number;
|
|
1434
|
+
ticket: string;
|
|
1435
|
+
}[];
|
|
1436
|
+
agaId: string;
|
|
1437
|
+
tournamentId: string;
|
|
1438
|
+
phone?: string | undefined;
|
|
1439
|
+
address?: string | undefined;
|
|
1440
|
+
notes?: string | undefined;
|
|
1441
|
+
donation?: number | undefined;
|
|
1442
|
+
createMethod?: string | undefined;
|
|
1443
|
+
edited?: string | undefined;
|
|
1444
|
+
paymentReceived?: boolean | undefined;
|
|
1445
|
+
expireAt?: Date | undefined;
|
|
1446
|
+
}>;
|
|
1447
|
+
declare const zMTReg: z.ZodObject<{
|
|
1448
|
+
[x: string]: any;
|
|
1449
|
+
[x: number]: any;
|
|
1450
|
+
[x: symbol]: any;
|
|
1451
|
+
_id: z.ZodString;
|
|
1452
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1453
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1454
|
+
}, any, any, {
|
|
1455
|
+
[x: string]: any;
|
|
1456
|
+
[x: number]: any;
|
|
1457
|
+
[x: symbol]: any;
|
|
1458
|
+
_id?: string | undefined;
|
|
1459
|
+
createdAt?: Date | undefined;
|
|
1460
|
+
updatedAt?: Date | undefined;
|
|
1461
|
+
}, {
|
|
1462
|
+
[x: string]: any;
|
|
1463
|
+
[x: number]: any;
|
|
1464
|
+
[x: symbol]: any;
|
|
1465
|
+
_id?: string | undefined;
|
|
1466
|
+
createdAt?: Date | undefined;
|
|
1467
|
+
updatedAt?: Date | undefined;
|
|
1468
|
+
}>;
|
|
1469
|
+
type TReg = z.infer<typeof zTReg>;
|
|
1470
|
+
type MTReg = z.infer<typeof zMTReg>;
|
|
1471
|
+
|
|
1472
|
+
declare const zTTicketReg: z.ZodObject<{
|
|
1473
|
+
/**
|
|
1474
|
+
* Mongoose ID of the ticket
|
|
1475
|
+
*/
|
|
1476
|
+
ticket: z.ZodString;
|
|
1477
|
+
/**
|
|
1478
|
+
* integer minimum 1, otherwise no ticket is being bought
|
|
1479
|
+
*/
|
|
1480
|
+
amount: z.ZodNumber;
|
|
1481
|
+
}, "strip", z.ZodTypeAny, {
|
|
1482
|
+
amount: number;
|
|
1483
|
+
ticket: string;
|
|
1484
|
+
}, {
|
|
1485
|
+
amount: number;
|
|
1486
|
+
ticket: string;
|
|
1487
|
+
}>;
|
|
1488
|
+
type TTicketReg = z.infer<typeof zTTicketReg>;
|
|
1489
|
+
|
|
1490
|
+
declare const zTTicket: z.ZodObject<{
|
|
1491
|
+
name: z.ZodString;
|
|
1492
|
+
/**
|
|
1493
|
+
* Price in cents
|
|
1494
|
+
*/
|
|
1495
|
+
price: z.ZodNumber;
|
|
1496
|
+
/**
|
|
1497
|
+
* @optional description of the ticket
|
|
1498
|
+
*/
|
|
1499
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1500
|
+
/**
|
|
1501
|
+
* @optional The ticket cannot be purchased if true
|
|
1502
|
+
*/
|
|
1503
|
+
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
1504
|
+
/**
|
|
1505
|
+
* @optional If date is provided and in the past, ticket cannot be purchased
|
|
1506
|
+
*/
|
|
1507
|
+
lastBuytableDate: z.ZodOptional<z.ZodDate>;
|
|
1508
|
+
}, "strip", z.ZodTypeAny, {
|
|
1509
|
+
price: number;
|
|
1510
|
+
name: string;
|
|
1511
|
+
description?: string | undefined;
|
|
1512
|
+
isNotBuyable?: boolean | undefined;
|
|
1513
|
+
lastBuytableDate?: Date | undefined;
|
|
1514
|
+
}, {
|
|
1515
|
+
price: number;
|
|
1516
|
+
name: string;
|
|
1517
|
+
description?: string | undefined;
|
|
1518
|
+
isNotBuyable?: boolean | undefined;
|
|
1519
|
+
lastBuytableDate?: Date | undefined;
|
|
1520
|
+
}>;
|
|
1521
|
+
declare const zMTTicket: z.ZodObject<{
|
|
1522
|
+
[x: string]: any;
|
|
1523
|
+
[x: number]: any;
|
|
1524
|
+
[x: symbol]: any;
|
|
1525
|
+
_id: z.ZodString;
|
|
1526
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1527
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1528
|
+
}, any, any, {
|
|
1529
|
+
[x: string]: any;
|
|
1530
|
+
[x: number]: any;
|
|
1531
|
+
[x: symbol]: any;
|
|
1532
|
+
_id?: string | undefined;
|
|
1533
|
+
createdAt?: Date | undefined;
|
|
1534
|
+
updatedAt?: Date | undefined;
|
|
1535
|
+
}, {
|
|
1536
|
+
[x: string]: any;
|
|
1537
|
+
[x: number]: any;
|
|
1538
|
+
[x: symbol]: any;
|
|
1539
|
+
_id?: string | undefined;
|
|
1540
|
+
createdAt?: Date | undefined;
|
|
1541
|
+
updatedAt?: Date | undefined;
|
|
1542
|
+
}>;
|
|
1543
|
+
type TTicket = z.infer<typeof zTTicket>;
|
|
1544
|
+
type MTTicket = z.infer<typeof zMTTicket>;
|
|
1545
|
+
|
|
1546
|
+
declare enum GoRank {
|
|
1547
|
+
KYU1 = "1k",
|
|
1548
|
+
KYU2 = "2k",
|
|
1549
|
+
KYU3 = "3k",
|
|
1550
|
+
KYU4 = "4k",
|
|
1551
|
+
KYU5 = "5k",
|
|
1552
|
+
KYU6 = "6k",
|
|
1553
|
+
KYU7 = "7k",
|
|
1554
|
+
KYU8 = "8k",
|
|
1555
|
+
KYU9 = "9k",
|
|
1556
|
+
KYU10 = "10k",
|
|
1557
|
+
KYU11 = "11k",
|
|
1558
|
+
KYU12 = "12k",
|
|
1559
|
+
KYU13 = "13k",
|
|
1560
|
+
KYU14 = "14k",
|
|
1561
|
+
KYU15 = "15k",
|
|
1562
|
+
KYU16 = "16k",
|
|
1563
|
+
KYU17 = "17k",
|
|
1564
|
+
KYU18 = "18k",
|
|
1565
|
+
KYU19 = "19k",
|
|
1566
|
+
KYU20 = "20k",
|
|
1567
|
+
KYU21 = "21k",
|
|
1568
|
+
KYU22 = "22k",
|
|
1569
|
+
KYU23 = "23k",
|
|
1570
|
+
KYU24 = "24k",
|
|
1571
|
+
KYU25 = "25k",
|
|
1572
|
+
DAN1 = "1d",
|
|
1573
|
+
DAN2 = "2d",
|
|
1574
|
+
DAN3 = "3d",
|
|
1575
|
+
DAN4 = "4d",
|
|
1576
|
+
DAN5 = "5d",
|
|
1577
|
+
DAN6 = "6d",
|
|
1578
|
+
DAN7 = "7d",
|
|
1579
|
+
PRO1 = "1p",
|
|
1580
|
+
PRO2 = "2p",
|
|
1581
|
+
PRO3 = "3p",
|
|
1582
|
+
PRO4 = "4p",
|
|
1583
|
+
PRO5 = "5p",
|
|
1584
|
+
PRO6 = "6p",
|
|
1585
|
+
PRO7 = "7p",
|
|
1586
|
+
PRO8 = "8p",
|
|
1587
|
+
PRO9 = "9p"
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
declare const zUser: z.ZodObject<{
|
|
1591
|
+
name: z.ZodString;
|
|
1592
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1593
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1594
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
1595
|
+
user: z.ZodNumber;
|
|
1596
|
+
admin: z.ZodNumber;
|
|
1597
|
+
superadmin: z.ZodNumber;
|
|
1598
|
+
}, "strip", z.ZodTypeAny, {
|
|
1599
|
+
user: number;
|
|
1600
|
+
admin: number;
|
|
1601
|
+
superadmin: number;
|
|
1602
|
+
}, {
|
|
1603
|
+
user: number;
|
|
1604
|
+
admin: number;
|
|
1605
|
+
superadmin: number;
|
|
1606
|
+
}>>;
|
|
1607
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1608
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1609
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1610
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1611
|
+
birthDate: z.ZodOptional<z.ZodString>;
|
|
1612
|
+
}, "strip", z.ZodTypeAny, {
|
|
1613
|
+
name: string;
|
|
1614
|
+
username?: string | undefined;
|
|
1615
|
+
password?: string | undefined;
|
|
1616
|
+
roles?: {
|
|
1617
|
+
user: number;
|
|
1618
|
+
admin: number;
|
|
1619
|
+
superadmin: number;
|
|
1620
|
+
} | undefined;
|
|
1621
|
+
email?: string | undefined;
|
|
1622
|
+
address?: string | undefined;
|
|
1623
|
+
country?: string | undefined;
|
|
1624
|
+
phoneNumber?: string | undefined;
|
|
1625
|
+
birthDate?: string | undefined;
|
|
1626
|
+
}, {
|
|
1627
|
+
name: string;
|
|
1628
|
+
username?: string | undefined;
|
|
1629
|
+
password?: string | undefined;
|
|
1630
|
+
roles?: {
|
|
1631
|
+
user: number;
|
|
1632
|
+
admin: number;
|
|
1633
|
+
superadmin: number;
|
|
1634
|
+
} | undefined;
|
|
1635
|
+
email?: string | undefined;
|
|
1636
|
+
address?: string | undefined;
|
|
1637
|
+
country?: string | undefined;
|
|
1638
|
+
phoneNumber?: string | undefined;
|
|
1639
|
+
birthDate?: string | undefined;
|
|
1640
|
+
}>;
|
|
1641
|
+
declare const zMUser: z.ZodObject<{
|
|
1642
|
+
[x: string]: any;
|
|
1643
|
+
[x: number]: any;
|
|
1644
|
+
[x: symbol]: any;
|
|
1645
|
+
_id: z.ZodString;
|
|
1646
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1647
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1648
|
+
}, any, any, {
|
|
1649
|
+
[x: string]: any;
|
|
1650
|
+
[x: number]: any;
|
|
1651
|
+
[x: symbol]: any;
|
|
1652
|
+
_id?: string | undefined;
|
|
1653
|
+
createdAt?: Date | undefined;
|
|
1654
|
+
updatedAt?: Date | undefined;
|
|
1655
|
+
}, {
|
|
1656
|
+
[x: string]: any;
|
|
1657
|
+
[x: number]: any;
|
|
1658
|
+
[x: symbol]: any;
|
|
1659
|
+
_id?: string | undefined;
|
|
1660
|
+
createdAt?: Date | undefined;
|
|
1661
|
+
updatedAt?: Date | undefined;
|
|
1662
|
+
}>;
|
|
1663
|
+
declare const zStudent: z.ZodObject<{
|
|
1664
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1665
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1666
|
+
name: z.ZodString;
|
|
1667
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1668
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1669
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
1670
|
+
user: z.ZodNumber;
|
|
1671
|
+
admin: z.ZodNumber;
|
|
1672
|
+
superadmin: z.ZodNumber;
|
|
1673
|
+
}, "strip", z.ZodTypeAny, {
|
|
1674
|
+
user: number;
|
|
1675
|
+
admin: number;
|
|
1676
|
+
superadmin: number;
|
|
1677
|
+
}, {
|
|
1678
|
+
user: number;
|
|
1679
|
+
admin: number;
|
|
1680
|
+
superadmin: number;
|
|
1681
|
+
}>>;
|
|
1682
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1683
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1684
|
+
birthDate: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
1686
|
+
guardian: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
}, "strip", z.ZodTypeAny, {
|
|
1688
|
+
rank: GoRank;
|
|
1689
|
+
name: string;
|
|
1690
|
+
email?: string | undefined;
|
|
1691
|
+
address?: string | undefined;
|
|
1692
|
+
username?: string | undefined;
|
|
1693
|
+
password?: string | undefined;
|
|
1694
|
+
roles?: {
|
|
1695
|
+
user: number;
|
|
1696
|
+
admin: number;
|
|
1697
|
+
superadmin: number;
|
|
1698
|
+
} | undefined;
|
|
1699
|
+
country?: string | undefined;
|
|
1700
|
+
phoneNumber?: string | undefined;
|
|
1701
|
+
birthDate?: string | undefined;
|
|
1702
|
+
guardian?: string | undefined;
|
|
1703
|
+
}, {
|
|
1704
|
+
rank: GoRank;
|
|
1705
|
+
name: string;
|
|
1706
|
+
email?: string | undefined;
|
|
1707
|
+
address?: string | undefined;
|
|
1708
|
+
username?: string | undefined;
|
|
1709
|
+
password?: string | undefined;
|
|
1710
|
+
roles?: {
|
|
1711
|
+
user: number;
|
|
1712
|
+
admin: number;
|
|
1713
|
+
superadmin: number;
|
|
1714
|
+
} | undefined;
|
|
1715
|
+
country?: string | undefined;
|
|
1716
|
+
phoneNumber?: string | undefined;
|
|
1717
|
+
birthDate?: string | undefined;
|
|
1718
|
+
guardian?: string | undefined;
|
|
1719
|
+
}>;
|
|
1720
|
+
declare const zMStudent: z.ZodObject<{
|
|
1721
|
+
[x: string]: any;
|
|
1722
|
+
[x: number]: any;
|
|
1723
|
+
[x: symbol]: any;
|
|
1724
|
+
_id: z.ZodString;
|
|
1725
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1726
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1727
|
+
}, any, any, {
|
|
1728
|
+
[x: string]: any;
|
|
1729
|
+
[x: number]: any;
|
|
1730
|
+
[x: symbol]: any;
|
|
1731
|
+
_id?: string | undefined;
|
|
1732
|
+
createdAt?: Date | undefined;
|
|
1733
|
+
updatedAt?: Date | undefined;
|
|
1734
|
+
}, {
|
|
1735
|
+
[x: string]: any;
|
|
1736
|
+
[x: number]: any;
|
|
1737
|
+
[x: symbol]: any;
|
|
1738
|
+
_id?: string | undefined;
|
|
1739
|
+
createdAt?: Date | undefined;
|
|
1740
|
+
updatedAt?: Date | undefined;
|
|
1741
|
+
}>;
|
|
1742
|
+
declare const zTeacher: z.ZodObject<{
|
|
1743
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1744
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1745
|
+
name: z.ZodString;
|
|
1746
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1747
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1748
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
1749
|
+
user: z.ZodNumber;
|
|
1750
|
+
admin: z.ZodNumber;
|
|
1751
|
+
superadmin: z.ZodNumber;
|
|
1752
|
+
}, "strip", z.ZodTypeAny, {
|
|
1753
|
+
user: number;
|
|
1754
|
+
admin: number;
|
|
1755
|
+
superadmin: number;
|
|
1756
|
+
}, {
|
|
1757
|
+
user: number;
|
|
1758
|
+
admin: number;
|
|
1759
|
+
superadmin: number;
|
|
1760
|
+
}>>;
|
|
1761
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1762
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1763
|
+
birthDate: z.ZodOptional<z.ZodString>;
|
|
1764
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
1765
|
+
isInactive: z.ZodOptional<z.ZodBoolean>;
|
|
1766
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1767
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
1768
|
+
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
1769
|
+
}, "strip", z.ZodTypeAny, {
|
|
1770
|
+
rank: GoRank;
|
|
1771
|
+
name: string;
|
|
1772
|
+
email?: string | undefined;
|
|
1773
|
+
address?: string | undefined;
|
|
1774
|
+
username?: string | undefined;
|
|
1775
|
+
password?: string | undefined;
|
|
1776
|
+
roles?: {
|
|
1777
|
+
user: number;
|
|
1778
|
+
admin: number;
|
|
1779
|
+
superadmin: number;
|
|
1780
|
+
} | undefined;
|
|
1781
|
+
country?: string | undefined;
|
|
1782
|
+
phoneNumber?: string | undefined;
|
|
1783
|
+
birthDate?: string | undefined;
|
|
1784
|
+
isInactive?: boolean | undefined;
|
|
1785
|
+
title?: string | undefined;
|
|
1786
|
+
bio?: string | undefined;
|
|
1787
|
+
available?: number[][][] | undefined;
|
|
1788
|
+
}, {
|
|
1789
|
+
rank: GoRank;
|
|
1790
|
+
name: string;
|
|
1791
|
+
email?: string | undefined;
|
|
1792
|
+
address?: string | undefined;
|
|
1793
|
+
username?: string | undefined;
|
|
1794
|
+
password?: string | undefined;
|
|
1795
|
+
roles?: {
|
|
1796
|
+
user: number;
|
|
1797
|
+
admin: number;
|
|
1798
|
+
superadmin: number;
|
|
1799
|
+
} | undefined;
|
|
1800
|
+
country?: string | undefined;
|
|
1801
|
+
phoneNumber?: string | undefined;
|
|
1802
|
+
birthDate?: string | undefined;
|
|
1803
|
+
isInactive?: boolean | undefined;
|
|
1804
|
+
title?: string | undefined;
|
|
1805
|
+
bio?: string | undefined;
|
|
1806
|
+
available?: number[][][] | undefined;
|
|
1807
|
+
}>;
|
|
1808
|
+
declare const zMTeacher: z.ZodObject<{
|
|
1809
|
+
[x: string]: any;
|
|
1810
|
+
[x: number]: any;
|
|
1811
|
+
[x: symbol]: any;
|
|
1812
|
+
_id: z.ZodString;
|
|
1813
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1814
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1815
|
+
}, any, any, {
|
|
1816
|
+
[x: string]: any;
|
|
1817
|
+
[x: number]: any;
|
|
1818
|
+
[x: symbol]: any;
|
|
1819
|
+
_id?: string | undefined;
|
|
1820
|
+
createdAt?: Date | undefined;
|
|
1821
|
+
updatedAt?: Date | undefined;
|
|
1822
|
+
}, {
|
|
1823
|
+
[x: string]: any;
|
|
1824
|
+
[x: number]: any;
|
|
1825
|
+
[x: symbol]: any;
|
|
1826
|
+
_id?: string | undefined;
|
|
1827
|
+
createdAt?: Date | undefined;
|
|
1828
|
+
updatedAt?: Date | undefined;
|
|
1829
|
+
}>;
|
|
1830
|
+
type Student = z.infer<typeof zStudent>;
|
|
1831
|
+
type MStudent = z.infer<typeof zMStudent>;
|
|
1832
|
+
type User = z.infer<typeof zUser>;
|
|
1833
|
+
type MUser = z.infer<typeof zMUser>;
|
|
1834
|
+
type Teacher = z.infer<typeof zTeacher>;
|
|
1835
|
+
type MTeacher = z.infer<typeof zMTeacher>;
|
|
1836
|
+
|
|
1837
|
+
declare const zUserRoles: z.ZodObject<{
|
|
1838
|
+
user: z.ZodNumber;
|
|
1839
|
+
admin: z.ZodNumber;
|
|
1840
|
+
superadmin: z.ZodNumber;
|
|
1841
|
+
}, "strip", z.ZodTypeAny, {
|
|
1842
|
+
user: number;
|
|
1843
|
+
admin: number;
|
|
1844
|
+
superadmin: number;
|
|
1845
|
+
}, {
|
|
1846
|
+
user: number;
|
|
1847
|
+
admin: number;
|
|
1848
|
+
superadmin: number;
|
|
12
1849
|
}>;
|
|
1850
|
+
type UserRoles = z.infer<typeof zUserRoles>;
|
|
13
1851
|
|
|
14
|
-
export { zStudent };
|
|
1852
|
+
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, type BPrivate, type BUserInfo, type CampBooking, CampOption, type CampTracker, type ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type MAttendance, type MBPrivate, type MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type MGroupBooking, type MGroupTracker, type MInvoice, type MNYIGMission, type MReportTicket, type MSemester, type MStudent, type MTConfig, type MTReg, type MTTicket, type MTeacher, type MTeacherPayment, type MUser, type NYIGMission, NYIGSchool, PaymentMethod, type ReportTicket, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type TConfig, type TReg, type TTicket, type TTicketReg, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentRow, type Tuition, type User, type UserRoles, zAttendance, zBPaymentInfo, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zMAttendance, zMCampBooking, zMCampTracker, zMClassTracker, zMCourse, zMGroupBooking, zMGroupTracker, zMInvoice, zMPrivateBooking, zMReportTicket, zMSemester, zMStudent, zMTConfig, zMTReg, zMTTicket, zMTeacher, zMTeacherPayment, zMUser, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTConfig, zTReg, zTTicket, zTTicketReg, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|