File size: 644 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | import {
EMAIL_ACCOUNTS_REQUEST,
EMAIL_ACCOUNTS_REQUEST_SUCCESS,
EMAIL_ACCOUNTS_REQUEST_FAILURE,
} from 'calypso/state/action-types';
import 'calypso/state/email-accounts/init';
import 'calypso/state/data-layer/wpcom/email-accounts';
export const getEmailAccounts = ( siteId ) => {
return {
type: EMAIL_ACCOUNTS_REQUEST,
siteId,
};
};
export const receiveGetEmailAccountsSuccess = ( siteId, response ) => {
return {
type: EMAIL_ACCOUNTS_REQUEST_SUCCESS,
siteId,
response,
};
};
export const receiveGetEmailAccountsFailure = ( siteId, error ) => {
return {
type: EMAIL_ACCOUNTS_REQUEST_FAILURE,
siteId,
error,
};
};
|