2024-04-22 11:03:31 +00:00
|
|
|
type NextValue = 'backend' | 'debug' | 'webchat-video' | 'prosody'
|
|
|
|
| 'external-auth-custom-oidc' | 'external-auth-google-oidc' | 'external-auth-facebook-oidc'
|
|
|
|
| 'everything-ok'
|
2021-04-12 15:53:12 +00:00
|
|
|
|
2021-05-02 14:16:19 +00:00
|
|
|
interface MessageWithLevel {
|
|
|
|
level: 'info' | 'warning' | 'error'
|
|
|
|
message: string
|
2023-07-26 16:16:30 +00:00
|
|
|
help?: {
|
|
|
|
url: string
|
|
|
|
text: string
|
|
|
|
}
|
2021-05-02 14:16:19 +00:00
|
|
|
}
|
2021-04-12 15:53:12 +00:00
|
|
|
export interface TestResult {
|
|
|
|
label?: string
|
2021-05-02 14:16:19 +00:00
|
|
|
messages: Array<string | MessageWithLevel>
|
2021-04-14 14:14:56 +00:00
|
|
|
debug: Array<{
|
|
|
|
title: string
|
|
|
|
message: string
|
|
|
|
}>
|
2024-04-22 11:03:31 +00:00
|
|
|
next: NextValue | null
|
2021-04-12 15:53:12 +00:00
|
|
|
ok: boolean
|
|
|
|
test: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export function newResult (test: string): TestResult {
|
|
|
|
return {
|
|
|
|
test: test,
|
|
|
|
ok: false,
|
|
|
|
messages: [],
|
2021-04-14 14:14:56 +00:00
|
|
|
debug: [],
|
2021-04-12 15:53:12 +00:00
|
|
|
next: null
|
|
|
|
}
|
|
|
|
}
|