@wepublish/api
Version:
API core for we.publish.
22 lines • 727 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Validator = void 0;
const tslib_1 = require("tslib");
const zod_1 = tslib_1.__importDefault(require("zod"));
class Validator {
static createUser() {
return zod_1.default.object({
email: zod_1.default.string().email(),
name: zod_1.default.string().max(50),
firstName: zod_1.default.string().max(50).optional(),
preferredName: zod_1.default.string().max(50).optional()
});
}
static login() {
return zod_1.default.object({
email: zod_1.default.string().email()
});
}
}
exports.Validator = Validator;
//# sourceMappingURL=validator.js.map