Add PFL and PFH files.
This commit is contained in:
@@ -7,6 +7,10 @@ import DecodeAD2 from "./decode-ad2";
|
||||
import { DecodedAD2 } from "./decode-ad2.interface";
|
||||
import DecodeLin from "./decode-lin";
|
||||
import { DecodedLin } from "./decode-lin.interface";
|
||||
import DecodePfh from "./decode-pfh";
|
||||
import { DecodedPfh } from "./decode-pfh.interface";
|
||||
import DecodePfl from "./decode-pfl";
|
||||
import { DecodedPfl } from "./decode-pfl.interface";
|
||||
import DecodeVeh from "./decode-veh";
|
||||
import { DecodedVeh } from "./decode-veh.interface";
|
||||
|
||||
@@ -25,7 +29,9 @@ async function ImportJob(filepath: string): Promise<void> {
|
||||
const ad2: DecodedAD2 = await DecodeAD2(extensionlessFilePath);
|
||||
const veh: DecodedVeh = await DecodeVeh(extensionlessFilePath);
|
||||
const lin: DecodedLin[] = await DecodeLin(extensionlessFilePath);
|
||||
log.debug("EMS Object", { ad1, ad2, veh, lin });
|
||||
const pfh: DecodedPfh = await DecodePfh(extensionlessFilePath);
|
||||
const pfl: DecodedPfl = await DecodePfl(extensionlessFilePath);
|
||||
log.debug("EMS Object", { ad1, ad2, veh, lin, pfh, pfl });
|
||||
} catch (error) {
|
||||
log.error("Error encountered while decoding job. ", errorTypeCheck(error));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user