'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.addQuizEntries = addQuizEntries;
exports.addQuizEntry = addQuizEntry;
exports.deleteQuizEntry = deleteQuizEntry;
exports.deleteStimulusEntry = deleteStimulusEntry;
exports.moveQuizEntry = moveQuizEntry;

var _constants = require('../../constants');

function addQuizEntries(quizEntries) {
  return {
    type: _constants.ADD_QUIZ_ENTRIES,
    payload: quizEntries
  };
}

function addQuizEntry(quizEntry) {
  return {
    type: _constants.ADD_QUIZ_ENTRY,
    payload: quizEntry
  };
}

function deleteQuizEntry(id) {
  return {
    type: _constants.DELETE_QUIZ_ENTRY,
    payload: { id: id }
  };
}

function deleteStimulusEntry(id, childQuizEntryIds) {
  return {
    type: _constants.DELETE_STIMULUS_ENTRY,
    payload: { id: id, childQuizEntryIds: childQuizEntryIds }
  };
}

function moveQuizEntry(id, position, stimulusQuizEntryId) {
  return {
    type: _constants.MOVE_QUIZ_ENTRY,
    payload: { id: id, position: position, stimulusQuizEntryId: stimulusQuizEntryId }
  };
}