blob: e5b7169428a85fa5930d863fa3ff79296a25184f (
plain)
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
33
34
35
36
37
38
39
40
41
|
/**
* Returns an action object used in signalling that
* we're setting the Publicize connection test results.
*
* @param {Array} results Connection test results.
*
* @return {Object} Action object.
*/
export function setConnectionTestResults( results ) {
return {
type: 'SET_CONNECTION_TEST_RESULTS',
results,
};
}
/**
* Returns an action object used in signalling that
* we're refreshing the Publicize connection test results.
*
* @return {Object} Action object.
*/
export function refreshConnectionTestResults() {
return {
type: 'REFRESH_CONNECTION_TEST_RESULTS',
};
}
/**
* Returns an action object used in signalling that
* we're initiating a fetch request to the REST API.
*
* @param {String} path API endpoint path.
*
* @return {Object} Action object.
*/
export function fetchFromAPI( path ) {
return {
type: 'FETCH_FROM_API',
path,
};
}
|