import { Action } from '@ngrx/store' ; import { IPizzaBackendWithDetailsAndFkUi } from 'app/shared/states/pizzas/pizzas.interfaces' ; /**
 * create one class per action and do not forget to add them at the end to the type All
 * this way, you'll be able to have type checking when dispatching and also in your reducers
 */ export const FETCH_PIZZA_DETAILS = 'Fetch pizza details' ; export class FetchPizzaDetails implements Action { readonly type = FETCH_PIZZA_DETAILS ; constructor ( public payload ) { } } export const FETCH_PIZZA_DETAILS_SUCCESS = 'Fetch pizza details success' ; export class FetchPizzaDetailsSuccess implements Action { readonly type = FETCH_PIZZA_DETAILS_SUCCESS ; constructor ( public payload ) { } } export const FETCH_PIZZA_DETAILS_FAILED = 'Fetch pizza details failed' ; export class FetchPizzaDetailsFailed implements Action { readonly type = FETCH_PIZZA_DETAILS_FAILED ; constructor ( public payload ) { } } export type All = FetchPizzaDetails | FetchPizzaDetailsSuccess | FetchPizzaDetailsFailed ;