2019-05-28 14:45:52 +00:00
|
|
|
/** @format */
|
|
|
|
|
|
|
|
const updateProfileItems = operations => fields => {
|
|
|
|
const resourceKey = 'onboarding-profile';
|
|
|
|
operations.update( [ resourceKey ], {
|
|
|
|
[ resourceKey ]: fields,
|
|
|
|
} );
|
|
|
|
};
|
|
|
|
|
2019-08-21 06:34:21 +00:00
|
|
|
const installPlugins = operations => plugins => {
|
|
|
|
const resourceKey = 'plugin-install';
|
|
|
|
operations.update( [ resourceKey ], {
|
|
|
|
[ resourceKey ]: plugins,
|
|
|
|
} );
|
|
|
|
};
|
|
|
|
|
|
|
|
const activatePlugins = operations => plugins => {
|
|
|
|
const resourceKey = 'plugin-activate';
|
|
|
|
operations.update( [ resourceKey ], {
|
|
|
|
[ resourceKey ]: plugins,
|
|
|
|
} );
|
|
|
|
};
|
|
|
|
|
2019-05-28 14:45:52 +00:00
|
|
|
export default {
|
2019-08-21 06:34:21 +00:00
|
|
|
activatePlugins,
|
|
|
|
installPlugins,
|
2019-05-28 14:45:52 +00:00
|
|
|
updateProfileItems,
|
|
|
|
};
|