mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-14 23:50:06 +00:00
fix(*): separate job execution code from main SASjs class
This commit is contained in:
17
src/job-execution/JobExecutor.ts
Normal file
17
src/job-execution/JobExecutor.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { SASjsRequest } from '../types'
|
||||
|
||||
export type ExecuteFunction = () => Promise<any>
|
||||
|
||||
export interface JobExecutor {
|
||||
execute: (
|
||||
sasJob: string,
|
||||
data: any,
|
||||
config: any,
|
||||
loginRequiredCallback?: any,
|
||||
accessToken?: string
|
||||
) => Promise<any>
|
||||
waitingRequests: ExecuteFunction[]
|
||||
resendWaitingRequests: () => Promise<void>
|
||||
getRequests: () => SASjsRequest[]
|
||||
clearRequests: () => void
|
||||
}
|
||||
Reference in New Issue
Block a user