import { BaseAction , actionIds } from './common' ; import { CurrencyUpdate } from './model' ; export const numberRequestStartAction = ( ) : BaseAction => ( { type : actionIds . GET_NUMBER_REQUEST_START , payload : null , } ) ; export const numberRequestCompletedAction = ( numberGenerated ) : BaseAction => ( { type : actionIds . GET_NUMBER_REQUEST_COMPLETED , payload : numberGenerated , } ) ; export const cancelOnGoingNumberRequestAction = ( ) => ( { type : actionIds . CANCEL_ONGOING_NUMBER_REQUEST , payload : null , } ) ; export const numberRequestUserConfirmationAction = goahead => ( { type : actionIds . GET_NUMBER_REQUEST_USER_CONFIRMATION , payload : goahead , } ) ; export const startSocketSubscriptionAction = ( ) => ( { type : actionIds . START_SOCKET_SUBSCRIPTION , } ) ; export const stopSocketSubscriptionAction = ( ) => ( { type : actionIds . STOP_SOCKET_SUBSCRIPTION , } ) ; export const currencyUpdateReceivedAction = update => ( { type : actionIds . CURRENCY_UPDATE_RECEIVED , payload : update , } ) ;