Function isSomanetProductIdInRange

  • Checks whether a given product ID belongs to a specified SOMANET product range.

    This function resolves the productId to a numeric ID, determines the corresponding SomanetProductRange, and checks if it matches the provided rangeName.

    Special aggregate ranges (Circulo All and Node All) are supported:

    • "Circulo All" includes: "Circulo", "Circulo Safe Motion", "ACTILINK-JD", "ACTILINK-JD Duo"
    • "Node All" includes: "Node", "Node Safety"

    Returns

    true if the product belongs to the specified range; otherwise, false.

    Parameters

    • Optional productId: null | string | number | HardwareDescription

      The product identifier to check. Can be:

      • A numeric product ID
      • A string representing the product ID
      • A HardwareDescription object
      • null or undefined, in which case the function returns false
    • Optional rangeName: SomanetProductRangeNameAll

      The product range to check against. Can be any SomanetProductRangeName or the aggregate values "Circulo All" / "Node All".

    Returns boolean

Generated using TypeDoc