@nyig/models 0.6.6 → 0.6.7
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 +40 -1
- package/index.d.ts +40 -1
- package/index.js +11 -0
- package/index.mjs +10 -0
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -8743,4 +8743,43 @@ 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
|
-
|
|
8746
|
+
declare const zBProduct: z.ZodObject<{
|
|
8747
|
+
name: z.ZodString;
|
|
8748
|
+
price: z.ZodNumber;
|
|
8749
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
8750
|
+
}, "strip", z.ZodTypeAny, {
|
|
8751
|
+
name: string;
|
|
8752
|
+
price: number;
|
|
8753
|
+
editedBy?: string | undefined;
|
|
8754
|
+
}, {
|
|
8755
|
+
name: string;
|
|
8756
|
+
price: number;
|
|
8757
|
+
editedBy?: string | undefined;
|
|
8758
|
+
}>;
|
|
8759
|
+
declare const zProduct: z.ZodObject<{
|
|
8760
|
+
name: z.ZodString;
|
|
8761
|
+
price: z.ZodNumber;
|
|
8762
|
+
} & {
|
|
8763
|
+
_id: z.ZodString;
|
|
8764
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
8765
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
8766
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
8767
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
8768
|
+
_id: string;
|
|
8769
|
+
name: string;
|
|
8770
|
+
price: number;
|
|
8771
|
+
editedBy?: string | undefined;
|
|
8772
|
+
createdAt?: string | undefined;
|
|
8773
|
+
updatedAt?: string | undefined;
|
|
8774
|
+
}, {
|
|
8775
|
+
_id: string;
|
|
8776
|
+
name: string;
|
|
8777
|
+
price: number;
|
|
8778
|
+
editedBy?: string | undefined;
|
|
8779
|
+
createdAt?: string | undefined;
|
|
8780
|
+
updatedAt?: string | undefined;
|
|
8781
|
+
}>;
|
|
8782
|
+
type BProduct = z.infer<typeof zBProduct>;
|
|
8783
|
+
type Product = z.infer<typeof zProduct>;
|
|
8784
|
+
|
|
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 };
|
package/index.d.ts
CHANGED
|
@@ -8743,4 +8743,43 @@ 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
|
-
|
|
8746
|
+
declare const zBProduct: z.ZodObject<{
|
|
8747
|
+
name: z.ZodString;
|
|
8748
|
+
price: z.ZodNumber;
|
|
8749
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
8750
|
+
}, "strip", z.ZodTypeAny, {
|
|
8751
|
+
name: string;
|
|
8752
|
+
price: number;
|
|
8753
|
+
editedBy?: string | undefined;
|
|
8754
|
+
}, {
|
|
8755
|
+
name: string;
|
|
8756
|
+
price: number;
|
|
8757
|
+
editedBy?: string | undefined;
|
|
8758
|
+
}>;
|
|
8759
|
+
declare const zProduct: z.ZodObject<{
|
|
8760
|
+
name: z.ZodString;
|
|
8761
|
+
price: z.ZodNumber;
|
|
8762
|
+
} & {
|
|
8763
|
+
_id: z.ZodString;
|
|
8764
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
8765
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
8766
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
8767
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
8768
|
+
_id: string;
|
|
8769
|
+
name: string;
|
|
8770
|
+
price: number;
|
|
8771
|
+
editedBy?: string | undefined;
|
|
8772
|
+
createdAt?: string | undefined;
|
|
8773
|
+
updatedAt?: string | undefined;
|
|
8774
|
+
}, {
|
|
8775
|
+
_id: string;
|
|
8776
|
+
name: string;
|
|
8777
|
+
price: number;
|
|
8778
|
+
editedBy?: string | undefined;
|
|
8779
|
+
createdAt?: string | undefined;
|
|
8780
|
+
updatedAt?: string | undefined;
|
|
8781
|
+
}>;
|
|
8782
|
+
type BProduct = z.infer<typeof zBProduct>;
|
|
8783
|
+
type Product = z.infer<typeof zProduct>;
|
|
8784
|
+
|
|
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 };
|
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
|
+
editedBy: 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
|
+
editedBy: 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,
|