@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.d.mts +182 -182
- package/index.d.ts +182 -182
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
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
|