"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setData = exports.removeDatum = exports.setDatum = exports.removeData = exports.REMOVE_DATA = exports.REMOVE_DATUM = exports.SET_DATA = exports.SET_DATUM = void 0;
exports.SET_DATUM = 'SPEC_SET_DATUM';
exports.SET_DATA = 'SPEC_ADD_DATA';
exports.REMOVE_DATUM = 'SPEC_REMOVE_DATUM';
exports.REMOVE_DATA = 'SPEC_REMOVE_DATA';
const removeData = (ids) => {
    return {
        type: exports.REMOVE_DATA,
        data: {
            ids,
        },
    };
};
exports.removeData = removeData;
const setDatum = (id, value) => {
    return {
        type: exports.SET_DATUM,
        data: {
            id,
            value,
        },
    };
};
exports.setDatum = setDatum;
const removeDatum = (id) => {
    return {
        type: exports.REMOVE_DATUM,
        data: {
            id,
        },
    };
};
exports.removeDatum = removeDatum;
const setData = (data) => {
    return {
        type: exports.SET_DATA,
        data: {
            data,
        },
    };
};
exports.setData = setData;
//# sourceMappingURL=data.js.map