"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: all[name]
    });
}
_export(exports, {
    newPasswordRules: function() {
        return newPasswordRules;
    },
    registerUserRules: function() {
        return registerUserRules;
    }
});
const _serverconstants = require("../../server.constants");
const registerUserRules = (isSqlite)=>({
        username: `required|string|minLength:${_serverconstants.AppConstants.DEFAULT_USERNAME_MINLEN}`,
        password: `required|string|minLength:${_serverconstants.AppConstants.DEFAULT_PASSWORD_MINLEN}`,
        needsPasswordChange: "boolean",
        roles: "required|array",
        isDemoUser: "boolean",
        isRootUser: "boolean",
        "roles.*": `required|${isSqlite ? "integer|min:1" : "mongoId"}`,
        isVerified: "boolean"
    });
const newPasswordRules = {
    password: `required|string|minLength:${_serverconstants.AppConstants.DEFAULT_PASSWORD_MINLEN}`
};

//# sourceMappingURL=user-service.validation.js.map