@nyig/models 0.6.6 → 0.6.8

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
@@ -8743,4 +8743,46 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
8743
8743
  type LoginRequest = z.infer<typeof zLoginRequest>;
8744
8744
  type LoginResponse = z.infer<typeof zLoginResponse>;
8745
8745
 
8746
- export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTimesInput, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, DayOfWeek, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, FeesInCents, GoRank, type GroupBooking, type GroupTracker, type GroupTrackerResponse, HearAboutUs, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type PublicEventConfigResponse, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type TrackerCreate, type Tuition, type User, type UserProfile, type UserRoles, YouthOrAdult, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zBUserProfile, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserProfile, zUserRoles };
8746
+ declare const zBProduct: z.ZodObject<{
8747
+ name: z.ZodString;
8748
+ price: z.ZodNumber;
8749
+ notes: z.ZodOptional<z.ZodString>;
8750
+ }, "strip", z.ZodTypeAny, {
8751
+ name: string;
8752
+ price: number;
8753
+ notes?: string | undefined;
8754
+ }, {
8755
+ name: string;
8756
+ price: number;
8757
+ notes?: string | undefined;
8758
+ }>;
8759
+ declare const zProduct: z.ZodObject<{
8760
+ name: z.ZodString;
8761
+ price: z.ZodNumber;
8762
+ notes: z.ZodOptional<z.ZodString>;
8763
+ } & {
8764
+ _id: z.ZodString;
8765
+ editedBy: z.ZodOptional<z.ZodString>;
8766
+ createdAt: z.ZodOptional<z.ZodString>;
8767
+ updatedAt: z.ZodOptional<z.ZodString>;
8768
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
8769
+ _id: string;
8770
+ name: string;
8771
+ price: number;
8772
+ notes?: string | undefined;
8773
+ editedBy?: string | undefined;
8774
+ createdAt?: string | undefined;
8775
+ updatedAt?: string | undefined;
8776
+ }, {
8777
+ _id: string;
8778
+ name: string;
8779
+ price: number;
8780
+ notes?: string | undefined;
8781
+ editedBy?: string | undefined;
8782
+ createdAt?: string | undefined;
8783
+ updatedAt?: string | undefined;
8784
+ }>;
8785
+ type BProduct = z.infer<typeof zBProduct>;
8786
+ type Product = z.infer<typeof zProduct>;
8787
+
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 };
package/index.d.ts CHANGED
@@ -8743,4 +8743,46 @@ type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
8743
8743
  type LoginRequest = z.infer<typeof zLoginRequest>;
8744
8744
  type LoginResponse = z.infer<typeof zLoginResponse>;
8745
8745
 
8746
- export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTimesInput, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, DayOfWeek, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, FeesInCents, GoRank, type GroupBooking, type GroupTracker, type GroupTrackerResponse, HearAboutUs, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type PublicEventConfigResponse, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type TrackerCreate, type Tuition, type User, type UserProfile, type UserRoles, YouthOrAdult, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zBUserProfile, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDayOfWeek, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zGroupTrackerResponse, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTrackerCreate, zTuition, zUser, zUserProfile, zUserRoles };
8746
+ declare const zBProduct: z.ZodObject<{
8747
+ name: z.ZodString;
8748
+ price: z.ZodNumber;
8749
+ notes: z.ZodOptional<z.ZodString>;
8750
+ }, "strip", z.ZodTypeAny, {
8751
+ name: string;
8752
+ price: number;
8753
+ notes?: string | undefined;
8754
+ }, {
8755
+ name: string;
8756
+ price: number;
8757
+ notes?: string | undefined;
8758
+ }>;
8759
+ declare const zProduct: z.ZodObject<{
8760
+ name: z.ZodString;
8761
+ price: z.ZodNumber;
8762
+ notes: z.ZodOptional<z.ZodString>;
8763
+ } & {
8764
+ _id: z.ZodString;
8765
+ editedBy: z.ZodOptional<z.ZodString>;
8766
+ createdAt: z.ZodOptional<z.ZodString>;
8767
+ updatedAt: z.ZodOptional<z.ZodString>;
8768
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
8769
+ _id: string;
8770
+ name: string;
8771
+ price: number;
8772
+ notes?: string | undefined;
8773
+ editedBy?: string | undefined;
8774
+ createdAt?: string | undefined;
8775
+ updatedAt?: string | undefined;
8776
+ }, {
8777
+ _id: string;
8778
+ name: string;
8779
+ price: number;
8780
+ notes?: string | undefined;
8781
+ editedBy?: string | undefined;
8782
+ createdAt?: string | undefined;
8783
+ updatedAt?: string | undefined;
8784
+ }>;
8785
+ type BProduct = z.infer<typeof zBProduct>;
8786
+ type Product = z.infer<typeof zProduct>;
8787
+
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 };
package/index.js CHANGED
@@ -51,6 +51,7 @@ __export(index_exports, {
51
51
  zBInvoice: () => zBInvoice,
52
52
  zBPaymentInfo: () => zBPaymentInfo,
53
53
  zBPrivateBooking: () => zBPrivateBooking,
54
+ zBProduct: () => zBProduct,
54
55
  zBReportTicket: () => zBReportTicket,
55
56
  zBSemester: () => zBSemester,
56
57
  zBStudent: () => zBStudent,
@@ -961,6 +962,15 @@ var zEventReg = addAutoProps(zBEventReg);
961
962
  var zEventRegResponse = zEventReg.extend({
962
963
  tickets: import_zod31.z.array(zEventTicketRegResponse)
963
964
  });
965
+
966
+ // src/interface/products.ts
967
+ var import_zod32 = require("zod");
968
+ var zBProduct = import_zod32.z.object({
969
+ name: import_zod32.z.string().min(1, "Name is required"),
970
+ price: import_zod32.z.number().min(0, "Price cannot be negative"),
971
+ notes: import_zod32.z.string().optional()
972
+ });
973
+ var zProduct = addAutoProps(zBProduct);
964
974
  // Annotate the CommonJS export names for ESM import in node:
965
975
  0 && (module.exports = {
966
976
  AgeGroup,
@@ -994,6 +1004,7 @@ var zEventRegResponse = zEventReg.extend({
994
1004
  zBInvoice,
995
1005
  zBPaymentInfo,
996
1006
  zBPrivateBooking,
1007
+ zBProduct,
997
1008
  zBReportTicket,
998
1009
  zBSemester,
999
1010
  zBStudent,
package/index.mjs CHANGED
@@ -852,6 +852,15 @@ var zEventReg = addAutoProps(zBEventReg);
852
852
  var zEventRegResponse = zEventReg.extend({
853
853
  tickets: z31.array(zEventTicketRegResponse)
854
854
  });
855
+
856
+ // src/interface/products.ts
857
+ import { z as z32 } from "zod";
858
+ var zBProduct = z32.object({
859
+ name: z32.string().min(1, "Name is required"),
860
+ price: z32.number().min(0, "Price cannot be negative"),
861
+ notes: z32.string().optional()
862
+ });
863
+ var zProduct = addAutoProps(zBProduct);
855
864
  export {
856
865
  AgeGroup,
857
866
  AttendState,
@@ -884,6 +893,7 @@ export {
884
893
  zBInvoice,
885
894
  zBPaymentInfo,
886
895
  zBPrivateBooking,
896
+ zBProduct,
887
897
  zBReportTicket,
888
898
  zBSemester,
889
899
  zBStudent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",