Move api requests to controls

This commit is contained in:
inpsyde-maticluznar 2024-12-20 13:43:41 +01:00
parent f0a09ba83b
commit da0a81036a
No known key found for this signature in database
GPG key ID: D005973F231309F6
5 changed files with 44 additions and 28 deletions

View file

@ -241,3 +241,21 @@ export const resubscribeWebhooks = function* () {
return result;
};
/**
* Side effect. Starts webhook simulation.
*
* @return {Action} The action.
*/
export const startWebhookSimulation = function* () {
return yield { type: ACTION_TYPES.DO_START_WEBHOOK_SIMULATION };
};
/**
* Side effect. Checks webhook simulation.
*
* @return {Action} The action.
*/
export const checkWebhookSimulationState = function* () {
return yield { type: ACTION_TYPES.DO_CHECK_WEBHOOK_SIMULATION_STATE };
};