"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeRemoveDatumLinkAction = exports.makeRemoveDatumAction = exports.makeAddDatumLinkAction = exports.makeAddDatumAction = exports.makeSetDatumAction = exports.REMOVE_DATUM_LINK = exports.REMOVE_DATUM = exports.ADD_DATUM_LINK = exports.SET_DATUM = exports.ADD_DATUM = void 0;
exports.ADD_DATUM = 'addDatum';
exports.SET_DATUM = 'setDatum';
exports.ADD_DATUM_LINK = 'addDatumLink';
exports.REMOVE_DATUM = 'removeDatum';
exports.REMOVE_DATUM_LINK = 'removeDatumLink';
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 makeAddDatumLinkAction = (id, value, pinSpec) => {
    return {
        type: exports.ADD_DATUM_LINK,
        data: {
            id,
            value,
            pinSpec,
        },
    };
};
exports.makeAddDatumLinkAction = makeAddDatumLinkAction;
const makeRemoveDatumAction = (id, value) => {
    return {
        type: exports.REMOVE_DATUM,
        data: {
            id,
            value,
        },
    };
};
exports.makeRemoveDatumAction = makeRemoveDatumAction;
const makeRemoveDatumLinkAction = (id, value, pinSpec) => {
    return {
        type: exports.REMOVE_DATUM_LINK,
        data: {
            id,
            value,
            pinSpec,
        },
    };
};
exports.makeRemoveDatumLinkAction = makeRemoveDatumLinkAction;
//# sourceMappingURL=D.js.map