-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathBed.ts
40 lines (37 loc) · 1.09 KB
/
Bed.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
import { t } from 'ttag';
import SimpleSchema from 'simpl-schema';
import { createSchemaInstance } from './SimpleSchemaExtensions';
import { Length, LengthSchema } from './Units';
import { LocalizedStringSchema } from './LocalizedString';
export interface Bed {
/**
* `true` if the bed is completely accessible while using a wheelchair,
* `false` if not, `undefined` if the condition is unknown or difficult to assess.
*/
isWheelchairAccessible?: boolean;
hasEasyAccessFromBothSides?: boolean;
hasAccessibleLightSwitch?: boolean;
}
export const BedSchema = createSchemaInstance('Bed', {
isWheelchairAccessible: {
type: Boolean,
optional: true,
accessibility: {
question: t`Is the bed wheelchair accessible?`
}
},
hasAccessibleLightSwitch: {
type: Boolean,
optional: true,
accessibility: {
question: t`Is the light switch accessible from the bed?`
}
},
hasEasyAccessFromBothSides: {
type: Boolean,
optional: true,
accessibility: {
question: t`Does the bed have enough space to easily access it from both sides?`
}
}
});