"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CrossFieldTarget = exports.getFirstFromCrossFieldMap = exports.setInCrossFieldMap = exports.addCrossFieldQuery = void 0;
function addCrossFieldQuery(set, revision, id, count) {
    setInCrossFieldMap(set, revision, id, count, true);
}
exports.addCrossFieldQuery = addCrossFieldQuery;
function setInCrossFieldMap(map, revision, id, count, value) {
    map.set({ revision, localId: id }, count, value);
}
exports.setInCrossFieldMap = setInCrossFieldMap;
function getFirstFromCrossFieldMap(map, revision, id, count) {
    return map.getFirst({ revision, localId: id }, count);
}
exports.getFirstFromCrossFieldMap = getFirstFromCrossFieldMap;
var CrossFieldTarget;
(function (CrossFieldTarget) {
    CrossFieldTarget[CrossFieldTarget["Source"] = 0] = "Source";
    CrossFieldTarget[CrossFieldTarget["Destination"] = 1] = "Destination";
})(CrossFieldTarget || (exports.CrossFieldTarget = CrossFieldTarget = {}));
//# sourceMappingURL=crossFieldQueries.js.map