@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.mjs CHANGED
@@ -253,32 +253,6 @@ var zAttendanceResponse = zAttendance.extend({
253
253
  // src/interface/tracking/campTracker.ts
254
254
  import { z as z13 } from "zod";
255
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
265
- import { z as z11 } from "zod";
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
256
  // src/interface/course/ageGroup.ts
283
257
  var AgeGroup = /* @__PURE__ */ ((AgeGroup2) => {
284
258
  AgeGroup2["ADULT"] = "Adult";
@@ -305,39 +279,65 @@ var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
305
279
  })(NYIGSchool || {});
306
280
 
307
281
  // 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),
282
+ import { z as z11 } from "zod";
283
+ var zBCourse = z11.object({
284
+ name: z11.string(),
285
+ category: z11.nativeEnum(CourseCategory),
312
286
  /**
313
287
  * @unit SECONDS - Duration of the course in seconds
314
288
  */
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"),
289
+ duration: z11.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
290
  /**
317
291
  * @unit CENTS - Price of the course in cents
318
292
  */
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(),
293
+ price: z11.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
294
+ description: z11.string().or(z11.literal("")).optional(),
321
295
  /**
322
296
  * NYIG School locations
323
297
  */
324
- nyigSchool: z12.nativeEnum(NYIGSchool),
298
+ nyigSchool: z11.nativeEnum(NYIGSchool),
325
299
  /**
326
300
  * Recommended level before taking this course
327
301
  */
328
- recLevel: z12.string().or(z12.literal("")).optional(),
302
+ recLevel: z11.string().or(z11.literal("")).optional(),
329
303
  /**
330
304
  * Camp tuition for half-day option
331
305
  */
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(),
306
+ halfCampTuition: z11.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
307
  /**
334
308
  * Camp tuition for full-day option
335
309
  */
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()
310
+ fullCampTuition: z11.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
311
+ superadminOnly: z11.boolean().optional()
338
312
  });
339
313
  var zCourse = addAutoProps(zBCourse);
340
314
 
315
+ // src/interface/semester/season.ts
316
+ var Season = /* @__PURE__ */ ((Season2) => {
317
+ Season2["FALL"] = "fall";
318
+ Season2["SPRING"] = "spring";
319
+ Season2["SUMMER"] = "summer";
320
+ return Season2;
321
+ })(Season || {});
322
+
323
+ // src/interface/semester/semester.ts
324
+ import { z as z12 } from "zod";
325
+ var zBSemester = z12.object({
326
+ season: z12.nativeEnum(Season),
327
+ year: z12.number().min(2022).max(2999),
328
+ startDate: z12.coerce.date(),
329
+ endDate: z12.coerce.date(),
330
+ /**
331
+ * Format: start, end, start, end, ...
332
+ */
333
+ blackoutDates: z12.array(z12.coerce.date()),
334
+ /**
335
+ * List of names of some break: date range
336
+ */
337
+ importantDates: z12.array(z12.string())
338
+ });
339
+ var zSemester = addAutoProps(zBSemester);
340
+
341
341
  // src/interface/tracking/campTracker.ts
342
342
  var zBCampTracker = z13.object({
343
343
  course: z13.string(),
@@ -350,15 +350,12 @@ var zBCampTracker = z13.object({
350
350
  /**
351
351
  * attendances are tracked by week for camps
352
352
  */
353
- attendances: z13.array(z13.string()),
353
+ attendances: z13.array(zAttendanceRequest),
354
354
  publicDescription: z13.string().optional(),
355
355
  isNonPublic: z13.boolean().optional(),
356
356
  notes: z13.string().optional()
357
357
  });
358
358
  var zCampTracker = addAutoProps(zBCampTracker);
359
- var zCampTrackerRequest = zCampTracker.extend({
360
- attendances: z13.array(zAttendanceRequest)
361
- });
362
359
  var zCampTrackerResponse = zCampTracker.extend({
363
360
  course: zCourse,
364
361
  teacher: zTeacher,
@@ -369,70 +366,29 @@ var zCampTrackerResponse = zCampTracker.extend({
369
366
  // src/interface/tracking/classTracker.ts
370
367
  import { z as z16 } from "zod";
371
368
 
372
- // src/interface/payment/invoice.ts
373
- import { z as z14 } from "zod";
374
-
375
- // src/interface/payment/paymentMethod.ts
376
- var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
377
- PaymentMethod2["CASH"] = "Cash";
378
- PaymentMethod2["CHECK"] = "Check";
379
- PaymentMethod2["VENMO"] = "Venmo";
380
- PaymentMethod2["ZELLE"] = "Zelle Transfer";
381
- return PaymentMethod2;
382
- })(PaymentMethod || {});
383
-
384
- // src/interface/payment/invoice.ts
385
- var zDiscount = z14.object({
386
- desc: z14.string().min(1, "Discount description cannot be empty"),
387
- amount: z14.coerce.number()
388
- });
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()
393
- });
394
- var zInvoicePackage = z14.object({
395
- student: z14.string(),
396
- items: z14.array(zInvoiceItem).min(1, "Package must contain at least one item")
397
- });
398
- var zInvoicePackageResponse = zInvoicePackage.extend({
399
- student: zStudent
400
- });
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()
412
- });
413
- var zInvoice = addAutoProps(zBInvoice);
414
- var zInvoiceResponse = zInvoice.extend({
415
- createdBy: zTeacher,
416
- lastEditBy: zTeacher.optional(),
417
- packages: z14.array(zInvoicePackageResponse)
418
- });
419
-
420
- // src/interface/payment/teacherPayment.ts
369
+ // src/interface/tracking/classTimesInput.ts
421
370
  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")
427
- });
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()
432
- });
433
- var zTeacherPayment = addAutoProps(zBTeacherPayment);
434
- var zTeacherPaymentResponse = zTeacherPayment.extend({
435
- teacher: zTeacher
371
+
372
+ // src/interface/tracking/dayOfWeek.ts
373
+ import { z as z14 } from "zod";
374
+ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
375
+ DayOfWeek2[DayOfWeek2["SUNDAY"] = 0] = "SUNDAY";
376
+ DayOfWeek2[DayOfWeek2["MONDAY"] = 1] = "MONDAY";
377
+ DayOfWeek2[DayOfWeek2["TUESDAY"] = 2] = "TUESDAY";
378
+ DayOfWeek2[DayOfWeek2["WEDNESDAY"] = 3] = "WEDNESDAY";
379
+ DayOfWeek2[DayOfWeek2["THURSDAY"] = 4] = "THURSDAY";
380
+ DayOfWeek2[DayOfWeek2["FRIDAY"] = 5] = "FRIDAY";
381
+ DayOfWeek2[DayOfWeek2["SATURDAY"] = 6] = "SATURDAY";
382
+ return DayOfWeek2;
383
+ })(DayOfWeek || {});
384
+ var zDayOfWeek = z14.nativeEnum(DayOfWeek);
385
+
386
+ // src/interface/tracking/classTimesInput.ts
387
+ var zClassTimesInput = z15.object({
388
+ startDate: z15.date(),
389
+ freq: z15.coerce.number().min(1, "Please select a valid frequency"),
390
+ daysOfWeek: z15.array(zDayOfWeek),
391
+ numberOfClasses: z15.coerce.number().int().min(1, "Must enroll in at least one class")
436
392
  });
