2020-08-27 20:04:51 +00:00
|
|
|
import {
|
|
|
|
CREATE_GROUP_PENDING,
|
|
|
|
CREATE_GROUP_SUCCESS,
|
|
|
|
CREATE_GROUP_ERROR,
|
|
|
|
CREATE_GROUP_RESET,
|
|
|
|
GET_DEMAND_GROUP_PENDING,
|
|
|
|
GET_DEMAND_GROUP_SUCCESS,
|
|
|
|
GET_DEMAND_GROUP_ERROR,
|
|
|
|
GET_DEMAND_GROUP_RESET,
|
|
|
|
GET_UNIQUE_DEMAND_GROUP_PENDING,
|
|
|
|
GET_UNIQUE_DEMAND_GROUP_RESET,
|
|
|
|
GET_UNIQUE_DEMAND_GROUP_ERROR,
|
|
|
|
GET_UNIQUE_DEMAND_GROUP_SUCCESS,
|
|
|
|
TREAT_DEMAND_GROUP_PENDING,
|
|
|
|
TREAT_DEMAND_GROUP_SUCCESS,
|
|
|
|
TREAT_DEMAND_GROUP_ERROR,
|
|
|
|
TREAT_DEMAND_GROUP_RESET,
|
|
|
|
JOIN_GROUP_PENDING,
|
|
|
|
JOIN_GROUP_SUCCESS,
|
|
|
|
JOIN_GROUP_RESET,
|
|
|
|
JOIN_GROUP_ERROR,
|
|
|
|
GET_USER_GROUP_DETAIL_PENDING,
|
|
|
|
GET_USER_GROUP_DETAIL_SUCCESS,
|
|
|
|
GET_USER_GROUP_DETAIL_RESET,
|
|
|
|
GET_USER_GROUP_DETAIL_ERROR,
|
|
|
|
GET_NOTIFICATIONS_ERROR,
|
|
|
|
GET_NOTIFICATIONS_RESET,
|
|
|
|
GET_NOTIFICATIONS_PENDING,
|
|
|
|
GET_NOTIFICATIONS_SUCCESS, ASK_NANO_CREDIT_PENDING, ASK_NANO_CREDIT_SUCCESS, ASK_NANO_CREDIT_ERROR, ASK_NANO_CREDIT_RESET,
|
|
|
|
GET_NANO_CREDIT_DEMAND_DURATION_PENDING,
|
|
|
|
GET_NANO_CREDIT_DEMAND_DURATION_SUCCESS,
|
|
|
|
GET_NANO_CREDIT_DEMAND_DURATION_ERROR,
|
2020-09-07 16:10:48 +00:00
|
|
|
GET_NANO_CREDIT_DEMAND_DURATION_RESET,
|
|
|
|
REFUND_CREDIT_DEMAND_USER_PENDING,
|
|
|
|
REFUND_CREDIT_DEMAND_USER_RESET,
|
|
|
|
REFUND_CREDIT_DEMAND_USER_ERROR,
|
|
|
|
CAUTION_CREDIT_DEMAND_AGENT_PENDING,
|
|
|
|
CAUTION_CREDIT_DEMAND_AGENT_RESET,
|
|
|
|
CAUTION_CREDIT_DEMAND_AGENT_ERROR,
|
|
|
|
GET_NANO_CREDIT_DEMAND_DETAIL_PENDING,
|
|
|
|
GET_NANO_CREDIT_DEMAND_DETAIL_SUCCESS,
|
|
|
|
GET_NANO_CREDIT_DEMAND_DETAIL_ERROR,
|
|
|
|
GET_NANO_CREDIT_DEMAND_DETAIL_RESET,
|
|
|
|
CAUTION_CREDIT_DEMAND_AGENT_SUCCESS,
|
|
|
|
EPARGNER_ARGENT_USER_PENDING,
|
|
|
|
EPARGNER_ARGENT_USER_SUCCESS,
|
|
|
|
EPARGNER_ARGENT_USER_ERROR,
|
|
|
|
EPARGNER_ARGENT_USER_RESET,
|
|
|
|
CASSER_EPARGNE_USER_PENDING,
|
|
|
|
CASSER_EPARGNE_USER_SUCCESS,
|
|
|
|
CASSER_EPARGNE_USER_ERROR,
|
2020-09-30 05:46:30 +00:00
|
|
|
CASSER_EPARGNE_USER_RESET, GET_NANO_CREDIT_ACCOUNT_USER_PENDING, GET_NANO_CREDIT_ACCOUNT_USER_SUCCESS, GET_NANO_CREDIT_ACCOUNT_USER_ERROR, GET_NANO_CREDIT_ACCOUNT_USER_RESET
|
2020-08-27 20:04:51 +00:00
|
|
|
} from "../types/NanoCreditType";
|
2020-08-11 09:42:31 +00:00
|
|
|
|
|
|
|
export const fetchCreateGroupPending = () => ({
|
|
|
|
type: CREATE_GROUP_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCreateGroupSuccess = (res) => ({
|
|
|
|
type: CREATE_GROUP_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCreateGroupError = (error) => ({
|
|
|
|
type: CREATE_GROUP_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCreateGroupReset = () => ({
|
|
|
|
type: CREATE_GROUP_RESET
|
2020-08-12 18:24:56 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetDemandsGroupPending = () => ({
|
|
|
|
type: GET_DEMAND_GROUP_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetDemandsGroupSuccess = (res) => ({
|
|
|
|
type: GET_DEMAND_GROUP_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetDemandsGroupError = (error) => ({
|
|
|
|
type: GET_DEMAND_GROUP_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetDemandsGroupReset = () => ({
|
|
|
|
type: GET_DEMAND_GROUP_RESET
|
2020-08-13 05:17:57 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetUniqueDemandsGroupPending = () => ({
|
|
|
|
type: GET_UNIQUE_DEMAND_GROUP_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetUniqueDemandsGroupSuccess = (res) => ({
|
|
|
|
type: GET_UNIQUE_DEMAND_GROUP_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetUniqueDemandsGroupError = (error) => ({
|
|
|
|
type: GET_UNIQUE_DEMAND_GROUP_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetUniqueDemandsGroupReset = () => ({
|
|
|
|
type: GET_UNIQUE_DEMAND_GROUP_RESET
|
2020-08-13 07:23:23 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchTreatDemandsGroupPending = () => ({
|
|
|
|
type: TREAT_DEMAND_GROUP_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchTreatDemandsGroupSuccess = (res) => ({
|
|
|
|
type: TREAT_DEMAND_GROUP_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchTreatDemandsGroupError = (error) => ({
|
|
|
|
type: TREAT_DEMAND_GROUP_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchTreatDemandsGroupReset = () => ({
|
|
|
|
type: TREAT_DEMAND_GROUP_RESET
|
2020-08-19 06:25:24 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchJoinGroupPending = () => ({
|
|
|
|
type: JOIN_GROUP_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchJoinGroupSuccess = (res) => ({
|
|
|
|
type: JOIN_GROUP_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchJoinGroupError = (error) => ({
|
|
|
|
type: JOIN_GROUP_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchJoinGroupReset = () => ({
|
|
|
|
type: JOIN_GROUP_RESET
|
2020-08-23 21:41:29 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchGetUserGroupDetailPending = () => ({
|
|
|
|
type: GET_USER_GROUP_DETAIL_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetUserGroupDetailSuccess = (res) => ({
|
|
|
|
type: GET_USER_GROUP_DETAIL_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetUserGroupDetailError = (error) => ({
|
|
|
|
type: GET_USER_GROUP_DETAIL_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetUserGroupDetailReset = () => ({
|
|
|
|
type: GET_USER_GROUP_DETAIL_RESET
|
2020-08-24 19:18:19 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchGetNotificationPending = () => ({
|
|
|
|
type: GET_NOTIFICATIONS_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNotificationSuccess = (res) => ({
|
|
|
|
type: GET_NOTIFICATIONS_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNotificationError = (error) => ({
|
|
|
|
type: GET_NOTIFICATIONS_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNotificationReset = () => ({
|
|
|
|
type: GET_NOTIFICATIONS_RESET
|
2020-08-27 20:04:51 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchAskNanoCreditPending = () => ({
|
|
|
|
type: ASK_NANO_CREDIT_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchAskNanoCreditSuccess = (res) => ({
|
|
|
|
type: ASK_NANO_CREDIT_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchAskNanoCreditError = (error) => ({
|
|
|
|
type: ASK_NANO_CREDIT_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchAskNanoCreditReset = () => ({
|
|
|
|
type: ASK_NANO_CREDIT_RESET
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditDemandDurationPending = () => ({
|
|
|
|
type: GET_NANO_CREDIT_DEMAND_DURATION_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditDemandDurationSuccess = (res) => ({
|
|
|
|
type: GET_NANO_CREDIT_DEMAND_DURATION_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditDemandDurationError = (error) => ({
|
|
|
|
type: GET_NANO_CREDIT_DEMAND_DURATION_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditDemandDurationReset = () => ({
|
|
|
|
type: GET_NANO_CREDIT_DEMAND_DURATION_RESET
|
2020-09-07 16:10:48 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchCautionCreditDemandUserPending = () => ({
|
|
|
|
type: REFUND_CREDIT_DEMAND_USER_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCautionCreditDemandUserSuccess = (res) => ({
|
|
|
|
type: REFUND_CREDIT_DEMAND_USER_RESET,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCautionCreditDemandUserError = (error) => ({
|
|
|
|
type: REFUND_CREDIT_DEMAND_USER_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCautionCreditDemandUserReset = () => ({
|
|
|
|
type: REFUND_CREDIT_DEMAND_USER_RESET
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchCautionCreditDemandAgentPending = () => ({
|
|
|
|
type: CAUTION_CREDIT_DEMAND_AGENT_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCautionCreditDemandAgentSuccess = (res) => ({
|
|
|
|
type: CAUTION_CREDIT_DEMAND_AGENT_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCautionCreditDemandAgentError = (error) => ({
|
|
|
|
type: CAUTION_CREDIT_DEMAND_AGENT_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCautionCreditDemandAgentReset = () => ({
|
|
|
|
type: CAUTION_CREDIT_DEMAND_AGENT_RESET
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditDemandDetailPending = () => ({
|
|
|
|
type: GET_NANO_CREDIT_DEMAND_DETAIL_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditDemandDetailSuccess = (res) => ({
|
|
|
|
type: GET_NANO_CREDIT_DEMAND_DETAIL_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditDemandDetailError = (error) => ({
|
|
|
|
type: GET_NANO_CREDIT_DEMAND_DETAIL_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditDemandDetailReset = () => ({
|
|
|
|
type: GET_NANO_CREDIT_DEMAND_DETAIL_RESET
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchEpargnerArgentUserPending = () => ({
|
|
|
|
type: EPARGNER_ARGENT_USER_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchEpargnerArgentUserSuccess = (res) => ({
|
|
|
|
type: EPARGNER_ARGENT_USER_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchEpargnerArgentUserError = (error) => ({
|
|
|
|
type: EPARGNER_ARGENT_USER_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchEpargnerArgentUserReset = () => ({
|
|
|
|
type: EPARGNER_ARGENT_USER_RESET
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchCasserEpargneUserPending = () => ({
|
|
|
|
type: CASSER_EPARGNE_USER_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCasserEpargneUserSuccess = (res) => ({
|
|
|
|
type: CASSER_EPARGNE_USER_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCasserEpargneUserError = (error) => ({
|
|
|
|
type: CASSER_EPARGNE_USER_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCasserEpargneUserReset = () => ({
|
|
|
|
type: CASSER_EPARGNE_USER_RESET
|
2020-09-30 05:46:30 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditUserAccountPending = () => ({
|
|
|
|
type: GET_NANO_CREDIT_ACCOUNT_USER_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditUserAccountSuccess = (res) => ({
|
|
|
|
type: GET_NANO_CREDIT_ACCOUNT_USER_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditUserAccountError = (error) => ({
|
|
|
|
type: GET_NANO_CREDIT_ACCOUNT_USER_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNanoCreditUserAccountReset = () => ({
|
|
|
|
type: GET_NANO_CREDIT_ACCOUNT_USER_RESET
|
2020-08-11 09:42:31 +00:00
|
|
|
});
|