Developer Docs
API Reference
Job Handlers
Utils
Job Context
Functions
Function: extractFileParsingContext()

web


web / lib/jobs/utils/job-context / extractFileParsingContext

Function: extractFileParsingContext()

extractFileParsingContext(context): object

Parameters

context

JobHandlerContext

Returns

object

payload

payload: BasePayload

input

input: object

input.importJobId

importJobId: number

input.filePath

filePath: string

input.fileType

fileType: "csv" | "xlsx"