@nyig/models 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.mts +30 -14
- package/index.d.ts +30 -14
- package/index.js +14 -3
- package/index.mjs +13 -3
- package/package.json +5 -5
package/index.d.mts
CHANGED
|
@@ -3516,6 +3516,7 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3516
3516
|
paidAt: z.ZodOptional<z.ZodString>;
|
|
3517
3517
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3518
3518
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3519
|
+
feeLabel: z.ZodOptional<z.ZodString>;
|
|
3519
3520
|
createdBy: z.ZodString;
|
|
3520
3521
|
}, "strip", z.ZodTypeAny, {
|
|
3521
3522
|
billTo: string;
|
|
@@ -3538,6 +3539,7 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3538
3539
|
paid?: PaymentMethod | undefined;
|
|
3539
3540
|
paidAt?: string | undefined;
|
|
3540
3541
|
showEin?: boolean | undefined;
|
|
3542
|
+
feeLabel?: string | undefined;
|
|
3541
3543
|
}, {
|
|
3542
3544
|
billTo: string;
|
|
3543
3545
|
packages: {
|
|
@@ -3559,6 +3561,7 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3559
3561
|
paid?: PaymentMethod | undefined;
|
|
3560
3562
|
paidAt?: string | undefined;
|
|
3561
3563
|
showEin?: boolean | undefined;
|
|
3564
|
+
feeLabel?: string | undefined;
|
|
3562
3565
|
}>;
|
|
3563
3566
|
declare const zInvoice: z.ZodObject<{
|
|
3564
3567
|
billTo: z.ZodString;
|
|
@@ -3608,6 +3611,7 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3608
3611
|
paidAt: z.ZodOptional<z.ZodString>;
|
|
3609
3612
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3610
3613
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3614
|
+
feeLabel: z.ZodOptional<z.ZodString>;
|
|
3611
3615
|
createdBy: z.ZodString;
|
|
3612
3616
|
} & {
|
|
3613
3617
|
_id: z.ZodString;
|
|
@@ -3639,6 +3643,7 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3639
3643
|
paid?: PaymentMethod | undefined;
|
|
3640
3644
|
paidAt?: string | undefined;
|
|
3641
3645
|
showEin?: boolean | undefined;
|
|
3646
|
+
feeLabel?: string | undefined;
|
|
3642
3647
|
}, {
|
|
3643
3648
|
_id: string;
|
|
3644
3649
|
billTo: string;
|
|
@@ -3664,6 +3669,7 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3664
3669
|
paid?: PaymentMethod | undefined;
|
|
3665
3670
|
paidAt?: string | undefined;
|
|
3666
3671
|
showEin?: boolean | undefined;
|
|
3672
|
+
feeLabel?: string | undefined;
|
|
3667
3673
|
}>;
|
|
3668
3674
|
declare const zInvoiceResponse: z.ZodObject<{
|
|
3669
3675
|
billTo: z.ZodString;
|
|
@@ -3683,6 +3689,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
3683
3689
|
paidAt: z.ZodOptional<z.ZodString>;
|
|
3684
3690
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3685
3691
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3692
|
+
feeLabel: z.ZodOptional<z.ZodString>;
|
|
3686
3693
|
_id: z.ZodString;
|
|
3687
3694
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
3688
3695
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -4109,6 +4116,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4109
4116
|
paid?: PaymentMethod | undefined;
|
|
4110
4117
|
paidAt?: string | undefined;
|
|
4111
4118
|
showEin?: boolean | undefined;
|
|
4119
|
+
feeLabel?: string | undefined;
|
|
4112
4120
|
}, {
|
|
4113
4121
|
_id: string;
|
|
4114
4122
|
billTo: string;
|
|
@@ -4207,6 +4215,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4207
4215
|
paid?: PaymentMethod | undefined;
|
|
4208
4216
|
paidAt?: string | undefined;
|
|
4209
4217
|
showEin?: boolean | undefined;
|
|
4218
|
+
feeLabel?: string | undefined;
|
|
4210
4219
|
}>;
|
|
4211
4220
|
type Discount = z.infer<typeof zDiscount>;
|
|
4212
4221
|
type InvoiceItem = z.infer<typeof zInvoiceItem>;
|
|
@@ -4913,6 +4922,11 @@ declare const zSemester: z.ZodObject<{
|
|
|
4913
4922
|
type BSemester = z.infer<typeof zBSemester>;
|
|
4914
4923
|
type Semester = z.infer<typeof zSemester>;
|
|
4915
4924
|
|
|
4925
|
+
declare enum YouthOrAdult {
|
|
4926
|
+
YOUTH_ONLY = "youth_only",
|
|
4927
|
+
BOTH = "both"
|
|
4928
|
+
}
|
|
4929
|
+
|
|
4916
4930
|
declare const zBEventConfig: z.ZodObject<{
|
|
4917
4931
|
/**
|
|
4918
4932
|
* Location of the event
|
|
@@ -4994,10 +5008,11 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
4994
5008
|
*/
|
|
4995
5009
|
canRegister: z.ZodBoolean;
|
|
4996
5010
|
/**
|
|
4997
|
-
*
|
|
4998
|
-
*
|
|
5011
|
+
* Defines the registration of youth and adults in the event
|
|
5012
|
+
* youth_only - only youth
|
|
5013
|
+
* both - both youth and adult
|
|
4999
5014
|
*/
|
|
5000
|
-
|
|
5015
|
+
youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
|
|
5001
5016
|
/**
|
|
5002
5017
|
* If true, free form donation amounts are disabled.
|
|
5003
5018
|
*/
|
|
@@ -5036,7 +5051,7 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
5036
5051
|
};
|
|
5037
5052
|
tickets: string[];
|
|
5038
5053
|
canRegister: boolean;
|
|
5039
|
-
|
|
5054
|
+
youthOrAdult: YouthOrAdult;
|
|
5040
5055
|
location?: string | undefined;
|
|
5041
5056
|
ticketsStepDescription?: string | undefined;
|
|
5042
5057
|
participantStepDescription?: string | undefined;
|
|
@@ -5064,7 +5079,7 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
5064
5079
|
};
|
|
5065
5080
|
tickets: string[];
|
|
5066
5081
|
canRegister: boolean;
|
|
5067
|
-
|
|
5082
|
+
youthOrAdult: YouthOrAdult;
|
|
5068
5083
|
location?: string | undefined;
|
|
5069
5084
|
ticketsStepDescription?: string | undefined;
|
|
5070
5085
|
participantStepDescription?: string | undefined;
|
|
@@ -5156,10 +5171,11 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
5156
5171
|
*/
|
|
5157
5172
|
canRegister: z.ZodBoolean;
|
|
5158
5173
|
/**
|
|
5159
|
-
*
|
|
5160
|
-
*
|
|
5174
|
+
* Defines the registration of youth and adults in the event
|
|
5175
|
+
* youth_only - only youth
|
|
5176
|
+
* both - both youth and adult
|
|
5161
5177
|
*/
|
|
5162
|
-
|
|
5178
|
+
youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
|
|
5163
5179
|
/**
|
|
5164
5180
|
* If true, free form donation amounts are disabled.
|
|
5165
5181
|
*/
|
|
@@ -5204,7 +5220,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
5204
5220
|
};
|
|
5205
5221
|
tickets: string[];
|
|
5206
5222
|
canRegister: boolean;
|
|
5207
|
-
|
|
5223
|
+
youthOrAdult: YouthOrAdult;
|
|
5208
5224
|
editedBy?: string | undefined;
|
|
5209
5225
|
createdAt?: string | undefined;
|
|
5210
5226
|
updatedAt?: string | undefined;
|
|
@@ -5236,7 +5252,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
5236
5252
|
};
|
|
5237
5253
|
tickets: string[];
|
|
5238
5254
|
canRegister: boolean;
|
|
5239
|
-
|
|
5255
|
+
youthOrAdult: YouthOrAdult;
|
|
5240
5256
|
editedBy?: string | undefined;
|
|
5241
5257
|
createdAt?: string | undefined;
|
|
5242
5258
|
updatedAt?: string | undefined;
|
|
@@ -5282,7 +5298,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
5282
5298
|
ticketsStepDescription: z.ZodOptional<z.ZodString>;
|
|
5283
5299
|
participantStepDescription: z.ZodOptional<z.ZodString>;
|
|
5284
5300
|
canRegister: z.ZodBoolean;
|
|
5285
|
-
|
|
5301
|
+
youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
|
|
5286
5302
|
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
5287
5303
|
image: z.ZodOptional<z.ZodObject<{
|
|
5288
5304
|
url: z.ZodString;
|
|
@@ -5367,7 +5383,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
5367
5383
|
maxPerOrder?: number | undefined;
|
|
5368
5384
|
}[];
|
|
5369
5385
|
canRegister: boolean;
|
|
5370
|
-
|
|
5386
|
+
youthOrAdult: YouthOrAdult;
|
|
5371
5387
|
editedBy?: string | undefined;
|
|
5372
5388
|
createdAt?: string | undefined;
|
|
5373
5389
|
updatedAt?: string | undefined;
|
|
@@ -5410,7 +5426,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
5410
5426
|
maxPerOrder?: number | undefined;
|
|
5411
5427
|
}[];
|
|
5412
5428
|
canRegister: boolean;
|
|
5413
|
-
|
|
5429
|
+
youthOrAdult: YouthOrAdult;
|
|
5414
5430
|
editedBy?: string | undefined;
|
|
5415
5431
|
createdAt?: string | undefined;
|
|
5416
5432
|
updatedAt?: string | undefined;
|
|
@@ -6706,4 +6722,4 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
|
|
|
6706
6722
|
type LoginRequest = z.infer<typeof zLoginRequest>;
|
|
6707
6723
|
type LoginResponse = z.infer<typeof zLoginResponse>;
|
|
6708
6724
|
|
|
6709
|
-
export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTimesInput, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, DayOfWeek, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, FeesInCents, GoRank, type GroupBooking, type GroupTracker, type GroupTrackerResponse, HearAboutUs, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type PublicEventConfigResponse, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type TrackerCreate, type Tuition, type User, type UserRoles, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserRoles };
|
|
6725
|
+
export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTimesInput, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, DayOfWeek, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, FeesInCents, GoRank, type GroupBooking, type GroupTracker, type GroupTrackerResponse, HearAboutUs, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type PublicEventConfigResponse, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type TrackerCreate, type Tuition, type User, type UserRoles, YouthOrAdult, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserRoles };
|
package/index.d.ts
CHANGED
|
@@ -3516,6 +3516,7 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3516
3516
|
paidAt: z.ZodOptional<z.ZodString>;
|
|
3517
3517
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3518
3518
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3519
|
+
feeLabel: z.ZodOptional<z.ZodString>;
|
|
3519
3520
|
createdBy: z.ZodString;
|
|
3520
3521
|
}, "strip", z.ZodTypeAny, {
|
|
3521
3522
|
billTo: string;
|
|
@@ -3538,6 +3539,7 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3538
3539
|
paid?: PaymentMethod | undefined;
|
|
3539
3540
|
paidAt?: string | undefined;
|
|
3540
3541
|
showEin?: boolean | undefined;
|
|
3542
|
+
feeLabel?: string | undefined;
|
|
3541
3543
|
}, {
|
|
3542
3544
|
billTo: string;
|
|
3543
3545
|
packages: {
|
|
@@ -3559,6 +3561,7 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3559
3561
|
paid?: PaymentMethod | undefined;
|
|
3560
3562
|
paidAt?: string | undefined;
|
|
3561
3563
|
showEin?: boolean | undefined;
|
|
3564
|
+
feeLabel?: string | undefined;
|
|
3562
3565
|
}>;
|
|
3563
3566
|
declare const zInvoice: z.ZodObject<{
|
|
3564
3567
|
billTo: z.ZodString;
|
|
@@ -3608,6 +3611,7 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3608
3611
|
paidAt: z.ZodOptional<z.ZodString>;
|
|
3609
3612
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3610
3613
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3614
|
+
feeLabel: z.ZodOptional<z.ZodString>;
|
|
3611
3615
|
createdBy: z.ZodString;
|
|
3612
3616
|
} & {
|
|
3613
3617
|
_id: z.ZodString;
|
|
@@ -3639,6 +3643,7 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3639
3643
|
paid?: PaymentMethod | undefined;
|
|
3640
3644
|
paidAt?: string | undefined;
|
|
3641
3645
|
showEin?: boolean | undefined;
|
|
3646
|
+
feeLabel?: string | undefined;
|
|
3642
3647
|
}, {
|
|
3643
3648
|
_id: string;
|
|
3644
3649
|
billTo: string;
|
|
@@ -3664,6 +3669,7 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3664
3669
|
paid?: PaymentMethod | undefined;
|
|
3665
3670
|
paidAt?: string | undefined;
|
|
3666
3671
|
showEin?: boolean | undefined;
|
|
3672
|
+
feeLabel?: string | undefined;
|
|
3667
3673
|
}>;
|
|
3668
3674
|
declare const zInvoiceResponse: z.ZodObject<{
|
|
3669
3675
|
billTo: z.ZodString;
|
|
@@ -3683,6 +3689,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
3683
3689
|
paidAt: z.ZodOptional<z.ZodString>;
|
|
3684
3690
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3685
3691
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3692
|
+
feeLabel: z.ZodOptional<z.ZodString>;
|
|
3686
3693
|
_id: z.ZodString;
|
|
3687
3694
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
3688
3695
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -4109,6 +4116,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4109
4116
|
paid?: PaymentMethod | undefined;
|
|
4110
4117
|
paidAt?: string | undefined;
|
|
4111
4118
|
showEin?: boolean | undefined;
|
|
4119
|
+
feeLabel?: string | undefined;
|
|
4112
4120
|
}, {
|
|
4113
4121
|
_id: string;
|
|
4114
4122
|
billTo: string;
|
|
@@ -4207,6 +4215,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4207
4215
|
paid?: PaymentMethod | undefined;
|
|
4208
4216
|
paidAt?: string | undefined;
|
|
4209
4217
|
showEin?: boolean | undefined;
|
|
4218
|
+
feeLabel?: string | undefined;
|
|
4210
4219
|
}>;
|
|
4211
4220
|
type Discount = z.infer<typeof zDiscount>;
|
|
4212
4221
|
type InvoiceItem = z.infer<typeof zInvoiceItem>;
|
|
@@ -4913,6 +4922,11 @@ declare const zSemester: z.ZodObject<{
|
|
|
4913
4922
|
type BSemester = z.infer<typeof zBSemester>;
|
|
4914
4923
|
type Semester = z.infer<typeof zSemester>;
|
|
4915
4924
|
|
|
4925
|
+
declare enum YouthOrAdult {
|
|
4926
|
+
YOUTH_ONLY = "youth_only",
|
|
4927
|
+
BOTH = "both"
|
|
4928
|
+
}
|
|
4929
|
+
|
|
4916
4930
|
declare const zBEventConfig: z.ZodObject<{
|
|
4917
4931
|
/**
|
|
4918
4932
|
* Location of the event
|
|
@@ -4994,10 +5008,11 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
4994
5008
|
*/
|
|
4995
5009
|
canRegister: z.ZodBoolean;
|
|
4996
5010
|
/**
|
|
4997
|
-
*
|
|
4998
|
-
*
|
|
5011
|
+
* Defines the registration of youth and adults in the event
|
|
5012
|
+
* youth_only - only youth
|
|
5013
|
+
* both - both youth and adult
|
|
4999
5014
|
*/
|
|
5000
|
-
|
|
5015
|
+
youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
|
|
5001
5016
|
/**
|
|
5002
5017
|
* If true, free form donation amounts are disabled.
|
|
5003
5018
|
*/
|
|
@@ -5036,7 +5051,7 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
5036
5051
|
};
|
|
5037
5052
|
tickets: string[];
|
|
5038
5053
|
canRegister: boolean;
|
|
5039
|
-
|
|
5054
|
+
youthOrAdult: YouthOrAdult;
|
|
5040
5055
|
location?: string | undefined;
|
|
5041
5056
|
ticketsStepDescription?: string | undefined;
|
|
5042
5057
|
participantStepDescription?: string | undefined;
|
|
@@ -5064,7 +5079,7 @@ declare const zBEventConfig: z.ZodObject<{
|
|
|
5064
5079
|
};
|
|
5065
5080
|
tickets: string[];
|
|
5066
5081
|
canRegister: boolean;
|
|
5067
|
-
|
|
5082
|
+
youthOrAdult: YouthOrAdult;
|
|
5068
5083
|
location?: string | undefined;
|
|
5069
5084
|
ticketsStepDescription?: string | undefined;
|
|
5070
5085
|
participantStepDescription?: string | undefined;
|
|
@@ -5156,10 +5171,11 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
5156
5171
|
*/
|
|
5157
5172
|
canRegister: z.ZodBoolean;
|
|
5158
5173
|
/**
|
|
5159
|
-
*
|
|
5160
|
-
*
|
|
5174
|
+
* Defines the registration of youth and adults in the event
|
|
5175
|
+
* youth_only - only youth
|
|
5176
|
+
* both - both youth and adult
|
|
5161
5177
|
*/
|
|
5162
|
-
|
|
5178
|
+
youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
|
|
5163
5179
|
/**
|
|
5164
5180
|
* If true, free form donation amounts are disabled.
|
|
5165
5181
|
*/
|
|
@@ -5204,7 +5220,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
5204
5220
|
};
|
|
5205
5221
|
tickets: string[];
|
|
5206
5222
|
canRegister: boolean;
|
|
5207
|
-
|
|
5223
|
+
youthOrAdult: YouthOrAdult;
|
|
5208
5224
|
editedBy?: string | undefined;
|
|
5209
5225
|
createdAt?: string | undefined;
|
|
5210
5226
|
updatedAt?: string | undefined;
|
|
@@ -5236,7 +5252,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
5236
5252
|
};
|
|
5237
5253
|
tickets: string[];
|
|
5238
5254
|
canRegister: boolean;
|
|
5239
|
-
|
|
5255
|
+
youthOrAdult: YouthOrAdult;
|
|
5240
5256
|
editedBy?: string | undefined;
|
|
5241
5257
|
createdAt?: string | undefined;
|
|
5242
5258
|
updatedAt?: string | undefined;
|
|
@@ -5282,7 +5298,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
5282
5298
|
ticketsStepDescription: z.ZodOptional<z.ZodString>;
|
|
5283
5299
|
participantStepDescription: z.ZodOptional<z.ZodString>;
|
|
5284
5300
|
canRegister: z.ZodBoolean;
|
|
5285
|
-
|
|
5301
|
+
youthOrAdult: z.ZodNativeEnum<typeof YouthOrAdult>;
|
|
5286
5302
|
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
5287
5303
|
image: z.ZodOptional<z.ZodObject<{
|
|
5288
5304
|
url: z.ZodString;
|
|
@@ -5367,7 +5383,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
5367
5383
|
maxPerOrder?: number | undefined;
|
|
5368
5384
|
}[];
|
|
5369
5385
|
canRegister: boolean;
|
|
5370
|
-
|
|
5386
|
+
youthOrAdult: YouthOrAdult;
|
|
5371
5387
|
editedBy?: string | undefined;
|
|
5372
5388
|
createdAt?: string | undefined;
|
|
5373
5389
|
updatedAt?: string | undefined;
|
|
@@ -5410,7 +5426,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
5410
5426
|
maxPerOrder?: number | undefined;
|
|
5411
5427
|
}[];
|
|
5412
5428
|
canRegister: boolean;
|
|
5413
|
-
|
|
5429
|
+
youthOrAdult: YouthOrAdult;
|
|
5414
5430
|
editedBy?: string | undefined;
|
|
5415
5431
|
createdAt?: string | undefined;
|
|
5416
5432
|
updatedAt?: string | undefined;
|
|
@@ -6706,4 +6722,4 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
|
|
|
6706
6722
|
type LoginRequest = z.infer<typeof zLoginRequest>;
|
|
6707
6723
|
type LoginResponse = z.infer<typeof zLoginResponse>;
|
|
6708
6724
|
|
|
6709
|
-
export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTimesInput, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, DayOfWeek, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, FeesInCents, GoRank, type GroupBooking, type GroupTracker, type GroupTrackerResponse, HearAboutUs, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type PublicEventConfigResponse, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type TrackerCreate, type Tuition, type User, type UserRoles, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserRoles };
|
|
6725
|
+
export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTimesInput, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, DayOfWeek, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, FeesInCents, GoRank, type GroupBooking, type GroupTracker, type GroupTrackerResponse, HearAboutUs, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type PublicEventConfigResponse, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type TrackerCreate, type Tuition, type User, type UserRoles, YouthOrAdult, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserRoles };
|
package/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __export(index_exports, {
|
|
|
34
34
|
Role: () => Role,
|
|
35
35
|
Season: () => Season,
|
|
36
36
|
TicketStatus: () => TicketStatus,
|
|
37
|
+
YouthOrAdult: () => YouthOrAdult,
|
|
37
38
|
zAttendance: () => zAttendance,
|
|
38
39
|
zAttendanceRequest: () => zAttendanceRequest,
|
|
39
40
|
zAttendanceResponse: () => zAttendanceResponse,
|
|
@@ -682,6 +683,7 @@ var zBInvoice = import_zod22.z.object({
|
|
|
682
683
|
paidAt: import_zod22.z.string().optional(),
|
|
683
684
|
showEin: import_zod22.z.boolean().optional(),
|
|
684
685
|
notes: import_zod22.z.string().or(import_zod22.z.literal("")).optional(),
|
|
686
|
+
feeLabel: import_zod22.z.string().optional(),
|
|
685
687
|
createdBy: import_zod22.z.string()
|
|
686
688
|
});
|
|
687
689
|
var zInvoice = addAutoProps(zBInvoice);
|
|
@@ -808,6 +810,13 @@ var zScheduleTable = import_zod28.z.object({
|
|
|
808
810
|
data: import_zod28.z.record(import_zod28.z.string(), zTable)
|
|
809
811
|
});
|
|
810
812
|
|
|
813
|
+
// src/interface/event/youthOrAdult.ts
|
|
814
|
+
var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
|
|
815
|
+
YouthOrAdult2["YOUTH_ONLY"] = "youth_only";
|
|
816
|
+
YouthOrAdult2["BOTH"] = "both";
|
|
817
|
+
return YouthOrAdult2;
|
|
818
|
+
})(YouthOrAdult || {});
|
|
819
|
+
|
|
811
820
|
// src/interface/event/eConfig.ts
|
|
812
821
|
var zBEventConfig = import_zod29.z.object({
|
|
813
822
|
/**
|
|
@@ -872,10 +881,11 @@ var zBEventConfig = import_zod29.z.object({
|
|
|
872
881
|
*/
|
|
873
882
|
canRegister: import_zod29.z.boolean(),
|
|
874
883
|
/**
|
|
875
|
-
*
|
|
876
|
-
*
|
|
884
|
+
* Defines the registration of youth and adults in the event
|
|
885
|
+
* youth_only - only youth
|
|
886
|
+
* both - both youth and adult
|
|
877
887
|
*/
|
|
878
|
-
|
|
888
|
+
youthOrAdult: import_zod29.z.nativeEnum(YouthOrAdult),
|
|
879
889
|
/**
|
|
880
890
|
* If true, free form donation amounts are disabled.
|
|
881
891
|
*/
|
|
@@ -940,6 +950,7 @@ var zEventRegResponse = zEventReg.extend({
|
|
|
940
950
|
Role,
|
|
941
951
|
Season,
|
|
942
952
|
TicketStatus,
|
|
953
|
+
YouthOrAdult,
|
|
943
954
|
zAttendance,
|
|
944
955
|
zAttendanceRequest,
|
|
945
956
|
zAttendanceResponse,
|
package/index.mjs
CHANGED
|
@@ -574,6 +574,7 @@ var zBInvoice = z22.object({
|
|
|
574
574
|
paidAt: z22.string().optional(),
|
|
575
575
|
showEin: z22.boolean().optional(),
|
|
576
576
|
notes: z22.string().or(z22.literal("")).optional(),
|
|
577
|
+
feeLabel: z22.string().optional(),
|
|
577
578
|
createdBy: z22.string()
|
|
578
579
|
});
|
|
579
580
|
var zInvoice = addAutoProps(zBInvoice);
|
|
@@ -700,6 +701,13 @@ var zScheduleTable = z28.object({
|
|
|
700
701
|
data: z28.record(z28.string(), zTable)
|
|
701
702
|
});
|
|
702
703
|
|
|
704
|
+
// src/interface/event/youthOrAdult.ts
|
|
705
|
+
var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
|
|
706
|
+
YouthOrAdult2["YOUTH_ONLY"] = "youth_only";
|
|
707
|
+
YouthOrAdult2["BOTH"] = "both";
|
|
708
|
+
return YouthOrAdult2;
|
|
709
|
+
})(YouthOrAdult || {});
|
|
710
|
+
|
|
703
711
|
// src/interface/event/eConfig.ts
|
|
704
712
|
var zBEventConfig = z29.object({
|
|
705
713
|
/**
|
|
@@ -764,10 +772,11 @@ var zBEventConfig = z29.object({
|
|
|
764
772
|
*/
|
|
765
773
|
canRegister: z29.boolean(),
|
|
766
774
|
/**
|
|
767
|
-
*
|
|
768
|
-
*
|
|
775
|
+
* Defines the registration of youth and adults in the event
|
|
776
|
+
* youth_only - only youth
|
|
777
|
+
* both - both youth and adult
|
|
769
778
|
*/
|
|
770
|
-
|
|
779
|
+
youthOrAdult: z29.nativeEnum(YouthOrAdult),
|
|
771
780
|
/**
|
|
772
781
|
* If true, free form donation amounts are disabled.
|
|
773
782
|
*/
|
|
@@ -831,6 +840,7 @@ export {
|
|
|
831
840
|
Role,
|
|
832
841
|
Season,
|
|
833
842
|
TicketStatus,
|
|
843
|
+
YouthOrAdult,
|
|
834
844
|
zAttendance,
|
|
835
845
|
zAttendanceRequest,
|
|
836
846
|
zAttendanceResponse,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyig/models",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"zod": ">=3.25.46"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@changesets/cli": "^2.29.
|
|
12
|
+
"@changesets/cli": "^2.29.7",
|
|
13
13
|
"husky": "^9.1.7",
|
|
14
|
-
"lint-staged": "^16.
|
|
14
|
+
"lint-staged": "^16.2.6",
|
|
15
15
|
"prettier": "^3.6.2",
|
|
16
|
-
"tsup": "^8.5.
|
|
17
|
-
"typescript": "^5.9.
|
|
16
|
+
"tsup": "^8.5.1",
|
|
17
|
+
"typescript": "^5.9.3"
|
|
18
18
|
},
|
|
19
19
|
"lint-staged": {
|
|
20
20
|
"*.{js,ts,md}": "prettier --write"
|