{"size": 618, "ext": "js", "max_stars_repo_path": "packages/plutarch/tpls/redux-project/src/utils/index.js", "max_stars_repo_name": "Alfred-sg/plutarch", "max_stars_repo_stars_event_min_datetime": "2018-07-15T14:54:04.000Z", "max_stars_repo_stars_event_max_datetime": "2019-08-14T06:49:26.000Z", "max_issues_repo_path": "packages/plutarch/tpls/redux-project/src/utils/index.js", "max_issues_repo_name": "Alfred-sg/plutarch", "max_issues_repo_issues_event_min_datetime": "2017-10-14T07:38:40.000Z", "max_issues_repo_issues_event_max_datetime": "2019-07-09T01:57:48.000Z", "max_forks_repo_path": "packages/plutarch/tpls/redux-project/src/utils/index.js", "max_forks_repo_name": "Alfred-sg/plutarch", "max_forks_repo_forks_event_min_datetime": "2019-07-30T02:02:06.000Z", "max_forks_repo_forks_event_max_datetime": "2019-07-30T02:02:06.000Z"}
{"max_stars_count": 7, "max_issues_count": 6, "max_forks_count": 1, "avg_line_length": 30.9, "max_line_length": 58, "alphanum_fraction": 0.7249190939}
export { default as classnames } from 'classnames'
export { default as lodash } from 'lodash'
export { default as config } from './config'
export { default as request } from './request'

export const getCallApiTypes = namespace => {
  const requestType = `${namespace.toUpperCase()}_REQUEST`
  const successType = `${namespace.toUpperCase()}_SUCCESS`
  const failureType = `${namespace.toUpperCase()}_FAILURE`

  return [requestType, successType, failureType]
}

export const getTypesNamespace = type => {
  const idx = type.lastIndexOf('_');
  let namespace = type.slice(1, idx+1)

  return namespace.toLowerCase()
}
