/*! * Copyright (C) Microsoft Corporation. All rights reserved. */ import type { IHttpClient } from '../types/IHttpClient.js'; import type { ILogger } from '../types/PlayerServices.types.js'; import type { AddSolutionComponentRequest, ConnectionReferenceSolutionComponent, DataverseSolution, DataverseWorkflow, EnvironmentVariableDefinition } from './DataverseTypes.js'; export declare class DataverseSystemDataService { private httpClient; constructor(httpClient: IHttpClient); getEnvironmentVariables(orgUrl: string, logger: ILogger): Promise; getEnvironmentVariable(orgUrl: string, variableSchemaName: string, logger: ILogger): Promise; getConnectionReferencesInSolution(solutionId: string, orgUrl: string, logger: ILogger): Promise; getConnectionIdForReference(connectionReferenceLogicalName: string, orgUrl: string, logger: ILogger): Promise; getPreferredSolution(orgUrl: string): Promise; /** * Look up a single solution by its solutionid GUID. Returns undefined when the * solution is not visible to the caller in this environment. */ getSolutionByIdAsync(orgUrl: string, solutionId: string): Promise; /** * Look up a single solution by its unique name. Returns undefined when no * solution with that unique name is visible to the caller in this environment. * * Used to resolve the well-known all-components Default Solution (unique name * `Default`) as a last-resort fallback when an environment has no preferred * solution. The Common Data Service Default Solution is NOT resolved this way * — its unique name is generated per environment, so it has no fixed constant; * `getPreferredSolution` returns it by default instead. */ getSolutionByUniqueNameAsync(orgUrl: string, uniqueName: string): Promise; /** * Link an existing solution-aware component (canvas app, code app, flow, etc.) * into an additional solution via the Dataverse `AddSolutionComponent` action. * * This is what the maker portal's "Add Existing" UX calls. It only works when * the component is already solution-aware; standalone apps must first be * onboarded via the Power Apps RP `makeSolutionAware` endpoint. */ addSolutionComponentAsync(orgUrl: string, body: AddSolutionComponentRequest, logger: ILogger): Promise; getSolutions(orgUrl: string): Promise; /** * Retrieves all cloud flows (workflows with category = 5) from a Dataverse organization. * @param orgUrl The URL of the Dataverse organization. * @param logger The logger instance for tracking the scenario. * @param search Optional search term to filter flows by name (case-insensitive substring match). * @returns A promise that resolves to an array of DataverseWorkflow objects. * @throws An error if the HTTP request to the Dataverse API fails. */ getWorkflows(orgUrl: string, logger: ILogger, search?: string): Promise; } //# sourceMappingURL=DataverseSystemDataService.d.ts.map