"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.archiveBank = exports.removeBank = exports.disassociateEntry = exports.associateEntries = exports.setBankFilters = exports.addBanks = void 0;

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

var addBanks = function addBanks(banks) {
  return {
    type: _constants.ADD_BANKS,
    payload: banks
  };
};

exports.addBanks = addBanks;

var setBankFilters = function setBankFilters(bankId, filters) {
  return {
    type: _constants.SET_BANK_FILTERS,
    payload: {
      bankId: bankId,
      filters: filters
    }
  };
};

exports.setBankFilters = setBankFilters;

var associateEntries = function associateEntries(bankId, bankEntryIds) {
  return {
    type: _constants.ASSOCIATE_ENTRIES,
    payload: {
      bankId: bankId,
      bankEntryIds: bankEntryIds
    }
  };
};

exports.associateEntries = associateEntries;

var disassociateEntry = function disassociateEntry(bankId, bankEntryId) {
  return {
    type: _constants.DISASSOCIATE_ENTRY,
    payload: {
      bankId: bankId,
      bankEntryId: bankEntryId
    }
  };
};

exports.disassociateEntry = disassociateEntry;

var removeBank = function removeBank(bankId) {
  return {
    type: _constants.REMOVE_BANK,
    payload: bankId
  };
};

exports.removeBank = removeBank;

var archiveBank = function archiveBank(bankId) {
  return {
    type: _constants.ARCHIVE_BANK,
    payload: bankId
  };
};

exports.archiveBank = archiveBank;