import { Action } from '@ngrx/store' ; import { Node } from '@alfresco/js-api' ; export enum TemplateActionTypes { FileFromTemplate = 'FILE_FROM_TEMPLATE' , FolderFromTemplate = 'FOLDER_FROM_TEMPLATE' , CreateFromTemplate = 'CREATE_FROM_TEMPLATE' , CreateFromTemplateSuccess = 'CREATE_FROM_TEMPLATE_SUCCESS' } export class FileFromTemplate implements Action { readonly type = TemplateActionTypes . FileFromTemplate ; constructor ( ) { } } export class FolderFromTemplate implements Action { readonly type = TemplateActionTypes . FolderFromTemplate ; constructor ( ) { } } export class CreateFromTemplate implements Action { readonly type = TemplateActionTypes . CreateFromTemplate ; constructor ( public payload ) { } } export class CreateFromTemplateSuccess implements Action { readonly type = TemplateActionTypes . CreateFromTemplateSuccess ; constructor ( public node ) { } }