"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeRemoveDatumAction = exports.makeAddDatumAction = exports.makeSetDatumAction = exports.REMOVE_DATUM = exports.SET_DATUM = exports.ADD_DATUM = void 0;
exports.ADD_DATUM = 'addDatum';
exports.SET_DATUM = 'setDatum';
exports.REMOVE_DATUM = 'removeDatum';
const makeSetDatumAction = (id, value, prevValue) => {
    return {
        type: exports.SET_DATUM,
        data: {
            id,
            value,
            prevValue,
        },
    };
};
exports.makeSetDatumAction = makeSetDatumAction;
const makeAddDatumAction = (id, value) => {
    return {
        type: exports.ADD_DATUM,
        data: {
            id,
            value,
        },
    };
};
exports.makeAddDatumAction = makeAddDatumAction;
const makeRemoveDatumAction = (id, value) => {
    return {
        type: exports.REMOVE_DATUM,
        data: {
            id,
            value,
        },
    };
};
exports.makeRemoveDatumAction = makeRemoveDatumAction;
//# sourceMappingURL=D.js.map