/*! * Copyright (C) Microsoft Corporation. All rights reserved. */ import type { ILogger } from '../services/index.js'; import { DataverseMetadataService } from '../services/index.js'; import type { AddDataSourceContext } from '../Types/ActionTypes.js'; /** * Adds a data source based on the provided Config * Pre-requisites: * Host must call `initializeDataSource` before this function. * Required scopes for this function: * PPAPI - Connectivity.Connectors.Read, Connectivity.Connections.Read * APIHub - user_impersonation * DV - user_impersonation * @param config - Parameters and file paths configuration. Set `config.actionsParams.skipCodeGen` to true to skip model service generation. * @returns Promise */ export declare function addDataSourceAsync(config: AddDataSourceContext): Promise; /** * Ensures a Dataverse entity data source exists for the given logical name. If the entity is * already tracked in `power.config.json` (identified by `logicalName` in any * `databaseReferences[*].dataSources` entry), this is a no-op. Otherwise fetches the entity * definition from Dataverse, saves the schema file, and updates `power.config.json`. * * Code generation is intentionally skipped — the caller is responsible for running * `generateModelService` after all entity data sources are ensured. */ export declare function ensureDataverseEntityDataSource(params: { orgUrl: string; logicalName: string; localFilePaths: { schemaPath: string; codeGenPath: string; powerConfigPath: string; }; metadataService: DataverseMetadataService; logger: ILogger; }): Promise; //# sourceMappingURL=AddDataSource.d.ts.map