SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/collecting_events/new_collecting_event/store/getters/getters.js

Summary

Maintainability
B
5 hrs
Test Coverage
import getCELabel from './getCELabel'
import getCollectingEvent from './getCollectingEvent'
import getGeographicArea from './getGeographicArea'
import getGeoreferences from './getGeoreferences'
import getIdentifier from './getIdentifier'
import getPreferences from './getPreferences.js'
import getQueueGeoreferences from './getQueueGeoreferences'
import getSettings from './getSettings'
import getSoftValidations from './getSoftValidations'
import getUnit from './getUnit'
import isUnsaved from './isUnsaved'
import getTotalCO from './getTotalCO.js'

const GetterNames = {
  GetCELabel: 'getCELabel',
  GetCollectingEvent: 'getCollectingEvent',
  GetGeographicArea: 'getGeographicArea',
  GetGeoreferences: 'getGeoreferences',
  GetIdentifier: 'getIdentifier',
  GetPreferences: 'getPreferences',
  GetQueueGeoreferences: 'getQueueGeoreferences',
  GetSettings: 'getSetting',
  GetSoftValidations: 'getSoftValidations',
  GetTotalCO: 'getTotalCO',
  GetUnit: 'getUnit',
  IsUnsaved: 'isUnsaved'
}

const GetterFunctions = {
  [GetterNames.GetCELabel]: getCELabel,
  [GetterNames.GetCollectingEvent]: getCollectingEvent,
  [GetterNames.GetGeographicArea]: getGeographicArea,
  [GetterNames.GetGeoreferences]: getGeoreferences,
  [GetterNames.GetIdentifier]: getIdentifier,
  [GetterNames.GetPreferences]: getPreferences,
  [GetterNames.GetSettings]: getSettings,
  [GetterNames.GetTotalCO]: getTotalCO,
  [GetterNames.GetQueueGeoreferences]: getQueueGeoreferences,
  [GetterNames.GetSoftValidations]: getSoftValidations,
  [GetterNames.GetUnit]: getUnit,
  [GetterNames.IsUnsaved]: isUnsaved
}

export { GetterNames, GetterFunctions }