src/store/apiSubmit.js
async function apiSubmit (store, iroute, payload, delay, jobContext, onCompletion, progress){
    
        if (progress) {
            progress('pending', jobContext);
        }
        
        let job = await iapiCall(store, iroute, API_CALL, payload, 0, null, null, jobContext);
        
        if (job.links('state')) {
            let status = await jobState(store, job, null, 'wait', delay, progress, jobContext);
            completion(store, onCompletion,status.data,status.job, jobContext);
            return status.job;
        } else {
            completion(store, onCompletion, 'unknown', job, jobContext);
            return job;
        }

}
async function apiSubmit (store, iroute, payload, delay, jobContext, onCompletion, progress){
    
        if (progress) {
            progress('pending', jobContext);
        }
        
        let job = await iapiCall(store, iroute, API_CALL, payload, 0, null, null, jobContext);
        
        if (job.links('state')) {
            let status = await jobState(store, job, null, 'wait', delay, progress, jobContext);
            completion(store, onCompletion,status.data,status.job, jobContext);
            return status.job;
        } else {
            completion(store, onCompletion, 'unknown', job, jobContext);
            return job;
        }

}
async function apiSubmit ( store , iroute , payload , delay , jobContext , onCompletion , progress ) { if ( progress ) { progress ( 'pending' , jobContext ) ; } let job = await iapiCall ( store , iroute , API_CALL , payload , 0 , null , null , jobContext ) ; if ( job . links ( 'state' ) ) { let status = await jobState ( store , job , null , 'wait' , delay , progress , jobContext ) ; completion ( store , onCompletion , status . data , status . job , jobContext ) ; return status . job ; } else { completion ( store , onCompletion , 'unknown' , job , jobContext ) ; return job ; } }
store, iroute, actionType, payload, delay, eventHandler, parentRoute, jobContext
store iroute actionType payload delay eventHandler parentRoute jobContext