-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexercise-configuration.ts
31 lines (25 loc) · 1.03 KB
/
exercise-configuration.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
import { Type } from 'class-transformer';
import { IsBoolean, IsString, ValidateNested } from 'class-validator';
import { IsValue } from '../utils/validators';
import { defaultTileMapProperties } from '../data/default-state/tile-map-properties';
import { getCreate, TileMapProperties } from './utils';
export class ExerciseConfiguration {
@IsValue('exerciseConfiguration' as const)
public readonly type = 'exerciseConfiguration';
@IsBoolean()
public readonly pretriageEnabled: boolean = true;
@IsBoolean()
public readonly bluePatientsEnabled: boolean = false;
@IsString()
public readonly patientIdentifierPrefix: string = '';
@ValidateNested()
@Type(() => TileMapProperties)
public readonly tileMapProperties: TileMapProperties =
defaultTileMapProperties;
/**
* @deprecated Use {@link create} instead
*/
// eslint-disable-next-line @typescript-eslint/no-useless-constructor, @typescript-eslint/no-empty-function
constructor() {}
static readonly create = getCreate(this);
}