• Fetches all logged user interaction events for a specific user.

    Supports optional filtering by user section ID and/or user class ID.

    Parameters

    • userId: string

      The unique ID of the user whose logs should be fetched.

    • OptionaluserSectionId: string

      (Optional) The section ID to filter logs by user section.

    • OptionaluserClassId: string

      (Optional) The class ID to filter logs by user class.

    Returns Promise<{ error?: string; logs?: LogData[] }>

    A promise resolving to an object containing either the logs array or an error message.