@nyig/models 0.6.7 → 0.6.9
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 +239 -4
- package/index.d.ts +239 -4
- package/index.js +8 -1
- package/index.mjs +6 -1
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -8746,19 +8746,20 @@ type LoginResponse = z.infer<typeof zLoginResponse>;
|
|
|
8746
8746
|
declare const zBProduct: z.ZodObject<{
|
|
8747
8747
|
name: z.ZodString;
|
|
8748
8748
|
price: z.ZodNumber;
|
|
8749
|
-
|
|
8749
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
8750
8750
|
}, "strip", z.ZodTypeAny, {
|
|
8751
8751
|
name: string;
|
|
8752
8752
|
price: number;
|
|
8753
|
-
|
|
8753
|
+
notes?: string | undefined;
|
|
8754
8754
|
}, {
|
|
8755
8755
|
name: string;
|
|
8756
8756
|
price: number;
|
|
8757
|
-
|
|
8757
|
+
notes?: string | undefined;
|
|
8758
8758
|
}>;
|
|
8759
8759
|
declare const zProduct: z.ZodObject<{
|
|
8760
8760
|
name: z.ZodString;
|
|
8761
8761
|
price: z.ZodNumber;
|
|
8762
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
8762
8763
|
} & {
|
|
8763
8764
|
_id: z.ZodString;
|
|
8764
8765
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -8768,6 +8769,7 @@ declare const zProduct: z.ZodObject<{
|
|
|
8768
8769
|
_id: string;
|
|
8769
8770
|
name: string;
|
|
8770
8771
|
price: number;
|
|
8772
|
+
notes?: string | undefined;
|
|
8771
8773
|
editedBy?: string | undefined;
|
|
8772
8774
|
createdAt?: string | undefined;
|
|
8773
8775
|
updatedAt?: string | undefined;
|
|
@@ -8775,11 +8777,244 @@ declare const zProduct: z.ZodObject<{
|
|
|
8775
8777
|
_id: string;
|
|
8776
8778
|
name: string;
|
|
8777
8779
|
price: number;
|
|
8780
|
+
notes?: string | undefined;
|
|
8778
8781
|
editedBy?: string | undefined;
|
|
8779
8782
|
createdAt?: string | undefined;
|
|
8780
8783
|
updatedAt?: string | undefined;
|
|
8781
8784
|
}>;
|
|
8785
|
+
declare const zProductResponse: z.ZodObject<{
|
|
8786
|
+
name: z.ZodString;
|
|
8787
|
+
price: z.ZodNumber;
|
|
8788
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
8789
|
+
_id: z.ZodString;
|
|
8790
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
8791
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
8792
|
+
} & {
|
|
8793
|
+
editedBy: z.ZodObject<{
|
|
8794
|
+
name: z.ZodString;
|
|
8795
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
8796
|
+
user: z.ZodNumber;
|
|
8797
|
+
admin: z.ZodOptional<z.ZodNumber>;
|
|
8798
|
+
superadmin: z.ZodOptional<z.ZodNumber>;
|
|
8799
|
+
}, "strip", z.ZodTypeAny, {
|
|
8800
|
+
user: number;
|
|
8801
|
+
admin?: number | undefined;
|
|
8802
|
+
superadmin?: number | undefined;
|
|
8803
|
+
}, {
|
|
8804
|
+
user: number;
|
|
8805
|
+
admin?: number | undefined;
|
|
8806
|
+
superadmin?: number | undefined;
|
|
8807
|
+
}>>;
|
|
8808
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8809
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8810
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8811
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8812
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8813
|
+
shouldChangePassword: z.ZodOptional<z.ZodBoolean>;
|
|
8814
|
+
profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8815
|
+
firstName: z.ZodString;
|
|
8816
|
+
lastName: z.ZodString;
|
|
8817
|
+
rank: z.ZodOptional<z.ZodNativeEnum<typeof GoRank>>;
|
|
8818
|
+
agaId: z.ZodString;
|
|
8819
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8820
|
+
participateAs: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["adult", "youth"]>, z.ZodLiteral<"">]>>;
|
|
8821
|
+
showOnWhoIsComing: z.ZodOptional<z.ZodBoolean>;
|
|
8822
|
+
preferredEmail: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8823
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8824
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8825
|
+
} & {
|
|
8826
|
+
_id: z.ZodString;
|
|
8827
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
8828
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
8829
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
8830
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
8831
|
+
firstName: string;
|
|
8832
|
+
lastName: string;
|
|
8833
|
+
_id: string;
|
|
8834
|
+
agaId: string;
|
|
8835
|
+
rank?: GoRank | undefined;
|
|
8836
|
+
address?: string | undefined;
|
|
8837
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
8838
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
8839
|
+
editedBy?: string | undefined;
|
|
8840
|
+
createdAt?: string | undefined;
|
|
8841
|
+
updatedAt?: string | undefined;
|
|
8842
|
+
preferredEmail?: string | undefined;
|
|
8843
|
+
phoneNumber?: string | undefined;
|
|
8844
|
+
birthDate?: string | undefined;
|
|
8845
|
+
}, {
|
|
8846
|
+
firstName: string;
|
|
8847
|
+
lastName: string;
|
|
8848
|
+
_id: string;
|
|
8849
|
+
agaId: string;
|
|
8850
|
+
rank?: GoRank | undefined;
|
|
8851
|
+
address?: string | undefined;
|
|
8852
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
8853
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
8854
|
+
editedBy?: string | undefined;
|
|
8855
|
+
createdAt?: string | undefined;
|
|
8856
|
+
updatedAt?: string | undefined;
|
|
8857
|
+
preferredEmail?: string | undefined;
|
|
8858
|
+
phoneNumber?: string | undefined;
|
|
8859
|
+
birthDate?: string | undefined;
|
|
8860
|
+
}>, "many">>;
|
|
8861
|
+
} & {
|
|
8862
|
+
_id: z.ZodString;
|
|
8863
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
8864
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
8865
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
8866
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
8867
|
+
_id: string;
|
|
8868
|
+
name: string;
|
|
8869
|
+
email?: string | undefined;
|
|
8870
|
+
address?: string | undefined;
|
|
8871
|
+
editedBy?: string | undefined;
|
|
8872
|
+
createdAt?: string | undefined;
|
|
8873
|
+
updatedAt?: string | undefined;
|
|
8874
|
+
phoneNumber?: string | undefined;
|
|
8875
|
+
birthDate?: string | undefined;
|
|
8876
|
+
roles?: {
|
|
8877
|
+
user: number;
|
|
8878
|
+
admin?: number | undefined;
|
|
8879
|
+
superadmin?: number | undefined;
|
|
8880
|
+
} | undefined;
|
|
8881
|
+
country?: string | undefined;
|
|
8882
|
+
shouldChangePassword?: boolean | undefined;
|
|
8883
|
+
profiles?: {
|
|
8884
|
+
firstName: string;
|
|
8885
|
+
lastName: string;
|
|
8886
|
+
_id: string;
|
|
8887
|
+
agaId: string;
|
|
8888
|
+
rank?: GoRank | undefined;
|
|
8889
|
+
address?: string | undefined;
|
|
8890
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
8891
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
8892
|
+
editedBy?: string | undefined;
|
|
8893
|
+
createdAt?: string | undefined;
|
|
8894
|
+
updatedAt?: string | undefined;
|
|
8895
|
+
preferredEmail?: string | undefined;
|
|
8896
|
+
phoneNumber?: string | undefined;
|
|
8897
|
+
birthDate?: string | undefined;
|
|
8898
|
+
}[] | undefined;
|
|
8899
|
+
}, {
|
|
8900
|
+
_id: string;
|
|
8901
|
+
name: string;
|
|
8902
|
+
email?: string | undefined;
|
|
8903
|
+
address?: string | undefined;
|
|
8904
|
+
editedBy?: string | undefined;
|
|
8905
|
+
createdAt?: string | undefined;
|
|
8906
|
+
updatedAt?: string | undefined;
|
|
8907
|
+
phoneNumber?: string | undefined;
|
|
8908
|
+
birthDate?: string | undefined;
|
|
8909
|
+
roles?: {
|
|
8910
|
+
user: number;
|
|
8911
|
+
admin?: number | undefined;
|
|
8912
|
+
superadmin?: number | undefined;
|
|
8913
|
+
} | undefined;
|
|
8914
|
+
country?: string | undefined;
|
|
8915
|
+
shouldChangePassword?: boolean | undefined;
|
|
8916
|
+
profiles?: {
|
|
8917
|
+
firstName: string;
|
|
8918
|
+
lastName: string;
|
|
8919
|
+
_id: string;
|
|
8920
|
+
agaId: string;
|
|
8921
|
+
rank?: GoRank | undefined;
|
|
8922
|
+
address?: string | undefined;
|
|
8923
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
8924
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
8925
|
+
editedBy?: string | undefined;
|
|
8926
|
+
createdAt?: string | undefined;
|
|
8927
|
+
updatedAt?: string | undefined;
|
|
8928
|
+
preferredEmail?: string | undefined;
|
|
8929
|
+
phoneNumber?: string | undefined;
|
|
8930
|
+
birthDate?: string | undefined;
|
|
8931
|
+
}[] | undefined;
|
|
8932
|
+
}>;
|
|
8933
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
8934
|
+
_id: string;
|
|
8935
|
+
editedBy: {
|
|
8936
|
+
_id: string;
|
|
8937
|
+
name: string;
|
|
8938
|
+
email?: string | undefined;
|
|
8939
|
+
address?: string | undefined;
|
|
8940
|
+
editedBy?: string | undefined;
|
|
8941
|
+
createdAt?: string | undefined;
|
|
8942
|
+
updatedAt?: string | undefined;
|
|
8943
|
+
phoneNumber?: string | undefined;
|
|
8944
|
+
birthDate?: string | undefined;
|
|
8945
|
+
roles?: {
|
|
8946
|
+
user: number;
|
|
8947
|
+
admin?: number | undefined;
|
|
8948
|
+
superadmin?: number | undefined;
|
|
8949
|
+
} | undefined;
|
|
8950
|
+
country?: string | undefined;
|
|
8951
|
+
shouldChangePassword?: boolean | undefined;
|
|
8952
|
+
profiles?: {
|
|
8953
|
+
firstName: string;
|
|
8954
|
+
lastName: string;
|
|
8955
|
+
_id: string;
|
|
8956
|
+
agaId: string;
|
|
8957
|
+
rank?: GoRank | undefined;
|
|
8958
|
+
address?: string | undefined;
|
|
8959
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
8960
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
8961
|
+
editedBy?: string | undefined;
|
|
8962
|
+
createdAt?: string | undefined;
|
|
8963
|
+
updatedAt?: string | undefined;
|
|
8964
|
+
preferredEmail?: string | undefined;
|
|
8965
|
+
phoneNumber?: string | undefined;
|
|
8966
|
+
birthDate?: string | undefined;
|
|
8967
|
+
}[] | undefined;
|
|
8968
|
+
};
|
|
8969
|
+
name: string;
|
|
8970
|
+
price: number;
|
|
8971
|
+
notes?: string | undefined;
|
|
8972
|
+
createdAt?: string | undefined;
|
|
8973
|
+
updatedAt?: string | undefined;
|
|
8974
|
+
}, {
|
|
8975
|
+
_id: string;
|
|
8976
|
+
editedBy: {
|
|
8977
|
+
_id: string;
|
|
8978
|
+
name: string;
|
|
8979
|
+
email?: string | undefined;
|
|
8980
|
+
address?: string | undefined;
|
|
8981
|
+
editedBy?: string | undefined;
|
|
8982
|
+
createdAt?: string | undefined;
|
|
8983
|
+
updatedAt?: string | undefined;
|
|
8984
|
+
phoneNumber?: string | undefined;
|
|
8985
|
+
birthDate?: string | undefined;
|
|
8986
|
+
roles?: {
|
|
8987
|
+
user: number;
|
|
8988
|
+
admin?: number | undefined;
|
|
8989
|
+
superadmin?: number | undefined;
|
|
8990
|
+
} | undefined;
|
|
8991
|
+
country?: string | undefined;
|
|
8992
|
+
shouldChangePassword?: boolean | undefined;
|
|
8993
|
+
profiles?: {
|
|
8994
|
+
firstName: string;
|
|
8995
|
+
lastName: string;
|
|
8996
|
+
_id: string;
|
|
8997
|
+
agaId: string;
|
|
8998
|
+
rank?: GoRank | undefined;
|
|
8999
|
+
address?: string | undefined;
|
|
9000
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
9001
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
9002
|
+
editedBy?: string | undefined;
|
|
9003
|
+
createdAt?: string | undefined;
|
|
9004
|
+
updatedAt?: string | undefined;
|
|
9005
|
+
preferredEmail?: string | undefined;
|
|
9006
|
+
phoneNumber?: string | undefined;
|
|
9007
|
+
birthDate?: string | undefined;
|
|
9008
|
+
}[] | undefined;
|
|
9009
|
+
};
|
|
9010
|
+
name: string;
|
|
9011
|
+
price: number;
|
|
9012
|
+
notes?: string | undefined;
|
|
9013
|
+
createdAt?: string | undefined;
|
|
9014
|
+
updatedAt?: string | undefined;
|
|
9015
|
+
}>;
|
|
8782
9016
|
type BProduct = z.infer<typeof zBProduct>;
|
|
8783
9017
|
type Product = z.infer<typeof zProduct>;
|
|
9018
|
+
type ProductResponse = z.infer<typeof zProductResponse>;
|
|
8784
9019
|
|
|
8785
|
-
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 BProduct, 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 Product, 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, zBProduct, 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 };
|
|
9020
|
+
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 BProduct, 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 Product, type ProductResponse, 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, zBProduct, 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, zProduct, zProductResponse, zReportTicket, zReportTicketResponse, zScheduleData, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserProfile, zUserRoles };
|
package/index.d.ts
CHANGED
|
@@ -8746,19 +8746,20 @@ type LoginResponse = z.infer<typeof zLoginResponse>;
|
|
|
8746
8746
|
declare const zBProduct: z.ZodObject<{
|
|
8747
8747
|
name: z.ZodString;
|
|
8748
8748
|
price: z.ZodNumber;
|
|
8749
|
-
|
|
8749
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
8750
8750
|
}, "strip", z.ZodTypeAny, {
|
|
8751
8751
|
name: string;
|
|
8752
8752
|
price: number;
|
|
8753
|
-
|
|
8753
|
+
notes?: string | undefined;
|
|
8754
8754
|
}, {
|
|
8755
8755
|
name: string;
|
|
8756
8756
|
price: number;
|
|
8757
|
-
|
|
8757
|
+
notes?: string | undefined;
|
|
8758
8758
|
}>;
|
|
8759
8759
|
declare const zProduct: z.ZodObject<{
|
|
8760
8760
|
name: z.ZodString;
|
|
8761
8761
|
price: z.ZodNumber;
|
|
8762
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
8762
8763
|
} & {
|
|
8763
8764
|
_id: z.ZodString;
|
|
8764
8765
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -8768,6 +8769,7 @@ declare const zProduct: z.ZodObject<{
|
|
|
8768
8769
|
_id: string;
|
|
8769
8770
|
name: string;
|
|
8770
8771
|
price: number;
|
|
8772
|
+
notes?: string | undefined;
|
|
8771
8773
|
editedBy?: string | undefined;
|
|
8772
8774
|
createdAt?: string | undefined;
|
|
8773
8775
|
updatedAt?: string | undefined;
|
|
@@ -8775,11 +8777,244 @@ declare const zProduct: z.ZodObject<{
|
|
|
8775
8777
|
_id: string;
|
|
8776
8778
|
name: string;
|
|
8777
8779
|
price: number;
|
|
8780
|
+
notes?: string | undefined;
|
|
8778
8781
|
editedBy?: string | undefined;
|
|
8779
8782
|
createdAt?: string | undefined;
|
|
8780
8783
|
updatedAt?: string | undefined;
|
|
8781
8784
|
}>;
|
|
8785
|
+
declare const zProductResponse: z.ZodObject<{
|
|
8786
|
+
name: z.ZodString;
|
|
8787
|
+
price: z.ZodNumber;
|
|
8788
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
8789
|
+
_id: z.ZodString;
|
|
8790
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
8791
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
8792
|
+
} & {
|
|
8793
|
+
editedBy: z.ZodObject<{
|
|
8794
|
+
name: z.ZodString;
|
|
8795
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
8796
|
+
user: z.ZodNumber;
|
|
8797
|
+
admin: z.ZodOptional<z.ZodNumber>;
|
|
8798
|
+
superadmin: z.ZodOptional<z.ZodNumber>;
|
|
8799
|
+
}, "strip", z.ZodTypeAny, {
|
|
8800
|
+
user: number;
|
|
8801
|
+
admin?: number | undefined;
|
|
8802
|
+
superadmin?: number | undefined;
|
|
8803
|
+
}, {
|
|
8804
|
+
user: number;
|
|
8805
|
+
admin?: number | undefined;
|
|
8806
|
+
superadmin?: number | undefined;
|
|
8807
|
+
}>>;
|
|
8808
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8809
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8810
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8811
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8812
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8813
|
+
shouldChangePassword: z.ZodOptional<z.ZodBoolean>;
|
|
8814
|
+
profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8815
|
+
firstName: z.ZodString;
|
|
8816
|
+
lastName: z.ZodString;
|
|
8817
|
+
rank: z.ZodOptional<z.ZodNativeEnum<typeof GoRank>>;
|
|
8818
|
+
agaId: z.ZodString;
|
|
8819
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8820
|
+
participateAs: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["adult", "youth"]>, z.ZodLiteral<"">]>>;
|
|
8821
|
+
showOnWhoIsComing: z.ZodOptional<z.ZodBoolean>;
|
|
8822
|
+
preferredEmail: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8823
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8824
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
8825
|
+
} & {
|
|
8826
|
+
_id: z.ZodString;
|
|
8827
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
8828
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
8829
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
8830
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
8831
|
+
firstName: string;
|
|
8832
|
+
lastName: string;
|
|
8833
|
+
_id: string;
|
|
8834
|
+
agaId: string;
|
|
8835
|
+
rank?: GoRank | undefined;
|
|
8836
|
+
address?: string | undefined;
|
|
8837
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
8838
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
8839
|
+
editedBy?: string | undefined;
|
|
8840
|
+
createdAt?: string | undefined;
|
|
8841
|
+
updatedAt?: string | undefined;
|
|
8842
|
+
preferredEmail?: string | undefined;
|
|
8843
|
+
phoneNumber?: string | undefined;
|
|
8844
|
+
birthDate?: string | undefined;
|
|
8845
|
+
}, {
|
|
8846
|
+
firstName: string;
|
|
8847
|
+
lastName: string;
|
|
8848
|
+
_id: string;
|
|
8849
|
+
agaId: string;
|
|
8850
|
+
rank?: GoRank | undefined;
|
|
8851
|
+
address?: string | undefined;
|
|
8852
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
8853
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
8854
|
+
editedBy?: string | undefined;
|
|
8855
|
+
createdAt?: string | undefined;
|
|
8856
|
+
updatedAt?: string | undefined;
|
|
8857
|
+
preferredEmail?: string | undefined;
|
|
8858
|
+
phoneNumber?: string | undefined;
|
|
8859
|
+
birthDate?: string | undefined;
|
|
8860
|
+
}>, "many">>;
|
|
8861
|
+
} & {
|
|
8862
|
+
_id: z.ZodString;
|
|
8863
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
8864
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
8865
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
8866
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
8867
|
+
_id: string;
|
|
8868
|
+
name: string;
|
|
8869
|
+
email?: string | undefined;
|
|
8870
|
+
address?: string | undefined;
|
|
8871
|
+
editedBy?: string | undefined;
|
|
8872
|
+
createdAt?: string | undefined;
|
|
8873
|
+
updatedAt?: string | undefined;
|
|
8874
|
+
phoneNumber?: string | undefined;
|
|
8875
|
+
birthDate?: string | undefined;
|
|
8876
|
+
roles?: {
|
|
8877
|
+
user: number;
|
|
8878
|
+
admin?: number | undefined;
|
|
8879
|
+
superadmin?: number | undefined;
|
|
8880
|
+
} | undefined;
|
|
8881
|
+
country?: string | undefined;
|
|
8882
|
+
shouldChangePassword?: boolean | undefined;
|
|
8883
|
+
profiles?: {
|
|
8884
|
+
firstName: string;
|
|
8885
|
+
lastName: string;
|
|
8886
|
+
_id: string;
|
|
8887
|
+
agaId: string;
|
|
8888
|
+
rank?: GoRank | undefined;
|
|
8889
|
+
address?: string | undefined;
|
|
8890
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
8891
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
8892
|
+
editedBy?: string | undefined;
|
|
8893
|
+
createdAt?: string | undefined;
|
|
8894
|
+
updatedAt?: string | undefined;
|
|
8895
|
+
preferredEmail?: string | undefined;
|
|
8896
|
+
phoneNumber?: string | undefined;
|
|
8897
|
+
birthDate?: string | undefined;
|
|
8898
|
+
}[] | undefined;
|
|
8899
|
+
}, {
|
|
8900
|
+
_id: string;
|
|
8901
|
+
name: string;
|
|
8902
|
+
email?: string | undefined;
|
|
8903
|
+
address?: string | undefined;
|
|
8904
|
+
editedBy?: string | undefined;
|
|
8905
|
+
createdAt?: string | undefined;
|
|
8906
|
+
updatedAt?: string | undefined;
|
|
8907
|
+
phoneNumber?: string | undefined;
|
|
8908
|
+
birthDate?: string | undefined;
|
|
8909
|
+
roles?: {
|
|
8910
|
+
user: number;
|
|
8911
|
+
admin?: number | undefined;
|
|
8912
|
+
superadmin?: number | undefined;
|
|
8913
|
+
} | undefined;
|
|
8914
|
+
country?: string | undefined;
|
|
8915
|
+
shouldChangePassword?: boolean | undefined;
|
|
8916
|
+
profiles?: {
|
|
8917
|
+
firstName: string;
|
|
8918
|
+
lastName: string;
|
|
8919
|
+
_id: string;
|
|
8920
|
+
agaId: string;
|
|
8921
|
+
rank?: GoRank | undefined;
|
|
8922
|
+
address?: string | undefined;
|
|
8923
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
8924
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
8925
|
+
editedBy?: string | undefined;
|
|
8926
|
+
createdAt?: string | undefined;
|
|
8927
|
+
updatedAt?: string | undefined;
|
|
8928
|
+
preferredEmail?: string | undefined;
|
|
8929
|
+
phoneNumber?: string | undefined;
|
|
8930
|
+
birthDate?: string | undefined;
|
|
8931
|
+
}[] | undefined;
|
|
8932
|
+
}>;
|
|
8933
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
8934
|
+
_id: string;
|
|
8935
|
+
editedBy: {
|
|
8936
|
+
_id: string;
|
|
8937
|
+
name: string;
|
|
8938
|
+
email?: string | undefined;
|
|
8939
|
+
address?: string | undefined;
|
|
8940
|
+
editedBy?: string | undefined;
|
|
8941
|
+
createdAt?: string | undefined;
|
|
8942
|
+
updatedAt?: string | undefined;
|
|
8943
|
+
phoneNumber?: string | undefined;
|
|
8944
|
+
birthDate?: string | undefined;
|
|
8945
|
+
roles?: {
|
|
8946
|
+
user: number;
|
|
8947
|
+
admin?: number | undefined;
|
|
8948
|
+
superadmin?: number | undefined;
|
|
8949
|
+
} | undefined;
|
|
8950
|
+
country?: string | undefined;
|
|
8951
|
+
shouldChangePassword?: boolean | undefined;
|
|
8952
|
+
profiles?: {
|
|
8953
|
+
firstName: string;
|
|
8954
|
+
lastName: string;
|
|
8955
|
+
_id: string;
|
|
8956
|
+
agaId: string;
|
|
8957
|
+
rank?: GoRank | undefined;
|
|
8958
|
+
address?: string | undefined;
|
|
8959
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
8960
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
8961
|
+
editedBy?: string | undefined;
|
|
8962
|
+
createdAt?: string | undefined;
|
|
8963
|
+
updatedAt?: string | undefined;
|
|
8964
|
+
preferredEmail?: string | undefined;
|
|
8965
|
+
phoneNumber?: string | undefined;
|
|
8966
|
+
birthDate?: string | undefined;
|
|
8967
|
+
}[] | undefined;
|
|
8968
|
+
};
|
|
8969
|
+
name: string;
|
|
8970
|
+
price: number;
|
|
8971
|
+
notes?: string | undefined;
|
|
8972
|
+
createdAt?: string | undefined;
|
|
8973
|
+
updatedAt?: string | undefined;
|
|
8974
|
+
}, {
|
|
8975
|
+
_id: string;
|
|
8976
|
+
editedBy: {
|
|
8977
|
+
_id: string;
|
|
8978
|
+
name: string;
|
|
8979
|
+
email?: string | undefined;
|
|
8980
|
+
address?: string | undefined;
|
|
8981
|
+
editedBy?: string | undefined;
|
|
8982
|
+
createdAt?: string | undefined;
|
|
8983
|
+
updatedAt?: string | undefined;
|
|
8984
|
+
phoneNumber?: string | undefined;
|
|
8985
|
+
birthDate?: string | undefined;
|
|
8986
|
+
roles?: {
|
|
8987
|
+
user: number;
|
|
8988
|
+
admin?: number | undefined;
|
|
8989
|
+
superadmin?: number | undefined;
|
|
8990
|
+
} | undefined;
|
|
8991
|
+
country?: string | undefined;
|
|
8992
|
+
shouldChangePassword?: boolean | undefined;
|
|
8993
|
+
profiles?: {
|
|
8994
|
+
firstName: string;
|
|
8995
|
+
lastName: string;
|
|
8996
|
+
_id: string;
|
|
8997
|
+
agaId: string;
|
|
8998
|
+
rank?: GoRank | undefined;
|
|
8999
|
+
address?: string | undefined;
|
|
9000
|
+
showOnWhoIsComing?: boolean | undefined;
|
|
9001
|
+
participateAs?: "" | "adult" | "youth" | undefined;
|
|
9002
|
+
editedBy?: string | undefined;
|
|
9003
|
+
createdAt?: string | undefined;
|
|
9004
|
+
updatedAt?: string | undefined;
|
|
9005
|
+
preferredEmail?: string | undefined;
|
|
9006
|
+
phoneNumber?: string | undefined;
|
|
9007
|
+
birthDate?: string | undefined;
|
|
9008
|
+
}[] | undefined;
|
|
9009
|
+
};
|
|
9010
|
+
name: string;
|
|
9011
|
+
price: number;
|
|
9012
|
+
notes?: string | undefined;
|
|
9013
|
+
createdAt?: string | undefined;
|
|
9014
|
+
updatedAt?: string | undefined;
|
|
9015
|
+
}>;
|
|
8782
9016
|
type BProduct = z.infer<typeof zBProduct>;
|
|
8783
9017
|
type Product = z.infer<typeof zProduct>;
|
|
9018
|
+
type ProductResponse = z.infer<typeof zProductResponse>;
|
|
8784
9019
|
|
|
8785
|
-
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 BProduct, 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 Product, 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, zBProduct, 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 };
|
|
9020
|
+
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 BProduct, 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 Product, type ProductResponse, 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, zBProduct, 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, zProduct, zProductResponse, zReportTicket, zReportTicketResponse, zScheduleData, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserProfile, zUserRoles };
|
package/index.js
CHANGED
|
@@ -90,6 +90,8 @@ __export(index_exports, {
|
|
|
90
90
|
zLoginRequest: () => zLoginRequest,
|
|
91
91
|
zLoginResponse: () => zLoginResponse,
|
|
92
92
|
zPrivateBooking: () => zPrivateBooking,
|
|
93
|
+
zProduct: () => zProduct,
|
|
94
|
+
zProductResponse: () => zProductResponse,
|
|
93
95
|
zReportTicket: () => zReportTicket,
|
|
94
96
|
zReportTicketResponse: () => zReportTicketResponse,
|
|
95
97
|
zScheduleData: () => zScheduleData,
|
|
@@ -968,9 +970,12 @@ var import_zod32 = require("zod");
|
|
|
968
970
|
var zBProduct = import_zod32.z.object({
|
|
969
971
|
name: import_zod32.z.string().min(1, "Name is required"),
|
|
970
972
|
price: import_zod32.z.number().min(0, "Price cannot be negative"),
|
|
971
|
-
|
|
973
|
+
notes: import_zod32.z.string().optional()
|
|
972
974
|
});
|
|
973
975
|
var zProduct = addAutoProps(zBProduct);
|
|
976
|
+
var zProductResponse = zProduct.extend({
|
|
977
|
+
editedBy: zUser
|
|
978
|
+
});
|
|
974
979
|
// Annotate the CommonJS export names for ESM import in node:
|
|
975
980
|
0 && (module.exports = {
|
|
976
981
|
AgeGroup,
|
|
@@ -1043,6 +1048,8 @@ var zProduct = addAutoProps(zBProduct);
|
|
|
1043
1048
|
zLoginRequest,
|
|
1044
1049
|
zLoginResponse,
|
|
1045
1050
|
zPrivateBooking,
|
|
1051
|
+
zProduct,
|
|
1052
|
+
zProductResponse,
|
|
1046
1053
|
zReportTicket,
|
|
1047
1054
|
zReportTicketResponse,
|
|
1048
1055
|
zScheduleData,
|
package/index.mjs
CHANGED
|
@@ -858,9 +858,12 @@ import { z as z32 } from "zod";
|
|
|
858
858
|
var zBProduct = z32.object({
|
|
859
859
|
name: z32.string().min(1, "Name is required"),
|
|
860
860
|
price: z32.number().min(0, "Price cannot be negative"),
|
|
861
|
-
|
|
861
|
+
notes: z32.string().optional()
|
|
862
862
|
});
|
|
863
863
|
var zProduct = addAutoProps(zBProduct);
|
|
864
|
+
var zProductResponse = zProduct.extend({
|
|
865
|
+
editedBy: zUser
|
|
866
|
+
});
|
|
864
867
|
export {
|
|
865
868
|
AgeGroup,
|
|
866
869
|
AttendState,
|
|
@@ -932,6 +935,8 @@ export {
|
|
|
932
935
|
zLoginRequest,
|
|
933
936
|
zLoginResponse,
|
|
934
937
|
zPrivateBooking,
|
|
938
|
+
zProduct,
|
|
939
|
+
zProductResponse,
|
|
935
940
|
zReportTicket,
|
|
936
941
|
zReportTicketResponse,
|
|
937
942
|
zScheduleData,
|