forked from ImagingDataCommons/slim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppConfig.d.ts
96 lines (86 loc) · 2.19 KB
/
AppConfig.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import * as dcmjs from 'dcmjs'
export type DicomWebManagerErrorHandler = (
error: dwc.api.DICOMwebClientError,
serverSettings: ServerSettings
) => void
export interface DICOMwebClientRequestHookMetadata {
url: string
method: string
}
export interface RetryRequestSettings {
retries?: number
factor?: number
minTimeout?: number
maxTimeout?: number
randomize?: boolean
retryableStatusCodes: number[]
}
export interface EvaluationSetting {
name: dcmjs.sr.coding.CodeOptions
values: dcmjs.sr.coding.CodeOptions[]
}
export interface MeasurementSetting {
name: dcmjs.sr.coding.CodeOptions
unit: dcmjs.sr.coding.CodeOptions
}
export interface AnnotationSettings {
finding: dcmjs.sr.coding.CodeOptions
findingCategory?: dcmjs.sr.coding.CodeOptions
evaluations?: EvaluationSetting[]
measurements?: MeasurementSetting[]
geometryTypes?: string[]
style?: {
stroke: {
color: number[]
width: number
}
fill: {
color: number[]
}
radius?: number
}
}
export interface ErrorMessageSettings {
status: number
message: string
}
export interface ServerSettings {
id: string
url?: string
path?: string
write: boolean
read?: boolean
qidoPathPrefix?: string
wadoPathPrefix?: string
stowPathPrefix?: string
retry?: RetryRequestSettings
errorMessages?: ErrorMessageSettings[]
storageClasses?: string[]
}
export interface OidcSettings {
authority: string
clientId: string
scope: string
grantType?: string
authorizationEndpoint?: string
endSessionEndpoint?: string
}
export default interface AppConfig {
/**
* Currently, only one server is supported. However, support for multiple
* servers is planned and the "server" parameter therefore expects an array.
* Authentication and authorization for any of the servers is expected to go
* through the same identity provider and authorization server using the OIDC
* and OAuth 2.0 protocols (see "oidc" parameter).
*/
servers: ServerSettings[]
path: string
annotations: AnnotationSettings[]
organization?: string
oidc?: OidcSettings
disableWorklist?: boolean
disableAnnotationTools?: boolean
enableServerSelection?: boolean
mode?: string
preload?: boolean
}