Add PFL and PFH files.

This commit is contained in:
Patrick Fic
2025-03-19 07:19:49 -07:00
parent 4f3d8cf754
commit 5ddfe4d86f
9 changed files with 228 additions and 10 deletions

View File

@@ -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));
}