@nyig/models 0.6.8 → 0.6.10

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 CHANGED
@@ -2338,8 +2338,7 @@ declare enum CourseCategory {
2338
2338
  GROUP = "group",
2339
2339
  PRIVATE = "private",
2340
2340
  SEMIPRIVATE = "semiprivate",
2341
- CAMP = "camp",
2342
- EVENT = "event"
2341
+ CAMP = "camp"
2343
2342
  }
2344
2343
 
2345
2344
  declare enum NYIGSchool {
@@ -8782,7 +8781,239 @@ declare const zProduct: z.ZodObject<{
8782
8781
  createdAt?: string | undefined;
8783
8782
  updatedAt?: string | undefined;
8784
8783
  }>;
8784
+ declare const zProductResponse: z.ZodObject<{
8785
+ name: z.ZodString;
8786
+ price: z.ZodNumber;
8787
+ notes: z.ZodOptional<z.ZodString>;
8788
+ _id: z.ZodString;
8789
+ createdAt: z.ZodOptional<z.ZodString>;
8790
+ updatedAt: z.ZodOptional<z.ZodString>;
8791
+ } & {
8792
+ editedBy: z.ZodObject<{
8793
+ name: z.ZodString;
8794
+ roles: z.ZodOptional<z.ZodObject<{
8795
+ user: z.ZodNumber;
8796
+ admin: z.ZodOptional<z.ZodNumber>;
8797
+ superadmin: z.ZodOptional<z.ZodNumber>;
8798
+ }, "strip", z.ZodTypeAny, {
8799
+ user: number;
8800
+ admin?: number | undefined;
8801
+ superadmin?: number | undefined;
8802
+ }, {
8803
+ user: number;
8804
+ admin?: number | undefined;
8805
+ superadmin?: number | undefined;
8806
+ }>>;
8807
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8808
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8809
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8810
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8811
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8812
+ shouldChangePassword: z.ZodOptional<z.ZodBoolean>;
8813
+ profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
8814
+ firstName: z.ZodString;
8815
+ lastName: z.ZodString;
8816
+ rank: z.ZodOptional<z.ZodNativeEnum<typeof GoRank>>;
8817
+ agaId: z.ZodString;
8818
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8819
+ participateAs: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["adult", "youth"]>, z.ZodLiteral<"">]>>;
8820
+ showOnWhoIsComing: z.ZodOptional<z.ZodBoolean>;
8821
+ preferredEmail: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8822
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8823
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8824
+ } & {
8825
+ _id: z.ZodString;
8826
+ editedBy: z.ZodOptional<z.ZodString>;
8827
+ createdAt: z.ZodOptional<z.ZodString>;
8828
+ updatedAt: z.ZodOptional<z.ZodString>;
8829
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
8830
+ firstName: string;
8831
+ lastName: string;
8832
+ _id: string;
8833
+ agaId: string;
8834
+ rank?: GoRank | undefined;
8835
+ address?: string | undefined;
8836
+ showOnWhoIsComing?: boolean | undefined;
8837
+ participateAs?: "" | "adult" | "youth" | undefined;
8838
+ editedBy?: string | undefined;
8839
+ createdAt?: string | undefined;
8840
+ updatedAt?: string | undefined;
8841
+ preferredEmail?: string | undefined;
8842
+ phoneNumber?: string | undefined;
8843
+ birthDate?: string | undefined;
8844
+ }, {
8845
+ firstName: string;
8846
+ lastName: string;
8847
+ _id: string;
8848
+ agaId: string;
8849
+ rank?: GoRank | undefined;
8850
+ address?: string | undefined;
8851
+ showOnWhoIsComing?: boolean | undefined;
8852
+ participateAs?: "" | "adult" | "youth" | undefined;
8853
+ editedBy?: string | undefined;
8854
+ createdAt?: string | undefined;
8855
+ updatedAt?: string | undefined;
8856
+ preferredEmail?: string | undefined;
8857
+ phoneNumber?: string | undefined;
8858
+ birthDate?: string | undefined;
8859
+ }>, "many">>;
8860
+ } & {
8861
+ _id: z.ZodString;
8862
+ editedBy: z.ZodOptional<z.ZodString>;
8863
+ createdAt: z.ZodOptional<z.ZodString>;
8864
+ updatedAt: z.ZodOptional<z.ZodString>;
8865
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
8866
+ _id: string;
8867
+ name: string;
8868
+ email?: string | undefined;
8869
+ address?: string | undefined;
8870
+ editedBy?: string | undefined;
8871
+ createdAt?: string | undefined;
8872
+ updatedAt?: string | undefined;
8873
+ phoneNumber?: string | undefined;
8874
+ birthDate?: string | undefined;
8875
+ roles?: {
8876
+ user: number;
8877
+ admin?: number | undefined;
8878
+ superadmin?: number | undefined;
8879
+ } | undefined;
8880
+ country?: string | undefined;
8881
+ shouldChangePassword?: boolean | undefined;
8882
+ profiles?: {
8883
+ firstName: string;
8884
+ lastName: string;
8885
+ _id: string;
8886
+ agaId: string;
8887
+ rank?: GoRank | undefined;
8888
+ address?: string | undefined;
8889
+ showOnWhoIsComing?: boolean | undefined;
8890
+ participateAs?: "" | "adult" | "youth" | undefined;
8891
+ editedBy?: string | undefined;
8892
+ createdAt?: string | undefined;
8893
+ updatedAt?: string | undefined;
8894
+ preferredEmail?: string | undefined;
8895
+ phoneNumber?: string | undefined;
8896
+ birthDate?: string | undefined;
8897
+ }[] | undefined;
8898
+ }, {
8899
+ _id: string;
8900
+ name: string;
8901
+ email?: string | undefined;
8902
+ address?: string | undefined;
8903
+ editedBy?: string | undefined;
8904
+ createdAt?: string | undefined;
8905
+ updatedAt?: string | undefined;
8906
+ phoneNumber?: string | undefined;
8907
+ birthDate?: string | undefined;
8908
+ roles?: {
8909
+ user: number;
8910
+ admin?: number | undefined;
8911
+ superadmin?: number | undefined;
8912
+ } | undefined;
8913
+ country?: string | undefined;
8914
+ shouldChangePassword?: boolean | undefined;
8915
+ profiles?: {
8916
+ firstName: string;
8917
+ lastName: string;
8918
+ _id: string;
8919
+ agaId: string;
8920
+ rank?: GoRank | undefined;
8921
+ address?: string | undefined;
8922
+ showOnWhoIsComing?: boolean | undefined;
8923
+ participateAs?: "" | "adult" | "youth" | undefined;
8924
+ editedBy?: string | undefined;
8925
+ createdAt?: string | undefined;
8926
+ updatedAt?: string | undefined;
8927
+ preferredEmail?: string | undefined;
8928
+ phoneNumber?: string | undefined;
8929
+ birthDate?: string | undefined;
8930
+ }[] | undefined;
8931
+ }>;
8932
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
8933
+ _id: string;
8934
+ editedBy: {
8935
+ _id: string;
8936
+ name: string;
8937
+ email?: string | undefined;
8938
+ address?: string | undefined;
8939
+ editedBy?: string | undefined;
8940
+ createdAt?: string | undefined;
8941
+ updatedAt?: string | undefined;
8942
+ phoneNumber?: string | undefined;
8943
+ birthDate?: string | undefined;
8944
+ roles?: {
8945
+ user: number;
8946
+ admin?: number | undefined;
8947
+ superadmin?: number | undefined;
8948
+ } | undefined;
8949
+ country?: string | undefined;
8950
+ shouldChangePassword?: boolean | undefined;
8951
+ profiles?: {
8952
+ firstName: string;
8953
+ lastName: string;
8954
+ _id: string;
8955
+ agaId: string;
8956
+ rank?: GoRank | undefined;
8957
+ address?: string | undefined;
8958
+ showOnWhoIsComing?: boolean | undefined;
8959
+ participateAs?: "" | "adult" | "youth" | undefined;
8960
+ editedBy?: string | undefined;
8961
+ createdAt?: string | undefined;
8962
+ updatedAt?: string | undefined;
8963
+ preferredEmail?: string | undefined;
8964
+ phoneNumber?: string | undefined;
8965
+ birthDate?: string | undefined;
8966
+ }[] | undefined;
8967
+ };
8968
+ name: string;
8969
+ price: number;
8970
+ notes?: string | undefined;
8971
+ createdAt?: string | undefined;
8972
+ updatedAt?: string | undefined;
8973
+ }, {
8974
+ _id: string;
8975
+ editedBy: {
8976
+ _id: string;
8977
+ name: string;
8978
+ email?: string | undefined;
8979
+ address?: string | undefined;
8980
+ editedBy?: string | undefined;
8981
+ createdAt?: string | undefined;
8982
+ updatedAt?: string | undefined;
8983
+ phoneNumber?: string | undefined;
8984
+ birthDate?: string | undefined;
8985
+ roles?: {
8986
+ user: number;
8987
+ admin?: number | undefined;
8988
+ superadmin?: number | undefined;
8989
+ } | undefined;
8990
+ country?: string | undefined;
8991
+ shouldChangePassword?: boolean | undefined;
8992
+ profiles?: {
8993
+ firstName: string;
8994
+ lastName: string;
8995
+ _id: string;
8996
+ agaId: string;
8997
+ rank?: GoRank | undefined;
8998
+ address?: string | undefined;
8999
+ showOnWhoIsComing?: boolean | undefined;
9000
+ participateAs?: "" | "adult" | "youth" | undefined;
9001
+ editedBy?: string | undefined;
9002
+ createdAt?: string | undefined;
9003
+ updatedAt?: string | undefined;
9004
+ preferredEmail?: string | undefined;
9005
+ phoneNumber?: string | undefined;
9006
+ birthDate?: string | undefined;
9007
+ }[] | undefined;
9008
+ };
9009
+ name: string;
9010
+ price: number;
9011
+ notes?: string | undefined;
9012
+ createdAt?: string | undefined;
9013
+ updatedAt?: string | undefined;
9014
+ }>;
8785
9015
  type BProduct = z.infer<typeof zBProduct>;
