Skip to main content
Version: v0.0.2

Function: missingIea()

missingIea(position): X12ParseWarning

Build an X12_MISSING_IEA warning. Emitted when the input opened a valid ISA but EOF arrived before any IEA segment. The parser returns the groups it managed to decode with iea: undefined; the warning surfaces the structural break so consumers know the interchange is truncated.

Parameters

position

X12Position

Returns

X12ParseWarning

Example

import { missingIea } from "@cosyte/x12";
const w = missingIea({ segmentIndex: 4, interchangeIndex: 0 });