@zaber/motion 8.1.0 → 8.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (771) hide show
  1. package/LICENSE +86 -0
  2. package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
  3. package/dist/lib/ascii/alert_event.js +5 -5
  4. package/dist/lib/ascii/alert_event.js.map +1 -1
  5. package/dist/lib/ascii/axis.d.ts +1 -1
  6. package/dist/lib/ascii/axis.d.ts.map +1 -1
  7. package/dist/lib/ascii/axis.js.map +1 -1
  8. package/dist/lib/ascii/axis_identity.d.ts.map +1 -1
  9. package/dist/lib/ascii/axis_identity.js +7 -7
  10. package/dist/lib/ascii/axis_identity.js.map +1 -1
  11. package/dist/lib/ascii/can_set_state_axis_response.js +2 -2
  12. package/dist/lib/ascii/can_set_state_axis_response.js.map +1 -1
  13. package/dist/lib/ascii/can_set_state_device_response.js +2 -2
  14. package/dist/lib/ascii/can_set_state_device_response.js.map +1 -1
  15. package/dist/lib/ascii/connection.d.ts +15 -0
  16. package/dist/lib/ascii/connection.d.ts.map +1 -1
  17. package/dist/lib/ascii/connection.js +22 -1
  18. package/dist/lib/ascii/connection.js.map +1 -1
  19. package/dist/lib/ascii/conversion_factor.js +3 -3
  20. package/dist/lib/ascii/conversion_factor.js.map +1 -1
  21. package/dist/lib/ascii/device_identity.js +6 -6
  22. package/dist/lib/ascii/device_identity.js.map +1 -1
  23. package/dist/lib/ascii/device_io_info.js +4 -4
  24. package/dist/lib/ascii/device_io_info.js.map +1 -1
  25. package/dist/lib/ascii/get_axis_setting.js +2 -2
  26. package/dist/lib/ascii/get_axis_setting.js.map +1 -1
  27. package/dist/lib/ascii/get_axis_setting_result.js +3 -3
  28. package/dist/lib/ascii/get_axis_setting_result.js.map +1 -1
  29. package/dist/lib/ascii/get_setting.js +3 -3
  30. package/dist/lib/ascii/get_setting.js.map +1 -1
  31. package/dist/lib/ascii/get_setting_result.js +3 -3
  32. package/dist/lib/ascii/get_setting_result.js.map +1 -1
  33. package/dist/lib/ascii/index.d.ts +2 -1
  34. package/dist/lib/ascii/index.d.ts.map +1 -1
  35. package/dist/lib/ascii/index.js +2 -1
  36. package/dist/lib/ascii/index.js.map +1 -1
  37. package/dist/lib/ascii/io_port_label.d.ts.map +1 -1
  38. package/dist/lib/ascii/io_port_label.js +3 -3
  39. package/dist/lib/ascii/io_port_label.js.map +1 -1
  40. package/dist/lib/ascii/measurement_sequence.js +2 -2
  41. package/dist/lib/ascii/measurement_sequence.js.map +1 -1
  42. package/dist/lib/ascii/mock_device.d.ts +37 -0
  43. package/dist/lib/ascii/mock_device.d.ts.map +1 -0
  44. package/dist/lib/ascii/mock_device.js +52 -0
  45. package/dist/lib/ascii/mock_device.js.map +1 -0
  46. package/dist/lib/ascii/mock_peripheral.d.ts +27 -0
  47. package/dist/lib/ascii/mock_peripheral.d.ts.map +1 -0
  48. package/dist/lib/ascii/mock_peripheral.js +42 -0
  49. package/dist/lib/ascii/mock_peripheral.js.map +1 -0
  50. package/dist/lib/ascii/optional_measurement_sequence.js +2 -2
  51. package/dist/lib/ascii/optional_measurement_sequence.js.map +1 -1
  52. package/dist/lib/ascii/oscilloscope_capture_properties.d.ts.map +1 -1
  53. package/dist/lib/ascii/oscilloscope_capture_properties.js +5 -5
  54. package/dist/lib/ascii/oscilloscope_capture_properties.js.map +1 -1
  55. package/dist/lib/ascii/paramset_info.js +3 -3
  56. package/dist/lib/ascii/paramset_info.js.map +1 -1
  57. package/dist/lib/ascii/pid_tuning.js +6 -6
  58. package/dist/lib/ascii/pid_tuning.js.map +1 -1
  59. package/dist/lib/ascii/pvt_axis_definition.d.ts.map +1 -1
  60. package/dist/lib/ascii/pvt_axis_definition.js +2 -2
  61. package/dist/lib/ascii/pvt_axis_definition.js.map +1 -1
  62. package/dist/lib/ascii/pvt_csv_data.js +1 -1
  63. package/dist/lib/ascii/pvt_csv_data.js.map +1 -1
  64. package/dist/lib/ascii/pvt_sequence_data.js +2 -2
  65. package/dist/lib/ascii/pvt_sequence_data.js.map +1 -1
  66. package/dist/lib/ascii/response.d.ts.map +1 -1
  67. package/dist/lib/ascii/response.js +7 -7
  68. package/dist/lib/ascii/response.js.map +1 -1
  69. package/dist/lib/ascii/servo_tuning_param.js +2 -2
  70. package/dist/lib/ascii/servo_tuning_param.js.map +1 -1
  71. package/dist/lib/ascii/set_state_axis_response.js +2 -2
  72. package/dist/lib/ascii/set_state_axis_response.js.map +1 -1
  73. package/dist/lib/ascii/set_state_device_response.js +2 -2
  74. package/dist/lib/ascii/set_state_device_response.js.map +1 -1
  75. package/dist/lib/ascii/simple_tuning.js +6 -6
  76. package/dist/lib/ascii/simple_tuning.js.map +1 -1
  77. package/dist/lib/ascii/simple_tuning_param_definition.js +5 -5
  78. package/dist/lib/ascii/simple_tuning_param_definition.js.map +1 -1
  79. package/dist/lib/ascii/stream_axis_definition.d.ts.map +1 -1
  80. package/dist/lib/ascii/stream_axis_definition.js +2 -2
  81. package/dist/lib/ascii/stream_axis_definition.js.map +1 -1
  82. package/dist/lib/ascii/trigger_enabled_state.js +2 -2
  83. package/dist/lib/ascii/trigger_enabled_state.js.map +1 -1
  84. package/dist/lib/ascii/trigger_state.js +5 -5
  85. package/dist/lib/ascii/trigger_state.js.map +1 -1
  86. package/dist/lib/ascii/unknown_response_event.d.ts.map +1 -1
  87. package/dist/lib/ascii/unknown_response_event.js +7 -7
  88. package/dist/lib/ascii/unknown_response_event.js.map +1 -1
  89. package/dist/lib/axis_address.js +2 -2
  90. package/dist/lib/axis_address.js.map +1 -1
  91. package/dist/lib/binary/device_identity.d.ts.map +1 -1
  92. package/dist/lib/binary/device_identity.js +7 -7
  93. package/dist/lib/binary/device_identity.js.map +1 -1
  94. package/dist/lib/binary/message.js +3 -3
  95. package/dist/lib/binary/message.js.map +1 -1
  96. package/dist/lib/binary/reply_only_event.js +3 -3
  97. package/dist/lib/binary/reply_only_event.js.map +1 -1
  98. package/dist/lib/binary/unknown_response_event.js +3 -3
  99. package/dist/lib/binary/unknown_response_event.js.map +1 -1
  100. package/dist/lib/channel_address.js +2 -2
  101. package/dist/lib/channel_address.js.map +1 -1
  102. package/dist/lib/cyclic_direction.d.ts.map +1 -0
  103. package/dist/lib/cyclic_direction.js.map +1 -0
  104. package/dist/lib/device_db_source.d.ts.map +1 -1
  105. package/dist/lib/device_db_source.js +2 -2
  106. package/dist/lib/device_db_source.js.map +1 -1
  107. package/dist/lib/device_discovery_result.d.ts +40 -0
  108. package/dist/lib/device_discovery_result.d.ts.map +1 -0
  109. package/dist/lib/device_discovery_result.js +55 -0
  110. package/dist/lib/device_discovery_result.js.map +1 -0
  111. package/dist/lib/device_port_type.d.ts +15 -0
  112. package/dist/lib/device_port_type.d.ts.map +1 -0
  113. package/dist/lib/device_port_type.js +23 -0
  114. package/dist/lib/device_port_type.js.map +1 -0
  115. package/dist/lib/exceptions/binary_command_failed_exception_data.js +1 -1
  116. package/dist/lib/exceptions/binary_command_failed_exception_data.js.map +1 -1
  117. package/dist/lib/exceptions/command_failed_exception_data.js +8 -8
  118. package/dist/lib/exceptions/command_failed_exception_data.js.map +1 -1
  119. package/dist/lib/exceptions/command_too_long_exception_data.js +4 -4
  120. package/dist/lib/exceptions/command_too_long_exception_data.js.map +1 -1
  121. package/dist/lib/exceptions/device_address_conflict_exception_data.js +1 -1
  122. package/dist/lib/exceptions/device_address_conflict_exception_data.js.map +1 -1
  123. package/dist/lib/exceptions/device_db_failed_exception_data.js +2 -2
  124. package/dist/lib/exceptions/device_db_failed_exception_data.js.map +1 -1
  125. package/dist/lib/exceptions/device_db_inner_error.d.ts.map +1 -1
  126. package/dist/lib/exceptions/device_db_inner_error.js +4 -4
  127. package/dist/lib/exceptions/device_db_inner_error.js.map +1 -1
  128. package/dist/lib/exceptions/g_code_execution_exception_data.js +2 -2
  129. package/dist/lib/exceptions/g_code_execution_exception_data.js.map +1 -1
  130. package/dist/lib/exceptions/g_code_syntax_exception_data.js +2 -2
  131. package/dist/lib/exceptions/g_code_syntax_exception_data.js.map +1 -1
  132. package/dist/lib/exceptions/invalid_packet_exception_data.js +2 -2
  133. package/dist/lib/exceptions/invalid_packet_exception_data.js.map +1 -1
  134. package/dist/lib/exceptions/invalid_pvt_point.js +2 -2
  135. package/dist/lib/exceptions/invalid_pvt_point.js.map +1 -1
  136. package/dist/lib/exceptions/invalid_response_exception_data.js +1 -1
  137. package/dist/lib/exceptions/invalid_response_exception_data.js.map +1 -1
  138. package/dist/lib/exceptions/movement_failed_exception_data.js +4 -4
  139. package/dist/lib/exceptions/movement_failed_exception_data.js.map +1 -1
  140. package/dist/lib/exceptions/movement_interrupted_exception_data.js +4 -4
  141. package/dist/lib/exceptions/movement_interrupted_exception_data.js.map +1 -1
  142. package/dist/lib/exceptions/operation_failed_exception_data.js +4 -4
  143. package/dist/lib/exceptions/operation_failed_exception_data.js.map +1 -1
  144. package/dist/lib/exceptions/pvt_execution_exception_data.js +3 -3
  145. package/dist/lib/exceptions/pvt_execution_exception_data.js.map +1 -1
  146. package/dist/lib/exceptions/pvt_movement_failed_exception_data.js +2 -2
  147. package/dist/lib/exceptions/pvt_movement_failed_exception_data.js.map +1 -1
  148. package/dist/lib/exceptions/pvt_movement_interrupted_exception_data.js +2 -2
  149. package/dist/lib/exceptions/pvt_movement_interrupted_exception_data.js.map +1 -1
  150. package/dist/lib/exceptions/set_device_state_exception_data.js +8 -8
  151. package/dist/lib/exceptions/set_device_state_exception_data.js.map +1 -1
  152. package/dist/lib/exceptions/set_peripheral_state_exception_data.js +5 -5
  153. package/dist/lib/exceptions/set_peripheral_state_exception_data.js.map +1 -1
  154. package/dist/lib/exceptions/stream_execution_exception_data.js +2 -2
  155. package/dist/lib/exceptions/stream_execution_exception_data.js.map +1 -1
  156. package/dist/lib/exceptions/stream_movement_failed_exception_data.js +2 -2
  157. package/dist/lib/exceptions/stream_movement_failed_exception_data.js.map +1 -1
  158. package/dist/lib/exceptions/stream_movement_interrupted_exception_data.js +2 -2
  159. package/dist/lib/exceptions/stream_movement_interrupted_exception_data.js.map +1 -1
  160. package/dist/lib/firmware_version.js +3 -3
  161. package/dist/lib/firmware_version.js.map +1 -1
  162. package/dist/lib/gateway/sanitizer.d.ts +7 -0
  163. package/dist/lib/gateway/sanitizer.d.ts.map +1 -1
  164. package/dist/lib/gateway/sanitizer.js +23 -0
  165. package/dist/lib/gateway/sanitizer.js.map +1 -1
  166. package/dist/lib/gcode/axis_definition.js +2 -2
  167. package/dist/lib/gcode/axis_definition.js.map +1 -1
  168. package/dist/lib/gcode/axis_mapping.js +2 -2
  169. package/dist/lib/gcode/axis_mapping.js.map +1 -1
  170. package/dist/lib/gcode/axis_transformation.js +3 -3
  171. package/dist/lib/gcode/axis_transformation.js.map +1 -1
  172. package/dist/lib/gcode/device_definition.js +2 -2
  173. package/dist/lib/gcode/device_definition.js.map +1 -1
  174. package/dist/lib/gcode/translate_message.js +3 -3
  175. package/dist/lib/gcode/translate_message.js.map +1 -1
  176. package/dist/lib/gcode/translate_result.js +2 -2
  177. package/dist/lib/gcode/translate_result.js.map +1 -1
  178. package/dist/lib/gcode/translator_config.js +2 -2
  179. package/dist/lib/gcode/translator_config.js.map +1 -1
  180. package/dist/lib/index.d.ts +3 -0
  181. package/dist/lib/index.d.ts.map +1 -1
  182. package/dist/lib/index.js +3 -0
  183. package/dist/lib/index.js.map +1 -1
  184. package/dist/lib/library.d.ts +5 -0
  185. package/dist/lib/library.d.ts.map +1 -1
  186. package/dist/lib/library.js +15 -1
  187. package/dist/lib/library.js.map +1 -1
  188. package/dist/lib/measurement.js +2 -2
  189. package/dist/lib/measurement.js.map +1 -1
  190. package/dist/lib/microscopy/autofocus_status.js +2 -2
  191. package/dist/lib/microscopy/autofocus_status.js.map +1 -1
  192. package/dist/lib/microscopy/microscope_config.js +8 -8
  193. package/dist/lib/microscopy/microscope_config.js.map +1 -1
  194. package/dist/lib/microscopy/third_party_components.js +1 -1
  195. package/dist/lib/microscopy/third_party_components.js.map +1 -1
  196. package/dist/lib/microscopy/wdi_autofocus_provider_status.js +2 -2
  197. package/dist/lib/microscopy/wdi_autofocus_provider_status.js.map +1 -1
  198. package/dist/lib/named_parameter.js +2 -2
  199. package/dist/lib/named_parameter.js.map +1 -1
  200. package/dist/lib/product/process_controller_source.d.ts.map +1 -1
  201. package/dist/lib/product/process_controller_source.js +2 -2
  202. package/dist/lib/product/process_controller_source.js.map +1 -1
  203. package/dist/lib/requests/alert_event_wrapper.js +2 -2
  204. package/dist/lib/requests/alert_event_wrapper.js.map +1 -1
  205. package/dist/lib/requests/autofocus_focus_request.js +8 -8
  206. package/dist/lib/requests/autofocus_focus_request.js.map +1 -1
  207. package/dist/lib/requests/autofocus_get_objective_params_request.js +6 -6
  208. package/dist/lib/requests/autofocus_get_objective_params_request.js.map +1 -1
  209. package/dist/lib/requests/autofocus_get_objective_params_response.js +1 -1
  210. package/dist/lib/requests/autofocus_get_objective_params_response.js.map +1 -1
  211. package/dist/lib/requests/autofocus_set_objective_params_request.js +7 -7
  212. package/dist/lib/requests/autofocus_set_objective_params_request.js.map +1 -1
  213. package/dist/lib/requests/axes_empty_request.js +3 -3
  214. package/dist/lib/requests/axes_empty_request.js.map +1 -1
  215. package/dist/lib/requests/axes_get_setting_request.js +5 -5
  216. package/dist/lib/requests/axes_get_setting_request.js.map +1 -1
  217. package/dist/lib/requests/axes_move_request.js +4 -4
  218. package/dist/lib/requests/axes_move_request.js.map +1 -1
  219. package/dist/lib/requests/axis_empty_request.js +3 -3
  220. package/dist/lib/requests/axis_empty_request.js.map +1 -1
  221. package/dist/lib/requests/axis_to_string_request.js +4 -4
  222. package/dist/lib/requests/axis_to_string_request.js.map +1 -1
  223. package/dist/lib/requests/binary_device_detect_request.js +2 -2
  224. package/dist/lib/requests/binary_device_detect_request.js.map +1 -1
  225. package/dist/lib/requests/binary_device_detect_response.js +1 -1
  226. package/dist/lib/requests/binary_device_detect_response.js.map +1 -1
  227. package/dist/lib/requests/binary_device_get_setting_request.d.ts.map +1 -1
  228. package/dist/lib/requests/binary_device_get_setting_request.js +4 -4
  229. package/dist/lib/requests/binary_device_get_setting_request.js.map +1 -1
  230. package/dist/lib/requests/binary_device_home_request.js +4 -4
  231. package/dist/lib/requests/binary_device_home_request.js.map +1 -1
  232. package/dist/lib/requests/binary_device_move_request.d.ts.map +1 -1
  233. package/dist/lib/requests/binary_device_move_request.js +6 -6
  234. package/dist/lib/requests/binary_device_move_request.js.map +1 -1
  235. package/dist/lib/requests/binary_device_set_setting_request.d.ts.map +1 -1
  236. package/dist/lib/requests/binary_device_set_setting_request.js +5 -5
  237. package/dist/lib/requests/binary_device_set_setting_request.js.map +1 -1
  238. package/dist/lib/requests/binary_device_stop_request.js +4 -4
  239. package/dist/lib/requests/binary_device_stop_request.js.map +1 -1
  240. package/dist/lib/requests/binary_generic_with_units_request.d.ts.map +1 -1
  241. package/dist/lib/requests/binary_generic_with_units_request.js +7 -7
  242. package/dist/lib/requests/binary_generic_with_units_request.js.map +1 -1
  243. package/dist/lib/requests/binary_message_collection.js +1 -1
  244. package/dist/lib/requests/binary_message_collection.js.map +1 -1
  245. package/dist/lib/requests/binary_reply_only_event_wrapper.js +2 -2
  246. package/dist/lib/requests/binary_reply_only_event_wrapper.js.map +1 -1
  247. package/dist/lib/requests/bool_response.js +1 -1
  248. package/dist/lib/requests/bool_response.js.map +1 -1
  249. package/dist/lib/requests/can_set_state_axis_response.js +2 -2
  250. package/dist/lib/requests/can_set_state_axis_response.js.map +1 -1
  251. package/dist/lib/requests/can_set_state_request.js +5 -5
  252. package/dist/lib/requests/can_set_state_request.js.map +1 -1
  253. package/dist/lib/requests/channel_on.js +5 -5
  254. package/dist/lib/requests/channel_on.js.map +1 -1
  255. package/dist/lib/requests/channel_set_intensity.js +4 -4
  256. package/dist/lib/requests/channel_set_intensity.js.map +1 -1
  257. package/dist/lib/requests/check_version_request.js +2 -2
  258. package/dist/lib/requests/check_version_request.js.map +1 -1
  259. package/dist/lib/requests/custom_interface_close_request.js +2 -2
  260. package/dist/lib/requests/custom_interface_close_request.js.map +1 -1
  261. package/dist/lib/requests/custom_interface_open_response.js +1 -1
  262. package/dist/lib/requests/custom_interface_open_response.js.map +1 -1
  263. package/dist/lib/requests/custom_interface_read_request.js +1 -1
  264. package/dist/lib/requests/custom_interface_read_request.js.map +1 -1
  265. package/dist/lib/requests/custom_interface_write_request.js +2 -2
  266. package/dist/lib/requests/custom_interface_write_request.js.map +1 -1
  267. package/dist/lib/requests/device_cancel_all_outputs_schedule_request.js +4 -4
  268. package/dist/lib/requests/device_cancel_all_outputs_schedule_request.js.map +1 -1
  269. package/dist/lib/requests/device_cancel_output_schedule_request.js +4 -4
  270. package/dist/lib/requests/device_cancel_output_schedule_request.js.map +1 -1
  271. package/dist/lib/requests/device_convert_setting_request.js +7 -7
  272. package/dist/lib/requests/device_convert_setting_request.js.map +1 -1
  273. package/dist/lib/requests/device_detect_request.d.ts.map +1 -1
  274. package/dist/lib/requests/device_detect_request.js +3 -3
  275. package/dist/lib/requests/device_detect_request.js.map +1 -1
  276. package/dist/lib/requests/device_detect_response.js +1 -1
  277. package/dist/lib/requests/device_detect_response.js.map +1 -1
  278. package/dist/lib/requests/device_empty_request.js +2 -2
  279. package/dist/lib/requests/device_empty_request.js.map +1 -1
  280. package/dist/lib/requests/device_get_all_analog_io_request.js +3 -3
  281. package/dist/lib/requests/device_get_all_analog_io_request.js.map +1 -1
  282. package/dist/lib/requests/device_get_all_analog_io_response.js +1 -1
  283. package/dist/lib/requests/device_get_all_analog_io_response.js.map +1 -1
  284. package/dist/lib/requests/device_get_all_digital_io_request.js +3 -3
  285. package/dist/lib/requests/device_get_all_digital_io_request.js.map +1 -1
  286. package/dist/lib/requests/device_get_all_digital_io_response.js +1 -1
  287. package/dist/lib/requests/device_get_all_digital_io_response.js.map +1 -1
  288. package/dist/lib/requests/device_get_analog_io_request.js +4 -4
  289. package/dist/lib/requests/device_get_analog_io_request.js.map +1 -1
  290. package/dist/lib/requests/device_get_digital_io_request.js +4 -4
  291. package/dist/lib/requests/device_get_digital_io_request.js.map +1 -1
  292. package/dist/lib/requests/device_get_setting_request.js +5 -5
  293. package/dist/lib/requests/device_get_setting_request.js.map +1 -1
  294. package/dist/lib/requests/device_get_storage_request.js +5 -5
  295. package/dist/lib/requests/device_get_storage_request.js.map +1 -1
  296. package/dist/lib/requests/device_get_warnings_request.js +4 -4
  297. package/dist/lib/requests/device_get_warnings_request.js.map +1 -1
  298. package/dist/lib/requests/device_get_warnings_response.js +1 -1
  299. package/dist/lib/requests/device_get_warnings_response.js.map +1 -1
  300. package/dist/lib/requests/device_home_request.js +4 -4
  301. package/dist/lib/requests/device_home_request.js.map +1 -1
  302. package/dist/lib/requests/device_identify_request.js +3 -3
  303. package/dist/lib/requests/device_identify_request.js.map +1 -1
  304. package/dist/lib/requests/device_move_request.d.ts +1 -1
  305. package/dist/lib/requests/device_move_request.d.ts.map +1 -1
  306. package/dist/lib/requests/device_move_request.js +15 -15
  307. package/dist/lib/requests/device_move_request.js.map +1 -1
  308. package/dist/lib/requests/device_move_sin_request.js +9 -9
  309. package/dist/lib/requests/device_move_sin_request.js.map +1 -1
  310. package/dist/lib/requests/device_multi_get_setting_request.js +5 -5
  311. package/dist/lib/requests/device_multi_get_setting_request.js.map +1 -1
  312. package/dist/lib/requests/device_on_all_request.js +2 -2
  313. package/dist/lib/requests/device_on_all_request.js.map +1 -1
  314. package/dist/lib/requests/device_on_all_response.js +1 -1
  315. package/dist/lib/requests/device_on_all_response.js.map +1 -1
  316. package/dist/lib/requests/device_restore_request.js +4 -4
  317. package/dist/lib/requests/device_restore_request.js.map +1 -1
  318. package/dist/lib/requests/device_set_all_analog_outputs_request.js +3 -3
  319. package/dist/lib/requests/device_set_all_analog_outputs_request.js.map +1 -1
  320. package/dist/lib/requests/device_set_all_analog_outputs_schedule_request.js +6 -6
  321. package/dist/lib/requests/device_set_all_analog_outputs_schedule_request.js.map +1 -1
  322. package/dist/lib/requests/device_set_all_digital_outputs_request.d.ts.map +1 -1
  323. package/dist/lib/requests/device_set_all_digital_outputs_request.js +3 -3
  324. package/dist/lib/requests/device_set_all_digital_outputs_request.js.map +1 -1
  325. package/dist/lib/requests/device_set_all_digital_outputs_schedule_request.d.ts.map +1 -1
  326. package/dist/lib/requests/device_set_all_digital_outputs_schedule_request.js +6 -6
  327. package/dist/lib/requests/device_set_all_digital_outputs_schedule_request.js.map +1 -1
  328. package/dist/lib/requests/device_set_analog_output_request.js +4 -4
  329. package/dist/lib/requests/device_set_analog_output_request.js.map +1 -1
  330. package/dist/lib/requests/device_set_analog_output_schedule_request.js +7 -7
  331. package/dist/lib/requests/device_set_analog_output_schedule_request.js.map +1 -1
  332. package/dist/lib/requests/device_set_digital_output_request.d.ts.map +1 -1
  333. package/dist/lib/requests/device_set_digital_output_request.js +4 -4
  334. package/dist/lib/requests/device_set_digital_output_request.js.map +1 -1
  335. package/dist/lib/requests/device_set_digital_output_schedule_request.d.ts.map +1 -1
  336. package/dist/lib/requests/device_set_digital_output_schedule_request.js +7 -7
  337. package/dist/lib/requests/device_set_digital_output_schedule_request.js.map +1 -1
  338. package/dist/lib/requests/device_set_lowpass_filter_request.js +5 -5
  339. package/dist/lib/requests/device_set_lowpass_filter_request.js.map +1 -1
  340. package/dist/lib/requests/device_set_setting_bool_request.js +5 -5
  341. package/dist/lib/requests/device_set_setting_bool_request.js.map +1 -1
  342. package/dist/lib/requests/device_set_setting_int_request.js +5 -5
  343. package/dist/lib/requests/device_set_setting_int_request.js.map +1 -1
  344. package/dist/lib/requests/device_set_setting_request.js +6 -6
  345. package/dist/lib/requests/device_set_setting_request.js.map +1 -1
  346. package/dist/lib/requests/device_set_setting_str_request.js +5 -5
  347. package/dist/lib/requests/device_set_setting_str_request.js.map +1 -1
  348. package/dist/lib/requests/device_set_storage_bool_request.js +5 -5
  349. package/dist/lib/requests/device_set_storage_bool_request.js.map +1 -1
  350. package/dist/lib/requests/device_set_storage_number_request.js +5 -5
  351. package/dist/lib/requests/device_set_storage_number_request.js.map +1 -1
  352. package/dist/lib/requests/device_set_storage_request.js +6 -6
  353. package/dist/lib/requests/device_set_storage_request.js.map +1 -1
  354. package/dist/lib/requests/device_set_unit_conversions_request.js +5 -5
  355. package/dist/lib/requests/device_set_unit_conversions_request.js.map +1 -1
  356. package/dist/lib/requests/device_stop_request.js +4 -4
  357. package/dist/lib/requests/device_stop_request.js.map +1 -1
  358. package/dist/lib/requests/device_storage_list_keys_request.js +4 -4
  359. package/dist/lib/requests/device_storage_list_keys_request.js.map +1 -1
  360. package/dist/lib/requests/device_storage_request.js +4 -4
  361. package/dist/lib/requests/device_storage_request.js.map +1 -1
  362. package/dist/lib/requests/device_wait_until_idle_request.js +4 -4
  363. package/dist/lib/requests/device_wait_until_idle_request.js.map +1 -1
  364. package/dist/lib/requests/disconnected_event.d.ts.map +1 -1
  365. package/dist/lib/requests/disconnected_event.js +4 -4
  366. package/dist/lib/requests/disconnected_event.js.map +1 -1
  367. package/dist/lib/requests/discover_mdns_request.d.ts +14 -0
  368. package/dist/lib/requests/discover_mdns_request.d.ts.map +1 -0
  369. package/dist/lib/requests/discover_mdns_request.js +38 -0
  370. package/dist/lib/requests/discover_mdns_request.js.map +1 -0
  371. package/dist/lib/requests/discover_tcp_devices_response.d.ts +14 -0
  372. package/dist/lib/requests/discover_tcp_devices_response.d.ts.map +1 -0
  373. package/dist/lib/requests/discover_tcp_devices_response.js +34 -0
  374. package/dist/lib/requests/discover_tcp_devices_response.js.map +1 -0
  375. package/dist/lib/requests/double_array_response.js +1 -1
  376. package/dist/lib/requests/double_array_response.js.map +1 -1
  377. package/dist/lib/requests/double_response.js +1 -1
  378. package/dist/lib/requests/double_response.js.map +1 -1
  379. package/dist/lib/requests/driver_enable_request.js +4 -4
  380. package/dist/lib/requests/driver_enable_request.js.map +1 -1
  381. package/dist/lib/requests/empty_autofocus_request.js +5 -5
  382. package/dist/lib/requests/empty_autofocus_request.js.map +1 -1
  383. package/dist/lib/requests/find_device_request.js +2 -2
  384. package/dist/lib/requests/find_device_request.js.map +1 -1
  385. package/dist/lib/requests/find_device_response.js +1 -1
  386. package/dist/lib/requests/find_device_response.js.map +1 -1
  387. package/dist/lib/requests/forget_devices_request.js +2 -2
  388. package/dist/lib/requests/forget_devices_request.js.map +1 -1
  389. package/dist/lib/requests/gateway_event.js +1 -1
  390. package/dist/lib/requests/gateway_event.js.map +1 -1
  391. package/dist/lib/requests/gateway_request.js +1 -1
  392. package/dist/lib/requests/gateway_request.js.map +1 -1
  393. package/dist/lib/requests/gateway_response.d.ts.map +1 -1
  394. package/dist/lib/requests/gateway_response.js +3 -3
  395. package/dist/lib/requests/gateway_response.js.map +1 -1
  396. package/dist/lib/requests/generic_binary_request.d.ts.map +1 -1
  397. package/dist/lib/requests/generic_binary_request.js +6 -6
  398. package/dist/lib/requests/generic_binary_request.js.map +1 -1
  399. package/dist/lib/requests/generic_command_request.js +6 -6
  400. package/dist/lib/requests/generic_command_request.js.map +1 -1
  401. package/dist/lib/requests/generic_command_response_collection.js +1 -1
  402. package/dist/lib/requests/generic_command_response_collection.js.map +1 -1
  403. package/dist/lib/requests/get_all_io_port_labels_response.js +1 -1
  404. package/dist/lib/requests/get_all_io_port_labels_response.js.map +1 -1
  405. package/dist/lib/requests/get_axis_setting_results.js +1 -1
  406. package/dist/lib/requests/get_axis_setting_results.js.map +1 -1
  407. package/dist/lib/requests/get_command_unit_conversion_response.js +1 -1
  408. package/dist/lib/requests/get_command_unit_conversion_response.js.map +1 -1
  409. package/dist/lib/requests/get_io_port_label_request.d.ts.map +1 -1
  410. package/dist/lib/requests/get_io_port_label_request.js +4 -4
  411. package/dist/lib/requests/get_io_port_label_request.js.map +1 -1
  412. package/dist/lib/requests/get_setting_results.js +1 -1
  413. package/dist/lib/requests/get_setting_results.js.map +1 -1
  414. package/dist/lib/requests/get_simple_tuning_param_definition_response.js +1 -1
  415. package/dist/lib/requests/get_simple_tuning_param_definition_response.js.map +1 -1
  416. package/dist/lib/requests/index.d.ts +2 -0
  417. package/dist/lib/requests/index.d.ts.map +1 -1
  418. package/dist/lib/requests/index.js +2 -0
  419. package/dist/lib/requests/index.js.map +1 -1
  420. package/dist/lib/requests/int_64_response.js +1 -1
  421. package/dist/lib/requests/int_64_response.js.map +1 -1
  422. package/dist/lib/requests/int_array_response.js +1 -1
  423. package/dist/lib/requests/int_array_response.js.map +1 -1
  424. package/dist/lib/requests/int_request.js +1 -1
  425. package/dist/lib/requests/int_request.js.map +1 -1
  426. package/dist/lib/requests/int_response.js +1 -1
  427. package/dist/lib/requests/int_response.js.map +1 -1
  428. package/dist/lib/requests/interface_empty_request.js +1 -1
  429. package/dist/lib/requests/interface_empty_request.js.map +1 -1
  430. package/dist/lib/requests/interface_type.d.ts +3 -1
  431. package/dist/lib/requests/interface_type.d.ts.map +1 -1
  432. package/dist/lib/requests/interface_type.js +2 -0
  433. package/dist/lib/requests/interface_type.js.map +1 -1
  434. package/dist/lib/requests/load_paramset.d.ts.map +1 -1
  435. package/dist/lib/requests/load_paramset.js +5 -5
  436. package/dist/lib/requests/load_paramset.js.map +1 -1
  437. package/dist/lib/requests/lockstep_disable_request.js +4 -4
  438. package/dist/lib/requests/lockstep_disable_request.js.map +1 -1
  439. package/dist/lib/requests/lockstep_empty_request.js +3 -3
  440. package/dist/lib/requests/lockstep_empty_request.js.map +1 -1
  441. package/dist/lib/requests/lockstep_enable_request.js +4 -4
  442. package/dist/lib/requests/lockstep_enable_request.js.map +1 -1
  443. package/dist/lib/requests/lockstep_get_axis_numbers_response.js +1 -1
  444. package/dist/lib/requests/lockstep_get_axis_numbers_response.js.map +1 -1
  445. package/dist/lib/requests/lockstep_get_request.js +4 -4
  446. package/dist/lib/requests/lockstep_get_request.js.map +1 -1
  447. package/dist/lib/requests/lockstep_home_request.js +4 -4
  448. package/dist/lib/requests/lockstep_home_request.js.map +1 -1
  449. package/dist/lib/requests/lockstep_move_request.d.ts.map +1 -1
  450. package/dist/lib/requests/lockstep_move_request.js +11 -11
  451. package/dist/lib/requests/lockstep_move_request.js.map +1 -1
  452. package/dist/lib/requests/lockstep_move_sin_request.js +9 -9
  453. package/dist/lib/requests/lockstep_move_sin_request.js.map +1 -1
  454. package/dist/lib/requests/lockstep_set_request.js +6 -6
  455. package/dist/lib/requests/lockstep_set_request.js.map +1 -1
  456. package/dist/lib/requests/lockstep_stop_request.js +4 -4
  457. package/dist/lib/requests/lockstep_stop_request.js.map +1 -1
  458. package/dist/lib/requests/lockstep_wait_until_idle_request.js +4 -4
  459. package/dist/lib/requests/lockstep_wait_until_idle_request.js.map +1 -1
  460. package/dist/lib/requests/microscope_empty_request.js +1 -1
  461. package/dist/lib/requests/microscope_empty_request.js.map +1 -1
  462. package/dist/lib/requests/microscope_find_request.js +2 -2
  463. package/dist/lib/requests/microscope_find_request.js.map +1 -1
  464. package/dist/lib/requests/microscope_init_request.js +2 -2
  465. package/dist/lib/requests/microscope_init_request.js.map +1 -1
  466. package/dist/lib/requests/microscope_trigger_camera_request.js +6 -6
  467. package/dist/lib/requests/microscope_trigger_camera_request.js.map +1 -1
  468. package/dist/lib/requests/objective_changer_change_request.js +6 -6
  469. package/dist/lib/requests/objective_changer_change_request.js.map +1 -1
  470. package/dist/lib/requests/objective_changer_create_response.js +3 -3
  471. package/dist/lib/requests/objective_changer_create_response.js.map +1 -1
  472. package/dist/lib/requests/objective_changer_get_current_response.js +1 -1
  473. package/dist/lib/requests/objective_changer_get_current_response.js.map +1 -1
  474. package/dist/lib/requests/objective_changer_request.js +4 -4
  475. package/dist/lib/requests/objective_changer_request.js.map +1 -1
  476. package/dist/lib/requests/objective_changer_set_request.js +6 -6
  477. package/dist/lib/requests/objective_changer_set_request.js.map +1 -1
  478. package/dist/lib/requests/open_binary_interface_request.d.ts.map +1 -1
  479. package/dist/lib/requests/open_binary_interface_request.js +6 -6
  480. package/dist/lib/requests/open_binary_interface_request.js.map +1 -1
  481. package/dist/lib/requests/open_interface_request.d.ts +3 -0
  482. package/dist/lib/requests/open_interface_request.d.ts.map +1 -1
  483. package/dist/lib/requests/open_interface_request.js +21 -12
  484. package/dist/lib/requests/open_interface_request.js.map +1 -1
  485. package/dist/lib/requests/open_interface_response.js +1 -1
  486. package/dist/lib/requests/open_interface_response.js.map +1 -1
  487. package/dist/lib/requests/oscilloscope_add_io_channel_request.d.ts.map +1 -1
  488. package/dist/lib/requests/oscilloscope_add_io_channel_request.js +4 -4
  489. package/dist/lib/requests/oscilloscope_add_io_channel_request.js.map +1 -1
  490. package/dist/lib/requests/oscilloscope_add_setting_channel_request.js +4 -4
  491. package/dist/lib/requests/oscilloscope_add_setting_channel_request.js.map +1 -1
  492. package/dist/lib/requests/oscilloscope_data_get_request.js +2 -2
  493. package/dist/lib/requests/oscilloscope_data_get_request.js.map +1 -1
  494. package/dist/lib/requests/oscilloscope_data_get_sample_time_request.js +3 -3
  495. package/dist/lib/requests/oscilloscope_data_get_sample_time_request.js.map +1 -1
  496. package/dist/lib/requests/oscilloscope_data_get_samples_response.js +1 -1
  497. package/dist/lib/requests/oscilloscope_data_get_samples_response.js.map +1 -1
  498. package/dist/lib/requests/oscilloscope_data_identifier.js +1 -1
  499. package/dist/lib/requests/oscilloscope_data_identifier.js.map +1 -1
  500. package/dist/lib/requests/oscilloscope_read_response.js +1 -1
  501. package/dist/lib/requests/oscilloscope_read_response.js.map +1 -1
  502. package/dist/lib/requests/oscilloscope_request.js +2 -2
  503. package/dist/lib/requests/oscilloscope_request.js.map +1 -1
  504. package/dist/lib/requests/oscilloscope_start_request.js +3 -3
  505. package/dist/lib/requests/oscilloscope_start_request.js.map +1 -1
  506. package/dist/lib/requests/prepare_command_request.js +5 -5
  507. package/dist/lib/requests/prepare_command_request.js.map +1 -1
  508. package/dist/lib/requests/process_on.js +6 -6
  509. package/dist/lib/requests/process_on.js.map +1 -1
  510. package/dist/lib/requests/pvt_buffer_get_sequence_data_request.js +3 -3
  511. package/dist/lib/requests/pvt_buffer_get_sequence_data_request.js.map +1 -1
  512. package/dist/lib/requests/pvt_generate_positions_request.js +2 -2
  513. package/dist/lib/requests/pvt_generate_positions_request.js.map +1 -1
  514. package/dist/lib/requests/pvt_generate_velocities_and_times_request.js +2 -2
  515. package/dist/lib/requests/pvt_generate_velocities_and_times_request.js.map +1 -1
  516. package/dist/lib/requests/pvt_generate_velocities_request.js +3 -3
  517. package/dist/lib/requests/pvt_generate_velocities_request.js.map +1 -1
  518. package/dist/lib/requests/pvt_load_csv_request.js +1 -1
  519. package/dist/lib/requests/pvt_load_csv_request.js.map +1 -1
  520. package/dist/lib/requests/pvt_point_request.d.ts.map +1 -1
  521. package/dist/lib/requests/pvt_point_request.js +7 -7
  522. package/dist/lib/requests/pvt_point_request.js.map +1 -1
  523. package/dist/lib/requests/pvt_points_request.d.ts.map +1 -1
  524. package/dist/lib/requests/pvt_points_request.js +7 -7
  525. package/dist/lib/requests/pvt_points_request.js.map +1 -1
  526. package/dist/lib/requests/pvt_save_csv_request.js +2 -2
  527. package/dist/lib/requests/pvt_save_csv_request.js.map +1 -1
  528. package/dist/lib/requests/pvt_submit_sequence_data_request.js +3 -3
  529. package/dist/lib/requests/pvt_submit_sequence_data_request.js.map +1 -1
  530. package/dist/lib/requests/renumber_request.js +3 -3
  531. package/dist/lib/requests/renumber_request.js.map +1 -1
  532. package/dist/lib/requests/servo_tuning_paramset_response.d.ts.map +1 -1
  533. package/dist/lib/requests/servo_tuning_paramset_response.js +1 -1
  534. package/dist/lib/requests/servo_tuning_paramset_response.js.map +1 -1
  535. package/dist/lib/requests/servo_tuning_request.d.ts.map +1 -1
  536. package/dist/lib/requests/servo_tuning_request.js +4 -4
  537. package/dist/lib/requests/servo_tuning_request.js.map +1 -1
  538. package/dist/lib/requests/set_device_db_layered_sources_request.js +1 -1
  539. package/dist/lib/requests/set_device_db_layered_sources_request.js.map +1 -1
  540. package/dist/lib/requests/set_device_db_source_request.d.ts.map +1 -1
  541. package/dist/lib/requests/set_device_db_source_request.js +2 -2
  542. package/dist/lib/requests/set_device_db_source_request.js.map +1 -1
  543. package/dist/lib/requests/set_interface_checksum_enabled_request.js +2 -2
  544. package/dist/lib/requests/set_interface_checksum_enabled_request.js.map +1 -1
  545. package/dist/lib/requests/set_interface_timeout_request.js +2 -2
  546. package/dist/lib/requests/set_interface_timeout_request.js.map +1 -1
  547. package/dist/lib/requests/set_internal_mode_request.js +1 -1
  548. package/dist/lib/requests/set_internal_mode_request.js.map +1 -1
  549. package/dist/lib/requests/set_io_port_label_request.d.ts.map +1 -1
  550. package/dist/lib/requests/set_io_port_label_request.js +5 -5
  551. package/dist/lib/requests/set_io_port_label_request.js.map +1 -1
  552. package/dist/lib/requests/set_log_output_request.d.ts.map +1 -1
  553. package/dist/lib/requests/set_log_output_request.js +2 -2
  554. package/dist/lib/requests/set_log_output_request.js.map +1 -1
  555. package/dist/lib/requests/set_process_controller_source.js +3 -3
  556. package/dist/lib/requests/set_process_controller_source.js.map +1 -1
  557. package/dist/lib/requests/set_servo_tuning_pid_request.d.ts.map +1 -1
  558. package/dist/lib/requests/set_servo_tuning_pid_request.js +8 -8
  559. package/dist/lib/requests/set_servo_tuning_pid_request.js.map +1 -1
  560. package/dist/lib/requests/set_servo_tuning_request.d.ts.map +1 -1
  561. package/dist/lib/requests/set_servo_tuning_request.js +6 -6
  562. package/dist/lib/requests/set_servo_tuning_request.js.map +1 -1
  563. package/dist/lib/requests/set_simple_tuning.d.ts.map +1 -1
  564. package/dist/lib/requests/set_simple_tuning.js +11 -11
  565. package/dist/lib/requests/set_simple_tuning.js.map +1 -1
  566. package/dist/lib/requests/set_state_request.js +5 -5
  567. package/dist/lib/requests/set_state_request.js.map +1 -1
  568. package/dist/lib/requests/stream_arc_request.d.ts.map +1 -1
  569. package/dist/lib/requests/stream_arc_request.js +8 -8
  570. package/dist/lib/requests/stream_arc_request.js.map +1 -1
  571. package/dist/lib/requests/stream_buffer_erase_request.js +4 -4
  572. package/dist/lib/requests/stream_buffer_erase_request.js.map +1 -1
  573. package/dist/lib/requests/stream_buffer_get_content_request.js +4 -4
  574. package/dist/lib/requests/stream_buffer_get_content_request.js.map +1 -1
  575. package/dist/lib/requests/stream_buffer_get_content_response.js +1 -1
  576. package/dist/lib/requests/stream_buffer_get_content_response.js.map +1 -1
  577. package/dist/lib/requests/stream_buffer_list.js +3 -3
  578. package/dist/lib/requests/stream_buffer_list.js.map +1 -1
  579. package/dist/lib/requests/stream_call_request.js +6 -6
  580. package/dist/lib/requests/stream_call_request.js.map +1 -1
  581. package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.js +6 -6
  582. package/dist/lib/requests/stream_cancel_all_outputs_schedule_request.js.map +1 -1
  583. package/dist/lib/requests/stream_cancel_output_schedule_request.js +6 -6
  584. package/dist/lib/requests/stream_cancel_output_schedule_request.js.map +1 -1
  585. package/dist/lib/requests/stream_circle_request.d.ts.map +1 -1
  586. package/dist/lib/requests/stream_circle_request.js +7 -7
  587. package/dist/lib/requests/stream_circle_request.js.map +1 -1
  588. package/dist/lib/requests/stream_empty_request.js +4 -4
  589. package/dist/lib/requests/stream_empty_request.js.map +1 -1
  590. package/dist/lib/requests/stream_generic_command_batch_request.js +5 -5
  591. package/dist/lib/requests/stream_generic_command_batch_request.js.map +1 -1
  592. package/dist/lib/requests/stream_generic_command_request.js +5 -5
  593. package/dist/lib/requests/stream_generic_command_request.js.map +1 -1
  594. package/dist/lib/requests/stream_get_axes_response.js +2 -2
  595. package/dist/lib/requests/stream_get_axes_response.js.map +1 -1
  596. package/dist/lib/requests/stream_get_max_centripetal_acceleration_request.js +5 -5
  597. package/dist/lib/requests/stream_get_max_centripetal_acceleration_request.js.map +1 -1
  598. package/dist/lib/requests/stream_get_max_speed_request.js +5 -5
  599. package/dist/lib/requests/stream_get_max_speed_request.js.map +1 -1
  600. package/dist/lib/requests/stream_get_max_tangential_acceleration_request.js +5 -5
  601. package/dist/lib/requests/stream_get_max_tangential_acceleration_request.js.map +1 -1
  602. package/dist/lib/requests/stream_line_request.d.ts.map +1 -1
  603. package/dist/lib/requests/stream_line_request.js +7 -7
  604. package/dist/lib/requests/stream_line_request.js.map +1 -1
  605. package/dist/lib/requests/stream_mode_response.d.ts.map +1 -1
  606. package/dist/lib/requests/stream_mode_response.js +2 -2
  607. package/dist/lib/requests/stream_mode_response.js.map +1 -1
  608. package/dist/lib/requests/stream_set_all_analog_outputs_request.js +5 -5
  609. package/dist/lib/requests/stream_set_all_analog_outputs_request.js.map +1 -1
  610. package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.js +8 -8
  611. package/dist/lib/requests/stream_set_all_analog_outputs_schedule_request.js.map +1 -1
  612. package/dist/lib/requests/stream_set_all_digital_outputs_request.d.ts.map +1 -1
  613. package/dist/lib/requests/stream_set_all_digital_outputs_request.js +5 -5
  614. package/dist/lib/requests/stream_set_all_digital_outputs_request.js.map +1 -1
  615. package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.d.ts.map +1 -1
  616. package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.js +8 -8
  617. package/dist/lib/requests/stream_set_all_digital_outputs_schedule_request.js.map +1 -1
  618. package/dist/lib/requests/stream_set_analog_output_request.js +6 -6
  619. package/dist/lib/requests/stream_set_analog_output_request.js.map +1 -1
  620. package/dist/lib/requests/stream_set_analog_output_schedule_request.js +9 -9
  621. package/dist/lib/requests/stream_set_analog_output_schedule_request.js.map +1 -1
  622. package/dist/lib/requests/stream_set_digital_output_request.d.ts.map +1 -1
  623. package/dist/lib/requests/stream_set_digital_output_request.js +6 -6
  624. package/dist/lib/requests/stream_set_digital_output_request.js.map +1 -1
  625. package/dist/lib/requests/stream_set_digital_output_schedule_request.d.ts.map +1 -1
  626. package/dist/lib/requests/stream_set_digital_output_schedule_request.js +9 -9
  627. package/dist/lib/requests/stream_set_digital_output_schedule_request.js.map +1 -1
  628. package/dist/lib/requests/stream_set_hold_request.js +5 -5
  629. package/dist/lib/requests/stream_set_hold_request.js.map +1 -1
  630. package/dist/lib/requests/stream_set_max_centripetal_acceleration_request.js +6 -6
  631. package/dist/lib/requests/stream_set_max_centripetal_acceleration_request.js.map +1 -1
  632. package/dist/lib/requests/stream_set_max_speed_request.js +6 -6
  633. package/dist/lib/requests/stream_set_max_speed_request.js.map +1 -1
  634. package/dist/lib/requests/stream_set_max_tangential_acceleration_request.js +6 -6
  635. package/dist/lib/requests/stream_set_max_tangential_acceleration_request.js.map +1 -1
  636. package/dist/lib/requests/stream_setup_live_composite_request.js +6 -6
  637. package/dist/lib/requests/stream_setup_live_composite_request.js.map +1 -1
  638. package/dist/lib/requests/stream_setup_live_request.js +5 -5
  639. package/dist/lib/requests/stream_setup_live_request.js.map +1 -1
  640. package/dist/lib/requests/stream_setup_store_arbitrary_axes_request.js +7 -7
  641. package/dist/lib/requests/stream_setup_store_arbitrary_axes_request.js.map +1 -1
  642. package/dist/lib/requests/stream_setup_store_composite_request.js +8 -8
  643. package/dist/lib/requests/stream_setup_store_composite_request.js.map +1 -1
  644. package/dist/lib/requests/stream_setup_store_request.js +7 -7
  645. package/dist/lib/requests/stream_setup_store_request.js.map +1 -1
  646. package/dist/lib/requests/stream_wait_analog_input_request.js +7 -7
  647. package/dist/lib/requests/stream_wait_analog_input_request.js.map +1 -1
  648. package/dist/lib/requests/stream_wait_digital_input_request.js +6 -6
  649. package/dist/lib/requests/stream_wait_digital_input_request.js.map +1 -1
  650. package/dist/lib/requests/stream_wait_request.js +6 -6
  651. package/dist/lib/requests/stream_wait_request.js.map +1 -1
  652. package/dist/lib/requests/stream_wait_until_idle_request.js +5 -5
  653. package/dist/lib/requests/stream_wait_until_idle_request.js.map +1 -1
  654. package/dist/lib/requests/string_array_response.js +1 -1
  655. package/dist/lib/requests/string_array_response.js.map +1 -1
  656. package/dist/lib/requests/string_response.js +1 -1
  657. package/dist/lib/requests/string_response.js.map +1 -1
  658. package/dist/lib/requests/test_dto_with_variants.js +2 -2
  659. package/dist/lib/requests/test_dto_with_variants.js.map +1 -1
  660. package/dist/lib/requests/test_event.js +1 -1
  661. package/dist/lib/requests/test_event.js.map +1 -1
  662. package/dist/lib/requests/test_request.js +3 -3
  663. package/dist/lib/requests/test_request.js.map +1 -1
  664. package/dist/lib/requests/test_request_complex.js +1 -1
  665. package/dist/lib/requests/test_request_complex.js.map +1 -1
  666. package/dist/lib/requests/test_response.js +1 -1
  667. package/dist/lib/requests/test_response.js.map +1 -1
  668. package/dist/lib/requests/test_response_long.js +1 -1
  669. package/dist/lib/requests/test_response_long.js.map +1 -1
  670. package/dist/lib/requests/test_variant.d.ts.map +1 -1
  671. package/dist/lib/requests/test_variant.js +1 -1
  672. package/dist/lib/requests/test_variant.js.map +1 -1
  673. package/dist/lib/requests/toggle_device_db_store_request.js +2 -2
  674. package/dist/lib/requests/toggle_device_db_store_request.js.map +1 -1
  675. package/dist/lib/requests/tools_list_serial_ports_response.js +1 -1
  676. package/dist/lib/requests/tools_list_serial_ports_response.js.map +1 -1
  677. package/dist/lib/requests/translator_create_from_device_request.js +4 -4
  678. package/dist/lib/requests/translator_create_from_device_request.js.map +1 -1
  679. package/dist/lib/requests/translator_create_live_request.js +4 -4
  680. package/dist/lib/requests/translator_create_live_request.js.map +1 -1
  681. package/dist/lib/requests/translator_create_request.js +1 -1
  682. package/dist/lib/requests/translator_create_request.js.map +1 -1
  683. package/dist/lib/requests/translator_create_response.js +1 -1
  684. package/dist/lib/requests/translator_create_response.js.map +1 -1
  685. package/dist/lib/requests/translator_empty_request.js +1 -1
  686. package/dist/lib/requests/translator_empty_request.js.map +1 -1
  687. package/dist/lib/requests/translator_flush_live_request.js +2 -2
  688. package/dist/lib/requests/translator_flush_live_request.js.map +1 -1
  689. package/dist/lib/requests/translator_flush_response.js +1 -1
  690. package/dist/lib/requests/translator_flush_response.js.map +1 -1
  691. package/dist/lib/requests/translator_get_axis_offset_request.js +4 -4
  692. package/dist/lib/requests/translator_get_axis_offset_request.js.map +1 -1
  693. package/dist/lib/requests/translator_get_axis_position_request.js +3 -3
  694. package/dist/lib/requests/translator_get_axis_position_request.js.map +1 -1
  695. package/dist/lib/requests/translator_set_axis_position_request.js +4 -4
  696. package/dist/lib/requests/translator_set_axis_position_request.js.map +1 -1
  697. package/dist/lib/requests/translator_set_feed_rate_override_request.js +2 -2
  698. package/dist/lib/requests/translator_set_feed_rate_override_request.js.map +1 -1
  699. package/dist/lib/requests/translator_set_traverse_rate_request.js +3 -3
  700. package/dist/lib/requests/translator_set_traverse_rate_request.js.map +1 -1
  701. package/dist/lib/requests/translator_translate_request.js +2 -2
  702. package/dist/lib/requests/translator_translate_request.js.map +1 -1
  703. package/dist/lib/requests/trigger_clear_action_request.d.ts.map +1 -1
  704. package/dist/lib/requests/trigger_clear_action_request.js +4 -4
  705. package/dist/lib/requests/trigger_clear_action_request.js.map +1 -1
  706. package/dist/lib/requests/trigger_empty_request.js +3 -3
  707. package/dist/lib/requests/trigger_empty_request.js.map +1 -1
  708. package/dist/lib/requests/trigger_enable_request.js +4 -4
  709. package/dist/lib/requests/trigger_enable_request.js.map +1 -1
  710. package/dist/lib/requests/trigger_enabled_states.js +1 -1
  711. package/dist/lib/requests/trigger_enabled_states.js.map +1 -1
  712. package/dist/lib/requests/trigger_fire_at_interval_request.js +5 -5
  713. package/dist/lib/requests/trigger_fire_at_interval_request.js.map +1 -1
  714. package/dist/lib/requests/trigger_fire_when_distance_travelled_request.js +6 -6
  715. package/dist/lib/requests/trigger_fire_when_distance_travelled_request.js.map +1 -1
  716. package/dist/lib/requests/trigger_fire_when_io_request.d.ts.map +1 -1
  717. package/dist/lib/requests/trigger_fire_when_io_request.js +7 -7
  718. package/dist/lib/requests/trigger_fire_when_io_request.js.map +1 -1
  719. package/dist/lib/requests/trigger_fire_when_request.js +4 -4
  720. package/dist/lib/requests/trigger_fire_when_request.js.map +1 -1
  721. package/dist/lib/requests/trigger_fire_when_setting_request.d.ts.map +1 -1
  722. package/dist/lib/requests/trigger_fire_when_setting_request.js +8 -8
  723. package/dist/lib/requests/trigger_fire_when_setting_request.js.map +1 -1
  724. package/dist/lib/requests/trigger_on_fire_request.d.ts.map +1 -1
  725. package/dist/lib/requests/trigger_on_fire_request.js +6 -6
  726. package/dist/lib/requests/trigger_on_fire_request.js.map +1 -1
  727. package/dist/lib/requests/trigger_on_fire_set_request.d.ts.map +1 -1
  728. package/dist/lib/requests/trigger_on_fire_set_request.js +9 -9
  729. package/dist/lib/requests/trigger_on_fire_set_request.js.map +1 -1
  730. package/dist/lib/requests/trigger_on_fire_set_to_setting_request.d.ts.map +1 -1
  731. package/dist/lib/requests/trigger_on_fire_set_to_setting_request.js +9 -9
  732. package/dist/lib/requests/trigger_on_fire_set_to_setting_request.js.map +1 -1
  733. package/dist/lib/requests/trigger_set_label_request.js +4 -4
  734. package/dist/lib/requests/trigger_set_label_request.js.map +1 -1
  735. package/dist/lib/requests/trigger_states.js +1 -1
  736. package/dist/lib/requests/trigger_states.js.map +1 -1
  737. package/dist/lib/requests/unit_convert_native_request.js +3 -3
  738. package/dist/lib/requests/unit_convert_native_request.js.map +1 -1
  739. package/dist/lib/requests/unit_convert_unit_request.js +3 -3
  740. package/dist/lib/requests/unit_convert_unit_request.js.map +1 -1
  741. package/dist/lib/requests/unit_get_enum_request.js +1 -1
  742. package/dist/lib/requests/unit_get_enum_request.js.map +1 -1
  743. package/dist/lib/requests/unit_get_enum_response.js +1 -1
  744. package/dist/lib/requests/unit_get_enum_response.js.map +1 -1
  745. package/dist/lib/requests/unit_get_symbol_request.js +1 -1
  746. package/dist/lib/requests/unit_get_symbol_request.js.map +1 -1
  747. package/dist/lib/requests/unit_get_symbol_response.js +1 -1
  748. package/dist/lib/requests/unit_get_symbol_response.js.map +1 -1
  749. package/dist/lib/requests/unknown_binary_response_event_wrapper.js +2 -2
  750. package/dist/lib/requests/unknown_binary_response_event_wrapper.js.map +1 -1
  751. package/dist/lib/requests/unknown_response_event_wrapper.js +2 -2
  752. package/dist/lib/requests/unknown_response_event_wrapper.js.map +1 -1
  753. package/dist/lib/requests/wait_to_clear_warnings_request.js +5 -5
  754. package/dist/lib/requests/wait_to_clear_warnings_request.js.map +1 -1
  755. package/dist/lib/requests/wait_to_respond_request.js +3 -3
  756. package/dist/lib/requests/wait_to_respond_request.js.map +1 -1
  757. package/dist/lib/requests/wdi_generic_float_request.js +6 -6
  758. package/dist/lib/requests/wdi_generic_float_request.js.map +1 -1
  759. package/dist/lib/requests/wdi_generic_request.js +7 -7
  760. package/dist/lib/requests/wdi_generic_request.js.map +1 -1
  761. package/dist/lib/tools.d.ts +23 -0
  762. package/dist/lib/tools.d.ts.map +1 -1
  763. package/dist/lib/tools.js +20 -0
  764. package/dist/lib/tools.js.map +1 -1
  765. package/dist/lib/unit_conversion_descriptor.js +4 -4
  766. package/dist/lib/unit_conversion_descriptor.js.map +1 -1
  767. package/package.json +2 -1
  768. package/dist/lib/ascii/cyclic_direction.d.ts.map +0 -1
  769. package/dist/lib/ascii/cyclic_direction.js.map +0 -1
  770. /package/dist/lib/{ascii/cyclic_direction.d.ts → cyclic_direction.d.ts} +0 -0
  771. /package/dist/lib/{ascii/cyclic_direction.js → cyclic_direction.js} +0 -0
