2021-06-26 15:23:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BookStack\Actions;
|
2020-11-07 22:37:27 +00:00
|
|
|
|
|
|
|
class ActivityType
|
|
|
|
{
|
|
|
|
const PAGE_CREATE = 'page_create';
|
|
|
|
const PAGE_UPDATE = 'page_update';
|
|
|
|
const PAGE_DELETE = 'page_delete';
|
|
|
|
const PAGE_RESTORE = 'page_restore';
|
|
|
|
const PAGE_MOVE = 'page_move';
|
2020-11-18 23:38:44 +00:00
|
|
|
|
2020-11-07 22:37:27 +00:00
|
|
|
const CHAPTER_CREATE = 'chapter_create';
|
|
|
|
const CHAPTER_UPDATE = 'chapter_update';
|
|
|
|
const CHAPTER_DELETE = 'chapter_delete';
|
|
|
|
const CHAPTER_MOVE = 'chapter_move';
|
2020-11-18 23:38:44 +00:00
|
|
|
|
2020-11-07 22:37:27 +00:00
|
|
|
const BOOK_CREATE = 'book_create';
|
2022-06-14 15:42:29 +00:00
|
|
|
const BOOK_CREATE_FROM_CHAPTER = 'book_create_from_chapter';
|
2020-11-07 22:37:27 +00:00
|
|
|
const BOOK_UPDATE = 'book_update';
|
|
|
|
const BOOK_DELETE = 'book_delete';
|
|
|
|
const BOOK_SORT = 'book_sort';
|
2020-11-18 23:38:44 +00:00
|
|
|
|
2020-11-07 22:37:27 +00:00
|
|
|
const BOOKSHELF_CREATE = 'bookshelf_create';
|
|
|
|
const BOOKSHELF_UPDATE = 'bookshelf_update';
|
|
|
|
const BOOKSHELF_DELETE = 'bookshelf_delete';
|
2020-11-18 23:38:44 +00:00
|
|
|
|
|
|
|
const COMMENTED_ON = 'commented_on';
|
|
|
|
const PERMISSIONS_UPDATE = 'permissions_update';
|
|
|
|
|
|
|
|
const SETTINGS_UPDATE = 'settings_update';
|
|
|
|
const MAINTENANCE_ACTION_RUN = 'maintenance_action_run';
|
|
|
|
|
|
|
|
const RECYCLE_BIN_EMPTY = 'recycle_bin_empty';
|
|
|
|
const RECYCLE_BIN_RESTORE = 'recycle_bin_restore';
|
|
|
|
const RECYCLE_BIN_DESTROY = 'recycle_bin_destroy';
|
|
|
|
|
|
|
|
const USER_CREATE = 'user_create';
|
|
|
|
const USER_UPDATE = 'user_update';
|
|
|
|
const USER_DELETE = 'user_delete';
|
|
|
|
|
|
|
|
const API_TOKEN_CREATE = 'api_token_create';
|
|
|
|
const API_TOKEN_UPDATE = 'api_token_update';
|
|
|
|
const API_TOKEN_DELETE = 'api_token_delete';
|
|
|
|
|
|
|
|
const ROLE_CREATE = 'role_create';
|
|
|
|
const ROLE_UPDATE = 'role_update';
|
|
|
|
const ROLE_DELETE = 'role_delete';
|
|
|
|
|
2020-11-20 19:33:11 +00:00
|
|
|
const AUTH_PASSWORD_RESET = 'auth_password_reset_request';
|
|
|
|
const AUTH_PASSWORD_RESET_UPDATE = 'auth_password_reset_update';
|
|
|
|
const AUTH_LOGIN = 'auth_login';
|
|
|
|
const AUTH_REGISTER = 'auth_register';
|
2021-06-30 21:10:02 +00:00
|
|
|
|
|
|
|
const MFA_SETUP_METHOD = 'mfa_setup_method';
|
2021-07-14 20:27:21 +00:00
|
|
|
const MFA_REMOVE_METHOD = 'mfa_remove_method';
|
2021-12-08 14:29:42 +00:00
|
|
|
|
|
|
|
const WEBHOOK_CREATE = 'webhook_create';
|
|
|
|
const WEBHOOK_UPDATE = 'webhook_update';
|
|
|
|
const WEBHOOK_DELETE = 'webhook_delete';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get all the possible values.
|
|
|
|
*/
|
|
|
|
public static function all(): array
|
|
|
|
{
|
|
|
|
return (new \ReflectionClass(static::class))->getConstants();
|
|
|
|
}
|
2021-03-07 22:24:05 +00:00
|
|
|
}
|