@nyig/models 0.3.14 → 0.4.0

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