import "reflect-metadata";
const accessControlSymbol = Symbol("ColumnAccessControl");
export default (accessControl) => {
    return Reflect.metadata(accessControlSymbol, accessControl);
};
export const getColumnAccessControl = (target, propertyKey) => {
    return Reflect.getMetadata(accessControlSymbol, target, propertyKey);
};
export const getColumnAccessControlForAllColumns = (target) => {
    const dictonary = {};
    const keys = Object.keys(target);
    for (const key of keys) {
        if (Reflect.getMetadata(accessControlSymbol, target, key)) {
            dictonary[key] = Reflect.getMetadata(accessControlSymbol, target, key);
        }
    }
    return dictonary;
};
//# sourceMappingURL=ColumnAccessControl.js.map