8786
9016
  type Product = z.infer<typeof zProduct>;
9017
+ type ProductResponse = z.infer<typeof zProductResponse>;
8787
9018
 
8788
- 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 };
9019
+ 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
@@ -2338,8 +2338,7 @@ declare enum CourseCategory {
2338
2338
  GROUP = "group",
2339
2339
  PRIVATE = "private",
2340
2340
  SEMIPRIVATE = "semiprivate",
2341
- CAMP = "camp",
2342
- EVENT = "event"
2341
+ CAMP = "camp"
2343
2342
  }
2344
2343
 
2345
2344
  declare enum NYIGSchool {
@@ -8782,7 +8781,239 @@ declare const zProduct: z.ZodObject<{
8782
8781
  createdAt?: string | undefined;
8783
8782
  updatedAt?: string | undefined;
8784
8783
  }>;
8784
+ declare const zProductResponse: z.ZodObject<{
8785
+ name: z.ZodString;
8786
+ price: z.ZodNumber;
8787
+ notes: z.ZodOptional<z.ZodString>;
8788
+ _id: z.ZodString;
8789
+ createdAt: z.ZodOptional<z.ZodString>;
8790
+ updatedAt: z.ZodOptional<z.ZodString>;
8791
+ } & {
8792
+ editedBy: z.ZodObject<{
8793
+ name: z.ZodString;
8794
+ roles: z.ZodOptional<z.ZodObject<{
8795
+ user: z.ZodNumber;
8796
+ admin: z.ZodOptional<z.ZodNumber>;
8797
+ superadmin: z.ZodOptional<z.ZodNumber>;
8798
+ }, "strip", z.ZodTypeAny, {
8799
+ user: number;
8800
+ admin?: number | undefined;
8801
+ superadmin?: number | undefined;
8802
+ }, {
8803
+ user: number;
8804
+ admin?: number | undefined;
8805
+ superadmin?: number | undefined;
8806
+ }>>;
8807
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8808
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8809
+ country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8810
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8811
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8812
+ shouldChangePassword: z.ZodOptional<z.ZodBoolean>;
8813
+ profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
8814
+ firstName: z.ZodString;
8815
+ lastName: z.ZodString;
8816
+ rank: z.ZodOptional<z.ZodNativeEnum<typeof GoRank>>;
8817
+ agaId: z.ZodString;
8818
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8819
+ participateAs: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["adult", "youth"]>, z.ZodLiteral<"">]>>;
8820
+ showOnWhoIsComing: z.ZodOptional<z.ZodBoolean>;
8821
+ preferredEmail: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8822
+ phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8823
+ birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
8824
+ } & {
8825
+ _id: z.ZodString;
8826
+ editedBy: z.ZodOptional<z.ZodString>;
8827
+ createdAt: z.ZodOptional<z.ZodString>;
8828
+ updatedAt: z.ZodOptional<z.ZodString>;
8829
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
8830
+ firstName: string;
8831
+ lastName: string;
8832
+ _id: string;
8833
+ agaId: string;
8834
+ rank?: GoRank | undefined;
8835
+ address?: string | undefined;
8836
+ showOnWhoIsComing?: boolean | undefined;
8837
+ participateAs?: "" | "adult" | "youth" | undefined;
8838
+ editedBy?: string | undefined;
8839
+ createdAt?: string | undefined;
8840
+ updatedAt?: string | undefined;
8841
+ preferredEmail?: string | undefined;
8842
+ phoneNumber?: string | undefined;
8843
+ birthDate?: string | undefined;
8844
+ }, {
8845
+ firstName: string;
8846
+ lastName: string;
8847
+ _id: string;
8848
+ agaId: string;
8849
+ rank?: GoRank | undefined;
8850
+ address?: string | undefined;
8851
+ showOnWhoIsComing?: boolean | undefined;
8852
+ participateAs?: "" | "adult" | "youth" | undefined;
8853
+ editedBy?: string | undefined;
8854
+ createdAt?: string | undefined;
8855
+ updatedAt?: string | undefined;
8856
+ preferredEmail?: string | undefined;
8857
+ phoneNumber?: string | undefined;
8858
+ birthDate?: string | undefined;
8859
+ }>, "many">>;
8860
+ } & {
8861
+ _id: z.ZodString;
8862
+ editedBy: z.ZodOptional<z.ZodString>;
8863
+ createdAt: z.ZodOptional<z.ZodString>;
8864
+ updatedAt: z.ZodOptional<z.ZodString>;
8865
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
8866
+ _id: string;
8867
+ name: string;
8868
+ email?: string | undefined;
8869
+ address?: string | undefined;
8870
+ editedBy?: string | undefined;
8871
+ createdAt?: string | undefined;
8872
+ updatedAt?: string | undefined;
8873
+ phoneNumber?: string | undefined;
8874
+ birthDate?: string | undefined;
8875
+ roles?: {
8876
+ user: number;
8877
+ admin?: number | undefined;
8878
+ superadmin?: number | undefined;
8879
+ } | undefined;
8880
+ country?: string | undefined;
8881
+ shouldChangePassword?: boolean | undefined;
8882
+ profiles?: {
8883
+ firstName: string;
8884
+ lastName: string;
8885
+ _id: string;
8886
+ agaId: string;
8887
+ rank?: GoRank | undefined;
8888
+ address?: string | undefined;
8889
+ showOnWhoIsComing?: boolean | undefined;
8890
+ participateAs?: "" | "adult" | "youth" | undefined;
8891
+ editedBy?: string | undefined;
8892
+ createdAt?: string | undefined;
8893
+ updatedAt?: string | undefined;
8894
+ preferredEmail?: string | undefined;
8895
+ phoneNumber?: string | undefined;
8896
+ birthDate?: string | undefined;
8897
+ }[] | undefined;
8898
+ }, {
8899
+ _id: string;
8900
+ name: string;
8901
+ email?: string | undefined;
8902
+ address?: string | undefined;
8903
+ editedBy?: string | undefined;
8904
+ createdAt?: string | undefined;
8905
+ updatedAt?: string | undefined;
8906
+ phoneNumber?: string | undefined;
8907
+ birthDate?: string | undefined;
8908
+ roles?: {
8909
+ user: number;
8910
+ admin?: number | undefined;
8911
+ superadmin?: number | undefined;
8912
+ } | undefined;
8913
+ country?: string | undefined;
8914
+ shouldChangePassword?: boolean | undefined;
8915
+ profiles?: {
8916
+ firstName: string;
8917
+ lastName: string;
8918
+ _id: string;
8919
+ agaId: string;
8920
+ rank?: GoRank | undefined;
8921
+ address?: string | undefined;
8922
+ showOnWhoIsComing?: boolean | undefined;
8923
+ participateAs?: "" | "adult" | "youth" | undefined;
8924
+ editedBy?: string | undefined;
8925
+ createdAt?: string | undefined;
8926
+ updatedAt?: string | undefined;
8927
+ preferredEmail?: string | undefined;
8928
+ phoneNumber?: string | undefined;
8929
+ birthDate?: string | undefined;
8930
+ }[] | undefined;
8931
+ }>;
8932
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
8933
+ _id: string;
8934
+ editedBy: {
8935
+ _id: string;
8936
+ name: string;
8937
+ email?: string | undefined;
8938
+ address?: string | undefined;
8939
+ editedBy?: string | undefined;
8940
+ createdAt?: string | undefined;
8941
+ updatedAt?: string | undefined;
8942
+ phoneNumber?: string | undefined;
8943
+ birthDate?: string | undefined;
8944
+ roles?: {
8945
+ user: number;
8946
+ admin?: number | undefined;
8947
+ superadmin?: number | undefined;
8948
+ } | undefined;
8949
+ country?: string | undefined;
8950
+ shouldChangePassword?: boolean | undefined;
8951
+ profiles?: {
8952
+ firstName: string;
8953
+ lastName: string;
8954
+ _id: string;
8955
+ agaId: string;
8956
+ rank?: GoRank | undefined;
8957
+ address?: string | undefined;
8958
+ showOnWhoIsComing?: boolean | undefined;
8959
+ participateAs?: "" | "adult" | "youth" | undefined;
8960
+ editedBy?: string | undefined;
8961
+ createdAt?: string | undefined;
8962
+ updatedAt?: string | undefined;
8963
+ preferredEmail?: string | undefined;
8964
+ phoneNumber?: string | undefined;
8965
+ birthDate?: string | undefined;
8966
+ }[] | undefined;
8967
+ };
8968
+ name: string;
8969
+ price: number;
8970
+ notes?: string | undefined;
8971
+ createdAt?: string | undefined;
8972
+ updatedAt?: string | undefined;
8973
+ }, {
8974
+ _id: string;
8975
+ editedBy: {
8976
+ _id: string;
8977
+ name: string;
8978
+ email?: string | undefined;
8979
+ address?: string | undefined;
8980
+ editedBy?: string | undefined;
8981
+ createdAt?: string | undefined;
8982
+ updatedAt?: string | undefined;
8983
+ phoneNumber?: string | undefined;
8984
+ birthDate?: string | undefined;
8985
+ roles?: {
8986
+ user: number;
8987
+ admin?: number | undefined;
8988
+ superadmin?: number | undefined;
8989
+ } | undefined;
8990
+ country?: string | undefined;
8991
+ shouldChangePassword?: boolean | undefined;
8992
+ profiles?: {
8993
+ firstName: string;
8994
+ lastName: string;
8995
+ _id: string;
8996
+ agaId: string;
8997
+ rank?: GoRank | undefined;
8998
+ address?: string | undefined;
8999
+ showOnWhoIsComing?: boolean | undefined;
9000
+ participateAs?: "" | "adult" | "youth" | undefined;
9001
+ editedBy?: string | undefined;
9002
+ createdAt?: string | undefined;
9003
+ updatedAt?: string | undefined;
9004
+ preferredEmail?: string | undefined;
9005
+ phoneNumber?: string | undefined;
9006
+ birthDate?: string | undefined;
9007
+ }[] | undefined;
9008
+ };
9009
+ name: string;
9010
+ price: number;
9011
+ notes?: string | undefined;
9012
+ createdAt?: string | undefined;
9013
+ updatedAt?: string | undefined;
9014
+ }>;
8785
9015
  type BProduct = z.infer<typeof zBProduct>;
