UNPKG

react-azure-config

Version:

🚀 The Ultimate Multi-App Configuration Library! CRITICAL BUG FIXES: Prefixed environment keys no longer sent to Azure. Complete architectural redesign with bulletproof fallback system. Enterprise-grade Azure integration and monorepo support.

43 lines • 1.61 kB
import { AppScopedKeyTransformer } from './app-key-transformer'; import type { AuthenticationConfig, ConfigurationValue } from '../types'; export interface AppAzureConfig { appId: string; endpoint: string; authentication: AuthenticationConfig; transformer?: AppScopedKeyTransformer; label?: string; environment?: string; } export interface AzureConfigResult { success: boolean; data: ConfigurationValue; source: 'azure' | 'fallback' | 'error'; appId: string; transformedKeys: number; errors?: string[]; } export declare class AppIsolatedAzureManager { private azureClients; private appConfigs; private keyTransformer; constructor(keyTransformer?: AppScopedKeyTransformer); registerApp(config: AppAzureConfig): void; getAppConfiguration(appId: string): Promise<AzureConfigResult>; getAppConfigurationValue(appId: string, requestedKey: string): Promise<{ success: boolean; value?: any; resolvedKey?: string; source: string; fallbacksAttempted: string[]; }>; refreshAppConfiguration(appId: string): Promise<void>; getRegisteredApps(): string[]; getAppDebugInfo(appId: string): any; canAutoRegisterApp(appId: string): boolean; private autoRegisterApp; private buildAuthenticationFromEnv; private transformAzureToAppContext; } export declare const globalAzureManager: AppIsolatedAzureManager; export declare function createAppAzureManager(keyTransformer?: AppScopedKeyTransformer): AppIsolatedAzureManager; //# sourceMappingURL=app-isolated-azure-manager.d.ts.map