/*! * Copyright (C) Microsoft Corporation. All rights reserved. */ import type { Region } from '@microsoft/power-apps-common/services'; import type { IHttpClient, ILogger } from '../services/index.js'; import type { IAuthenticationProvider } from './PlayerActions.types.js'; import type { Vfs } from './Vfs.types.js'; export declare const PowerConfigFileName = "power.config.json"; export type LocalFilePaths = { powerConfigPath: string; schemaPath: string; codeGenPath: string; }; /** * A lazy parameter that can be either a direct string value or a function that returns a Promise. * This allows for deferred prompting - the function is only called when the value is needed. */ export type LazyParam = string | (() => Promise); /** * Base action context that all actions share */ export type BaseActionContext> = { vfs: Vfs; authProvider: IAuthenticationProvider; region: Region; environmentName: string; actionsParams: TParams; localFilePaths: LocalFilePaths; logger: ILogger; httpClient?: IHttpClient; }; export type AddDataSourceParams = { apiId: LazyParam; connectionId?: LazyParam; tableName?: LazyParam; dataset?: LazyParam; sqlStoredProcedure?: LazyParam; envUrl?: LazyParam; envId?: string; connectionRef?: LazyParam; solutionId?: LazyParam; dataSourceShareLink?: { linkKind: number; shareId: string; url: string; listId?: string; siteId?: string; }; siteId?: string; /** If true, skips the code generation step (model service generation) after adding the data source */ skipCodeGen?: boolean; }; export type RemoveDataSourceParams = { apiId: LazyParam; dataSourceName: LazyParam; sqlStoredProcedure: LazyParam; }; export type UpdateDataSourceParams = { dataSourceName: string; }; export type RefreshDataSourceParams = { dataSourceName?: string; }; export type RegenDataSourceTsParams = { dataSource?: string; }; export type RegenDataSourceTsResult = { succeeded: string[]; failed: { dataSourceName: string; error: string; }[]; }; export type RefreshDataSourceResult = { succeeded: string[]; failed: { dataSourceName: string; error: string; }[]; }; export type PushAppParams = { appSubtype?: string; appName?: string | null; solutionId?: string; appType?: string; }; export type ShareAppParams = { appId: string; tenantId: string; principals: string[]; role: 'CanView' | 'CanEdit'; }; export type ListSQLStoredProceduresParams = { connectionId: string; dataset: string; }; export type ListEnvironmentVariablesParams = { envUrl?: LazyParam; }; export type ListTablesParams = { apiId: string; connectionId: string; dataset: string; }; export type ListDataSetsParams = { apiId: string; connectionId: string; }; export type ListConnectionReferencesParams = { solutionId: string; envUrl?: LazyParam; }; export type ListConnectionsParams = { search?: string; }; export type ListConnectorsParams = { search?: string; }; /** * A connector available in the environment, projected from the connectivity * `Api` shape into the fields the CLI surfaces. Unlike Managed Apps, Power Apps * has no connector data policy, so there is no `isBlocked`/policy field. */ export type ConnectorInfo = { id: string; name: string; displayName: string; description: string; isTabular: boolean; }; export type ListFlowsParams = { search?: string; }; export type ListSolutionsParams = { search?: string; }; export type AddFlowParams = { flowId: string; }; export type RemoveFlowParams = { flowDataSourceName?: string; flowId?: string; }; export type FindDataverseApiParams = { searchTerm: string; }; export type AddDataverseApiParams = { apiName: string; }; export type CreateConnectionParams = { connectorId: string; displayName?: string; }; export type AddDataSourceContext = BaseActionContext; export type RemoveDataSourceContext = BaseActionContext; export type UpdateDataSourceContext = BaseActionContext; export type RefreshDataSourceContext = BaseActionContext; export type PushAppContext = BaseActionContext; export type ShareAppContext = BaseActionContext; export type ListSQLStoredProceduresContext = BaseActionContext; export type ListAllEnvironmentVariablesContext = BaseActionContext; export type ListTablesContext = BaseActionContext; export type ListDataSetsContext = BaseActionContext; export type ListConnectionReferencesContext = BaseActionContext; export type ListConnectionsContext = BaseActionContext; export type ListConnectorsContext = BaseActionContext; export type ListFlowsContext = BaseActionContext; export type ListSolutionsContext = BaseActionContext; export type FindDataverseApiContext = BaseActionContext; export type AddDataverseApiContext = BaseActionContext; export type RegenDataSourceTsContext = BaseActionContext; export type AddFlowContext = BaseActionContext; export type RemoveFlowContext = BaseActionContext; export type CreateConnectionContext = BaseActionContext; //# sourceMappingURL=ActionTypes.d.ts.map