@nyig/models 0.3.9 → 0.3.10
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 +1191 -260
- package/index.d.ts +1191 -260
- package/index.js +226 -199
- package/index.mjs +222 -199
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -40,7 +40,7 @@ var BookingType = /* @__PURE__ */ ((BookingType2) => {
|
|
|
40
40
|
})(BookingType || {});
|
|
41
41
|
|
|
42
42
|
// src/interface/booking/campBooking.ts
|
|
43
|
-
import { z as
|
|
43
|
+
import { z as z19 } from "zod";
|
|
44
44
|
|
|
45
45
|
// src/interface/tracking/attendState.ts
|
|
46
46
|
var AttendState = /* @__PURE__ */ ((AttendState2) => {
|
|
@@ -243,35 +243,134 @@ var zBAttendance = z10.object({
|
|
|
243
243
|
campOption: z10.nativeEnum(CampOption).optional()
|
|
244
244
|
});
|
|
245
245
|
var zAttendance = addAutoProps(zBAttendance);
|
|
246
|
+
var zAttendanceRequest = zAttendance.extend({
|
|
247
|
+
_id: z10.string().optional()
|
|
248
|
+
});
|
|
246
249
|
var zAttendanceResponse = zAttendance.extend({
|
|
247
250
|
student: zStudent
|
|
248
251
|
});
|
|
249
252
|
|
|
250
253
|
// src/interface/tracking/campTracker.ts
|
|
254
|
+
import { z as z13 } from "zod";
|
|
255
|
+
|
|
256
|
+
// src/interface/semester/season.ts
|
|
257
|
+
var Season = /* @__PURE__ */ ((Season2) => {
|
|
258
|
+
Season2["FALL"] = "fall";
|
|
259
|
+
Season2["SPRING"] = "spring";
|
|
260
|
+
Season2["SUMMER"] = "summer";
|
|
261
|
+
return Season2;
|
|
262
|
+
})(Season || {});
|
|
263
|
+
|
|
264
|
+
// src/interface/semester/semester.ts
|
|
251
265
|
import { z as z11 } from "zod";
|
|
252
|
-
var
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
266
|
+
var zBSemester = z11.object({
|
|
267
|
+
season: z11.nativeEnum(Season),
|
|
268
|
+
year: z11.number().min(2022).max(2999),
|
|
269
|
+
startDate: z11.coerce.date(),
|
|
270
|
+
endDate: z11.coerce.date(),
|
|
271
|
+
/**
|
|
272
|
+
* Format: start, end, start, end, ...
|
|
273
|
+
*/
|
|
274
|
+
blackoutDates: z11.array(z11.coerce.date()),
|
|
275
|
+
/**
|
|
276
|
+
* List of names of some break: date range
|
|
277
|
+
*/
|
|
278
|
+
importantDates: z11.array(z11.string())
|
|
279
|
+
});
|
|
280
|
+
var zSemester = addAutoProps(zBSemester);
|
|
281
|
+
|
|
282
|
+
// src/interface/course/ageGroup.ts
|
|
283
|
+
var AgeGroup = /* @__PURE__ */ ((AgeGroup2) => {
|
|
284
|
+
AgeGroup2["ADULT"] = "Adult";
|
|
285
|
+
AgeGroup2["YOUTH"] = "Youth";
|
|
286
|
+
return AgeGroup2;
|
|
287
|
+
})(AgeGroup || {});
|
|
288
|
+
|
|
289
|
+
// src/interface/course/category.ts
|
|
290
|
+
var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
|
|
291
|
+
CourseCategory2["GROUP"] = "group";
|
|
292
|
+
CourseCategory2["PRIVATE"] = "private";
|
|
293
|
+
CourseCategory2["SEMIPRIVATE"] = "semiprivate";
|
|
294
|
+
CourseCategory2["CAMP"] = "camp";
|
|
295
|
+
CourseCategory2["EVENT"] = "event";
|
|
296
|
+
return CourseCategory2;
|
|
297
|
+
})(CourseCategory || {});
|
|
298
|
+
|
|
299
|
+
// src/interface/course/school.ts
|
|
300
|
+
var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
|
|
301
|
+
NYIGSchool2["MANHATTAN"] = "Manhattan";
|
|
302
|
+
NYIGSchool2["LITTLENECK"] = "Little Neck";
|
|
303
|
+
NYIGSchool2["ONLINE"] = "Online";
|
|
304
|
+
return NYIGSchool2;
|
|
305
|
+
})(NYIGSchool || {});
|
|
306
|
+
|
|
307
|
+
// src/interface/course/course.ts
|
|
308
|
+
import { z as z12 } from "zod";
|
|
309
|
+
var zBCourse = z12.object({
|
|
310
|
+
name: z12.string(),
|
|
311
|
+
category: z12.nativeEnum(CourseCategory),
|
|
312
|
+
/**
|
|
313
|
+
* @unit SECONDS - Duration of the course in seconds
|
|
314
|
+
*/
|
|
315
|
+
duration: z12.coerce.number().int("Duration in seconds must be a whole number").min(1, "Duration in seconds must not be less than or equal to 0"),
|
|
316
|
+
/**
|
|
317
|
+
* @unit CENTS - Price of the course in cents
|
|
318
|
+
*/
|
|
319
|
+
price: z12.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
|
|
320
|
+
description: z12.string().or(z12.literal("")).optional(),
|
|
321
|
+
/**
|
|
322
|
+
* NYIG School locations
|
|
323
|
+
*/
|
|
324
|
+
nyigSchool: z12.nativeEnum(NYIGSchool),
|
|
325
|
+
/**
|
|
326
|
+
* Recommended level before taking this course
|
|
327
|
+
*/
|
|
328
|
+
recLevel: z12.string().or(z12.literal("")).optional(),
|
|
329
|
+
/**
|
|
330
|
+
* Camp tuition for half-day option
|
|
331
|
+
*/
|
|
332
|
+
halfCampTuition: z12.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
|
|
333
|
+
/**
|
|
334
|
+
* Camp tuition for full-day option
|
|
335
|
+
*/
|
|
336
|
+
fullCampTuition: z12.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
|
|
337
|
+
superadminOnly: z12.boolean().optional()
|
|
338
|
+
});
|
|
339
|
+
var zCourse = addAutoProps(zBCourse);
|
|
340
|
+
|
|
341
|
+
// src/interface/tracking/campTracker.ts
|
|
342
|
+
var zBCampTracker = z13.object({
|
|
343
|
+
course: z13.string(),
|
|
344
|
+
teacher: z13.string(),
|
|
345
|
+
semester: z13.string(),
|
|
256
346
|
/**
|
|
257
347
|
* occurrences are tracked by week for camps
|
|
258
348
|
*/
|
|
259
|
-
occurrences:
|
|
349
|
+
occurrences: z13.array(z13.string()).min(1, "Camp must have at least 1 date range"),
|
|
260
350
|
/**
|
|
261
351
|
* attendances are tracked by week for camps
|
|
262
352
|
*/
|
|
263
|
-
attendances:
|
|
264
|
-
publicDescription:
|
|
265
|
-
isNonPublic:
|
|
266
|
-
notes:
|
|
353
|
+
attendances: z13.array(z13.string()),
|
|
354
|
+
publicDescription: z13.string().optional(),
|
|
355
|
+
isNonPublic: z13.boolean().optional(),
|
|
356
|
+
notes: z13.string().optional()
|
|
267
357
|
});
|
|
268
358
|
var zCampTracker = addAutoProps(zBCampTracker);
|
|
359
|
+
var zCampTrackerRequest = zCampTracker.extend({
|
|
360
|
+
attendances: zAttendanceRequest
|
|
361
|
+
});
|
|
362
|
+
var zCampTrackerResponse = zCampTracker.extend({
|
|
363
|
+
course: zCourse,
|
|
364
|
+
teacher: zTeacher,
|
|
365
|
+
semester: zSemester,
|
|
366
|
+
attendances: zAttendance
|
|
367
|
+
});
|
|
269
368
|
|
|
270
369
|
// src/interface/tracking/classTracker.ts
|
|
271
|
-
import { z as
|
|
370
|
+
import { z as z16 } from "zod";
|
|
272
371
|
|
|
273
372
|
// src/interface/payment/invoice.ts
|
|
274
|
-
import { z as
|
|
373
|
+
import { z as z14 } from "zod";
|
|
275
374
|
|
|
276
375
|
// src/interface/payment/paymentMethod.ts
|
|
277
376
|
var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
|
|
@@ -283,53 +382,53 @@ var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
|
|
|
283
382
|
})(PaymentMethod || {});
|
|
284
383
|
|
|
285
384
|
// src/interface/payment/invoice.ts
|
|
286
|
-
var zDiscount =
|
|
287
|
-
desc:
|
|
288
|
-
amount:
|
|
385
|
+
var zDiscount = z14.object({
|
|
386
|
+
desc: z14.string().min(1, "Discount description cannot be empty"),
|
|
387
|
+
amount: z14.coerce.number()
|
|
289
388
|
});
|
|
290
|
-
var zInvoiceItem =
|
|
291
|
-
course:
|
|
292
|
-
price:
|
|
293
|
-
units:
|
|
389
|
+
var zInvoiceItem = z14.object({
|
|
390
|
+
course: z14.string().min(1, "Course description cannot be empty"),
|
|
391
|
+
price: z14.coerce.number(),
|
|
392
|
+
units: z14.coerce.number()
|
|
294
393
|
});
|
|
295
|
-
var zInvoicePackage =
|
|
296
|
-
student:
|
|
297
|
-
items:
|
|
394
|
+
var zInvoicePackage = z14.object({
|
|
395
|
+
student: z14.string(),
|
|
396
|
+
items: z14.array(zInvoiceItem).min(1, "Package must contain at least one item")
|
|
298
397
|
});
|
|
299
398
|
var zInvoicePackageResponse = zInvoicePackage.extend({
|
|
300
399
|
student: zStudent
|
|
301
400
|
});
|
|
302
|
-
var zBInvoice =
|
|
303
|
-
billTo:
|
|
304
|
-
packages:
|
|
305
|
-
discounts:
|
|
306
|
-
textbook:
|
|
307
|
-
shipping:
|
|
308
|
-
paid:
|
|
309
|
-
showEin:
|
|
310
|
-
notes:
|
|
311
|
-
createdBy:
|
|
312
|
-
lastEditBy:
|
|
401
|
+
var zBInvoice = z14.object({
|
|
402
|
+
billTo: z14.string().min(1, "The 'Bill To' field must not be empty"),
|
|
403
|
+
packages: z14.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
|
|
404
|
+
discounts: z14.array(zDiscount),
|
|
405
|
+
textbook: z14.coerce.number().int().min(0).optional(),
|
|
406
|
+
shipping: z14.coerce.number().int().min(0).optional(),
|
|
407
|
+
paid: z14.nativeEnum(PaymentMethod).optional(),
|
|
408
|
+
showEin: z14.boolean().optional(),
|
|
409
|
+
notes: z14.string().or(z14.literal("")).optional(),
|
|
410
|
+
createdBy: z14.string(),
|
|
411
|
+
lastEditBy: z14.string().optional()
|
|
313
412
|
});
|
|
314
413
|
var zInvoice = addAutoProps(zBInvoice);
|
|
315
414
|
var zInvoiceResponse = zInvoice.extend({
|
|
316
415
|
createdBy: zTeacher,
|
|
317
416
|
lastEditBy: zTeacher.optional(),
|
|
318
|
-
packages:
|
|
417
|
+
packages: z14.array(zInvoicePackageResponse)
|
|
319
418
|
});
|
|
320
419
|
|
|
321
420
|
// src/interface/payment/teacherPayment.ts
|
|
322
|
-
import { z as
|
|
323
|
-
var zTeacherPaymentRow =
|
|
324
|
-
course:
|
|
325
|
-
length:
|
|
326
|
-
count:
|
|
327
|
-
wage:
|
|
421
|
+
import { z as z15 } from "zod";
|
|
422
|
+
var zTeacherPaymentRow = z15.object({
|
|
423
|
+
course: z15.string().min(1, "select or enter a course"),
|
|
424
|
+
length: z15.coerce.number().gt(0, "must be > 0"),
|
|
425
|
+
count: z15.coerce.number().int().gt(0, "must be > 0"),
|
|
426
|
+
wage: z15.coerce.number().gt(0, "wage must be > 0")
|
|
328
427
|
});
|
|
329
|
-
var zBTeacherPayment =
|
|
330
|
-
teacher:
|
|
331
|
-
rows:
|
|
332
|
-
paid:
|
|
428
|
+
var zBTeacherPayment = z15.object({
|
|
429
|
+
teacher: z15.string().min(1, "select or enter a teacher"),
|
|
430
|
+
rows: z15.array(zTeacherPaymentRow),
|
|
431
|
+
paid: z15.boolean().optional()
|
|
333
432
|
});
|
|
334
433
|
var zTeacherPayment = addAutoProps(zBTeacherPayment);
|
|
335
434
|
var zTeacherPaymentResponse = zTeacherPayment.extend({
|
|
@@ -337,185 +436,131 @@ var zTeacherPaymentResponse = zTeacherPayment.extend({
|
|
|
337
436
|
});
|
|
338
437
|
|
|
339
438
|
// src/interface/tracking/classTracker.ts
|
|
340
|
-
var zBClassTracker =
|
|
341
|
-
course:
|
|
342
|
-
teacher:
|
|
343
|
-
student:
|
|
344
|
-
classTimes:
|
|
345
|
-
completedList:
|
|
439
|
+
var zBClassTracker = z16.object({
|
|
440
|
+
course: z16.string(),
|
|
441
|
+
teacher: z16.string(),
|
|
442
|
+
student: z16.string(),
|
|
443
|
+
classTimes: z16.array(z16.coerce.date()),
|
|
444
|
+
completedList: z16.array(z16.boolean()),
|
|
346
445
|
/**
|
|
347
446
|
* Virtual mongoose field when all values in completedList is true
|
|
348
447
|
*/
|
|
349
|
-
completed:
|
|
448
|
+
completed: z16.boolean().optional(),
|
|
350
449
|
/**
|
|
351
450
|
* @deprecated This field is no longer used
|
|
352
451
|
*/
|
|
353
452
|
tuition: zTuition.optional(),
|
|
354
|
-
paid:
|
|
355
|
-
paused:
|
|
356
|
-
notes:
|
|
453
|
+
paid: z16.boolean().optional(),
|
|
454
|
+
paused: z16.boolean().optional(),
|
|
455
|
+
notes: z16.string().optional()
|
|
357
456
|
});
|
|
358
457
|
var zClassTracker = addAutoProps(zBClassTracker);
|
|
458
|
+
var zClassTrackerResponse = zClassTracker.extend({
|
|
459
|
+
course: zCourse,
|
|
460
|
+
teacher: zTeacher,
|
|
461
|
+
student: zStudent
|
|
462
|
+
});
|
|
359
463
|
|
|
360
464
|
// src/interface/tracking/groupTracker.ts
|
|
361
|
-
import { z as
|
|
465
|
+
import { z as z18 } from "zod";
|
|
362
466
|
|
|
363
467
|
// src/interface/tracking/scheduleData.ts
|
|
364
|
-
import { z as
|
|
365
|
-
var zScheduleData =
|
|
366
|
-
startTime:
|
|
468
|
+
import { z as z17 } from "zod";
|
|
469
|
+
var zScheduleData = z17.object({
|
|
470
|
+
startTime: z17.string(),
|
|
367
471
|
// String in 24 hour "HH:mm" format
|
|
368
|
-
dayOfWeek:
|
|
472
|
+
dayOfWeek: z17.number().int().min(0).max(6)
|
|
369
473
|
// integeters in 0 - 6
|
|
370
474
|
});
|
|
371
475
|
|
|
372
|
-
// src/interface/course/ageGroup.ts
|
|
373
|
-
var AgeGroup = /* @__PURE__ */ ((AgeGroup2) => {
|
|
374
|
-
AgeGroup2["ADULT"] = "Adult";
|
|
375
|
-
AgeGroup2["YOUTH"] = "Youth";
|
|
376
|
-
return AgeGroup2;
|
|
377
|
-
})(AgeGroup || {});
|
|
378
|
-
|
|
379
|
-
// src/interface/course/category.ts
|
|
380
|
-
var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
|
|
381
|
-
CourseCategory2["GROUP"] = "group";
|
|
382
|
-
CourseCategory2["PRIVATE"] = "private";
|
|
383
|
-
CourseCategory2["SEMIPRIVATE"] = "semiprivate";
|
|
384
|
-
CourseCategory2["CAMP"] = "camp";
|
|
385
|
-
CourseCategory2["EVENT"] = "event";
|
|
386
|
-
return CourseCategory2;
|
|
387
|
-
})(CourseCategory || {});
|
|
388
|
-
|
|
389
|
-
// src/interface/course/school.ts
|
|
390
|
-
var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
|
|
391
|
-
NYIGSchool2["MANHATTAN"] = "Manhattan";
|
|
392
|
-
NYIGSchool2["LITTLENECK"] = "Little Neck";
|
|
393
|
-
NYIGSchool2["ONLINE"] = "Online";
|
|
394
|
-
return NYIGSchool2;
|
|
395
|
-
})(NYIGSchool || {});
|
|
396
|
-
|
|
397
|
-
// src/interface/course/course.ts
|
|
398
|
-
import { z as z16 } from "zod";
|
|
399
|
-
var zBCourse = z16.object({
|
|
400
|
-
name: z16.string(),
|
|
401
|
-
category: z16.nativeEnum(CourseCategory),
|
|
402
|
-
/**
|
|
403
|
-
* @unit SECONDS - Duration of the course in seconds
|
|
404
|
-
*/
|
|
405
|
-
duration: z16.coerce.number().int("Duration in seconds must be a whole number").min(1, "Duration in seconds must not be less than or equal to 0"),
|
|
406
|
-
/**
|
|
407
|
-
* @unit CENTS - Price of the course in cents
|
|
408
|
-
*/
|
|
409
|
-
price: z16.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
|
|
410
|
-
description: z16.string().or(z16.literal("")).optional(),
|
|
411
|
-
/**
|
|
412
|
-
* NYIG School locations
|
|
413
|
-
*/
|
|
414
|
-
nyigSchool: z16.nativeEnum(NYIGSchool),
|
|
415
|
-
/**
|
|
416
|
-
* Recommended level before taking this course
|
|
417
|
-
*/
|
|
418
|
-
recLevel: z16.string().or(z16.literal("")).optional(),
|
|
419
|
-
/**
|
|
420
|
-
* Camp tuition for half-day option
|
|
421
|
-
*/
|
|
422
|
-
halfCampTuition: z16.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
|
|
423
|
-
/**
|
|
424
|
-
* Camp tuition for full-day option
|
|
425
|
-
*/
|
|
426
|
-
fullCampTuition: z16.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
|
|
427
|
-
superadminOnly: z16.boolean().optional()
|
|
428
|
-
});
|
|
429
|
-
var zCourse = addAutoProps(zBCourse);
|
|
430
|
-
|
|
431
476
|
// src/interface/tracking/groupTracker.ts
|
|
432
|
-
var zBGroupTracker =
|
|
433
|
-
course:
|
|
434
|
-
teacher:
|
|
435
|
-
semester:
|
|
477
|
+
var zBGroupTracker = z18.object({
|
|
478
|
+
course: z18.string(),
|
|
479
|
+
teacher: z18.string(),
|
|
480
|
+
semester: z18.string(),
|
|
436
481
|
scheduleData: zScheduleData,
|
|
437
482
|
/**
|
|
438
483
|
* occurrences are tracked by week for Groups
|
|
439
484
|
*/
|
|
440
|
-
occurrences:
|
|
485
|
+
occurrences: z18.array(z18.coerce.date()),
|
|
441
486
|
/**
|
|
442
487
|
* attendances are tracked by week for Groups
|
|
443
488
|
*/
|
|
444
|
-
attendances:
|
|
489
|
+
attendances: z18.array(z18.string()),
|
|
445
490
|
/**
|
|
446
491
|
* public-facing ID of the course instance, e.g., 101
|
|
447
492
|
*/
|
|
448
|
-
courseId:
|
|
493
|
+
courseId: z18.string().optional(),
|
|
449
494
|
/**
|
|
450
495
|
* Age group of the class instance, e.g. "adult", "youth"
|
|
451
496
|
*/
|
|
452
|
-
ageGroup:
|
|
497
|
+
ageGroup: z18.nativeEnum(AgeGroup).optional(),
|
|
453
498
|
/**
|
|
454
499
|
* If true, the course is hidden from public view
|
|
455
500
|
*/
|
|
456
|
-
isNonPublic:
|
|
457
|
-
notes:
|
|
501
|
+
isNonPublic: z18.boolean().optional(),
|
|
502
|
+
notes: z18.string().optional()
|
|
458
503
|
});
|
|
459
504
|
var zGroupTracker = addAutoProps(zBGroupTracker);
|
|
460
505
|
|
|
461
506
|
// src/interface/booking/campBooking.ts
|
|
462
|
-
var zBCampBooking =
|
|
463
|
-
ctId:
|
|
464
|
-
isOnline:
|
|
465
|
-
classDates:
|
|
466
|
-
campOption:
|
|
467
|
-
shipping:
|
|
507
|
+
var zBCampBooking = z19.object({
|
|
508
|
+
ctId: z19.string().optional(),
|
|
509
|
+
isOnline: z19.boolean(),
|
|
510
|
+
classDates: z19.string(),
|
|
511
|
+
campOption: z19.nativeEnum(CampOption),
|
|
512
|
+
shipping: z19.boolean().optional()
|
|
468
513
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
469
514
|
var zCampBooking = addAutoProps(zBCampBooking);
|
|
470
515
|
|
|
471
516
|
// src/interface/booking/groupBooking.ts
|
|
472
|
-
import { z as
|
|
473
|
-
var zBGroupBooking =
|
|
474
|
-
gtId:
|
|
475
|
-
isTrial:
|
|
476
|
-
isOnline:
|
|
477
|
-
classDate:
|
|
478
|
-
shipping:
|
|
517
|
+
import { z as z20 } from "zod";
|
|
518
|
+
var zBGroupBooking = z20.object({
|
|
519
|
+
gtId: z20.string().optional(),
|
|
520
|
+
isTrial: z20.boolean().optional(),
|
|
521
|
+
isOnline: z20.boolean(),
|
|
522
|
+
classDate: z20.string().optional(),
|
|
523
|
+
shipping: z20.boolean().optional()
|
|
479
524
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
480
525
|
var zGroupBooking = addAutoProps(zBGroupBooking);
|
|
481
526
|
|
|
482
527
|
// src/interface/booking/privateBooking.ts
|
|
483
|
-
import { z as
|
|
484
|
-
var zBPrivateBooking =
|
|
485
|
-
courseId:
|
|
486
|
-
teacherId:
|
|
487
|
-
classDate:
|
|
528
|
+
import { z as z21 } from "zod";
|
|
529
|
+
var zBPrivateBooking = z21.object({
|
|
530
|
+
courseId: z21.string(),
|
|
531
|
+
teacherId: z21.string(),
|
|
532
|
+
classDate: z21.string().optional()
|
|
488
533
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
489
534
|
var zPrivateBooking = addAutoProps(zBPrivateBooking);
|
|
490
535
|
|
|
491
536
|
// src/interface/public/aurora.ts
|
|
492
|
-
import { z as
|
|
493
|
-
var zTeacherDisplay =
|
|
494
|
-
name:
|
|
495
|
-
email:
|
|
496
|
-
title:
|
|
497
|
-
imageUrl:
|
|
498
|
-
bio:
|
|
499
|
-
});
|
|
500
|
-
var zCourseTable =
|
|
501
|
-
id:
|
|
502
|
-
name:
|
|
503
|
-
duration:
|
|
504
|
-
dateAndTime:
|
|
505
|
-
recommendedLevel:
|
|
506
|
-
tuition:
|
|
537
|
+
import { z as z22 } from "zod";
|
|
538
|
+
var zTeacherDisplay = z22.object({
|
|
539
|
+
name: z22.string(),
|
|
540
|
+
email: z22.string().email(),
|
|
541
|
+
title: z22.string(),
|
|
542
|
+
imageUrl: z22.string(),
|
|
543
|
+
bio: z22.string()
|
|
544
|
+
});
|
|
545
|
+
var zCourseTable = z22.object({
|
|
546
|
+
id: z22.string(),
|
|
547
|
+
name: z22.string(),
|
|
548
|
+
duration: z22.number(),
|
|
549
|
+
dateAndTime: z22.string(),
|
|
550
|
+
recommendedLevel: z22.string(),
|
|
551
|
+
tuition: z22.string()
|
|
507
552
|
});
|
|
508
553
|
|
|
509
554
|
// src/interface/public/imageDef.ts
|
|
510
|
-
import { z as
|
|
511
|
-
var zImageDef =
|
|
512
|
-
url:
|
|
513
|
-
height:
|
|
514
|
-
width:
|
|
555
|
+
import { z as z23 } from "zod";
|
|
556
|
+
var zImageDef = z23.object({
|
|
557
|
+
url: z23.string(),
|
|
558
|
+
height: z23.number(),
|
|
559
|
+
width: z23.number()
|
|
515
560
|
});
|
|
516
561
|
|
|
517
562
|
// src/interface/reporting/reportTicket.ts
|
|
518
|
-
import { z as
|
|
563
|
+
import { z as z24 } from "zod";
|
|
519
564
|
|
|
520
565
|
// src/interface/reporting/ticketStatus.ts
|
|
521
566
|
var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
@@ -527,12 +572,12 @@ var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
|
527
572
|
})(TicketStatus || {});
|
|
528
573
|
|
|
529
574
|
// src/interface/reporting/reportTicket.ts
|
|
530
|
-
var zBReportTicket =
|
|
531
|
-
requester:
|
|
532
|
-
resolver:
|
|
533
|
-
status:
|
|
534
|
-
title:
|
|
535
|
-
description:
|
|
575
|
+
var zBReportTicket = z24.object({
|
|
576
|
+
requester: z24.string(),
|
|
577
|
+
resolver: z24.string().optional(),
|
|
578
|
+
status: z24.nativeEnum(TicketStatus),
|
|
579
|
+
title: z24.string(),
|
|
580
|
+
description: z24.string()
|
|
536
581
|
});
|
|
537
582
|
var zReportTicket = addAutoProps(zBReportTicket);
|
|
538
583
|
var zReportTicketResponse = zReportTicket.extend({
|
|
@@ -540,32 +585,6 @@ var zReportTicketResponse = zReportTicket.extend({
|
|
|
540
585
|
resolver: zUser.optional()
|
|
541
586
|
});
|
|
542
587
|
|
|
543
|
-
// src/interface/semester/season.ts
|
|
544
|
-
var Season = /* @__PURE__ */ ((Season2) => {
|
|
545
|
-
Season2["FALL"] = "fall";
|
|
546
|
-
Season2["SPRING"] = "spring";
|
|
547
|
-
Season2["SUMMER"] = "summer";
|
|
548
|
-
return Season2;
|
|
549
|
-
})(Season || {});
|
|
550
|
-
|
|
551
|
-
// src/interface/semester/semester.ts
|
|
552
|
-
import { z as z24 } from "zod";
|
|
553
|
-
var zBSemester = z24.object({
|
|
554
|
-
season: z24.nativeEnum(Season),
|
|
555
|
-
year: z24.number().min(2022).max(2999),
|
|
556
|
-
startDate: z24.coerce.date(),
|
|
557
|
-
endDate: z24.coerce.date(),
|
|
558
|
-
/**
|
|
559
|
-
* Format: start, end, start, end, ...
|
|
560
|
-
*/
|
|
561
|
-
blackoutDates: z24.array(z24.coerce.date()),
|
|
562
|
-
/**
|
|
563
|
-
* List of names of some break: date range
|
|
564
|
-
*/
|
|
565
|
-
importantDates: z24.array(z24.string())
|
|
566
|
-
});
|
|
567
|
-
var zSemester = addAutoProps(zBSemester);
|
|
568
|
-
|
|
569
588
|
// src/interface/event/eConfig.ts
|
|
570
589
|
import { z as z27 } from "zod";
|
|
571
590
|
|
|
@@ -718,6 +737,7 @@ export {
|
|
|
718
737
|
Season,
|
|
719
738
|
TicketStatus,
|
|
720
739
|
zAttendance,
|
|
740
|
+
zAttendanceRequest,
|
|
721
741
|
zAttendanceResponse,
|
|
722
742
|
zBAttendance,
|
|
723
743
|
zBCampBooking,
|
|
@@ -741,8 +761,11 @@ export {
|
|
|
741
761
|
zBUserInfo,
|
|
742
762
|
zCampBooking,
|
|
743
763
|
zCampTracker,
|
|
764
|
+
zCampTrackerRequest,
|
|
765
|
+
zCampTrackerResponse,
|
|
744
766
|
zChangePasswordRequest,
|
|
745
767
|
zClassTracker,
|
|
768
|
+
zClassTrackerResponse,
|
|
746
769
|
zCourse,
|
|
747
770
|
zCourseTable,
|
|
748
771
|
zCreateAdminAccountRequest,
|