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.
32 lines • 1.16 kB
TypeScript
export interface AppContextKey {
original: string;
clean: string;
azure: string;
legacy: string;
nested: string;
}
export interface AppKeyMappings {
appId: string;
mappings: Record<string, {
azureKey: string;
fallbackKeys: string[];
description?: string;
}>;
}
export declare class AppScopedKeyTransformer {
private appMappings;
constructor();
private initializeDefaultMappings;
registerAppMappings(mappings: AppKeyMappings): void;
envToAzure(envKey: string, appId: string): string;
azureToApp(azureKey: string, appId: string): AppContextKey;
resolveFallback(requestedKey: string, appId: string): string[];
getAppEnvironmentVariables(appId: string): string[];
createKeyMapping(envKey: string, appId: string): Record<string, string>;
private stripAppPrefixes;
private standardizeToAzureFormat;
getDebugInfo(appId: string): any;
}
export declare const globalKeyTransformer: AppScopedKeyTransformer;
export declare function createAppKeyTransformer(customMappings?: AppKeyMappings[]): AppScopedKeyTransformer;
//# sourceMappingURL=app-key-transformer.d.ts.map