package/LICENSE CHANGED
@@ -265,6 +265,28 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
265
265
  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
266
266
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
267
267
 
268
+ ------------------
269
+ github.com/hashicorp/mdns v1.0.6
270
+ ------------------
271
+ Copyright (c) 2014 HashiCorp, Inc.
272
+
273
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
274
+ this software and associated documentation files (the "Software"), to deal in
275
+ the Software without restriction, including without limitation the rights to
276
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
277
+ the Software, and to permit persons to whom the Software is furnished to do so,
278
+ subject to the following conditions:
279
+
280
+ The above copyright notice and this permission notice shall be included in all
281
+ copies or substantial portions of the Software.
282
+
283
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
284
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
285
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
286
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
287
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
288
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
289
+
268
290
  ------------------
269
291
  github.com/iancoleman/strcase v0.3.0
270
292
  ------------------
@@ -341,6 +363,39 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
341
363
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
342
364
  SOFTWARE.
343
365
 
366
+ ------------------
367
+ github.com/miekg/dns v1.1.55
368
+ ------------------
369
+ BSD 3-Clause License
370
+
371
+ Copyright (c) 2009, The Go Authors. Extensions copyright (c) 2011, Miek Gieben.
372
+ All rights reserved.
373
+
374
+ Redistribution and use in source and binary forms, with or without
375
+ modification, are permitted provided that the following conditions are met:
376
+
377
+ 1. Redistributions of source code must retain the above copyright notice, this
378
+ list of conditions and the following disclaimer.
379
+
380
+ 2. Redistributions in binary form must reproduce the above copyright notice,
381
+ this list of conditions and the following disclaimer in the documentation
382
+ and/or other materials provided with the distribution.
383
+
384
+ 3. Neither the name of the copyright holder nor the names of its
385
+ contributors may be used to endorse or promote products derived from
386
+ this software without specific prior written permission.
387
+
388
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
389
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
390
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
391
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
392
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
393
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
394
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
395
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
396
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
397
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
398
+
344
399
  ------------------
