@nyig/models 0.2.23 → 0.2.25

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 +676 -56
  2. package/index.d.ts +676 -56
  3. package/index.js +103 -82
  4. package/index.mjs +88 -72
  5. package/package.json +1 -1
package/index.js CHANGED
@@ -40,6 +40,13 @@ __export(src_exports, {
40
40
  zCourseTable: () => zCourseTable,
41
41
  zDetailsTable: () => zDetailsTable,
42
42
  zDiscount: () => zDiscount,
43
+ zEventConfig: () => zEventConfig,
44
+ zEventConfigResponse: () => zEventConfigResponse,
45
+ zEventReg: () => zEventReg,
46
+ zEventRegResponse: () => zEventRegResponse,
47
+ zEventTicket: () => zEventTicket,
48
+ zEventTicketReg: () => zEventTicketReg,
49
+ zEventTicketRegResponse: () => zEventTicketRegResponse,
43
50
  zGroupBooking: () => zGroupBooking,
44
51
  zGroupTracker: () => zGroupTracker,
45
52
  zImageDef: () => zImageDef,
@@ -51,6 +58,10 @@ __export(src_exports, {
51
58
  zMCampTracker: () => zMCampTracker,
52
59
  zMClassTracker: () => zMClassTracker,
53
60
  zMCourse: () => zMCourse,
61
+ zMEventConfig: () => zMEventConfig,
62
+ zMEventReg: () => zMEventReg,
63
+ zMEventRegResponse: () => zMEventRegResponse,
64
+ zMEventTicket: () => zMEventTicket,
54
65
  zMGroupBooking: () => zMGroupBooking,
55
66
  zMGroupTracker: () => zMGroupTracker,
56
67
  zMInvoice: () => zMInvoice,
@@ -58,9 +69,7 @@ __export(src_exports, {
58
69
  zMReportTicket: () => zMReportTicket,
59
70
  zMSemester: () => zMSemester,
60
71
  zMStudent: () => zMStudent,
61
- zMTConfig: () => zMTConfig,
62
- zMTReg: () => zMTReg,
63
- zMTTicket: () => zMTTicket,
72
+ zMTConfigResponse: () => zMTConfigResponse,
64
73
  zMTeacher: () => zMTeacher,
65
74
  zMTeacherPayment: () => zMTeacherPayment,
66
75
  zMUser: () => zMUser,
@@ -70,10 +79,6 @@ __export(src_exports, {
70
79
  zScheduleTable: () => zScheduleTable,
71
80
  zSemester: () => zSemester,
72
81
  zStudent: () => zStudent,
73
- zTConfig: () => zTConfig,
74
- zTReg: () => zTReg,
75
- zTTicket: () => zTTicket,
76
- zTTicketReg: () => zTTicketReg,
77
82
  zTeacher: () => zTeacher,
78
83
  zTeacherDisplay: () => zTeacherDisplay,
79
84
  zTeacherPayment: () => zTeacherPayment,
@@ -220,17 +225,17 @@ var zDiscount = import_zod7.z.object({
220
225
  amount: import_zod7.z.number()
221
226
  });
222
227
  var zInvoiceItem = import_zod7.z.object({
223
- course: import_zod7.z.instanceof(import_mongoose7.Types.ObjectId).or(import_zod7.z.string()),
228
+ course: import_zod7.z.string().min(1),
224
229
  price: import_zod7.z.number(),
225
230
  units: import_zod7.z.number()
226
231
  });
227
232
  var zInvoicePackage = import_zod7.z.object({
228
233
  student: import_zod7.z.instanceof(import_mongoose7.Types.ObjectId).or(import_zod7.z.string()),
229
- items: import_zod7.z.array(zInvoiceItem)
234
+ items: import_zod7.z.array(zInvoiceItem).min(1, "Package must contain at least one item")
230
235
  });
231
236
  var zInvoice = import_zod7.z.object({
232
- billTo: import_zod7.z.string(),
233
- packages: import_zod7.z.array(zInvoicePackage),
237
+ billTo: import_zod7.z.string().min(1, "The 'Bill To' field must not be empty"),
238
+ packages: import_zod7.z.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
234
239
  discounts: import_zod7.z.array(zDiscount),
235
240
  textbook: import_zod7.z.number().int().min(0).optional(),
236
241
  shipping: import_zod7.z.number().int().min(0).optional(),
@@ -482,57 +487,80 @@ var zSemester = import_zod19.z.object({
482
487
  });
483
488
  var zMSemester = extendZodObjectForMongoose(zSemester);
484
489
 
485
- // src/interface/tournament/tConfig.ts
486
- var import_mongoose24 = require("mongoose");
487
- var import_zod21 = require("zod");
490
+ // src/interface/event/eConfig.ts
491
+ var import_mongoose25 = require("mongoose");
492
+ var import_zod22 = require("zod");
488
493
 
489
- // src/interface/tournament/table.ts
494
+ // src/interface/event/eTicket.ts
490
495
  var import_zod20 = require("zod");
491
- var zTable = import_zod20.z.array(import_zod20.z.object({}));
492
- var zDetailsTable = import_zod20.z.object({
493
- fields: import_zod20.z.array(import_zod20.z.string()).length(2),
496
+ var zEventTicket = import_zod20.z.object({
497
+ name: import_zod20.z.string().min(5, "Name must be at least 5 characters"),
498
+ /**
499
+ * Price in cents
500
+ */
501
+ price: import_zod20.z.number().min(1, "Price must be at least $1"),
502
+ /**
503
+ * @optional description of the ticket
504
+ */
505
+ description: import_zod20.z.string().optional(),
506
+ /**
507
+ * @optional The ticket cannot be purchased if true
508
+ */
509
+ isNotBuyable: import_zod20.z.boolean().optional(),
510
+ /**
511
+ * @optional If date is provided and in the past, ticket cannot be purchased
512
+ */
513
+ lastBuyableDate: import_zod20.z.coerce.date().optional()
514
+ });
515
+ var zMEventTicket = extendZodObjectForMongoose(zEventTicket);
516
+
517
+ // src/interface/event/table.ts
518
+ var import_zod21 = require("zod");
519
+ var zTable = import_zod21.z.array(import_zod21.z.object({}));
520
+ var zDetailsTable = import_zod21.z.object({
521
+ fields: import_zod21.z.array(import_zod21.z.string()).length(2),
494
522
  data: zTable
495
523
  });
496
- var zScheduleTable = import_zod20.z.object({
497
- fields: import_zod20.z.array(import_zod20.z.string()).length(2),
498
- data: import_zod20.z.map(import_zod20.z.string(), zTable)
524
+ var zScheduleTable = import_zod21.z.object({
525
+ fields: import_zod21.z.array(import_zod21.z.string()).length(2),
526
+ data: import_zod21.z.record(import_zod21.z.string(), zTable)
499
527
  });
500
528
 
501
- // src/interface/tournament/tConfig.ts
502
- var zTConfig = import_zod21.z.object({
529
+ // src/interface/event/eConfig.ts
530
+ var zEventConfig = import_zod22.z.object({
503
531
  /**
504
532
  * Location of the event
505
533
  */
506
- location: import_zod21.z.string().optional(),
534
+ location: import_zod22.z.string().optional(),
507
535
  /**
508
536
  * URL of the tournament on the official website
509
537
  * Must be a valid URL link
510
538
  */
511
- url: import_zod21.z.string(),
539
+ url: import_zod22.z.string(),
512
540
  /**
513
541
  * Full name of the tournament
514
542
  */
515
- title: import_zod21.z.string(),
543
+ title: import_zod22.z.string(),
516
544
  /**
517
545
  * Abbreviated title of the tournament
518
546
  */
519
- shortTitle: import_zod21.z.string(),
547
+ shortTitle: import_zod22.z.string(),
520
548
  /**
521
549
  * Tournament start date and time
522
550
  */
523
- tStart: import_zod21.z.coerce.date(),
551
+ tStart: import_zod22.z.coerce.date(),
524
552
  /**
525
553
  * Tournament end date and time
526
554
  */
527
- tEnd: import_zod21.z.coerce.date(),
555
+ tEnd: import_zod22.z.coerce.date(),
528
556
  /**
529
557
  * Short description for tournament card
530
558
  */
531
- shortDescription: import_zod21.z.string(),
559
+ shortDescription: import_zod22.z.string(),
532
560
  /**
533
561
  * Full description
534
562
  */
535
- description: import_zod21.z.string(),
563
+ description: import_zod22.z.string(),
536
564
  /**
537
565
  * Defines the tournament details table with 2 columns
538
566
  * typically Time and Event
@@ -546,79 +574,67 @@ var zTConfig = import_zod21.z.object({
546
574
  /**
547
575
  * List of ticket object IDs for this tournament
548
576
  */
549
- tickets: import_zod21.z.array(import_zod21.z.instanceof(import_mongoose24.Types.ObjectId).or(import_zod21.z.string())),
577
+ tickets: import_zod22.z.array(import_zod22.z.instanceof(import_mongoose25.Types.ObjectId).or(import_zod22.z.string())),
550
578
  /**
551
579
  * If false, the tournament registration is closed
552
580
  */
553
- canRegister: import_zod21.z.boolean(),
581
+ canRegister: import_zod22.z.boolean(),
554
582
  /**
555
583
  * If true, free form donation amounts are disabled.
556
584
  */
557
- donationsDisabled: import_zod21.z.boolean().optional(),
585
+ donationsDisabled: import_zod22.z.boolean().optional(),
558
586
  /**
559
587
  * Defines URL, height, width of the image
560
588
  */
561
589
  image: zImageDef.optional()
562
590
  });
563
- var zMTConfig = extendZodObjectForMongoose(zTConfig);
591
+ var zEventConfigResponse = zEventConfig.extend({
592
+ tickets: import_zod22.z.array(zMEventTicket)
593
+ });
594
+ var zMEventConfig = extendZodObjectForMongoose(zEventConfig);
595
+ var zMTConfigResponse = extendZodObjectForMongoose(zEventConfigResponse);
564
596
 
565
- // src/interface/tournament/tReg.ts
566
- var import_mongoose27 = require("mongoose");
567
- var import_zod23 = require("zod");
597
+ // src/interface/event/eReg.ts
598
+ var import_mongoose28 = require("mongoose");
599
+ var import_zod24 = require("zod");
568
600
 
569
- // src/interface/tournament/tTicketReg.ts
570
- var import_zod22 = require("zod");
571
- var import_mongoose26 = require("mongoose");
572
- var zTTicketReg = import_zod22.z.object({
573
- ticket: import_zod22.z.instanceof(import_mongoose26.Types.ObjectId).or(import_zod22.z.string()),
601
+ // src/interface/event/eTicketReg.ts
602
+ var import_zod23 = require("zod");
603
+ var import_mongoose27 = require("mongoose");
604
+ var zEventTicketReg = import_zod23.z.object({
605
+ ticket: import_zod23.z.instanceof(import_mongoose27.Types.ObjectId).or(import_zod23.z.string()),
574
606
  /**
575
607
  * integer minimum 1, otherwise no ticket is being bought
576
608
  */
577
- amount: import_zod22.z.number().int().min(1)
609
+ amount: import_zod23.z.number().int().min(1)
610
+ });
611
+ var zEventTicketRegResponse = zEventTicketReg.extend({
612
+ ticket: zMEventTicket
578
613
  });
579
614
 
580
- // src/interface/tournament/tReg.ts
581
- var zTReg = import_zod23.z.object({
582
- agaId: import_zod23.z.string(),
583
- tournamentId: import_zod23.z.instanceof(import_mongoose27.Types.ObjectId).or(import_zod23.z.string()),
584
- tickets: import_zod23.z.array(zTTicketReg),
615
+ // src/interface/event/eReg.ts
616
+ var zEventReg = import_zod24.z.object({
617
+ agaId: import_zod24.z.string(),
618
+ tournamentId: import_zod24.z.instanceof(import_mongoose28.Types.ObjectId).or(import_zod24.z.string()),
619
+ tickets: import_zod24.z.array(zEventTicketReg),
585
620
  /**
586
621
  * @units CENTS - Donation in cents
587
622
  */
588
- donation: import_zod23.z.number().optional(),
623
+ donation: import_zod24.z.number().optional(),
589
624
  /**
590
625
  * How the registration was created, namely through public endpoint or admin
591
626
  */
592
- createMethod: import_zod23.z.string().optional(),
627
+ createMethod: import_zod24.z.string().optional(),
593
628
  /**
594
629
  * Mongoose ID of the admin that edited the registration
595
630
  */
596
- edited: import_zod23.z.instanceof(import_mongoose27.Types.ObjectId).optional()
631
+ edited: import_zod24.z.instanceof(import_mongoose28.Types.ObjectId).optional()
597
632
  }).merge(zBUserInfo).merge(zBPaymentInfo);
598
- var zMTReg = extendZodObjectForMongoose(zTReg);
599
-
600
- // src/interface/tournament/tTicket.ts
601
- var import_zod24 = require("zod");
602
- var zTTicket = import_zod24.z.object({
603
- name: import_zod24.z.string(),
604
- /**
605
- * Price in cents
606
- */
607
- price: import_zod24.z.number(),
608
- /**
609
- * @optional description of the ticket
610
- */
611
- description: import_zod24.z.string().optional(),
612
- /**
613
- * @optional The ticket cannot be purchased if true
614
- */
615
- isNotBuyable: import_zod24.z.boolean().optional(),
616
- /**
617
- * @optional If date is provided and in the past, ticket cannot be purchased
618
- */
619
- lastBuyableDate: import_zod24.z.coerce.date().optional()
633
+ var zEventRegResponse = zEventReg.extend({
634
+ tickets: import_zod24.z.array(zEventTicketRegResponse)
620
635
  });
621
- var zMTTicket = extendZodObjectForMongoose(zTTicket);
636
+ var zMEventReg = extendZodObjectForMongoose(zEventReg);
637
+ var zMEventRegResponse = extendZodObjectForMongoose(zEventRegResponse);
622
638
 
623
639
  // src/interface/user/goRank.ts
624
640
  var GoRank = /* @__PURE__ */ ((GoRank2) => {
@@ -752,6 +768,13 @@ var zUserRoles = import_zod26.z.object({
752
768
  zCourseTable,
753
769
  zDetailsTable,
754
770
  zDiscount,
771
+ zEventConfig,
772
+ zEventConfigResponse,
773
+ zEventReg,
774
+ zEventRegResponse,
775
+ zEventTicket,
776
+ zEventTicketReg,
777
+ zEventTicketRegResponse,
755
778
  zGroupBooking,
756
779
  zGroupTracker,
757
780
  zImageDef,
@@ -763,6 +786,10 @@ var zUserRoles = import_zod26.z.object({
763
786
  zMCampTracker,
764
787
  zMClassTracker,
765
788
  zMCourse,
789
+ zMEventConfig,
790
+ zMEventReg,
791
+ zMEventRegResponse,
792
+ zMEventTicket,
766
793
  zMGroupBooking,
767
794
  zMGroupTracker,
768
795
  zMInvoice,
@@ -770,9 +797,7 @@ var zUserRoles = import_zod26.z.object({
770
797
  zMReportTicket,
771
798
  zMSemester,
772
799
  zMStudent,
773
- zMTConfig,
774
- zMTReg,
775
- zMTTicket,
800
+ zMTConfigResponse,
776
801
  zMTeacher,
777
802
  zMTeacherPayment,
778
803
  zMUser,
@@ -782,10 +807,6 @@ var zUserRoles = import_zod26.z.object({
782
807
  zScheduleTable,
783
808
  zSemester,
784
809
  zStudent,
785
- zTConfig,
786
- zTReg,
787
- zTTicket,
788
- zTTicketReg,
789
810
  zTeacher,
790
811
  zTeacherDisplay,
791
812
  zTeacherPayment,
package/index.mjs CHANGED
@@ -134,17 +134,17 @@ var zDiscount = z7.object({
134
134
  amount: z7.number()
135
135
  });
136
136
  var zInvoiceItem = z7.object({
137
- course: z7.instanceof(Types5.ObjectId).or(z7.string()),
137
+ course: z7.string().min(1),
138
138
  price: z7.number(),
139
139
  units: z7.number()
140
140
  });
141
141
  var zInvoicePackage = z7.object({
142
142
  student: z7.instanceof(Types5.ObjectId).or(z7.string()),
143
- items: z7.array(zInvoiceItem)
143
+ items: z7.array(zInvoiceItem).min(1, "Package must contain at least one item")
144
144
  });
145
145
  var zInvoice = z7.object({
146
- billTo: z7.string(),
147
- packages: z7.array(zInvoicePackage),
146
+ billTo: z7.string().min(1, "The 'Bill To' field must not be empty"),
147
+ packages: z7.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
148
148
  discounts: z7.array(zDiscount),
149
149
  textbook: z7.number().int().min(0).optional(),
150
150
  shipping: z7.number().int().min(0).optional(),
@@ -396,57 +396,80 @@ var zSemester = z19.object({
396
396
  });
397
397
  var zMSemester = extendZodObjectForMongoose(zSemester);
398
398
 
399
- // src/interface/tournament/tConfig.ts
399
+ // src/interface/event/eConfig.ts
400
400
  import { Types as Types12 } from "mongoose";
401
- import { z as z21 } from "zod";
401
+ import { z as z22 } from "zod";
402
402
 
403
- // src/interface/tournament/table.ts
403
+ // src/interface/event/eTicket.ts
404
404
  import { z as z20 } from "zod";
405
- var zTable = z20.array(z20.object({}));
406
- var zDetailsTable = z20.object({
407
- fields: z20.array(z20.string()).length(2),
405
+ var zEventTicket = z20.object({
406
+ name: z20.string().min(5, "Name must be at least 5 characters"),
407
+ /**
408
+ * Price in cents
409
+ */
410
+ price: z20.number().min(1, "Price must be at least $1"),
411
+ /**
412
+ * @optional description of the ticket
413
+ */
414
+ description: z20.string().optional(),
415
+ /**
416
+ * @optional The ticket cannot be purchased if true
417
+ */
418
+ isNotBuyable: z20.boolean().optional(),
419
+ /**
420
+ * @optional If date is provided and in the past, ticket cannot be purchased
421
+ */
422
+ lastBuyableDate: z20.coerce.date().optional()
423
+ });
424
+ var zMEventTicket = extendZodObjectForMongoose(zEventTicket);
425
+
426
+ // src/interface/event/table.ts
427
+ import { z as z21 } from "zod";
428
+ var zTable = z21.array(z21.object({}));
429
+ var zDetailsTable = z21.object({
430
+ fields: z21.array(z21.string()).length(2),
408
431
  data: zTable
409
432
  });
410
- var zScheduleTable = z20.object({
411
- fields: z20.array(z20.string()).length(2),
412
- data: z20.map(z20.string(), zTable)
433
+ var zScheduleTable = z21.object({
434
+ fields: z21.array(z21.string()).length(2),
435
+ data: z21.record(z21.string(), zTable)
413
436
  });
414
437
 
415
- // src/interface/tournament/tConfig.ts
416
- var zTConfig = z21.object({
438
+ // src/interface/event/eConfig.ts
439
+ var zEventConfig = z22.object({
417
440
  /**
418
441
  * Location of the event
419
442
  */
420
- location: z21.string().optional(),
443
+ location: z22.string().optional(),
421
444
  /**
422
445
  * URL of the tournament on the official website
423
446
  * Must be a valid URL link
424
447
  */
425
- url: z21.string(),
448
+ url: z22.string(),
426
449
  /**
427
450
  * Full name of the tournament
428
451
  */
429
- title: z21.string(),
452
+ title: z22.string(),
430
453
  /**
431
454
  * Abbreviated title of the tournament
432
455
  */
433
- shortTitle: z21.string(),
456
+ shortTitle: z22.string(),
434
457
  /**
435
458
  * Tournament start date and time
436
459
  */
437
- tStart: z21.coerce.date(),
460
+ tStart: z22.coerce.date(),
438
461
  /**
439
462
  * Tournament end date and time
440
463
  */
441
- tEnd: z21.coerce.date(),
464
+ tEnd: z22.coerce.date(),
442
465
  /**
443
466
  * Short description for tournament card
444
467
  */
445
- shortDescription: z21.string(),
468
+ shortDescription: z22.string(),
446
469
  /**
447
470
  * Full description
448
471
  */
449
- description: z21.string(),
472
+ description: z22.string(),
450
473
  /**
451
474
  * Defines the tournament details table with 2 columns
452
475
  * typically Time and Event
@@ -460,79 +483,67 @@ var zTConfig = z21.object({
460
483
  /**
461
484
  * List of ticket object IDs for this tournament
462
485
  */
463
- tickets: z21.array(z21.instanceof(Types12.ObjectId).or(z21.string())),
486
+ tickets: z22.array(z22.instanceof(Types12.ObjectId).or(z22.string())),
464
487
  /**
465
488
  * If false, the tournament registration is closed
466
489
  */
467
- canRegister: z21.boolean(),
490
+ canRegister: z22.boolean(),
468
491
  /**
469
492
  * If true, free form donation amounts are disabled.
470
493
  */
471
- donationsDisabled: z21.boolean().optional(),
494
+ donationsDisabled: z22.boolean().optional(),
472
495
  /**
473
496
  * Defines URL, height, width of the image
474
497
  */
475
498
  image: zImageDef.optional()
476
499
  });
477
- var zMTConfig = extendZodObjectForMongoose(zTConfig);
500
+ var zEventConfigResponse = zEventConfig.extend({
501
+ tickets: z22.array(zMEventTicket)
502
+ });
503
+ var zMEventConfig = extendZodObjectForMongoose(zEventConfig);
504
+ var zMTConfigResponse = extendZodObjectForMongoose(zEventConfigResponse);
478
505
 
479
- // src/interface/tournament/tReg.ts
506
+ // src/interface/event/eReg.ts
480
507
  import { Types as Types14 } from "mongoose";
481
- import { z as z23 } from "zod";
508
+ import { z as z24 } from "zod";
482
509
 
483
- // src/interface/tournament/tTicketReg.ts
484
- import { z as z22 } from "zod";
510
+ // src/interface/event/eTicketReg.ts
511
+ import { z as z23 } from "zod";
485
512
  import { Types as Types13 } from "mongoose";
486
- var zTTicketReg = z22.object({
487
- ticket: z22.instanceof(Types13.ObjectId).or(z22.string()),
513
+ var zEventTicketReg = z23.object({
514
+ ticket: z23.instanceof(Types13.ObjectId).or(z23.string()),
488
515
  /**
489
516
  * integer minimum 1, otherwise no ticket is being bought
490
517
  */
491
- amount: z22.number().int().min(1)
518
+ amount: z23.number().int().min(1)
519
+ });
520
+ var zEventTicketRegResponse = zEventTicketReg.extend({
521
+ ticket: zMEventTicket
492
522
  });
493
523
 
494
- // src/interface/tournament/tReg.ts
495
- var zTReg = z23.object({
496
- agaId: z23.string(),
497
- tournamentId: z23.instanceof(Types14.ObjectId).or(z23.string()),
498
- tickets: z23.array(zTTicketReg),
524
+ // src/interface/event/eReg.ts
525
+ var zEventReg = z24.object({
526
+ agaId: z24.string(),
527
+ tournamentId: z24.instanceof(Types14.ObjectId).or(z24.string()),
528
+ tickets: z24.array(zEventTicketReg),
499
529
  /**
500
530
  * @units CENTS - Donation in cents
501
531
  */
502
- donation: z23.number().optional(),
532
+ donation: z24.number().optional(),
503
533
  /**
504
534
  * How the registration was created, namely through public endpoint or admin
505
535
  */
506
- createMethod: z23.string().optional(),
536
+ createMethod: z24.string().optional(),
507
537
  /**
508
538
  * Mongoose ID of the admin that edited the registration
509
539
  */
510
- edited: z23.instanceof(Types14.ObjectId).optional()
540
+ edited: z24.instanceof(Types14.ObjectId).optional()
511
541
  }).merge(zBUserInfo).merge(zBPaymentInfo);
512
- var zMTReg = extendZodObjectForMongoose(zTReg);
513
-
514
- // src/interface/tournament/tTicket.ts
515
- import { z as z24 } from "zod";
516
- var zTTicket = z24.object({
517
- name: z24.string(),
518
- /**
519
- * Price in cents
520
- */
521
- price: z24.number(),
522
- /**
523
- * @optional description of the ticket
524
- */
525
- description: z24.string().optional(),
526
- /**
527
- * @optional The ticket cannot be purchased if true
528
- */
529
- isNotBuyable: z24.boolean().optional(),
530
- /**
531
- * @optional If date is provided and in the past, ticket cannot be purchased
532
- */
533
- lastBuyableDate: z24.coerce.date().optional()
542
+ var zEventRegResponse = zEventReg.extend({
543
+ tickets: z24.array(zEventTicketRegResponse)
534
544
  });
535
- var zMTTicket = extendZodObjectForMongoose(zTTicket);
545
+ var zMEventReg = extendZodObjectForMongoose(zEventReg);
546
+ var zMEventRegResponse = extendZodObjectForMongoose(zEventRegResponse);
536
547
 
537
548
  // src/interface/user/goRank.ts
538
549
  var GoRank = /* @__PURE__ */ ((GoRank2) => {
@@ -665,6 +676,13 @@ export {
665
676
  zCourseTable,
666
677
  zDetailsTable,
667
678
  zDiscount,
679
+ zEventConfig,
680
+ zEventConfigResponse,
681
+ zEventReg,
682
+ zEventRegResponse,
683
+ zEventTicket,
684
+ zEventTicketReg,
685
+ zEventTicketRegResponse,
668
686
  zGroupBooking,
669
687
  zGroupTracker,
670
688
  zImageDef,
@@ -676,6 +694,10 @@ export {
676
694
  zMCampTracker,
677
695
  zMClassTracker,
678
696
  zMCourse,
697
+ zMEventConfig,
698
+ zMEventReg,
699
+ zMEventRegResponse,
700
+ zMEventTicket,
679
701
  zMGroupBooking,
680
702
  zMGroupTracker,
681
703
  zMInvoice,
@@ -683,9 +705,7 @@ export {
683
705
  zMReportTicket,
684
706
  zMSemester,
685
707
  zMStudent,
686
- zMTConfig,
687
- zMTReg,
688
- zMTTicket,
708
+ zMTConfigResponse,
689
709
  zMTeacher,
690
710
  zMTeacherPayment,
691
711
  zMUser,
@@ -695,10 +715,6 @@ export {
695
715
  zScheduleTable,
696
716
  zSemester,
697
717
  zStudent,
698
- zTConfig,
699
- zTReg,
700
- zTTicket,
701
- zTTicketReg,
702
718
  zTeacher,
703
719
  zTeacherDisplay,
704
720
  zTeacherPayment,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.2.23",
3
+ "version": "0.2.25",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",