@nyig/models 0.2.9 → 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 +1049 -395
- package/index.d.ts +1049 -395
- 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 BPrivate = z.infer<typeof zPrivateBooking>;
|
|
99
|
-
type MBPrivate = 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
|
}>;
|
|
@@ -335,7 +255,9 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
335
255
|
tuition: z.ZodOptional<z.ZodObject<{
|
|
336
256
|
primary: z.ZodNumber;
|
|
337
257
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
-
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
258
|
+
shipping: z.ZodOptional<z.ZodBoolean>; /**
|
|
259
|
+
* Mongoose object ID
|
|
260
|
+
*/
|
|
339
261
|
}, "strip", z.ZodTypeAny, {
|
|
340
262
|
primary: number;
|
|
341
263
|
textbook?: boolean | undefined;
|
|
@@ -377,24 +299,64 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
377
299
|
notes?: string | undefined;
|
|
378
300
|
}>;
|
|
379
301
|
declare const zMClassTracker: z.ZodObject<{
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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>;
|
|
383
325
|
_id: z.ZodString;
|
|
384
326
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
385
327
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
386
|
-
},
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
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;
|
|
391
343
|
createdAt?: Date | undefined;
|
|
392
344
|
updatedAt?: Date | undefined;
|
|
393
345
|
}, {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
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;
|
|
398
360
|
createdAt?: Date | undefined;
|
|
399
361
|
updatedAt?: Date | undefined;
|
|
400
362
|
}>;
|
|
@@ -469,27 +431,45 @@ declare const zCourse: z.ZodObject<{
|
|
|
469
431
|
description?: string | undefined;
|
|
470
432
|
}>;
|
|
471
433
|
declare const zMCourse: z.ZodObject<{
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
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;
|
|
475
443
|
_id: z.ZodString;
|
|
476
444
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
477
445
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
478
|
-
},
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
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
|
+
}>;
|
|
493
473
|
type Course = z.infer<typeof zCourse>;
|
|
494
474
|
type MCourse = z.infer<typeof zMCourse>;
|
|
495
475
|
|
|
@@ -567,24 +547,60 @@ declare const zGroupTracker: z.ZodObject<{
|
|
|
567
547
|
notes?: string | undefined;
|
|
568
548
|
}>;
|
|
569
549
|
declare const zMGroupTracker: z.ZodObject<{
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
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>;
|
|
573
569
|
_id: z.ZodString;
|
|
574
570
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
575
571
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
576
|
-
},
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
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;
|
|
581
587
|
createdAt?: Date | undefined;
|
|
582
588
|
updatedAt?: Date | undefined;
|
|
583
589
|
}, {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
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;
|
|
588
604
|
createdAt?: Date | undefined;
|
|
589
605
|
updatedAt?: Date | undefined;
|
|
590
606
|
}>;
|
|
@@ -611,100 +627,333 @@ declare const zCampBooking: z.ZodObject<{
|
|
|
611
627
|
phone: z.ZodOptional<z.ZodString>;
|
|
612
628
|
address: z.ZodOptional<z.ZodString>;
|
|
613
629
|
notes: z.ZodOptional<z.ZodString>;
|
|
614
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
615
|
-
isOnline: z.ZodBoolean;
|
|
616
630
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
617
631
|
campOption: z.ZodNativeEnum<typeof CampOption>;
|
|
632
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
618
633
|
ctId: z.ZodOptional<z.ZodString>;
|
|
634
|
+
isOnline: z.ZodBoolean;
|
|
619
635
|
classDates: z.ZodString;
|
|
620
636
|
paymentAmount: z.ZodNumber;
|
|
621
637
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
622
638
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
623
639
|
}, "strip", z.ZodTypeAny, {
|
|
640
|
+
paymentAmount: number;
|
|
624
641
|
firstName: string;
|
|
625
642
|
lastName: string;
|
|
626
643
|
rank: string;
|
|
627
644
|
email: string;
|
|
628
|
-
paymentAmount: number;
|
|
629
|
-
isOnline: boolean;
|
|
630
645
|
campOption: CampOption;
|
|
646
|
+
isOnline: boolean;
|
|
631
647
|
classDates: string;
|
|
632
648
|
phone?: string | undefined;
|
|
633
649
|
address?: string | undefined;
|
|
634
650
|
notes?: string | undefined;
|
|
635
|
-
userId?: string | undefined;
|
|
636
651
|
shipping?: boolean | undefined;
|
|
652
|
+
userId?: string | undefined;
|
|
637
653
|
ctId?: string | undefined;
|
|
638
654
|
paymentReceived?: boolean | undefined;
|
|
639
655
|
expireAt?: Date | undefined;
|
|
640
656
|
}, {
|
|
657
|
+
paymentAmount: number;
|
|
641
658
|
firstName: string;
|
|
642
659
|
lastName: string;
|
|
643
660
|
rank: string;
|
|
644
661
|
email: string;
|
|
645
|
-
paymentAmount: number;
|
|
646
|
-
isOnline: boolean;
|
|
647
662
|
campOption: CampOption;
|
|
663
|
+
isOnline: boolean;
|
|
648
664
|
classDates: string;
|
|
649
665
|
phone?: string | undefined;
|
|
650
666
|
address?: string | undefined;
|
|
651
667
|
notes?: string | undefined;
|
|
652
|
-
userId?: string | undefined;
|
|
653
668
|
shipping?: boolean | undefined;
|
|
669
|
+
userId?: string | undefined;
|
|
654
670
|
ctId?: string | undefined;
|
|
655
671
|
paymentReceived?: boolean | undefined;
|
|
656
672
|
expireAt?: Date | undefined;
|
|
657
673
|
}>;
|
|
658
674
|
declare const zMCampBooking: z.ZodObject<{
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
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;
|
|
662
691
|
_id: z.ZodString;
|
|
663
692
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
664
693
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
665
|
-
},
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
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;
|
|
670
712
|
createdAt?: Date | undefined;
|
|
671
713
|
updatedAt?: Date | undefined;
|
|
672
714
|
}, {
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
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;
|
|
677
732
|
createdAt?: Date | undefined;
|
|
678
733
|
updatedAt?: Date | undefined;
|
|
679
734
|
}>;
|
|
680
735
|
type CampBooking = z.infer<typeof zCampBooking>;
|
|
681
736
|
type MCampBooking = z.infer<typeof zMCampBooking>;
|
|
682
737
|
|
|
683
|
-
declare const
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
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>;
|
|
687
752
|
paymentAmount: z.ZodNumber;
|
|
688
|
-
/**
|
|
689
|
-
* True if the payment has been received. Populated by webhook.
|
|
690
|
-
*/
|
|
691
753
|
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
754
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
698
755
|
}, "strip", z.ZodTypeAny, {
|
|
699
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;
|
|
700
770
|
paymentReceived?: boolean | undefined;
|
|
701
771
|
expireAt?: Date | undefined;
|
|
702
772
|
}, {
|
|
703
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;
|
|
704
787
|
paymentReceived?: boolean | undefined;
|
|
705
788
|
expireAt?: Date | undefined;
|
|
706
789
|
}>;
|
|
707
|
-
|
|
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>;
|
|
708
957
|
|
|
709
958
|
declare enum PaymentMethod {
|
|
710
959
|
CASH = "Cash",
|
|
@@ -761,21 +1010,126 @@ declare const zInvoicePackage: z.ZodObject<{
|
|
|
761
1010
|
units: number;
|
|
762
1011
|
}>, "many">;
|
|
763
1012
|
}, "strip", z.ZodTypeAny, {
|
|
764
|
-
student: string;
|
|
765
|
-
items: {
|
|
766
|
-
course: string;
|
|
767
|
-
price: number;
|
|
768
|
-
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;
|
|
769
1100
|
}[];
|
|
1101
|
+
createdBy: string;
|
|
1102
|
+
textbook?: number | undefined;
|
|
1103
|
+
shipping?: number | undefined;
|
|
1104
|
+
paid?: PaymentMethod | undefined;
|
|
1105
|
+
notes?: string | undefined;
|
|
1106
|
+
lastEditBy?: string | undefined;
|
|
770
1107
|
}, {
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
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;
|
|
776
1120
|
}[];
|
|
1121
|
+
createdBy: string;
|
|
1122
|
+
textbook?: number | undefined;
|
|
1123
|
+
shipping?: number | undefined;
|
|
1124
|
+
paid?: PaymentMethod | undefined;
|
|
1125
|
+
notes?: string | undefined;
|
|
1126
|
+
lastEditBy?: string | undefined;
|
|
777
1127
|
}>;
|
|
778
|
-
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>>;
|
|
779
1133
|
billTo: z.ZodString;
|
|
780
1134
|
packages: z.ZodArray<z.ZodObject<{
|
|
781
1135
|
/**
|
|
@@ -823,19 +1177,13 @@ declare const zInvoice: z.ZodObject<{
|
|
|
823
1177
|
desc: string;
|
|
824
1178
|
amount: number;
|
|
825
1179
|
}>, "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
1180
|
createdBy: z.ZodString;
|
|
834
|
-
/**
|
|
835
|
-
* Mongoose object ID
|
|
836
|
-
*/
|
|
837
1181
|
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
838
|
-
|
|
1182
|
+
_id: z.ZodString;
|
|
1183
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1184
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1185
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1186
|
+
_id: string;
|
|
839
1187
|
billTo: string;
|
|
840
1188
|
packages: {
|
|
841
1189
|
student: string;
|
|
@@ -850,12 +1198,15 @@ declare const zInvoice: z.ZodObject<{
|
|
|
850
1198
|
amount: number;
|
|
851
1199
|
}[];
|
|
852
1200
|
createdBy: string;
|
|
1201
|
+
notes?: string | undefined;
|
|
853
1202
|
textbook?: number | undefined;
|
|
854
1203
|
shipping?: number | undefined;
|
|
855
1204
|
paid?: PaymentMethod | undefined;
|
|
856
|
-
notes?: string | undefined;
|
|
857
1205
|
lastEditBy?: string | undefined;
|
|
1206
|
+
createdAt?: Date | undefined;
|
|
1207
|
+
updatedAt?: Date | undefined;
|
|
858
1208
|
}, {
|
|
1209
|
+
_id: string;
|
|
859
1210
|
billTo: string;
|
|
860
1211
|
packages: {
|
|
861
1212
|
student: string;
|
|
@@ -870,31 +1221,11 @@ declare const zInvoice: z.ZodObject<{
|
|
|
870
1221
|
amount: number;
|
|
871
1222
|
}[];
|
|
872
1223
|
createdBy: string;
|
|
1224
|
+
notes?: string | undefined;
|
|
873
1225
|
textbook?: number | undefined;
|
|
874
1226
|
shipping?: number | undefined;
|
|
875
1227
|
paid?: PaymentMethod | undefined;
|
|
876
|
-
notes?: string | undefined;
|
|
877
1228
|
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
1229
|
createdAt?: Date | undefined;
|
|
899
1230
|
updatedAt?: Date | undefined;
|
|
900
1231
|
}>;
|
|
@@ -904,6 +1235,11 @@ type InvoicePackage = z.infer<typeof zInvoicePackage>;
|
|
|
904
1235
|
type Invoice = z.infer<typeof zInvoice>;
|
|
905
1236
|
type MInvoice = z.infer<typeof zMInvoice>;
|
|
906
1237
|
|
|
1238
|
+
interface PaymentIntent {
|
|
1239
|
+
id: string;
|
|
1240
|
+
type: BookingType;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
907
1243
|
declare const zTeacherPaymentRow: z.ZodObject<{
|
|
908
1244
|
course: z.ZodString;
|
|
909
1245
|
length: z.ZodNumber;
|
|
@@ -959,24 +1295,49 @@ declare const zTeacherPayment: z.ZodObject<{
|
|
|
959
1295
|
paid?: boolean | undefined;
|
|
960
1296
|
}>;
|
|
961
1297
|
declare const zMTeacherPayment: z.ZodObject<{
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
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">;
|
|
965
1316
|
_id: z.ZodString;
|
|
966
1317
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
967
1318
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
968
|
-
},
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
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;
|
|
973
1329
|
createdAt?: Date | undefined;
|
|
974
1330
|
updatedAt?: Date | undefined;
|
|
975
1331
|
}, {
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
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;
|
|
980
1341
|
createdAt?: Date | undefined;
|
|
981
1342
|
updatedAt?: Date | undefined;
|
|
982
1343
|
}>;
|
|
@@ -1106,24 +1467,30 @@ declare const zReportTicket: z.ZodObject<{
|
|
|
1106
1467
|
resolver: string;
|
|
1107
1468
|
}>;
|
|
1108
1469
|
declare const zMReportTicket: z.ZodObject<{
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1470
|
+
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
1471
|
+
description: z.ZodString;
|
|
1472
|
+
title: z.ZodString;
|
|
1473
|
+
requester: z.ZodString;
|
|
1474
|
+
resolver: z.ZodString;
|
|
1112
1475
|
_id: z.ZodString;
|
|
1113
1476
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1114
1477
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1115
|
-
},
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1478
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1479
|
+
status: TicketStatus;
|
|
1480
|
+
_id: string;
|
|
1481
|
+
description: string;
|
|
1482
|
+
title: string;
|
|
1483
|
+
requester: string;
|
|
1484
|
+
resolver: string;
|
|
1120
1485
|
createdAt?: Date | undefined;
|
|
1121
1486
|
updatedAt?: Date | undefined;
|
|
1122
1487
|
}, {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1488
|
+
status: TicketStatus;
|
|
1489
|
+
_id: string;
|
|
1490
|
+
description: string;
|
|
1491
|
+
title: string;
|
|
1492
|
+
requester: string;
|
|
1493
|
+
resolver: string;
|
|
1127
1494
|
createdAt?: Date | undefined;
|
|
1128
1495
|
updatedAt?: Date | undefined;
|
|
1129
1496
|
}>;
|
|
@@ -1165,24 +1532,33 @@ declare const zSemester: z.ZodObject<{
|
|
|
1165
1532
|
importantDates: string[];
|
|
1166
1533
|
}>;
|
|
1167
1534
|
declare const zMSemester: z.ZodObject<{
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
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">;
|
|
1171
1541
|
_id: z.ZodString;
|
|
1172
1542
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1173
1543
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1174
|
-
},
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
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[];
|
|
1179
1552
|
createdAt?: Date | undefined;
|
|
1180
1553
|
updatedAt?: Date | undefined;
|
|
1181
1554
|
}, {
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1555
|
+
_id: string;
|
|
1556
|
+
season: Season;
|
|
1557
|
+
year: number;
|
|
1558
|
+
startDate: Date;
|
|
1559
|
+
endDate: Date;
|
|
1560
|
+
blackoutDates: Date[];
|
|
1561
|
+
importantDates: string[];
|
|
1186
1562
|
createdAt?: Date | undefined;
|
|
1187
1563
|
updatedAt?: Date | undefined;
|
|
1188
1564
|
}>;
|
|
@@ -1331,24 +1707,107 @@ declare const zTConfig: z.ZodObject<{
|
|
|
1331
1707
|
} | undefined;
|
|
1332
1708
|
}>;
|
|
1333
1709
|
declare const zMTConfig: z.ZodObject<{
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
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
|
+
}>>;
|
|
1337
1754
|
_id: z.ZodString;
|
|
1338
1755
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1339
1756
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1340
|
-
},
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
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;
|
|
1345
1783
|
createdAt?: Date | undefined;
|
|
1346
1784
|
updatedAt?: Date | undefined;
|
|
1347
1785
|
}, {
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
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;
|
|
1352
1811
|
createdAt?: Date | undefined;
|
|
1353
1812
|
updatedAt?: Date | undefined;
|
|
1354
1813
|
}>;
|
|
@@ -1405,11 +1864,11 @@ declare const zTReg: z.ZodObject<{
|
|
|
1405
1864
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
1406
1865
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
1407
1866
|
}, "strip", z.ZodTypeAny, {
|
|
1867
|
+
paymentAmount: number;
|
|
1408
1868
|
firstName: string;
|
|
1409
1869
|
lastName: string;
|
|
1410
1870
|
rank: string;
|
|
1411
1871
|
email: string;
|
|
1412
|
-
paymentAmount: number;
|
|
1413
1872
|
tickets: {
|
|
1414
1873
|
amount: number;
|
|
1415
1874
|
ticket: string;
|
|
@@ -1425,11 +1884,11 @@ declare const zTReg: z.ZodObject<{
|
|
|
1425
1884
|
paymentReceived?: boolean | undefined;
|
|
1426
1885
|
expireAt?: Date | undefined;
|
|
1427
1886
|
}, {
|
|
1887
|
+
paymentAmount: number;
|
|
1428
1888
|
firstName: string;
|
|
1429
1889
|
lastName: string;
|
|
1430
1890
|
rank: string;
|
|
1431
1891
|
email: string;
|
|
1432
|
-
paymentAmount: number;
|
|
1433
1892
|
tickets: {
|
|
1434
1893
|
amount: number;
|
|
1435
1894
|
ticket: string;
|
|
@@ -1446,24 +1905,78 @@ declare const zTReg: z.ZodObject<{
|
|
|
1446
1905
|
expireAt?: Date | undefined;
|
|
1447
1906
|
}>;
|
|
1448
1907
|
declare const zMTReg: z.ZodObject<{
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
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>;
|
|
1452
1933
|
_id: z.ZodString;
|
|
1453
1934
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1454
1935
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1455
|
-
},
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
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;
|
|
1460
1957
|
createdAt?: Date | undefined;
|
|
1461
1958
|
updatedAt?: Date | undefined;
|
|
1462
1959
|
}, {
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
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;
|
|
1467
1980
|
createdAt?: Date | undefined;
|
|
1468
1981
|
updatedAt?: Date | undefined;
|
|
1469
1982
|
}>;
|
|
@@ -1505,39 +2018,45 @@ declare const zTTicket: z.ZodObject<{
|
|
|
1505
2018
|
/**
|
|
1506
2019
|
* @optional If date is provided and in the past, ticket cannot be purchased
|
|
1507
2020
|
*/
|
|
1508
|
-
|
|
2021
|
+
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1509
2022
|
}, "strip", z.ZodTypeAny, {
|
|
1510
2023
|
price: number;
|
|
1511
2024
|
name: string;
|
|
1512
2025
|
description?: string | undefined;
|
|
1513
2026
|
isNotBuyable?: boolean | undefined;
|
|
1514
|
-
|
|
2027
|
+
lastBuyableDate?: Date | undefined;
|
|
1515
2028
|
}, {
|
|
1516
2029
|
price: number;
|
|
1517
2030
|
name: string;
|
|
1518
2031
|
description?: string | undefined;
|
|
1519
2032
|
isNotBuyable?: boolean | undefined;
|
|
1520
|
-
|
|
2033
|
+
lastBuyableDate?: Date | undefined;
|
|
1521
2034
|
}>;
|
|
1522
2035
|
declare const zMTTicket: z.ZodObject<{
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
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>;
|
|
1526
2041
|
_id: z.ZodString;
|
|
1527
2042
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1528
2043
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1529
|
-
},
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
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;
|
|
1534
2051
|
createdAt?: Date | undefined;
|
|
1535
2052
|
updatedAt?: Date | undefined;
|
|
1536
2053
|
}, {
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
2054
|
+
_id: string;
|
|
2055
|
+
price: number;
|
|
2056
|
+
name: string;
|
|
2057
|
+
description?: string | undefined;
|
|
2058
|
+
isNotBuyable?: boolean | undefined;
|
|
2059
|
+
lastBuyableDate?: Date | undefined;
|
|
1541
2060
|
createdAt?: Date | undefined;
|
|
1542
2061
|
updatedAt?: Date | undefined;
|
|
1543
2062
|
}>;
|
|
@@ -1640,24 +2159,62 @@ declare const zUser: z.ZodObject<{
|
|
|
1640
2159
|
birthDate?: string | undefined;
|
|
1641
2160
|
}>;
|
|
1642
2161
|
declare const zMUser: z.ZodObject<{
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
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>;
|
|
1646
2183
|
_id: z.ZodString;
|
|
1647
2184
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1648
2185
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1649
|
-
},
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
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;
|
|
1654
2201
|
createdAt?: Date | undefined;
|
|
1655
2202
|
updatedAt?: Date | undefined;
|
|
1656
2203
|
}, {
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
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;
|
|
1661
2218
|
createdAt?: Date | undefined;
|
|
1662
2219
|
updatedAt?: Date | undefined;
|
|
1663
2220
|
}>;
|
|
@@ -1719,24 +2276,68 @@ declare const zStudent: z.ZodObject<{
|
|
|
1719
2276
|
guardian?: string | undefined;
|
|
1720
2277
|
}>;
|
|
1721
2278
|
declare const zMStudent: z.ZodObject<{
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
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>;
|
|
1725
2302
|
_id: z.ZodString;
|
|
1726
2303
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1727
2304
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1728
|
-
},
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
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;
|
|
1733
2322
|
createdAt?: Date | undefined;
|
|
1734
2323
|
updatedAt?: Date | undefined;
|
|
1735
2324
|
}, {
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
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;
|
|
1740
2341
|
createdAt?: Date | undefined;
|
|
1741
2342
|
updatedAt?: Date | undefined;
|
|
1742
2343
|
}>;
|
|
@@ -1807,24 +2408,77 @@ declare const zTeacher: z.ZodObject<{
|
|
|
1807
2408
|
available?: number[][][] | undefined;
|
|
1808
2409
|
}>;
|
|
1809
2410
|
declare const zMTeacher: z.ZodObject<{
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
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">>;
|
|
1813
2437
|
_id: z.ZodString;
|
|
1814
2438
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1815
2439
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1816
|
-
},
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
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;
|
|
1821
2460
|
createdAt?: Date | undefined;
|
|
1822
2461
|
updatedAt?: Date | undefined;
|
|
1823
2462
|
}, {
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
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;
|
|
1828
2482
|
createdAt?: Date | undefined;
|
|
1829
2483
|
updatedAt?: Date | undefined;
|
|
1830
2484
|
}>;
|
|
@@ -1850,4 +2504,4 @@ declare const zUserRoles: z.ZodObject<{
|
|
|
1850
2504
|
}>;
|
|
1851
2505
|
type UserRoles = z.infer<typeof zUserRoles>;
|
|
1852
2506
|
|
|
1853
|
-
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, type
|
|
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 };
|