File tree Expand file tree Collapse file tree 11 files changed +75
-4
lines changed
Expand file tree Collapse file tree 11 files changed +75
-4
lines changed Original file line number Diff line number Diff line change 1+ export interface Action {
2+ path ?: string ,
3+ responses ?: Response [ ] ,
4+ url ?: string ,
5+ }
Original file line number Diff line number Diff line change 1+ import { Timestamps } from './timestamps' ;
2+
3+ export interface Addressable extends Timestamps {
4+ id : string ,
5+ name : string ,
6+ protocol ?: string ,
7+ method ?: string ,
8+ address ?: string ,
9+ port ?: number ,
10+ path ?: string ,
11+ publisher ?: string ,
12+ user ?: string ,
13+ password ?: string ,
14+ topic ?: string
15+ }
Original file line number Diff line number Diff line change 1+ export interface AutoEvent {
2+ frequency ?: string ,
3+ onChange ?: boolean ,
4+ resource ?: string
5+ }
Original file line number Diff line number Diff line change 1+ import { Get } from './get' ;
2+ import { Put } from './put' ;
3+ import { Timestamps } from './timestamps' ;
4+
5+ export interface Command extends Timestamps {
6+ id : string ,
7+ name : string ,
8+ get ?: Get ,
9+ put ?: Put
10+ }
Original file line number Diff line number Diff line change 1+ import { Timestamps } from './timestamps' ;
2+
3+ export interface DeviceProfile extends Timestamps {
4+ id : string ,
5+ name : string ,
6+ description ?: string ,
7+ manufacturer ?: string ,
8+ model ?: string ,
9+ labels ?: string [ ]
10+ // deviceResources
11+ // deviceCommands
12+ // coreCommands
13+ }
Original file line number Diff line number Diff line change 1- import { Timestamps } from './timestamps'
1+ import { Addressable } from './addressable' ;
2+ import { Timestamps } from './timestamps' ;
23
34export interface DeviceService extends Timestamps {
45 id : string ,
@@ -7,6 +8,7 @@ export interface DeviceService extends Timestamps {
78 adminState : string ,
89 operatingState : string ,
910 labels : string [ ] ,
11+ addressable : Addressable ,
1012 lastConnected : number ,
1113 lastReported : number
12- }
14+ }
Original file line number Diff line number Diff line change 1+ import { AutoEvent } from './auto-event' ;
12import { DeviceService } from './device-service' ;
23import { Timestamps } from './timestamps' ;
34
45export interface Device extends Timestamps {
56 id : string ,
67 name : string ,
7- description : string ,
8+ description ? : string ,
89 adminState : string ,
910 operatingState : string ,
1011 labels : string [ ] ,
1112 lastConnected : number ,
1213 lastReported : number ,
13- deviceService : DeviceService
14+ deviceService : DeviceService ,
15+ profile ?: any ,
16+ autoEvents ?: AutoEvent ,
17+ location ?: any ,
18+ protocols ?: any
1419}
Original file line number Diff line number Diff line change 1+ import { Action } from './action' ;
2+
3+ export interface Get extends Action {
4+ }
Original file line number Diff line number Diff line change 1+ export interface ProtocolProperties {
2+ }
Original file line number Diff line number Diff line change 1+ import { Action } from './action' ;
2+
3+ export interface Put extends Action {
4+ parameterNames ?: string [ ]
5+ }
You can’t perform that action at this time.
0 commit comments