"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.disassociateQuizEntry = exports.associateQuizEntries = exports.associateQuizAnalysis = exports.associateItemAnalyses = exports.newActiveQuiz = exports.addQuizzes = void 0;

var _constants = require("@instructure/quiz-common/lib/constants");

var addQuizzes = function addQuizzes(quizzes) {
  return {
    type: _constants.ADD_QUIZZES,
    payload: quizzes
  };
};

exports.addQuizzes = addQuizzes;

var newActiveQuiz = function newActiveQuiz(activeQuizId) {
  return {
    type: _constants.ACTIVE_QUIZ_CHANGE,
    payload: activeQuizId
  };
};

exports.newActiveQuiz = newActiveQuiz;

var associateItemAnalyses = function associateItemAnalyses(quizId, itemAnalyses) {
  return {
    type: _constants.ASSOCIATE_ITEM_ANALYSES,
    payload: {
      quizId: quizId,
      itemAnalyses: itemAnalyses
    }
  };
};

exports.associateItemAnalyses = associateItemAnalyses;

var associateQuizAnalysis = function associateQuizAnalysis(quizId, quizAnalysis) {
  return {
    type: _constants.ASSOCIATE_QUIZ_ANALYSIS,
    payload: {
      quizId: quizId,
      quizAnalysis: quizAnalysis
    }
  };
};

exports.associateQuizAnalysis = associateQuizAnalysis;

var associateQuizEntries = function associateQuizEntries(quizId, quizEntries) {
  return {
    type: _constants.ASSOCIATE_QUIZ_ENTRIES,
    payload: {
      quizId: quizId,
      quizEntries: quizEntries
    }
  };
};

exports.associateQuizEntries = associateQuizEntries;

var disassociateQuizEntry = function disassociateQuizEntry(quizId, quizEntryId) {
  return {
    type: _constants.DISASSOCIATE_QUIZ_ENTRY,
    payload: {
      quizId: quizId,
      quizEntryId: quizEntryId
    }
  };
};

exports.disassociateQuizEntry = disassociateQuizEntry;