@nyig/models 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.mts +1046 -394
- package/index.d.ts +1046 -394
- package/index.js +153 -144
- package/index.mjs +152 -144
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -1,104 +1,32 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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>;
|
|
3
|
+
declare const zBPaymentInfo: z.ZodObject<{
|
|
4
|
+
/**
|
|
5
|
+
* @units CENTS - Proposed payment amount in cents of the booking
|
|
6
|
+
*/
|
|
42
7
|
paymentAmount: z.ZodNumber;
|
|
8
|
+
/**
|
|
9
|
+
* True if the payment has been received. Populated by webhook.
|
|
10
|
+
*/
|
|
43
11
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
/**
|
|
13
|
+
* When Date is reached, document is deleted by MongoDB sweeper.
|
|
14
|
+
* Creation typically marks one to two weeks.
|
|
15
|
+
* After payment, webhook should extend this date to essentially infinite.
|
|
16
|
+
*/
|
|
44
17
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
45
18
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
firstName: string;
|
|
47
|
-
lastName: string;
|
|
48
|
-
rank: string;
|
|
49
|
-
email: string;
|
|
50
19
|
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
20
|
paymentReceived?: boolean | undefined;
|
|
59
21
|
expireAt?: Date | undefined;
|
|
60
22
|
}, {
|
|
61
|
-
firstName: string;
|
|
62
|
-
lastName: string;
|
|
63
|
-
rank: string;
|
|
64
|
-
email: string;
|
|
65
23
|
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
24
|
paymentReceived?: boolean | undefined;
|
|
74
25
|
expireAt?: Date | undefined;
|
|
75
26
|
}>;
|
|
76
|
-
|
|
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 PrivateBooking = z.infer<typeof zPrivateBooking>;
|
|
99
|
-
type MPrivateBooking = z.infer<typeof zMPrivateBooking>;
|
|
27
|
+
type BPaymentInfo = z.infer<typeof zBPaymentInfo>;
|
|
100
28
|
|
|
101
|
-
declare const
|
|
29
|
+
declare const zBUserInfo: z.ZodObject<{
|
|
102
30
|
firstName: z.ZodString;
|
|
103
31
|
lastName: z.ZodString;
|
|
104
32
|
rank: z.ZodString;
|
|
@@ -106,74 +34,31 @@ declare const zGroupBooking: z.ZodObject<{
|
|
|
106
34
|
phone: z.ZodOptional<z.ZodString>;
|
|
107
35
|
address: z.ZodOptional<z.ZodString>;
|
|
108
36
|
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
37
|
}, "strip", z.ZodTypeAny, {
|
|
119
38
|
firstName: string;
|
|
120
39
|
lastName: string;
|
|
121
40
|
rank: string;
|
|
122
41
|
email: string;
|
|
123
|
-
paymentAmount: number;
|
|
124
|
-
isOnline: boolean;
|
|
125
42
|
phone?: string | undefined;
|
|
126
43
|
address?: string | undefined;
|
|
127
44
|
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
45
|
}, {
|
|
136
46
|
firstName: string;
|
|
137
47
|
lastName: string;
|
|
138
48
|
rank: string;
|
|
139
49
|
email: string;
|
|
140
|
-
paymentAmount: number;
|
|
141
|
-
isOnline: boolean;
|
|
142
50
|
phone?: string | undefined;
|
|
143
51
|
address?: string | undefined;
|
|
144
52
|
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
53
|
}>;
|
|
175
|
-
type
|
|
176
|
-
|
|
54
|
+
type BUserInfo = z.infer<typeof zBUserInfo>;
|
|
55
|
+
|
|
56
|
+
declare enum BookingType {
|
|
57
|
+
GROUP = "group",
|
|
58
|
+
PRIVATE = "private",
|
|
59
|
+
TOURNAMENT = "tournament",
|
|
60
|
+
CAMP = "camp"
|
|
61
|
+
}
|
|
177
62
|
|
|
178
63
|
declare enum AttendState {
|
|
179
64
|
ABSENT = "absent",
|
|
@@ -227,24 +112,50 @@ declare const zAttendance: z.ZodObject<{
|
|
|
227
112
|
paid?: boolean | undefined;
|
|
228
113
|
}>;
|
|
229
114
|
declare const zMAttendance: z.ZodObject<{
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
115
|
+
student: z.ZodString;
|
|
116
|
+
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
117
|
+
tuition: z.ZodObject<{
|
|
118
|
+
primary: z.ZodNumber;
|
|
119
|
+
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
primary: number;
|
|
123
|
+
textbook?: boolean | undefined;
|
|
124
|
+
shipping?: boolean | undefined;
|
|
125
|
+
}, {
|
|
126
|
+
primary: number;
|
|
127
|
+
textbook?: boolean | undefined;
|
|
128
|
+
shipping?: boolean | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
paid: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
campOption: z.ZodNativeEnum<typeof CampOption>;
|
|
233
132
|
_id: z.ZodString;
|
|
234
133
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
235
134
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
135
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
136
|
+
_id: string;
|
|
137
|
+
student: string;
|
|
138
|
+
states: AttendState[];
|
|
139
|
+
tuition: {
|
|
140
|
+
primary: number;
|
|
141
|
+
textbook?: boolean | undefined;
|
|
142
|
+
shipping?: boolean | undefined;
|
|
143
|
+
};
|
|
144
|
+
campOption: CampOption;
|
|
145
|
+
paid?: boolean | undefined;
|
|
241
146
|
createdAt?: Date | undefined;
|
|
242
147
|
updatedAt?: Date | undefined;
|
|
243
148
|
}, {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
149
|
+
_id: string;
|
|
150
|
+
student: string;
|
|
151
|
+
states: AttendState[];
|
|
152
|
+
tuition: {
|
|
153
|
+
primary: number;
|
|
154
|
+
textbook?: boolean | undefined;
|
|
155
|
+
shipping?: boolean | undefined;
|
|
156
|
+
};
|
|
157
|
+
campOption: CampOption;
|
|
158
|
+
paid?: boolean | undefined;
|
|
248
159
|
createdAt?: Date | undefined;
|
|
249
160
|
updatedAt?: Date | undefined;
|
|
250
161
|
}>;
|
|
@@ -289,24 +200,33 @@ declare const zCampTracker: z.ZodObject<{
|
|
|
289
200
|
notes?: string | undefined;
|
|
290
201
|
}>;
|
|
291
202
|
declare const zMCampTracker: z.ZodObject<{
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
203
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
204
|
+
course: z.ZodString;
|
|
205
|
+
teacher: z.ZodString;
|
|
206
|
+
semester: z.ZodString;
|
|
207
|
+
occurrences: z.ZodArray<z.ZodString, "many">;
|
|
208
|
+
attendances: z.ZodArray<z.ZodString, "many">;
|
|
295
209
|
_id: z.ZodString;
|
|
296
210
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
297
211
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
298
|
-
},
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
212
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
213
|
+
_id: string;
|
|
214
|
+
course: string;
|
|
215
|
+
teacher: string;
|
|
216
|
+
semester: string;
|
|
217
|
+
occurrences: string[];
|
|
218
|
+
attendances: string[];
|
|
219
|
+
notes?: string | undefined;
|
|
303
220
|
createdAt?: Date | undefined;
|
|
304
221
|
updatedAt?: Date | undefined;
|
|
305
222
|
}, {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
223
|
+
_id: string;
|
|
224
|
+
course: string;
|
|
225
|
+
teacher: string;
|
|
226
|
+
semester: string;
|
|
227
|
+
occurrences: string[];
|
|
228
|
+
attendances: string[];
|
|
229
|
+
notes?: string | undefined;
|
|
310
230
|
createdAt?: Date | undefined;
|
|
311
231
|
updatedAt?: Date | undefined;
|
|
312
232
|
}>;
|
|
@@ -379,24 +299,64 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
379
299
|
notes?: string | undefined;
|
|
380
300
|
}>;
|
|
381
301
|
declare const zMClassTracker: z.ZodObject<{
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
302
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
303
|
+
tuition: z.ZodOptional<z.ZodObject<{
|
|
304
|
+
primary: z.ZodNumber;
|
|
305
|
+
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
+
shipping: z.ZodOptional<z.ZodBoolean>; /**
|
|
307
|
+
* Mongoose object ID
|
|
308
|
+
*/
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
primary: number;
|
|
311
|
+
textbook?: boolean | undefined;
|
|
312
|
+
shipping?: boolean | undefined;
|
|
313
|
+
}, {
|
|
314
|
+
primary: number;
|
|
315
|
+
textbook?: boolean | undefined;
|
|
316
|
+
shipping?: boolean | undefined;
|
|
317
|
+
}>>;
|
|
318
|
+
paid: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
+
course: z.ZodString;
|
|
320
|
+
teacher: z.ZodString;
|
|
321
|
+
semester: z.ZodString;
|
|
322
|
+
classTimes: z.ZodArray<z.ZodDate, "many">;
|
|
323
|
+
completedList: z.ZodArray<z.ZodBoolean, "many">;
|
|
324
|
+
completed: z.ZodOptional<z.ZodBoolean>;
|
|
385
325
|
_id: z.ZodString;
|
|
386
326
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
387
327
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
388
|
-
},
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
328
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
329
|
+
_id: string;
|
|
330
|
+
course: string;
|
|
331
|
+
teacher: string;
|
|
332
|
+
semester: string;
|
|
333
|
+
classTimes: Date[];
|
|
334
|
+
completedList: boolean[];
|
|
335
|
+
notes?: string | undefined;
|
|
336
|
+
tuition?: {
|
|
337
|
+
primary: number;
|
|
338
|
+
textbook?: boolean | undefined;
|
|
339
|
+
shipping?: boolean | undefined;
|
|
340
|
+
} | undefined;
|
|
341
|
+
paid?: boolean | undefined;
|
|
342
|
+
completed?: boolean | undefined;
|
|
393
343
|
createdAt?: Date | undefined;
|
|
394
344
|
updatedAt?: Date | undefined;
|
|
395
345
|
}, {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
346
|
+
_id: string;
|
|
347
|
+
course: string;
|
|
348
|
+
teacher: string;
|
|
349
|
+
semester: string;
|
|
350
|
+
classTimes: Date[];
|
|
351
|
+
completedList: boolean[];
|
|
352
|
+
notes?: string | undefined;
|
|
353
|
+
tuition?: {
|
|
354
|
+
primary: number;
|
|
355
|
+
textbook?: boolean | undefined;
|
|
356
|
+
shipping?: boolean | undefined;
|
|
357
|
+
} | undefined;
|
|
358
|
+
paid?: boolean | undefined;
|
|
359
|
+
completed?: boolean | undefined;
|
|
400
360
|
createdAt?: Date | undefined;
|
|
401
361
|
updatedAt?: Date | undefined;
|
|
402
362
|
}>;
|
|
@@ -471,27 +431,45 @@ declare const zCourse: z.ZodObject<{
|
|
|
471
431
|
description?: string | undefined;
|
|
472
432
|
}>;
|
|
473
433
|
declare const zMCourse: z.ZodObject<{
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
434
|
+
price: z.ZodNumber;
|
|
435
|
+
name: z.ZodString;
|
|
436
|
+
category: z.ZodNativeEnum<typeof CourseCategory>;
|
|
437
|
+
duration: z.ZodNumber;
|
|
438
|
+
description: z.ZodOptional<z.ZodString>;
|
|
439
|
+
nyigSchool: z.ZodNativeEnum<typeof NYIGSchool>;
|
|
440
|
+
recLevel: z.ZodString;
|
|
441
|
+
halfCampTuition: z.ZodNumber;
|
|
442
|
+
fullCampTuition: z.ZodNumber;
|
|
477
443
|
_id: z.ZodString;
|
|
478
444
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
479
445
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
480
|
-
},
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
446
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
447
|
+
_id: string;
|
|
448
|
+
price: number;
|
|
449
|
+
name: string;
|
|
450
|
+
category: CourseCategory;
|
|
451
|
+
duration: number;
|
|
452
|
+
nyigSchool: NYIGSchool;
|
|
453
|
+
recLevel: string;
|
|
454
|
+
halfCampTuition: number;
|
|
455
|
+
fullCampTuition: number;
|
|
456
|
+
description?: string | undefined;
|
|
457
|
+
createdAt?: Date | undefined;
|
|
458
|
+
updatedAt?: Date | undefined;
|
|
459
|
+
}, {
|
|
460
|
+
_id: string;
|
|
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
|
+
createdAt?: Date | undefined;
|
|
471
|
+
updatedAt?: Date | undefined;
|
|
472
|
+
}>;
|
|
495
473
|
type Course = z.infer<typeof zCourse>;
|
|
496
474
|
type MCourse = z.infer<typeof zMCourse>;
|
|
497
475
|
|
|
@@ -569,24 +547,60 @@ declare const zGroupTracker: z.ZodObject<{
|
|
|
569
547
|
notes?: string | undefined;
|
|
570
548
|
}>;
|
|
571
549
|
declare const zMGroupTracker: z.ZodObject<{
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
550
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
551
|
+
course: z.ZodString;
|
|
552
|
+
teacher: z.ZodString;
|
|
553
|
+
semester: z.ZodString;
|
|
554
|
+
occurrences: z.ZodArray<z.ZodDate, "many">;
|
|
555
|
+
attendances: z.ZodArray<z.ZodString, "many">;
|
|
556
|
+
scheduleData: z.ZodObject<{
|
|
557
|
+
startTime: z.ZodString;
|
|
558
|
+
dayOfWeek: z.ZodNumber;
|
|
559
|
+
}, "strip", z.ZodTypeAny, {
|
|
560
|
+
startTime: string;
|
|
561
|
+
dayOfWeek: number;
|
|
562
|
+
}, {
|
|
563
|
+
startTime: string;
|
|
564
|
+
dayOfWeek: number;
|
|
565
|
+
}>;
|
|
566
|
+
courseId: z.ZodOptional<z.ZodString>;
|
|
567
|
+
ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
|
|
568
|
+
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
575
569
|
_id: z.ZodString;
|
|
576
570
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
577
571
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
572
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
573
|
+
_id: string;
|
|
574
|
+
course: string;
|
|
575
|
+
teacher: string;
|
|
576
|
+
semester: string;
|
|
577
|
+
occurrences: Date[];
|
|
578
|
+
attendances: string[];
|
|
579
|
+
scheduleData: {
|
|
580
|
+
startTime: string;
|
|
581
|
+
dayOfWeek: number;
|
|
582
|
+
};
|
|
583
|
+
notes?: string | undefined;
|
|
584
|
+
courseId?: string | undefined;
|
|
585
|
+
ageGroup?: AgeGroup | undefined;
|
|
586
|
+
isNonPublic?: boolean | undefined;
|
|
583
587
|
createdAt?: Date | undefined;
|
|
584
588
|
updatedAt?: Date | undefined;
|
|
585
589
|
}, {
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
+
_id: string;
|
|
591
|
+
course: string;
|
|
592
|
+
teacher: string;
|
|
593
|
+
semester: string;
|
|
594
|
+
occurrences: Date[];
|
|
595
|
+
attendances: string[];
|
|
596
|
+
scheduleData: {
|
|
597
|
+
startTime: string;
|
|
598
|
+
dayOfWeek: number;
|
|
599
|
+
};
|
|
600
|
+
notes?: string | undefined;
|
|
601
|
+
courseId?: string | undefined;
|
|
602
|
+
ageGroup?: AgeGroup | undefined;
|
|
603
|
+
isNonPublic?: boolean | undefined;
|
|
590
604
|
createdAt?: Date | undefined;
|
|
591
605
|
updatedAt?: Date | undefined;
|
|
592
606
|
}>;
|
|
@@ -613,100 +627,333 @@ declare const zCampBooking: z.ZodObject<{
|
|
|
613
627
|
phone: z.ZodOptional<z.ZodString>;
|
|
614
628
|
address: z.ZodOptional<z.ZodString>;
|
|
615
629
|
notes: z.ZodOptional<z.ZodString>;
|
|
616
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
617
|
-
isOnline: z.ZodBoolean;
|
|
618
630
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
619
631
|
campOption: z.ZodNativeEnum<typeof CampOption>;
|
|
632
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
620
633
|
ctId: z.ZodOptional<z.ZodString>;
|
|
634
|
+
isOnline: z.ZodBoolean;
|
|
621
635
|
classDates: z.ZodString;
|
|
622
636
|
paymentAmount: z.ZodNumber;
|
|
623
637
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
624
638
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
625
639
|
}, "strip", z.ZodTypeAny, {
|
|
640
|
+
paymentAmount: number;
|
|
626
641
|
firstName: string;
|
|
627
642
|
lastName: string;
|
|
628
643
|
rank: string;
|
|
629
644
|
email: string;
|
|
630
|
-
paymentAmount: number;
|
|
631
|
-
isOnline: boolean;
|
|
632
645
|
campOption: CampOption;
|
|
646
|
+
isOnline: boolean;
|
|
633
647
|
classDates: string;
|
|
634
648
|
phone?: string | undefined;
|
|
635
649
|
address?: string | undefined;
|
|
636
650
|
notes?: string | undefined;
|
|
637
|
-
userId?: string | undefined;
|
|
638
651
|
shipping?: boolean | undefined;
|
|
652
|
+
userId?: string | undefined;
|
|
639
653
|
ctId?: string | undefined;
|
|
640
654
|
paymentReceived?: boolean | undefined;
|
|
641
655
|
expireAt?: Date | undefined;
|
|
642
656
|
}, {
|
|
657
|
+
paymentAmount: number;
|
|
643
658
|
firstName: string;
|
|
644
659
|
lastName: string;
|
|
645
660
|
rank: string;
|
|
646
661
|
email: string;
|
|
647
|
-
paymentAmount: number;
|
|
648
|
-
isOnline: boolean;
|
|
649
662
|
campOption: CampOption;
|
|
663
|
+
isOnline: boolean;
|
|
650
664
|
classDates: string;
|
|
651
665
|
phone?: string | undefined;
|
|
652
666
|
address?: string | undefined;
|
|
653
667
|
notes?: string | undefined;
|
|
654
|
-
userId?: string | undefined;
|
|
655
668
|
shipping?: boolean | undefined;
|
|
669
|
+
userId?: string | undefined;
|
|
656
670
|
ctId?: string | undefined;
|
|
657
671
|
paymentReceived?: boolean | undefined;
|
|
658
672
|
expireAt?: Date | undefined;
|
|
659
673
|
}>;
|
|
660
674
|
declare const zMCampBooking: z.ZodObject<{
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
675
|
+
paymentAmount: z.ZodNumber;
|
|
676
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
677
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
678
|
+
firstName: z.ZodString;
|
|
679
|
+
lastName: z.ZodString;
|
|
680
|
+
rank: z.ZodString;
|
|
681
|
+
email: z.ZodString;
|
|
682
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
683
|
+
address: z.ZodOptional<z.ZodString>;
|
|
684
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
685
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
686
|
+
campOption: z.ZodNativeEnum<typeof CampOption>;
|
|
687
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
688
|
+
ctId: z.ZodOptional<z.ZodString>;
|
|
689
|
+
isOnline: z.ZodBoolean;
|
|
690
|
+
classDates: z.ZodString;
|
|
664
691
|
_id: z.ZodString;
|
|
665
692
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
666
693
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
667
|
-
},
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
694
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
695
|
+
paymentAmount: number;
|
|
696
|
+
firstName: string;
|
|
697
|
+
lastName: string;
|
|
698
|
+
rank: string;
|
|
699
|
+
email: string;
|
|
700
|
+
_id: string;
|
|
701
|
+
campOption: CampOption;
|
|
702
|
+
isOnline: boolean;
|
|
703
|
+
classDates: string;
|
|
704
|
+
paymentReceived?: boolean | undefined;
|
|
705
|
+
expireAt?: Date | undefined;
|
|
706
|
+
phone?: string | undefined;
|
|
707
|
+
address?: string | undefined;
|
|
708
|
+
notes?: string | undefined;
|
|
709
|
+
shipping?: boolean | undefined;
|
|
710
|
+
userId?: string | undefined;
|
|
711
|
+
ctId?: string | undefined;
|
|
672
712
|
createdAt?: Date | undefined;
|
|
673
713
|
updatedAt?: Date | undefined;
|
|
674
714
|
}, {
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
715
|
+
paymentAmount: number;
|
|
716
|
+
firstName: string;
|
|
717
|
+
lastName: string;
|
|
718
|
+
rank: string;
|
|
719
|
+
email: string;
|
|
720
|
+
_id: string;
|
|
721
|
+
campOption: CampOption;
|
|
722
|
+
isOnline: boolean;
|
|
723
|
+
classDates: string;
|
|
724
|
+
paymentReceived?: boolean | undefined;
|
|
725
|
+
expireAt?: Date | undefined;
|
|
726
|
+
phone?: string | undefined;
|
|
727
|
+
address?: string | undefined;
|
|
728
|
+
notes?: string | undefined;
|
|
729
|
+
shipping?: boolean | undefined;
|
|
730
|
+
userId?: string | undefined;
|
|
731
|
+
ctId?: string | undefined;
|
|
679
732
|
createdAt?: Date | undefined;
|
|
680
733
|
updatedAt?: Date | undefined;
|
|
681
734
|
}>;
|
|
682
735
|
type CampBooking = z.infer<typeof zCampBooking>;
|
|
683
736
|
type MCampBooking = z.infer<typeof zMCampBooking>;
|
|
684
737
|
|
|
685
|
-
declare const
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
738
|
+
declare const zGroupBooking: z.ZodObject<{
|
|
739
|
+
firstName: z.ZodString;
|
|
740
|
+
lastName: z.ZodString;
|
|
741
|
+
rank: z.ZodString;
|
|
742
|
+
email: z.ZodString;
|
|
743
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
744
|
+
address: z.ZodOptional<z.ZodString>;
|
|
745
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
746
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
747
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
748
|
+
isOnline: z.ZodBoolean;
|
|
749
|
+
gtId: z.ZodOptional<z.ZodString>;
|
|
750
|
+
isTrial: z.ZodOptional<z.ZodBoolean>;
|
|
751
|
+
classDate: z.ZodOptional<z.ZodString>;
|
|
689
752
|
paymentAmount: z.ZodNumber;
|
|
690
|
-
/**
|
|
691
|
-
* True if the payment has been received. Populated by webhook.
|
|
692
|
-
*/
|
|
693
753
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
694
|
-
/**
|
|
695
|
-
* When Date is reached, document is deleted by MongoDB sweeper.
|
|
696
|
-
* Creation typically marks one to two weeks.
|
|
697
|
-
* After payment, webhook should extend this date to essentially infinite.
|
|
698
|
-
*/
|
|
699
754
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
700
755
|
}, "strip", z.ZodTypeAny, {
|
|
701
756
|
paymentAmount: number;
|
|
757
|
+
firstName: string;
|
|
758
|
+
lastName: string;
|
|
759
|
+
rank: string;
|
|
760
|
+
email: string;
|
|
761
|
+
isOnline: boolean;
|
|
762
|
+
phone?: string | undefined;
|
|
763
|
+
address?: string | undefined;
|
|
764
|
+
notes?: string | undefined;
|
|
765
|
+
shipping?: boolean | undefined;
|
|
766
|
+
userId?: string | undefined;
|
|
767
|
+
gtId?: string | undefined;
|
|
768
|
+
isTrial?: boolean | undefined;
|
|
769
|
+
classDate?: string | undefined;
|
|
702
770
|
paymentReceived?: boolean | undefined;
|
|
703
771
|
expireAt?: Date | undefined;
|
|
704
772
|
}, {
|
|
705
773
|
paymentAmount: number;
|
|
774
|
+
firstName: string;
|
|
775
|
+
lastName: string;
|
|
776
|
+
rank: string;
|
|
777
|
+
email: string;
|
|
778
|
+
isOnline: boolean;
|
|
779
|
+
phone?: string | undefined;
|
|
780
|
+
address?: string | undefined;
|
|
781
|
+
notes?: string | undefined;
|
|
782
|
+
shipping?: boolean | undefined;
|
|
783
|
+
userId?: string | undefined;
|
|
784
|
+
gtId?: string | undefined;
|
|
785
|
+
isTrial?: boolean | undefined;
|
|
786
|
+
classDate?: string | undefined;
|
|
706
787
|
paymentReceived?: boolean | undefined;
|
|
707
788
|
expireAt?: Date | undefined;
|
|
708
789
|
}>;
|
|
709
|
-
|
|
790
|
+
declare const zMGroupBooking: z.ZodObject<{
|
|
791
|
+
paymentAmount: z.ZodNumber;
|
|
792
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
793
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
794
|
+
firstName: z.ZodString;
|
|
795
|
+
lastName: z.ZodString;
|
|
796
|
+
rank: z.ZodString;
|
|
797
|
+
email: z.ZodString;
|
|
798
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
799
|
+
address: z.ZodOptional<z.ZodString>;
|
|
800
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
801
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
802
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
803
|
+
isOnline: z.ZodBoolean;
|
|
804
|
+
gtId: z.ZodOptional<z.ZodString>;
|
|
805
|
+
isTrial: z.ZodOptional<z.ZodBoolean>;
|
|
806
|
+
classDate: z.ZodOptional<z.ZodString>;
|
|
807
|
+
_id: z.ZodString;
|
|
808
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
809
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
810
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
811
|
+
paymentAmount: number;
|
|
812
|
+
firstName: string;
|
|
813
|
+
lastName: string;
|
|
814
|
+
rank: string;
|
|
815
|
+
email: string;
|
|
816
|
+
_id: string;
|
|
817
|
+
isOnline: boolean;
|
|
818
|
+
paymentReceived?: boolean | undefined;
|
|
819
|
+
expireAt?: Date | undefined;
|
|
820
|
+
phone?: string | undefined;
|
|
821
|
+
address?: string | undefined;
|
|
822
|
+
notes?: string | undefined;
|
|
823
|
+
shipping?: boolean | undefined;
|
|
824
|
+
userId?: string | undefined;
|
|
825
|
+
gtId?: string | undefined;
|
|
826
|
+
isTrial?: boolean | undefined;
|
|
827
|
+
classDate?: string | undefined;
|
|
828
|
+
createdAt?: Date | undefined;
|
|
829
|
+
updatedAt?: Date | undefined;
|
|
830
|
+
}, {
|
|
831
|
+
paymentAmount: number;
|
|
832
|
+
firstName: string;
|
|
833
|
+
lastName: string;
|
|
834
|
+
rank: string;
|
|
835
|
+
email: string;
|
|
836
|
+
_id: string;
|
|
837
|
+
isOnline: boolean;
|
|
838
|
+
paymentReceived?: boolean | undefined;
|
|
839
|
+
expireAt?: Date | undefined;
|
|
840
|
+
phone?: string | undefined;
|
|
841
|
+
address?: string | undefined;
|
|
842
|
+
notes?: string | undefined;
|
|
843
|
+
shipping?: boolean | undefined;
|
|
844
|
+
userId?: string | undefined;
|
|
845
|
+
gtId?: string | undefined;
|
|
846
|
+
isTrial?: boolean | undefined;
|
|
847
|
+
classDate?: string | undefined;
|
|
848
|
+
createdAt?: Date | undefined;
|
|
849
|
+
updatedAt?: Date | undefined;
|
|
850
|
+
}>;
|
|
851
|
+
type GroupBooking = z.infer<typeof zGroupBooking>;
|
|
852
|
+
type MGroupBooking = z.infer<typeof zMGroupBooking>;
|
|
853
|
+
|
|
854
|
+
declare const zPrivateBooking: z.ZodObject<{
|
|
855
|
+
firstName: z.ZodString;
|
|
856
|
+
lastName: z.ZodString;
|
|
857
|
+
rank: z.ZodString;
|
|
858
|
+
email: z.ZodString;
|
|
859
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
860
|
+
address: z.ZodOptional<z.ZodString>;
|
|
861
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
862
|
+
courseId: z.ZodString;
|
|
863
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
864
|
+
classDate: z.ZodOptional<z.ZodString>;
|
|
865
|
+
teacherId: z.ZodString;
|
|
866
|
+
paymentAmount: z.ZodNumber;
|
|
867
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
868
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
869
|
+
}, "strip", z.ZodTypeAny, {
|
|
870
|
+
paymentAmount: number;
|
|
871
|
+
firstName: string;
|
|
872
|
+
lastName: string;
|
|
873
|
+
rank: string;
|
|
874
|
+
email: string;
|
|
875
|
+
courseId: string;
|
|
876
|
+
teacherId: string;
|
|
877
|
+
phone?: string | undefined;
|
|
878
|
+
address?: string | undefined;
|
|
879
|
+
notes?: string | undefined;
|
|
880
|
+
userId?: string | undefined;
|
|
881
|
+
classDate?: string | undefined;
|
|
882
|
+
paymentReceived?: boolean | undefined;
|
|
883
|
+
expireAt?: Date | undefined;
|
|
884
|
+
}, {
|
|
885
|
+
paymentAmount: number;
|
|
886
|
+
firstName: string;
|
|
887
|
+
lastName: string;
|
|
888
|
+
rank: string;
|
|
889
|
+
email: string;
|
|
890
|
+
courseId: string;
|
|
891
|
+
teacherId: string;
|
|
892
|
+
phone?: string | undefined;
|
|
893
|
+
address?: string | undefined;
|
|
894
|
+
notes?: string | undefined;
|
|
895
|
+
userId?: string | undefined;
|
|
896
|
+
classDate?: string | undefined;
|
|
897
|
+
paymentReceived?: boolean | undefined;
|
|
898
|
+
expireAt?: Date | undefined;
|
|
899
|
+
}>;
|
|
900
|
+
declare const zMPrivateBooking: z.ZodObject<{
|
|
901
|
+
paymentAmount: z.ZodNumber;
|
|
902
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
903
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
904
|
+
firstName: z.ZodString;
|
|
905
|
+
lastName: z.ZodString;
|
|
906
|
+
rank: z.ZodString;
|
|
907
|
+
email: z.ZodString;
|
|
908
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
909
|
+
address: z.ZodOptional<z.ZodString>;
|
|
910
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
911
|
+
courseId: z.ZodString;
|
|
912
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
913
|
+
classDate: z.ZodOptional<z.ZodString>;
|
|
914
|
+
teacherId: z.ZodString;
|
|
915
|
+
_id: z.ZodString;
|
|
916
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
917
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
918
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
919
|
+
paymentAmount: number;
|
|
920
|
+
firstName: string;
|
|
921
|
+
lastName: string;
|
|
922
|
+
rank: string;
|
|
923
|
+
email: string;
|
|
924
|
+
_id: string;
|
|
925
|
+
courseId: string;
|
|
926
|
+
teacherId: string;
|
|
927
|
+
paymentReceived?: boolean | undefined;
|
|
928
|
+
expireAt?: Date | undefined;
|
|
929
|
+
phone?: string | undefined;
|
|
930
|
+
address?: string | undefined;
|
|
931
|
+
notes?: string | undefined;
|
|
932
|
+
userId?: string | undefined;
|
|
933
|
+
classDate?: string | undefined;
|
|
934
|
+
createdAt?: Date | undefined;
|
|
935
|
+
updatedAt?: Date | undefined;
|
|
936
|
+
}, {
|
|
937
|
+
paymentAmount: number;
|
|
938
|
+
firstName: string;
|
|
939
|
+
lastName: string;
|
|
940
|
+
rank: string;
|
|
941
|
+
email: string;
|
|
942
|
+
_id: string;
|
|
943
|
+
courseId: string;
|
|
944
|
+
teacherId: string;
|
|
945
|
+
paymentReceived?: boolean | undefined;
|
|
946
|
+
expireAt?: Date | undefined;
|
|
947
|
+
phone?: string | undefined;
|
|
948
|
+
address?: string | undefined;
|
|
949
|
+
notes?: string | undefined;
|
|
950
|
+
userId?: string | undefined;
|
|
951
|
+
classDate?: string | undefined;
|
|
952
|
+
createdAt?: Date | undefined;
|
|
953
|
+
updatedAt?: Date | undefined;
|
|
954
|
+
}>;
|
|
955
|
+
type PrivateBooking = z.infer<typeof zPrivateBooking>;
|
|
956
|
+
type MPrivateBooking = z.infer<typeof zMPrivateBooking>;
|
|
710
957
|
|
|
711
958
|
declare enum PaymentMethod {
|
|
712
959
|
CASH = "Cash",
|
|
@@ -763,21 +1010,126 @@ declare const zInvoicePackage: z.ZodObject<{
|
|
|
763
1010
|
units: number;
|
|
764
1011
|
}>, "many">;
|
|
765
1012
|
}, "strip", z.ZodTypeAny, {
|
|
766
|
-
student: string;
|
|
767
|
-
items: {
|
|
768
|
-
course: string;
|
|
769
|
-
price: number;
|
|
770
|
-
units: number;
|
|
1013
|
+
student: string;
|
|
1014
|
+
items: {
|
|
1015
|
+
course: string;
|
|
1016
|
+
price: number;
|
|
1017
|
+
units: number;
|
|
1018
|
+
}[];
|
|
1019
|
+
}, {
|
|
1020
|
+
student: string;
|
|
1021
|
+
items: {
|
|
1022
|
+
course: string;
|
|
1023
|
+
price: number;
|
|
1024
|
+
units: number;
|
|
1025
|
+
}[];
|
|
1026
|
+
}>;
|
|
1027
|
+
declare const zInvoice: z.ZodObject<{
|
|
1028
|
+
billTo: z.ZodString;
|
|
1029
|
+
packages: z.ZodArray<z.ZodObject<{
|
|
1030
|
+
/**
|
|
1031
|
+
* Mongoose object ID
|
|
1032
|
+
*/
|
|
1033
|
+
student: z.ZodString;
|
|
1034
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1035
|
+
/**
|
|
1036
|
+
* Mongoose object ID
|
|
1037
|
+
*/
|
|
1038
|
+
course: z.ZodString;
|
|
1039
|
+
price: z.ZodNumber;
|
|
1040
|
+
units: z.ZodNumber;
|
|
1041
|
+
}, "strip", z.ZodTypeAny, {
|
|
1042
|
+
course: string;
|
|
1043
|
+
price: number;
|
|
1044
|
+
units: number;
|
|
1045
|
+
}, {
|
|
1046
|
+
course: string;
|
|
1047
|
+
price: number;
|
|
1048
|
+
units: number;
|
|
1049
|
+
}>, "many">;
|
|
1050
|
+
}, "strip", z.ZodTypeAny, {
|
|
1051
|
+
student: string;
|
|
1052
|
+
items: {
|
|
1053
|
+
course: string;
|
|
1054
|
+
price: number;
|
|
1055
|
+
units: number;
|
|
1056
|
+
}[];
|
|
1057
|
+
}, {
|
|
1058
|
+
student: string;
|
|
1059
|
+
items: {
|
|
1060
|
+
course: string;
|
|
1061
|
+
price: number;
|
|
1062
|
+
units: number;
|
|
1063
|
+
}[];
|
|
1064
|
+
}>, "many">;
|
|
1065
|
+
discounts: z.ZodArray<z.ZodObject<{
|
|
1066
|
+
desc: z.ZodString;
|
|
1067
|
+
amount: z.ZodNumber;
|
|
1068
|
+
}, "strip", z.ZodTypeAny, {
|
|
1069
|
+
desc: string;
|
|
1070
|
+
amount: number;
|
|
1071
|
+
}, {
|
|
1072
|
+
desc: string;
|
|
1073
|
+
amount: number;
|
|
1074
|
+
}>, "many">;
|
|
1075
|
+
textbook: z.ZodOptional<z.ZodNumber>;
|
|
1076
|
+
shipping: z.ZodOptional<z.ZodNumber>;
|
|
1077
|
+
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
1078
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Mongoose object ID
|
|
1081
|
+
*/
|
|
1082
|
+
createdBy: z.ZodString;
|
|
1083
|
+
/**
|
|
1084
|
+
* Mongoose object ID
|
|
1085
|
+
*/
|
|
1086
|
+
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
}, "strip", z.ZodTypeAny, {
|
|
1088
|
+
billTo: string;
|
|
1089
|
+
packages: {
|
|
1090
|
+
student: string;
|
|
1091
|
+
items: {
|
|
1092
|
+
course: string;
|
|
1093
|
+
price: number;
|
|
1094
|
+
units: number;
|
|
1095
|
+
}[];
|
|
1096
|
+
}[];
|
|
1097
|
+
discounts: {
|
|
1098
|
+
desc: string;
|
|
1099
|
+
amount: number;
|
|
771
1100
|
}[];
|
|
1101
|
+
createdBy: string;
|
|
1102
|
+
textbook?: number | undefined;
|
|
1103
|
+
shipping?: number | undefined;
|
|
1104
|
+
paid?: PaymentMethod | undefined;
|
|
1105
|
+
notes?: string | undefined;
|
|
1106
|
+
lastEditBy?: string | undefined;
|
|
772
1107
|
}, {
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
1108
|
+
billTo: string;
|
|
1109
|
+
packages: {
|
|
1110
|
+
student: string;
|
|
1111
|
+
items: {
|
|
1112
|
+
course: string;
|
|
1113
|
+
price: number;
|
|
1114
|
+
units: number;
|
|
1115
|
+
}[];
|
|
1116
|
+
}[];
|
|
1117
|
+
discounts: {
|
|
1118
|
+
desc: string;
|
|
1119
|
+
amount: number;
|
|
778
1120
|
}[];
|
|
1121
|
+
createdBy: string;
|
|
1122
|
+
textbook?: number | undefined;
|
|
1123
|
+
shipping?: number | undefined;
|
|
1124
|
+
paid?: PaymentMethod | undefined;
|
|
1125
|
+
notes?: string | undefined;
|
|
1126
|
+
lastEditBy?: string | undefined;
|
|
779
1127
|
}>;
|
|
780
|
-
declare const
|
|
1128
|
+
declare const zMInvoice: z.ZodObject<{
|
|
1129
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1130
|
+
textbook: z.ZodOptional<z.ZodNumber>;
|
|
1131
|
+
shipping: z.ZodOptional<z.ZodNumber>;
|
|
1132
|
+
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
781
1133
|
billTo: z.ZodString;
|
|
782
1134
|
packages: z.ZodArray<z.ZodObject<{
|
|
783
1135
|
/**
|
|
@@ -825,19 +1177,13 @@ declare const zInvoice: z.ZodObject<{
|
|
|
825
1177
|
desc: string;
|
|
826
1178
|
amount: number;
|
|
827
1179
|
}>, "many">;
|
|
828
|
-
textbook: z.ZodOptional<z.ZodNumber>;
|
|
829
|
-
shipping: z.ZodOptional<z.ZodNumber>;
|
|
830
|
-
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
831
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
832
|
-
/**
|
|
833
|
-
* Mongoose object ID
|
|
834
|
-
*/
|
|
835
1180
|
createdBy: z.ZodString;
|
|
836
|
-
/**
|
|
837
|
-
* Mongoose object ID
|
|
838
|
-
*/
|
|
839
1181
|
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
840
|
-
|
|
1182
|
+
_id: z.ZodString;
|
|
1183
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1184
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1185
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1186
|
+
_id: string;
|
|
841
1187
|
billTo: string;
|
|
842
1188
|
packages: {
|
|
843
1189
|
student: string;
|
|
@@ -852,12 +1198,15 @@ declare const zInvoice: z.ZodObject<{
|
|
|
852
1198
|
amount: number;
|
|
853
1199
|
}[];
|
|
854
1200
|
createdBy: string;
|
|
1201
|
+
notes?: string | undefined;
|
|
855
1202
|
textbook?: number | undefined;
|
|
856
1203
|
shipping?: number | undefined;
|
|
857
1204
|
paid?: PaymentMethod | undefined;
|
|
858
|
-
notes?: string | undefined;
|
|
859
1205
|
lastEditBy?: string | undefined;
|
|
1206
|
+
createdAt?: Date | undefined;
|
|
1207
|
+
updatedAt?: Date | undefined;
|
|
860
1208
|
}, {
|
|
1209
|
+
_id: string;
|
|
861
1210
|
billTo: string;
|
|
862
1211
|
packages: {
|
|
863
1212
|
student: string;
|
|
@@ -872,31 +1221,11 @@ declare const zInvoice: z.ZodObject<{
|
|
|
872
1221
|
amount: number;
|
|
873
1222
|
}[];
|
|
874
1223
|
createdBy: string;
|
|
1224
|
+
notes?: string | undefined;
|
|
875
1225
|
textbook?: number | undefined;
|
|
876
1226
|
shipping?: number | undefined;
|
|
877
1227
|
paid?: PaymentMethod | undefined;
|
|
878
|
-
notes?: string | undefined;
|
|
879
1228
|
lastEditBy?: string | undefined;
|
|
880
|
-
}>;
|
|
881
|
-
declare const zMInvoice: z.ZodObject<{
|
|
882
|
-
[x: string]: any;
|
|
883
|
-
[x: number]: any;
|
|
884
|
-
[x: symbol]: any;
|
|
885
|
-
_id: z.ZodString;
|
|
886
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
887
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
888
|
-
}, any, any, {
|
|
889
|
-
[x: string]: any;
|
|
890
|
-
[x: number]: any;
|
|
891
|
-
[x: symbol]: any;
|
|
892
|
-
_id?: string | undefined;
|
|
893
|
-
createdAt?: Date | undefined;
|
|
894
|
-
updatedAt?: Date | undefined;
|
|
895
|
-
}, {
|
|
896
|
-
[x: string]: any;
|
|
897
|
-
[x: number]: any;
|
|
898
|
-
[x: symbol]: any;
|
|
899
|
-
_id?: string | undefined;
|
|
900
1229
|
createdAt?: Date | undefined;
|
|
901
1230
|
updatedAt?: Date | undefined;
|
|
902
1231
|
}>;
|
|
@@ -906,6 +1235,11 @@ type InvoicePackage = z.infer<typeof zInvoicePackage>;
|
|
|
906
1235
|
type Invoice = z.infer<typeof zInvoice>;
|
|
907
1236
|
type MInvoice = z.infer<typeof zMInvoice>;
|
|
908
1237
|
|
|
1238
|
+
interface PaymentIntent {
|
|
1239
|
+
id: string;
|
|
1240
|
+
type: BookingType;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
909
1243
|
declare const zTeacherPaymentRow: z.ZodObject<{
|
|
910
1244
|
course: z.ZodString;
|
|
911
1245
|
length: z.ZodNumber;
|
|
@@ -961,24 +1295,49 @@ declare const zTeacherPayment: z.ZodObject<{
|
|
|
961
1295
|
paid?: boolean | undefined;
|
|
962
1296
|
}>;
|
|
963
1297
|
declare const zMTeacherPayment: z.ZodObject<{
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1298
|
+
paid: z.ZodOptional<z.ZodBoolean>;
|
|
1299
|
+
teacher: z.ZodString;
|
|
1300
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
1301
|
+
course: z.ZodString;
|
|
1302
|
+
length: z.ZodNumber;
|
|
1303
|
+
count: z.ZodNumber;
|
|
1304
|
+
wage: z.ZodNumber;
|
|
1305
|
+
}, "strip", z.ZodTypeAny, {
|
|
1306
|
+
length: number;
|
|
1307
|
+
course: string;
|
|
1308
|
+
count: number;
|
|
1309
|
+
wage: number;
|
|
1310
|
+
}, {
|
|
1311
|
+
length: number;
|
|
1312
|
+
course: string;
|
|
1313
|
+
count: number;
|
|
1314
|
+
wage: number;
|
|
1315
|
+
}>, "many">;
|
|
967
1316
|
_id: z.ZodString;
|
|
968
1317
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
969
1318
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
970
|
-
},
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
1319
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1320
|
+
_id: string;
|
|
1321
|
+
teacher: string;
|
|
1322
|
+
rows: {
|
|
1323
|
+
length: number;
|
|
1324
|
+
course: string;
|
|
1325
|
+
count: number;
|
|
1326
|
+
wage: number;
|
|
1327
|
+
}[];
|
|
1328
|
+
paid?: boolean | undefined;
|
|
975
1329
|
createdAt?: Date | undefined;
|
|
976
1330
|
updatedAt?: Date | undefined;
|
|
977
1331
|
}, {
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
1332
|
+
_id: string;
|
|
1333
|
+
teacher: string;
|
|
1334
|
+
rows: {
|
|
1335
|
+
length: number;
|
|
1336
|
+
course: string;
|
|
1337
|
+
count: number;
|
|
1338
|
+
wage: number;
|
|
1339
|
+
}[];
|
|
1340
|
+
paid?: boolean | undefined;
|
|
982
1341
|
createdAt?: Date | undefined;
|
|
983
1342
|
updatedAt?: Date | undefined;
|
|
984
1343
|
}>;
|
|
@@ -1108,24 +1467,30 @@ declare const zReportTicket: z.ZodObject<{
|
|
|
1108
1467
|
resolver: string;
|
|
1109
1468
|
}>;
|
|
1110
1469
|
declare const zMReportTicket: z.ZodObject<{
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1470
|
+
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
1471
|
+
description: z.ZodString;
|
|
1472
|
+
title: z.ZodString;
|
|
1473
|
+
requester: z.ZodString;
|
|
1474
|
+
resolver: z.ZodString;
|
|
1114
1475
|
_id: z.ZodString;
|
|
1115
1476
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1116
1477
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1117
|
-
},
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1478
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1479
|
+
status: TicketStatus;
|
|
1480
|
+
_id: string;
|
|
1481
|
+
description: string;
|
|
1482
|
+
title: string;
|
|
1483
|
+
requester: string;
|
|
1484
|
+
resolver: string;
|
|
1122
1485
|
createdAt?: Date | undefined;
|
|
1123
1486
|
updatedAt?: Date | undefined;
|
|
1124
1487
|
}, {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1488
|
+
status: TicketStatus;
|
|
1489
|
+
_id: string;
|
|
1490
|
+
description: string;
|
|
1491
|
+
title: string;
|
|
1492
|
+
requester: string;
|
|
1493
|
+
resolver: string;
|
|
1129
1494
|
createdAt?: Date | undefined;
|
|
1130
1495
|
updatedAt?: Date | undefined;
|
|
1131
1496
|
}>;
|
|
@@ -1167,24 +1532,33 @@ declare const zSemester: z.ZodObject<{
|
|
|
1167
1532
|
importantDates: string[];
|
|
1168
1533
|
}>;
|
|
1169
1534
|
declare const zMSemester: z.ZodObject<{
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1535
|
+
season: z.ZodNativeEnum<typeof Season>;
|
|
1536
|
+
year: z.ZodNumber;
|
|
1537
|
+
startDate: z.ZodDate;
|
|
1538
|
+
endDate: z.ZodDate;
|
|
1539
|
+
blackoutDates: z.ZodArray<z.ZodDate, "many">;
|
|
1540
|
+
importantDates: z.ZodArray<z.ZodString, "many">;
|
|
1173
1541
|
_id: z.ZodString;
|
|
1174
1542
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1175
1543
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1176
|
-
},
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1544
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1545
|
+
_id: string;
|
|
1546
|
+
season: Season;
|
|
1547
|
+
year: number;
|
|
1548
|
+
startDate: Date;
|
|
1549
|
+
endDate: Date;
|
|
1550
|
+
blackoutDates: Date[];
|
|
1551
|
+
importantDates: string[];
|
|
1181
1552
|
createdAt?: Date | undefined;
|
|
1182
1553
|
updatedAt?: Date | undefined;
|
|
1183
1554
|
}, {
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1555
|
+
_id: string;
|
|
1556
|
+
season: Season;
|
|
1557
|
+
year: number;
|
|
1558
|
+
startDate: Date;
|
|
1559
|
+
endDate: Date;
|
|
1560
|
+
blackoutDates: Date[];
|
|
1561
|
+
importantDates: string[];
|
|
1188
1562
|
createdAt?: Date | undefined;
|
|
1189
1563
|
updatedAt?: Date | undefined;
|
|
1190
1564
|
}>;
|
|
@@ -1333,24 +1707,107 @@ declare const zTConfig: z.ZodObject<{
|
|
|
1333
1707
|
} | undefined;
|
|
1334
1708
|
}>;
|
|
1335
1709
|
declare const zMTConfig: z.ZodObject<{
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1710
|
+
description: z.ZodString;
|
|
1711
|
+
title: z.ZodString;
|
|
1712
|
+
url: z.ZodString;
|
|
1713
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1714
|
+
shortTitle: z.ZodString;
|
|
1715
|
+
tStart: z.ZodDate;
|
|
1716
|
+
tEnd: z.ZodDate;
|
|
1717
|
+
shortDescription: z.ZodString;
|
|
1718
|
+
details: z.ZodObject<{
|
|
1719
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
1720
|
+
data: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
1721
|
+
}, "strip", z.ZodTypeAny, {
|
|
1722
|
+
data: {}[];
|
|
1723
|
+
fields: string[];
|
|
1724
|
+
}, {
|
|
1725
|
+
data: {}[];
|
|
1726
|
+
fields: string[];
|
|
1727
|
+
}>;
|
|
1728
|
+
schedule: z.ZodObject<{
|
|
1729
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
|
1730
|
+
data: z.ZodMap<z.ZodString, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">>;
|
|
1731
|
+
}, "strip", z.ZodTypeAny, {
|
|
1732
|
+
data: Map<string, {}[]>;
|
|
1733
|
+
fields: string[];
|
|
1734
|
+
}, {
|
|
1735
|
+
data: Map<string, {}[]>;
|
|
1736
|
+
fields: string[];
|
|
1737
|
+
}>;
|
|
1738
|
+
tickets: z.ZodArray<z.ZodString, "many">;
|
|
1739
|
+
canRegister: z.ZodBoolean;
|
|
1740
|
+
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1741
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
1742
|
+
url: z.ZodString;
|
|
1743
|
+
height: z.ZodNumber;
|
|
1744
|
+
width: z.ZodNumber;
|
|
1745
|
+
}, "strip", z.ZodTypeAny, {
|
|
1746
|
+
url: string;
|
|
1747
|
+
height: number;
|
|
1748
|
+
width: number;
|
|
1749
|
+
}, {
|
|
1750
|
+
url: string;
|
|
1751
|
+
height: number;
|
|
1752
|
+
width: number;
|
|
1753
|
+
}>>;
|
|
1339
1754
|
_id: z.ZodString;
|
|
1340
1755
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1341
1756
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1342
|
-
},
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1757
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1758
|
+
_id: string;
|
|
1759
|
+
description: string;
|
|
1760
|
+
title: string;
|
|
1761
|
+
url: string;
|
|
1762
|
+
shortTitle: string;
|
|
1763
|
+
tStart: Date;
|
|
1764
|
+
tEnd: Date;
|
|
1765
|
+
shortDescription: string;
|
|
1766
|
+
details: {
|
|
1767
|
+
data: {}[];
|
|
1768
|
+
fields: string[];
|
|
1769
|
+
};
|
|
1770
|
+
schedule: {
|
|
1771
|
+
data: Map<string, {}[]>;
|
|
1772
|
+
fields: string[];
|
|
1773
|
+
};
|
|
1774
|
+
tickets: string[];
|
|
1775
|
+
canRegister: boolean;
|
|
1776
|
+
location?: string | undefined;
|
|
1777
|
+
donationsDisabled?: boolean | undefined;
|
|
1778
|
+
image?: {
|
|
1779
|
+
url: string;
|
|
1780
|
+
height: number;
|
|
1781
|
+
width: number;
|
|
1782
|
+
} | undefined;
|
|
1347
1783
|
createdAt?: Date | undefined;
|
|
1348
1784
|
updatedAt?: Date | undefined;
|
|
1349
1785
|
}, {
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1786
|
+
_id: string;
|
|
1787
|
+
description: string;
|
|
1788
|
+
title: string;
|
|
1789
|
+
url: string;
|
|
1790
|
+
shortTitle: string;
|
|
1791
|
+
tStart: Date;
|
|
1792
|
+
tEnd: Date;
|
|
1793
|
+
shortDescription: string;
|
|
1794
|
+
details: {
|
|
1795
|
+
data: {}[];
|
|
1796
|
+
fields: string[];
|
|
1797
|
+
};
|
|
1798
|
+
schedule: {
|
|
1799
|
+
data: Map<string, {}[]>;
|
|
1800
|
+
fields: string[];
|
|
1801
|
+
};
|
|
1802
|
+
tickets: string[];
|
|
1803
|
+
canRegister: boolean;
|
|
1804
|
+
location?: string | undefined;
|
|
1805
|
+
donationsDisabled?: boolean | undefined;
|
|
1806
|
+
image?: {
|
|
1807
|
+
url: string;
|
|
1808
|
+
height: number;
|
|
1809
|
+
width: number;
|
|
1810
|
+
} | undefined;
|
|
1354
1811
|
createdAt?: Date | undefined;
|
|
1355
1812
|
updatedAt?: Date | undefined;
|
|
1356
1813
|
}>;
|
|
@@ -1407,11 +1864,11 @@ declare const zTReg: z.ZodObject<{
|
|
|
1407
1864
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
1408
1865
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
1409
1866
|
}, "strip", z.ZodTypeAny, {
|
|
1867
|
+
paymentAmount: number;
|
|
1410
1868
|
firstName: string;
|
|
1411
1869
|
lastName: string;
|
|
1412
1870
|
rank: string;
|
|
1413
1871
|
email: string;
|
|
1414
|
-
paymentAmount: number;
|
|
1415
1872
|
tickets: {
|
|
1416
1873
|
amount: number;
|
|
1417
1874
|
ticket: string;
|
|
@@ -1427,11 +1884,11 @@ declare const zTReg: z.ZodObject<{
|
|
|
1427
1884
|
paymentReceived?: boolean | undefined;
|
|
1428
1885
|
expireAt?: Date | undefined;
|
|
1429
1886
|
}, {
|
|
1887
|
+
paymentAmount: number;
|
|
1430
1888
|
firstName: string;
|
|
1431
1889
|
lastName: string;
|
|
1432
1890
|
rank: string;
|
|
1433
1891
|
email: string;
|
|
1434
|
-
paymentAmount: number;
|
|
1435
1892
|
tickets: {
|
|
1436
1893
|
amount: number;
|
|
1437
1894
|
ticket: string;
|
|
@@ -1448,24 +1905,78 @@ declare const zTReg: z.ZodObject<{
|
|
|
1448
1905
|
expireAt?: Date | undefined;
|
|
1449
1906
|
}>;
|
|
1450
1907
|
declare const zMTReg: z.ZodObject<{
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1908
|
+
paymentAmount: z.ZodNumber;
|
|
1909
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
1910
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
1911
|
+
firstName: z.ZodString;
|
|
1912
|
+
lastName: z.ZodString;
|
|
1913
|
+
rank: z.ZodString;
|
|
1914
|
+
email: z.ZodString;
|
|
1915
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1916
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1917
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1918
|
+
tickets: z.ZodArray<z.ZodObject<{
|
|
1919
|
+
ticket: z.ZodString;
|
|
1920
|
+
amount: z.ZodNumber;
|
|
1921
|
+
}, "strip", z.ZodTypeAny, {
|
|
1922
|
+
amount: number;
|
|
1923
|
+
ticket: string;
|
|
1924
|
+
}, {
|
|
1925
|
+
amount: number;
|
|
1926
|
+
ticket: string;
|
|
1927
|
+
}>, "many">;
|
|
1928
|
+
agaId: z.ZodString;
|
|
1929
|
+
tournamentId: z.ZodString;
|
|
1930
|
+
donation: z.ZodOptional<z.ZodNumber>;
|
|
1931
|
+
createMethod: z.ZodOptional<z.ZodString>;
|
|
1932
|
+
edited: z.ZodOptional<z.ZodString>;
|
|
1454
1933
|
_id: z.ZodString;
|
|
1455
1934
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1456
1935
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1457
|
-
},
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1936
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1937
|
+
paymentAmount: number;
|
|
1938
|
+
firstName: string;
|
|
1939
|
+
lastName: string;
|
|
1940
|
+
rank: string;
|
|
1941
|
+
email: string;
|
|
1942
|
+
_id: string;
|
|
1943
|
+
tickets: {
|
|
1944
|
+
amount: number;
|
|
1945
|
+
ticket: string;
|
|
1946
|
+
}[];
|
|
1947
|
+
agaId: string;
|
|
1948
|
+
tournamentId: string;
|
|
1949
|
+
paymentReceived?: boolean | undefined;
|
|
1950
|
+
expireAt?: Date | undefined;
|
|
1951
|
+
phone?: string | undefined;
|
|
1952
|
+
address?: string | undefined;
|
|
1953
|
+
notes?: string | undefined;
|
|
1954
|
+
donation?: number | undefined;
|
|
1955
|
+
createMethod?: string | undefined;
|
|
1956
|
+
edited?: string | undefined;
|
|
1462
1957
|
createdAt?: Date | undefined;
|
|
1463
1958
|
updatedAt?: Date | undefined;
|
|
1464
1959
|
}, {
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1960
|
+
paymentAmount: number;
|
|
1961
|
+
firstName: string;
|
|
1962
|
+
lastName: string;
|
|
1963
|
+
rank: string;
|
|
1964
|
+
email: string;
|
|
1965
|
+
_id: string;
|
|
1966
|
+
tickets: {
|
|
1967
|
+
amount: number;
|
|
1968
|
+
ticket: string;
|
|
1969
|
+
}[];
|
|
1970
|
+
agaId: string;
|
|
1971
|
+
tournamentId: string;
|
|
1972
|
+
paymentReceived?: boolean | undefined;
|
|
1973
|
+
expireAt?: Date | undefined;
|
|
1974
|
+
phone?: string | undefined;
|
|
1975
|
+
address?: string | undefined;
|
|
1976
|
+
notes?: string | undefined;
|
|
1977
|
+
donation?: number | undefined;
|
|
1978
|
+
createMethod?: string | undefined;
|
|
1979
|
+
edited?: string | undefined;
|
|
1469
1980
|
createdAt?: Date | undefined;
|
|
1470
1981
|
updatedAt?: Date | undefined;
|
|
1471
1982
|
}>;
|
|
@@ -1507,39 +2018,45 @@ declare const zTTicket: z.ZodObject<{
|
|
|
1507
2018
|
/**
|
|
1508
2019
|
* @optional If date is provided and in the past, ticket cannot be purchased
|
|
1509
2020
|
*/
|
|
1510
|
-
|
|
2021
|
+
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1511
2022
|
}, "strip", z.ZodTypeAny, {
|
|
1512
2023
|
price: number;
|
|
1513
2024
|
name: string;
|
|
1514
2025
|
description?: string | undefined;
|
|
1515
2026
|
isNotBuyable?: boolean | undefined;
|
|
1516
|
-
|
|
2027
|
+
lastBuyableDate?: Date | undefined;
|
|
1517
2028
|
}, {
|
|
1518
2029
|
price: number;
|
|
1519
2030
|
name: string;
|
|
1520
2031
|
description?: string | undefined;
|
|
1521
2032
|
isNotBuyable?: boolean | undefined;
|
|
1522
|
-
|
|
2033
|
+
lastBuyableDate?: Date | undefined;
|
|
1523
2034
|
}>;
|
|
1524
2035
|
declare const zMTTicket: z.ZodObject<{
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
2036
|
+
price: z.ZodNumber;
|
|
2037
|
+
name: z.ZodString;
|
|
2038
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2039
|
+
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2040
|
+
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1528
2041
|
_id: z.ZodString;
|
|
1529
2042
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1530
2043
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1531
|
-
},
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
2044
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2045
|
+
_id: string;
|
|
2046
|
+
price: number;
|
|
2047
|
+
name: string;
|
|
2048
|
+
description?: string | undefined;
|
|
2049
|
+
isNotBuyable?: boolean | undefined;
|
|
2050
|
+
lastBuyableDate?: Date | undefined;
|
|
1536
2051
|
createdAt?: Date | undefined;
|
|
1537
2052
|
updatedAt?: Date | undefined;
|
|
1538
2053
|
}, {
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
2054
|
+
_id: string;
|
|
2055
|
+
price: number;
|
|
2056
|
+
name: string;
|
|
2057
|
+
description?: string | undefined;
|
|
2058
|
+
isNotBuyable?: boolean | undefined;
|
|
2059
|
+
lastBuyableDate?: Date | undefined;
|
|
1543
2060
|
createdAt?: Date | undefined;
|
|
1544
2061
|
updatedAt?: Date | undefined;
|
|
1545
2062
|
}>;
|
|
@@ -1642,24 +2159,62 @@ declare const zUser: z.ZodObject<{
|
|
|
1642
2159
|
birthDate?: string | undefined;
|
|
1643
2160
|
}>;
|
|
1644
2161
|
declare const zMUser: z.ZodObject<{
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
2162
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2163
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2164
|
+
name: z.ZodString;
|
|
2165
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2166
|
+
password: z.ZodOptional<z.ZodString>;
|
|
2167
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
2168
|
+
user: z.ZodNumber;
|
|
2169
|
+
admin: z.ZodNumber;
|
|
2170
|
+
superadmin: z.ZodNumber;
|
|
2171
|
+
}, "strip", z.ZodTypeAny, {
|
|
2172
|
+
user: number;
|
|
2173
|
+
admin: number;
|
|
2174
|
+
superadmin: number;
|
|
2175
|
+
}, {
|
|
2176
|
+
user: number;
|
|
2177
|
+
admin: number;
|
|
2178
|
+
superadmin: number;
|
|
2179
|
+
}>>;
|
|
2180
|
+
country: z.ZodOptional<z.ZodString>;
|
|
2181
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2182
|
+
birthDate: z.ZodOptional<z.ZodString>;
|
|
1648
2183
|
_id: z.ZodString;
|
|
1649
2184
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1650
2185
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1651
|
-
},
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
2186
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2187
|
+
_id: string;
|
|
2188
|
+
name: string;
|
|
2189
|
+
email?: string | undefined;
|
|
2190
|
+
address?: string | undefined;
|
|
2191
|
+
username?: string | undefined;
|
|
2192
|
+
password?: string | undefined;
|
|
2193
|
+
roles?: {
|
|
2194
|
+
user: number;
|
|
2195
|
+
admin: number;
|
|
2196
|
+
superadmin: number;
|
|
2197
|
+
} | undefined;
|
|
2198
|
+
country?: string | undefined;
|
|
2199
|
+
phoneNumber?: string | undefined;
|
|
2200
|
+
birthDate?: string | undefined;
|
|
1656
2201
|
createdAt?: Date | undefined;
|
|
1657
2202
|
updatedAt?: Date | undefined;
|
|
1658
2203
|
}, {
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
2204
|
+
_id: string;
|
|
2205
|
+
name: string;
|
|
2206
|
+
email?: string | undefined;
|
|
2207
|
+
address?: string | undefined;
|
|
2208
|
+
username?: string | undefined;
|
|
2209
|
+
password?: string | undefined;
|
|
2210
|
+
roles?: {
|
|
2211
|
+
user: number;
|
|
2212
|
+
admin: number;
|
|
2213
|
+
superadmin: number;
|
|
2214
|
+
} | undefined;
|
|
2215
|
+
country?: string | undefined;
|
|
2216
|
+
phoneNumber?: string | undefined;
|
|
2217
|
+
birthDate?: string | undefined;
|
|
1663
2218
|
createdAt?: Date | undefined;
|
|
1664
2219
|
updatedAt?: Date | undefined;
|
|
1665
2220
|
}>;
|
|
@@ -1721,24 +2276,68 @@ declare const zStudent: z.ZodObject<{
|
|
|
1721
2276
|
guardian?: string | undefined;
|
|
1722
2277
|
}>;
|
|
1723
2278
|
declare const zMStudent: z.ZodObject<{
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
2279
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2280
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2281
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2282
|
+
name: z.ZodString;
|
|
2283
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2284
|
+
password: z.ZodOptional<z.ZodString>;
|
|
2285
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
2286
|
+
user: z.ZodNumber;
|
|
2287
|
+
admin: z.ZodNumber;
|
|
2288
|
+
superadmin: z.ZodNumber;
|
|
2289
|
+
}, "strip", z.ZodTypeAny, {
|
|
2290
|
+
user: number;
|
|
2291
|
+
admin: number;
|
|
2292
|
+
superadmin: number;
|
|
2293
|
+
}, {
|
|
2294
|
+
user: number;
|
|
2295
|
+
admin: number;
|
|
2296
|
+
superadmin: number;
|
|
2297
|
+
}>>;
|
|
2298
|
+
country: z.ZodOptional<z.ZodString>;
|
|
2299
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2300
|
+
birthDate: z.ZodOptional<z.ZodString>;
|
|
2301
|
+
guardian: z.ZodOptional<z.ZodString>;
|
|
1727
2302
|
_id: z.ZodString;
|
|
1728
2303
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1729
2304
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1730
|
-
},
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
2305
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2306
|
+
rank: GoRank;
|
|
2307
|
+
_id: string;
|
|
2308
|
+
name: string;
|
|
2309
|
+
email?: string | undefined;
|
|
2310
|
+
address?: string | undefined;
|
|
2311
|
+
username?: string | undefined;
|
|
2312
|
+
password?: string | undefined;
|
|
2313
|
+
roles?: {
|
|
2314
|
+
user: number;
|
|
2315
|
+
admin: number;
|
|
2316
|
+
superadmin: number;
|
|
2317
|
+
} | undefined;
|
|
2318
|
+
country?: string | undefined;
|
|
2319
|
+
phoneNumber?: string | undefined;
|
|
2320
|
+
birthDate?: string | undefined;
|
|
2321
|
+
guardian?: string | undefined;
|
|
1735
2322
|
createdAt?: Date | undefined;
|
|
1736
2323
|
updatedAt?: Date | undefined;
|
|
1737
2324
|
}, {
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
2325
|
+
rank: GoRank;
|
|
2326
|
+
_id: string;
|
|
2327
|
+
name: string;
|
|
2328
|
+
email?: string | undefined;
|
|
2329
|
+
address?: string | undefined;
|
|
2330
|
+
username?: string | undefined;
|
|
2331
|
+
password?: string | undefined;
|
|
2332
|
+
roles?: {
|
|
2333
|
+
user: number;
|
|
2334
|
+
admin: number;
|
|
2335
|
+
superadmin: number;
|
|
2336
|
+
} | undefined;
|
|
2337
|
+
country?: string | undefined;
|
|
2338
|
+
phoneNumber?: string | undefined;
|
|
2339
|
+
birthDate?: string | undefined;
|
|
2340
|
+
guardian?: string | undefined;
|
|
1742
2341
|
createdAt?: Date | undefined;
|
|
1743
2342
|
updatedAt?: Date | undefined;
|
|
1744
2343
|
}>;
|
|
@@ -1809,24 +2408,77 @@ declare const zTeacher: z.ZodObject<{
|
|
|
1809
2408
|
available?: number[][][] | undefined;
|
|
1810
2409
|
}>;
|
|
1811
2410
|
declare const zMTeacher: z.ZodObject<{
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
2411
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2412
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2413
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2414
|
+
name: z.ZodString;
|
|
2415
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2416
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
2417
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2418
|
+
password: z.ZodOptional<z.ZodString>;
|
|
2419
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
2420
|
+
user: z.ZodNumber;
|
|
2421
|
+
admin: z.ZodNumber;
|
|
2422
|
+
superadmin: z.ZodNumber;
|
|
2423
|
+
}, "strip", z.ZodTypeAny, {
|
|
2424
|
+
user: number;
|
|
2425
|
+
admin: number;
|
|
2426
|
+
superadmin: number;
|
|
2427
|
+
}, {
|
|
2428
|
+
user: number;
|
|
2429
|
+
admin: number;
|
|
2430
|
+
superadmin: number;
|
|
2431
|
+
}>>;
|
|
2432
|
+
country: z.ZodOptional<z.ZodString>;
|
|
2433
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2434
|
+
birthDate: z.ZodOptional<z.ZodString>;
|
|
2435
|
+
isInactive: z.ZodOptional<z.ZodBoolean>;
|
|
2436
|
+
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
1815
2437
|
_id: z.ZodString;
|
|
1816
2438
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1817
2439
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1818
|
-
},
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
2440
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2441
|
+
rank: GoRank;
|
|
2442
|
+
_id: string;
|
|
2443
|
+
name: string;
|
|
2444
|
+
email?: string | undefined;
|
|
2445
|
+
address?: string | undefined;
|
|
2446
|
+
title?: string | undefined;
|
|
2447
|
+
bio?: string | undefined;
|
|
2448
|
+
username?: string | undefined;
|
|
2449
|
+
password?: string | undefined;
|
|
2450
|
+
roles?: {
|
|
2451
|
+
user: number;
|
|
2452
|
+
admin: number;
|
|
2453
|
+
superadmin: number;
|
|
2454
|
+
} | undefined;
|
|
2455
|
+
country?: string | undefined;
|
|
2456
|
+
phoneNumber?: string | undefined;
|
|
2457
|
+
birthDate?: string | undefined;
|
|
2458
|
+
isInactive?: boolean | undefined;
|
|
2459
|
+
available?: number[][][] | undefined;
|
|
1823
2460
|
createdAt?: Date | undefined;
|
|
1824
2461
|
updatedAt?: Date | undefined;
|
|
1825
2462
|
}, {
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
2463
|
+
rank: GoRank;
|
|
2464
|
+
_id: string;
|
|
2465
|
+
name: string;
|
|
2466
|
+
email?: string | undefined;
|
|
2467
|
+
address?: string | undefined;
|
|
2468
|
+
title?: string | undefined;
|
|
2469
|
+
bio?: string | undefined;
|
|
2470
|
+
username?: string | undefined;
|
|
2471
|
+
password?: string | undefined;
|
|
2472
|
+
roles?: {
|
|
2473
|
+
user: number;
|
|
2474
|
+
admin: number;
|
|
2475
|
+
superadmin: number;
|
|
2476
|
+
} | undefined;
|
|
2477
|
+
country?: string | undefined;
|
|
2478
|
+
phoneNumber?: string | undefined;
|
|
2479
|
+
birthDate?: string | undefined;
|
|
2480
|
+
isInactive?: boolean | undefined;
|
|
2481
|
+
available?: number[][][] | undefined;
|
|
1830
2482
|
createdAt?: Date | undefined;
|
|
1831
2483
|
updatedAt?: Date | undefined;
|
|
1832
2484
|
}>;
|
|
@@ -1852,4 +2504,4 @@ declare const zUserRoles: z.ZodObject<{
|
|
|
1852
2504
|
}>;
|
|
1853
2505
|
type UserRoles = z.infer<typeof zUserRoles>;
|
|
1854
2506
|
|
|
1855
|
-
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, 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 MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type MGroupBooking, type MGroupTracker, type MInvoice, type MNYIGMission, type MPrivateBooking, type MReportTicket, type MSemester, type MStudent, type MTConfig, type MTReg, type MTTicket, type MTeacher, type MTeacherPayment, type MUser, type NYIGMission, NYIGSchool, PaymentMethod, type PrivateBooking, 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, TicketStatus, 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 };
|
|
2507
|
+
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, type BUserInfo, BookingType, 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 MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type MGroupBooking, type MGroupTracker, type MInvoice, type MNYIGMission, type MPrivateBooking, type MReportTicket, type MSemester, type MStudent, type MTConfig, type MTReg, type MTTicket, type MTeacher, type MTeacherPayment, type MUser, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, 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, TicketStatus, 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 };
|