@nyig/models 0.6.2 → 0.6.4

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 +28 -142
  2. package/index.d.ts +28 -142
  3. package/index.js +35 -52
  4. package/index.mjs +35 -50
  5. package/package.json +1 -1
package/index.d.mts CHANGED
@@ -2375,8 +2375,7 @@ declare enum CourseCategory {
2375
2375
 
2376
2376
  declare enum NYIGSchool {
2377
2377
  MANHATTAN = "Manhattan",
2378
- LITTLENECK = "Little Neck",
2379
- ONLINE = "Online"
2378
+ LITTLENECK = "Little Neck"
2380
2379
  }
2381
2380
 
2382
2381
  declare const zBCourse: z.ZodObject<{
@@ -6522,33 +6521,15 @@ declare const zBEventConfig: z.ZodObject<{
6522
6521
  */
6523
6522
  description: z.ZodString;
6524
6523
  /**
6525
- * Defines the tournament details table with 2 columns
6526
- * typically Time and Event
6524
+ * @deprecated
6525
+ * info in description field, kept for backwards compatibility
6527
6526
  */
6528
- details: z.ZodObject<{
6529
- fields: z.ZodArray<z.ZodString, "many">;
6530
- data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
6531
- }, "strip", z.ZodTypeAny, {
6532
- fields: string[];
6533
- data: Record<string, string>[];
6534
- }, {
6535
- fields: string[];
6536
- data: Record<string, string>[];
6537
- }>;
6527
+ details: z.ZodOptional<z.ZodAny>;
6538
6528
  /**
6539
- * Defines the tournament schedule.
6540
- * data is a map of tab title -> 2 column table rows.
6529
+ * @deprecated
6530
+ * info in description field, kept for backwards compatibility
6541
6531
  */
6542
- schedule: z.ZodObject<{
6543
- fields: z.ZodArray<z.ZodString, "many">;
6544
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
6545
- }, "strip", z.ZodTypeAny, {
6546
- fields: string[];
6547
- data: Record<string, Record<string, string>[]>;
6548
- }, {
6549
- fields: string[];
6550
- data: Record<string, Record<string, string>[]>;
6551
- }>;
6532
+ schedule: z.ZodOptional<z.ZodAny>;
6552
6533
  /**
6553
6534
  * @optional description of the tickets step, shown in service
6554
6535
  * when the customer is on step 1 of the booking page
@@ -6601,17 +6582,11 @@ declare const zBEventConfig: z.ZodObject<{
6601
6582
  tStart: Date;
6602
6583
  tEnd: Date;
6603
6584
  shortDescription: string;
6604
- details: {
6605
- fields: string[];
6606
- data: Record<string, string>[];
6607
- };
6608
- schedule: {
6609
- fields: string[];
6610
- data: Record<string, Record<string, string>[]>;
6611
- };
6612
6585
  tickets: string[];
6613
6586
  canRegister: boolean;
6614
6587
  location?: string | undefined;
6588
+ details?: any;
6589
+ schedule?: any;
6615
6590
  ticketsStepDescription?: string | undefined;
6616
6591
  participantStepDescription?: string | undefined;
6617
6592
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6629,17 +6604,11 @@ declare const zBEventConfig: z.ZodObject<{
6629
6604
  tStart: Date;
6630
6605
  tEnd: Date;
6631
6606
  shortDescription: string;
6632
- details: {
6633
- fields: string[];
6634
- data: Record<string, string>[];
6635
- };
6636
- schedule: {
6637
- fields: string[];
6638
- data: Record<string, Record<string, string>[]>;
6639
- };
6640
6607
  tickets: string[];
6641
6608
  canRegister: boolean;
6642
6609
  location?: string | undefined;
6610
+ details?: any;
6611
+ schedule?: any;
6643
6612
  ticketsStepDescription?: string | undefined;
6644
6613
  participantStepDescription?: string | undefined;
6645
6614
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6685,33 +6654,15 @@ declare const zEventConfig: z.ZodObject<{
6685
6654
  */
6686
6655
  description: z.ZodString;
6687
6656
  /**
6688
- * Defines the tournament details table with 2 columns
6689
- * typically Time and Event
6657
+ * @deprecated
6658
+ * info in description field, kept for backwards compatibility
6690
6659
  */
6691
- details: z.ZodObject<{
6692
- fields: z.ZodArray<z.ZodString, "many">;
6693
- data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
6694
- }, "strip", z.ZodTypeAny, {
6695
- fields: string[];
6696
- data: Record<string, string>[];
6697
- }, {
6698
- fields: string[];
6699
- data: Record<string, string>[];
6700
- }>;
6660
+ details: z.ZodOptional<z.ZodAny>;
6701
6661
  /**
6702
- * Defines the tournament schedule.
6703
- * data is a map of tab title -> 2 column table rows.
6662
+ * @deprecated
6663
+ * info in description field, kept for backwards compatibility
6704
6664
  */
6705
- schedule: z.ZodObject<{
6706
- fields: z.ZodArray<z.ZodString, "many">;
6707
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
6708
- }, "strip", z.ZodTypeAny, {
6709
- fields: string[];
6710
- data: Record<string, Record<string, string>[]>;
6711
- }, {
6712
- fields: string[];
6713
- data: Record<string, Record<string, string>[]>;
6714
- }>;
6665
+ schedule: z.ZodOptional<z.ZodAny>;
6715
6666
  /**
6716
6667
  * @optional description of the tickets step, shown in service
6717
6668
  * when the customer is on step 1 of the booking page
@@ -6770,20 +6721,14 @@ declare const zEventConfig: z.ZodObject<{
6770
6721
  tStart: Date;
6771
6722
  tEnd: Date;
6772
6723
  shortDescription: string;
6773
- details: {
6774
- fields: string[];
6775
- data: Record<string, string>[];
6776
- };
6777
- schedule: {
6778
- fields: string[];
6779
- data: Record<string, Record<string, string>[]>;
6780
- };
6781
6724
  tickets: string[];
6782
6725
  canRegister: boolean;
6783
6726
  editedBy?: string | undefined;
6784
6727
  createdAt?: string | undefined;
6785
6728
  updatedAt?: string | undefined;
6786
6729
  location?: string | undefined;
6730
+ details?: any;
6731
+ schedule?: any;
6787
6732
  ticketsStepDescription?: string | undefined;
6788
6733
  participantStepDescription?: string | undefined;
6789
6734
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6802,20 +6747,14 @@ declare const zEventConfig: z.ZodObject<{
6802
6747
  tStart: Date;
6803
6748
  tEnd: Date;
6804
6749
  shortDescription: string;
6805
- details: {
6806
- fields: string[];
6807
- data: Record<string, string>[];
6808
- };
6809
- schedule: {
6810
- fields: string[];
6811
- data: Record<string, Record<string, string>[]>;
6812
- };
6813
6750
  tickets: string[];
6814
6751
  canRegister: boolean;
6815
6752
  editedBy?: string | undefined;
6816
6753
  createdAt?: string | undefined;
6817
6754
  updatedAt?: string | undefined;
6818
6755
  location?: string | undefined;
6756
+ details?: any;
6757
+ schedule?: any;
6819
6758
  ticketsStepDescription?: string | undefined;
6820
6759
  participantStepDescription?: string | undefined;
6821
6760
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6835,26 +6774,8 @@ declare const zEventConfigResponse: z.ZodObject<{
6835
6774
  tEnd: z.ZodDate;
6836
6775
  shortDescription: z.ZodString;
6837
6776
  description: z.ZodString;
6838
- details: z.ZodObject<{
6839
- fields: z.ZodArray<z.ZodString, "many">;
6840
- data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
6841
- }, "strip", z.ZodTypeAny, {
6842
- fields: string[];
6843
- data: Record<string, string>[];
6844
- }, {
6845
- fields: string[];
6846
- data: Record<string, string>[];
6847
- }>;
6848
- schedule: z.ZodObject<{
6849
- fields: z.ZodArray<z.ZodString, "many">;
6850
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
6851
- }, "strip", z.ZodTypeAny, {
6852
- fields: string[];
6853
- data: Record<string, Record<string, string>[]>;
6854
- }, {
6855
- fields: string[];
6856
- data: Record<string, Record<string, string>[]>;
6857
- }>;
6777
+ details: z.ZodOptional<z.ZodAny>;
6778
+ schedule: z.ZodOptional<z.ZodAny>;
6858
6779
  ticketsStepDescription: z.ZodOptional<z.ZodString>;
6859
6780
  participantStepDescription: z.ZodOptional<z.ZodString>;
6860
6781
  canRegister: z.ZodBoolean;
@@ -6922,14 +6843,6 @@ declare const zEventConfigResponse: z.ZodObject<{
6922
6843
  tStart: Date;
6923
6844
  tEnd: Date;
6924
6845
  shortDescription: string;
6925
- details: {
6926
- fields: string[];
6927
- data: Record<string, string>[];
6928
- };
6929
- schedule: {
6930
- fields: string[];
6931
- data: Record<string, Record<string, string>[]>;
6932
- };
6933
6846
  tickets: {
6934
6847
  _id: string;
6935
6848
  name: string;
@@ -6947,6 +6860,8 @@ declare const zEventConfigResponse: z.ZodObject<{
6947
6860
  createdAt?: string | undefined;
6948
6861
  updatedAt?: string | undefined;
6949
6862
  location?: string | undefined;
6863
+ details?: any;
6864
+ schedule?: any;
6950
6865
  ticketsStepDescription?: string | undefined;
6951
6866
  participantStepDescription?: string | undefined;
6952
6867
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6965,14 +6880,6 @@ declare const zEventConfigResponse: z.ZodObject<{
6965
6880
  tStart: Date;
6966
6881
  tEnd: Date;
6967
6882
  shortDescription: string;
6968
- details: {
6969
- fields: string[];
6970
- data: Record<string, string>[];
6971
- };
6972
- schedule: {
6973
- fields: string[];
6974
- data: Record<string, Record<string, string>[]>;
6975
- };
6976
6883
  tickets: {
6977
6884
  _id: string;
6978
6885
  name: string;
@@ -6990,6 +6897,8 @@ declare const zEventConfigResponse: z.ZodObject<{
6990
6897
  createdAt?: string | undefined;
6991
6898
  updatedAt?: string | undefined;
6992
6899
  location?: string | undefined;
6900
+ details?: any;
6901
+ schedule?: any;
6993
6902
  ticketsStepDescription?: string | undefined;
6994
6903
  participantStepDescription?: string | undefined;
6995
6904
  youthOrAdult?: YouthOrAdult | undefined;
@@ -7016,29 +6925,6 @@ interface PublicEventConfigResponse extends EventConfigResponse {
7016
6925
  };
7017
6926
  }
7018
6927
 
7019
- declare const zDetailsTable: z.ZodObject<{
7020
- fields: z.ZodArray<z.ZodString, "many">;
7021
- data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
7022
- }, "strip", z.ZodTypeAny, {
7023
- fields: string[];
7024
- data: Record<string, string>[];
7025
- }, {
7026
- fields: string[];
7027
- data: Record<string, string>[];
7028
- }>;
7029
- declare const zScheduleTable: z.ZodObject<{
7030
- fields: z.ZodArray<z.ZodString, "many">;
7031
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
7032
- }, "strip", z.ZodTypeAny, {
7033
- fields: string[];
7034
- data: Record<string, Record<string, string>[]>;
7035
- }, {
7036
- fields: string[];
7037
- data: Record<string, Record<string, string>[]>;
7038
- }>;
7039
- type DetailsTable = z.infer<typeof zDetailsTable>;
7040
- type ScheduleTable = z.infer<typeof zScheduleTable>;
7041
-
7042
6928
  declare const zBEventReg: z.ZodObject<{
7043
6929
  agaId: z.ZodString;
7044
6930
  tournamentId: z.ZodString;
@@ -8933,4 +8819,4 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
8933
8819
  type LoginRequest = z.infer<typeof zLoginRequest>;
8934
8820
  type LoginResponse = z.infer<typeof zLoginResponse>;
8935
8821
 
8936
- 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 UserProfile, 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, zBUserProfile, 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, zUserProfile, zUserRoles };
8822
+ 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 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, 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 UserProfile, 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, zBUserProfile, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserProfile, zUserRoles };
package/index.d.ts CHANGED
@@ -2375,8 +2375,7 @@ declare enum CourseCategory {
2375
2375
 
2376
2376
  declare enum NYIGSchool {
2377
2377
  MANHATTAN = "Manhattan",
2378
- LITTLENECK = "Little Neck",
2379
- ONLINE = "Online"
2378
+ LITTLENECK = "Little Neck"
2380
2379
  }
2381
2380
 
2382
2381
  declare const zBCourse: z.ZodObject<{
@@ -6522,33 +6521,15 @@ declare const zBEventConfig: z.ZodObject<{
6522
6521
  */
6523
6522
  description: z.ZodString;
6524
6523
  /**
6525
- * Defines the tournament details table with 2 columns
6526
- * typically Time and Event
6524
+ * @deprecated
6525
+ * info in description field, kept for backwards compatibility
6527
6526
  */
6528
- details: z.ZodObject<{
6529
- fields: z.ZodArray<z.ZodString, "many">;
6530
- data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
6531
- }, "strip", z.ZodTypeAny, {
6532
- fields: string[];
6533
- data: Record<string, string>[];
6534
- }, {
6535
- fields: string[];
6536
- data: Record<string, string>[];
6537
- }>;
6527
+ details: z.ZodOptional<z.ZodAny>;
6538
6528
  /**
6539
- * Defines the tournament schedule.
6540
- * data is a map of tab title -> 2 column table rows.
6529
+ * @deprecated
6530
+ * info in description field, kept for backwards compatibility
6541
6531
  */
6542
- schedule: z.ZodObject<{
6543
- fields: z.ZodArray<z.ZodString, "many">;
6544
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
6545
- }, "strip", z.ZodTypeAny, {
6546
- fields: string[];
6547
- data: Record<string, Record<string, string>[]>;
6548
- }, {
6549
- fields: string[];
6550
- data: Record<string, Record<string, string>[]>;
6551
- }>;
6532
+ schedule: z.ZodOptional<z.ZodAny>;
6552
6533
  /**
6553
6534
  * @optional description of the tickets step, shown in service
6554
6535
  * when the customer is on step 1 of the booking page
@@ -6601,17 +6582,11 @@ declare const zBEventConfig: z.ZodObject<{
6601
6582
  tStart: Date;
6602
6583
  tEnd: Date;
6603
6584
  shortDescription: string;
6604
- details: {
6605
- fields: string[];
6606
- data: Record<string, string>[];
6607
- };
6608
- schedule: {
6609
- fields: string[];
6610
- data: Record<string, Record<string, string>[]>;
6611
- };
6612
6585
  tickets: string[];
6613
6586
  canRegister: boolean;
6614
6587
  location?: string | undefined;
6588
+ details?: any;
6589
+ schedule?: any;
6615
6590
  ticketsStepDescription?: string | undefined;
6616
6591
  participantStepDescription?: string | undefined;
6617
6592
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6629,17 +6604,11 @@ declare const zBEventConfig: z.ZodObject<{
6629
6604
  tStart: Date;
6630
6605
  tEnd: Date;
6631
6606
  shortDescription: string;
6632
- details: {
6633
- fields: string[];
6634
- data: Record<string, string>[];
6635
- };
6636
- schedule: {
6637
- fields: string[];
6638
- data: Record<string, Record<string, string>[]>;
6639
- };
6640
6607
  tickets: string[];
6641
6608
  canRegister: boolean;
6642
6609
  location?: string | undefined;
6610
+ details?: any;
6611
+ schedule?: any;
6643
6612
  ticketsStepDescription?: string | undefined;
6644
6613
  participantStepDescription?: string | undefined;
6645
6614
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6685,33 +6654,15 @@ declare const zEventConfig: z.ZodObject<{
6685
6654
  */
6686
6655
  description: z.ZodString;
6687
6656
  /**
6688
- * Defines the tournament details table with 2 columns
6689
- * typically Time and Event
6657
+ * @deprecated
6658
+ * info in description field, kept for backwards compatibility
6690
6659
  */
6691
- details: z.ZodObject<{
6692
- fields: z.ZodArray<z.ZodString, "many">;
6693
- data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
6694
- }, "strip", z.ZodTypeAny, {
6695
- fields: string[];
6696
- data: Record<string, string>[];
6697
- }, {
6698
- fields: string[];
6699
- data: Record<string, string>[];
6700
- }>;
6660
+ details: z.ZodOptional<z.ZodAny>;
6701
6661
  /**
6702
- * Defines the tournament schedule.
6703
- * data is a map of tab title -> 2 column table rows.
6662
+ * @deprecated
6663
+ * info in description field, kept for backwards compatibility
6704
6664
  */
6705
- schedule: z.ZodObject<{
6706
- fields: z.ZodArray<z.ZodString, "many">;
6707
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
6708
- }, "strip", z.ZodTypeAny, {
6709
- fields: string[];
6710
- data: Record<string, Record<string, string>[]>;
6711
- }, {
6712
- fields: string[];
6713
- data: Record<string, Record<string, string>[]>;
6714
- }>;
6665
+ schedule: z.ZodOptional<z.ZodAny>;
6715
6666
  /**
6716
6667
  * @optional description of the tickets step, shown in service
6717
6668
  * when the customer is on step 1 of the booking page
@@ -6770,20 +6721,14 @@ declare const zEventConfig: z.ZodObject<{
6770
6721
  tStart: Date;
6771
6722
  tEnd: Date;
6772
6723
  shortDescription: string;
6773
- details: {
6774
- fields: string[];
6775
- data: Record<string, string>[];
6776
- };
6777
- schedule: {
6778
- fields: string[];
6779
- data: Record<string, Record<string, string>[]>;
6780
- };
6781
6724
  tickets: string[];
6782
6725
  canRegister: boolean;
6783
6726
  editedBy?: string | undefined;
6784
6727
  createdAt?: string | undefined;
6785
6728
  updatedAt?: string | undefined;
6786
6729
  location?: string | undefined;
6730
+ details?: any;
6731
+ schedule?: any;
6787
6732
  ticketsStepDescription?: string | undefined;
6788
6733
  participantStepDescription?: string | undefined;
6789
6734
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6802,20 +6747,14 @@ declare const zEventConfig: z.ZodObject<{
6802
6747
  tStart: Date;
6803
6748
  tEnd: Date;
6804
6749
  shortDescription: string;
6805
- details: {
6806
- fields: string[];
6807
- data: Record<string, string>[];
6808
- };
6809
- schedule: {
6810
- fields: string[];
6811
- data: Record<string, Record<string, string>[]>;
6812
- };
6813
6750
  tickets: string[];
6814
6751
  canRegister: boolean;
6815
6752
  editedBy?: string | undefined;
6816
6753
  createdAt?: string | undefined;
6817
6754
  updatedAt?: string | undefined;
6818
6755
  location?: string | undefined;
6756
+ details?: any;
6757
+ schedule?: any;
6819
6758
  ticketsStepDescription?: string | undefined;
6820
6759
  participantStepDescription?: string | undefined;
6821
6760
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6835,26 +6774,8 @@ declare const zEventConfigResponse: z.ZodObject<{
6835
6774
  tEnd: z.ZodDate;
6836
6775
  shortDescription: z.ZodString;
6837
6776
  description: z.ZodString;
6838
- details: z.ZodObject<{
6839
- fields: z.ZodArray<z.ZodString, "many">;
6840
- data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
6841
- }, "strip", z.ZodTypeAny, {
6842
- fields: string[];
6843
- data: Record<string, string>[];
6844
- }, {
6845
- fields: string[];
6846
- data: Record<string, string>[];
6847
- }>;
6848
- schedule: z.ZodObject<{
6849
- fields: z.ZodArray<z.ZodString, "many">;
6850
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
6851
- }, "strip", z.ZodTypeAny, {
6852
- fields: string[];
6853
- data: Record<string, Record<string, string>[]>;
6854
- }, {
6855
- fields: string[];
6856
- data: Record<string, Record<string, string>[]>;
6857
- }>;
6777
+ details: z.ZodOptional<z.ZodAny>;
6778
+ schedule: z.ZodOptional<z.ZodAny>;
6858
6779
  ticketsStepDescription: z.ZodOptional<z.ZodString>;
6859
6780
  participantStepDescription: z.ZodOptional<z.ZodString>;
6860
6781
  canRegister: z.ZodBoolean;
@@ -6922,14 +6843,6 @@ declare const zEventConfigResponse: z.ZodObject<{
6922
6843
  tStart: Date;
6923
6844
  tEnd: Date;
6924
6845
  shortDescription: string;
6925
- details: {
6926
- fields: string[];
6927
- data: Record<string, string>[];
6928
- };
6929
- schedule: {
6930
- fields: string[];
6931
- data: Record<string, Record<string, string>[]>;
6932
- };
6933
6846
  tickets: {
6934
6847
  _id: string;
6935
6848
  name: string;
@@ -6947,6 +6860,8 @@ declare const zEventConfigResponse: z.ZodObject<{
6947
6860
  createdAt?: string | undefined;
6948
6861
  updatedAt?: string | undefined;
6949
6862
  location?: string | undefined;
6863
+ details?: any;
6864
+ schedule?: any;
6950
6865
  ticketsStepDescription?: string | undefined;
6951
6866
  participantStepDescription?: string | undefined;
6952
6867
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6965,14 +6880,6 @@ declare const zEventConfigResponse: z.ZodObject<{
6965
6880
  tStart: Date;
6966
6881
  tEnd: Date;
6967
6882
  shortDescription: string;
6968
- details: {
6969
- fields: string[];
6970
- data: Record<string, string>[];
6971
- };
6972
- schedule: {
6973
- fields: string[];
6974
- data: Record<string, Record<string, string>[]>;
6975
- };
6976
6883
  tickets: {
6977
6884
  _id: string;
6978
6885
  name: string;
@@ -6990,6 +6897,8 @@ declare const zEventConfigResponse: z.ZodObject<{
6990
6897
  createdAt?: string | undefined;
6991
6898
  updatedAt?: string | undefined;
6992
6899
  location?: string | undefined;
6900
+ details?: any;
6901
+ schedule?: any;
6993
6902
  ticketsStepDescription?: string | undefined;
6994
6903
  participantStepDescription?: string | undefined;
6995
6904
  youthOrAdult?: YouthOrAdult | undefined;
@@ -7016,29 +6925,6 @@ interface PublicEventConfigResponse extends EventConfigResponse {
7016
6925
  };
7017
6926
  }
7018
6927
 
7019
- declare const zDetailsTable: z.ZodObject<{
7020
- fields: z.ZodArray<z.ZodString, "many">;
7021
- data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
7022
- }, "strip", z.ZodTypeAny, {
7023
- fields: string[];
7024
- data: Record<string, string>[];
7025
- }, {
7026
- fields: string[];
7027
- data: Record<string, string>[];
7028
- }>;
7029
- declare const zScheduleTable: z.ZodObject<{
7030
- fields: z.ZodArray<z.ZodString, "many">;
7031
- data: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
7032
- }, "strip", z.ZodTypeAny, {
7033
- fields: string[];
7034
- data: Record<string, Record<string, string>[]>;
7035
- }, {
7036
- fields: string[];
7037
- data: Record<string, Record<string, string>[]>;
7038
- }>;
7039
- type DetailsTable = z.infer<typeof zDetailsTable>;
7040
- type ScheduleTable = z.infer<typeof zScheduleTable>;
7041
-
7042
6928
  declare const zBEventReg: z.ZodObject<{
7043
6929
  agaId: z.ZodString;
7044
6930
  tournamentId: z.ZodString;
@@ -8933,4 +8819,4 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
8933
8819
  type LoginRequest = z.infer<typeof zLoginRequest>;
8934
8820
  type LoginResponse = z.infer<typeof zLoginResponse>;
8935
8821
 
8936
- 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 UserProfile, 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, zBUserProfile, 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, zUserProfile, zUserRoles };
8822
+ 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 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, 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 UserProfile, 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, zBUserProfile, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserProfile, zUserRoles };
package/index.js CHANGED
@@ -69,7 +69,6 @@ __export(index_exports, {
69
69
  zCourseTable: () => zCourseTable,
70
70
  zCreateAdminAccountRequest: () => zCreateAdminAccountRequest,
71
71
  zDayOfWeek: () => zDayOfWeek,
72
- zDetailsTable: () => zDetailsTable,
73
72
  zDiscount: () => zDiscount,
74
73
  zEventConfig: () => zEventConfig,
75
74
  zEventConfigResponse: () => zEventConfigResponse,
@@ -93,7 +92,6 @@ __export(index_exports, {
93
92
  zReportTicket: () => zReportTicket,
94
93
  zReportTicketResponse: () => zReportTicketResponse,
95
94
  zScheduleData: () => zScheduleData,
96
- zScheduleTable: () => zScheduleTable,
97
95
  zSemester: () => zSemester,
98
96
  zStudent: () => zStudent,
99
97
  zTeacher: () => zTeacher,
@@ -445,7 +443,6 @@ var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
445
443
  var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
446
444
  NYIGSchool2["MANHATTAN"] = "Manhattan";
447
445
  NYIGSchool2["LITTLENECK"] = "Little Neck";
448
- NYIGSchool2["ONLINE"] = "Online";
449
446
  return NYIGSchool2;
450
447
  })(NYIGSchool || {});
451
448
 
@@ -798,7 +795,7 @@ var zReportTicketResponse = zReportTicket.extend({
798
795
  });
799
796
 
800
797
  // src/interface/event/eConfig.ts
801
- var import_zod30 = require("zod");
798
+ var import_zod29 = require("zod");
802
799
 
803
800
  // src/interface/event/eTicket.ts
804
801
  var import_zod28 = require("zod");
@@ -827,18 +824,6 @@ var zBEventTicket = import_zod28.z.object({
827
824
  });
828
825
  var zEventTicket = addAutoProps(zBEventTicket);
829
826
 
830
- // src/interface/event/table.ts
831
- var import_zod29 = require("zod");
832
- var zTable = import_zod29.z.array(import_zod29.z.record(import_zod29.z.string(), import_zod29.z.string()));
833
- var zDetailsTable = import_zod29.z.object({
834
- fields: import_zod29.z.array(import_zod29.z.string()).length(2),
835
- data: zTable
836
- });
837
- var zScheduleTable = import_zod29.z.object({
838
- fields: import_zod29.z.array(import_zod29.z.string()).length(2),
839
- data: import_zod29.z.record(import_zod29.z.string(), zTable)
840
- });
841
-
842
827
  // src/interface/event/youthOrAdult.ts
843
828
  var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
844
829
  YouthOrAdult2["YOUTH_ONLY"] = "youth_only";
@@ -847,78 +832,78 @@ var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
847
832
  })(YouthOrAdult || {});
848
833
 
849
834
  // src/interface/event/eConfig.ts
850
- var zBEventConfig = import_zod30.z.object({
835
+ var zBEventConfig = import_zod29.z.object({
851
836
  /**
852
837
  * Location of the event
853
838
  */
854
- location: import_zod30.z.string().optional(),
839
+ location: import_zod29.z.string().optional(),
855
840
  /**
856
841
  * URL of the tournament on the official website
857
842
  * Must be a valid URL link
858
843
  */
859
- url: import_zod30.z.string(),
844
+ url: import_zod29.z.string(),
860
845
  /**
861
846
  * Full name of the tournament
862
847
  */
863
- title: import_zod30.z.string().min(5),
848
+ title: import_zod29.z.string().min(5),
864
849
  /**
865
850
  * Abbreviated title of the tournament
866
851
  */
867
- shortTitle: import_zod30.z.string().min(2),
852
+ shortTitle: import_zod29.z.string().min(2),
868
853
  /**
869
854
  * Tournament start date and time
870
855
  */
871
- tStart: import_zod30.z.coerce.date(),
856
+ tStart: import_zod29.z.coerce.date(),
872
857
  /**
873
858
  * Tournament end date and time
874
859
  */
875
- tEnd: import_zod30.z.coerce.date(),
860
+ tEnd: import_zod29.z.coerce.date(),
876
861
  /**
877
862
  * Short description for tournament card
878
863
  */
879
- shortDescription: import_zod30.z.string().min(5),
864
+ shortDescription: import_zod29.z.string().min(5),
880
865
  /**
881
866
  * Full description
882
867
  */
883
- description: import_zod30.z.string().min(5),
868
+ description: import_zod29.z.string().min(5),
884
869
  /**
885
- * Defines the tournament details table with 2 columns
886
- * typically Time and Event
870
+ * @deprecated
871
+ * info in description field, kept for backwards compatibility
887
872
  */
888
- details: zDetailsTable,
873
+ details: import_zod29.z.any().optional(),
889
874
  /**
890
- * Defines the tournament schedule.
891
- * data is a map of tab title -> 2 column table rows.
875
+ * @deprecated
876
+ * info in description field, kept for backwards compatibility
892
877
  */
893
- schedule: zScheduleTable,
878
+ schedule: import_zod29.z.any().optional(),
894
879
  /**
895
880
  * @optional description of the tickets step, shown in service
896
881
  * when the customer is on step 1 of the booking page
897
882
  */
898
- ticketsStepDescription: import_zod30.z.string().optional(),
883
+ ticketsStepDescription: import_zod29.z.string().optional(),
899
884
  /**
900
885
  * @optional description of the participant step, shown in service
901
886
  * when the customer is on step 2 of the booking page
902
887
  */
903
- participantStepDescription: import_zod30.z.string().optional(),
888
+ participantStepDescription: import_zod29.z.string().optional(),
904
889
  /**
905
890
  * List of ticket object IDs for this tournament
906
891
  */
907
- tickets: import_zod30.z.array(import_zod30.z.string()),
892
+ tickets: import_zod29.z.array(import_zod29.z.string()),
908
893
  /**
909
894
  * If false, the tournament registration is closed
910
895
  */
911
- canRegister: import_zod30.z.boolean(),
896
+ canRegister: import_zod29.z.boolean(),
912
897
  /**
913
898
  * Defines the registration of youth and adults in the event
914
899
  * youth_only - only youth
915
900
  * both - both youth and adult
916
901
  */
917
- youthOrAdult: import_zod30.z.nativeEnum(YouthOrAdult).optional(),
902
+ youthOrAdult: import_zod29.z.nativeEnum(YouthOrAdult).optional(),
918
903
  /**
919
904
  * If true, free form donation amounts are disabled.
920
905
  */
921
- donationsDisabled: import_zod30.z.boolean().optional(),
906
+ donationsDisabled: import_zod29.z.boolean().optional(),
922
907
  /**
923
908
  * Defines URL, height, width of the image
924
909
  */
@@ -926,42 +911,42 @@ var zBEventConfig = import_zod30.z.object({
926
911
  });
927
912
  var zEventConfig = addAutoProps(zBEventConfig);
928
913
  var zEventConfigResponse = zEventConfig.extend({
929
- tickets: import_zod30.z.array(zEventTicket)
914
+ tickets: import_zod29.z.array(zEventTicket)
930
915
  });
931
916
 
932
917
  // src/interface/event/eReg.ts
933
- var import_zod32 = require("zod");
918
+ var import_zod31 = require("zod");
934
919
 
935
920
  // src/interface/event/eTicketReg.ts
936
- var import_zod31 = require("zod");
937
- var zEventTicketReg = import_zod31.z.object({
938
- ticket: import_zod31.z.string(),
921
+ var import_zod30 = require("zod");
922
+ var zEventTicketReg = import_zod30.z.object({
923
+ ticket: import_zod30.z.string(),
939
924
  /**
940
925
  * integer minimum 1, otherwise no ticket is being bought
941
926
  */
942
- amount: import_zod31.z.number().int().min(1)
927
+ amount: import_zod30.z.number().int().min(1)
943
928
  });
944
929
  var zEventTicketRegResponse = zEventTicketReg.extend({
945
930
  ticket: zEventTicket
946
931
  });
947
932
 
948
933
  // src/interface/event/eReg.ts
949
- var zBEventReg = import_zod32.z.object({
950
- agaId: import_zod32.z.string(),
951
- tournamentId: import_zod32.z.string(),
952
- tickets: import_zod32.z.array(zEventTicketReg),
934
+ var zBEventReg = import_zod31.z.object({
935
+ agaId: import_zod31.z.string(),
936
+ tournamentId: import_zod31.z.string(),
937
+ tickets: import_zod31.z.array(zEventTicketReg),
953
938
  /**
954
939
  * @units CENTS - Donation in cents
955
940
  */
956
- donation: import_zod32.z.coerce.number().optional(),
941
+ donation: import_zod31.z.coerce.number().optional(),
957
942
  /**
958
943
  * How the registration was created, through public endpoint or admin
959
944
  */
960
- createMethod: import_zod32.z.string().optional()
945
+ createMethod: import_zod31.z.string().optional()
961
946
  }).merge(zBUserInfo).merge(zBPaymentInfo);
962
947
  var zEventReg = addAutoProps(zBEventReg);
963
948
  var zEventRegResponse = zEventReg.extend({
964
- tickets: import_zod32.z.array(zEventTicketRegResponse)
949
+ tickets: import_zod31.z.array(zEventTicketRegResponse)
965
950
  });
966
951
  // Annotate the CommonJS export names for ESM import in node:
967
952
  0 && (module.exports = {
@@ -1014,7 +999,6 @@ var zEventRegResponse = zEventReg.extend({
1014
999
  zCourseTable,
1015
1000
  zCreateAdminAccountRequest,
1016
1001
  zDayOfWeek,
1017
- zDetailsTable,
1018
1002
  zDiscount,
1019
1003
  zEventConfig,
1020
1004
  zEventConfigResponse,
@@ -1038,7 +1022,6 @@ var zEventRegResponse = zEventReg.extend({
1038
1022
  zReportTicket,
1039
1023
  zReportTicketResponse,
1040
1024
  zScheduleData,
1041
- zScheduleTable,
1042
1025
  zSemester,
1043
1026
  zStudent,
1044
1027
  zTeacher,
package/index.mjs CHANGED
@@ -334,7 +334,6 @@ var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
334
334
  var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
335
335
  NYIGSchool2["MANHATTAN"] = "Manhattan";
336
336
  NYIGSchool2["LITTLENECK"] = "Little Neck";
337
- NYIGSchool2["ONLINE"] = "Online";
338
337
  return NYIGSchool2;
339
338
  })(NYIGSchool || {});
340
339
 
@@ -687,7 +686,7 @@ var zReportTicketResponse = zReportTicket.extend({
687
686
  });
688
687
 
689
688
  // src/interface/event/eConfig.ts
690
- import { z as z30 } from "zod";
689
+ import { z as z29 } from "zod";
691
690
 
692
691
  // src/interface/event/eTicket.ts
693
692
  import { z as z28 } from "zod";
@@ -716,18 +715,6 @@ var zBEventTicket = z28.object({
716
715
  });
717
716
  var zEventTicket = addAutoProps(zBEventTicket);
718
717
 
719
- // src/interface/event/table.ts
720
- import { z as z29 } from "zod";
721
- var zTable = z29.array(z29.record(z29.string(), z29.string()));
722
- var zDetailsTable = z29.object({
723
- fields: z29.array(z29.string()).length(2),
724
- data: zTable
725
- });
726
- var zScheduleTable = z29.object({
727
- fields: z29.array(z29.string()).length(2),
728
- data: z29.record(z29.string(), zTable)
729
- });
730
-
731
718
  // src/interface/event/youthOrAdult.ts
732
719
  var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
733
720
  YouthOrAdult2["YOUTH_ONLY"] = "youth_only";
@@ -736,78 +723,78 @@ var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
736
723
  })(YouthOrAdult || {});
737
724
 
738
725
  // src/interface/event/eConfig.ts
739
- var zBEventConfig = z30.object({
726
+ var zBEventConfig = z29.object({
740
727
  /**
741
728
  * Location of the event
742
729
  */
743
- location: z30.string().optional(),
730
+ location: z29.string().optional(),
744
731
  /**
745
732
  * URL of the tournament on the official website
746
733
  * Must be a valid URL link
747
734
  */
748
- url: z30.string(),
735
+ url: z29.string(),
749
736
  /**
750
737
  * Full name of the tournament
751
738
  */
752
- title: z30.string().min(5),
739
+ title: z29.string().min(5),
753
740
  /**
754
741
  * Abbreviated title of the tournament
755
742
  */
756
- shortTitle: z30.string().min(2),
743
+ shortTitle: z29.string().min(2),
757
744
  /**
758
745
  * Tournament start date and time
759
746
  */
760
- tStart: z30.coerce.date(),
747
+ tStart: z29.coerce.date(),
761
748
  /**
762
749
  * Tournament end date and time
763
750
  */
764
- tEnd: z30.coerce.date(),
751
+ tEnd: z29.coerce.date(),
765
752
  /**
766
753
  * Short description for tournament card
767
754
  */
768
- shortDescription: z30.string().min(5),
755
+ shortDescription: z29.string().min(5),
769
756
  /**
770
757
  * Full description
771
758
  */
772
- description: z30.string().min(5),
759
+ description: z29.string().min(5),
773
760
  /**
774
- * Defines the tournament details table with 2 columns
775
- * typically Time and Event
761
+ * @deprecated
762
+ * info in description field, kept for backwards compatibility
776
763
  */
777
- details: zDetailsTable,
764
+ details: z29.any().optional(),
778
765
  /**
779
- * Defines the tournament schedule.
780
- * data is a map of tab title -> 2 column table rows.
766
+ * @deprecated
767
+ * info in description field, kept for backwards compatibility
781
768
  */
782
- schedule: zScheduleTable,
769
+ schedule: z29.any().optional(),
783
770
  /**
784
771
  * @optional description of the tickets step, shown in service
785
772
  * when the customer is on step 1 of the booking page
786
773
  */
787
- ticketsStepDescription: z30.string().optional(),
774
+ ticketsStepDescription: z29.string().optional(),
788
775
  /**
789
776
  * @optional description of the participant step, shown in service
790
777
  * when the customer is on step 2 of the booking page
791
778
  */
792
- participantStepDescription: z30.string().optional(),
779
+ participantStepDescription: z29.string().optional(),
793
780
  /**
794
781
  * List of ticket object IDs for this tournament
795
782
  */
796
- tickets: z30.array(z30.string()),
783
+ tickets: z29.array(z29.string()),
797
784
  /**
798
785
  * If false, the tournament registration is closed
799
786
  */
800
- canRegister: z30.boolean(),
787
+ canRegister: z29.boolean(),
801
788
  /**
802
789
  * Defines the registration of youth and adults in the event
803
790
  * youth_only - only youth
804
791
  * both - both youth and adult
805
792
  */
806
- youthOrAdult: z30.nativeEnum(YouthOrAdult).optional(),
793
+ youthOrAdult: z29.nativeEnum(YouthOrAdult).optional(),
807
794
  /**
808
795
  * If true, free form donation amounts are disabled.
809
796
  */
810
- donationsDisabled: z30.boolean().optional(),
797
+ donationsDisabled: z29.boolean().optional(),
811
798
  /**
812
799
  * Defines URL, height, width of the image
813
800
  */
@@ -815,42 +802,42 @@ var zBEventConfig = z30.object({
815
802
  });
816
803
  var zEventConfig = addAutoProps(zBEventConfig);
817
804
  var zEventConfigResponse = zEventConfig.extend({
818
- tickets: z30.array(zEventTicket)
805
+ tickets: z29.array(zEventTicket)
819
806
  });
820
807
 
821
808
  // src/interface/event/eReg.ts
822
- import { z as z32 } from "zod";
809
+ import { z as z31 } from "zod";
823
810
 
824
811
  // src/interface/event/eTicketReg.ts
825
- import { z as z31 } from "zod";
826
- var zEventTicketReg = z31.object({
827
- ticket: z31.string(),
812
+ import { z as z30 } from "zod";
813
+ var zEventTicketReg = z30.object({
814
+ ticket: z30.string(),
828
815
  /**
829
816
  * integer minimum 1, otherwise no ticket is being bought
830
817
  */
831
- amount: z31.number().int().min(1)
818
+ amount: z30.number().int().min(1)
832
819
  });
833
820
  var zEventTicketRegResponse = zEventTicketReg.extend({
834
821
  ticket: zEventTicket
835
822
  });
836
823
 
837
824
  // src/interface/event/eReg.ts
838
- var zBEventReg = z32.object({
839
- agaId: z32.string(),
840
- tournamentId: z32.string(),
841
- tickets: z32.array(zEventTicketReg),
825
+ var zBEventReg = z31.object({
826
+ agaId: z31.string(),
827
+ tournamentId: z31.string(),
828
+ tickets: z31.array(zEventTicketReg),
842
829
  /**
843
830
  * @units CENTS - Donation in cents
844
831
  */
845
- donation: z32.coerce.number().optional(),
832
+ donation: z31.coerce.number().optional(),
846
833
  /**
847
834
  * How the registration was created, through public endpoint or admin
848
835
  */
849
- createMethod: z32.string().optional()
836
+ createMethod: z31.string().optional()
850
837
  }).merge(zBUserInfo).merge(zBPaymentInfo);
851
838
  var zEventReg = addAutoProps(zBEventReg);
852
839
  var zEventRegResponse = zEventReg.extend({
853
- tickets: z32.array(zEventTicketRegResponse)
840
+ tickets: z31.array(zEventTicketRegResponse)
854
841
  });
855
842
  export {
856
843
  AgeGroup,
@@ -902,7 +889,6 @@ export {
902
889
  zCourseTable,
903
890
  zCreateAdminAccountRequest,
904
891
  zDayOfWeek,
905
- zDetailsTable,
906
892
  zDiscount,
907
893
  zEventConfig,
908
894
  zEventConfigResponse,
@@ -926,7 +912,6 @@ export {
926
912
  zReportTicket,
927
913
  zReportTicketResponse,
928
914
  zScheduleData,
929
- zScheduleTable,
930
915
  zSemester,
931
916
  zStudent,
932
917
  zTeacher,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",