-const actions = unionize({
- CREATE_PROJECT: ofType<Project>(),
- REMOVE_PROJECT: ofType<string>()
+import { ProjectResource } from "../../models/project";
+import { projectService } from "../../services/services";
+import { Dispatch } from "redux";
+import { FilterBuilder } from "../../common/api/filter-builder";
+import { RootState } from "../store";
+import { checkPresenceInFavorites } from "../favorites/favorites-actions";
+
+export const projectActions = unionize({
+ OPEN_PROJECT_CREATOR: ofType<{ ownerUuid: string }>(),
+ CLOSE_PROJECT_CREATOR: ofType<{}>(),
+ CREATE_PROJECT: ofType<Partial<ProjectResource>>(),
+ CREATE_PROJECT_SUCCESS: ofType<ProjectResource>(),
+ CREATE_PROJECT_ERROR: ofType<string>(),
+ REMOVE_PROJECT: ofType<string>(),
+ PROJECTS_REQUEST: ofType<string>(),
+ PROJECTS_SUCCESS: ofType<{ projects: ProjectResource[], parentItemId?: string }>(),
+ TOGGLE_PROJECT_TREE_ITEM_OPEN: ofType<string>(),
+ TOGGLE_PROJECT_TREE_ITEM_ACTIVE: ofType<string>(),
+ RESET_PROJECT_TREE_ACTIVITY: ofType<string>()