8786
9016
  type Product = z.infer<typeof zProduct>;
9017
+ type ProductResponse = z.infer<typeof zProductResponse>;
8787
9018
 
8788
- 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 };
9019
+ 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,
@@ -353,7 +355,6 @@ var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
353
355
  CourseCategory2["PRIVATE"] = "private";
354
356
  CourseCategory2["SEMIPRIVATE"] = "semiprivate";
355
357
  CourseCategory2["CAMP"] = "camp";
356
- CourseCategory2["EVENT"] = "event";
357
358
  return CourseCategory2;
358
359
  })(CourseCategory || {});
359
360
 
@@ -971,6 +972,9 @@ var zBProduct = import_zod32.z.object({
971
972
  notes: import_zod32.z.string().optional()
972
973
  });
973
974
  var zProduct = addAutoProps(zBProduct);
975
+ var zProductResponse = zProduct.extend({
976
+ editedBy: zUser
977
+ });
974
978
  // Annotate the CommonJS export names for ESM import in node:
975
979
  0 && (module.exports = {
976
980
  AgeGroup,
@@ -1043,6 +1047,8 @@ var zProduct = addAutoProps(zBProduct);
1043
1047
  zLoginRequest,
1044
1048
  zLoginResponse,
1045
1049
  zPrivateBooking,
1050
+ zProduct,
1051
+ zProductResponse,
1046
1052
  zReportTicket,
1047
1053
  zReportTicketResponse,
1048
1054
  zScheduleData,
package/index.mjs CHANGED
@@ -243,7 +243,6 @@ var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
243
243
  CourseCategory2["PRIVATE"] = "private";
244
244
  CourseCategory2["SEMIPRIVATE"] = "semiprivate";
245
245
  CourseCategory2["CAMP"] = "camp";
246
- CourseCategory2["EVENT"] = "event";
247
246
  return CourseCategory2;
248
247
  })(CourseCategory || {});
249
248
 
@@ -861,6 +860,9 @@ var zBProduct = z32.object({
861
860
  notes: z32.string().optional()
862
861
  });
863
862
  var zProduct = addAutoProps(zBProduct);
863
+ var zProductResponse = zProduct.extend({
864
+ editedBy: zUser
865
+ });
864
866
  export {
865
867
  AgeGroup,
866
868
  AttendState,
@@ -932,6 +934,8 @@ export {
932
934
  zLoginRequest,
933
935
  zLoginResponse,
934
936
  zPrivateBooking,
937
+ zProduct,
938
+ zProductResponse,
935
939
  zReportTicket,
936
940
  zReportTicketResponse,
937
941
  zScheduleData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.6.8",
3
+ "version": "0.6.10",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",