blob: ca35e95ebfd5dc6c40308401e1883caaf71f2741 [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
********************************************************************************/
import { createAction, props } from '@ngrx/store';
import { ExternalPerson } from '@shared/models';
export const loadExternalPersonDetail = createAction(
'[ExternalPerson Details] Load',
props<{ payload: string }>()
);
export const loadExternalPersonDetailSuccess = createAction(
'[ExternalPerson Details] Load Success',
props<{ payload: ExternalPerson }>()
);
export const loadExternalPersonDetailFail = createAction(
'[ExternalPerson Details] Load Fail',
props<{ payload: string }>()
);
export const persistExternalPersonDetail = createAction(
'[ExternalPerson Details] Persist',
props<{ payload: ExternalPerson }>()
);
export const persistExternalPersonDetailSuccess = createAction(
'[ExternalPerson Details] Persist Success',
props<{ payload: ExternalPerson }>()
);
export const persistExternalPersonDetailFail = createAction(
'[ExternalPerson Details] Persist Fail',
props<{ payload: string }>()
);