{"size": 785, "ext": "js", "max_stars_repo_path": "app/containers/UserRegistration/actions.js", "max_stars_repo_name": "osehra-ocp/ocp-ui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/containers/UserRegistration/actions.js", "max_issues_repo_name": "osehra-ocp/ocp-ui", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/containers/UserRegistration/actions.js", "max_forks_repo_name": "osehra-ocp/ocp-ui", "max_forks_repo_forks_event_min_datetime": "2020-03-23T03:18:57.000Z", "max_forks_repo_forks_event_max_datetime": "2020-03-23T03:18:57.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 17.8409090909, "max_line_length": 116, "alphanum_fraction": 0.727388535}
/*
 *
 * UserRegistration actions
 *
 */

import {
  SEARCH_RESOURCES, SEARCH_RESOURCES_ERROR,
  SEARCH_RESOURCES_SUCCESS, INITIALIZE_USER_REGISTRATION,
} from './constants';

export function initializeUserRegistration() {
  return {
    type: INITIALIZE_USER_REGISTRATION,
  };
}


export function searchResources(searchType, searchValue, resourceType, includeInactive, currentPage, organization) {
  return {
    type: SEARCH_RESOURCES,
    searchType,
    searchValue,
    resourceType,
    includeInactive,
    currentPage,
    organization,
  };
}

export function searchResourcesSuccess(resources) {
  return {
    type: SEARCH_RESOURCES_SUCCESS,
    resources,
  };
}

export function searchResourcesError(error) {
  return {
    type: SEARCH_RESOURCES_ERROR,
    error,
  };
}
