@nyig/models 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.mts CHANGED
@@ -4922,6 +4922,11 @@ declare const zSemester: z.ZodObject<{
4922
4922
  type BSemester = z.infer<typeof zBSemester>;
4923
4923
  type Semester = z.infer<typeof zSemester>;
4924
4924
 
4925
+ declare enum YouthOrAdult {
4926
+ YOUTH_ONLY = "youth_only",
4927
+ BOTH = "both"
4928
+ }
4929
+
4925
4930
  declare const zBEventConfig: z.ZodObject<{
4926
4931
  /**
4927
4932
  * Location of the event
@@ -5003,10 +5008,11 @@ declare const zBEventConfig: z.ZodObject<{
5003
5008
  */
5004
5009
  canRegister: z.ZodBoolean;
5005
5010
  /**
5006
- * If true, the tournament is youth only.
5007
- * example: registration requires a date of birth to confirm.
5011
+ * Defines the registration of youth and adults in the event
5012
+ * youth_only - only youth
5013
+ * both - both youth and adult
5008
5014
  */
5009
- isYouth: z.ZodBoolean;
5015
+ youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
5010
5016
  /**
5011
5017
  * If true, free form donation amounts are disabled.
5012
5018
  */
@@ -5045,7 +5051,7 @@ declare const zBEventConfig: z.ZodObject<{
5045
5051
  };
5046
5052
  tickets: string[];
5047
5053
  canRegister: boolean;
5048
- isYouth: boolean;
5054
+ youthOrAdult: YouthOrAdult;
5049
5055
  location?: string | undefined;
5050
5056
  ticketsStepDescription?: string | undefined;
5051
5057
  participantStepDescription?: string | undefined;
@@ -5073,7 +5079,7 @@ declare const zBEventConfig: z.ZodObject<{
5073
5079
  };
5074
5080
  tickets: string[];
5075
5081
  canRegister: boolean;
5076
- isYouth: boolean;
5082
+ youthOrAdult: YouthOrAdult;
5077
5083
  location?: string | undefined;
5078
5084
  ticketsStepDescription?: string | undefined;
5079
5085
  participantStepDescription?: string | undefined;
@@ -5165,10 +5171,11 @@ declare const zEventConfig: z.ZodObject<{
5165
5171
  */
5166
5172
  canRegister: z.ZodBoolean;
5167
5173
  /**
5168
- * If true, the tournament is youth only.
5169
- * example: registration requires a date of birth to confirm.
5174
+ * Defines the registration of youth and adults in the event
5175
+ * youth_only - only youth
5176
+ * both - both youth and adult
5170
5177
  */
5171
- isYouth: z.ZodBoolean;
5178
+ youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
5172
5179
  /**
5173
5180
  * If true, free form donation amounts are disabled.
5174
5181
  */
@@ -5213,7 +5220,7 @@ declare const zEventConfig: z.ZodObject<{
5213
5220
  };
5214
5221
  tickets: string[];
5215
5222
  canRegister: boolean;
5216
- isYouth: boolean;
5223
+ youthOrAdult: YouthOrAdult;
5217
5224
  editedBy?: string | undefined;
5218
5225
  createdAt?: string | undefined;
5219
5226
  updatedAt?: string | undefined;
@@ -5245,7 +5252,7 @@ declare const zEventConfig: z.ZodObject<{
5245
5252
  };
5246
5253
  tickets: string[];
5247
5254
  canRegister: boolean;
5248
- isYouth: boolean;
5255
+ youthOrAdult: YouthOrAdult;
5249
5256
  editedBy?: string | undefined;
5250
5257
  createdAt?: string | undefined;
5251
5258
  updatedAt?: string | undefined;
@@ -5291,7 +5298,7 @@ declare const zEventConfigResponse: z.ZodObject<{
5291
5298
  ticketsStepDescription: z.ZodOptional<z.ZodString>;
5292
5299
  participantStepDescription: z.ZodOptional<z.ZodString>;
5293
5300
  canRegister: z.ZodBoolean;
5294
- isYouth: z.ZodBoolean;
5301
+ youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
5295
5302
  donationsDisabled: z.ZodOptional<z.ZodBoolean>;
5296
5303
  image: z.ZodOptional<z.ZodObject<{
5297
5304
  url: z.ZodString;
@@ -5376,7 +5383,7 @@ declare const zEventConfigResponse: z.ZodObject<{
5376
5383
  maxPerOrder?: number | undefined;
5377
5384
  }[];
5378
5385
  canRegister: boolean;
5379
- isYouth: boolean;
5386
+ youthOrAdult: YouthOrAdult;
5380
5387
  editedBy?: string | undefined;
5381
5388
  createdAt?: string | undefined;
5382
5389
  updatedAt?: string | undefined;
@@ -5419,7 +5426,7 @@ declare const zEventConfigResponse: z.ZodObject<{
5419
5426
  maxPerOrder?: number | undefined;
5420
5427
  }[];
5421
5428
  canRegister: boolean;
5422
- isYouth: boolean;
5429
+ youthOrAdult: YouthOrAdult;
5423
5430
  editedBy?: string | undefined;
5424
5431
  createdAt?: string | undefined;
5425
5432
  updatedAt?: string | undefined;
@@ -6715,4 +6722,4 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
6715
6722
  type LoginRequest = z.infer<typeof zLoginRequest>;
6716
6723
  type LoginResponse = z.infer<typeof zLoginResponse>;
6717
6724
 
6718
- export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTimesInput, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, DayOfWeek, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, FeesInCents, GoRank, type GroupBooking, type GroupTracker, type GroupTrackerResponse, HearAboutUs, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type PublicEventConfigResponse, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type TrackerCreate, type Tuition, type User, type UserRoles, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserRoles };
6725
+ export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTimesInput, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, DayOfWeek, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, FeesInCents, GoRank, type GroupBooking, type GroupTracker, type GroupTrackerResponse, HearAboutUs, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type PublicEventConfigResponse, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type TrackerCreate, type Tuition, type User, type UserRoles, YouthOrAdult, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserRoles };
package/index.d.ts CHANGED
@@ -4922,6 +4922,11 @@ declare const zSemester: z.ZodObject<{
4922
4922
  type BSemester = z.infer<typeof zBSemester>;
4923
4923
  type Semester = z.infer<typeof zSemester>;
4924
4924
 
4925
+ declare enum YouthOrAdult {
4926
+ YOUTH_ONLY = "youth_only",
4927
+ BOTH = "both"
4928
+ }
4929
+
4925
4930
  declare const zBEventConfig: z.ZodObject<{
4926
4931
  /**
4927
4932
  * Location of the event
@@ -5003,10 +5008,11 @@ declare const zBEventConfig: z.ZodObject<{
5003
5008
  */
5004
5009
  canRegister: z.ZodBoolean;
5005
5010
  /**
5006
- * If true, the tournament is youth only.
5007
- * example: registration requires a date of birth to confirm.
5011
+ * Defines the registration of youth and adults in the event
5012
+ * youth_only - only youth
5013
+ * both - both youth and adult
5008
5014
  */
5009
- isYouth: z.ZodBoolean;
5015
+ youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
5010
5016
  /**
5011
5017
  * If true, free form donation amounts are disabled.
5012
5018
  */
@@ -5045,7 +5051,7 @@ declare const zBEventConfig: z.ZodObject<{
5045
5051
  };
5046
5052
  tickets: string[];
5047
5053
  canRegister: boolean;
5048
- isYouth: boolean;
5054
+ youthOrAdult: YouthOrAdult;
5049
5055
  location?: string | undefined;
5050
5056
  ticketsStepDescription?: string | undefined;
5051
5057
  participantStepDescription?: string | undefined;
@@ -5073,7 +5079,7 @@ declare const zBEventConfig: z.ZodObject<{
5073
5079
  };
5074
5080
  tickets: string[];
5075
5081
  canRegister: boolean;
5076
- isYouth: boolean;
5082
+ youthOrAdult: YouthOrAdult;
5077
5083
  location?: string | undefined;
5078
5084
  ticketsStepDescription?: string | undefined;
5079
5085
  participantStepDescription?: string | undefined;
@@ -5165,10 +5171,11 @@ declare const zEventConfig: z.ZodObject<{
5165
5171
  */
5166
5172
  canRegister: z.ZodBoolean;
5167
5173
  /**
5168
- * If true, the tournament is youth only.
5169
- * example: registration requires a date of birth to confirm.
5174
+ * Defines the registration of youth and adults in the event
5175
+ * youth_only - only youth
5176
+ * both - both youth and adult
5170
5177
  */
5171
- isYouth: z.ZodBoolean;
5178
+ youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
5172
5179
  /**
5173
5180
  * If true, free form donation amounts are disabled.
5174
5181
  */
@@ -5213,7 +5220,7 @@ declare const zEventConfig: z.ZodObject<{
5213
5220
  };
5214
5221
  tickets: string[];
5215
5222
  canRegister: boolean;
5216
- isYouth: boolean;
5223
+ youthOrAdult: YouthOrAdult;
5217
5224
  editedBy?: string | undefined;
5218
5225
  createdAt?: string | undefined;
5219
5226
  updatedAt?: string | undefined;
@@ -5245,7 +5252,7 @@ declare const zEventConfig: z.ZodObject<{
5245
5252
  };
5246
5253
  tickets: string[];
5247
5254
  canRegister: boolean;
5248
- isYouth: boolean;
5255
+ youthOrAdult: YouthOrAdult;
5249
5256
  editedBy?: string | undefined;
5250
5257
  createdAt?: string | undefined;
5251
5258
  updatedAt?: string | undefined;
@@ -5291,7 +5298,7 @@ declare const zEventConfigResponse: z.ZodObject<{
5291
5298
  ticketsStepDescription: z.ZodOptional<z.ZodString>;
5292
5299
  participantStepDescription: z.ZodOptional<z.ZodString>;
5293
5300
  canRegister: z.ZodBoolean;
5294
- isYouth: z.ZodBoolean;
5301
+ youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
5295
5302
  donationsDisabled: z.ZodOptional<z.ZodBoolean>;
5296
5303
  image: z.ZodOptional<z.ZodObject<{
5297
5304
  url: z.ZodString;
@@ -5376,7 +5383,7 @@ declare const zEventConfigResponse: z.ZodObject<{
5376
5383
  maxPerOrder?: number | undefined;
5377
5384
  }[];
5378
5385
  canRegister: boolean;
5379
- isYouth: boolean;
5386
+ youthOrAdult: YouthOrAdult;
5380
5387
  editedBy?: string | undefined;
5381
5388
  createdAt?: string | undefined;
5382
5389
  updatedAt?: string | undefined;
@@ -5419,7 +5426,7 @@ declare const zEventConfigResponse: z.ZodObject<{
5419
5426
  maxPerOrder?: number | undefined;
5420
5427
  }[];
5421
5428
  canRegister: boolean;
5422
- isYouth: boolean;
5429
+ youthOrAdult: YouthOrAdult;
5423
5430
  editedBy?: string | undefined;
5424
5431
  createdAt?: string | undefined;
5425
5432
  updatedAt?: string | undefined;
@@ -6715,4 +6722,4 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
6715
6722
  type LoginRequest = z.infer<typeof zLoginRequest>;
6716
6723
  type LoginResponse = z.infer<typeof zLoginResponse>;
6717
6724
 
6718
- export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTimesInput, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, DayOfWeek, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, FeesInCents, GoRank, type GroupBooking, type GroupTracker, type GroupTrackerResponse, HearAboutUs, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type PublicEventConfigResponse, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type TrackerCreate, type Tuition, type User, type UserRoles, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserRoles };
6725
+ export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTimesInput, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, DayOfWeek, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, FeesInCents, GoRank, type GroupBooking, type GroupTracker, type GroupTrackerResponse, HearAboutUs, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type PublicEventConfigResponse, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type TrackerCreate, type Tuition, type User, type UserRoles, YouthOrAdult, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserRoles };
package/index.js CHANGED
@@ -34,6 +34,7 @@ __export(index_exports, {
34
34
  Role: () => Role,
35
35
  Season: () => Season,
36
36
  TicketStatus: () => TicketStatus,
37
+ YouthOrAdult: () => YouthOrAdult,
37
38
  zAttendance: () => zAttendance,
38
39
  zAttendanceRequest: () => zAttendanceRequest,
39
40
  zAttendanceResponse: () => zAttendanceResponse,
@@ -809,6 +810,13 @@ var zScheduleTable = import_zod28.z.object({
809
810
  data: import_zod28.z.record(import_zod28.z.string(), zTable)
810
811
  });
811
812
 
813
+ // src/interface/event/youthOrAdult.ts
814
+ var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
815
+ YouthOrAdult2["YOUTH_ONLY"] = "youth_only";
816
+ YouthOrAdult2["BOTH"] = "both";
817
+ return YouthOrAdult2;
818
+ })(YouthOrAdult || {});
819
+
812
820
  // src/interface/event/eConfig.ts
813
821
  var zBEventConfig = import_zod29.z.object({
814
822
  /**
@@ -873,10 +881,11 @@ var zBEventConfig = import_zod29.z.object({
873
881
  */
874
882
  canRegister: import_zod29.z.boolean(),
875
883
  /**
876
- * If true, the tournament is youth only.
877
- * example: registration requires a date of birth to confirm.
884
+ * Defines the registration of youth and adults in the event
885
+ * youth_only - only youth
886
+ * both - both youth and adult
878
887
  */
879
- isYouth: import_zod29.z.boolean(),
888
+ youthOrAdult: import_zod29.z.nativeEnum(YouthOrAdult),
880
889
  /**
881
890
  * If true, free form donation amounts are disabled.
882
891
  */
@@ -941,6 +950,7 @@ var zEventRegResponse = zEventReg.extend({
941
950
  Role,
942
951
  Season,
943
952
  TicketStatus,
953
+ YouthOrAdult,
944
954
  zAttendance,
945
955
  zAttendanceRequest,
946
956
  zAttendanceResponse,
package/index.mjs CHANGED
@@ -701,6 +701,13 @@ var zScheduleTable = z28.object({
701
701
  data: z28.record(z28.string(), zTable)
702
702
  });
703
703
 
704
+ // src/interface/event/youthOrAdult.ts
705
+ var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
706
+ YouthOrAdult2["YOUTH_ONLY"] = "youth_only";
707
+ YouthOrAdult2["BOTH"] = "both";
708
+ return YouthOrAdult2;
709
+ })(YouthOrAdult || {});
710
+
704
711
  // src/interface/event/eConfig.ts
705
712
  var zBEventConfig = z29.object({
706
713
  /**
@@ -765,10 +772,11 @@ var zBEventConfig = z29.object({
765
772
  */
766
773
  canRegister: z29.boolean(),
767
774
  /**
768
- * If true, the tournament is youth only.
769
- * example: registration requires a date of birth to confirm.
775
+ * Defines the registration of youth and adults in the event
776
+ * youth_only - only youth
777
+ * both - both youth and adult
770
778
  */
771
- isYouth: z29.boolean(),
779
+ youthOrAdult: z29.nativeEnum(YouthOrAdult),
772
780
  /**
773
781
  * If true, free form donation amounts are disabled.
774
782
  */
@@ -832,6 +840,7 @@ export {
832
840
  Role,
833
841
  Season,
834
842
  TicketStatus,
843
+ YouthOrAdult,
835
844
  zAttendance,
836
845
  zAttendanceRequest,
837
846
  zAttendanceResponse,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -9,12 +9,12 @@
9
9
  "zod": ">=3.25.46"
10
10
  },
11
11
  "devDependencies": {
12
- "@changesets/cli": "^2.29.5",
12
+ "@changesets/cli": "^2.29.7",
13
13
  "husky": "^9.1.7",
14
- "lint-staged": "^16.1.2",
14
+ "lint-staged": "^16.2.6",
15
15
  "prettier": "^3.6.2",
16
- "tsup": "^8.5.0",
17
- "typescript": "^5.9.2"
16
+ "tsup": "^8.5.1",
17
+ "typescript": "^5.9.3"
18
18
  },
19
19
  "lint-staged": {
20
20
  "*.{js,ts,md}": "prettier --write"