Skip to main content
Version: v0.0.10

Variable: TELECOM_BUILD_MESSAGES

const TELECOM_BUILD_MESSAGES: Readonly<Record<TelecomBuildCode, string>>

The frozen message registry for Telecom builder errors.

Every entry names the rule that was broken, never the offending value. A caller who supplied the value knows what it was; the library quoting it back is how a cardholder id ends up in a log line. Where the rejection is about one fixed-header slot, the slot travels as NcpdpTelecomBuildError.headerField, which is typed closed.

Example

import { TELECOM_BUILD_CODES, TELECOM_BUILD_MESSAGES } from "@cosyte/ncpdp/telecom";
TELECOM_BUILD_MESSAGES[TELECOM_BUILD_CODES.INVALID_FIELD_ID];