-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathEvent.ts
50 lines (48 loc) · 1.82 KB
/
Event.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
46
47
48
49
50
import type { DeviceAddedEvent } from './DeviceAddedEvent'
import type { DeviceConfigurationChangedEvent } from './DeviceConfigurationChangedEvent'
import type { DeviceDiscoveredEvent } from './DeviceDiscoveredEvent'
import type { DeviceRemovedEvent } from './DeviceRemovedEvent'
import type { DeviceSetCreatedEvent } from './DeviceSetCreatedEvent'
import type { DeviceSetDeletedEvent } from './DeviceSetDeletedEvent'
import type { DeviceSetUpdatedEvent } from './DeviceSetUpdatedEvent'
import type { DeviceStateChangedEvent } from './DeviceStateChangedEvent'
import type { MusicUpdatedEvent } from './MusicUpdatedEvent'
import type { PingEvent } from './PingEvent'
import type { PongEvent } from './PongEvent'
import type { RoomCreatedEvent } from './RoomCreatedEvent'
import type { RoomDeletedEvent } from './RoomDeletedEvent'
import type { RoomUpdatedEvent } from './RoomUpdatedEvent'
import type { SceneCompletedEvent } from './SceneCompletedEvent'
import type { SceneCreatedEvent } from './SceneCreatedEvent'
import type { SceneDeletedEvent } from './SceneDeletedEvent'
import type { SceneTriggeredEvent } from './SceneTriggeredEvent'
import type { SceneUpdatedEvent } from './SceneUpdatedEvent'
import type { TerminationEvent } from './TerminationEvent'
export interface CommonEventProperties {
id: string
time: string
specversion: string
source: string
type: string
}
export type Event =
| DeviceAddedEvent
| DeviceConfigurationChangedEvent
| DeviceDiscoveredEvent
| DeviceRemovedEvent
| DeviceSetCreatedEvent
| DeviceSetDeletedEvent
| DeviceSetUpdatedEvent
| DeviceStateChangedEvent
| MusicUpdatedEvent
| PingEvent
| PongEvent
| RoomCreatedEvent
| RoomDeletedEvent
| RoomUpdatedEvent
| SceneCompletedEvent
| SceneCreatedEvent
| SceneDeletedEvent
| SceneTriggeredEvent
| SceneUpdatedEvent
| TerminationEvent