All files / lib/device command.ts

100% Statements 52/52
100% Branches 2/2
100% Functions 1/1
100% Lines 52/52

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 51 52 53 54 55 561x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x 1x 1x    
export enum DeviceCommand {
  getPropertiesMetadata = "device.get_properties_metadata",
  getProperties = "device.get_properties",
  setProperty = "device.set_property",
  hasProperty = "device.has_property",
  startLivestream = "device.start_livestream",
  stopLivestream = "device.stop_livestream",
  isLiveStreaming = "device.is_livestreaming",
  triggerAlarm = "device.trigger_alarm",
  resetAlarm = "device.reset_alarm",
  panAndTilt = "device.pan_and_tilt",
  quickResponse = "device.quick_response",
  startDownload = "device.start_download",
  cancelDownload = "device.cancel_download",
  isDownloading = "device.is_downloading",
  getVoices = "device.get_voices",
  getCommands = "device.get_commands",
  hasCommand = "device.has_command",
  startRTSPLivestream = "device.start_rtsp_livestream",
  stopRTSPLivestream = "device.stop_rtsp_livestream",
  isRTSPLiveStreaming = "device.is_rtsp_livestreaming",
  calibrateLock = "device.calibrate_lock",
  calibrate = "device.calibrate",
  setDefaultAngle = "device.set_default_angle",
  setPrivacyAngle = "device.set_privacy_angle",
  unlock = "device.unlock",
  startTalkback = "device.start_talkback",
  stopTalkback = "device.stop_talkback",
  isTalkbackOngoing = "device.is_talkback_ongoing",
  talkbackAudioData = "device.talkback_audio_data",
  snooze = "device.snooze",
  addUser = "device.add_user",
  deleteUser = "device.delete_user",
  getUsers = "device.get_users",
  updateUserPasscode = "device.update_user_passcode",
  updateUserSchedule = "device.update_user_schedule",
  updateUser = "device.update_user",
  verifyPIN = "device.verify_pin",
  presetPosition = "device.preset_position",
  savePresetPosition = "device.save_preset_position",
  deletePresetPosition = "device.delete_preset_position",
  open = "device.open",
 
  // Deprecated - The following commands have been removed from schema version 13
  setStatusLed = "device.set_status_led",
  setAutoNightVision = "device.set_auto_night_vision",
  setMotionDetection = "device.set_motion_detection",
  setSoundDetection = "device.set_sound_detection",
  setPetDetection = "device.set_pet_detection",
  setRTSPStream = "device.set_rtsp_stream",
  setAntiTheftDetection = "device.set_anti_theft_detection",
  setWatermark = "device.set_watermark",
  enableDevice = "device.enable_device",
  lockDevice = "device.lock_device",
}