import actionCreatorFactory from 'typescript-fsa' const actionCreator = actionCreatorFactory() import * as constants from './constants' import { IOrg, IOrgProperties, IUser } from './interfaces' export const fetchOrgPending = actionCreator(constants.FETCH_ORG_PENDING) export const fetchOrgSuccess = actionCreator(constants.FETCH_ORG_SUCCESS) export const fetchOrgFailure = actionCreator(constants.FETCH_ORG_FAILURE) export const fetchOrgPropertiesPending = actionCreator(constants.FETCH_ORG_PROPERTIES_PENDING) export const fetchOrgPropertiesSuccess = actionCreator(constants.FETCH_ORG_PROPERTIES_SUCCESS) export const fetchOrgPropertiesFailure = actionCreator(constants.FETCH_ORG_PROPERTIES_FAILURE) export const fetchUsers = actionCreator(constants.FETCH_USERS) export const fetchUsersSuccess = actionCreator(constants.FETCH_USERS_SUCCESS) export const fetchUsersPending = actionCreator(constants.FETCH_USERS_PENDING) export const fetchUsersFailed = actionCreator(constants.FETCH_USERS_FAILED)