437
393
 
438
394
  // src/interface/tracking/classTracker.ts
@@ -449,7 +405,6 @@ var zBClassTracker = z16.object({
449
405
  /**
450
406
  * @deprecated This field is no longer used
451
407
  */
452
- tuition: zTuition.optional(),
453
408
  paid: z16.boolean().optional(),
454
409
  paused: z16.boolean().optional(),
455
410
  notes: z16.string().optional()
@@ -460,6 +415,9 @@ var zClassTrackerResponse = zClassTracker.extend({
460
415
  teacher: zTeacher,
461
416
  student: zStudent
462
417
  });
418
+ var zTrackerCreate = zBClassTracker.extend({
419
+ classTimesInput: zClassTimesInput
420
+ });
463
421
 
464
422
  // src/interface/tracking/groupTracker.ts
465
423
  import { z as z18 } from "zod";
@@ -482,11 +440,11 @@ var zBGroupTracker = z18.object({
482
440
  /**
483
441
  * occurrences are tracked by week for Groups
484
442
  */
485
- occurrences: z18.array(z18.coerce.date()),
443
+ occurrences: z18.array(z18.string()),
486
444
  /**
487
445
  * attendances are tracked by week for Groups
488
446
  */
489
- attendances: z18.array(z18.string()),
447
+ attendances: z18.array(zAttendanceRequest),
490
448
  /**
491
449
  * public-facing ID of the course instance, e.g., 101
492
450
  */
@@ -502,6 +460,12 @@ var zBGroupTracker = z18.object({
502
460
  notes: z18.string().optional()
503
461
  });
504
462
  var zGroupTracker = addAutoProps(zBGroupTracker);
463
+ var zGroupTrackerResponse = zGroupTracker.extend({
464
+ course: zCourse,
465
+ teacher: zTeacher,
466
+ semester: zSemester,
467
+ attendances: z18.array(zAttendanceResponse)
468
+ });
505
469
 
506
470
  // src/interface/booking/campBooking.ts
507
471
  var zBCampBooking = z19.object({
@@ -533,34 +497,100 @@ var zBPrivateBooking = z21.object({
533
497
  }).merge(zBUserInfo).merge(zBPaymentInfo);
534
498
  var zPrivateBooking = addAutoProps(zBPrivateBooking);
535
499
 
536
- // src/interface/public/aurora.ts
500
+ // src/interface/payment/invoice.ts
537
501
  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()
502
+
503
+ // src/interface/payment/paymentMethod.ts
504
+ var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
505
+ PaymentMethod2["CASH"] = "Cash";
506
+ PaymentMethod2["CHECK"] = "Check";
507
+ PaymentMethod2["VENMO"] = "Venmo";
508
+ PaymentMethod2["ZELLE"] = "Zelle Transfer";
509
+ return PaymentMethod2;
510
+ })(PaymentMethod || {});
511
+
512
+ // src/interface/payment/invoice.ts
513
+ var zDiscount = z22.object({
514
+ desc: z22.string().min(1, "Discount description cannot be empty"),
515
+ amount: z22.coerce.number()
516
+ });
517
+ var zInvoiceItem = z22.object({
518
+ course: z22.string().min(1, "Course description cannot be empty"),
519
+ price: z22.coerce.number(),
520
+ units: z22.coerce.number()
521
+ });
522
+ var zInvoicePackage = z22.object({
523
+ student: z22.string(),
524
+ items: z22.array(zInvoiceItem).min(1, "Package must contain at least one item")
525
+ });
526
+ var zInvoicePackageResponse = zInvoicePackage.extend({
527
+ student: zStudent
528
+ });
529
+ var zBInvoice = z22.object({
530
+ billTo: z22.string().min(1, "The 'Bill To' field must not be empty"),
531
+ packages: z22.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
532
+ discounts: z22.array(zDiscount),
533
+ textbook: z22.coerce.number().int().min(0).optional(),
534
+ shipping: z22.coerce.number().int().min(0).optional(),
535
+ paid: z22.nativeEnum(PaymentMethod).optional(),
536
+ showEin: z22.boolean().optional(),
537
+ notes: z22.string().or(z22.literal("")).optional(),
538
+ createdBy: z22.string(),
539
+ lastEditBy: z22.string().optional()
540
+ });
541
+ var zInvoice = addAutoProps(zBInvoice);
542
+ var zInvoiceResponse = zInvoice.extend({
543
+ createdBy: zTeacher,
544
+ lastEditBy: zTeacher.optional(),
545
+ packages: z22.array(zInvoicePackageResponse)
552
546
  });
553
547
 
554
- // src/interface/public/imageDef.ts
548
+ // src/interface/payment/teacherPayment.ts
555
549
  import { z as z23 } from "zod";
556
- var zImageDef = z23.object({
557
- url: z23.string(),
558
- height: z23.number(),
559
- width: z23.number()
550
+ var zTeacherPaymentRow = z23.object({
551
+ course: z23.string().min(1, "select or enter a course"),
552
+ length: z23.coerce.number().gt(0, "must be > 0"),
553
+ count: z23.coerce.number().int().gt(0, "must be > 0"),
554
+ wage: z23.coerce.number().gt(0, "wage must be > 0")
555
+ });
556
+ var zBTeacherPayment = z23.object({
557
+ teacher: z23.string().min(1, "select or enter a teacher"),
558
+ rows: z23.array(zTeacherPaymentRow),
559
+ paid: z23.boolean().optional()
560
+ });
561
+ var zTeacherPayment = addAutoProps(zBTeacherPayment);
562
+ var zTeacherPaymentResponse = zTeacherPayment.extend({
563
+ teacher: zTeacher
560
564
  });
561
565
 
562
- // src/interface/reporting/reportTicket.ts
566
+ // src/interface/public/aurora.ts
563
567
  import { z as z24 } from "zod";
568
+ var zTeacherDisplay = z24.object({
569
+ name: z24.string(),
570
+ email: z24.string().email(),
571
+ title: z24.string(),
572
+ imageUrl: z24.string(),
573
+ bio: z24.string()
574
+ });
575
+ var zCourseTable = z24.object({
576
+ id: z24.string(),
577
+ name: z24.string(),
578
+ duration: z24.number(),
579
+ dateAndTime: z24.string(),
580
+ recommendedLevel: z24.string(),
581
+ tuition: z24.string()
582
+ });
583
+
584
+ // src/interface/public/imageDef.ts
585
+ import { z as z25 } from "zod";
586
+ var zImageDef = z25.object({
587
+ url: z25.string(),
588
+ height: z25.number(),
589
+ width: z25.number()
590
+ });
591
+
592
+ // src/interface/reporting/reportTicket.ts
593
+ import { z as z26 } from "zod";
564
594
 
565
595
  // src/interface/reporting/ticketStatus.ts
566
596
  var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
@@ -572,12 +602,12 @@ var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
572
602
  })(TicketStatus || {});
573
603
 
574
604
  // src/interface/reporting/reportTicket.ts
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()
605
+ var zBReportTicket = z26.object({
606
+ requester: z26.string(),
607
+ resolver: z26.string().optional(),
608
+ status: z26.nativeEnum(TicketStatus),
609
+ title: z26.string(),
610
+ description: z26.string()
581
611
  });
582
612
  var zReportTicket = addAutoProps(zBReportTicket);
583
613
  var zReportTicketResponse = zReportTicket.extend({
@@ -586,78 +616,78 @@ var zReportTicketResponse = zReportTicket.extend({
586
616
  });
587
617
 
588
618
  // src/interface/event/eConfig.ts
589
- import { z as z27 } from "zod";
619
+ import { z as z29 } from "zod";
590
620
 
591
621
  // src/interface/event/eTicket.ts
592
- import { z as z25 } from "zod";
593
- var zBEventTicket = z25.object({
594
- name: z25.string().min(5, "Name must be at least 5 characters"),
622
+ import { z as z27 } from "zod";
623
+ var zBEventTicket = z27.object({
624
+ name: z27.string().min(5, "Name must be at least 5 characters"),
595
625
  /**
596
626
  * Price in cents
597
627
  */
598
- price: z25.number().min(1, "Price must be at least $1"),
628
+ price: z27.number().min(1, "Price must be at least $1"),
599
629
  /**
600
630
  * @optional description of the ticket
601
631
  */
602
- description: z25.string().optional(),
632
+ description: z27.string().optional(),
603
633
  /**
604
634
  * @optional The ticket cannot be purchased if true
605
635
  */
606
- isNotBuyable: z25.boolean().optional(),
636
+ isNotBuyable: z27.boolean().optional(),
607
637
  /**
608
638
  * @optional If date is provided and in the past, ticket cannot be purchased
609
639
  */
610
- lastBuyableDate: z25.coerce.date().optional()
640
+ lastBuyableDate: z27.coerce.date().optional()
611
641
  });
612
642
  var zEventTicket = addAutoProps(zBEventTicket);
613
643
 
614
644
  // src/interface/event/table.ts
615
- import { z as z26 } from "zod";
616
- var zTable = z26.array(z26.record(z26.string(), z26.string()));
617
- var zDetailsTable = z26.object({
618
- fields: z26.array(z26.string()).length(2),
645
+ import { z as z28 } from "zod";
646
+ var zTable = z28.array(z28.record(z28.string(), z28.string()));
647
+ var zDetailsTable = z28.object({
648
+ fields: z28.array(z28.string()).length(2),
619
649
  data: zTable
620
650
  });
621
- var zScheduleTable = z26.object({
622
- fields: z26.array(z26.string()).length(2),
623
- data: z26.record(z26.string(), zTable)
651
+ var zScheduleTable = z28.object({
652
+ fields: z28.array(z28.string()).length(2),
653
+ data: z28.record(z28.string(), zTable)
624
654
  });
625
655
 
626
656
  // src/interface/event/eConfig.ts
627
- var zBEventConfig = z27.object({
657
+ var zBEventConfig = z29.object({
628
658
  /**
629
659
  * Location of the event
630
660
  */
631
- location: z27.string().optional(),
661
+ location: z29.string().optional(),
632
662
  /**
633
663
  * URL of the tournament on the official website
634
664
  * Must be a valid URL link
635
665
  */
636
- url: z27.string(),
666
+ url: z29.string(),
637
667
  /**
638
668
  * Full name of the tournament
639
669
  */
640
- title: z27.string(),
670
+ title: z29.string(),
641
671
  /**
642
672
  * Abbreviated title of the tournament
643
673
  */
644
- shortTitle: z27.string(),
674
+ shortTitle: z29.string(),
645
675
  /**
646
676
  * Tournament start date and time
647
677
  */
648
- tStart: z27.coerce.date(),
678
+ tStart: z29.coerce.date(),
649
679
  /**
650
680
  * Tournament end date and time
651
681
  */
652
- tEnd: z27.coerce.date(),
682
+ tEnd: z29.coerce.date(),
653
683
  /**
654
684
  * Short description for tournament card
655
685
  */
656
- shortDescription: z27.string(),
686
+ shortDescription: z29.string(),
657
687
  /**
658
688
  * Full description
659
689
  */
660
- description: z27.string(),
690
+ description: z29.string(),
661
691
  /**
662
692
  * Defines the tournament details table with 2 columns
663
693
  * typically Time and Event
@@ -671,15 +701,15 @@ var zBEventConfig = z27.object({
671
701
  /**
672
702
  * List of ticket object IDs for this tournament
673
703
  */
674
- tickets: z27.array(z27.string()),
704
+ tickets: z29.array(z29.string()),
675
705
  /**
676
706
  * If false, the tournament registration is closed
677
707
  */
678
- canRegister: z27.boolean(),
708
+ canRegister: z29.boolean(),
679
709
  /**
680
710
  * If true, free form donation amounts are disabled.
681
711
  */
682
- donationsDisabled: z27.boolean().optional(),
712
+ donationsDisabled: z29.boolean().optional(),
683
713
  /**
684
714
  * Defines URL, height, width of the image
685
715
  */
@@ -687,42 +717,42 @@ var zBEventConfig = z27.object({
687
717
  });
688
718
  var zEventConfig = addAutoProps(zBEventConfig);
689
719
  var zEventConfigResponse = zEventConfig.extend({
690
- tickets: z27.array(zEventTicket)
720
+ tickets: z29.array(zEventTicket)
691
721
  });
692
722
 
693
723
  // src/interface/event/eReg.ts
694
- import { z as z29 } from "zod";
724
+ import { z as z31 } from "zod";
695
725
 
696
726
  // src/interface/event/eTicketReg.ts
697
- import { z as z28 } from "zod";
698
- var zEventTicketReg = z28.object({
699
- ticket: z28.string(),
727
+ import { z as z30 } from "zod";
728
+ var zEventTicketReg = z30.object({
729
+ ticket: z30.string(),
700
730
  /**
701
731
  * integer minimum 1, otherwise no ticket is being bought
702
732
  */
703
- amount: z28.number().int().min(1)
733
+ amount: z30.number().int().min(1)
704
734
  });
705
735
  var zEventTicketRegResponse = zEventTicketReg.extend({
706
736
  ticket: zEventTicket
707
737
  });
708
738
 
709
739
  // src/interface/event/eReg.ts
710
- var zBEventReg = z29.object({
711
- agaId: z29.string(),
712
- tournamentId: z29.string(),
713
- tickets: z29.array(zEventTicketReg),
740
+ var zBEventReg = z31.object({
741
+ agaId: z31.string(),
742
+ tournamentId: z31.string(),
743
+ tickets: z31.array(zEventTicketReg),
714
744
  /**
715
745
  * @units CENTS - Donation in cents
716
746
  */
717
- donation: z29.coerce.number().optional(),
747
+ donation: z31.coerce.number().optional(),
718
748
  /**
719
749
  * How the registration was created, through public endpoint or admin
720
750
  */
721
- createMethod: z29.string().optional()
751
+ createMethod: z31.string().optional()
722
752
  }).merge(zBUserInfo).merge(zBPaymentInfo);
723
753
  var zEventReg = addAutoProps(zBEventReg);
724
754
  var zEventRegResponse = zEventReg.extend({
725
- tickets: z29.array(zEventTicketRegResponse)
755
+ tickets: z31.array(zEventTicketRegResponse)
726
756
  });
727
757
  export {
728
758
  AgeGroup,
@@ -761,7 +791,6 @@ export {
761
791
  zBUserInfo,
762
792
  zCampBooking,
763
793
  zCampTracker,
764
- zCampTrackerRequest,
765
794
  zCampTrackerResponse,
766
795
  zChangePasswordRequest,
767
796
  zClassTracker,
@@ -780,6 +809,7 @@ export {
780
809
  zEventTicketRegResponse,
781
810
  zGroupBooking,
782
811
  zGroupTracker,
812
+ zGroupTrackerResponse,
783
813
  zImageDef,
784
814
  zInvoice,
785
815
  zInvoiceItem,
@@ -800,6 +830,7 @@ export {
800
830
  zTeacherPayment,
801
831
  zTeacherPaymentResponse,
802
832
  zTeacherPaymentRow,
833
+ zTrackerCreate,
803
834
  zTuition,
804
835
  zUser,
805
836
  zUserRoles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",