@nyig/models 0.3.1 → 0.3.2

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
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",