345
400
  github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421
346
401
  ------------------
@@ -2071,6 +2126,37 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2071
2126
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2072
2127
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2073
2128
 
2129
+ ------------------
2130
+ golang.org/x/tools v0.26.0
2131
+ ------------------
2132
+ Copyright 2009 The Go Authors.
2133
+
2134
+ Redistribution and use in source and binary forms, with or without
2135
+ modification, are permitted provided that the following conditions are
2136
+ met:
2137
+
2138
+ * Redistributions of source code must retain the above copyright
2139
+ notice, this list of conditions and the following disclaimer.
2140
+ * Redistributions in binary form must reproduce the above
2141
+ copyright notice, this list of conditions and the following disclaimer
2142
+ in the documentation and/or other materials provided with the
2143
+ distribution.
2144
+ * Neither the name of Google LLC nor the names of its
2145
+ contributors may be used to endorse or promote products derived from
2146
+ this software without specific prior written permission.
2147
+
2148
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2149
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2150
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2151
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2152
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2153
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2154
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2155
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2156
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2157
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2158
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2159
+
2074
2160
  ------------------
2075
2161
  gonum.org/v1/gonum v0.16.0
2076
2162
  ------------------
@@ -40,11 +40,11 @@ exports.AlertEvent = {
40
40
  const castValue = value;
41
41
  return (value != null &&
42
42
  typeof value === 'object' &&
43
- typeof castValue.deviceAddress === typeof exports.AlertEvent.DEFAULT.deviceAddress &&
44
- typeof castValue.axisNumber === typeof exports.AlertEvent.DEFAULT.axisNumber &&
45
- typeof castValue.status === typeof exports.AlertEvent.DEFAULT.status &&
46
- typeof castValue.warningFlag === typeof exports.AlertEvent.DEFAULT.warningFlag &&
47
- typeof castValue.data === typeof exports.AlertEvent.DEFAULT.data);
43
+ sanitizer_1.sanitizer.isInt(castValue.deviceAddress) &&
44
+ sanitizer_1.sanitizer.isInt(castValue.axisNumber) &&
45
+ sanitizer_1.sanitizer.isString(castValue.status) &&
46
+ sanitizer_1.sanitizer.isString(castValue.warningFlag) &&
47
+ sanitizer_1.sanitizer.isString(castValue.data));
48
48
  },
