Newer
Older
// used everywhere
export interface TaggedString {
tag: string;
value: string;
}
export interface UnitResponseData {
response: string;
responseType: string;
}
export interface UnitRestorePointData {
restorePoint: string;
}
// testcontroller restrictions +++++++++++++++++++++++++++++++++++
export interface StartLockData {
}
export interface CodeInputData {
prompt: string;
code: string;
value: string;
}
// for backend ++++++++++++++++++++++++++++++++++++++++++++++++++++++
export interface KeyValuePair {
[K: string]: string;
}
export interface UnitData {
xml: string;
restorepoint: string;
laststate: KeyValuePair[];
}
TERMINATED = 'TERMINATED',
PAUSED = 'PAUSED',
ERROR = 'ERROR'
}
export interface UnitMenuButtonData {
sequenceId: number;
label: string;
isCurrent: boolean;
testletLabel: string;
// for testcontroller service ++++++++++++++++++++++++++++++++++++++++
export interface BookletStateEntry {
bookletDbId: number;
timestamp: number;
entryKey: string;
entry: string;
export interface BookletLogData {
bookletDbId: number;
timestamp: number;
entry: string;
export interface UnitLogData {
bookletDbId: number;
unitDbKey: string;
timestamp: number;
entry: string;
export interface UnitState {
PRESENTATIONCOMPLETE?: 'yes' | 'no';
RESPONSESCOMPLETE?: 'yes' | 'no' | 'all';
PAGE_NR?: number;
PAGE_NAME?: string;
PAGES_COUNT?: number;
BOOKLETLOADSTART = 'BOOKLETLOADSTART',
BOOKLETLOADCOMPLETE = 'BOOKLETLOADCOMPLETE',
PAGENAVIGATIONSTART = 'PAGENAVIGATIONSTART',
PAGENAVIGATIONCOMPLETE = 'PAGENAVIGATIONCOMPLETE',
PRESENTATIONCOMPLETE = 'PRESENTATIONCOMPLETE',
RESPONSESCOMPLETE = 'RESPONSESCOMPLETE'
}
export interface UnitNaviButtonData {
sequenceId: number;
disabled: boolean;
shortLabel: string;
longLabel: string;
testletLabel: string;
// for unithost ++++++++++++++++++++++++++++++++++++++++++++++++++++++
export interface PageData {
index: number;
id: string;
export interface ReviewDialogData {
loginname: string;
bookletname: string;
unitDbKey: string;
unitTitle: string;
}
}
export interface KeyValuePairNumber {
[K: string]: number;
}
export enum UnitNavigationTarget {
NEXT = '#next',
ERROR = '#error',
PREVIOUS = '#previous',
FIRST = '#first',
LAST = '#last',
END = '#end',
MENU = '#menu',
PAUSE = '#pause'