import { CreateJobFn , CreateJobFnFactory } from '../../../types' ; import { validateUrls } from '../../common' ; import { JobParamsPNG , TaskPayloadPNG } from '../types' ; export const createJobFnFactory = function createJobFactoryFn ( ) { return async function createJob ( jobParams ) { validateUrls ( [ jobParams . relativeUrl ] ) ; return { ... jobParams , forceNow : new Date ( ) . toISOString ( ) , } ; } ; } ;