49
49
  };
50
50
  //# sourceMapping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AC;YACvE,IAAI,EAAE,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC;SACnD,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,CAAC,KAAoB,EAAc,EAAE,CAAC,CAAC;QAC9C,aAAa,EAAE,KAAK,CAAC,aAAa;QAClC,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC;IAEF,GAAG,EAAE,CAAC,KAAU,EAAuB,EAAE;QACvC,MAAM,SAAS,GAAG,KAAmB,CAAC;QACtC,OAAO,CACL,KAAK,IAAI,IAAI;YACb,OAAO,KAAK,KAAK,QAAQ;YACzB,OAAO,SAAS,CAAC,aAAa,KAAK,OAAO,kBAAU,CAAC,OAAO,CAAC,aAAa;YAC1E,OAAO,SAAS,CAAC,UAAU,KAAK,OAAO,kBAAU,CAAC,OAAO,CAAC,UAAU;YACpE,OAAO,SAAS,CAAC,MAAM,KAAK,OAAO,kBAAU,CAAC,OAAO,CAAC,MAAM;YAC5D,OAAO,SAAS,CAAC,WAAW,KAAK,OAAO,kBAAU,CAAC,OAAO,CAAC,WAAW;YACtE,OAAO,SAAS,CAAC,IAAI,KAAK,OAAO,kBAAU,CAAC,OAAO,CAAC,IAAI,CACzD,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\n\n/**\n * Alert message received from the device.\n */\nexport interface AlertEvent {\n /**\n * Number of the device that sent the message.\n */\n deviceAddress: number;\n\n /**\n * Number of the axis which the response applies to. Zero denotes device scope.\n */\n axisNumber: number;\n\n /**\n * The device status contains BUSY when the axis is moving and IDLE otherwise.\n */\n status: string;\n\n /**\n * The warning flag contains the highest priority warning currently active for the device or axis.\n */\n warningFlag: string;\n\n /**\n * Response data which varies depending on the request.\n */\n data: string;\n\n}\n\nexport const AlertEvent = {\n fromBinary: (buffer: Uint8Array): AlertEvent => AlertEvent.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n\n toBinary: (value: AlertEvent): Uint8Array => BSON.serialize(AlertEvent.sanitize(value)),\n\n DEFAULT: Object.freeze({\n deviceAddress: 0,\n axisNumber: 0,\n status: '',\n warningFlag: '',\n data: '',\n }) as Readonly<AlertEvent>,\n\n sanitize: (value: AlertEvent): AlertEvent => {\n if (value == null) { throw new TypeError('Expected AlertEvent object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected AlertEvent object but got ${typeof value}.`) }\n return {\n deviceAddress: sanitizer.sanitizeInt(value.deviceAddress, 'deviceAddress'),\n axisNumber: sanitizer.sanitizeInt(value.axisNumber, 'axisNumber'),\n status: sanitizer.sanitizeString(value.status, 'status'),\n warningFlag: sanitizer.sanitizeString(value.warningFlag, 'warningFlag'),\n data: sanitizer.sanitizeString(value.data, 'data'),\n };\n },\n\n convert: (value: BSON.Document): AlertEvent => ({\n deviceAddress: value.deviceAddress,\n axisNumber: value.axisNumber,\n status: value.status,\n warningFlag: value.warningFlag,\n data: value.data,\n }),\n\n isA: (value: any): value is AlertEvent => {\n const castValue = value as AlertEvent;\n return (\n value != null &&\n typeof value === 'object' &&\n typeof castValue.deviceAddress === typeof AlertEvent.DEFAULT.deviceAddress &&\n typeof castValue.axisNumber === typeof AlertEvent.DEFAULT.axisNumber &&\n typeof castValue.status === typeof AlertEvent.DEFAULT.status &&\n typeof castValue.warningFlag === typeof AlertEvent.DEFAULT.warningFlag &&\n typeof castValue.data === typeof AlertEvent.DEFAULT.data\n );\n },\n};\n"]}
