@nyig/models 0.3.4 → 0.3.6
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 +29 -28
- package/index.d.ts +29 -28
- package/index.js +3 -2
- package/index.mjs +3 -2
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -559,12 +559,12 @@ declare const zTeacherResponse: z.ZodObject<{
|
|
|
559
559
|
title: z.ZodOptional<z.ZodString>;
|
|
560
560
|
bio: z.ZodOptional<z.ZodString>;
|
|
561
561
|
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
562
|
-
role: z.
|
|
562
|
+
role: z.ZodNumber;
|
|
563
563
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
564
564
|
rank: GoRank;
|
|
565
565
|
_id: string;
|
|
566
566
|
name: string;
|
|
567
|
-
role:
|
|
567
|
+
role: number;
|
|
568
568
|
email?: string | undefined;
|
|
569
569
|
address?: string | undefined;
|
|
570
570
|
username?: string | undefined;
|
|
@@ -580,7 +580,7 @@ declare const zTeacherResponse: z.ZodObject<{
|
|
|
580
580
|
rank: GoRank;
|
|
581
581
|
_id: string;
|
|
582
582
|
name: string;
|
|
583
|
-
role:
|
|
583
|
+
role: number;
|
|
584
584
|
email?: string | undefined;
|
|
585
585
|
address?: string | undefined;
|
|
586
586
|
username?: string | undefined;
|
|
@@ -654,7 +654,7 @@ declare enum CampOption {
|
|
|
654
654
|
declare const zBAttendance: z.ZodObject<{
|
|
655
655
|
student: z.ZodString;
|
|
656
656
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
657
|
-
tuition: z.ZodObject<{
|
|
657
|
+
tuition: z.ZodOptional<z.ZodObject<{
|
|
658
658
|
primary: z.ZodNumber;
|
|
659
659
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
660
660
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -666,34 +666,34 @@ declare const zBAttendance: z.ZodObject<{
|
|
|
666
666
|
primary: number;
|
|
667
667
|
textbook?: boolean | undefined;
|
|
668
668
|
shipping?: boolean | undefined;
|
|
669
|
-
}
|
|
669
|
+
}>>;
|
|
670
670
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
671
671
|
campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
|
|
672
672
|
}, "strip", z.ZodTypeAny, {
|
|
673
673
|
student: string;
|
|
674
674
|
states: AttendState[];
|
|
675
|
-
tuition
|
|
675
|
+
tuition?: {
|
|
676
676
|
primary: number;
|
|
677
677
|
textbook?: boolean | undefined;
|
|
678
678
|
shipping?: boolean | undefined;
|
|
679
|
-
};
|
|
679
|
+
} | undefined;
|
|
680
680
|
paid?: boolean | undefined;
|
|
681
681
|
campOption?: CampOption | undefined;
|
|
682
682
|
}, {
|
|
683
683
|
student: string;
|
|
684
684
|
states: AttendState[];
|
|
685
|
-
tuition
|
|
685
|
+
tuition?: {
|
|
686
686
|
primary: number;
|
|
687
687
|
textbook?: boolean | undefined;
|
|
688
688
|
shipping?: boolean | undefined;
|
|
689
|
-
};
|
|
689
|
+
} | undefined;
|
|
690
690
|
paid?: boolean | undefined;
|
|
691
691
|
campOption?: CampOption | undefined;
|
|
692
692
|
}>;
|
|
693
693
|
declare const zAttendance: z.ZodObject<{
|
|
694
694
|
student: z.ZodString;
|
|
695
695
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
696
|
-
tuition: z.ZodObject<{
|
|
696
|
+
tuition: z.ZodOptional<z.ZodObject<{
|
|
697
697
|
primary: z.ZodNumber;
|
|
698
698
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
699
699
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -705,7 +705,7 @@ declare const zAttendance: z.ZodObject<{
|
|
|
705
705
|
primary: number;
|
|
706
706
|
textbook?: boolean | undefined;
|
|
707
707
|
shipping?: boolean | undefined;
|
|
708
|
-
}
|
|
708
|
+
}>>;
|
|
709
709
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
710
710
|
campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
|
|
711
711
|
_id: z.ZodString;
|
|
@@ -716,11 +716,11 @@ declare const zAttendance: z.ZodObject<{
|
|
|
716
716
|
_id: string;
|
|
717
717
|
student: string;
|
|
718
718
|
states: AttendState[];
|
|
719
|
-
tuition
|
|
719
|
+
tuition?: {
|
|
720
720
|
primary: number;
|
|
721
721
|
textbook?: boolean | undefined;
|
|
722
722
|
shipping?: boolean | undefined;
|
|
723
|
-
};
|
|
723
|
+
} | undefined;
|
|
724
724
|
paid?: boolean | undefined;
|
|
725
725
|
campOption?: CampOption | undefined;
|
|
726
726
|
editedBy?: string | undefined;
|
|
@@ -730,11 +730,11 @@ declare const zAttendance: z.ZodObject<{
|
|
|
730
730
|
_id: string;
|
|
731
731
|
student: string;
|
|
732
732
|
states: AttendState[];
|
|
733
|
-
tuition
|
|
733
|
+
tuition?: {
|
|
734
734
|
primary: number;
|
|
735
735
|
textbook?: boolean | undefined;
|
|
736
736
|
shipping?: boolean | undefined;
|
|
737
|
-
};
|
|
737
|
+
} | undefined;
|
|
738
738
|
paid?: boolean | undefined;
|
|
739
739
|
campOption?: CampOption | undefined;
|
|
740
740
|
editedBy?: string | undefined;
|
|
@@ -747,7 +747,7 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
747
747
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
748
748
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
749
749
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
750
|
-
tuition: z.ZodObject<{
|
|
750
|
+
tuition: z.ZodOptional<z.ZodObject<{
|
|
751
751
|
primary: z.ZodNumber;
|
|
752
752
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
753
753
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -759,7 +759,7 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
759
759
|
primary: number;
|
|
760
760
|
textbook?: boolean | undefined;
|
|
761
761
|
shipping?: boolean | undefined;
|
|
762
|
-
}
|
|
762
|
+
}>>;
|
|
763
763
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
764
764
|
campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
|
|
765
765
|
student: z.ZodObject<{
|
|
@@ -859,14 +859,14 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
859
859
|
updatedAt?: string | undefined;
|
|
860
860
|
};
|
|
861
861
|
states: AttendState[];
|
|
862
|
-
tuition: {
|
|
863
|
-
primary: number;
|
|
864
|
-
textbook?: boolean | undefined;
|
|
865
|
-
shipping?: boolean | undefined;
|
|
866
|
-
};
|
|
867
862
|
editedBy?: string | undefined;
|
|
868
863
|
createdAt?: string | undefined;
|
|
869
864
|
updatedAt?: string | undefined;
|
|
865
|
+
tuition?: {
|
|
866
|
+
primary: number;
|
|
867
|
+
textbook?: boolean | undefined;
|
|
868
|
+
shipping?: boolean | undefined;
|
|
869
|
+
} | undefined;
|
|
870
870
|
paid?: boolean | undefined;
|
|
871
871
|
campOption?: CampOption | undefined;
|
|
872
872
|
}, {
|
|
@@ -894,14 +894,14 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
894
894
|
updatedAt?: string | undefined;
|
|
895
895
|
};
|
|
896
896
|
states: AttendState[];
|
|
897
|
-
tuition: {
|
|
898
|
-
primary: number;
|
|
899
|
-
textbook?: boolean | undefined;
|
|
900
|
-
shipping?: boolean | undefined;
|
|
901
|
-
};
|
|
902
897
|
editedBy?: string | undefined;
|
|
903
898
|
createdAt?: string | undefined;
|
|
904
899
|
updatedAt?: string | undefined;
|
|
900
|
+
tuition?: {
|
|
901
|
+
primary: number;
|
|
902
|
+
textbook?: boolean | undefined;
|
|
903
|
+
shipping?: boolean | undefined;
|
|
904
|
+
} | undefined;
|
|
905
905
|
paid?: boolean | undefined;
|
|
906
906
|
campOption?: CampOption | undefined;
|
|
907
907
|
}>;
|
|
@@ -1121,7 +1121,8 @@ declare enum CourseCategory {
|
|
|
1121
1121
|
GROUP = "group",
|
|
1122
1122
|
PRIVATE = "private",
|
|
1123
1123
|
SEMIPRIVATE = "semiprivate",
|
|
1124
|
-
CAMP = "camp"
|
|
1124
|
+
CAMP = "camp",
|
|
1125
|
+
EVENT = "event"
|
|
1125
1126
|
}
|
|
1126
1127
|
|
|
1127
1128
|
declare enum NYIGSchool {
|
package/index.d.ts
CHANGED
|
@@ -559,12 +559,12 @@ declare const zTeacherResponse: z.ZodObject<{
|
|
|
559
559
|
title: z.ZodOptional<z.ZodString>;
|
|
560
560
|
bio: z.ZodOptional<z.ZodString>;
|
|
561
561
|
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
562
|
-
role: z.
|
|
562
|
+
role: z.ZodNumber;
|
|
563
563
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
564
564
|
rank: GoRank;
|
|
565
565
|
_id: string;
|
|
566
566
|
name: string;
|
|
567
|
-
role:
|
|
567
|
+
role: number;
|
|
568
568
|
email?: string | undefined;
|
|
569
569
|
address?: string | undefined;
|
|
570
570
|
username?: string | undefined;
|
|
@@ -580,7 +580,7 @@ declare const zTeacherResponse: z.ZodObject<{
|
|
|
580
580
|
rank: GoRank;
|
|
581
581
|
_id: string;
|
|
582
582
|
name: string;
|
|
583
|
-
role:
|
|
583
|
+
role: number;
|
|
584
584
|
email?: string | undefined;
|
|
585
585
|
address?: string | undefined;
|
|
586
586
|
username?: string | undefined;
|
|
@@ -654,7 +654,7 @@ declare enum CampOption {
|
|
|
654
654
|
declare const zBAttendance: z.ZodObject<{
|
|
655
655
|
student: z.ZodString;
|
|
656
656
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
657
|
-
tuition: z.ZodObject<{
|
|
657
|
+
tuition: z.ZodOptional<z.ZodObject<{
|
|
658
658
|
primary: z.ZodNumber;
|
|
659
659
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
660
660
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -666,34 +666,34 @@ declare const zBAttendance: z.ZodObject<{
|
|
|
666
666
|
primary: number;
|
|
667
667
|
textbook?: boolean | undefined;
|
|
668
668
|
shipping?: boolean | undefined;
|
|
669
|
-
}
|
|
669
|
+
}>>;
|
|
670
670
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
671
671
|
campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
|
|
672
672
|
}, "strip", z.ZodTypeAny, {
|
|
673
673
|
student: string;
|
|
674
674
|
states: AttendState[];
|
|
675
|
-
tuition
|
|
675
|
+
tuition?: {
|
|
676
676
|
primary: number;
|
|
677
677
|
textbook?: boolean | undefined;
|
|
678
678
|
shipping?: boolean | undefined;
|
|
679
|
-
};
|
|
679
|
+
} | undefined;
|
|
680
680
|
paid?: boolean | undefined;
|
|
681
681
|
campOption?: CampOption | undefined;
|
|
682
682
|
}, {
|
|
683
683
|
student: string;
|
|
684
684
|
states: AttendState[];
|
|
685
|
-
tuition
|
|
685
|
+
tuition?: {
|
|
686
686
|
primary: number;
|
|
687
687
|
textbook?: boolean | undefined;
|
|
688
688
|
shipping?: boolean | undefined;
|
|
689
|
-
};
|
|
689
|
+
} | undefined;
|
|
690
690
|
paid?: boolean | undefined;
|
|
691
691
|
campOption?: CampOption | undefined;
|
|
692
692
|
}>;
|
|
693
693
|
declare const zAttendance: z.ZodObject<{
|
|
694
694
|
student: z.ZodString;
|
|
695
695
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
696
|
-
tuition: z.ZodObject<{
|
|
696
|
+
tuition: z.ZodOptional<z.ZodObject<{
|
|
697
697
|
primary: z.ZodNumber;
|
|
698
698
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
699
699
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -705,7 +705,7 @@ declare const zAttendance: z.ZodObject<{
|
|
|
705
705
|
primary: number;
|
|
706
706
|
textbook?: boolean | undefined;
|
|
707
707
|
shipping?: boolean | undefined;
|
|
708
|
-
}
|
|
708
|
+
}>>;
|
|
709
709
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
710
710
|
campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
|
|
711
711
|
_id: z.ZodString;
|
|
@@ -716,11 +716,11 @@ declare const zAttendance: z.ZodObject<{
|
|
|
716
716
|
_id: string;
|
|
717
717
|
student: string;
|
|
718
718
|
states: AttendState[];
|
|
719
|
-
tuition
|
|
719
|
+
tuition?: {
|
|
720
720
|
primary: number;
|
|
721
721
|
textbook?: boolean | undefined;
|
|
722
722
|
shipping?: boolean | undefined;
|
|
723
|
-
};
|
|
723
|
+
} | undefined;
|
|
724
724
|
paid?: boolean | undefined;
|
|
725
725
|
campOption?: CampOption | undefined;
|
|
726
726
|
editedBy?: string | undefined;
|
|
@@ -730,11 +730,11 @@ declare const zAttendance: z.ZodObject<{
|
|
|
730
730
|
_id: string;
|
|
731
731
|
student: string;
|
|
732
732
|
states: AttendState[];
|
|
733
|
-
tuition
|
|
733
|
+
tuition?: {
|
|
734
734
|
primary: number;
|
|
735
735
|
textbook?: boolean | undefined;
|
|
736
736
|
shipping?: boolean | undefined;
|
|
737
|
-
};
|
|
737
|
+
} | undefined;
|
|
738
738
|
paid?: boolean | undefined;
|
|
739
739
|
campOption?: CampOption | undefined;
|
|
740
740
|
editedBy?: string | undefined;
|
|
@@ -747,7 +747,7 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
747
747
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
748
748
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
749
749
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
750
|
-
tuition: z.ZodObject<{
|
|
750
|
+
tuition: z.ZodOptional<z.ZodObject<{
|
|
751
751
|
primary: z.ZodNumber;
|
|
752
752
|
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
753
753
|
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -759,7 +759,7 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
759
759
|
primary: number;
|
|
760
760
|
textbook?: boolean | undefined;
|
|
761
761
|
shipping?: boolean | undefined;
|
|
762
|
-
}
|
|
762
|
+
}>>;
|
|
763
763
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
764
764
|
campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
|
|
765
765
|
student: z.ZodObject<{
|
|
@@ -859,14 +859,14 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
859
859
|
updatedAt?: string | undefined;
|
|
860
860
|
};
|
|
861
861
|
states: AttendState[];
|
|
862
|
-
tuition: {
|
|
863
|
-
primary: number;
|
|
864
|
-
textbook?: boolean | undefined;
|
|
865
|
-
shipping?: boolean | undefined;
|
|
866
|
-
};
|
|
867
862
|
editedBy?: string | undefined;
|
|
868
863
|
createdAt?: string | undefined;
|
|
869
864
|
updatedAt?: string | undefined;
|
|
865
|
+
tuition?: {
|
|
866
|
+
primary: number;
|
|
867
|
+
textbook?: boolean | undefined;
|
|
868
|
+
shipping?: boolean | undefined;
|
|
869
|
+
} | undefined;
|
|
870
870
|
paid?: boolean | undefined;
|
|
871
871
|
campOption?: CampOption | undefined;
|
|
872
872
|
}, {
|
|
@@ -894,14 +894,14 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
894
894
|
updatedAt?: string | undefined;
|
|
895
895
|
};
|
|
896
896
|
states: AttendState[];
|
|
897
|
-
tuition: {
|
|
898
|
-
primary: number;
|
|
899
|
-
textbook?: boolean | undefined;
|
|
900
|
-
shipping?: boolean | undefined;
|
|
901
|
-
};
|
|
902
897
|
editedBy?: string | undefined;
|
|
903
898
|
createdAt?: string | undefined;
|
|
904
899
|
updatedAt?: string | undefined;
|
|
900
|
+
tuition?: {
|
|
901
|
+
primary: number;
|
|
902
|
+
textbook?: boolean | undefined;
|
|
903
|
+
shipping?: boolean | undefined;
|
|
904
|
+
} | undefined;
|
|
905
905
|
paid?: boolean | undefined;
|
|
906
906
|
campOption?: CampOption | undefined;
|
|
907
907
|
}>;
|
|
@@ -1121,7 +1121,8 @@ declare enum CourseCategory {
|
|
|
1121
1121
|
GROUP = "group",
|
|
1122
1122
|
PRIVATE = "private",
|
|
1123
1123
|
SEMIPRIVATE = "semiprivate",
|
|
1124
|
-
CAMP = "camp"
|
|
1124
|
+
CAMP = "camp",
|
|
1125
|
+
EVENT = "event"
|
|
1125
1126
|
}
|
|
1126
1127
|
|
|
1127
1128
|
declare enum NYIGSchool {
|
package/index.js
CHANGED
|
@@ -307,7 +307,7 @@ var zBTeacher = zBUser.extend({
|
|
|
307
307
|
});
|
|
308
308
|
var zTeacher = addAutoProps(zBTeacher);
|
|
309
309
|
var zTeacherResponse = zTeacher.omit({ password: true, roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
|
|
310
|
-
role: import_zod8.z.
|
|
310
|
+
role: import_zod8.z.number().int()
|
|
311
311
|
});
|
|
312
312
|
|
|
313
313
|
// src/interface/user/auth.ts
|
|
@@ -334,7 +334,7 @@ var zLoginResponse = import_zod9.z.object({
|
|
|
334
334
|
var zBAttendance = import_zod10.z.object({
|
|
335
335
|
student: import_zod10.z.string(),
|
|
336
336
|
states: import_zod10.z.array(import_zod10.z.nativeEnum(AttendState)),
|
|
337
|
-
tuition: zTuition,
|
|
337
|
+
tuition: zTuition.optional(),
|
|
338
338
|
paid: import_zod10.z.boolean().optional(),
|
|
339
339
|
campOption: import_zod10.z.nativeEnum(CampOption).optional()
|
|
340
340
|
});
|
|
@@ -475,6 +475,7 @@ var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
|
|
|
475
475
|
CourseCategory2["PRIVATE"] = "private";
|
|
476
476
|
CourseCategory2["SEMIPRIVATE"] = "semiprivate";
|
|
477
477
|
CourseCategory2["CAMP"] = "camp";
|
|
478
|
+
CourseCategory2["EVENT"] = "event";
|
|
478
479
|
return CourseCategory2;
|
|
479
480
|
})(CourseCategory || {});
|
|
480
481
|
|
package/index.mjs
CHANGED
|
@@ -208,7 +208,7 @@ var zBTeacher = zBUser.extend({
|
|
|
208
208
|
});
|
|
209
209
|
var zTeacher = addAutoProps(zBTeacher);
|
|
210
210
|
var zTeacherResponse = zTeacher.omit({ password: true, roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
|
|
211
|
-
role: z8.
|
|
211
|
+
role: z8.number().int()
|
|
212
212
|
});
|
|
213
213
|
|
|
214
214
|
// src/interface/user/auth.ts
|
|
@@ -235,7 +235,7 @@ var zLoginResponse = z9.object({
|
|
|
235
235
|
var zBAttendance = z10.object({
|
|
236
236
|
student: z10.string(),
|
|
237
237
|
states: z10.array(z10.nativeEnum(AttendState)),
|
|
238
|
-
tuition: zTuition,
|
|
238
|
+
tuition: zTuition.optional(),
|
|
239
239
|
paid: z10.boolean().optional(),
|
|
240
240
|
campOption: z10.nativeEnum(CampOption).optional()
|
|
241
241
|
});
|
|
@@ -376,6 +376,7 @@ var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
|
|
|
376
376
|
CourseCategory2["PRIVATE"] = "private";
|
|
377
377
|
CourseCategory2["SEMIPRIVATE"] = "semiprivate";
|
|
378
378
|
CourseCategory2["CAMP"] = "camp";
|
|
379
|
+
CourseCategory2["EVENT"] = "event";
|
|
379
380
|
return CourseCategory2;
|
|
380
381
|
})(CourseCategory || {});
|
|
381
382
|
|