"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadFlagsUpdatePublications = loadFlagsUpdatePublications;
var simpl_schema_1 = require("simpl-schema");
var flag_update_collection_1 = require("../collections/flag-update.collection");
function loadFlagsUpdatePublications(subscriptionManager) {
    subscriptionManager.publications({
        flagUpdateWithType: {
            function: function (flagType) {
                return flag_update_collection_1.FlagUpdates.findOne({ type: flagType });
            },
            check: new simpl_schema_1.default({
                flagType: {
                    type: String
                }
            }),
            collections: ['flag-updates']
        }
    });
}

//# sourceMappingURL=flags-update.js.map
