"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NestAuthRoles = exports.GUARD_KEY = exports.ROLES_KEY = void 0;
const common_1 = require("@nestjs/common");
exports.ROLES_KEY = 'nest_auth_roles';
exports.GUARD_KEY = 'nest_auth_guard';
const NestAuthRoles = (roles, guard) => {
    if (guard) {
        return (0, common_1.applyDecorators)((0, common_1.SetMetadata)(exports.ROLES_KEY, roles), (0, common_1.SetMetadata)(exports.GUARD_KEY, guard));
    }
    return (0, common_1.SetMetadata)(exports.ROLES_KEY, roles);
};
exports.NestAuthRoles = NestAuthRoles;
//# sourceMappingURL=role.decorator.js.map