@nyig/models 0.2.8 → 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 +7 -4
- package/index.d.ts +7 -4
- package/index.js +10 -4
- package/index.mjs +9 -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;
|
|
@@ -1085,6 +1087,7 @@ declare enum TicketStatus {
|
|
|
1085
1087
|
SIGN_OFF = "Sign-off",
|
|
1086
1088
|
COMPLETED = "Completed"
|
|
1087
1089
|
}
|
|
1090
|
+
|
|
1088
1091
|
declare const zReportTicket: z.ZodObject<{
|
|
1089
1092
|
requester: z.ZodString;
|
|
1090
1093
|
resolver: z.ZodString;
|
|
@@ -1849,4 +1852,4 @@ declare const zUserRoles: z.ZodObject<{
|
|
|
1849
1852
|
}>;
|
|
1850
1853
|
type UserRoles = z.infer<typeof zUserRoles>;
|
|
1851
1854
|
|
|
1852
|
-
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;
|
|
@@ -1085,6 +1087,7 @@ declare enum TicketStatus {
|
|
|
1085
1087
|
SIGN_OFF = "Sign-off",
|
|
1086
1088
|
COMPLETED = "Completed"
|
|
1087
1089
|
}
|
|
1090
|
+
|
|
1088
1091
|
declare const zReportTicket: z.ZodObject<{
|
|
1089
1092
|
requester: z.ZodString;
|
|
1090
1093
|
resolver: z.ZodString;
|
|
@@ -1849,4 +1852,4 @@ declare const zUserRoles: z.ZodObject<{
|
|
|
1849
1852
|
}>;
|
|
1850
1853
|
type UserRoles = z.infer<typeof zUserRoles>;
|
|
1851
1854
|
|
|
1852
|
-
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
|
@@ -28,6 +28,7 @@ __export(src_exports, {
|
|
|
28
28
|
NYIGSchool: () => NYIGSchool,
|
|
29
29
|
PaymentMethod: () => PaymentMethod,
|
|
30
30
|
Season: () => Season,
|
|
31
|
+
TicketStatus: () => TicketStatus,
|
|
31
32
|
zAttendance: () => zAttendance,
|
|
32
33
|
zBPaymentInfo: () => zBPaymentInfo,
|
|
33
34
|
zBUserInfo: () => zBUserInfo,
|
|
@@ -113,7 +114,7 @@ var zBPaymentInfo = import_zod3.z.object({
|
|
|
113
114
|
/**
|
|
114
115
|
* @units CENTS - Proposed payment amount in cents of the booking
|
|
115
116
|
*/
|
|
116
|
-
paymentAmount: import_zod3.z.number(),
|
|
117
|
+
paymentAmount: import_zod3.z.number().int().min(1),
|
|
117
118
|
/**
|
|
118
119
|
* True if the payment has been received. Populated by webhook.
|
|
119
120
|
*/
|
|
@@ -164,7 +165,7 @@ var import_zod7 = require("zod");
|
|
|
164
165
|
// src/interface/payment/tuition.ts
|
|
165
166
|
var import_zod6 = require("zod");
|
|
166
167
|
var zTuition = import_zod6.z.object({
|
|
167
|
-
primary: import_zod6.z.number(),
|
|
168
|
+
primary: import_zod6.z.number().int().min(1),
|
|
168
169
|
textbook: import_zod6.z.boolean().optional(),
|
|
169
170
|
shipping: import_zod6.z.boolean().optional()
|
|
170
171
|
});
|
|
@@ -253,8 +254,8 @@ var zInvoice = import_zod9.z.object({
|
|
|
253
254
|
billTo: import_zod9.z.string(),
|
|
254
255
|
packages: import_zod9.z.array(zInvoicePackage),
|
|
255
256
|
discounts: import_zod9.z.array(zDiscount),
|
|
256
|
-
textbook: import_zod9.z.number().optional(),
|
|
257
|
-
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(),
|
|
258
259
|
paid: import_zod9.z.nativeEnum(PaymentMethod).optional(),
|
|
259
260
|
notes: import_zod9.z.string().optional(),
|
|
260
261
|
/**
|
|
@@ -456,6 +457,8 @@ var zImageDef = import_zod17.z.object({
|
|
|
456
457
|
|
|
457
458
|
// src/interface/reporting/reportTicket.ts
|
|
458
459
|
var import_zod18 = require("zod");
|
|
460
|
+
|
|
461
|
+
// src/interface/reporting/ticketStatus.ts
|
|
459
462
|
var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
460
463
|
TicketStatus2["REQUESTED"] = "Requested";
|
|
461
464
|
TicketStatus2["IN_PROGRESS"] = "In-progress";
|
|
@@ -463,6 +466,8 @@ var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
|
463
466
|
TicketStatus2["COMPLETED"] = "Completed";
|
|
464
467
|
return TicketStatus2;
|
|
465
468
|
})(TicketStatus || {});
|
|
469
|
+
|
|
470
|
+
// src/interface/reporting/reportTicket.ts
|
|
466
471
|
var zReportTicket = import_zod18.z.object({
|
|
467
472
|
requester: import_zod18.z.string(),
|
|
468
473
|
resolver: import_zod18.z.string(),
|
|
@@ -755,6 +760,7 @@ var zMTeacher = extendZodObjectForMongoose(zTeacher);
|
|
|
755
760
|
NYIGSchool,
|
|
756
761
|
PaymentMethod,
|
|
757
762
|
Season,
|
|
763
|
+
TicketStatus,
|
|
758
764
|
zAttendance,
|
|
759
765
|
zBPaymentInfo,
|
|
760
766
|
zBUserInfo,
|
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
|
/**
|
|
@@ -372,6 +372,8 @@ var zImageDef = z17.object({
|
|
|
372
372
|
|
|
373
373
|
// src/interface/reporting/reportTicket.ts
|
|
374
374
|
import { z as z18 } from "zod";
|
|
375
|
+
|
|
376
|
+
// src/interface/reporting/ticketStatus.ts
|
|
375
377
|
var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
376
378
|
TicketStatus2["REQUESTED"] = "Requested";
|
|
377
379
|
TicketStatus2["IN_PROGRESS"] = "In-progress";
|
|
@@ -379,6 +381,8 @@ var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
|
379
381
|
TicketStatus2["COMPLETED"] = "Completed";
|
|
380
382
|
return TicketStatus2;
|
|
381
383
|
})(TicketStatus || {});
|
|
384
|
+
|
|
385
|
+
// src/interface/reporting/reportTicket.ts
|
|
382
386
|
var zReportTicket = z18.object({
|
|
383
387
|
requester: z18.string(),
|
|
384
388
|
resolver: z18.string(),
|
|
@@ -670,6 +674,7 @@ export {
|
|
|
670
674
|
NYIGSchool,
|
|
671
675
|
PaymentMethod,
|
|
672
676
|
Season,
|
|
677
|
+
TicketStatus,
|
|
673
678
|
zAttendance,
|
|
674
679
|
zBPaymentInfo,
|
|
675
680
|
zBUserInfo,
|