WayrApp Backend & Ecosystem Documentation - v1.0.0
    Preparing search index...

    Function generateEntityId

    • Convenience function to generate an ID using predefined entity configurations.

      Parameters

      • name: string

        The name to convert to an ID

      • entityType: "COURSE" | "LEVEL" | "SECTION" | "MODULE" | "LESSON" | "EXERCISE"

        The type of entity

      Returns string

      Generated ID optimized for the entity type