@nyig/models 0.3.1 → 0.3.3

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.js CHANGED
@@ -238,8 +238,8 @@ var Role = /* @__PURE__ */ ((Role2) => {
238
238
  })(Role || {});
239
239
  var zUserRoles = import_zod5.z.object({
240
240
  user: import_zod5.z.number().int(),
241
- admin: import_zod5.z.number().int(),
242
- superadmin: import_zod5.z.number().int()
241
+ admin: import_zod5.z.number().int().optional(),
242
+ superadmin: import_zod5.z.number().int().optional()
243
243
  });
244
244
 
245
245
  // src/interface/user/user.ts
@@ -299,7 +299,8 @@ var zBTeacher = zBUser.extend({
299
299
  * [],
300
300
  * ]
301
301
  */
302
- available: import_zod8.z.array(import_zod8.z.array(import_zod8.z.array(import_zod8.z.number()))).optional()
302
+ available: import_zod8.z.array(import_zod8.z.array(import_zod8.z.array(import_zod8.z.number()))).optional(),
303
+ shouldChangePassword: import_zod8.z.boolean().optional()
303
304
  });
304
305
  var zTeacher = addAutoProps(zBTeacher);
305
306
  var zTeacherResponse = zTeacher.omit({ password: true, roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
package/index.mjs CHANGED
@@ -139,8 +139,8 @@ var Role = /* @__PURE__ */ ((Role2) => {
139
139
  })(Role || {});
140
140
  var zUserRoles = z5.object({
141
141
  user: z5.number().int(),
142
- admin: z5.number().int(),
143
- superadmin: z5.number().int()
142
+ admin: z5.number().int().optional(),
143
+ superadmin: z5.number().int().optional()
144
144
  });
145
145
 
146
146
  // src/interface/user/user.ts
@@ -200,7 +200,8 @@ var zBTeacher = zBUser.extend({
200
200
  * [],
201
201
  * ]
202
202
  */
203
- available: z8.array(z8.array(z8.array(z8.number()))).optional()
203
+ available: z8.array(z8.array(z8.array(z8.number()))).optional(),
204
+ shouldChangePassword: z8.boolean().optional()
204
205
  });
205
206
  var zTeacher = addAutoProps(zBTeacher);
206
207
  var zTeacherResponse = zTeacher.omit({ password: true, roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",