@nyig/models 0.2.46 → 0.3.0
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 +74 -20
- package/index.d.ts +74 -20
- package/index.js +211 -194
- package/index.mjs +210 -194
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -187,6 +187,29 @@ declare const zUser: z.ZodObject<{
|
|
|
187
187
|
createdAt?: string | undefined;
|
|
188
188
|
updatedAt?: string | undefined;
|
|
189
189
|
}>;
|
|
190
|
+
type BUser = z.infer<typeof zBUser>;
|
|
191
|
+
type User = z.infer<typeof zUser>;
|
|
192
|
+
|
|
193
|
+
declare enum Role {
|
|
194
|
+
SUPERADMIN = 7926,
|
|
195
|
+
ADMIN = 2023,
|
|
196
|
+
USER = 2014
|
|
197
|
+
}
|
|
198
|
+
declare const zUserRoles: z.ZodObject<{
|
|
199
|
+
user: z.ZodNumber;
|
|
200
|
+
admin: z.ZodNumber;
|
|
201
|
+
superadmin: z.ZodNumber;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
user: number;
|
|
204
|
+
admin: number;
|
|
205
|
+
superadmin: number;
|
|
206
|
+
}, {
|
|
207
|
+
user: number;
|
|
208
|
+
admin: number;
|
|
209
|
+
superadmin: number;
|
|
210
|
+
}>;
|
|
211
|
+
type UserRoles = z.infer<typeof zUserRoles>;
|
|
212
|
+
|
|
190
213
|
declare const zBStudent: z.ZodObject<{
|
|
191
214
|
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
192
215
|
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -273,6 +296,9 @@ declare const zStudent: z.ZodObject<{
|
|
|
273
296
|
createdAt?: string | undefined;
|
|
274
297
|
updatedAt?: string | undefined;
|
|
275
298
|
}>;
|
|
299
|
+
type BStudent = z.infer<typeof zBStudent>;
|
|
300
|
+
type Student = z.infer<typeof zStudent>;
|
|
301
|
+
|
|
276
302
|
declare const zBTeacher: z.ZodObject<{
|
|
277
303
|
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
278
304
|
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -377,27 +403,55 @@ declare const zTeacher: z.ZodObject<{
|
|
|
377
403
|
createdAt?: string | undefined;
|
|
378
404
|
updatedAt?: string | undefined;
|
|
379
405
|
}>;
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
406
|
+
declare const zTeacherResponse: z.ZodObject<{
|
|
407
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
408
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
409
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
410
|
+
_id: z.ZodString;
|
|
411
|
+
name: z.ZodString;
|
|
412
|
+
username: z.ZodOptional<z.ZodString>;
|
|
413
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
414
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
415
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
416
|
+
isInactive: z.ZodOptional<z.ZodBoolean>;
|
|
417
|
+
title: z.ZodOptional<z.ZodString>;
|
|
418
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
419
|
+
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
420
|
+
role: z.ZodString;
|
|
421
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
422
|
+
rank: GoRank;
|
|
423
|
+
_id: string;
|
|
424
|
+
name: string;
|
|
425
|
+
role: string;
|
|
426
|
+
email?: string | undefined;
|
|
427
|
+
address?: string | undefined;
|
|
428
|
+
username?: string | undefined;
|
|
429
|
+
country?: string | undefined;
|
|
430
|
+
phoneNumber?: string | undefined;
|
|
431
|
+
birthDate?: string | undefined;
|
|
432
|
+
isInactive?: boolean | undefined;
|
|
433
|
+
title?: string | undefined;
|
|
434
|
+
bio?: string | undefined;
|
|
435
|
+
available?: number[][][] | undefined;
|
|
395
436
|
}, {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
437
|
+
rank: GoRank;
|
|
438
|
+
_id: string;
|
|
439
|
+
name: string;
|
|
440
|
+
role: string;
|
|
441
|
+
email?: string | undefined;
|
|
442
|
+
address?: string | undefined;
|
|
443
|
+
username?: string | undefined;
|
|
444
|
+
country?: string | undefined;
|
|
445
|
+
phoneNumber?: string | undefined;
|
|
446
|
+
birthDate?: string | undefined;
|
|
447
|
+
isInactive?: boolean | undefined;
|
|
448
|
+
title?: string | undefined;
|
|
449
|
+
bio?: string | undefined;
|
|
450
|
+
available?: number[][][] | undefined;
|
|
399
451
|
}>;
|
|
400
|
-
type
|
|
452
|
+
type BTeacher = z.infer<typeof zBTeacher>;
|
|
453
|
+
type Teacher = z.infer<typeof zTeacher>;
|
|
454
|
+
type TeacherResponse = z.infer<typeof zTeacherResponse>;
|
|
401
455
|
|
|
402
456
|
declare enum CampOption {
|
|
403
457
|
AM = "am",
|
|
@@ -3739,4 +3793,4 @@ declare const zEventTicket: z.ZodObject<{
|
|
|
3739
3793
|
type BEventTicket = z.infer<typeof zBEventTicket>;
|
|
3740
3794
|
type EventTicket = z.infer<typeof zEventTicket>;
|
|
3741
3795
|
|
|
3742
|
-
export { AgeGroup, AttendState, type Attendance, 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 ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ReportTicketResponse, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
|
3796
|
+
export { AgeGroup, AttendState, type Attendance, 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 ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
package/index.d.ts
CHANGED
|
@@ -187,6 +187,29 @@ declare const zUser: z.ZodObject<{
|
|
|
187
187
|
createdAt?: string | undefined;
|
|
188
188
|
updatedAt?: string | undefined;
|
|
189
189
|
}>;
|
|
190
|
+
type BUser = z.infer<typeof zBUser>;
|
|
191
|
+
type User = z.infer<typeof zUser>;
|
|
192
|
+
|
|
193
|
+
declare enum Role {
|
|
194
|
+
SUPERADMIN = 7926,
|
|
195
|
+
ADMIN = 2023,
|
|
196
|
+
USER = 2014
|
|
197
|
+
}
|
|
198
|
+
declare const zUserRoles: z.ZodObject<{
|
|
199
|
+
user: z.ZodNumber;
|
|
200
|
+
admin: z.ZodNumber;
|
|
201
|
+
superadmin: z.ZodNumber;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
user: number;
|
|
204
|
+
admin: number;
|
|
205
|
+
superadmin: number;
|
|
206
|
+
}, {
|
|
207
|
+
user: number;
|
|
208
|
+
admin: number;
|
|
209
|
+
superadmin: number;
|
|
210
|
+
}>;
|
|
211
|
+
type UserRoles = z.infer<typeof zUserRoles>;
|
|
212
|
+
|
|
190
213
|
declare const zBStudent: z.ZodObject<{
|
|
191
214
|
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
192
215
|
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -273,6 +296,9 @@ declare const zStudent: z.ZodObject<{
|
|
|
273
296
|
createdAt?: string | undefined;
|
|
274
297
|
updatedAt?: string | undefined;
|
|
275
298
|
}>;
|
|
299
|
+
type BStudent = z.infer<typeof zBStudent>;
|
|
300
|
+
type Student = z.infer<typeof zStudent>;
|
|
301
|
+
|
|
276
302
|
declare const zBTeacher: z.ZodObject<{
|
|
277
303
|
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
278
304
|
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -377,27 +403,55 @@ declare const zTeacher: z.ZodObject<{
|
|
|
377
403
|
createdAt?: string | undefined;
|
|
378
404
|
updatedAt?: string | undefined;
|
|
379
405
|
}>;
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
406
|
+
declare const zTeacherResponse: z.ZodObject<{
|
|
407
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
408
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
409
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
410
|
+
_id: z.ZodString;
|
|
411
|
+
name: z.ZodString;
|
|
412
|
+
username: z.ZodOptional<z.ZodString>;
|
|
413
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
414
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
415
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
416
|
+
isInactive: z.ZodOptional<z.ZodBoolean>;
|
|
417
|
+
title: z.ZodOptional<z.ZodString>;
|
|
418
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
419
|
+
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
420
|
+
role: z.ZodString;
|
|
421
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
422
|
+
rank: GoRank;
|
|
423
|
+
_id: string;
|
|
424
|
+
name: string;
|
|
425
|
+
role: string;
|
|
426
|
+
email?: string | undefined;
|
|
427
|
+
address?: string | undefined;
|
|
428
|
+
username?: string | undefined;
|
|
429
|
+
country?: string | undefined;
|
|
430
|
+
phoneNumber?: string | undefined;
|
|
431
|
+
birthDate?: string | undefined;
|
|
432
|
+
isInactive?: boolean | undefined;
|
|
433
|
+
title?: string | undefined;
|
|
434
|
+
bio?: string | undefined;
|
|
435
|
+
available?: number[][][] | undefined;
|
|
395
436
|
}, {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
437
|
+
rank: GoRank;
|
|
438
|
+
_id: string;
|
|
439
|
+
name: string;
|
|
440
|
+
role: string;
|
|
441
|
+
email?: string | undefined;
|
|
442
|
+
address?: string | undefined;
|
|
443
|
+
username?: string | undefined;
|
|
444
|
+
country?: string | undefined;
|
|
445
|
+
phoneNumber?: string | undefined;
|
|
446
|
+
birthDate?: string | undefined;
|
|
447
|
+
isInactive?: boolean | undefined;
|
|
448
|
+
title?: string | undefined;
|
|
449
|
+
bio?: string | undefined;
|
|
450
|
+
available?: number[][][] | undefined;
|
|
399
451
|
}>;
|
|
400
|
-
type
|
|
452
|
+
type BTeacher = z.infer<typeof zBTeacher>;
|
|
453
|
+
type Teacher = z.infer<typeof zTeacher>;
|
|
454
|
+
type TeacherResponse = z.infer<typeof zTeacherResponse>;
|
|
401
455
|
|
|
402
456
|
declare enum CampOption {
|
|
403
457
|
AM = "am",
|
|
@@ -3739,4 +3793,4 @@ declare const zEventTicket: z.ZodObject<{
|
|
|
3739
3793
|
type BEventTicket = z.infer<typeof zBEventTicket>;
|
|
3740
3794
|
type EventTicket = z.infer<typeof zEventTicket>;
|
|
3741
3795
|
|
|
3742
|
-
export { AgeGroup, AttendState, type Attendance, 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 ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ReportTicketResponse, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
|
3796
|
+
export { AgeGroup, AttendState, type Attendance, 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 ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|