Function findSomanetProductRangeByProductId

  • Finds the Somanet product range corresponding to a given product ID.

    The function resolves the product ID (number, string, or HardwareDescription) to a numeric ID, and then searches through somanetProductRanges to find the range whose bounds include the ID.

    Returns

    The SomanetProductRange whose bounds contain the resolved ID, or undefined if no matching range is found or the input is invalid.

    Parameters

    • Optional productId: null | string | number | HardwareDescription

      The product identifier to look up. Can be:

      • A numeric product ID
      • A string representation of the ID
      • A HardwareDescription object
      • null or undefined, in which case the function returns undefined

    Returns SomanetProductRange | undefined

Generated using TypeDoc