@nyig/models 0.6.2 → 0.6.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 +27 -140
- package/index.d.ts +27 -140
- package/index.js +35 -51
- package/index.mjs +35 -49
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -6522,33 +6522,15 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
6522
6522
|
*/
|
|
6523
6523
|
description: z.ZodString;
|
|
6524
6524
|
/**
|
|
6525
|
-
*
|
|
6526
|
-
*
|
|
6525
|
+
* @deprecated
|
|
6526
|
+
* info in description field, kept for backwards compatibility
|
|
6527
6527
|
*/
|
|
6528
|
-
details: z.
|
|
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
|
-
}>;
|
|
6528
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
6538
6529
|
/**
|
|
6539
|
-
*
|
|
6540
|
-
*
|
|
6530
|
+
* @deprecated
|
|
6531
|
+
* info in description field, kept for backwards compatibility
|
|
6541
6532
|
*/
|
|
6542
|
-
schedule: z.
|
|
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
|
-
}>;
|
|
6533
|
+
schedule: z.ZodOptional<z.ZodAny>;
|
|
6552
6534
|
/**
|
|
6553
6535
|
* @optional description of the tickets step, shown in service
|
|
6554
6536
|
* when the customer is on step 1 of the booking page
|
|
@@ -6601,17 +6583,11 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
6601
6583
|
tStart: Date;
|
|
6602
6584
|
tEnd: Date;
|
|
6603
6585
|
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
6586
|
tickets: string[];
|
|
6613
6587
|
canRegister: boolean;
|
|
6614
6588
|
location?: string | undefined;
|
|
6589
|
+
details?: any;
|
|
6590
|
+
schedule?: any;
|
|
6615
6591
|
ticketsStepDescription?: string | undefined;
|
|
6616
6592
|
participantStepDescription?: string | undefined;
|
|
6617
6593
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -6629,17 +6605,11 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
6629
6605
|
tStart: Date;
|
|
6630
6606
|
tEnd: Date;
|
|
6631
6607
|
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
6608
|
tickets: string[];
|
|
6641
6609
|
canRegister: boolean;
|
|
6642
6610
|
location?: string | undefined;
|
|
6611
|
+
details?: any;
|
|
6612
|
+
schedule?: any;
|
|
6643
6613
|
ticketsStepDescription?: string | undefined;
|
|
6644
6614
|
participantStepDescription?: string | undefined;
|
|
6645
6615
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -6685,33 +6655,15 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
6685
6655
|
*/
|
|
6686
6656
|
description: z.ZodString;
|
|
6687
6657
|
/**
|
|
6688
|
-
*
|
|
6689
|
-
*
|
|
6658
|
+
* @deprecated
|
|
6659
|
+
* info in description field, kept for backwards compatibility
|
|
6690
6660
|
*/
|
|
6691
|
-
details: z.
|
|
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
|
-
}>;
|
|
6661
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
6701
6662
|
/**
|
|
6702
|
-
*
|
|
6703
|
-
*
|
|
6663
|
+
* @deprecated
|
|
6664
|
+
* info in description field, kept for backwards compatibility
|
|
6704
6665
|
*/
|
|
6705
|
-
schedule: z.
|
|
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
|
-
}>;
|
|
6666
|
+
schedule: z.ZodOptional<z.ZodAny>;
|
|
6715
6667
|
/**
|
|
6716
6668
|
* @optional description of the tickets step, shown in service
|
|
6717
6669
|
* when the customer is on step 1 of the booking page
|
|
@@ -6770,20 +6722,14 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
6770
6722
|
tStart: Date;
|
|
6771
6723
|
tEnd: Date;
|
|
6772
6724
|
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
6725
|
tickets: string[];
|
|
6782
6726
|
canRegister: boolean;
|
|
6783
6727
|
editedBy?: string | undefined;
|
|
6784
6728
|
createdAt?: string | undefined;
|
|
6785
6729
|
updatedAt?: string | undefined;
|
|
6786
6730
|
location?: string | undefined;
|
|
6731
|
+
details?: any;
|
|
6732
|
+
schedule?: any;
|
|
6787
6733
|
ticketsStepDescription?: string | undefined;
|
|
6788
6734
|
participantStepDescription?: string | undefined;
|
|
6789
6735
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -6802,20 +6748,14 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
6802
6748
|
tStart: Date;
|
|
6803
6749
|
tEnd: Date;
|
|
6804
6750
|
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
6751
|
tickets: string[];
|
|
6814
6752
|
canRegister: boolean;
|
|
6815
6753
|
editedBy?: string | undefined;
|
|
6816
6754
|
createdAt?: string | undefined;
|
|
6817
6755
|
updatedAt?: string | undefined;
|
|
6818
6756
|
location?: string | undefined;
|
|
6757
|
+
details?: any;
|
|
6758
|
+
schedule?: any;
|
|
6819
6759
|
ticketsStepDescription?: string | undefined;
|
|
6820
6760
|
participantStepDescription?: string | undefined;
|
|
6821
6761
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -6835,26 +6775,8 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
6835
6775
|
tEnd: z.ZodDate;
|
|
6836
6776
|
shortDescription: z.ZodString;
|
|
6837
6777
|
description: z.ZodString;
|
|
6838
|
-
details: z.
|
|
6839
|
-
|
|
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
|
-
}>;
|
|
6778
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
6779
|
+
schedule: z.ZodOptional<z.ZodAny>;
|
|
6858
6780
|
ticketsStepDescription: z.ZodOptional<z.ZodString>;
|
|
6859
6781
|
participantStepDescription: z.ZodOptional<z.ZodString>;
|
|
6860
6782
|
canRegister: z.ZodBoolean;
|
|
@@ -6922,14 +6844,6 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
6922
6844
|
tStart: Date;
|
|
6923
6845
|
tEnd: Date;
|
|
6924
6846
|
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
6847
|
tickets: {
|
|
6934
6848
|
_id: string;
|
|
6935
6849
|
name: string;
|
|
@@ -6947,6 +6861,8 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
6947
6861
|
createdAt?: string | undefined;
|
|
6948
6862
|
updatedAt?: string | undefined;
|
|
6949
6863
|
location?: string | undefined;
|
|
6864
|
+
details?: any;
|
|
6865
|
+
schedule?: any;
|
|
6950
6866
|
ticketsStepDescription?: string | undefined;
|
|
6951
6867
|
participantStepDescription?: string | undefined;
|
|
6952
6868
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -6965,14 +6881,6 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
6965
6881
|
tStart: Date;
|
|
6966
6882
|
tEnd: Date;
|
|
6967
6883
|
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
6884
|
tickets: {
|
|
6977
6885
|
_id: string;
|
|
6978
6886
|
name: string;
|
|
@@ -6990,6 +6898,8 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
6990
6898
|
createdAt?: string | undefined;
|
|
6991
6899
|
updatedAt?: string | undefined;
|
|
6992
6900
|
location?: string | undefined;
|
|
6901
|
+
details?: any;
|
|
6902
|
+
schedule?: any;
|
|
6993
6903
|
ticketsStepDescription?: string | undefined;
|
|
6994
6904
|
participantStepDescription?: string | undefined;
|
|
6995
6905
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -7016,29 +6926,6 @@ interface PublicEventConfigResponse extends EventConfigResponse {
|
|
|
7016
6926
|
};
|
|
7017
6927
|
}
|
|
7018
6928
|
|
|
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
6929
|
declare const zBEventReg: z.ZodObject<{
|
|
7043
6930
|
agaId: z.ZodString;
|
|
7044
6931
|
tournamentId: z.ZodString;
|
|
@@ -8933,4 +8820,4 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
|
|
|
8933
8820
|
type LoginRequest = z.infer<typeof zLoginRequest>;
|
|
8934
8821
|
type LoginResponse = z.infer<typeof zLoginResponse>;
|
|
8935
8822
|
|
|
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
|
|
8823
|
+
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
|
@@ -6522,33 +6522,15 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
6522
6522
|
*/
|
|
6523
6523
|
description: z.ZodString;
|
|
6524
6524
|
/**
|
|
6525
|
-
*
|
|
6526
|
-
*
|
|
6525
|
+
* @deprecated
|
|
6526
|
+
* info in description field, kept for backwards compatibility
|
|
6527
6527
|
*/
|
|
6528
|
-
details: z.
|
|
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
|
-
}>;
|
|
6528
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
6538
6529
|
/**
|
|
6539
|
-
*
|
|
6540
|
-
*
|
|
6530
|
+
* @deprecated
|
|
6531
|
+
* info in description field, kept for backwards compatibility
|
|
6541
6532
|
*/
|
|
6542
|
-
schedule: z.
|
|
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
|
-
}>;
|
|
6533
|
+
schedule: z.ZodOptional<z.ZodAny>;
|
|
6552
6534
|
/**
|
|
6553
6535
|
* @optional description of the tickets step, shown in service
|
|
6554
6536
|
* when the customer is on step 1 of the booking page
|
|
@@ -6601,17 +6583,11 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
6601
6583
|
tStart: Date;
|
|
6602
6584
|
tEnd: Date;
|
|
6603
6585
|
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
6586
|
tickets: string[];
|
|
6613
6587
|
canRegister: boolean;
|
|
6614
6588
|
location?: string | undefined;
|
|
6589
|
+
details?: any;
|
|
6590
|
+
schedule?: any;
|
|
6615
6591
|
ticketsStepDescription?: string | undefined;
|
|
6616
6592
|
participantStepDescription?: string | undefined;
|
|
6617
6593
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -6629,17 +6605,11 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
6629
6605
|
tStart: Date;
|
|
6630
6606
|
tEnd: Date;
|
|
6631
6607
|
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
6608
|
tickets: string[];
|
|
6641
6609
|
canRegister: boolean;
|
|
6642
6610
|
location?: string | undefined;
|
|
6611
|
+
details?: any;
|
|
6612
|
+
schedule?: any;
|
|
6643
6613
|
ticketsStepDescription?: string | undefined;
|
|
6644
6614
|
participantStepDescription?: string | undefined;
|
|
6645
6615
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -6685,33 +6655,15 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
6685
6655
|
*/
|
|
6686
6656
|
description: z.ZodString;
|
|
6687
6657
|
/**
|
|
6688
|
-
*
|
|
6689
|
-
*
|
|
6658
|
+
* @deprecated
|
|
6659
|
+
* info in description field, kept for backwards compatibility
|
|
6690
6660
|
*/
|
|
6691
|
-
details: z.
|
|
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
|
-
}>;
|
|
6661
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
6701
6662
|
/**
|
|
6702
|
-
*
|
|
6703
|
-
*
|
|
6663
|
+
* @deprecated
|
|
6664
|
+
* info in description field, kept for backwards compatibility
|
|
6704
6665
|
*/
|
|
6705
|
-
schedule: z.
|
|
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
|
-
}>;
|
|
6666
|
+
schedule: z.ZodOptional<z.ZodAny>;
|
|
6715
6667
|
/**
|
|
6716
6668
|
* @optional description of the tickets step, shown in service
|
|
6717
6669
|
* when the customer is on step 1 of the booking page
|
|
@@ -6770,20 +6722,14 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
6770
6722
|
tStart: Date;
|
|
6771
6723
|
tEnd: Date;
|
|
6772
6724
|
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
6725
|
tickets: string[];
|
|
6782
6726
|
canRegister: boolean;
|
|
6783
6727
|
editedBy?: string | undefined;
|
|
6784
6728
|
createdAt?: string | undefined;
|
|
6785
6729
|
updatedAt?: string | undefined;
|
|
6786
6730
|
location?: string | undefined;
|
|
6731
|
+
details?: any;
|
|
6732
|
+
schedule?: any;
|
|
6787
6733
|
ticketsStepDescription?: string | undefined;
|
|
6788
6734
|
participantStepDescription?: string | undefined;
|
|
6789
6735
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -6802,20 +6748,14 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
6802
6748
|
tStart: Date;
|
|
6803
6749
|
tEnd: Date;
|
|
6804
6750
|
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
6751
|
tickets: string[];
|
|
6814
6752
|
canRegister: boolean;
|
|
6815
6753
|
editedBy?: string | undefined;
|
|
6816
6754
|
createdAt?: string | undefined;
|
|
6817
6755
|
updatedAt?: string | undefined;
|
|
6818
6756
|
location?: string | undefined;
|
|
6757
|
+
details?: any;
|
|
6758
|
+
schedule?: any;
|
|
6819
6759
|
ticketsStepDescription?: string | undefined;
|
|
6820
6760
|
participantStepDescription?: string | undefined;
|
|
6821
6761
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -6835,26 +6775,8 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
6835
6775
|
tEnd: z.ZodDate;
|
|
6836
6776
|
shortDescription: z.ZodString;
|
|
6837
6777
|
description: z.ZodString;
|
|
6838
|
-
details: z.
|
|
6839
|
-
|
|
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
|
-
}>;
|
|
6778
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
6779
|
+
schedule: z.ZodOptional<z.ZodAny>;
|
|
6858
6780
|
ticketsStepDescription: z.ZodOptional<z.ZodString>;
|
|
6859
6781
|
participantStepDescription: z.ZodOptional<z.ZodString>;
|
|
6860
6782
|
canRegister: z.ZodBoolean;
|
|
@@ -6922,14 +6844,6 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
6922
6844
|
tStart: Date;
|
|
6923
6845
|
tEnd: Date;
|
|
6924
6846
|
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
6847
|
tickets: {
|
|
6934
6848
|
_id: string;
|
|
6935
6849
|
name: string;
|
|
@@ -6947,6 +6861,8 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
6947
6861
|
createdAt?: string | undefined;
|
|
6948
6862
|
updatedAt?: string | undefined;
|
|
6949
6863
|
location?: string | undefined;
|
|
6864
|
+
details?: any;
|
|
6865
|
+
schedule?: any;
|
|
6950
6866
|
ticketsStepDescription?: string | undefined;
|
|
6951
6867
|
participantStepDescription?: string | undefined;
|
|
6952
6868
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -6965,14 +6881,6 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
6965
6881
|
tStart: Date;
|
|
6966
6882
|
tEnd: Date;
|
|
6967
6883
|
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
6884
|
tickets: {
|
|
6977
6885
|
_id: string;
|
|
6978
6886
|
name: string;
|
|
@@ -6990,6 +6898,8 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
6990
6898
|
createdAt?: string | undefined;
|
|
6991
6899
|
updatedAt?: string | undefined;
|
|
6992
6900
|
location?: string | undefined;
|
|
6901
|
+
details?: any;
|
|
6902
|
+
schedule?: any;
|
|
6993
6903
|
ticketsStepDescription?: string | undefined;
|
|
6994
6904
|
participantStepDescription?: string | undefined;
|
|
6995
6905
|
youthOrAdult?: YouthOrAdult | undefined;
|
|
@@ -7016,29 +6926,6 @@ interface PublicEventConfigResponse extends EventConfigResponse {
|
|
|
7016
6926
|
};
|
|
7017
6927
|
}
|
|
7018
6928
|
|
|
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
6929
|
declare const zBEventReg: z.ZodObject<{
|
|
7043
6930
|
agaId: z.ZodString;
|
|
7044
6931
|
tournamentId: z.ZodString;
|
|
@@ -8933,4 +8820,4 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
|
|
|
8933
8820
|
type LoginRequest = z.infer<typeof zLoginRequest>;
|
|
8934
8821
|
type LoginResponse = z.infer<typeof zLoginResponse>;
|
|
8935
8822
|
|
|
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
|
|
8823
|
+
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,
|
|
@@ -798,7 +796,7 @@ var zReportTicketResponse = zReportTicket.extend({
|
|
|
798
796
|
});
|
|
799
797
|
|
|
800
798
|
// src/interface/event/eConfig.ts
|
|
801
|
-
var
|
|
799
|
+
var import_zod29 = require("zod");
|
|
802
800
|
|
|
803
801
|
// src/interface/event/eTicket.ts
|
|
804
802
|
var import_zod28 = require("zod");
|
|
@@ -827,18 +825,6 @@ var zBEventTicket = import_zod28.z.object({
|
|
|
827
825
|
});
|
|
828
826
|
var zEventTicket = addAutoProps(zBEventTicket);
|
|
829
827
|
|
|
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
828
|
// src/interface/event/youthOrAdult.ts
|
|
843
829
|
var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
|
|
844
830
|
YouthOrAdult2["YOUTH_ONLY"] = "youth_only";
|
|
@@ -847,78 +833,78 @@ var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
|
|
|
847
833
|
})(YouthOrAdult || {});
|
|
848
834
|
|
|
849
835
|
// src/interface/event/eConfig.ts
|
|
850
|
-
var zBEventConfig =
|
|
836
|
+
var zBEventConfig = import_zod29.z.object({
|
|
851
837
|
/**
|
|
852
838
|
* Location of the event
|
|
853
839
|
*/
|
|
854
|
-
location:
|
|
840
|
+
location: import_zod29.z.string().optional(),
|
|
855
841
|
/**
|
|
856
842
|
* URL of the tournament on the official website
|
|
857
843
|
* Must be a valid URL link
|
|
858
844
|
*/
|
|
859
|
-
url:
|
|
845
|
+
url: import_zod29.z.string(),
|
|
860
846
|
/**
|
|
861
847
|
* Full name of the tournament
|
|
862
848
|
*/
|
|
863
|
-
title:
|
|
849
|
+
title: import_zod29.z.string().min(5),
|
|
864
850
|
/**
|
|
865
851
|
* Abbreviated title of the tournament
|
|
866
852
|
*/
|
|
867
|
-
shortTitle:
|
|
853
|
+
shortTitle: import_zod29.z.string().min(2),
|
|
868
854
|
/**
|
|
869
855
|
* Tournament start date and time
|
|
870
856
|
*/
|
|
871
|
-
tStart:
|
|
857
|
+
tStart: import_zod29.z.coerce.date(),
|
|
872
858
|
/**
|
|
873
859
|
* Tournament end date and time
|
|
874
860
|
*/
|
|
875
|
-
tEnd:
|
|
861
|
+
tEnd: import_zod29.z.coerce.date(),
|
|
876
862
|
/**
|
|
877
863
|
* Short description for tournament card
|
|
878
864
|
*/
|
|
879
|
-
shortDescription:
|
|
865
|
+
shortDescription: import_zod29.z.string().min(5),
|
|
880
866
|
/**
|
|
881
867
|
* Full description
|
|
882
868
|
*/
|
|
883
|
-
description:
|
|
869
|
+
description: import_zod29.z.string().min(5),
|
|
884
870
|
/**
|
|
885
|
-
*
|
|
886
|
-
*
|
|
871
|
+
* @deprecated
|
|
872
|
+
* info in description field, kept for backwards compatibility
|
|
887
873
|
*/
|
|
888
|
-
details:
|
|
874
|
+
details: import_zod29.z.any().optional(),
|
|
889
875
|
/**
|
|
890
|
-
*
|
|
891
|
-
*
|
|
876
|
+
* @deprecated
|
|
877
|
+
* info in description field, kept for backwards compatibility
|
|
892
878
|
*/
|
|
893
|
-
schedule:
|
|
879
|
+
schedule: import_zod29.z.any().optional(),
|
|
894
880
|
/**
|
|
895
881
|
* @optional description of the tickets step, shown in service
|
|
896
882
|
* when the customer is on step 1 of the booking page
|
|
897
883
|
*/
|
|
898
|
-
ticketsStepDescription:
|
|
884
|
+
ticketsStepDescription: import_zod29.z.string().optional(),
|
|
899
885
|
/**
|
|
900
886
|
* @optional description of the participant step, shown in service
|
|
901
887
|
* when the customer is on step 2 of the booking page
|
|
902
888
|
*/
|
|
903
|
-
participantStepDescription:
|
|
889
|
+
participantStepDescription: import_zod29.z.string().optional(),
|
|
904
890
|
/**
|
|
905
891
|
* List of ticket object IDs for this tournament
|
|
906
892
|
*/
|
|
907
|
-
tickets:
|
|
893
|
+
tickets: import_zod29.z.array(import_zod29.z.string()),
|
|
908
894
|
/**
|
|
909
895
|
* If false, the tournament registration is closed
|
|
910
896
|
*/
|
|
911
|
-
canRegister:
|
|
897
|
+
canRegister: import_zod29.z.boolean(),
|
|
912
898
|
/**
|
|
913
899
|
* Defines the registration of youth and adults in the event
|
|
914
900
|
* youth_only - only youth
|
|
915
901
|
* both - both youth and adult
|
|
916
902
|
*/
|
|
917
|
-
youthOrAdult:
|
|
903
|
+
youthOrAdult: import_zod29.z.nativeEnum(YouthOrAdult).optional(),
|
|
918
904
|
/**
|
|
919
905
|
* If true, free form donation amounts are disabled.
|
|
920
906
|
*/
|
|
921
|
-
donationsDisabled:
|
|
907
|
+
donationsDisabled: import_zod29.z.boolean().optional(),
|
|
922
908
|
/**
|
|
923
909
|
* Defines URL, height, width of the image
|
|
924
910
|
*/
|
|
@@ -926,42 +912,42 @@ var zBEventConfig = import_zod30.z.object({
|
|
|
926
912
|
});
|
|
927
913
|
var zEventConfig = addAutoProps(zBEventConfig);
|
|
928
914
|
var zEventConfigResponse = zEventConfig.extend({
|
|
929
|
-
tickets:
|
|
915
|
+
tickets: import_zod29.z.array(zEventTicket)
|
|
930
916
|
});
|
|
931
917
|
|
|
932
918
|
// src/interface/event/eReg.ts
|
|
933
|
-
var
|
|
919
|
+
var import_zod31 = require("zod");
|
|
934
920
|
|
|
935
921
|
// src/interface/event/eTicketReg.ts
|
|
936
|
-
var
|
|
937
|
-
var zEventTicketReg =
|
|
938
|
-
ticket:
|
|
922
|
+
var import_zod30 = require("zod");
|
|
923
|
+
var zEventTicketReg = import_zod30.z.object({
|
|
924
|
+
ticket: import_zod30.z.string(),
|
|
939
925
|
/**
|
|
940
926
|
* integer minimum 1, otherwise no ticket is being bought
|
|
941
927
|
*/
|
|
942
|
-
amount:
|
|
928
|
+
amount: import_zod30.z.number().int().min(1)
|
|
943
929
|
});
|
|
944
930
|
var zEventTicketRegResponse = zEventTicketReg.extend({
|
|
945
931
|
ticket: zEventTicket
|
|
946
932
|
});
|
|
947
933
|
|
|
948
934
|
// src/interface/event/eReg.ts
|
|
949
|
-
var zBEventReg =
|
|
950
|
-
agaId:
|
|
951
|
-
tournamentId:
|
|
952
|
-
tickets:
|
|
935
|
+
var zBEventReg = import_zod31.z.object({
|
|
936
|
+
agaId: import_zod31.z.string(),
|
|
937
|
+
tournamentId: import_zod31.z.string(),
|
|
938
|
+
tickets: import_zod31.z.array(zEventTicketReg),
|
|
953
939
|
/**
|
|
954
940
|
* @units CENTS - Donation in cents
|
|
955
941
|
*/
|
|
956
|
-
donation:
|
|
942
|
+
donation: import_zod31.z.coerce.number().optional(),
|
|
957
943
|
/**
|
|
958
944
|
* How the registration was created, through public endpoint or admin
|
|
959
945
|
*/
|
|
960
|
-
createMethod:
|
|
946
|
+
createMethod: import_zod31.z.string().optional()
|
|
961
947
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
962
948
|
var zEventReg = addAutoProps(zBEventReg);
|
|
963
949
|
var zEventRegResponse = zEventReg.extend({
|
|
964
|
-
tickets:
|
|
950
|
+
tickets: import_zod31.z.array(zEventTicketRegResponse)
|
|
965
951
|
});
|
|
966
952
|
// Annotate the CommonJS export names for ESM import in node:
|
|
967
953
|
0 && (module.exports = {
|
|
@@ -1014,7 +1000,6 @@ var zEventRegResponse = zEventReg.extend({
|
|
|
1014
1000
|
zCourseTable,
|
|
1015
1001
|
zCreateAdminAccountRequest,
|
|
1016
1002
|
zDayOfWeek,
|
|
1017
|
-
zDetailsTable,
|
|
1018
1003
|
zDiscount,
|
|
1019
1004
|
zEventConfig,
|
|
1020
1005
|
zEventConfigResponse,
|
|
@@ -1038,7 +1023,6 @@ var zEventRegResponse = zEventReg.extend({
|
|
|
1038
1023
|
zReportTicket,
|
|
1039
1024
|
zReportTicketResponse,
|
|
1040
1025
|
zScheduleData,
|
|
1041
|
-
zScheduleTable,
|
|
1042
1026
|
zSemester,
|
|
1043
1027
|
zStudent,
|
|
1044
1028
|
zTeacher,
|
package/index.mjs
CHANGED
|
@@ -687,7 +687,7 @@ var zReportTicketResponse = zReportTicket.extend({
|
|
|
687
687
|
});
|
|
688
688
|
|
|
689
689
|
// src/interface/event/eConfig.ts
|
|
690
|
-
import { z as
|
|
690
|
+
import { z as z29 } from "zod";
|
|
691
691
|
|
|
692
692
|
// src/interface/event/eTicket.ts
|
|
693
693
|
import { z as z28 } from "zod";
|
|
@@ -716,18 +716,6 @@ var zBEventTicket = z28.object({
|
|
|
716
716
|
});
|
|
717
717
|
var zEventTicket = addAutoProps(zBEventTicket);
|
|
718
718
|
|
|
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
719
|
// src/interface/event/youthOrAdult.ts
|
|
732
720
|
var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
|
|
733
721
|
YouthOrAdult2["YOUTH_ONLY"] = "youth_only";
|
|
@@ -736,78 +724,78 @@ var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
|
|
|
736
724
|
})(YouthOrAdult || {});
|
|
737
725
|
|
|
738
726
|
// src/interface/event/eConfig.ts
|
|
739
|
-
var zBEventConfig =
|
|
727
|
+
var zBEventConfig = z29.object({
|
|
740
728
|
/**
|
|
741
729
|
* Location of the event
|
|
742
730
|
*/
|
|
743
|
-
location:
|
|
731
|
+
location: z29.string().optional(),
|
|
744
732
|
/**
|
|
745
733
|
* URL of the tournament on the official website
|
|
746
734
|
* Must be a valid URL link
|
|
747
735
|
*/
|
|
748
|
-
url:
|
|
736
|
+
url: z29.string(),
|
|
749
737
|
/**
|
|
750
738
|
* Full name of the tournament
|
|
751
739
|
*/
|
|
752
|
-
title:
|
|
740
|
+
title: z29.string().min(5),
|
|
753
741
|
/**
|
|
754
742
|
* Abbreviated title of the tournament
|
|
755
743
|
*/
|
|
756
|
-
shortTitle:
|
|
744
|
+
shortTitle: z29.string().min(2),
|
|
757
745
|
/**
|
|
758
746
|
* Tournament start date and time
|
|
759
747
|
*/
|
|
760
|
-
tStart:
|
|
748
|
+
tStart: z29.coerce.date(),
|
|
761
749
|
/**
|
|
762
750
|
* Tournament end date and time
|
|
763
751
|
*/
|
|
764
|
-
tEnd:
|
|
752
|
+
tEnd: z29.coerce.date(),
|
|
765
753
|
/**
|
|
766
754
|
* Short description for tournament card
|
|
767
755
|
*/
|
|
768
|
-
shortDescription:
|
|
756
|
+
shortDescription: z29.string().min(5),
|
|
769
757
|
/**
|
|
770
758
|
* Full description
|
|
771
759
|
*/
|
|
772
|
-
description:
|
|
760
|
+
description: z29.string().min(5),
|
|
773
761
|
/**
|
|
774
|
-
*
|
|
775
|
-
*
|
|
762
|
+
* @deprecated
|
|
763
|
+
* info in description field, kept for backwards compatibility
|
|
776
764
|
*/
|
|
777
|
-
details:
|
|
765
|
+
details: z29.any().optional(),
|
|
778
766
|
/**
|
|
779
|
-
*
|
|
780
|
-
*
|
|
767
|
+
* @deprecated
|
|
768
|
+
* info in description field, kept for backwards compatibility
|
|
781
769
|
*/
|
|
782
|
-
schedule:
|
|
770
|
+
schedule: z29.any().optional(),
|
|
783
771
|
/**
|
|
784
772
|
* @optional description of the tickets step, shown in service
|
|
785
773
|
* when the customer is on step 1 of the booking page
|
|
786
774
|
*/
|
|
787
|
-
ticketsStepDescription:
|
|
775
|
+
ticketsStepDescription: z29.string().optional(),
|
|
788
776
|
/**
|
|
789
777
|
* @optional description of the participant step, shown in service
|
|
790
778
|
* when the customer is on step 2 of the booking page
|
|
791
779
|
*/
|
|
792
|
-
participantStepDescription:
|
|
780
|
+
participantStepDescription: z29.string().optional(),
|
|
793
781
|
/**
|
|
794
782
|
* List of ticket object IDs for this tournament
|
|
795
783
|
*/
|
|
796
|
-
tickets:
|
|
784
|
+
tickets: z29.array(z29.string()),
|
|
797
785
|
/**
|
|
798
786
|
* If false, the tournament registration is closed
|
|
799
787
|
*/
|
|
800
|
-
canRegister:
|
|
788
|
+
canRegister: z29.boolean(),
|
|
801
789
|
/**
|
|
802
790
|
* Defines the registration of youth and adults in the event
|
|
803
791
|
* youth_only - only youth
|
|
804
792
|
* both - both youth and adult
|
|
805
793
|
*/
|
|
806
|
-
youthOrAdult:
|
|
794
|
+
youthOrAdult: z29.nativeEnum(YouthOrAdult).optional(),
|
|
807
795
|
/**
|
|
808
796
|
* If true, free form donation amounts are disabled.
|
|
809
797
|
*/
|
|
810
|
-
donationsDisabled:
|
|
798
|
+
donationsDisabled: z29.boolean().optional(),
|
|
811
799
|
/**
|
|
812
800
|
* Defines URL, height, width of the image
|
|
813
801
|
*/
|
|
@@ -815,42 +803,42 @@ var zBEventConfig = z30.object({
|
|
|
815
803
|
});
|
|
816
804
|
var zEventConfig = addAutoProps(zBEventConfig);
|
|
817
805
|
var zEventConfigResponse = zEventConfig.extend({
|
|
818
|
-
tickets:
|
|
806
|
+
tickets: z29.array(zEventTicket)
|
|
819
807
|
});
|
|
820
808
|
|
|
821
809
|
// src/interface/event/eReg.ts
|
|
822
|
-
import { z as
|
|
810
|
+
import { z as z31 } from "zod";
|
|
823
811
|
|
|
824
812
|
// src/interface/event/eTicketReg.ts
|
|
825
|
-
import { z as
|
|
826
|
-
var zEventTicketReg =
|
|
827
|
-
ticket:
|
|
813
|
+
import { z as z30 } from "zod";
|
|
814
|
+
var zEventTicketReg = z30.object({
|
|
815
|
+
ticket: z30.string(),
|
|
828
816
|
/**
|
|
829
817
|
* integer minimum 1, otherwise no ticket is being bought
|
|
830
818
|
*/
|
|
831
|
-
amount:
|
|
819
|
+
amount: z30.number().int().min(1)
|
|
832
820
|
});
|
|
833
821
|
var zEventTicketRegResponse = zEventTicketReg.extend({
|
|
834
822
|
ticket: zEventTicket
|
|
835
823
|
});
|
|
836
824
|
|
|
837
825
|
// src/interface/event/eReg.ts
|
|
838
|
-
var zBEventReg =
|
|
839
|
-
agaId:
|
|
840
|
-
tournamentId:
|
|
841
|
-
tickets:
|
|
826
|
+
var zBEventReg = z31.object({
|
|
827
|
+
agaId: z31.string(),
|
|
828
|
+
tournamentId: z31.string(),
|
|
829
|
+
tickets: z31.array(zEventTicketReg),
|
|
842
830
|
/**
|
|
843
831
|
* @units CENTS - Donation in cents
|
|
844
832
|
*/
|
|
845
|
-
donation:
|
|
833
|
+
donation: z31.coerce.number().optional(),
|
|
846
834
|
/**
|
|
847
835
|
* How the registration was created, through public endpoint or admin
|
|
848
836
|
*/
|
|
849
|
-
createMethod:
|
|
837
|
+
createMethod: z31.string().optional()
|
|
850
838
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
851
839
|
var zEventReg = addAutoProps(zBEventReg);
|
|
852
840
|
var zEventRegResponse = zEventReg.extend({
|
|
853
|
-
tickets:
|
|
841
|
+
tickets: z31.array(zEventTicketRegResponse)
|
|
854
842
|
});
|
|
855
843
|
export {
|
|
856
844
|
AgeGroup,
|
|
@@ -902,7 +890,6 @@ export {
|
|
|
902
890
|
zCourseTable,
|
|
903
891
|
zCreateAdminAccountRequest,
|
|
904
892
|
zDayOfWeek,
|
|
905
|
-
zDetailsTable,
|
|
906
893
|
zDiscount,
|
|
907
894
|
zEventConfig,
|
|
908
895
|
zEventConfigResponse,
|
|
@@ -926,7 +913,6 @@ export {
|
|
|
926
913
|
zReportTicket,
|
|
927
914
|
zReportTicketResponse,
|
|
928
915
|
zScheduleData,
|
|
929
|
-
zScheduleTable,
|
|
930
916
|
zSemester,
|
|
931
917
|
zStudent,
|
|
932
918
|
zTeacher,
|