Member Junction
    Preparing search index...

    Lightweight class to share entity metadata for component validation and linting. Contains the entity name and complete list of all fields in the entity. This is a simplified version of EntityInfo from @memberjunction/core, designed for contexts where full entity metadata isn't needed.

    Index

    Constructors

    Properties

    description?: string

    Optional description of the entity

    Complete list of ALL fields in this entity. Used by linter to validate field access with proper severity levels.

    name: string

    Name of the entity (unique system-wide, e.g., "Certifications")

    Methods

    • Helper method to get all field names as a Set for efficient lookup

      Returns Set<string>

      Set of all field names in this entity

    • Helper method to check if a field exists in this entity

      Parameters

      • fieldName: string

        The field name to check

      Returns boolean

      True if the field exists, false otherwise

    • Converts this SimpleEntityInfo to a partial EntityInfo object. Note: This creates a plain object with EntityInfo-compatible properties, not a full EntityInfo instance (which requires database context).

      Returns Partial<EntityInfo>

      A partial EntityInfo-compatible object