@nyig/models 0.3.13 → 0.3.15

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.
Files changed (5) hide show
  1. package/index.d.mts +901 -136
  2. package/index.d.ts +901 -136
  3. package/index.js +209 -177
  4. package/index.mjs +207 -176
  5. package/package.json +1 -1
package/index.js CHANGED
@@ -56,7 +56,6 @@ __export(src_exports, {
56
56
  zBUserInfo: () => zBUserInfo,
57
57
  zCampBooking: () => zCampBooking,
58
58
  zCampTracker: () => zCampTracker,
59
- zCampTrackerRequest: () => zCampTrackerRequest,
60
59
  zCampTrackerResponse: () => zCampTrackerResponse,
61
60
  zChangePasswordRequest: () => zChangePasswordRequest,
62
61
  zClassTracker: () => zClassTracker,
@@ -75,6 +74,7 @@ __export(src_exports, {
75
74
  zEventTicketRegResponse: () => zEventTicketRegResponse,
76
75
  zGroupBooking: () => zGroupBooking,
77
76
  zGroupTracker: () => zGroupTracker,
77
+ zGroupTrackerResponse: () => zGroupTrackerResponse,
78
78
  zImageDef: () => zImageDef,
79
79
  zInvoice: () => zInvoice,
80
80
  zInvoiceItem: () => zInvoiceItem,
@@ -95,6 +95,7 @@ __export(src_exports, {
95
95
  zTeacherPayment: () => zTeacherPayment,
96
96
  zTeacherPaymentResponse: () => zTeacherPaymentResponse,
97
97
  zTeacherPaymentRow: () => zTeacherPaymentRow,
98
+ zTrackerCreate: () => zTrackerCreate,
98
99
  zTuition: () => zTuition,
99
100
  zUser: () => zUser,
100
101
  zUserRoles: () => zUserRoles
@@ -356,32 +357,6 @@ var zAttendanceResponse = zAttendance.extend({
356
357
  // src/interface/tracking/campTracker.ts
357
358
  var import_zod13 = require("zod");
358
359
 
359
- // src/interface/semester/season.ts
360
- var Season = /* @__PURE__ */ ((Season2) => {
361
- Season2["FALL"] = "fall";
362
- Season2["SPRING"] = "spring";
363
- Season2["SUMMER"] = "summer";
364
- return Season2;
365
- })(Season || {});
366
-
367
- // src/interface/semester/semester.ts
368
- var import_zod11 = require("zod");
369
- var zBSemester = import_zod11.z.object({
370
- season: import_zod11.z.nativeEnum(Season),
371
- year: import_zod11.z.number().min(2022).max(2999),
372
- startDate: import_zod11.z.coerce.date(),
373
- endDate: import_zod11.z.coerce.date(),
374
- /**
375
- * Format: start, end, start, end, ...
376
- */
377
- blackoutDates: import_zod11.z.array(import_zod11.z.coerce.date()),
378
- /**
379
- * List of names of some break: date range
380
- */
381
- importantDates: import_zod11.z.array(import_zod11.z.string())
382
- });
383
- var zSemester = addAutoProps(zBSemester);
384
-
385
360
  // src/interface/course/ageGroup.ts
386
361
  var AgeGroup = /* @__PURE__ */ ((AgeGroup2) => {
387
362
  AgeGroup2["ADULT"] = "Adult";
@@ -408,39 +383,65 @@ var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
408
383
  })(NYIGSchool || {});
409
384
 
410
385
  // src/interface/course/course.ts
411
- var import_zod12 = require("zod");
412
- var zBCourse = import_zod12.z.object({
413
- name: import_zod12.z.string(),
414
- category: import_zod12.z.nativeEnum(CourseCategory),
386
+ var import_zod11 = require("zod");
387
+ var zBCourse = import_zod11.z.object({
388
+ name: import_zod11.z.string(),
389
+ category: import_zod11.z.nativeEnum(CourseCategory),
415
390
  /**
416
391
  * @unit SECONDS - Duration of the course in seconds
417
392
  */
418
- duration: import_zod12.z.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"),
393
+ duration: import_zod11.z.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"),
419
394
  /**
420
395
  * @unit CENTS - Price of the course in cents
421
396
  */
422
- price: import_zod12.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
423
- description: import_zod12.z.string().or(import_zod12.z.literal("")).optional(),
397
+ price: import_zod11.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
398
+ description: import_zod11.z.string().or(import_zod11.z.literal("")).optional(),
424
399
  /**
425
400
  * NYIG School locations
426
401
  */
427
- nyigSchool: import_zod12.z.nativeEnum(NYIGSchool),
402
+ nyigSchool: import_zod11.z.nativeEnum(NYIGSchool),
428
403
  /**
429
404
  * Recommended level before taking this course
430
405
  */
431
- recLevel: import_zod12.z.string().or(import_zod12.z.literal("")).optional(),
406
+ recLevel: import_zod11.z.string().or(import_zod11.z.literal("")).optional(),
432
407
  /**
433
408
  * Camp tuition for half-day option
434
409
  */
435
- halfCampTuition: import_zod12.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
410
+ halfCampTuition: import_zod11.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
436
411
  /**
437
412
  * Camp tuition for full-day option
438
413
  */
439
- fullCampTuition: import_zod12.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
440
- superadminOnly: import_zod12.z.boolean().optional()
414
+ fullCampTuition: import_zod11.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
415
+ superadminOnly: import_zod11.z.boolean().optional()
441
416
  });
442
417
  var zCourse = addAutoProps(zBCourse);
443
418
 
419
+ // src/interface/semester/season.ts
420
+ var Season = /* @__PURE__ */ ((Season2) => {
421
+ Season2["FALL"] = "fall";
422
+ Season2["SPRING"] = "spring";
423
+ Season2["SUMMER"] = "summer";
424
+ return Season2;
425
+ })(Season || {});
426
+
427
+ // src/interface/semester/semester.ts
428
+ var import_zod12 = require("zod");
429
+ var zBSemester = import_zod12.z.object({
430
+ season: import_zod12.z.nativeEnum(Season),
431
+ year: import_zod12.z.number().min(2022).max(2999),
432
+ startDate: import_zod12.z.coerce.date(),
433
+ endDate: import_zod12.z.coerce.date(),
434
+ /**
435
+ * Format: start, end, start, end, ...
436
+ */
437
+ blackoutDates: import_zod12.z.array(import_zod12.z.coerce.date()),
438
+ /**
439
+ * List of names of some break: date range
440
+ */
441
+ importantDates: import_zod12.z.array(import_zod12.z.string())
442
+ });
443
+ var zSemester = addAutoProps(zBSemester);
444
+
444
445
  // src/interface/tracking/campTracker.ts
445
446
  var zBCampTracker = import_zod13.z.object({
446
447
  course: import_zod13.z.string(),
@@ -453,15 +454,12 @@ var zBCampTracker = import_zod13.z.object({
453
454
  /**
454
455
  * attendances are tracked by week for camps
455
456
  */
456
- attendances: import_zod13.z.array(import_zod13.z.string()),
457
+ attendances: import_zod13.z.array(zAttendanceRequest),
457
458
  publicDescription: import_zod13.z.string().optional(),
458
459
  isNonPublic: import_zod13.z.boolean().optional(),
459
460
  notes: import_zod13.z.string().optional()
460
461
  });
461
462
  var zCampTracker = addAutoProps(zBCampTracker);
462
- var zCampTrackerRequest = zCampTracker.extend({
463
- attendances: import_zod13.z.array(zAttendanceRequest)
464
- });
465
463
  var zCampTrackerResponse = zCampTracker.extend({
466
464
  course: zCourse,
467
465
  teacher: zTeacher,
@@ -472,70 +470,29 @@ var zCampTrackerResponse = zCampTracker.extend({
472
470
  // src/interface/tracking/classTracker.ts
473
471
  var import_zod16 = require("zod");
474
472
 
475
- // src/interface/payment/invoice.ts
476
- var import_zod14 = require("zod");
477
-
478
- // src/interface/payment/paymentMethod.ts
479
- var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
480
- PaymentMethod2["CASH"] = "Cash";
481
- PaymentMethod2["CHECK"] = "Check";
482
- PaymentMethod2["VENMO"] = "Venmo";
483
- PaymentMethod2["ZELLE"] = "Zelle Transfer";
484
- return PaymentMethod2;
485
- })(PaymentMethod || {});
486
-
487
- // src/interface/payment/invoice.ts
488
- var zDiscount = import_zod14.z.object({
489
- desc: import_zod14.z.string().min(1, "Discount description cannot be empty"),
490
- amount: import_zod14.z.coerce.number()
491
- });
492
- var zInvoiceItem = import_zod14.z.object({
493
- course: import_zod14.z.string().min(1, "Course description cannot be empty"),
494
- price: import_zod14.z.coerce.number(),
495
- units: import_zod14.z.coerce.number()
496
- });
497
- var zInvoicePackage = import_zod14.z.object({
498
- student: import_zod14.z.string(),
499
- items: import_zod14.z.array(zInvoiceItem).min(1, "Package must contain at least one item")
500
- });
501
- var zInvoicePackageResponse = zInvoicePackage.extend({
502
- student: zStudent
503
- });
504
- var zBInvoice = import_zod14.z.object({
505
- billTo: import_zod14.z.string().min(1, "The 'Bill To' field must not be empty"),
506
- packages: import_zod14.z.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
507
- discounts: import_zod14.z.array(zDiscount),
508
- textbook: import_zod14.z.coerce.number().int().min(0).optional(),
509
- shipping: import_zod14.z.coerce.number().int().min(0).optional(),
510
- paid: import_zod14.z.nativeEnum(PaymentMethod).optional(),
511
- showEin: import_zod14.z.boolean().optional(),
512
- notes: import_zod14.z.string().or(import_zod14.z.literal("")).optional(),
513
- createdBy: import_zod14.z.string(),
514
- lastEditBy: import_zod14.z.string().optional()
515
- });
516
- var zInvoice = addAutoProps(zBInvoice);
517
- var zInvoiceResponse = zInvoice.extend({
518
- createdBy: zTeacher,
519
- lastEditBy: zTeacher.optional(),
520
- packages: import_zod14.z.array(zInvoicePackageResponse)
521
- });
522
-
523
- // src/interface/payment/teacherPayment.ts
473
+ // src/interface/tracking/classTimesInput.ts
524
474
  var import_zod15 = require("zod");
525
- var zTeacherPaymentRow = import_zod15.z.object({
526
- course: import_zod15.z.string().min(1, "select or enter a course"),
527
- length: import_zod15.z.coerce.number().gt(0, "must be > 0"),
528
- count: import_zod15.z.coerce.number().int().gt(0, "must be > 0"),
529
- wage: import_zod15.z.coerce.number().gt(0, "wage must be > 0")
530
- });
531
- var zBTeacherPayment = import_zod15.z.object({
532
- teacher: import_zod15.z.string().min(1, "select or enter a teacher"),
533
- rows: import_zod15.z.array(zTeacherPaymentRow),
534
- paid: import_zod15.z.boolean().optional()
535
- });
536
- var zTeacherPayment = addAutoProps(zBTeacherPayment);
537
- var zTeacherPaymentResponse = zTeacherPayment.extend({
538
- teacher: zTeacher
475
+
476
+ // src/interface/tracking/dayOfWeek.ts
477
+ var import_zod14 = require("zod");
478
+ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
479
+ DayOfWeek2[DayOfWeek2["SUNDAY"] = 0] = "SUNDAY";
480
+ DayOfWeek2[DayOfWeek2["MONDAY"] = 1] = "MONDAY";
481
+ DayOfWeek2[DayOfWeek2["TUESDAY"] = 2] = "TUESDAY";
482
+ DayOfWeek2[DayOfWeek2["WEDNESDAY"] = 3] = "WEDNESDAY";
483
+ DayOfWeek2[DayOfWeek2["THURSDAY"] = 4] = "THURSDAY";
484
+ DayOfWeek2[DayOfWeek2["FRIDAY"] = 5] = "FRIDAY";
485
+ DayOfWeek2[DayOfWeek2["SATURDAY"] = 6] = "SATURDAY";
486
+ return DayOfWeek2;
487
+ })(DayOfWeek || {});
488
+ var zDayOfWeek = import_zod14.z.nativeEnum(DayOfWeek);
489
+
490
+ // src/interface/tracking/classTimesInput.ts
491
+ var zClassTimesInput = import_zod15.z.object({
492
+ startDate: import_zod15.z.date(),
493
+ freq: import_zod15.z.coerce.number().min(1, "Please select a valid frequency"),
494
+ daysOfWeek: import_zod15.z.array(zDayOfWeek),
495
+ numberOfClasses: import_zod15.z.coerce.number().int().min(1, "Must enroll in at least one class")
539
496
  });
540
497
 
541
498
  // src/interface/tracking/classTracker.ts
@@ -552,7 +509,6 @@ var zBClassTracker = import_zod16.z.object({
552
509
  /**
553
510
  * @deprecated This field is no longer used
554
511
  */
555
- tuition: zTuition.optional(),
556
512
  paid: import_zod16.z.boolean().optional(),
557
513
  paused: import_zod16.z.boolean().optional(),
558
514
  notes: import_zod16.z.string().optional()
@@ -563,6 +519,9 @@ var zClassTrackerResponse = zClassTracker.extend({
563
519
  teacher: zTeacher,
564
520
  student: zStudent
565
521
  });
522
+ var zTrackerCreate = zBClassTracker.extend({
523
+ classTimesInput: zClassTimesInput
524
+ });
566
525
 
567
526
  // src/interface/tracking/groupTracker.ts
568
527
  var import_zod18 = require("zod");
@@ -585,11 +544,11 @@ var zBGroupTracker = import_zod18.z.object({
585
544
  /**
586
545
  * occurrences are tracked by week for Groups
587
546
  */
588
- occurrences: import_zod18.z.array(import_zod18.z.coerce.date()),
547
+ occurrences: import_zod18.z.array(import_zod18.z.string()),
589
548
  /**
590
549
  * attendances are tracked by week for Groups
591
550
  */
592
- attendances: import_zod18.z.array(import_zod18.z.string()),
551
+ attendances: import_zod18.z.array(zAttendanceRequest),
593
552
  /**
594
553
  * public-facing ID of the course instance, e.g., 101
595
554
  */
@@ -605,6 +564,12 @@ var zBGroupTracker = import_zod18.z.object({
605
564
  notes: import_zod18.z.string().optional()
606
565
  });
607
566
  var zGroupTracker = addAutoProps(zBGroupTracker);
567
+ var zGroupTrackerResponse = zGroupTracker.extend({
568
+ course: zCourse,
569
+ teacher: zTeacher,
570
+ semester: zSemester,
571
+ attendances: import_zod18.z.array(zAttendanceResponse)
572
+ });
608
573
 
609
574
  // src/interface/booking/campBooking.ts
610
575
  var zBCampBooking = import_zod19.z.object({
@@ -636,34 +601,100 @@ var zBPrivateBooking = import_zod21.z.object({
636
601
  }).merge(zBUserInfo).merge(zBPaymentInfo);
637
602
  var zPrivateBooking = addAutoProps(zBPrivateBooking);
638
603
 
639
- // src/interface/public/aurora.ts
604
+ // src/interface/payment/invoice.ts
640
605
  var import_zod22 = require("zod");
641
- var zTeacherDisplay = import_zod22.z.object({
642
- name: import_zod22.z.string(),
643
- email: import_zod22.z.string().email(),
644
- title: import_zod22.z.string(),
645
- imageUrl: import_zod22.z.string(),
646
- bio: import_zod22.z.string()
647
- });
648
- var zCourseTable = import_zod22.z.object({
649
- id: import_zod22.z.string(),
650
- name: import_zod22.z.string(),
651
- duration: import_zod22.z.number(),
652
- dateAndTime: import_zod22.z.string(),
653
- recommendedLevel: import_zod22.z.string(),
654
- tuition: import_zod22.z.string()
606
+
607
+ // src/interface/payment/paymentMethod.ts
608
+ var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
609
+ PaymentMethod2["CASH"] = "Cash";
610
+ PaymentMethod2["CHECK"] = "Check";
611
+ PaymentMethod2["VENMO"] = "Venmo";
612
+ PaymentMethod2["ZELLE"] = "Zelle Transfer";
613
+ return PaymentMethod2;
614
+ })(PaymentMethod || {});
615
+
616
+ // src/interface/payment/invoice.ts
617
+ var zDiscount = import_zod22.z.object({
618
+ desc: import_zod22.z.string().min(1, "Discount description cannot be empty"),
619
+ amount: import_zod22.z.coerce.number()
620
+ });
621
+ var zInvoiceItem = import_zod22.z.object({
622
+ course: import_zod22.z.string().min(1, "Course description cannot be empty"),
623
+ price: import_zod22.z.coerce.number(),
624
+ units: import_zod22.z.coerce.number()
625
+ });
626
+ var zInvoicePackage = import_zod22.z.object({
627
+ student: import_zod22.z.string(),
628
+ items: import_zod22.z.array(zInvoiceItem).min(1, "Package must contain at least one item")
629
+ });
630
+ var zInvoicePackageResponse = zInvoicePackage.extend({
631
+ student: zStudent
632
+ });
633
+ var zBInvoice = import_zod22.z.object({
634
+ billTo: import_zod22.z.string().min(1, "The 'Bill To' field must not be empty"),
635
+ packages: import_zod22.z.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
636
+ discounts: import_zod22.z.array(zDiscount),
637
+ textbook: import_zod22.z.coerce.number().int().min(0).optional(),
638
+ shipping: import_zod22.z.coerce.number().int().min(0).optional(),
639
+ paid: import_zod22.z.nativeEnum(PaymentMethod).optional(),
640
+ showEin: import_zod22.z.boolean().optional(),
641
+ notes: import_zod22.z.string().or(import_zod22.z.literal("")).optional(),
642
+ createdBy: import_zod22.z.string(),
643
+ lastEditBy: import_zod22.z.string().optional()
644
+ });
645
+ var zInvoice = addAutoProps(zBInvoice);
646
+ var zInvoiceResponse = zInvoice.extend({
647
+ createdBy: zTeacher,
648
+ lastEditBy: zTeacher.optional(),
649
+ packages: import_zod22.z.array(zInvoicePackageResponse)
655
650
  });
656
651
 
657
- // src/interface/public/imageDef.ts
652
+ // src/interface/payment/teacherPayment.ts
658
653
  var import_zod23 = require("zod");
659
- var zImageDef = import_zod23.z.object({
660
- url: import_zod23.z.string(),
661
- height: import_zod23.z.number(),
662
- width: import_zod23.z.number()
654
+ var zTeacherPaymentRow = import_zod23.z.object({
655
+ course: import_zod23.z.string().min(1, "select or enter a course"),
656
+ length: import_zod23.z.coerce.number().gt(0, "must be > 0"),
657
+ count: import_zod23.z.coerce.number().int().gt(0, "must be > 0"),
658
+ wage: import_zod23.z.coerce.number().gt(0, "wage must be > 0")
659
+ });
660
+ var zBTeacherPayment = import_zod23.z.object({
661
+ teacher: import_zod23.z.string().min(1, "select or enter a teacher"),
662
+ rows: import_zod23.z.array(zTeacherPaymentRow),
663
+ paid: import_zod23.z.boolean().optional()
664
+ });
665
+ var zTeacherPayment = addAutoProps(zBTeacherPayment);
666
+ var zTeacherPaymentResponse = zTeacherPayment.extend({
667
+ teacher: zTeacher
663
668
  });
664
669
 
665
- // src/interface/reporting/reportTicket.ts
670
+ // src/interface/public/aurora.ts
666
671
  var import_zod24 = require("zod");
672
+ var zTeacherDisplay = import_zod24.z.object({
673
+ name: import_zod24.z.string(),
674
+ email: import_zod24.z.string().email(),
675
+ title: import_zod24.z.string(),
676
+ imageUrl: import_zod24.z.string(),
677
+ bio: import_zod24.z.string()
678
+ });
679
+ var zCourseTable = import_zod24.z.object({
680
+ id: import_zod24.z.string(),
681
+ name: import_zod24.z.string(),
682
+ duration: import_zod24.z.number(),
683
+ dateAndTime: import_zod24.z.string(),
684
+ recommendedLevel: import_zod24.z.string(),
685
+ tuition: import_zod24.z.string()
686
+ });
687
+
688
+ // src/interface/public/imageDef.ts
689
+ var import_zod25 = require("zod");
690
+ var zImageDef = import_zod25.z.object({
691
+ url: import_zod25.z.string(),
692
+ height: import_zod25.z.number(),
693
+ width: import_zod25.z.number()
694
+ });
695
+
696
+ // src/interface/reporting/reportTicket.ts
697
+ var import_zod26 = require("zod");
667
698
 
668
699
  // src/interface/reporting/ticketStatus.ts
669
700
  var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
@@ -675,12 +706,12 @@ var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
675
706
  })(TicketStatus || {});
676
707
 
677
708
  // src/interface/reporting/reportTicket.ts
678
- var zBReportTicket = import_zod24.z.object({
679
- requester: import_zod24.z.string(),
680
- resolver: import_zod24.z.string().optional(),
681
- status: import_zod24.z.nativeEnum(TicketStatus),
682
- title: import_zod24.z.string(),
683
- description: import_zod24.z.string()
709
+ var zBReportTicket = import_zod26.z.object({
710
+ requester: import_zod26.z.string(),
711
+ resolver: import_zod26.z.string().optional(),
712
+ status: import_zod26.z.nativeEnum(TicketStatus),
713
+ title: import_zod26.z.string(),
714
+ description: import_zod26.z.string()
684
715
  });
685
716
  var zReportTicket = addAutoProps(zBReportTicket);
686
717
  var zReportTicketResponse = zReportTicket.extend({
@@ -689,78 +720,78 @@ var zReportTicketResponse = zReportTicket.extend({
689
720
  });
690
721
 
691
722
  // src/interface/event/eConfig.ts
692
- var import_zod27 = require("zod");
723
+ var import_zod29 = require("zod");
693
724
 
694
725
  // src/interface/event/eTicket.ts
695
- var import_zod25 = require("zod");
696
- var zBEventTicket = import_zod25.z.object({
697
- name: import_zod25.z.string().min(5, "Name must be at least 5 characters"),
726
+ var import_zod27 = require("zod");
727
+ var zBEventTicket = import_zod27.z.object({
728
+ name: import_zod27.z.string().min(5, "Name must be at least 5 characters"),
698
729
  /**
699
730
  * Price in cents
700
731
  */
701
- price: import_zod25.z.number().min(1, "Price must be at least $1"),
732
+ price: import_zod27.z.number().min(1, "Price must be at least $1"),
702
733
  /**
703
734
  * @optional description of the ticket
704
735
  */
705
- description: import_zod25.z.string().optional(),
736
+ description: import_zod27.z.string().optional(),
706
737
  /**
707
738
  * @optional The ticket cannot be purchased if true
708
739
  */
709
- isNotBuyable: import_zod25.z.boolean().optional(),
740
+ isNotBuyable: import_zod27.z.boolean().optional(),
710
741
  /**
711
742
  * @optional If date is provided and in the past, ticket cannot be purchased
712
743
  */
713
- lastBuyableDate: import_zod25.z.coerce.date().optional()
744
+ lastBuyableDate: import_zod27.z.coerce.date().optional()
714
745
  });
715
746
  var zEventTicket = addAutoProps(zBEventTicket);
716
747
 
717
748
  // src/interface/event/table.ts
718
- var import_zod26 = require("zod");
719
- var zTable = import_zod26.z.array(import_zod26.z.record(import_zod26.z.string(), import_zod26.z.string()));
720
- var zDetailsTable = import_zod26.z.object({
721
- fields: import_zod26.z.array(import_zod26.z.string()).length(2),
749
+ var import_zod28 = require("zod");
750
+ var zTable = import_zod28.z.array(import_zod28.z.record(import_zod28.z.string(), import_zod28.z.string()));
751
+ var zDetailsTable = import_zod28.z.object({
752
+ fields: import_zod28.z.array(import_zod28.z.string()).length(2),
722
753
  data: zTable
723
754
  });
724
- var zScheduleTable = import_zod26.z.object({
725
- fields: import_zod26.z.array(import_zod26.z.string()).length(2),
726
- data: import_zod26.z.record(import_zod26.z.string(), zTable)
755
+ var zScheduleTable = import_zod28.z.object({
756
+ fields: import_zod28.z.array(import_zod28.z.string()).length(2),
757
+ data: import_zod28.z.record(import_zod28.z.string(), zTable)
727
758
  });
728
759
 
729
760
  // src/interface/event/eConfig.ts
730
- var zBEventConfig = import_zod27.z.object({
761
+ var zBEventConfig = import_zod29.z.object({
731
762
  /**
732
763
  * Location of the event
733
764
  */
734
- location: import_zod27.z.string().optional(),
765
+ location: import_zod29.z.string().optional(),
735
766
  /**
736
767
  * URL of the tournament on the official website
737
768
  * Must be a valid URL link
738
769
  */
739
- url: import_zod27.z.string(),
770
+ url: import_zod29.z.string(),
740
771
  /**
741
772
  * Full name of the tournament
742
773
  */
743
- title: import_zod27.z.string(),
774
+ title: import_zod29.z.string(),
744
775
  /**
745
776
  * Abbreviated title of the tournament
746
777
  */
747
- shortTitle: import_zod27.z.string(),
778
+ shortTitle: import_zod29.z.string(),
748
779
  /**
749
780
  * Tournament start date and time
750
781
  */
751
- tStart: import_zod27.z.coerce.date(),
782
+ tStart: import_zod29.z.coerce.date(),
752
783
  /**
753
784
  * Tournament end date and time
754
785
  */
755
- tEnd: import_zod27.z.coerce.date(),
786
+ tEnd: import_zod29.z.coerce.date(),
756
787
  /**
757
788
  * Short description for tournament card
758
789
  */
759
- shortDescription: import_zod27.z.string(),
790
+ shortDescription: import_zod29.z.string(),
760
791
  /**
761
792
  * Full description
762
793
  */
763
- description: import_zod27.z.string(),
794
+ description: import_zod29.z.string(),
764
795
  /**
765
796
  * Defines the tournament details table with 2 columns
766
797
  * typically Time and Event
@@ -774,15 +805,15 @@ var zBEventConfig = import_zod27.z.object({
774
805
  /**
775
806
  * List of ticket object IDs for this tournament
776
807
  */
777
- tickets: import_zod27.z.array(import_zod27.z.string()),
808
+ tickets: import_zod29.z.array(import_zod29.z.string()),
778
809
  /**
779
810
  * If false, the tournament registration is closed
780
811
  */
781
- canRegister: import_zod27.z.boolean(),
812
+ canRegister: import_zod29.z.boolean(),
782
813
  /**
783
814
  * If true, free form donation amounts are disabled.
784
815
  */
785
- donationsDisabled: import_zod27.z.boolean().optional(),
816
+ donationsDisabled: import_zod29.z.boolean().optional(),
786
817
  /**
787
818
  * Defines URL, height, width of the image
788
819
  */
@@ -790,42 +821,42 @@ var zBEventConfig = import_zod27.z.object({
790
821
  });
791
822
  var zEventConfig = addAutoProps(zBEventConfig);
792
823
  var zEventConfigResponse = zEventConfig.extend({
793
- tickets: import_zod27.z.array(zEventTicket)
824
+ tickets: import_zod29.z.array(zEventTicket)
794
825
  });
795
826
 
796
827
  // src/interface/event/eReg.ts
797
- var import_zod29 = require("zod");
828
+ var import_zod31 = require("zod");
798
829
 
799
830
  // src/interface/event/eTicketReg.ts
800
- var import_zod28 = require("zod");
801
- var zEventTicketReg = import_zod28.z.object({
802
- ticket: import_zod28.z.string(),
831
+ var import_zod30 = require("zod");
832
+ var zEventTicketReg = import_zod30.z.object({
833
+ ticket: import_zod30.z.string(),
803
834
  /**
804
835
  * integer minimum 1, otherwise no ticket is being bought
805
836
  */
806
- amount: import_zod28.z.number().int().min(1)
837
+ amount: import_zod30.z.number().int().min(1)
807
838
  });
808
839
  var zEventTicketRegResponse = zEventTicketReg.extend({
809
840
  ticket: zEventTicket
810
841
  });
811
842
 
812
843
  // src/interface/event/eReg.ts
813
- var zBEventReg = import_zod29.z.object({
814
- agaId: import_zod29.z.string(),
815
- tournamentId: import_zod29.z.string(),
816
- tickets: import_zod29.z.array(zEventTicketReg),
844
+ var zBEventReg = import_zod31.z.object({
845
+ agaId: import_zod31.z.string(),
846
+ tournamentId: import_zod31.z.string(),
847
+ tickets: import_zod31.z.array(zEventTicketReg),
817
848
  /**
818
849
  * @units CENTS - Donation in cents
819
850
  */
820
- donation: import_zod29.z.coerce.number().optional(),
851
+ donation: import_zod31.z.coerce.number().optional(),
821
852
  /**
822
853
  * How the registration was created, through public endpoint or admin
823
854
  */
824
- createMethod: import_zod29.z.string().optional()
855
+ createMethod: import_zod31.z.string().optional()
825
856
  }).merge(zBUserInfo).merge(zBPaymentInfo);
826
857
  var zEventReg = addAutoProps(zBEventReg);
827
858
  var zEventRegResponse = zEventReg.extend({
828
- tickets: import_zod29.z.array(zEventTicketRegResponse)
859
+ tickets: import_zod31.z.array(zEventTicketRegResponse)
829
860
  });
830
861
  // Annotate the CommonJS export names for ESM import in node:
831
862
  0 && (module.exports = {
@@ -865,7 +896,6 @@ var zEventRegResponse = zEventReg.extend({
865
896
  zBUserInfo,
866
897
  zCampBooking,
867
898
  zCampTracker,
868
- zCampTrackerRequest,
869
899
  zCampTrackerResponse,
870
900
  zChangePasswordRequest,
871
901
  zClassTracker,
@@ -884,6 +914,7 @@ var zEventRegResponse = zEventReg.extend({
884
914
  zEventTicketRegResponse,
885
915
  zGroupBooking,
886
916
  zGroupTracker,
917
+ zGroupTrackerResponse,
887
918
  zImageDef,
888
919
  zInvoice,
889
920
  zInvoiceItem,
@@ -904,6 +935,7 @@ var zEventRegResponse = zEventReg.extend({
904
935
  zTeacherPayment,
905
936
  zTeacherPaymentResponse,
906
937
  zTeacherPaymentRow,
938
+ zTrackerCreate,
907
939
  zTuition,
908
940
  zUser,
909
941
  zUserRoles