import { Action } from '@ngrx/store' ; import { MinimalNodeEntity } from '@alfresco/js-api' ; export enum NodeActionTypes { SetSelection = 'SET_SELECTED_NODES' , Delete = 'DELETE_NODES' , UndoDelete = 'UNDO_DELETE_NODES' , RestoreDeleted = 'RESTORE_DELETED_NODES' , PurgeDeleted = 'PURGE_DELETED_NODES' , Download = 'DOWNLOAD_NODES' , CreateFolder = 'CREATE_FOLDER' , EditFolder = 'EDIT_FOLDER' , Share = 'SHARE_NODE' , Unshare = 'UNSHARE_NODES' , Copy = 'COPY_NODES' , Move = 'MOVE_NODES' , ManagePermissions = 'MANAGE_PERMISSIONS' , PrintFile = 'PRINT_FILE' , ManageVersions = 'MANAGE_VERSIONS' , EditOffline = 'EDIT_OFFLINE' , UnlockForWriting = 'UNLOCK_WRITE_LOCK' , AddFavorite = 'ADD_FAVORITE' , RemoveFavorite = 'REMOVE_FAVORITE' , ChangeAspects = 'ASPECT_LIST' , ExpandInfoDrawer = 'EXPAND_INFO_DRAWER' } export class SetSelectedNodesAction implements Action { readonly type = NodeActionTypes . SetSelection ; constructor ( public payload = [ ] ) { } } export class DeleteNodesAction implements Action { readonly type = NodeActionTypes . Delete ; constructor ( public payload = [ ] ) { } } export class UndoDeleteNodesAction implements Action { readonly type = NodeActionTypes . UndoDelete ; constructor ( public payload = [ ] ) { } } export class RestoreDeletedNodesAction implements Action { readonly type = NodeActionTypes . RestoreDeleted ; constructor ( public payload ) { } } export class PurgeDeletedNodesAction implements Action { readonly type = NodeActionTypes . PurgeDeleted ; constructor ( public payload ) { } } export class DownloadNodesAction implements Action { readonly type = NodeActionTypes . Download ; constructor ( public payload = [ ] ) { } } export class CreateFolderAction implements Action { readonly type = NodeActionTypes . CreateFolder ; constructor ( public payload ) { } } export class EditFolderAction implements Action { readonly type = NodeActionTypes . EditFolder ; constructor ( public payload ) { } } export class ShareNodeAction implements Action { readonly type = NodeActionTypes . Share ; constructor ( public payload ) { } } export class UnshareNodesAction implements Action { readonly type = NodeActionTypes . Unshare ; constructor ( public payload ) { } } export class CopyNodesAction implements Action { readonly type = NodeActionTypes . Copy ; constructor ( public payload ) { } } export class MoveNodesAction implements Action { readonly type = NodeActionTypes . Move ; constructor ( public payload ) { } } export class ManagePermissionsAction implements Action { readonly type = NodeActionTypes . ManagePermissions ; constructor ( public payload ) { } } export class ExpandInfoDrawerAction implements Action { readonly type = NodeActionTypes . ExpandInfoDrawer ; constructor ( public payload ) { } } export class PrintFileAction implements Action { readonly type = NodeActionTypes . PrintFile ; constructor ( public payload ) { } } export class ManageVersionsAction implements Action { readonly type = NodeActionTypes . ManageVersions ; constructor ( public payload ) { } } export class EditOfflineAction implements Action { readonly type = NodeActionTypes . EditOffline ; constructor ( public payload ) { } } export class UnlockWriteAction implements Action { readonly type = NodeActionTypes . UnlockForWriting ; constructor ( public payload ) { } } export class AddFavoriteAction implements Action { readonly type = NodeActionTypes . AddFavorite ; constructor ( public payload ) { } } export class RemoveFavoriteAction implements Action { readonly type = NodeActionTypes . RemoveFavorite ; constructor ( public payload ) { } } export class ManageAspectsAction implements Action { readonly type = NodeActionTypes . ChangeAspects ; constructor ( public payload ) { } }