1
+ {"version":3,"file":"alert_event.js","sourceRoot":"","sources":["../../../src/ascii/alert_event.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AAiCpC,QAAA,UAAU,GAAG;IACxB,UAAU,EAAE,CAAC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AClC,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC;IAEF,GAAG,EAAE,CAAC,KAAU,EAAuB,EAAE;QACvC,MAAM,SAAS,GAAG,KAAmB,CAAC;QACtC,OAAO,CACL,KAAK,IAAI,IAAI;YACb,OAAO,KAAK,KAAK,QAAQ;YACzB,qBAAS,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;YACxC,qBAAS,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC;YACrC,qBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC;YACpC,qBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC;YACzC,qBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CACnC,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\n\n/**\n * Alert message received from the device.\n */\nexport interface AlertEvent {\n /**\n * Number of the device that sent the message.\n */\n deviceAddress: number;\n\n /**\n * Number of the axis which the response applies to. Zero denotes device scope.\n */\n axisNumber: number;\n\n /**\n * The device status contains BUSY when the axis is moving and IDLE otherwise.\n */\n status: string;\n\n /**\n * The warning flag contains the highest priority warning currently active for the device or axis.\n */\n warningFlag: string;\n\n /**\n * Response data which varies depending on the request.\n */\n data: string;\n\n}\n\nexport const AlertEvent = {\n fromBinary: (buffer: Uint8Array): AlertEvent => AlertEvent.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n\n toBinary: (value: AlertEvent): Uint8Array => BSON.serialize(AlertEvent.sanitize(value)),\n\n DEFAULT: Object.freeze({\n deviceAddress: 0,\n axisNumber: 0,\n status: '',\n warningFlag: '',\n data: '',\n }) as Readonly<AlertEvent>,\n\n sanitize: (value: AlertEvent): AlertEvent => {\n if (value == null) { throw new TypeError('Expected AlertEvent object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected AlertEvent object but got ${typeof value}.`) }\n return {\n deviceAddress: sanitizer.sanitizeInt(value.deviceAddress, 'deviceAddress'),\n axisNumber: sanitizer.sanitizeInt(value.axisNumber, 'axisNumber'),\n status: sanitizer.sanitizeString(value.status, 'status'),\n warningFlag: sanitizer.sanitizeString(value.warningFlag, 'warningFlag'),\n data: sanitizer.sanitizeString(value.data, 'data'),\n };\n },\n\n convert: (value: BSON.Document): AlertEvent => ({\n deviceAddress: value.deviceAddress,\n axisNumber: value.axisNumber,\n status: value.status,\n warningFlag: value.warningFlag,\n data: value.data,\n }),\n\n isA: (value: any): value is AlertEvent => {\n const castValue = value as AlertEvent;\n return (\n value != null &&\n typeof value === 'object' &&\n sanitizer.isInt(castValue.deviceAddress) &&\n sanitizer.isInt(castValue.axisNumber) &&\n sanitizer.isString(castValue.status) &&\n sanitizer.isString(castValue.warningFlag) &&\n sanitizer.isString(castValue.data)\n );\n },\n};\n"]}
@@ -9,7 +9,7 @@ import { Measurement } from '../measurement';
9
9
  import { AxisStorage } from './storage';
10
10
  import { SetStateAxisResponse } from './set_state_axis_response';
11
11
  import { FirmwareVersion } from '../firmware_version';
12
- import { CyclicDirection } from './cyclic_direction';
12
+ import { CyclicDirection } from '../cyclic_direction';
13
13
  import { UnitConversionDescriptor } from '../unit_conversion_descriptor';
