-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
45 lines (41 loc) · 807 Bytes
/
types.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
import { BaseSystemType } from '../base/types';
/**
* @group Systems
*/
/** @group Systems */
export type Access = BaseSystemType & {
/** The current state */
currentState: AccessState | null;
/** The start condition state */
startCondition: AccessStartConditionState | null;
/** The runtime percentage 0-100 as % */
gateRuntimePercentage: number | null;
/** The access type */
accessType: AccessType | null;
};
/**
* The access states.
* @group Systems
*/
export enum AccessState {
'close' = 0,
'open' = 1,
'keepOpen' = 2,
}
/**
* The access start condition states.
* @group Systems
*/
export enum AccessStartConditionState {
'off' = 0,
'on' = 1,
}
/**
* The access types.
* @group Systems
*/
export enum AccessType {
'door' = 0,
'gate' = 1,
'barrier' = 2,
}