20 lines
402 B
Plaintext
20 lines
402 B
Plaintext
# Action Service Interface
|
|
|
|
Exception ActionException(message: string);
|
|
|
|
|
|
/**
|
|
* Executes multiple actions in the conext of the user given by the user_id.
|
|
* All actions are successful if no exception is thrown, else no action was
|
|
* processed.
|
|
*
|
|
*
|
|
* @throws ActionException
|
|
*/
|
|
handle_request (payload: Action[], user_id: number): void
|
|
|
|
interface Action {
|
|
action: string;
|
|
data: object[];
|
|
}
|