ParsersEngineResults

ParsersEngineResults class API reference

A parsersEngineResults instance is returned by the parsers engine execution.

Example:

const results: ParsersEngineResults = await SDTFClient.createParsersPipelines({ ... })()

Properties

all

This getter returns the raw results of the parser pipelines execution.

get all: Array<ParsersEngineResult>;

hasError

This getter returns a boolean indicating whether any of the pipelines returned an error.

get hasError: boolean;

hasWarning

This getter returns a boolean indicating whether any of the pipelines returned warnings.

get hasWarning: boolean;

allErrorMessages

This getter gathers the error messages from all the pipelines.

allWarningMessages

This getter gathers the warning messages from all the pipelines.

allInformationMessages

This getter gathers the information messages from all the pipelines.

Methods

logErrorMessages

This method prints error messages to the console.

logWarningMessages

This method prints warning messages to the console.

logInformationMessages

This method prints information messages to the console.

debug

This method prints a summary of the execution results to the console.

mapOutput

This method maps over any output of the parsers. It is quite convenient if you want to run some post-process on the output.

mapFiles

This method maps over output files. It is quite convenient if you want to run some post-process on the files.

writeToDisk

This method writes the outputs of the parsers to the file system.

serialize

This method serializes the results before HTTP transmission.

Last updated

Was this helpful?