seamapi-types
Advanced tools
Comparing version 1.3.7 to 1.3.8
@@ -11,9 +11,9 @@ import { Except } from 'type-fest'; | ||
declare type DeviceConnectedEvent = CommonDeviceEvent<"device.connected">; | ||
declare type DeviceDisconnectEvent = CommonDeviceEvent<"devices.disconnected">; | ||
declare type DeviceTamperEvent = CommonDeviceEvent<"devices.tampered">; | ||
declare type DeviceLowBatteryEvent = CommonDeviceEvent<"devices.triggered_low_battery">; | ||
declare type CreateAccessCodeEvent = CommonDeviceEvent<"access_codes.created", { | ||
declare type DeviceDisconnectEvent = CommonDeviceEvent<"device.disconnected">; | ||
declare type DeviceTamperEvent = CommonDeviceEvent<"device.tampered">; | ||
declare type DeviceLowBatteryEvent = CommonDeviceEvent<"device.low_battery">; | ||
declare type CreateAccessCodeEvent = CommonDeviceEvent<"access_code.created", { | ||
access_code_id: string; | ||
}>; | ||
declare type NoiseDetectedEvent = CommonDeviceEvent<"noise_thresholds.detected_noise">; | ||
declare type NoiseDetectedEvent = CommonDeviceEvent<"noise_detection.detected_noise">; | ||
declare type SeamEvent = DeviceConnectedEvent | DeviceDisconnectEvent | DeviceTamperEvent | DeviceLowBatteryEvent | CreateAccessCodeEvent | NoiseDetectedEvent; | ||
@@ -20,0 +20,0 @@ |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"main": "dist/index.js", | ||
@@ -9,0 +9,0 @@ "types": "dist/index.d.ts", |
@@ -14,9 +14,9 @@ interface CommonDeviceEvent< | ||
type DeviceConnectedEvent = CommonDeviceEvent<"device.connected"> | ||
type DeviceDisconnectEvent = CommonDeviceEvent<"devices.disconnected"> | ||
type DeviceTamperEvent = CommonDeviceEvent<"devices.tampered"> | ||
type DeviceLowBatteryEvent = CommonDeviceEvent<"devices.triggered_low_battery"> | ||
type DeviceDisconnectEvent = CommonDeviceEvent<"device.disconnected"> | ||
type DeviceTamperEvent = CommonDeviceEvent<"device.tampered"> | ||
type DeviceLowBatteryEvent = CommonDeviceEvent<"device.low_battery"> | ||
// Access codes | ||
type CreateAccessCodeEvent = CommonDeviceEvent< | ||
"access_codes.created", | ||
"access_code.created", | ||
{ | ||
@@ -28,3 +28,3 @@ access_code_id: string | ||
// Noise thresholds | ||
type NoiseDetectedEvent = CommonDeviceEvent<"noise_thresholds.detected_noise"> | ||
type NoiseDetectedEvent = CommonDeviceEvent<"noise_detection.detected_noise"> | ||
@@ -31,0 +31,0 @@ export type SeamEvent = |
11347