1 import {Action, ActionCreator} from "redux";
3 export enum NcfActions{
4 DELETE_ACTION_NCF_INSTANCE = "DELETE_ACTION_NCF_INSTANCE",
5 UNDO_DELETE_ACTION_NCF_INSTANCE = "UNDO_DELETE_ACTION_NCF_INSTANCE"
8 export interface DeleteActionNcfInstanceAction extends Action {
9 collectionResourceStoreKey: string,
14 export interface UndoDeleteActionNcfInstanceAction extends Action {
15 collectionResourceStoreKey: string,
21 export const deleteActionNcfInstance: ActionCreator<DeleteActionNcfInstanceAction> = (collectionResourceStoreKey, ncfStoreKey, serviceId) => ({
22 type: NcfActions.DELETE_ACTION_NCF_INSTANCE,
23 collectionResourceStoreKey: collectionResourceStoreKey,
24 ncfStoreKey: ncfStoreKey,
28 export const undoDeleteActionNcfInstance: ActionCreator<UndoDeleteActionNcfInstanceAction> = (collectionResourceStoreKey, ncfStoreKey, serviceId) => ({
29 type: NcfActions.UNDO_DELETE_ACTION_NCF_INSTANCE,
30 collectionResourceStoreKey: collectionResourceStoreKey,
31 ncfStoreKey: ncfStoreKey,