1 import {Action, ActionCreator} from "redux";
2 import {ActionOnFirstLevel} from "../firstLevel/firstLevel.actions";
5 DELETE_ACTION_CR_INSTANCE = "DELETE_ACTION_CR_INSTANCE",
6 UNDO_DELETE_ACTION_CR_INSTANCE = "UNDO_DELETE_ACTION_CR_INSTANCE"
9 export const deleteActionCrInstance: ActionCreator<ActionOnFirstLevel> = (collectionResourceStoreKey, serviceId) => ({
10 type: CrActions.DELETE_ACTION_CR_INSTANCE,
11 firstLevelName: 'collectionResources',
12 storeKey: collectionResourceStoreKey,
16 export const undoDeleteActionCrInstance: ActionCreator<ActionOnFirstLevel> = (collectionResourceStoreKey, serviceId) => ({
17 type: CrActions.UNDO_DELETE_ACTION_CR_INSTANCE,
18 firstLevelName: 'collectionResources',
19 storeKey: collectionResourceStoreKey,