import { ModalService } from '../services/modal.service'; import { Observable } from 'rxjs'; import { CoreServices } from '../services'; export type ServerCall = { dataKey?: string; serviceVariable?: string; functionName?: string; isBackgroundTask?: boolean; ignoreFalseError?: boolean; responseSlice?: string; timeoutMilliseconds?: number; loaderID?: string; directCall?: (svc: CoreServices) => Observable; errorMessage: string; data?: any; nextNode?: string; // This is set from a nav button, but can also be written to directly if required followUpSuccessCalls?: { [id: string]: ServerCall; }; followUpFailCalls?: { [id: string]: ServerCall; }; offlineFallback?: ServerCall; };