@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
49 lines (40 loc) • 816 B
TypeScript
import AgentConfig from './agentConfig'
export interface GetRequest {
path?: string
query?: object
headers?: Record<string, string>
responseType?: string
raw?: boolean
token: string
}
export interface ApiConfig {
url: string
agent: AgentConfig
}
export interface Count {
count: number
}
export interface ListWithWarnings {
data: Array<Dict<string>>
warnings: Warnings
}
export interface Warnings {
noDataAvailable?: string
}
export interface FieldValuesRequest {
token: string
definitionName: string
variantName: string
fieldName: string
prefix: string
definitionsPath?: string
}
export interface AsyncRequestQuery {
sortColumn: string
sortedAsc: boolean
dataProductDefinitionsPath: string
[key: string]: string
}
interface filter {
[filterId: string]: string
}