@nyig/models 0.4.15 → 0.4.17
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 +18 -23
- package/index.d.ts +18 -23
- package/index.js +9 -3
- package/index.mjs +8 -3
- package/package.json +5 -5
package/index.d.mts
CHANGED
|
@@ -3517,7 +3517,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3517
3517
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3518
3518
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3519
3519
|
createdBy: z.ZodString;
|
|
3520
|
-
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
3521
3520
|
}, "strip", z.ZodTypeAny, {
|
|
3522
3521
|
billTo: string;
|
|
3523
3522
|
packages: {
|
|
@@ -3539,7 +3538,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3539
3538
|
paid?: PaymentMethod | undefined;
|
|
3540
3539
|
paidAt?: string | undefined;
|
|
3541
3540
|
showEin?: boolean | undefined;
|
|
3542
|
-
lastEditBy?: string | undefined;
|
|
3543
3541
|
}, {
|
|
3544
3542
|
billTo: string;
|
|
3545
3543
|
packages: {
|
|
@@ -3561,7 +3559,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3561
3559
|
paid?: PaymentMethod | undefined;
|
|
3562
3560
|
paidAt?: string | undefined;
|
|
3563
3561
|
showEin?: boolean | undefined;
|
|
3564
|
-
lastEditBy?: string | undefined;
|
|
3565
3562
|
}>;
|
|
3566
3563
|
declare const zInvoice: z.ZodObject<{
|
|
3567
3564
|
billTo: z.ZodString;
|
|
@@ -3612,7 +3609,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3612
3609
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3613
3610
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3614
3611
|
createdBy: z.ZodString;
|
|
3615
|
-
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
3616
3612
|
} & {
|
|
3617
3613
|
_id: z.ZodString;
|
|
3618
3614
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -3643,7 +3639,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3643
3639
|
paid?: PaymentMethod | undefined;
|
|
3644
3640
|
paidAt?: string | undefined;
|
|
3645
3641
|
showEin?: boolean | undefined;
|
|
3646
|
-
lastEditBy?: string | undefined;
|
|
3647
3642
|
}, {
|
|
3648
3643
|
_id: string;
|
|
3649
3644
|
billTo: string;
|
|
@@ -3669,7 +3664,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3669
3664
|
paid?: PaymentMethod | undefined;
|
|
3670
3665
|
paidAt?: string | undefined;
|
|
3671
3666
|
showEin?: boolean | undefined;
|
|
3672
|
-
lastEditBy?: string | undefined;
|
|
3673
3667
|
}>;
|
|
3674
3668
|
declare const zInvoiceResponse: z.ZodObject<{
|
|
3675
3669
|
billTo: z.ZodString;
|
|
@@ -3690,7 +3684,6 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
3690
3684
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3691
3685
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3692
3686
|
_id: z.ZodString;
|
|
3693
|
-
editedBy: z.ZodOptional<z.ZodString>;
|
|
3694
3687
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
3695
3688
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
3696
3689
|
} & {
|
|
@@ -3783,7 +3776,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
3783
3776
|
imageUrl?: string | undefined;
|
|
3784
3777
|
available?: number[][][] | undefined;
|
|
3785
3778
|
}>;
|
|
3786
|
-
|
|
3779
|
+
editedBy: z.ZodOptional<z.ZodObject<{
|
|
3787
3780
|
name: z.ZodString;
|
|
3788
3781
|
username: z.ZodOptional<z.ZodString>;
|
|
3789
3782
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -4084,13 +4077,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4084
4077
|
notes?: string | undefined;
|
|
4085
4078
|
textbook?: number | undefined;
|
|
4086
4079
|
shipping?: number | undefined;
|
|
4087
|
-
editedBy?:
|
|
4088
|
-
createdAt?: string | undefined;
|
|
4089
|
-
updatedAt?: string | undefined;
|
|
4090
|
-
paid?: PaymentMethod | undefined;
|
|
4091
|
-
paidAt?: string | undefined;
|
|
4092
|
-
showEin?: boolean | undefined;
|
|
4093
|
-
lastEditBy?: {
|
|
4080
|
+
editedBy?: {
|
|
4094
4081
|
rank: GoRank;
|
|
4095
4082
|
_id: string;
|
|
4096
4083
|
name: string;
|
|
@@ -4117,6 +4104,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4117
4104
|
imageUrl?: string | undefined;
|
|
4118
4105
|
available?: number[][][] | undefined;
|
|
4119
4106
|
} | undefined;
|
|
4107
|
+
createdAt?: string | undefined;
|
|
4108
|
+
updatedAt?: string | undefined;
|
|
4109
|
+
paid?: PaymentMethod | undefined;
|
|
4110
|
+
paidAt?: string | undefined;
|
|
4111
|
+
showEin?: boolean | undefined;
|
|
4120
4112
|
}, {
|
|
4121
4113
|
_id: string;
|
|
4122
4114
|
billTo: string;
|
|
@@ -4183,13 +4175,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4183
4175
|
notes?: string | undefined;
|
|
4184
4176
|
textbook?: number | undefined;
|
|
4185
4177
|
shipping?: number | undefined;
|
|
4186
|
-
editedBy?:
|
|
4187
|
-
createdAt?: string | undefined;
|
|
4188
|
-
updatedAt?: string | undefined;
|
|
4189
|
-
paid?: PaymentMethod | undefined;
|
|
4190
|
-
paidAt?: string | undefined;
|
|
4191
|
-
showEin?: boolean | undefined;
|
|
4192
|
-
lastEditBy?: {
|
|
4178
|
+
editedBy?: {
|
|
4193
4179
|
rank: GoRank;
|
|
4194
4180
|
_id: string;
|
|
4195
4181
|
name: string;
|
|
@@ -4216,6 +4202,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4216
4202
|
imageUrl?: string | undefined;
|
|
4217
4203
|
available?: number[][][] | undefined;
|
|
4218
4204
|
} | undefined;
|
|
4205
|
+
createdAt?: string | undefined;
|
|
4206
|
+
updatedAt?: string | undefined;
|
|
4207
|
+
paid?: PaymentMethod | undefined;
|
|
4208
|
+
paidAt?: string | undefined;
|
|
4209
|
+
showEin?: boolean | undefined;
|
|
4219
4210
|
}>;
|
|
4220
4211
|
type Discount = z.infer<typeof zDiscount>;
|
|
4221
4212
|
type InvoiceItem = z.infer<typeof zInvoiceItem>;
|
|
@@ -4460,6 +4451,10 @@ declare const zTuition: z.ZodObject<{
|
|
|
4460
4451
|
shipping?: boolean | undefined;
|
|
4461
4452
|
}>;
|
|
4462
4453
|
type Tuition = z.infer<typeof zTuition>;
|
|
4454
|
+
declare enum FeesInCents {
|
|
4455
|
+
"MATERIAL" = 10000,
|
|
4456
|
+
"SHIPPING" = 2000
|
|
4457
|
+
}
|
|
4463
4458
|
|
|
4464
4459
|
declare const zTeacherDisplay: z.ZodObject<{
|
|
4465
4460
|
name: z.ZodString;
|
|
@@ -6677,4 +6672,4 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
|
|
|
6677
6672
|
type LoginRequest = z.infer<typeof zLoginRequest>;
|
|
6678
6673
|
type LoginResponse = z.infer<typeof zLoginResponse>;
|
|
6679
6674
|
|
|
6680
|
-
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, 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 };
|
|
6675
|
+
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 };
|
package/index.d.ts
CHANGED
|
@@ -3517,7 +3517,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3517
3517
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3518
3518
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3519
3519
|
createdBy: z.ZodString;
|
|
3520
|
-
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
3521
3520
|
}, "strip", z.ZodTypeAny, {
|
|
3522
3521
|
billTo: string;
|
|
3523
3522
|
packages: {
|
|
@@ -3539,7 +3538,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3539
3538
|
paid?: PaymentMethod | undefined;
|
|
3540
3539
|
paidAt?: string | undefined;
|
|
3541
3540
|
showEin?: boolean | undefined;
|
|
3542
|
-
lastEditBy?: string | undefined;
|
|
3543
3541
|
}, {
|
|
3544
3542
|
billTo: string;
|
|
3545
3543
|
packages: {
|
|
@@ -3561,7 +3559,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3561
3559
|
paid?: PaymentMethod | undefined;
|
|
3562
3560
|
paidAt?: string | undefined;
|
|
3563
3561
|
showEin?: boolean | undefined;
|
|
3564
|
-
lastEditBy?: string | undefined;
|
|
3565
3562
|
}>;
|
|
3566
3563
|
declare const zInvoice: z.ZodObject<{
|
|
3567
3564
|
billTo: z.ZodString;
|
|
@@ -3612,7 +3609,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3612
3609
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3613
3610
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3614
3611
|
createdBy: z.ZodString;
|
|
3615
|
-
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
3616
3612
|
} & {
|
|
3617
3613
|
_id: z.ZodString;
|
|
3618
3614
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -3643,7 +3639,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3643
3639
|
paid?: PaymentMethod | undefined;
|
|
3644
3640
|
paidAt?: string | undefined;
|
|
3645
3641
|
showEin?: boolean | undefined;
|
|
3646
|
-
lastEditBy?: string | undefined;
|
|
3647
3642
|
}, {
|
|
3648
3643
|
_id: string;
|
|
3649
3644
|
billTo: string;
|
|
@@ -3669,7 +3664,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3669
3664
|
paid?: PaymentMethod | undefined;
|
|
3670
3665
|
paidAt?: string | undefined;
|
|
3671
3666
|
showEin?: boolean | undefined;
|
|
3672
|
-
lastEditBy?: string | undefined;
|
|
3673
3667
|
}>;
|
|
3674
3668
|
declare const zInvoiceResponse: z.ZodObject<{
|
|
3675
3669
|
billTo: z.ZodString;
|
|
@@ -3690,7 +3684,6 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
3690
3684
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3691
3685
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3692
3686
|
_id: z.ZodString;
|
|
3693
|
-
editedBy: z.ZodOptional<z.ZodString>;
|
|
3694
3687
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
3695
3688
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
3696
3689
|
} & {
|
|
@@ -3783,7 +3776,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
3783
3776
|
imageUrl?: string | undefined;
|
|
3784
3777
|
available?: number[][][] | undefined;
|
|
3785
3778
|
}>;
|
|
3786
|
-
|
|
3779
|
+
editedBy: z.ZodOptional<z.ZodObject<{
|
|
3787
3780
|
name: z.ZodString;
|
|
3788
3781
|
username: z.ZodOptional<z.ZodString>;
|
|
3789
3782
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -4084,13 +4077,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4084
4077
|
notes?: string | undefined;
|
|
4085
4078
|
textbook?: number | undefined;
|
|
4086
4079
|
shipping?: number | undefined;
|
|
4087
|
-
editedBy?:
|
|
4088
|
-
createdAt?: string | undefined;
|
|
4089
|
-
updatedAt?: string | undefined;
|
|
4090
|
-
paid?: PaymentMethod | undefined;
|
|
4091
|
-
paidAt?: string | undefined;
|
|
4092
|
-
showEin?: boolean | undefined;
|
|
4093
|
-
lastEditBy?: {
|
|
4080
|
+
editedBy?: {
|
|
4094
4081
|
rank: GoRank;
|
|
4095
4082
|
_id: string;
|
|
4096
4083
|
name: string;
|
|
@@ -4117,6 +4104,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4117
4104
|
imageUrl?: string | undefined;
|
|
4118
4105
|
available?: number[][][] | undefined;
|
|
4119
4106
|
} | undefined;
|
|
4107
|
+
createdAt?: string | undefined;
|
|
4108
|
+
updatedAt?: string | undefined;
|
|
4109
|
+
paid?: PaymentMethod | undefined;
|
|
4110
|
+
paidAt?: string | undefined;
|
|
4111
|
+
showEin?: boolean | undefined;
|
|
4120
4112
|
}, {
|
|
4121
4113
|
_id: string;
|
|
4122
4114
|
billTo: string;
|
|
@@ -4183,13 +4175,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4183
4175
|
notes?: string | undefined;
|
|
4184
4176
|
textbook?: number | undefined;
|
|
4185
4177
|
shipping?: number | undefined;
|
|
4186
|
-
editedBy?:
|
|
4187
|
-
createdAt?: string | undefined;
|
|
4188
|
-
updatedAt?: string | undefined;
|
|
4189
|
-
paid?: PaymentMethod | undefined;
|
|
4190
|
-
paidAt?: string | undefined;
|
|
4191
|
-
showEin?: boolean | undefined;
|
|
4192
|
-
lastEditBy?: {
|
|
4178
|
+
editedBy?: {
|
|
4193
4179
|
rank: GoRank;
|
|
4194
4180
|
_id: string;
|
|
4195
4181
|
name: string;
|
|
@@ -4216,6 +4202,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4216
4202
|
imageUrl?: string | undefined;
|
|
4217
4203
|
available?: number[][][] | undefined;
|
|
4218
4204
|
} | undefined;
|
|
4205
|
+
createdAt?: string | undefined;
|
|
4206
|
+
updatedAt?: string | undefined;
|
|
4207
|
+
paid?: PaymentMethod | undefined;
|
|
4208
|
+
paidAt?: string | undefined;
|
|
4209
|
+
showEin?: boolean | undefined;
|
|
4219
4210
|
}>;
|
|
4220
4211
|
type Discount = z.infer<typeof zDiscount>;
|
|
4221
4212
|
type InvoiceItem = z.infer<typeof zInvoiceItem>;
|
|
@@ -4460,6 +4451,10 @@ declare const zTuition: z.ZodObject<{
|
|
|
4460
4451
|
shipping?: boolean | undefined;
|
|
4461
4452
|
}>;
|
|
4462
4453
|
type Tuition = z.infer<typeof zTuition>;
|
|
4454
|
+
declare enum FeesInCents {
|
|
4455
|
+
"MATERIAL" = 10000,
|
|
4456
|
+
"SHIPPING" = 2000
|
|
4457
|
+
}
|
|
4463
4458
|
|
|
4464
4459
|
declare const zTeacherDisplay: z.ZodObject<{
|
|
4465
4460
|
name: z.ZodString;
|
|
@@ -6677,4 +6672,4 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
|
|
|
6677
6672
|
type LoginRequest = z.infer<typeof zLoginRequest>;
|
|
6678
6673
|
type LoginResponse = z.infer<typeof zLoginResponse>;
|
|
6679
6674
|
|
|
6680
|
-
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, 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 };
|
|
6675
|
+
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 };
|
package/index.js
CHANGED
|
@@ -26,6 +26,7 @@ __export(index_exports, {
|
|
|
26
26
|
CampOption: () => CampOption,
|
|
27
27
|
CourseCategory: () => CourseCategory,
|
|
28
28
|
DayOfWeek: () => DayOfWeek,
|
|
29
|
+
FeesInCents: () => FeesInCents,
|
|
29
30
|
GoRank: () => GoRank,
|
|
30
31
|
HearAboutUs: () => HearAboutUs,
|
|
31
32
|
NYIGSchool: () => NYIGSchool,
|
|
@@ -187,6 +188,11 @@ var zTuition = import_zod3.z.object({
|
|
|
187
188
|
textbook: import_zod3.z.boolean().optional(),
|
|
188
189
|
shipping: import_zod3.z.boolean().optional()
|
|
189
190
|
});
|
|
191
|
+
var FeesInCents = /* @__PURE__ */ ((FeesInCents2) => {
|
|
192
|
+
FeesInCents2[FeesInCents2["MATERIAL"] = 1e4] = "MATERIAL";
|
|
193
|
+
FeesInCents2[FeesInCents2["SHIPPING"] = 2e3] = "SHIPPING";
|
|
194
|
+
return FeesInCents2;
|
|
195
|
+
})(FeesInCents || {});
|
|
190
196
|
|
|
191
197
|
// src/interface/tracking/campOption.ts
|
|
192
198
|
var CampOption = /* @__PURE__ */ ((CampOption2) => {
|
|
@@ -675,13 +681,12 @@ var zBInvoice = import_zod22.z.object({
|
|
|
675
681
|
paidAt: import_zod22.z.string().optional(),
|
|
676
682
|
showEin: import_zod22.z.boolean().optional(),
|
|
677
683
|
notes: import_zod22.z.string().or(import_zod22.z.literal("")).optional(),
|
|
678
|
-
createdBy: import_zod22.z.string()
|
|
679
|
-
lastEditBy: import_zod22.z.string().optional()
|
|
684
|
+
createdBy: import_zod22.z.string()
|
|
680
685
|
});
|
|
681
686
|
var zInvoice = addAutoProps(zBInvoice);
|
|
682
687
|
var zInvoiceResponse = zInvoice.extend({
|
|
683
688
|
createdBy: zTeacher,
|
|
684
|
-
|
|
689
|
+
editedBy: zTeacher.optional(),
|
|
685
690
|
packages: import_zod22.z.array(zInvoicePackageResponse)
|
|
686
691
|
});
|
|
687
692
|
|
|
@@ -916,6 +921,7 @@ var zEventRegResponse = zEventReg.extend({
|
|
|
916
921
|
CampOption,
|
|
917
922
|
CourseCategory,
|
|
918
923
|
DayOfWeek,
|
|
924
|
+
FeesInCents,
|
|
919
925
|
GoRank,
|
|
920
926
|
HearAboutUs,
|
|
921
927
|
NYIGSchool,
|
package/index.mjs
CHANGED
|
@@ -80,6 +80,11 @@ var zTuition = z3.object({
|
|
|
80
80
|
textbook: z3.boolean().optional(),
|
|
81
81
|
shipping: z3.boolean().optional()
|
|
82
82
|
});
|
|
83
|
+
var FeesInCents = /* @__PURE__ */ ((FeesInCents2) => {
|
|
84
|
+
FeesInCents2[FeesInCents2["MATERIAL"] = 1e4] = "MATERIAL";
|
|
85
|
+
FeesInCents2[FeesInCents2["SHIPPING"] = 2e3] = "SHIPPING";
|
|
86
|
+
return FeesInCents2;
|
|
87
|
+
})(FeesInCents || {});
|
|
83
88
|
|
|
84
89
|
// src/interface/tracking/campOption.ts
|
|
85
90
|
var CampOption = /* @__PURE__ */ ((CampOption2) => {
|
|
@@ -568,13 +573,12 @@ var zBInvoice = z22.object({
|
|
|
568
573
|
paidAt: z22.string().optional(),
|
|
569
574
|
showEin: z22.boolean().optional(),
|
|
570
575
|
notes: z22.string().or(z22.literal("")).optional(),
|
|
571
|
-
createdBy: z22.string()
|
|
572
|
-
lastEditBy: z22.string().optional()
|
|
576
|
+
createdBy: z22.string()
|
|
573
577
|
});
|
|
574
578
|
var zInvoice = addAutoProps(zBInvoice);
|
|
575
579
|
var zInvoiceResponse = zInvoice.extend({
|
|
576
580
|
createdBy: zTeacher,
|
|
577
|
-
|
|
581
|
+
editedBy: zTeacher.optional(),
|
|
578
582
|
packages: z22.array(zInvoicePackageResponse)
|
|
579
583
|
});
|
|
580
584
|
|
|
@@ -808,6 +812,7 @@ export {
|
|
|
808
812
|
CampOption,
|
|
809
813
|
CourseCategory,
|
|
810
814
|
DayOfWeek,
|
|
815
|
+
FeesInCents,
|
|
811
816
|
GoRank,
|
|
812
817
|
HearAboutUs,
|
|
813
818
|
NYIGSchool,
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyig/models",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
7
7
|
"types": "index.d.ts",
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"zod": ">=3.
|
|
9
|
+
"zod": ">=3.25.46"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@changesets/cli": "^2.29.
|
|
12
|
+
"@changesets/cli": "^2.29.4",
|
|
13
13
|
"husky": "^9.1.7",
|
|
14
|
-
"lint-staged": "^
|
|
14
|
+
"lint-staged": "^16.1.0",
|
|
15
15
|
"prettier": "^3.5.3",
|
|
16
|
-
"tsup": "^8.
|
|
16
|
+
"tsup": "^8.5.0",
|
|
17
17
|
"typescript": "^5.8.3"
|
|
18
18
|
},
|
|
19
19
|
"lint-staged": {
|