"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadFlagsPublications = loadFlagsPublications;
var simpl_schema_1 = require("simpl-schema");
var flag_collection_1 = require("../collections/flag.collection");
function loadFlagsPublications(subscriptionManager) {
    subscriptionManager.publications({
        flagWithType: {
            function: function (flagType) {
                return flag_collection_1.Flags.findOne({ type: flagType });
            },
            check: new simpl_schema_1.default({
                flagType: {
                    type: String
                }
            }),
            collections: ['flags']
        }
    });
}

//# sourceMappingURL=flags.js.map
