@nyig/models 0.2.9 → 0.2.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 +6 -4
- package/index.d.ts +6 -4
- package/index.js +4 -4
- package/index.mjs +4 -4
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -95,8 +95,8 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
95
95
|
createdAt?: Date | undefined;
|
|
96
96
|
updatedAt?: Date | undefined;
|
|
97
97
|
}>;
|
|
98
|
-
type
|
|
99
|
-
type
|
|
98
|
+
type PrivateBooking = z.infer<typeof zPrivateBooking>;
|
|
99
|
+
type MPrivateBooking = z.infer<typeof zMPrivateBooking>;
|
|
100
100
|
|
|
101
101
|
declare const zGroupBooking: z.ZodObject<{
|
|
102
102
|
firstName: z.ZodString;
|
|
@@ -335,7 +335,9 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
335
335
|
tuition: z.ZodOptional<z.ZodObject<{
|
|
336
336
|
primary: z.ZodNumber;
|
|
337
337
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
-
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
shipping: z.ZodOptional<z.ZodBoolean>; /**
|
|
339
|
+
* Mongoose object ID
|
|
340
|
+
*/
|
|
339
341
|
}, "strip", z.ZodTypeAny, {
|
|
340
342
|
primary: number;
|
|
341
343
|
textbook?: boolean | undefined;
|
|
@@ -1850,4 +1852,4 @@ declare const zUserRoles: z.ZodObject<{
|
|
|
1850
1852
|
}>;
|
|
1851
1853
|
type UserRoles = z.infer<typeof zUserRoles>;
|
|
1852
1854
|
|
|
1853
|
-
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, type
|
|
1855
|
+
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, type BUserInfo, type CampBooking, CampOption, type CampTracker, type ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type MAttendance, type MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type MGroupBooking, type MGroupTracker, type MInvoice, type MNYIGMission, type MPrivateBooking, type MReportTicket, type MSemester, type MStudent, type MTConfig, type MTReg, type MTTicket, type MTeacher, type MTeacherPayment, type MUser, type NYIGMission, NYIGSchool, PaymentMethod, type PrivateBooking, type ReportTicket, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type TConfig, type TReg, type TTicket, type TTicketReg, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBPaymentInfo, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zMAttendance, zMCampBooking, zMCampTracker, zMClassTracker, zMCourse, zMGroupBooking, zMGroupTracker, zMInvoice, zMPrivateBooking, zMReportTicket, zMSemester, zMStudent, zMTConfig, zMTReg, zMTTicket, zMTeacher, zMTeacherPayment, zMUser, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTConfig, zTReg, zTTicket, zTTicketReg, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
package/index.d.ts
CHANGED
|
@@ -95,8 +95,8 @@ declare const zMPrivateBooking: z.ZodObject<{
|
|
|
95
95
|
createdAt?: Date | undefined;
|
|
96
96
|
updatedAt?: Date | undefined;
|
|
97
97
|
}>;
|
|
98
|
-
type
|
|
99
|
-
type
|
|
98
|
+
type PrivateBooking = z.infer<typeof zPrivateBooking>;
|
|
99
|
+
type MPrivateBooking = z.infer<typeof zMPrivateBooking>;
|
|
100
100
|
|
|
101
101
|
declare const zGroupBooking: z.ZodObject<{
|
|
102
102
|
firstName: z.ZodString;
|
|
@@ -335,7 +335,9 @@ declare const zClassTracker: z.ZodObject<{
|
|
|
335
335
|
tuition: z.ZodOptional<z.ZodObject<{
|
|
336
336
|
primary: z.ZodNumber;
|
|
337
337
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
-
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
shipping: z.ZodOptional<z.ZodBoolean>; /**
|
|
339
|
+
* Mongoose object ID
|
|
340
|
+
*/
|
|
339
341
|
}, "strip", z.ZodTypeAny, {
|
|
340
342
|
primary: number;
|
|
341
343
|
textbook?: boolean | undefined;
|
|
@@ -1850,4 +1852,4 @@ declare const zUserRoles: z.ZodObject<{
|
|
|
1850
1852
|
}>;
|
|
1851
1853
|
type UserRoles = z.infer<typeof zUserRoles>;
|
|
1852
1854
|
|
|
1853
|
-
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, type
|
|
1855
|
+
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, type BUserInfo, type CampBooking, CampOption, type CampTracker, type ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type MAttendance, type MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type MGroupBooking, type MGroupTracker, type MInvoice, type MNYIGMission, type MPrivateBooking, type MReportTicket, type MSemester, type MStudent, type MTConfig, type MTReg, type MTTicket, type MTeacher, type MTeacherPayment, type MUser, type NYIGMission, NYIGSchool, PaymentMethod, type PrivateBooking, type ReportTicket, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type TConfig, type TReg, type TTicket, type TTicketReg, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBPaymentInfo, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zMAttendance, zMCampBooking, zMCampTracker, zMClassTracker, zMCourse, zMGroupBooking, zMGroupTracker, zMInvoice, zMPrivateBooking, zMReportTicket, zMSemester, zMStudent, zMTConfig, zMTReg, zMTTicket, zMTeacher, zMTeacherPayment, zMUser, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTConfig, zTReg, zTTicket, zTTicketReg, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
package/index.js
CHANGED
|
@@ -114,7 +114,7 @@ var zBPaymentInfo = import_zod3.z.object({
|
|
|
114
114
|
/**
|
|
115
115
|
* @units CENTS - Proposed payment amount in cents of the booking
|
|
116
116
|
*/
|
|
117
|
-
paymentAmount: import_zod3.z.number(),
|
|
117
|
+
paymentAmount: import_zod3.z.number().int().min(1),
|
|
118
118
|
/**
|
|
119
119
|
* True if the payment has been received. Populated by webhook.
|
|
120
120
|
*/
|
|
@@ -165,7 +165,7 @@ var import_zod7 = require("zod");
|
|
|
165
165
|
// src/interface/payment/tuition.ts
|
|
166
166
|
var import_zod6 = require("zod");
|
|
167
167
|
var zTuition = import_zod6.z.object({
|
|
168
|
-
primary: import_zod6.z.number(),
|
|
168
|
+
primary: import_zod6.z.number().int().min(1),
|
|
169
169
|
textbook: import_zod6.z.boolean().optional(),
|
|
170
170
|
shipping: import_zod6.z.boolean().optional()
|
|
171
171
|
});
|
|
@@ -254,8 +254,8 @@ var zInvoice = import_zod9.z.object({
|
|
|
254
254
|
billTo: import_zod9.z.string(),
|
|
255
255
|
packages: import_zod9.z.array(zInvoicePackage),
|
|
256
256
|
discounts: import_zod9.z.array(zDiscount),
|
|
257
|
-
textbook: import_zod9.z.number().optional(),
|
|
258
|
-
shipping: import_zod9.z.number().optional(),
|
|
257
|
+
textbook: import_zod9.z.number().int().min(1).optional(),
|
|
258
|
+
shipping: import_zod9.z.number().int().min(1).optional(),
|
|
259
259
|
paid: import_zod9.z.nativeEnum(PaymentMethod).optional(),
|
|
260
260
|
notes: import_zod9.z.string().optional(),
|
|
261
261
|
/**
|
package/index.mjs
CHANGED
|
@@ -29,7 +29,7 @@ var zBPaymentInfo = z3.object({
|
|
|
29
29
|
/**
|
|
30
30
|
* @units CENTS - Proposed payment amount in cents of the booking
|
|
31
31
|
*/
|
|
32
|
-
paymentAmount: z3.number(),
|
|
32
|
+
paymentAmount: z3.number().int().min(1),
|
|
33
33
|
/**
|
|
34
34
|
* True if the payment has been received. Populated by webhook.
|
|
35
35
|
*/
|
|
@@ -80,7 +80,7 @@ import { z as z7 } from "zod";
|
|
|
80
80
|
// src/interface/payment/tuition.ts
|
|
81
81
|
import { z as z6 } from "zod";
|
|
82
82
|
var zTuition = z6.object({
|
|
83
|
-
primary: z6.number(),
|
|
83
|
+
primary: z6.number().int().min(1),
|
|
84
84
|
textbook: z6.boolean().optional(),
|
|
85
85
|
shipping: z6.boolean().optional()
|
|
86
86
|
});
|
|
@@ -169,8 +169,8 @@ var zInvoice = z9.object({
|
|
|
169
169
|
billTo: z9.string(),
|
|
170
170
|
packages: z9.array(zInvoicePackage),
|
|
171
171
|
discounts: z9.array(zDiscount),
|
|
172
|
-
textbook: z9.number().optional(),
|
|
173
|
-
shipping: z9.number().optional(),
|
|
172
|
+
textbook: z9.number().int().min(1).optional(),
|
|
173
|
+
shipping: z9.number().int().min(1).optional(),
|
|
174
174
|
paid: z9.nativeEnum(PaymentMethod).optional(),
|
|
175
175
|
notes: z9.string().optional(),
|
|
176
176
|
/**
|