"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, {
    registerUserRules: function() {
        return registerUserRules;
    },
    registerUserWithRolesRules: function() {
        return registerUserWithRolesRules;
    }
});
const _serverconstants = require("../../server.constants");
const _genericvalidation = require("./generic.validation");
const registerUserRules = {
    username: `required|string|minLength:${_serverconstants.AppConstants.DEFAULT_USERNAME_MINLEN}`,
    password: `required|string|minLength:${_serverconstants.AppConstants.DEFAULT_PASSWORD_MINLEN}`
};
const registerUserWithRolesRules = (isSqlite)=>({
        username: `required|string|minLength:${_serverconstants.AppConstants.DEFAULT_USERNAME_MINLEN}`,
        password: `required|string|minLength:${_serverconstants.AppConstants.DEFAULT_PASSWORD_MINLEN}`,
        roleIds: "array",
        "roleIds.*": (0, _genericvalidation.idRuleV2)(isSqlite)
    });

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