14
14
  /**
15
15
  * Represents an axis of motion associated with a device.
@@ -1 +1 @@
1
- {"version":3,"file":"axis.d.ts","sourceRoot":"","sources":["../../../src/ascii/axis.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY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// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport { AxisIdentity } from './axis_identity';\nimport { AxisType } from './axis_type';\nimport { Warnings } from './warnings';\nimport { AxisSettings } from './axis_settings';\nimport { Angle, Length, Native, AngularVelocity, Velocity, Acceleration, AngularAcceleration, Units, Time } from '../units';\nimport { Response } from './response';\nimport { Measurement } from '../measurement';\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { AxisStorage } from './storage';\nimport { SetStateAxisResponse } from './set_state_axis_response';\nimport { FirmwareVersion } from '../firmware_version';\nimport { CyclicDirection } from './cyclic_direction';\nimport { UnitConversionDescriptor } from '../unit_conversion_descriptor';\n\n/**\n * Represents an axis of motion associated with a device.\n */\nexport class Axis {\n /**\n * Device that controls this axis.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The axis number identifies the axis on the device.\n * The first axis has the number one.\n */\n public get axisNumber(): number {\n return this._axisNumber;\n }\n private _axisNumber: number;\n\n /**\n * Settings and properties of this axis.\n */\n public get settings(): AxisSettings {\n return this._settings;\n }\n private _settings: AxisSettings;\n\n /**\n * Key-value storage of this axis.\n * Requires at least Firmware 7.30.\n */\n public get storage(): AxisStorage {\n return this._storage;\n }\n private _storage: AxisStorage;\n\n /**\n * Warnings and faults of this axis.\n */\n public get warnings(): Warnings {\n return this._warnings;\n }\n private _warnings: Warnings;\n\n /**\n * Identity of the axis.\n */\n public get identity(): AxisIdentity {\n return this._retrieveIdentity();\n }\n\n /**\n * Unique ID of the peripheral hardware.\n */\n public get peripheralId(): number {\n return this.identity.peripheralId;\n }\n\n /**\n * Name of the peripheral.\n */\n public get peripheralName(): string {\n return this.identity.peripheralName;\n }\n\n /**\n * Serial number of the peripheral, or 0 when not applicable.\n */\n public get peripheralSerialNumber(): number {\n return this.identity.peripheralSerialNumber;\n }\n\n /**\n * Indicates whether the axis is a peripheral or part of an integrated device.\n */\n public get isPeripheral(): boolean {\n return this.identity.isPeripheral;\n }\n\n /**\n * Determines the type of an axis and units it accepts.\n */\n public get axisType(): AxisType {\n return this.identity.axisType;\n }\n\n /**\n * The number of microsteps per full step for motion axes. Always equal to 0 for non-motion axes.\n */\n public get resolution(): number {\n return this.identity.resolution;\n }\n\n /**\n * User-assigned label of the peripheral.\n */\n public get label(): string {\n return this._retrieveLabel();\n }\n\n constructor(device: Device, axisNumber: number) {\n this._device = device;\n this._axisNumber = axisNumber;\n this._settings = new AxisSettings(this);\n this._storage = new AxisStorage(this);\n this._warnings = new Warnings(device, axisNumber);\n }\n\n /**\n * Homes axis. Axis returns to its homing position.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async home(\n options: Axis.HomeOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.DeviceHomeRequest & gateway.Message = {\n ...requests.DeviceHomeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.DeviceHomeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/home', request);\n }\n\n /**\n * Stops ongoing axis movement. Decelerates until zero speed.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async stop(\n options: Axis.StopOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.DeviceStopRequest & gateway.Message = {\n ...requests.DeviceStopRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.DeviceStopRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stop', request);\n }\n\n /**\n * Parks the axis in anticipation of turning the power off.\n * It can later be powered on, unparked, and moved without first having to home it.\n */\n public async park(): Promise<void> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/park', request);\n }\n\n /**\n * Unparks axis. Axis will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/unpark', request);\n }\n\n /**\n * Returns bool indicating whether the axis is parked or not.\n * @returns True if the axis is currently parked. False otherwise.\n */\n public async isParked(): Promise<boolean> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/is_parked',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Waits until axis stops moving.\n * @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n options: Axis.WaitUntilIdleOptions = {}\n ): Promise<void> {\n const {\n throwErrorOnFault = true,\n } = options;\n const request: requests.DeviceWaitUntilIdleRequest & gateway.Message = {\n ...requests.DeviceWaitUntilIdleRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n throwErrorOnFault: throwErrorOnFault,\n toBinary() {\n return requests.DeviceWaitUntilIdleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/wait_until_idle', request);\n }\n\n /**\n * Returns bool indicating whether the axis is executing a motion command.\n * @returns True if the axis is currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/is_busy',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns bool indicating whether the axis has position reference and was homed.\n * @returns True if the axis has position reference and was homed.\n */\n public async isHomed(): Promise<boolean> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/is_homed',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Move axis to absolute position.\n * @param position Absolute position.\n * @param [unit=Units.NATIVE] Units of position.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n * @param options.cyclicDirection Which direction a cyclic device should take to get to the target position.\n * @param options.extraCycles Number of extra cycles to complete before stopping at the target.\n */\n public async moveAbsolute(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n options: Axis.MoveAbsoluteOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n cyclicDirection,\n extraCycles,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.ABS,\n arg: position,\n unit: unit,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n cyclicDirection: cyclicDirection,\n extraCycles: extraCycles,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Moves the axis to the maximum position as specified by limit.max.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveMax(\n options: Axis.MoveMaxOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.MAX,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Moves the axis to the minimum position as specified by limit.min.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveMin(\n options: Axis.MoveMinOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.MIN,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Move axis to position relative to current position.\n * @param position Relative position.\n * @param [unit=Units.NATIVE] Units of position.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveRelative(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n options: Axis.MoveRelativeOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.REL,\n arg: position,\n unit: unit,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Begins to move axis at specified speed.\n * @param velocity Movement velocity.\n * @param [unit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveVelocity(\n velocity: number,\n unit: Velocity | AngularVelocity | Native = Units.NATIVE,\n options: Axis.MoveVelocityOptions = {}\n ): Promise<void> {\n const {\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.VEL,\n arg: velocity,\n unit: unit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Returns current axis position.\n * @param [unit=Units.NATIVE] Units of position.\n * @returns Axis position.\n */\n public async getPosition(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n setting: 'pos',\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Gets number of index positions of the axis.\n * @returns Number of index positions.\n */\n public async getNumberOfIndexPositions(): Promise<number> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'device/get_index_count',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns current axis index position.\n * @returns Index position starting from 1 or 0 if the position is not an index position.\n */\n public async getIndexPosition(): Promise<number> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'device/get_index_position',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Moves the axis to index position.\n * @param index Index position. Index positions are numbered from 1.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveIndex(\n index: number,\n options: Axis.MoveIndexOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.INDEX,\n argInt: index,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Sends a generic ASCII command to this axis.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param [options.checkErrors=true] Controls whether to throw an exception when the device rejects the command.\n * @param [options.timeout=0] The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @returns A response to the command.\n */\n public async genericCommand(\n command: string,\n options: Axis.GenericCommandOptions = {}\n ): Promise<Response> {\n const {\n checkErrors = true,\n timeout = 0,\n } = options;\n const request: requests.GenericCommandRequest & gateway.Message = {\n ...requests.GenericCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n command: command,\n checkErrors: checkErrors,\n timeout: timeout,\n toBinary() {\n return requests.GenericCommandRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<Response>(\n 'interface/generic_command',\n request,\n Response.fromBinary);\n return response;\n }\n\n /**\n * Sends a generic ASCII command to this axis and expect multiple responses.\n * Responses are returned in order of arrival.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param [options.checkErrors=true] Controls whether to throw an exception when a device rejects the command.\n * @param [options.timeout=0] The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @returns All responses to the command.\n */\n public async genericCommandMultiResponse(\n command: string,\n options: Axis.GenericCommandMultiResponseOptions = {}\n ): Promise<Response[]> {\n const {\n checkErrors = true,\n timeout = 0,\n } = options;\n const request: requests.GenericCommandRequest & gateway.Message = {\n ...requests.GenericCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n command: command,\n checkErrors: checkErrors,\n timeout: timeout,\n toBinary() {\n return requests.GenericCommandRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GenericCommandResponseCollection>(\n 'interface/generic_command_multi_response',\n request,\n requests.GenericCommandResponseCollection.fromBinary);\n return response.responses;\n }\n\n /**\n * Sends a generic ASCII command to this axis without expecting a response and without adding a message ID\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n */\n public async genericCommandNoResponse(\n command: string\n ): Promise<void> {\n const request: requests.GenericCommandRequest & gateway.Message = {\n ...requests.GenericCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n command: command,\n toBinary() {\n return requests.GenericCommandRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('interface/generic_command_no_response', request);\n }\n\n /**\n * Formats parameters into a command and performs unit conversions.\n * Parameters in the command template are denoted by a question mark.\n * Command returned is only valid for this axis and this device.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param commandTemplate Template of a command to prepare. Parameters are denoted by question marks.\n * @param parameters Variable number of command parameters.\n * @returns Command with converted parameters.\n */\n public prepareCommand(\n commandTemplate: string,\n ...parameters: Measurement[]\n ): string {\n const request: requests.PrepareCommandRequest & gateway.Message = {\n ...requests.PrepareCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n commandTemplate: commandTemplate,\n parameters: parameters,\n toBinary() {\n return requests.PrepareCommandRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/prepare_command',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Retrieves unit conversion descriptors for a command, allowing unit conversion without a device.\n * The descriptors can be used with the ConvertTo/FromNativeUnits methods of the UnitTable class.\n * Parameters in the command template are denoted by a question mark.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param commandTemplate Template of the command. Parameters are denoted by question marks.\n * @returns Unit conversion descriptor for each parameter in the command. Nil if a parameter does not have conversion.\n */\n public getCommandUnitConversionDescriptors(\n commandTemplate: string\n ): (UnitConversionDescriptor | null)[] {\n const request: requests.PrepareCommandRequest & gateway.Message = {\n ...requests.PrepareCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n commandTemplate: commandTemplate,\n toBinary() {\n return requests.PrepareCommandRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.GetCommandUnitConversionResponse>(\n 'device/get_command_unit_conversion',\n request,\n requests.GetCommandUnitConversionResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets the user-assigned peripheral label.\n * The label is stored on the controller and recognized by other software.\n * @param label Label to set.\n */\n public async setLabel(\n label: string\n ): Promise<void> {\n const request: requests.DeviceSetStorageRequest & gateway.Message = {\n ...requests.DeviceSetStorageRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n value: label,\n toBinary() {\n return requests.DeviceSetStorageRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_label', request);\n }\n\n /**\n * Gets the peripheral name.\n * @returns The label.\n */\n private _retrieveLabel(): string {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/get_label',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string that represents the axis.\n * @returns A string that represents the axis.\n */\n public toString(): string {\n const request: requests.AxisToStringRequest & gateway.Message = {\n ...requests.AxisToStringRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisToStringRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/axis_to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a serialization of the current axis state that can be saved and reapplied.\n * @returns A serialization of the current state of the axis.\n */\n public async getState(): Promise<string> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringResponse>(\n 'device/get_state',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Applies a saved state to this axis.\n * @param state The state object to apply to this axis.\n * @returns Reports of any issues that were handled, but caused the state to not be exactly restored.\n */\n public async setState(\n state: string\n ): Promise<SetStateAxisResponse> {\n const request: requests.SetStateRequest & gateway.Message = {\n ...requests.SetStateRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n state: state,\n toBinary() {\n return requests.SetStateRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<SetStateAxisResponse>(\n 'device/set_axis_state',\n request,\n SetStateAxisResponse.fromBinary);\n return response;\n }\n\n /**\n * Checks if a state can be applied to this axis.\n * This only covers exceptions that can be determined statically such as mismatches of ID or version,\n * the process of applying the state can still fail when running.\n * @param state The state object to check against.\n * @param options.firmwareVersion The firmware version of the device to apply the state to.\n * Use this to ensure the state will still be compatible after an update.\n * @returns An explanation of why this state cannot be set to this axis.\n */\n public async canSetState(\n state: string,\n options: Axis.CanSetStateOptions = {}\n ): Promise<string | null> {\n const {\n firmwareVersion,\n } = options;\n const request: requests.CanSetStateRequest & gateway.Message = {\n ...requests.CanSetStateRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n state: state,\n firmwareVersion: firmwareVersion,\n toBinary() {\n return requests.CanSetStateRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.CanSetStateAxisResponse>(\n 'device/can_set_axis_state',\n request,\n requests.CanSetStateAxisResponse.fromBinary);\n return response.error ?? null;\n }\n\n /**\n * Returns identity.\n * @returns Axis identity.\n */\n private _retrieveIdentity(): AxisIdentity {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<AxisIdentity>(\n 'device/get_axis_identity',\n request,\n AxisIdentity.fromBinary);\n return response;\n }\n\n /**\n * Disables the driver, which prevents current from being sent to the motor or load.\n * If the driver is already disabled, the driver remains disabled.\n */\n public async driverDisable(): Promise<void> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/driver_disable', request);\n }\n\n /**\n * Attempts to enable the driver repeatedly for the specified timeout.\n * If the driver is already enabled, the driver remains enabled.\n * @param [options.timeout=10] Timeout in seconds. Specify 0 to attempt to enable the driver once.\n */\n public async driverEnable(\n options: Axis.DriverEnableOptions = {}\n ): Promise<void> {\n const {\n timeout = 10,\n } = options;\n const request: requests.DriverEnableRequest & gateway.Message = {\n ...requests.DriverEnableRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n timeout: timeout,\n toBinary() {\n return requests.DriverEnableRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/driver_enable', request);\n }\n\n /**\n * Activates a peripheral on this axis.\n * Removes all identity information for the device.\n * Run the identify method on the device after activating to refresh the information.\n */\n public async activate(): Promise<void> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/activate', request);\n }\n\n /**\n * Restores all axis settings to their default values.\n * Deletes all zaber axis storage keys.\n * Disables lockstep if the axis is part of one. Unparks the axis.\n * Preserves storage.\n * The device needs to be identified again after the restore.\n */\n public async restore(): Promise<void> {\n const request: requests.DeviceRestoreRequest & gateway.Message = {\n ...requests.DeviceRestoreRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.DeviceRestoreRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/restore', request);\n }\n\n /**\n * Moves the axis in a sinusoidal trajectory.\n * @param amplitude Amplitude of the sinusoidal motion (half of the motion's peak-to-peak range).\n * @param amplitudeUnits Units of position.\n * @param period Period of the sinusoidal motion in milliseconds.\n * @param periodUnits Units of time.\n * @param [options.count=0] Number of sinusoidal cycles to complete.\n * Must be a multiple of 0.5\n * If count is not specified or set to 0, the axis will move indefinitely.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async moveSin(\n amplitude: number,\n amplitudeUnits: Length | Angle | Native,\n period: number,\n periodUnits: Time | Native,\n options: Axis.MoveSinOptions = {}\n ): Promise<void> {\n const {\n count = 0,\n waitUntilIdle = true,\n } = options;\n const request: requests.DeviceMoveSinRequest & gateway.Message = {\n ...requests.DeviceMoveSinRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n amplitude: amplitude,\n amplitudeUnits: amplitudeUnits,\n period: period,\n periodUnits: periodUnits,\n count: count,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.DeviceMoveSinRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move_sin', request);\n }\n\n /**\n * Stops the axis at the end of the sinusoidal trajectory.\n * If the sinusoidal motion was started with an integer-plus-half cycle count,\n * the motion ends at the half-way point of the sinusoidal trajectory.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished.\n */\n public async moveSinStop(\n options: Axis.MoveSinStopOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.DeviceStopRequest & gateway.Message = {\n ...requests.DeviceStopRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.DeviceStopRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move_sin_stop', request);\n }\n}\n\nnamespace Axis {\n export interface HomeOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface StopOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface WaitUntilIdleOptions {\n /**\n * Determines whether to throw error when fault is observed.\n */\n throwErrorOnFault?: boolean;\n }\n export interface MoveAbsoluteOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n /**\n * Which direction a cyclic device should take to get to the target position.\n */\n cyclicDirection?: CyclicDirection;\n /**\n * Number of extra cycles to complete before stopping at the target.\n */\n extraCycles?: number;\n }\n export interface MoveMaxOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveMinOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveRelativeOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveVelocityOptions {\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveIndexOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface GenericCommandOptions {\n /**\n * Controls whether to throw an exception when the device rejects the command.\n */\n checkErrors?: boolean;\n /**\n * The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n */\n timeout?: number;\n }\n export interface GenericCommandMultiResponseOptions {\n /**\n * Controls whether to throw an exception when a device rejects the command.\n */\n checkErrors?: boolean;\n /**\n * The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n */\n timeout?: number;\n }\n export interface CanSetStateOptions {\n /**\n * The firmware version of the device to apply the state to.\n * Use this to ensure the state will still be compatible after an update.\n */\n firmwareVersion?: FirmwareVersion;\n }\n export interface DriverEnableOptions {\n /**\n * Timeout in seconds. Specify 0 to attempt to enable the driver once.\n */\n timeout?: number;\n }\n export interface MoveSinOptions {\n /**\n * Number of sinusoidal cycles to complete.\n * Must be a multiple of 0.5\n * If count is not specified or set to 0, the axis will move indefinitely.\n */\n count?: number;\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveSinStopOptions {\n /**\n * Determines whether function should return after the movement is finished.\n */\n waitUntilIdle?: boolean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,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,WAAW,CACtB,UAAmC,EAAE;QAErC,MAAM,EACJ,aAAa,GAAG,IAAI,GACrB,GAAG,OAAO,CAAC;QACZ,MAAM,OAAO,GAAiD;YAC5D,GAAG,QAAQ,CAAC,iBAAiB,CAAC,OAAO;YACrC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,IAAI,EAAE,IAAI,CAAC,UAAU;YACrB,aAAa,EAAE,aAAa;YAC5B,QAAQ;gBACN,OAAO,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACnD,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF;AAnkCD,oBAmkCC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport { AxisIdentity } from './axis_identity';\nimport { AxisType } from './axis_type';\nimport { Warnings } from './warnings';\nimport { AxisSettings } from './axis_settings';\nimport { Angle, Length, Native, AngularVelocity, Velocity, Acceleration, AngularAcceleration, Units, Time } from '../units';\nimport { Response } from './response';\nimport { Measurement } from '../measurement';\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { AxisStorage } from './storage';\nimport { SetStateAxisResponse } from './set_state_axis_response';\nimport { FirmwareVersion } from '../firmware_version';\nimport { CyclicDirection } from '../cyclic_direction';\nimport { UnitConversionDescriptor } from '../unit_conversion_descriptor';\n\n/**\n * Represents an axis of motion associated with a device.\n */\nexport class Axis {\n /**\n * Device that controls this axis.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The axis number identifies the axis on the device.\n * The first axis has the number one.\n */\n public get axisNumber(): number {\n return this._axisNumber;\n }\n private _axisNumber: number;\n\n /**\n * Settings and properties of this axis.\n */\n public get settings(): AxisSettings {\n return this._settings;\n }\n private _settings: AxisSettings;\n\n /**\n * Key-value storage of this axis.\n * Requires at least Firmware 7.30.\n */\n public get storage(): AxisStorage {\n return this._storage;\n }\n private _storage: AxisStorage;\n\n /**\n * Warnings and faults of this axis.\n */\n public get warnings(): Warnings {\n return this._warnings;\n }\n private _warnings: Warnings;\n\n /**\n * Identity of the axis.\n */\n public get identity(): AxisIdentity {\n return this._retrieveIdentity();\n }\n\n /**\n * Unique ID of the peripheral hardware.\n */\n public get peripheralId(): number {\n return this.identity.peripheralId;\n }\n\n /**\n * Name of the peripheral.\n */\n public get peripheralName(): string {\n return this.identity.peripheralName;\n }\n\n /**\n * Serial number of the peripheral, or 0 when not applicable.\n */\n public get peripheralSerialNumber(): number {\n return this.identity.peripheralSerialNumber;\n }\n\n /**\n * Indicates whether the axis is a peripheral or part of an integrated device.\n */\n public get isPeripheral(): boolean {\n return this.identity.isPeripheral;\n }\n\n /**\n * Determines the type of an axis and units it accepts.\n */\n public get axisType(): AxisType {\n return this.identity.axisType;\n }\n\n /**\n * The number of microsteps per full step for motion axes. Always equal to 0 for non-motion axes.\n */\n public get resolution(): number {\n return this.identity.resolution;\n }\n\n /**\n * User-assigned label of the peripheral.\n */\n public get label(): string {\n return this._retrieveLabel();\n }\n\n constructor(device: Device, axisNumber: number) {\n this._device = device;\n this._axisNumber = axisNumber;\n this._settings = new AxisSettings(this);\n this._storage = new AxisStorage(this);\n this._warnings = new Warnings(device, axisNumber);\n }\n\n /**\n * Homes axis. Axis returns to its homing position.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async home(\n options: Axis.HomeOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.DeviceHomeRequest & gateway.Message = {\n ...requests.DeviceHomeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.DeviceHomeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/home', request);\n }\n\n /**\n * Stops ongoing axis movement. Decelerates until zero speed.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async stop(\n options: Axis.StopOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.DeviceStopRequest & gateway.Message = {\n ...requests.DeviceStopRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.DeviceStopRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stop', request);\n }\n\n /**\n * Parks the axis in anticipation of turning the power off.\n * It can later be powered on, unparked, and moved without first having to home it.\n */\n public async park(): Promise<void> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/park', request);\n }\n\n /**\n * Unparks axis. Axis will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/unpark', request);\n }\n\n /**\n * Returns bool indicating whether the axis is parked or not.\n * @returns True if the axis is currently parked. False otherwise.\n */\n public async isParked(): Promise<boolean> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/is_parked',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Waits until axis stops moving.\n * @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n options: Axis.WaitUntilIdleOptions = {}\n ): Promise<void> {\n const {\n throwErrorOnFault = true,\n } = options;\n const request: requests.DeviceWaitUntilIdleRequest & gateway.Message = {\n ...requests.DeviceWaitUntilIdleRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n throwErrorOnFault: throwErrorOnFault,\n toBinary() {\n return requests.DeviceWaitUntilIdleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/wait_until_idle', request);\n }\n\n /**\n * Returns bool indicating whether the axis is executing a motion command.\n * @returns True if the axis is currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/is_busy',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns bool indicating whether the axis has position reference and was homed.\n * @returns True if the axis has position reference and was homed.\n */\n public async isHomed(): Promise<boolean> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/is_homed',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Move axis to absolute position.\n * @param position Absolute position.\n * @param [unit=Units.NATIVE] Units of position.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n * @param options.cyclicDirection Which direction a cyclic device should take to get to the target position.\n * @param options.extraCycles Number of extra cycles to complete before stopping at the target.\n */\n public async moveAbsolute(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n options: Axis.MoveAbsoluteOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n cyclicDirection,\n extraCycles,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.ABS,\n arg: position,\n unit: unit,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n cyclicDirection: cyclicDirection,\n extraCycles: extraCycles,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Moves the axis to the maximum position as specified by limit.max.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveMax(\n options: Axis.MoveMaxOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.MAX,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Moves the axis to the minimum position as specified by limit.min.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveMin(\n options: Axis.MoveMinOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.MIN,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Move axis to position relative to current position.\n * @param position Relative position.\n * @param [unit=Units.NATIVE] Units of position.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveRelative(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n options: Axis.MoveRelativeOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.REL,\n arg: position,\n unit: unit,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Begins to move axis at specified speed.\n * @param velocity Movement velocity.\n * @param [unit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveVelocity(\n velocity: number,\n unit: Velocity | AngularVelocity | Native = Units.NATIVE,\n options: Axis.MoveVelocityOptions = {}\n ): Promise<void> {\n const {\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.VEL,\n arg: velocity,\n unit: unit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Returns current axis position.\n * @param [unit=Units.NATIVE] Units of position.\n * @returns Axis position.\n */\n public async getPosition(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n setting: 'pos',\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Gets number of index positions of the axis.\n * @returns Number of index positions.\n */\n public async getNumberOfIndexPositions(): Promise<number> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'device/get_index_count',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns current axis index position.\n * @returns Index position starting from 1 or 0 if the position is not an index position.\n */\n public async getIndexPosition(): Promise<number> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'device/get_index_position',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Moves the axis to index position.\n * @param index Index position. Index positions are numbered from 1.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveIndex(\n index: number,\n options: Axis.MoveIndexOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.DeviceMoveRequest & gateway.Message = {\n ...requests.DeviceMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n type: requests.AxisMoveType.INDEX,\n argInt: index,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.DeviceMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Sends a generic ASCII command to this axis.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param [options.checkErrors=true] Controls whether to throw an exception when the device rejects the command.\n * @param [options.timeout=0] The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @returns A response to the command.\n */\n public async genericCommand(\n command: string,\n options: Axis.GenericCommandOptions = {}\n ): Promise<Response> {\n const {\n checkErrors = true,\n timeout = 0,\n } = options;\n const request: requests.GenericCommandRequest & gateway.Message = {\n ...requests.GenericCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n command: command,\n checkErrors: checkErrors,\n timeout: timeout,\n toBinary() {\n return requests.GenericCommandRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<Response>(\n 'interface/generic_command',\n request,\n Response.fromBinary);\n return response;\n }\n\n /**\n * Sends a generic ASCII command to this axis and expect multiple responses.\n * Responses are returned in order of arrival.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param [options.checkErrors=true] Controls whether to throw an exception when a device rejects the command.\n * @param [options.timeout=0] The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @returns All responses to the command.\n */\n public async genericCommandMultiResponse(\n command: string,\n options: Axis.GenericCommandMultiResponseOptions = {}\n ): Promise<Response[]> {\n const {\n checkErrors = true,\n timeout = 0,\n } = options;\n const request: requests.GenericCommandRequest & gateway.Message = {\n ...requests.GenericCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n command: command,\n checkErrors: checkErrors,\n timeout: timeout,\n toBinary() {\n return requests.GenericCommandRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GenericCommandResponseCollection>(\n 'interface/generic_command_multi_response',\n request,\n requests.GenericCommandResponseCollection.fromBinary);\n return response.responses;\n }\n\n /**\n * Sends a generic ASCII command to this axis without expecting a response and without adding a message ID\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n */\n public async genericCommandNoResponse(\n command: string\n ): Promise<void> {\n const request: requests.GenericCommandRequest & gateway.Message = {\n ...requests.GenericCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n command: command,\n toBinary() {\n return requests.GenericCommandRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('interface/generic_command_no_response', request);\n }\n\n /**\n * Formats parameters into a command and performs unit conversions.\n * Parameters in the command template are denoted by a question mark.\n * Command returned is only valid for this axis and this device.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param commandTemplate Template of a command to prepare. Parameters are denoted by question marks.\n * @param parameters Variable number of command parameters.\n * @returns Command with converted parameters.\n */\n public prepareCommand(\n commandTemplate: string,\n ...parameters: Measurement[]\n ): string {\n const request: requests.PrepareCommandRequest & gateway.Message = {\n ...requests.PrepareCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n commandTemplate: commandTemplate,\n parameters: parameters,\n toBinary() {\n return requests.PrepareCommandRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/prepare_command',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Retrieves unit conversion descriptors for a command, allowing unit conversion without a device.\n * The descriptors can be used with the ConvertTo/FromNativeUnits methods of the UnitTable class.\n * Parameters in the command template are denoted by a question mark.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param commandTemplate Template of the command. Parameters are denoted by question marks.\n * @returns Unit conversion descriptor for each parameter in the command. Nil if a parameter does not have conversion.\n */\n public getCommandUnitConversionDescriptors(\n commandTemplate: string\n ): (UnitConversionDescriptor | null)[] {\n const request: requests.PrepareCommandRequest & gateway.Message = {\n ...requests.PrepareCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n commandTemplate: commandTemplate,\n toBinary() {\n return requests.PrepareCommandRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.GetCommandUnitConversionResponse>(\n 'device/get_command_unit_conversion',\n request,\n requests.GetCommandUnitConversionResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets the user-assigned peripheral label.\n * The label is stored on the controller and recognized by other software.\n * @param label Label to set.\n */\n public async setLabel(\n label: string\n ): Promise<void> {\n const request: requests.DeviceSetStorageRequest & gateway.Message = {\n ...requests.DeviceSetStorageRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n value: label,\n toBinary() {\n return requests.DeviceSetStorageRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_label', request);\n }\n\n /**\n * Gets the peripheral name.\n * @returns The label.\n */\n private _retrieveLabel(): string {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/get_label',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string that represents the axis.\n * @returns A string that represents the axis.\n */\n public toString(): string {\n const request: requests.AxisToStringRequest & gateway.Message = {\n ...requests.AxisToStringRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisToStringRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/axis_to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a serialization of the current axis state that can be saved and reapplied.\n * @returns A serialization of the current state of the axis.\n */\n public async getState(): Promise<string> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringResponse>(\n 'device/get_state',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Applies a saved state to this axis.\n * @param state The state object to apply to this axis.\n * @returns Reports of any issues that were handled, but caused the state to not be exactly restored.\n */\n public async setState(\n state: string\n ): Promise<SetStateAxisResponse> {\n const request: requests.SetStateRequest & gateway.Message = {\n ...requests.SetStateRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n state: state,\n toBinary() {\n return requests.SetStateRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<SetStateAxisResponse>(\n 'device/set_axis_state',\n request,\n SetStateAxisResponse.fromBinary);\n return response;\n }\n\n /**\n * Checks if a state can be applied to this axis.\n * This only covers exceptions that can be determined statically such as mismatches of ID or version,\n * the process of applying the state can still fail when running.\n * @param state The state object to check against.\n * @param options.firmwareVersion The firmware version of the device to apply the state to.\n * Use this to ensure the state will still be compatible after an update.\n * @returns An explanation of why this state cannot be set to this axis.\n */\n public async canSetState(\n state: string,\n options: Axis.CanSetStateOptions = {}\n ): Promise<string | null> {\n const {\n firmwareVersion,\n } = options;\n const request: requests.CanSetStateRequest & gateway.Message = {\n ...requests.CanSetStateRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n state: state,\n firmwareVersion: firmwareVersion,\n toBinary() {\n return requests.CanSetStateRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.CanSetStateAxisResponse>(\n 'device/can_set_axis_state',\n request,\n requests.CanSetStateAxisResponse.fromBinary);\n return response.error ?? null;\n }\n\n /**\n * Returns identity.\n * @returns Axis identity.\n */\n private _retrieveIdentity(): AxisIdentity {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<AxisIdentity>(\n 'device/get_axis_identity',\n request,\n AxisIdentity.fromBinary);\n return response;\n }\n\n /**\n * Disables the driver, which prevents current from being sent to the motor or load.\n * If the driver is already disabled, the driver remains disabled.\n */\n public async driverDisable(): Promise<void> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/driver_disable', request);\n }\n\n /**\n * Attempts to enable the driver repeatedly for the specified timeout.\n * If the driver is already enabled, the driver remains enabled.\n * @param [options.timeout=10] Timeout in seconds. Specify 0 to attempt to enable the driver once.\n */\n public async driverEnable(\n options: Axis.DriverEnableOptions = {}\n ): Promise<void> {\n const {\n timeout = 10,\n } = options;\n const request: requests.DriverEnableRequest & gateway.Message = {\n ...requests.DriverEnableRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n timeout: timeout,\n toBinary() {\n return requests.DriverEnableRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/driver_enable', request);\n }\n\n /**\n * Activates a peripheral on this axis.\n * Removes all identity information for the device.\n * Run the identify method on the device after activating to refresh the information.\n */\n public async activate(): Promise<void> {\n const request: requests.AxisEmptyRequest & gateway.Message = {\n ...requests.AxisEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.AxisEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/activate', request);\n }\n\n /**\n * Restores all axis settings to their default values.\n * Deletes all zaber axis storage keys.\n * Disables lockstep if the axis is part of one. Unparks the axis.\n * Preserves storage.\n * The device needs to be identified again after the restore.\n */\n public async restore(): Promise<void> {\n const request: requests.DeviceRestoreRequest & gateway.Message = {\n ...requests.DeviceRestoreRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n toBinary() {\n return requests.DeviceRestoreRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/restore', request);\n }\n\n /**\n * Moves the axis in a sinusoidal trajectory.\n * @param amplitude Amplitude of the sinusoidal motion (half of the motion's peak-to-peak range).\n * @param amplitudeUnits Units of position.\n * @param period Period of the sinusoidal motion in milliseconds.\n * @param periodUnits Units of time.\n * @param [options.count=0] Number of sinusoidal cycles to complete.\n * Must be a multiple of 0.5\n * If count is not specified or set to 0, the axis will move indefinitely.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async moveSin(\n amplitude: number,\n amplitudeUnits: Length | Angle | Native,\n period: number,\n periodUnits: Time | Native,\n options: Axis.MoveSinOptions = {}\n ): Promise<void> {\n const {\n count = 0,\n waitUntilIdle = true,\n } = options;\n const request: requests.DeviceMoveSinRequest & gateway.Message = {\n ...requests.DeviceMoveSinRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n amplitude: amplitude,\n amplitudeUnits: amplitudeUnits,\n period: period,\n periodUnits: periodUnits,\n count: count,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.DeviceMoveSinRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move_sin', request);\n }\n\n /**\n * Stops the axis at the end of the sinusoidal trajectory.\n * If the sinusoidal motion was started with an integer-plus-half cycle count,\n * the motion ends at the half-way point of the sinusoidal trajectory.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished.\n */\n public async moveSinStop(\n options: Axis.MoveSinStopOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.DeviceStopRequest & gateway.Message = {\n ...requests.DeviceStopRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n axis: this.axisNumber,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.DeviceStopRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/move_sin_stop', request);\n }\n}\n\nnamespace Axis {\n export interface HomeOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface StopOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface WaitUntilIdleOptions {\n /**\n * Determines whether to throw error when fault is observed.\n */\n throwErrorOnFault?: boolean;\n }\n export interface MoveAbsoluteOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n /**\n * Which direction a cyclic device should take to get to the target position.\n */\n cyclicDirection?: CyclicDirection;\n /**\n * Number of extra cycles to complete before stopping at the target.\n */\n extraCycles?: number;\n }\n export interface MoveMaxOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveMinOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveRelativeOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveVelocityOptions {\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveIndexOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface GenericCommandOptions {\n /**\n * Controls whether to throw an exception when the device rejects the command.\n */\n checkErrors?: boolean;\n /**\n * The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n */\n timeout?: number;\n }\n export interface GenericCommandMultiResponseOptions {\n /**\n * Controls whether to throw an exception when a device rejects the command.\n */\n checkErrors?: boolean;\n /**\n * The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n */\n timeout?: number;\n }\n export interface CanSetStateOptions {\n /**\n * The firmware version of the device to apply the state to.\n * Use this to ensure the state will still be compatible after an update.\n */\n firmwareVersion?: FirmwareVersion;\n }\n export interface DriverEnableOptions {\n /**\n * Timeout in seconds. Specify 0 to attempt to enable the driver once.\n */\n timeout?: number;\n }\n export interface MoveSinOptions {\n /**\n * Number of sinusoidal cycles to complete.\n * Must be a multiple of 0.5\n * If count is not specified or set to 0, the axis will move indefinitely.\n */\n count?: number;\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveSinStopOptions {\n /**\n * Determines whether function should return after the movement is finished.\n */\n waitUntilIdle?: boolean;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"axis_identity.d.ts","sourceRoot":"","sources":["../../../src/ascii/axis_identity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAc,MAAM,oBAAoB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CAEpB;AAED,eAAO,MAAM,YAAY;yBACF,UAAU,KAAG,YAAY;sBAE5B,YAAY,KAAG,UAAU;;sBAYzB,YAAY,KAAG,YAAY;qBAc5B,KAAK,QAAQ,KAAG,YAAY;iBAUhC,GAAG;CAcjB,CAAC"}
1
+ {"version":3,"file":"axis_identity.d.ts","sourceRoot":"","sources":["../../../src/ascii/axis_identity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CAEpB;AAED,eAAO,MAAM,YAAY;yBACF,UAAU,KAAG,YAAY;sBAE5B,YAAY,KAAG,UAAU;;sBAYzB,YAAY,KAAG,YAAY;qBAc5B,KAAK,QAAQ,KAAG,YAAY;iBAUhC,GAAG;CAcjB,CAAC"}
@@ -47,13 +47,13 @@ exports.AxisIdentity = {
47
47
  const castValue = value;
48
48
  return (value != null &&
49
49
  typeof value === 'object' &&
50
- typeof castValue.peripheralId === typeof exports.AxisIdentity.DEFAULT.peripheralId &&
51
- typeof castValue.peripheralName === typeof exports.AxisIdentity.DEFAULT.peripheralName &&
52
- typeof castValue.peripheralSerialNumber === typeof exports.AxisIdentity.DEFAULT.peripheralSerialNumber &&
53
- typeof castValue.isPeripheral === typeof exports.AxisIdentity.DEFAULT.isPeripheral &&
54
- (0, axis_type_1.isAxisType)(castValue.axisType) &&
55
- typeof castValue.isModified === typeof exports.AxisIdentity.DEFAULT.isModified &&
56
- typeof castValue.resolution === typeof exports.AxisIdentity.DEFAULT.resolution);
50
+ sanitizer_1.sanitizer.isInt(castValue.peripheralId) &&
51
+ sanitizer_1.sanitizer.isString(castValue.peripheralName) &&
52
+ sanitizer_1.sanitizer.isInt(castValue.peripheralSerialNumber) &&
53
+ sanitizer_1.sanitizer.isBool(castValue.isPeripheral) &&
54
+ sanitizer_1.sanitizer.isEnum(castValue.axisType, axis_type_1.AxisType) &&
55
+ sanitizer_1.sanitizer.isBool(castValue.isModified) &&
56
+ sanitizer_1.sanitizer.isInt(castValue.resolution));
57
57
  },
58
58
  };
59
59
  //# sourceMappingURL=axis_identity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"axis_identity.js","sourceRoot":"","sources":["../../../src/ascii/axis_identity.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AACjD,kDAA0D;AA2C7C,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE,CAAC,MAAkB,EAAgB,EAAE,CAAC,oBAAY,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAEvH,QAAQ,EAAE,CAAC,KAAmB,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,oBAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE3F,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,EAAE;QAClB,sBAAsB,EAAE,CAAC;QACzB,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,CAAa;QACvB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,CAAC;KACd,CAA2B;IAE5B,QAAQ,EAAE,CAAC,KAAmB,EAAgB,EAAE;QA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EF,GAAG,EAAE,CAAC,KAAU,EAAyB,EAAE;QACzC,MAAM,SAAS,GAAG,KAAqB,CAAC;QACxC,OAAO,CACL,KAAK,IAAI,IAAI;YACb,OAAO,KAAK,KAAK,QAAQ;YACzB,OAAO,SAAS,CAAC,YAAY,KAAK,OAAO,oBAAY,CAAC,OAAO,CAAC,YAAY;YAC1E,OAAO,SAAS,CAAC,cAAc,KAAK,OAAO,oBAAY,CAAC,OAAO,CAAC,cAAc;YAC9E,OAAO,SAAS,CAAC,sBAAsB,KAAK,OAAO,oBAAY,CAAC,OAAO,CAAC,sBAAsB;YAC9F,OAAO,SAAS,CAAC,YAAY,KAAK,OAAO,oBAAY,CAAC,OAAO,CAAC,YAAY;YAC1E,IAAA,sBAAU,EAAC,SAAS,CAAC,QAAQ,CAAC;YAC9B,OAAO,SAAS,CAAC,UAAU,KAAK,OAAO,oBAAY,CAAC,OAAO,CAAC,UAAU;YACtE,OAAO,SAAS,CAAC,UAAU,KAAK,OAAO,oBAAY,CAAC,OAAO,CAAC,UAAU,CACvE,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\nimport { AxisType, isAxisType } from '../ascii/axis_type';\n\n/**\n * Representation of data gathered during axis identification.\n */\nexport interface AxisIdentity {\n /**\n * Unique ID of the peripheral hardware.\n */\n peripheralId: number;\n\n /**\n * Name of the peripheral.\n */\n peripheralName: string;\n\n /**\n * Serial number of the peripheral, or 0 when not applicable.\n */\n peripheralSerialNumber: number;\n\n /**\n * Indicates whether the axis is a peripheral or part of an integrated device.\n */\n isPeripheral: boolean;\n\n /**\n * Determines the type of an axis and units it accepts.\n */\n axisType: AxisType;\n\n /**\n * The peripheral has hardware modifications.\n */\n isModified: boolean;\n\n /**\n * The number of microsteps per full step for motion axes. Always equal to 0 for non-motion axes.\n */\n resolution: number;\n\n}\n\nexport const AxisIdentity = {\n fromBinary: (buffer: Uint8Array): AxisIdentity => AxisIdentity.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n\n toBinary: (value: AxisIdentity): Uint8Array => BSON.serialize(AxisIdentity.sanitize(value)),\n\n DEFAULT: Object.freeze({\n peripheralId: 0,\n peripheralName: '',\n peripheralSerialNumber: 0,\n isPeripheral: false,\n axisType: 0 as AxisType,\n isModified: false,\n resolution: 0,\n }) as Readonly<AxisIdentity>,\n\n sanitize: (value: AxisIdentity): AxisIdentity => {\n if (value == null) { throw new TypeError('Expected AxisIdentity object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected AxisIdentity object but got ${typeof value}.`) }\n return {\n peripheralId: sanitizer.sanitizeInt(value.peripheralId, 'peripheralId'),\n peripheralName: sanitizer.sanitizeString(value.peripheralName, 'peripheralName'),\n peripheralSerialNumber: sanitizer.sanitizeInt(value.peripheralSerialNumber, 'peripheralSerialNumber'),\n isPeripheral: sanitizer.sanitizeBool(value.isPeripheral, 'isPeripheral'),\n axisType: sanitizer.sanitizeEnum(value.axisType, 'AxisType', AxisType, 'axisType'),\n isModified: sanitizer.sanitizeBool(value.isModified, 'isModified'),\n resolution: sanitizer.sanitizeInt(value.resolution, 'resolution'),\n };\n },\n\n convert: (value: BSON.Document): AxisIdentity => ({\n peripheralId: value.peripheralId,\n peripheralName: value.peripheralName,\n peripheralSerialNumber: Number(value.peripheralSerialNumber),\n isPeripheral: value.isPeripheral,\n axisType: value.axisType,\n isModified: value.isModified,\n resolution: Number(value.resolution),\n }),\n\n isA: (value: any): value is AxisIdentity => {\n const castValue = value as AxisIdentity;\n return (\n value != null &&\n typeof value === 'object' &&\n typeof castValue.peripheralId === typeof AxisIdentity.DEFAULT.peripheralId &&\n typeof castValue.peripheralName === typeof AxisIdentity.DEFAULT.peripheralName &&\n typeof castValue.peripheralSerialNumber === typeof AxisIdentity.DEFAULT.peripheralSerialNumber &&\n typeof castValue.isPeripheral === typeof AxisIdentity.DEFAULT.isPeripheral &&\n isAxisType(castValue.axisType) &&\n typeof castValue.isModified === typeof AxisIdentity.DEFAULT.isModified &&\n typeof castValue.resolution === typeof AxisIdentity.DEFAULT.resolution\n );\n },\n};\n"]}
1
+ {"version":3,"file":"axis_identity.js","sourceRoot":"","sources":["../../../src/ascii/axis_identity.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AACjD,kDAA8C;AA2CjC,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE,CAAC,MAAkB,EAAgB,EAAE,CAAC,oBAAY,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAEvH,QAAQ,EAAE,CAAC,KAAmB,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,oBAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE3F,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,EAAE;QAClB,sBAAsB,EAAE,CAAC;QACzB,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,CAAa;QACvB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,CAAC;KACd,CAA2B;IAE5B,QAAQ,EAAE,CAAC,KAAmB,EAAgB,EAAE;QAC9C,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,yDAAyD,CAAC,CAAA;QAAC,CAAC;QACrG,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,wCAAwC,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QAC/G,OAAO;YACL,YAAY,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,YAAY,EAAE,cAAc,CAAC;YACvE,cAAc,EAAE,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,cAAc,EAAE,gBAAgB,CAAC;Y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AAC,QAAQ,EAAE,oBAAQ,CAAC;YAC9C,qBAAS,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC;YACtC,qBAAS,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CACtC,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\nimport { AxisType } from '../ascii/axis_type';\n\n/**\n * Representation of data gathered during axis identification.\n */\nexport interface AxisIdentity {\n /**\n * Unique ID of the peripheral hardware.\n */\n peripheralId: number;\n\n /**\n * Name of the peripheral.\n */\n peripheralName: string;\n\n /**\n * Serial number of the peripheral, or 0 when not applicable.\n */\n peripheralSerialNumber: number;\n\n /**\n * Indicates whether the axis is a peripheral or part of an integrated device.\n */\n isPeripheral: boolean;\n\n /**\n * Determines the type of an axis and units it accepts.\n */\n axisType: AxisType;\n\n /**\n * The peripheral has hardware modifications.\n */\n isModified: boolean;\n\n /**\n * The number of microsteps per full step for motion axes. Always equal to 0 for non-motion axes.\n */\n resolution: number;\n\n}\n\nexport const AxisIdentity = {\n fromBinary: (buffer: Uint8Array): AxisIdentity => AxisIdentity.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n\n toBinary: (value: AxisIdentity): Uint8Array => BSON.serialize(AxisIdentity.sanitize(value)),\n\n DEFAULT: Object.freeze({\n peripheralId: 0,\n peripheralName: '',\n peripheralSerialNumber: 0,\n isPeripheral: false,\n axisType: 0 as AxisType,\n isModified: false,\n resolution: 0,\n }) as Readonly<AxisIdentity>,\n\n sanitize: (value: AxisIdentity): AxisIdentity => {\n if (value == null) { throw new TypeError('Expected AxisIdentity object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected AxisIdentity object but got ${typeof value}.`) }\n return {\n peripheralId: sanitizer.sanitizeInt(value.peripheralId, 'peripheralId'),\n peripheralName: sanitizer.sanitizeString(value.peripheralName, 'peripheralName'),\n peripheralSerialNumber: sanitizer.sanitizeInt(value.peripheralSerialNumber, 'peripheralSerialNumber'),\n isPeripheral: sanitizer.sanitizeBool(value.isPeripheral, 'isPeripheral'),\n axisType: sanitizer.sanitizeEnum(value.axisType, 'AxisType', AxisType, 'axisType'),\n isModified: sanitizer.sanitizeBool(value.isModified, 'isModified'),\n resolution: sanitizer.sanitizeInt(value.resolution, 'resolution'),\n };\n },\n\n convert: (value: BSON.Document): AxisIdentity => ({\n peripheralId: value.peripheralId,\n peripheralName: value.peripheralName,\n peripheralSerialNumber: Number(value.peripheralSerialNumber),\n isPeripheral: value.isPeripheral,\n axisType: value.axisType,\n isModified: value.isModified,\n resolution: Number(value.resolution),\n }),\n\n isA: (value: any): value is AxisIdentity => {\n const castValue = value as AxisIdentity;\n return (\n value != null &&\n typeof value === 'object' &&\n sanitizer.isInt(castValue.peripheralId) &&\n sanitizer.isString(castValue.peripheralName) &&\n sanitizer.isInt(castValue.peripheralSerialNumber) &&\n sanitizer.isBool(castValue.isPeripheral) &&\n sanitizer.isEnum(castValue.axisType, AxisType) &&\n sanitizer.isBool(castValue.isModified) &&\n sanitizer.isInt(castValue.resolution)\n );\n },\n};\n"]}
@@ -31,8 +31,8 @@ exports.CanSetStateAxisResponse = {
31
31
  const castValue = value;
32
32
  return (value != null &&
33
33
  typeof value === 'object' &&
34
- castValue.error == null || typeof castValue.error === typeof exports.CanSetStateAxisResponse.DEFAULT.error &&
35
- typeof castValue.axisNumber === typeof exports.CanSetStateAxisResponse.DEFAULT.axisNumber);
34
+ (castValue.error == null || sanitizer_1.sanitizer.isString(castValue.error)) &&
35
+ sanitizer_1.sanitizer.isInt(castValue.axisNumber));
36
36
  },
37
37
  };
38
38
  //# sourceMappingURL=can_set_state_axis_response.js.map