@nyig/models 0.3.4 → 0.3.5
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 +3 -3
- package/index.d.ts +3 -3
- package/index.js +1 -1
- package/index.mjs +1 -1
- 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;
|
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;
|
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
|
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
|