import { ModelType } from "../deviceModel/deviceModelManager" ; import { ModelRepositoryManager } from "../modelRepository/modelRepositoryManager" ; import { UI } from "../view/ui" ; import { UIConstants } from "../view/uiConstants" ; /**
 * Api provider for extension integration
 */ export class ApiProvider { constructor ( private readonly modelRepositoryManager ) { } /**
     * select capability model
     */ async selectCapabilityModel ( ) { return await UI . selectOneModelFile ( UIConstants . SELECT_CAPABILITY_MODEL_LABEL , ModelType . CapabilityModel ) ; } param folder param capabilityModelFile async downloadDependentInterface ( folder , capabilityModelFile ) { await this . modelRepositoryManager . downloadDependentInterface ( folder , capabilityModelFile ) ; } }