Function resolveProductId

  • Resolves a product ID from different possible representations.

    Supports:

    • Numbers → returned as-is
    • Strings → serial number format or 4-digit product ID
    • HardwareDescription objects → uses getIdFromHardwareDescription

    Returns

    The numeric product ID, or undefined if it cannot be resolved.

    Parameters

    • Optional value: null | string | number | HardwareDescription

      The value to resolve into a numeric product ID.

    Returns number | undefined

Generated using TypeDoc