archetecture security fix
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.idParamSchema = exports.roleSchema = exports.inviteSchema = void 0;
|
||||
const zod_1 = require("zod");
|
||||
exports.inviteSchema = zod_1.z.object({
|
||||
firstName: zod_1.z.string().min(1).max(64),
|
||||
lastName: zod_1.z.string().min(1).max(64),
|
||||
email: zod_1.z.string().email(),
|
||||
role: zod_1.z.enum(['MANAGER', 'AGENT']),
|
||||
});
|
||||
exports.roleSchema = zod_1.z.object({
|
||||
role: zod_1.z.enum(['MANAGER', 'AGENT']),
|
||||
});
|
||||
exports.idParamSchema = zod_1.z.object({
|
||||
id: zod_1.z.string().min(1),
|
||||
});
|
||||
//# sourceMappingURL=team.schemas.js.map
|
||||
Reference in New Issue
Block a user