import { Action } from '@ngrx/store' ; import { INewOrder , IOrder , IOrdersTable , } from 'app/shared/states/orders/orders.interface' ; export const LOAD_ORDERS_SUCCESS = '[Orders] Load orders success' ; export class LoadOrdersSuccess implements Action { readonly type = LOAD_ORDERS_SUCCESS ; constructor ( public payload ) { } } export const ADD_ORDER = '[Orders] Add order' ; export class AddOrder implements Action { readonly type = ADD_ORDER ; constructor ( public payload ) { } } export const ADD_ORDER_SUCCESS = '[Orders] Add order success' ; export class AddOrderSuccess implements Action { readonly type = ADD_ORDER_SUCCESS ; constructor ( public payload ) { } } export const REMOVE_ORDER = '[Orders] Remove order' ; export class RemoveOrder implements Action { readonly type = REMOVE_ORDER ; constructor ( public payload ) { } } export const REMOVE_ORDER_SUCCESS = '[Orders] Remove order success' ; export class RemoveOrderSuccess implements Action { readonly type = REMOVE_ORDER_SUCCESS ; constructor ( public payload ) { } } export const SET_COUNTDOWN = '[Orders] Set countdown' ; export class SetCountdown implements Action { readonly type = SET_COUNTDOWN ; constructor ( public payload ) { } } export type All = LoadOrdersSuccess | AddOrder | AddOrderSuccess | RemoveOrder | RemoveOrderSuccess | SetCountdown ;