def METHOD_NAME(dependencies_dir: str) -> dict:
    dependencies: dict = {}
    for path, _, files in os.walk(dependencies_dir):
        for file_name in files:
            _, config_ext = os.path.splitext(file_name)
            if config_ext != '.yaml':
                continue
            file_path = os.path.join(path, file_name)
            config = _load_yaml(file_path)
            CONFIG_SCHEMA(config)
            if 'common-name' in config:
                for partial in config.get('partials'):
                    dependencies[partial['name']] = {
                        'common-name': config['common-name'],
                        **partial,
                    }
            else:
                dependencies[config['name']] = config
    return dependencies