export interface ConnectionStrings { [ key ] : ConnectionString ; } export interface ConnectionString { value : string ; type : ConnectionStringType ; } export interface ConnectionStringInfo { name : string ; connectionString : string ; type : ConnectionStringType ; } export enum ConnectionStringType { MySql , SQLServer , SQLAzure , Custom , NotificationHub , ServiceBus , EventHub , ApiHub , DocDb , RedisCache , PostgreSQL } export namespace ConnectionStringType { export function isSupported ( type ) { switch ( type ) { case ConnectionStringType . MySql : case ConnectionStringType . SQLServer : case ConnectionStringType . SQLAzure : case ConnectionStringType . Custom : return true ; default : return false ; } } }