@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
37 lines (29 loc) • 664 B
TypeScript
import { AgentConfig } from './agentConfig.js';
interface GetRequest {
path?: string
query?: object
headers?: Record<string, string>
responseType?: string
raw?: boolean
token: string
}
interface FeatureFlagConfig {
token: string
url: string
updateInterval?: number
}
interface MigrationServiceConfig {
enabled: boolean
}
interface ApiConfig {
url: string
agent: AgentConfig
}
interface ListWithWarnings {
data: Record<string, string>[]
warnings: Warnings
}
interface Warnings {
noDataAvailable?: string | undefined
}
export type { ApiConfig, FeatureFlagConfig, GetRequest, ListWithWarnings, MigrationServiceConfig, Warnings };