37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
import { CREATE_IDENTIFICATION_PENDING, CREATE_IDENTIFICATION_SUCCESS, CREATE_IDENTIFICATION_ERROR, CREATE_IDENTIFICATION_RESET, GET_NUMBER_DETAIL_PENDING, GET_NUMBER_DETAIL_SUCCESS, GET_NUMBER_DETAIL_ERROR, GET_NUMBER_DETAIL_RESET } from "../types/IdentificationType";
|
|
|
|
export const fetchCreateIdentificationPending = () => ({
|
|
type: CREATE_IDENTIFICATION_PENDING
|
|
});
|
|
|
|
export const fetchCreateIdentificationSuccess = (res) => ({
|
|
type: CREATE_IDENTIFICATION_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchCreateIdentificationError = (error) => ({
|
|
type: CREATE_IDENTIFICATION_ERROR,
|
|
result: error
|
|
});
|
|
|
|
export const fetchCreateIdentificationReset = () => ({
|
|
type: CREATE_IDENTIFICATION_RESET
|
|
});
|
|
|
|
export const fetchGetNumberInformationPending = () => ({
|
|
type: GET_NUMBER_DETAIL_PENDING
|
|
});
|
|
|
|
export const fetchGetNumberInformationSuccess = (res) => ({
|
|
type: GET_NUMBER_DETAIL_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchGetNumberInformationError = (error) => ({
|
|
type: GET_NUMBER_DETAIL_ERROR,
|
|
result: error
|
|
});
|
|
|
|
export const fetchGetNumberInformationReset = () => ({
|
|
type: GET_NUMBER_DETAIL_RESET
|
|
}); |