from typing import List
from typing import Dict


def construct_file_name_links_map(links: List[str]) -> Dict[str, str]:
    """Construct a dictionary with link to file name mappings.

    Parameters
    ----------
    links : List[str]
        A list with all the urls of the hosted .ts files

    Returns
    -------
    Dict[str, str]
        A dictionary containing link as key and the corresponding file name as value
    """
    link_file_map = {}

    for file_name, link in enumerate(links):
        link_file_map[link] = str(file_name)

    return link_file_map