2020-01-20 07:43:25 +01:00
|
|
|
# Action Service Interface
|
|
|
|
|
2020-01-21 18:05:47 +01:00
|
|
|
Exception ActionException(message: string);
|
2020-01-20 07:43:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Executes multiple actions in the conext of the user given by the user_id.
|
2020-01-21 18:05:47 +01:00
|
|
|
* All actions are successful if no exception is thrown, else no action was
|
|
|
|
* processed.
|
2020-01-20 07:43:25 +01:00
|
|
|
*
|
2020-01-21 18:05:47 +01:00
|
|
|
*
|
|
|
|
* @throws ActionException
|
2020-01-20 07:43:25 +01:00
|
|
|
*/
|
2020-01-21 18:05:47 +01:00
|
|
|
handle_request (payload: Action[], user_id: number): void
|
2020-01-20 07:43:25 +01:00
|
|
|
|
|
|
|
interface Action {
|
2020-01-21 18:05:47 +01:00
|
|
|
action: string;
|
|
|
|
data: object[];
|
2020-01-20 07:43:25 +01:00
|
|
|
}
|