@zaber/motion 2.5.1 → 2.7.0-save-load
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.
- package/binding.gyp +2 -3
- package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/{node → lib}/ascii/alert_event.d.ts +0 -0
- package/dist/{node → lib}/ascii/alert_event.js +0 -0
- package/dist/{node → lib}/ascii/alert_event.js.map +0 -0
- package/dist/{node → lib}/ascii/all_axes.d.ts +0 -0
- package/dist/{node → lib}/ascii/all_axes.js +0 -0
- package/dist/{node → lib}/ascii/all_axes.js.map +0 -0
- package/dist/{web → lib}/ascii/axis.d.ts +18 -0
- package/dist/{node → lib}/ascii/axis.js +40 -0
- package/dist/lib/ascii/axis.js.map +1 -0
- package/dist/{node → lib}/ascii/axis_identity.d.ts +0 -0
- package/dist/{node → lib}/ascii/axis_identity.js +0 -0
- package/dist/{node → lib}/ascii/axis_identity.js.map +0 -0
- package/dist/{node → lib}/ascii/axis_settings.d.ts +14 -0
- package/dist/{web → lib}/ascii/axis_settings.js +30 -0
- package/dist/lib/ascii/axis_settings.js.map +1 -0
- package/dist/{node → lib}/ascii/axis_type.d.ts +0 -0
- package/dist/{node → lib}/ascii/axis_type.js +0 -0
- package/dist/{node → lib}/ascii/axis_type.js.map +0 -0
- package/dist/{web → lib}/ascii/connection.d.ts +14 -2
- package/dist/{web → lib}/ascii/connection.js +22 -2
- package/dist/lib/ascii/connection.js.map +1 -0
- package/dist/{web → lib}/ascii/device.d.ts +20 -0
- package/dist/{node → lib}/ascii/device.js +40 -0
- package/dist/lib/ascii/device.js.map +1 -0
- package/dist/{node → lib}/ascii/device_identity.d.ts +0 -0
- package/dist/{node → lib}/ascii/device_identity.js +0 -0
- package/dist/{node → lib}/ascii/device_identity.js.map +0 -0
- package/dist/{node → lib}/ascii/device_io.d.ts +0 -0
- package/dist/{node → lib}/ascii/device_io.js +0 -0
- package/dist/{node → lib}/ascii/device_io.js.map +0 -0
- package/dist/{node → lib}/ascii/device_io_info.d.ts +0 -0
- package/dist/{node → lib}/ascii/device_io_info.js +0 -0
- package/dist/{node → lib}/ascii/device_io_info.js.map +0 -0
- package/dist/{web → lib}/ascii/device_settings.d.ts +14 -0
- package/dist/{web → lib}/ascii/device_settings.js +28 -0
- package/dist/lib/ascii/device_settings.js.map +1 -0
- package/dist/{node → lib}/ascii/index.d.ts +0 -0
- package/dist/{node → lib}/ascii/index.js +0 -0
- package/dist/{node → lib}/ascii/index.js.map +0 -0
- package/dist/{node → lib}/ascii/lockstep.d.ts +0 -0
- package/dist/{node → lib}/ascii/lockstep.js +0 -0
- package/dist/{node → lib}/ascii/lockstep.js.map +0 -0
- package/dist/{node → lib}/ascii/lockstep_axes.d.ts +0 -0
- package/dist/{node → lib}/ascii/lockstep_axes.js +0 -0
- package/dist/{node → lib}/ascii/lockstep_axes.js.map +0 -0
- package/dist/{node → lib}/ascii/message_type.d.ts +0 -0
- package/dist/{node → lib}/ascii/message_type.js +0 -0
- package/dist/{node → lib}/ascii/message_type.js.map +0 -0
- package/dist/{node → lib}/ascii/response.d.ts +0 -0
- package/dist/{node → lib}/ascii/response.js +0 -0
- package/dist/{node → lib}/ascii/response.js.map +0 -0
- package/dist/{web → lib}/ascii/setting_constants.d.ts +360 -0
- package/dist/{node → lib}/ascii/setting_constants.js +360 -0
- package/dist/lib/ascii/setting_constants.js.map +1 -0
- package/dist/{web → lib}/ascii/stream.d.ts +6 -0
- package/dist/{web → lib}/ascii/stream.js +13 -0
- package/dist/lib/ascii/stream.js.map +1 -0
- package/dist/{web → lib}/ascii/stream_axis_definition.d.ts +1 -1
- package/dist/{node → lib}/ascii/stream_axis_definition.js +0 -0
- package/dist/{node → lib}/ascii/stream_axis_definition.js.map +1 -1
- package/dist/{node → lib}/ascii/stream_axis_type.d.ts +0 -0
- package/dist/{node → lib}/ascii/stream_axis_type.js +0 -0
- package/dist/{node → lib}/ascii/stream_axis_type.js.map +0 -0
- package/dist/{node → lib}/ascii/stream_buffer.d.ts +1 -0
- package/dist/{node → lib}/ascii/stream_buffer.js +1 -0
- package/dist/lib/ascii/stream_buffer.js.map +1 -0
- package/dist/{node → lib}/ascii/stream_mode.d.ts +0 -0
- package/dist/{node → lib}/ascii/stream_mode.js +0 -0
- package/dist/{node → lib}/ascii/stream_mode.js.map +0 -0
- package/dist/{node → lib}/ascii/transport.d.ts +0 -0
- package/dist/{node → lib}/ascii/transport.js +0 -0
- package/dist/{node → lib}/ascii/transport.js.map +0 -0
- package/dist/{node → lib}/ascii/unknown_response_event.d.ts +0 -0
- package/dist/{node → lib}/ascii/unknown_response_event.js +0 -0
- package/dist/{node → lib}/ascii/unknown_response_event.js.map +0 -0
- package/dist/{node → lib}/ascii/warning_flags.d.ts +0 -0
- package/dist/{node → lib}/ascii/warning_flags.js +0 -0
- package/dist/{node → lib}/ascii/warning_flags.js.map +0 -0
- package/dist/{node → lib}/ascii/warnings.d.ts +0 -0
- package/dist/{node → lib}/ascii/warnings.js +0 -0
- package/dist/{node → lib}/ascii/warnings.js.map +0 -0
- package/dist/{node → lib}/ascii_ns.d.ts +0 -0
- package/dist/{node → lib}/ascii_ns.js +0 -0
- package/dist/{node → lib}/ascii_ns.js.map +0 -0
- package/dist/{node → lib}/binary/binary_settings.d.ts +0 -0
- package/dist/{node → lib}/binary/binary_settings.js +0 -0
- package/dist/{node → lib}/binary/binary_settings.js.map +0 -0
- package/dist/{node → lib}/binary/command_code.d.ts +0 -0
- package/dist/{node → lib}/binary/command_code.js +0 -0
- package/dist/{node → lib}/binary/command_code.js.map +0 -0
- package/dist/{node → lib}/binary/connection.d.ts +0 -1
- package/dist/{web → lib}/binary/connection.js +0 -1
- package/dist/lib/binary/connection.js.map +1 -0
- package/dist/{node → lib}/binary/device.d.ts +0 -0
- package/dist/{node → lib}/binary/device.js +0 -0
- package/dist/{node → lib}/binary/device.js.map +0 -0
- package/dist/{node → lib}/binary/device_identity.d.ts +0 -0
- package/dist/{node → lib}/binary/device_identity.js +0 -0
- package/dist/{node → lib}/binary/device_identity.js.map +0 -0
- package/dist/{node → lib}/binary/device_settings.d.ts +0 -0
- package/dist/{node → lib}/binary/device_settings.js +0 -0
- package/dist/{node → lib}/binary/device_settings.js.map +0 -0
- package/dist/{node → lib}/binary/device_type.d.ts +0 -0
- package/dist/{node → lib}/binary/device_type.js +0 -0
- package/dist/{node → lib}/binary/device_type.js.map +0 -0
- package/dist/{node → lib}/binary/error_code.d.ts +0 -0
- package/dist/{node → lib}/binary/error_code.js +0 -0
- package/dist/{node → lib}/binary/error_code.js.map +0 -0
- package/dist/{node → lib}/binary/index.d.ts +0 -0
- package/dist/{node → lib}/binary/index.js +0 -0
- package/dist/{node → lib}/binary/index.js.map +0 -0
- package/dist/{node → lib}/binary/message.d.ts +0 -0
- package/dist/{node → lib}/binary/message.js +0 -0
- package/dist/{node → lib}/binary/message.js.map +0 -0
- package/dist/{node → lib}/binary/reply_code.d.ts +0 -0
- package/dist/{node → lib}/binary/reply_code.js +0 -0
- package/dist/{node → lib}/binary/reply_code.js.map +0 -0
- package/dist/{node → lib}/binary/reply_only_event.d.ts +0 -0
- package/dist/{node → lib}/binary/reply_only_event.js +0 -0
- package/dist/{node → lib}/binary/reply_only_event.js.map +0 -0
- package/dist/{node → lib}/binary/unknown_response_event.d.ts +0 -0
- package/dist/{node → lib}/binary/unknown_response_event.js +0 -0
- package/dist/{node → lib}/binary/unknown_response_event.js.map +0 -0
- package/dist/{node → lib}/binary_ns.d.ts +0 -0
- package/dist/{node → lib}/binary_ns.js +0 -0
- package/dist/{node → lib}/binary_ns.js.map +0 -0
- package/dist/lib/can_set_state_axis_response.d.ts +16 -0
- package/dist/lib/can_set_state_axis_response.js +18 -0
- package/dist/lib/can_set_state_axis_response.js.map +1 -0
- package/dist/lib/can_set_state_device_response.d.ts +17 -0
- package/dist/lib/can_set_state_device_response.js +19 -0
- package/dist/lib/can_set_state_device_response.js.map +1 -0
- package/dist/{node → lib}/device_db_source_type.d.ts +0 -0
- package/dist/{node → lib}/device_db_source_type.js +0 -0
- package/dist/{node → lib}/device_db_source_type.js.map +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/command_preempted_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/command_preempted_exception.js +0 -0
- package/dist/{node → lib}/exceptions/command_preempted_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/connection_closed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/connection_closed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/connection_closed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/connection_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/connection_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/connection_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/conversion_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/conversion_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/conversion_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_busy_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_busy_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_busy_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_db_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_db_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_db_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_not_identified_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_not_identified_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_not_identified_exception.js.map +0 -0
- package/dist/lib/exceptions/g_code_execution_exception.d.ts +14 -0
- package/dist/lib/exceptions/g_code_execution_exception.js +32 -0
- package/dist/lib/exceptions/g_code_execution_exception.js.map +1 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.d.ts +17 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.js +18 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.js.map +1 -0
- package/dist/lib/exceptions/g_code_syntax_exception.d.ts +14 -0
- package/dist/lib/exceptions/g_code_syntax_exception.js +32 -0
- package/dist/lib/exceptions/g_code_syntax_exception.js.map +1 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.d.ts +17 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.js +18 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.js.map +1 -0
- package/dist/{web → lib}/exceptions/index.d.ts +8 -0
- package/dist/{node → lib}/exceptions/index.js +18 -1
- package/dist/lib/exceptions/index.js.map +1 -0
- package/dist/{node → lib}/exceptions/internal_error_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/internal_error_exception.js +0 -0
- package/dist/{node → lib}/exceptions/internal_error_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_argument_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_argument_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_argument_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_data_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_data_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_data_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_park_state_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_park_state_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_park_state_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.js +0 -0
- package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/io_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/io_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/io_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/lockstep_enabled_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/lockstep_enabled_exception.js +0 -0
- package/dist/{node → lib}/exceptions/lockstep_enabled_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.js +0 -0
- package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/motion_lib_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/motion_lib_exception.js +0 -0
- package/dist/{node → lib}/exceptions/motion_lib_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception.js +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/no_device_found_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/no_device_found_exception.js +0 -0
- package/dist/{node → lib}/exceptions/no_device_found_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/not_supported_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/not_supported_exception.js +0 -0
- package/dist/{node → lib}/exceptions/not_supported_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/os_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/os_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/os_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/out_of_request_ids_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/out_of_request_ids_exception.js +0 -0
- package/dist/{node → lib}/exceptions/out_of_request_ids_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/request_timeout_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/request_timeout_exception.js +0 -0
- package/dist/{node → lib}/exceptions/request_timeout_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/serial_port_busy_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/serial_port_busy_exception.js +0 -0
- package/dist/{node → lib}/exceptions/serial_port_busy_exception.js.map +0 -0
- package/dist/lib/exceptions/set_device_state_exception_data.d.ts +25 -0
- package/dist/lib/exceptions/set_device_state_exception_data.js +21 -0
- package/dist/lib/exceptions/set_device_state_exception_data.js.map +1 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.d.ts +14 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.js +32 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.js.map +1 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.d.ts +20 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.js +19 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.js.map +1 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.d.ts +14 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.js +32 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.js.map +1 -0
- package/dist/{node → lib}/exceptions/setting_not_found_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/setting_not_found_exception.js +0 -0
- package/dist/{node → lib}/exceptions/setting_not_found_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_mode_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_mode_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_mode_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_setup_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_setup_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_setup_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/transport_already_used_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/transport_already_used_exception.js +0 -0
- package/dist/{node → lib}/exceptions/transport_already_used_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/unknown_request_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/unknown_request_exception.js +0 -0
- package/dist/{node → lib}/exceptions/unknown_request_exception.js.map +0 -0
- package/dist/lib/finalizer.d.ts +5 -0
- package/dist/lib/finalizer.js +21 -0
- package/dist/lib/finalizer.js.map +1 -0
- package/dist/{node → lib}/firmware_version.d.ts +0 -0
- package/dist/{node → lib}/firmware_version.js +0 -0
- package/dist/{node → lib}/firmware_version.js.map +0 -0
- package/dist/lib/gateway/bindings.d.ts +5 -0
- package/dist/lib/gateway/bindings.js +35 -0
- package/dist/lib/gateway/bindings.js.map +1 -0
- package/dist/{node/gateway/bindings.d.ts → lib/gateway/bindings.node.d.ts} +0 -0
- package/dist/{node/gateway/bindings.js → lib/gateway/bindings.node.js} +1 -1
- package/dist/lib/gateway/bindings.node.js.map +1 -0
- package/dist/{web/gateway/bindings.d.ts → lib/gateway/bindings.wasm.d.ts} +0 -0
- package/dist/{web/gateway/bindings.js → lib/gateway/bindings.wasm.js} +2 -1
- package/dist/lib/gateway/bindings.wasm.js.map +1 -0
- package/dist/{node → lib}/gateway/call.d.ts +0 -0
- package/dist/{web → lib}/gateway/call.js +2 -2
- package/dist/lib/gateway/call.js.map +1 -0
- package/dist/{node → lib}/gateway/convert_exceptions.d.ts +0 -0
- package/dist/{node → lib}/gateway/convert_exceptions.js +4 -0
- package/dist/lib/gateway/convert_exceptions.js.map +1 -0
- package/dist/{node → lib}/gateway/events.d.ts +0 -1
- package/dist/{node → lib}/gateway/events.js +4 -7
- package/dist/lib/gateway/events.js.map +1 -0
- package/dist/{node → lib}/gateway/index.d.ts +0 -0
- package/dist/{node → lib}/gateway/index.js +0 -0
- package/dist/{node → lib}/gateway/index.js.map +0 -0
- package/dist/{node → lib}/gateway/serialization.d.ts +0 -0
- package/dist/{node → lib}/gateway/serialization.js +0 -0
- package/dist/{node → lib}/gateway/serialization.js.map +0 -0
- package/dist/lib/gateway/wasm-exec.d.ts +1 -0
- package/dist/{web/wasm → lib/gateway}/wasm-exec.js +13 -54
- package/dist/lib/gateway/wasm-exec.js.map +1 -0
- package/dist/lib/gateway/wasm.d.ts +4 -0
- package/dist/{web/wasm → lib/gateway}/wasm.js +1 -3
- package/dist/lib/gateway/wasm.js.map +1 -0
- package/dist/lib/gcode/axis_mapping.d.ts +16 -0
- package/dist/{web/measurement.js → lib/gcode/axis_mapping.js} +11 -11
- package/dist/lib/gcode/axis_mapping.js.map +1 -0
- package/dist/lib/gcode/index.d.ts +8 -0
- package/dist/lib/gcode/index.js +20 -0
- package/dist/lib/gcode/index.js.map +1 -0
- package/dist/lib/gcode/translate_message.d.ts +21 -0
- package/dist/lib/gcode/translate_message.js +19 -0
- package/dist/lib/gcode/translate_message.js.map +1 -0
- package/dist/lib/gcode/translate_result.d.ts +17 -0
- package/dist/lib/gcode/translate_result.js +19 -0
- package/dist/lib/gcode/translate_result.js.map +1 -0
- package/dist/lib/gcode/translator.d.ts +68 -0
- package/dist/lib/gcode/translator.js +144 -0
- package/dist/lib/gcode/translator.js.map +1 -0
- package/dist/lib/gcode/translator_axis_definition.d.ts +20 -0
- package/dist/lib/gcode/translator_axis_definition.js +48 -0
- package/dist/lib/gcode/translator_axis_definition.js.map +1 -0
- package/dist/lib/gcode/translator_config.d.ts +18 -0
- package/dist/lib/gcode/translator_config.js +41 -0
- package/dist/lib/gcode/translator_config.js.map +1 -0
- package/dist/lib/gcode/translator_definition.d.ts +18 -0
- package/dist/{web/ascii/stream_axis_definition.js → lib/gcode/translator_definition.js} +11 -18
- package/dist/lib/gcode/translator_definition.js.map +1 -0
- package/dist/lib/gcode/translator_live.d.ts +70 -0
- package/dist/lib/gcode/translator_live.js +147 -0
- package/dist/lib/gcode/translator_live.js.map +1 -0
- package/dist/lib/gcode_ns.d.ts +19 -0
- package/dist/{web/tools.js → lib/gcode_ns.js} +14 -20
- package/dist/lib/gcode_ns.js.map +1 -0
- package/dist/{node → lib}/index.d.ts +3 -1
- package/dist/{node → lib}/index.js +6 -2
- package/dist/lib/index.js.map +1 -0
- package/dist/{node → lib}/library.d.ts +0 -0
- package/dist/{node → lib}/library.js +0 -0
- package/dist/{node → lib}/library.js.map +0 -0
- package/dist/{node → lib}/log_output_mode.d.ts +0 -0
- package/dist/{node → lib}/log_output_mode.js +0 -0
- package/dist/{node → lib}/log_output_mode.js.map +0 -0
- package/dist/{web → lib}/measurement.d.ts +1 -1
- package/dist/{node → lib}/measurement.js +0 -0
- package/dist/{node → lib}/measurement.js.map +1 -1
- package/dist/{node → lib}/protobufs/main_pb.d.ts +785 -0
- package/dist/{node → lib}/protobufs/main_pb.js +6039 -2
- package/dist/lib/protobufs/main_pb.js.map +1 -0
- package/dist/{node → lib}/rotation_direction.d.ts +0 -0
- package/dist/{node → lib}/rotation_direction.js +0 -0
- package/dist/{node → lib}/rotation_direction.js.map +0 -0
- package/dist/{node → lib}/tools.d.ts +0 -0
- package/dist/{node → lib}/tools.js +0 -0
- package/dist/{node → lib}/tools.js.map +0 -0
- package/dist/{node → lib}/units.d.ts +0 -0
- package/dist/{node → lib}/units.js +0 -0
- package/dist/{node → lib}/units.js.map +0 -0
- package/dist/lib/wasm.d.ts +4 -0
- package/dist/{web/init.js → lib/wasm.js} +5 -4
- package/dist/lib/wasm.js.map +1 -0
- package/package.json +9 -16
- package/dist/node/ascii/axis.d.ts +0 -172
- package/dist/node/ascii/axis.js.map +0 -1
- package/dist/node/ascii/axis_settings.js +0 -107
- package/dist/node/ascii/axis_settings.js.map +0 -1
- package/dist/node/ascii/connection.d.ts +0 -203
- package/dist/node/ascii/connection.js +0 -380
- package/dist/node/ascii/connection.js.map +0 -1
- package/dist/node/ascii/device.d.ts +0 -165
- package/dist/node/ascii/device.js.map +0 -1
- package/dist/node/ascii/device_settings.d.ts +0 -41
- package/dist/node/ascii/device_settings.js +0 -103
- package/dist/node/ascii/device_settings.js.map +0 -1
- package/dist/node/ascii/setting_constants.d.ts +0 -563
- package/dist/node/ascii/setting_constants.js.map +0 -1
- package/dist/node/ascii/stream.d.ts +0 -307
- package/dist/node/ascii/stream.js +0 -659
- package/dist/node/ascii/stream.js.map +0 -1
- package/dist/node/ascii/stream_axis_definition.d.ts +0 -17
- package/dist/node/ascii/stream_buffer.js.map +0 -1
- package/dist/node/binary/connection.js +0 -211
- package/dist/node/binary/connection.js.map +0 -1
- package/dist/node/exceptions/index.d.ts +0 -48
- package/dist/node/exceptions/index.js.map +0 -1
- package/dist/node/gateway/bindings.js.map +0 -1
- package/dist/node/gateway/call.js +0 -46
- package/dist/node/gateway/call.js.map +0 -1
- package/dist/node/gateway/convert_exceptions.js.map +0 -1
- package/dist/node/gateway/events.js.map +0 -1
- package/dist/node/index.js.map +0 -1
- package/dist/node/init.d.ts +0 -1
- package/dist/node/init.js +0 -8
- package/dist/node/init.js.map +0 -1
- package/dist/node/measurement.d.ts +0 -17
- package/dist/web/ascii/alert_event.d.ts +0 -28
- package/dist/web/ascii/alert_event.js +0 -21
- package/dist/web/ascii/alert_event.js.map +0 -1
- package/dist/web/ascii/all_axes.d.ts +0 -46
- package/dist/web/ascii/all_axes.js +0 -122
- package/dist/web/ascii/all_axes.js.map +0 -1
- package/dist/web/ascii/axis.js +0 -367
- package/dist/web/ascii/axis.js.map +0 -1
- package/dist/web/ascii/axis_identity.d.ts +0 -29
- package/dist/web/ascii/axis_identity.js +0 -21
- package/dist/web/ascii/axis_identity.js.map +0 -1
- package/dist/web/ascii/axis_settings.d.ts +0 -41
- package/dist/web/ascii/axis_settings.js.map +0 -1
- package/dist/web/ascii/axis_type.d.ts +0 -8
- package/dist/web/ascii/axis_type.js +0 -15
- package/dist/web/ascii/axis_type.js.map +0 -1
- package/dist/web/ascii/connection.js.map +0 -1
- package/dist/web/ascii/device.js +0 -296
- package/dist/web/ascii/device.js.map +0 -1
- package/dist/web/ascii/device_identity.d.ts +0 -33
- package/dist/web/ascii/device_identity.js +0 -23
- package/dist/web/ascii/device_identity.js.map +0 -1
- package/dist/web/ascii/device_io.d.ts +0 -80
- package/dist/web/ascii/device_io.js +0 -199
- package/dist/web/ascii/device_io.js.map +0 -1
- package/dist/web/ascii/device_io_info.d.ts +0 -24
- package/dist/web/ascii/device_io_info.js +0 -20
- package/dist/web/ascii/device_io_info.js.map +0 -1
- package/dist/web/ascii/device_settings.js.map +0 -1
- package/dist/web/ascii/index.d.ts +0 -26
- package/dist/web/ascii/index.js +0 -56
- package/dist/web/ascii/index.js.map +0 -1
- package/dist/web/ascii/lockstep.d.ts +0 -120
- package/dist/web/ascii/lockstep.js +0 -281
- package/dist/web/ascii/lockstep.js.map +0 -1
- package/dist/web/ascii/lockstep_axes.d.ts +0 -24
- package/dist/web/ascii/lockstep_axes.js +0 -20
- package/dist/web/ascii/lockstep_axes.js.map +0 -1
- package/dist/web/ascii/message_type.d.ts +0 -10
- package/dist/web/ascii/message_type.js +0 -17
- package/dist/web/ascii/message_type.js.map +0 -1
- package/dist/web/ascii/response.d.ts +0 -37
- package/dist/web/ascii/response.js +0 -23
- package/dist/web/ascii/response.js.map +0 -1
- package/dist/web/ascii/setting_constants.js +0 -570
- package/dist/web/ascii/setting_constants.js.map +0 -1
- package/dist/web/ascii/stream.js.map +0 -1
- package/dist/web/ascii/stream_axis_definition.js.map +0 -1
- package/dist/web/ascii/stream_axis_type.d.ts +0 -7
- package/dist/web/ascii/stream_axis_type.js +0 -14
- package/dist/web/ascii/stream_axis_type.js.map +0 -1
- package/dist/web/ascii/stream_buffer.d.ts +0 -27
- package/dist/web/ascii/stream_buffer.js +0 -71
- package/dist/web/ascii/stream_buffer.js.map +0 -1
- package/dist/web/ascii/stream_mode.d.ts +0 -9
- package/dist/web/ascii/stream_mode.js +0 -16
- package/dist/web/ascii/stream_mode.js.map +0 -1
- package/dist/web/ascii/transport.d.ts +0 -38
- package/dist/web/ascii/transport.js +0 -91
- package/dist/web/ascii/transport.js.map +0 -1
- package/dist/web/ascii/unknown_response_event.d.ts +0 -37
- package/dist/web/ascii/unknown_response_event.js +0 -23
- package/dist/web/ascii/unknown_response_event.js.map +0 -1
- package/dist/web/ascii/warning_flags.d.ts +0 -137
- package/dist/web/ascii/warning_flags.js +0 -144
- package/dist/web/ascii/warning_flags.js.map +0 -1
- package/dist/web/ascii/warnings.d.ts +0 -19
- package/dist/web/ascii/warnings.js +0 -62
- package/dist/web/ascii/warnings.js.map +0 -1
- package/dist/web/ascii_ns.d.ts +0 -55
- package/dist/web/ascii_ns.js +0 -53
- package/dist/web/ascii_ns.js.map +0 -1
- package/dist/web/binary/binary_settings.d.ts +0 -70
- package/dist/web/binary/binary_settings.js +0 -77
- package/dist/web/binary/binary_settings.js.map +0 -1
- package/dist/web/binary/command_code.d.ts +0 -102
- package/dist/web/binary/command_code.js +0 -109
- package/dist/web/binary/command_code.js.map +0 -1
- package/dist/web/binary/connection.d.ts +0 -115
- package/dist/web/binary/connection.js.map +0 -1
- package/dist/web/binary/device.d.ts +0 -192
- package/dist/web/binary/device.js +0 -375
- package/dist/web/binary/device.js.map +0 -1
- package/dist/web/binary/device_identity.d.ts +0 -42
- package/dist/web/binary/device_identity.js +0 -25
- package/dist/web/binary/device_identity.js.map +0 -1
- package/dist/web/binary/device_settings.d.ts +0 -24
- package/dist/web/binary/device_settings.js +0 -66
- package/dist/web/binary/device_settings.js.map +0 -1
- package/dist/web/binary/device_type.d.ts +0 -8
- package/dist/web/binary/device_type.js +0 -15
- package/dist/web/binary/device_type.js.map +0 -1
- package/dist/web/binary/error_code.d.ts +0 -97
- package/dist/web/binary/error_code.js +0 -104
- package/dist/web/binary/error_code.js.map +0 -1
- package/dist/web/binary/index.d.ts +0 -12
- package/dist/web/binary/index.js +0 -28
- package/dist/web/binary/index.js.map +0 -1
- package/dist/web/binary/message.d.ts +0 -20
- package/dist/web/binary/message.js +0 -19
- package/dist/web/binary/message.js.map +0 -1
- package/dist/web/binary/reply_code.d.ts +0 -12
- package/dist/web/binary/reply_code.js +0 -19
- package/dist/web/binary/reply_code.js.map +0 -1
- package/dist/web/binary/reply_only_event.d.ts +0 -20
- package/dist/web/binary/reply_only_event.js +0 -19
- package/dist/web/binary/reply_only_event.js.map +0 -1
- package/dist/web/binary/unknown_response_event.d.ts +0 -20
- package/dist/web/binary/unknown_response_event.js +0 -19
- package/dist/web/binary/unknown_response_event.js.map +0 -1
- package/dist/web/binary_ns.d.ts +0 -27
- package/dist/web/binary_ns.js +0 -39
- package/dist/web/binary_ns.js.map +0 -1
- package/dist/web/device_db_source_type.d.ts +0 -7
- package/dist/web/device_db_source_type.js +0 -14
- package/dist/web/device_db_source_type.js.map +0 -1
- package/dist/web/exceptions/binary_command_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/binary_command_failed_exception.js +0 -32
- package/dist/web/exceptions/binary_command_failed_exception.js.map +0 -1
- package/dist/web/exceptions/binary_command_failed_exception_data.d.ts +0 -12
- package/dist/web/exceptions/binary_command_failed_exception_data.js +0 -17
- package/dist/web/exceptions/binary_command_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/command_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/command_failed_exception.js +0 -32
- package/dist/web/exceptions/command_failed_exception.js.map +0 -1
- package/dist/web/exceptions/command_failed_exception_data.d.ts +0 -24
- package/dist/web/exceptions/command_failed_exception_data.js +0 -20
- package/dist/web/exceptions/command_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/command_preempted_exception.d.ts +0 -7
- package/dist/web/exceptions/command_preempted_exception.js +0 -17
- package/dist/web/exceptions/command_preempted_exception.js.map +0 -1
- package/dist/web/exceptions/connection_closed_exception.d.ts +0 -7
- package/dist/web/exceptions/connection_closed_exception.js +0 -17
- package/dist/web/exceptions/connection_closed_exception.js.map +0 -1
- package/dist/web/exceptions/connection_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/connection_failed_exception.js +0 -17
- package/dist/web/exceptions/connection_failed_exception.js.map +0 -1
- package/dist/web/exceptions/conversion_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/conversion_failed_exception.js +0 -17
- package/dist/web/exceptions/conversion_failed_exception.js.map +0 -1
- package/dist/web/exceptions/device_address_conflict_exception.d.ts +0 -14
- package/dist/web/exceptions/device_address_conflict_exception.js +0 -32
- package/dist/web/exceptions/device_address_conflict_exception.js.map +0 -1
- package/dist/web/exceptions/device_address_conflict_exception_data.d.ts +0 -12
- package/dist/web/exceptions/device_address_conflict_exception_data.js +0 -17
- package/dist/web/exceptions/device_address_conflict_exception_data.js.map +0 -1
- package/dist/web/exceptions/device_busy_exception.d.ts +0 -7
- package/dist/web/exceptions/device_busy_exception.js +0 -17
- package/dist/web/exceptions/device_busy_exception.js.map +0 -1
- package/dist/web/exceptions/device_db_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/device_db_failed_exception.js +0 -17
- package/dist/web/exceptions/device_db_failed_exception.js.map +0 -1
- package/dist/web/exceptions/device_failed_exception.d.ts +0 -8
- package/dist/web/exceptions/device_failed_exception.js +0 -18
- package/dist/web/exceptions/device_failed_exception.js.map +0 -1
- package/dist/web/exceptions/device_not_identified_exception.d.ts +0 -7
- package/dist/web/exceptions/device_not_identified_exception.js +0 -17
- package/dist/web/exceptions/device_not_identified_exception.js.map +0 -1
- package/dist/web/exceptions/index.js +0 -102
- package/dist/web/exceptions/index.js.map +0 -1
- package/dist/web/exceptions/internal_error_exception.d.ts +0 -7
- package/dist/web/exceptions/internal_error_exception.js +0 -17
- package/dist/web/exceptions/internal_error_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_argument_exception.d.ts +0 -7
- package/dist/web/exceptions/invalid_argument_exception.js +0 -17
- package/dist/web/exceptions/invalid_argument_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_data_exception.d.ts +0 -7
- package/dist/web/exceptions/invalid_data_exception.js +0 -17
- package/dist/web/exceptions/invalid_data_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_packet_exception.d.ts +0 -14
- package/dist/web/exceptions/invalid_packet_exception.js +0 -32
- package/dist/web/exceptions/invalid_packet_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_packet_exception_data.d.ts +0 -16
- package/dist/web/exceptions/invalid_packet_exception_data.js +0 -18
- package/dist/web/exceptions/invalid_packet_exception_data.js.map +0 -1
- package/dist/web/exceptions/invalid_park_state_exception.d.ts +0 -7
- package/dist/web/exceptions/invalid_park_state_exception.js +0 -17
- package/dist/web/exceptions/invalid_park_state_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_response_exception.d.ts +0 -14
- package/dist/web/exceptions/invalid_response_exception.js +0 -32
- package/dist/web/exceptions/invalid_response_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_response_exception_data.d.ts +0 -12
- package/dist/web/exceptions/invalid_response_exception_data.js +0 -17
- package/dist/web/exceptions/invalid_response_exception_data.js.map +0 -1
- package/dist/web/exceptions/io_channel_out_of_range_exception.d.ts +0 -7
- package/dist/web/exceptions/io_channel_out_of_range_exception.js +0 -17
- package/dist/web/exceptions/io_channel_out_of_range_exception.js.map +0 -1
- package/dist/web/exceptions/io_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/io_failed_exception.js +0 -17
- package/dist/web/exceptions/io_failed_exception.js.map +0 -1
- package/dist/web/exceptions/lockstep_enabled_exception.d.ts +0 -7
- package/dist/web/exceptions/lockstep_enabled_exception.js +0 -17
- package/dist/web/exceptions/lockstep_enabled_exception.js.map +0 -1
- package/dist/web/exceptions/lockstep_not_enabled_exception.d.ts +0 -7
- package/dist/web/exceptions/lockstep_not_enabled_exception.js +0 -17
- package/dist/web/exceptions/lockstep_not_enabled_exception.js.map +0 -1
- package/dist/web/exceptions/motion_lib_exception.d.ts +0 -8
- package/dist/web/exceptions/motion_lib_exception.js +0 -15
- package/dist/web/exceptions/motion_lib_exception.js.map +0 -1
- package/dist/web/exceptions/movement_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/movement_failed_exception.js +0 -32
- package/dist/web/exceptions/movement_failed_exception.js.map +0 -1
- package/dist/web/exceptions/movement_failed_exception_data.d.ts +0 -16
- package/dist/web/exceptions/movement_failed_exception_data.js +0 -18
- package/dist/web/exceptions/movement_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/movement_interrupted_exception.d.ts +0 -14
- package/dist/web/exceptions/movement_interrupted_exception.js +0 -32
- package/dist/web/exceptions/movement_interrupted_exception.js.map +0 -1
- package/dist/web/exceptions/movement_interrupted_exception_data.d.ts +0 -16
- package/dist/web/exceptions/movement_interrupted_exception_data.js +0 -18
- package/dist/web/exceptions/movement_interrupted_exception_data.js.map +0 -1
- package/dist/web/exceptions/no_device_found_exception.d.ts +0 -7
- package/dist/web/exceptions/no_device_found_exception.js +0 -17
- package/dist/web/exceptions/no_device_found_exception.js.map +0 -1
- package/dist/web/exceptions/not_supported_exception.d.ts +0 -7
- package/dist/web/exceptions/not_supported_exception.js +0 -17
- package/dist/web/exceptions/not_supported_exception.js.map +0 -1
- package/dist/web/exceptions/os_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/os_failed_exception.js +0 -17
- package/dist/web/exceptions/os_failed_exception.js.map +0 -1
- package/dist/web/exceptions/out_of_request_ids_exception.d.ts +0 -7
- package/dist/web/exceptions/out_of_request_ids_exception.js +0 -17
- package/dist/web/exceptions/out_of_request_ids_exception.js.map +0 -1
- package/dist/web/exceptions/request_timeout_exception.d.ts +0 -7
- package/dist/web/exceptions/request_timeout_exception.js +0 -17
- package/dist/web/exceptions/request_timeout_exception.js.map +0 -1
- package/dist/web/exceptions/serial_port_busy_exception.d.ts +0 -7
- package/dist/web/exceptions/serial_port_busy_exception.js +0 -17
- package/dist/web/exceptions/serial_port_busy_exception.js.map +0 -1
- package/dist/web/exceptions/setting_not_found_exception.d.ts +0 -7
- package/dist/web/exceptions/setting_not_found_exception.js +0 -17
- package/dist/web/exceptions/setting_not_found_exception.js.map +0 -1
- package/dist/web/exceptions/stream_execution_exception.d.ts +0 -14
- package/dist/web/exceptions/stream_execution_exception.js +0 -32
- package/dist/web/exceptions/stream_execution_exception.js.map +0 -1
- package/dist/web/exceptions/stream_execution_exception_data.d.ts +0 -16
- package/dist/web/exceptions/stream_execution_exception_data.js +0 -18
- package/dist/web/exceptions/stream_execution_exception_data.js.map +0 -1
- package/dist/web/exceptions/stream_mode_exception.d.ts +0 -7
- package/dist/web/exceptions/stream_mode_exception.js +0 -17
- package/dist/web/exceptions/stream_mode_exception.js.map +0 -1
- package/dist/web/exceptions/stream_movement_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/stream_movement_failed_exception.js +0 -32
- package/dist/web/exceptions/stream_movement_failed_exception.js.map +0 -1
- package/dist/web/exceptions/stream_movement_failed_exception_data.d.ts +0 -16
- package/dist/web/exceptions/stream_movement_failed_exception_data.js +0 -18
- package/dist/web/exceptions/stream_movement_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/stream_movement_interrupted_exception.d.ts +0 -14
- package/dist/web/exceptions/stream_movement_interrupted_exception.js +0 -32
- package/dist/web/exceptions/stream_movement_interrupted_exception.js.map +0 -1
- package/dist/web/exceptions/stream_movement_interrupted_exception_data.d.ts +0 -16
- package/dist/web/exceptions/stream_movement_interrupted_exception_data.js +0 -18
- package/dist/web/exceptions/stream_movement_interrupted_exception_data.js.map +0 -1
- package/dist/web/exceptions/stream_setup_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/stream_setup_failed_exception.js +0 -17
- package/dist/web/exceptions/stream_setup_failed_exception.js.map +0 -1
- package/dist/web/exceptions/transport_already_used_exception.d.ts +0 -7
- package/dist/web/exceptions/transport_already_used_exception.js +0 -17
- package/dist/web/exceptions/transport_already_used_exception.js.map +0 -1
- package/dist/web/exceptions/unknown_request_exception.d.ts +0 -7
- package/dist/web/exceptions/unknown_request_exception.js +0 -17
- package/dist/web/exceptions/unknown_request_exception.js.map +0 -1
- package/dist/web/firmware_version.d.ts +0 -20
- package/dist/web/firmware_version.js +0 -19
- package/dist/web/firmware_version.js.map +0 -1
- package/dist/web/gateway/bindings.js.map +0 -1
- package/dist/web/gateway/call.d.ts +0 -6
- package/dist/web/gateway/call.js.map +0 -1
- package/dist/web/gateway/convert_exceptions.d.ts +0 -4
- package/dist/web/gateway/convert_exceptions.js +0 -74
- package/dist/web/gateway/convert_exceptions.js.map +0 -1
- package/dist/web/gateway/events.d.ts +0 -9
- package/dist/web/gateway/events.js +0 -60
- package/dist/web/gateway/events.js.map +0 -1
- package/dist/web/gateway/index.d.ts +0 -4
- package/dist/web/gateway/index.js +0 -23
- package/dist/web/gateway/index.js.map +0 -1
- package/dist/web/gateway/serialization.d.ts +0 -6
- package/dist/web/gateway/serialization.js +0 -39
- package/dist/web/gateway/serialization.js.map +0 -1
- package/dist/web/index.d.ts +0 -12
- package/dist/web/index.js +0 -33
- package/dist/web/index.js.map +0 -1
- package/dist/web/init.d.ts +0 -5
- package/dist/web/init.js.map +0 -1
- package/dist/web/library.d.ts +0 -30
- package/dist/web/library.js +0 -73
- package/dist/web/library.js.map +0 -1
- package/dist/web/log_output_mode.d.ts +0 -9
- package/dist/web/log_output_mode.js +0 -16
- package/dist/web/log_output_mode.js.map +0 -1
- package/dist/web/measurement.js.map +0 -1
- package/dist/web/protobufs/main_pb.d.ts +0 -5228
- package/dist/web/protobufs/main_pb.js +0 -39387
- package/dist/web/rotation_direction.d.ts +0 -9
- package/dist/web/rotation_direction.js +0 -16
- package/dist/web/rotation_direction.js.map +0 -1
- package/dist/web/tools.d.ts +0 -10
- package/dist/web/tools.js.map +0 -1
- package/dist/web/units.d.ts +0 -147
- package/dist/web/units.js +0 -167
- package/dist/web/units.js.map +0 -1
- package/dist/web/wasm/wasm-exec.d.ts +0 -1
- package/dist/web/wasm/wasm-exec.js.map +0 -1
- package/dist/web/wasm/wasm.d.ts +0 -14
- package/dist/web/wasm/wasm.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream.js","sourceRoot":"","sources":["../../../src/ascii/stream.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;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,GAAG,OAAO,CAAC,QAAQ,CAC/B,wBAAwB,EACxB,OAAO,EACP,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACjC,OAAO,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC5B,CAAC;CACF;AA9zBD,wBA8zBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport { Time, Native, Acceleration, AngularVelocity, Velocity, Units } from '../units';\nimport { RotationDirection } from '../rotation_direction';\nimport * as gateway from '../gateway';\nimport { Measurement } from '../measurement';\nimport { StreamBuffer } from './stream_buffer';\nimport { StreamMode } from './stream_mode';\nimport { StreamAxisDefinition } from './stream_axis_definition';\n\n/**\n * A handle for a stream with this ID on the device.\n * Streams provide a way to execute or store a sequence of actions.\n * Stream methods append actions to a queue which executes or stores actions in a first in, first out order.\n */\nexport class Stream {\n /**\n * Device that controls this stream.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The number that identifies the stream on the device.\n */\n public get streamId(): number {\n return this._streamId;\n }\n private _streamId: number;\n\n /**\n * Current mode of the stream.\n */\n public get mode(): StreamMode {\n return this._retrieveMode();\n }\n\n /**\n * An array of axes definitions the stream is set up to control.\n */\n public get axes(): StreamAxisDefinition[] {\n return this._retrieveAxes();\n }\n\n constructor(device: Device, streamId: number) {\n this._device = device;\n this._streamId = streamId;\n }\n\n /**\n * Setup the stream to control the specified axes and to queue actions on the device.\n * Allows use of lockstep axes in a stream.\n * @param axes Definition of the stream axes.\n */\n public async setupLiveComposite(\n ...axes: StreamAxisDefinition[]\n ): Promise<void> {\n const request = new gateway.StreamSetupLiveCompositeRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setAxesList(axes.map(StreamAxisDefinition.toProtobuf));\n\n await gateway.callAsync('device/stream_setup_live_composite', request);\n }\n\n /**\n * Setup the stream to control the specified axes and to queue actions on the device.\n * @param axes Numbers of physical axes to setup the stream on.\n */\n public async setupLive(\n ...axes: number[]\n ): Promise<void> {\n const request = new gateway.StreamSetupLiveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setAxesList(axes);\n\n await gateway.callAsync('device/stream_setup_live', request);\n }\n\n /**\n * Setup the stream to control the specified axes and queue actions into a stream buffer.\n * Allows use of lockstep axes in a stream.\n * @param streamBuffer The stream buffer to queue actions in.\n * @param axes Definition of the stream axes.\n */\n public async setupStoreComposite(\n streamBuffer: StreamBuffer,\n ...axes: StreamAxisDefinition[]\n ): Promise<void> {\n const request = new gateway.StreamSetupStoreCompositeRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setStreamBuffer(streamBuffer.bufferId);\n request.setAxesList(axes.map(StreamAxisDefinition.toProtobuf));\n\n await gateway.callAsync('device/stream_setup_store_composite', request);\n }\n\n /**\n * Setup the stream to control the specified axes and queue actions into a stream buffer.\n * @param streamBuffer The stream buffer to queue actions in.\n * @param axes Numbers of physical axes to setup the stream on.\n */\n public async setupStore(\n streamBuffer: StreamBuffer,\n ...axes: number[]\n ): Promise<void> {\n const request = new gateway.StreamSetupStoreRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setStreamBuffer(streamBuffer.bufferId);\n request.setAxesList(axes);\n\n await gateway.callAsync('device/stream_setup_store', request);\n }\n\n /**\n * Setup the stream to use a specified number of axes, and to queue actions in a stream buffer.\n * Afterwards, you may call the resulting stream buffer on arbitrary axes.\n * This mode does not allow for unit conversions.\n * @param streamBuffer The stream buffer to queue actions in.\n * @param axesCount The number of axes in the stream.\n */\n public async setupStoreArbitraryAxes(\n streamBuffer: StreamBuffer,\n axesCount: number\n ): Promise<void> {\n const request = new gateway.StreamSetupStoreArbitraryAxesRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setStreamBuffer(streamBuffer.bufferId);\n request.setAxesCount(axesCount);\n\n await gateway.callAsync('device/stream_setup_store_arbitrary_axes', request);\n }\n\n /**\n * Append the actions in a stream buffer to the queue.\n * @param streamBuffer The stream buffer to call.\n */\n public async call(\n streamBuffer: StreamBuffer\n ): Promise<void> {\n const request = new gateway.StreamCallRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setStreamBuffer(streamBuffer.bufferId);\n\n await gateway.callAsync('device/stream_call', request);\n }\n\n /**\n * Queue an absolute line movement in the stream.\n * @param endpoint Positions for the axes to move to, relative to their home positions.\n */\n public async lineAbsolute(\n ...endpoint: Measurement[]\n ): Promise<void> {\n const request = new gateway.StreamLineRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamLineRequest.Type.ABS);\n request.setEndpointList(endpoint.map(Measurement.toProtobuf));\n\n await gateway.callAsync('device/stream_line', request);\n }\n\n /**\n * Queue a relative line movement in the stream.\n * @param endpoint Positions for the axes to move to, relative to their positions before movement.\n */\n public async lineRelative(\n ...endpoint: Measurement[]\n ): Promise<void> {\n const request = new gateway.StreamLineRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamLineRequest.Type.REL);\n request.setEndpointList(endpoint.map(Measurement.toProtobuf));\n\n await gateway.callAsync('device/stream_line', request);\n }\n\n /**\n * Queue an absolute line movement in the stream, targeting a subset of the stream axes.\n * @param targetAxesIndices Indices of the axes in the stream the movement targets.\n * Refers to the axes provided during the stream setup or further execution.\n * Indices are zero-based.\n * @param endpoint Positions for the axes to move to, relative to their home positions.\n */\n public async lineAbsoluteOn(\n targetAxesIndices: number[],\n endpoint: Measurement[]\n ): Promise<void> {\n const request = new gateway.StreamLineRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamLineRequest.Type.ABS);\n request.setTargetAxesIndicesList(targetAxesIndices);\n request.setEndpointList(endpoint.map(Measurement.toProtobuf));\n\n await gateway.callAsync('device/stream_line', request);\n }\n\n /**\n * Queue a relative line movement in the stream, targeting a subset of the stream axes.\n * @param targetAxesIndices Indices of the axes in the stream the movement targets.\n * Refers to the axes provided during the stream setup or further execution.\n * Indices are zero-based.\n * @param endpoint Positions for the axes to move to, relative to their positions before movement.\n */\n public async lineRelativeOn(\n targetAxesIndices: number[],\n endpoint: Measurement[]\n ): Promise<void> {\n const request = new gateway.StreamLineRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamLineRequest.Type.REL);\n request.setTargetAxesIndicesList(targetAxesIndices);\n request.setEndpointList(endpoint.map(Measurement.toProtobuf));\n\n await gateway.callAsync('device/stream_line', request);\n }\n\n /**\n * Queue an absolute arc movement on the first two axes of the stream.\n * Absolute meaning that the home positions of the axes is treated as the origin.\n * @param rotationDirection The direction of the rotation.\n * @param centerX The first dimensions of the position of the center of the circle on which the arc exists.\n * @param centerY The second dimensions of the position of the center of the circle on which the arc exists.\n * @param endX The first dimensions of the end position of the arc.\n * @param endY The second dimensions of the end position of the arc.\n */\n public async arcAbsolute(\n rotationDirection: RotationDirection,\n centerX: Measurement,\n centerY: Measurement,\n endX: Measurement,\n endY: Measurement\n ): Promise<void> {\n const request = new gateway.StreamArcRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamArcRequest.Type.ABS);\n request.setRotationDirection(rotationDirection as any);\n request.setCenterX(Measurement.toProtobuf(centerX));\n request.setCenterY(Measurement.toProtobuf(centerY));\n request.setEndX(Measurement.toProtobuf(endX));\n request.setEndY(Measurement.toProtobuf(endY));\n\n await gateway.callAsync('device/stream_arc', request);\n }\n\n /**\n * Queue a relative arc movement on the first two axes of the stream.\n * Relative meaning that the current position of the axes is treated as the origin.\n * @param rotationDirection The direction of the rotation.\n * @param centerX The first dimensions of the position of the center of the circle on which the arc exists.\n * @param centerY The second dimensions of the position of the center of the circle on which the arc exists.\n * @param endX The first dimensions of the end position of the arc.\n * @param endY The second dimensions of the end position of the arc.\n */\n public async arcRelative(\n rotationDirection: RotationDirection,\n centerX: Measurement,\n centerY: Measurement,\n endX: Measurement,\n endY: Measurement\n ): Promise<void> {\n const request = new gateway.StreamArcRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamArcRequest.Type.REL);\n request.setRotationDirection(rotationDirection as any);\n request.setCenterX(Measurement.toProtobuf(centerX));\n request.setCenterY(Measurement.toProtobuf(centerY));\n request.setEndX(Measurement.toProtobuf(endX));\n request.setEndY(Measurement.toProtobuf(endY));\n\n await gateway.callAsync('device/stream_arc', request);\n }\n\n /**\n * Queue an absolute arc movement in the stream.\n * The movement will only target the specified subset of axes in the stream.\n * @param targetAxesIndices Indices of the axes in the stream the movement targets.\n * Refers to the axes provided during the stream setup or further execution.\n * Indices are zero-based.\n * @param rotationDirection The direction of the rotation.\n * @param centerX The first dimensions of the position of the center of the circle on which the arc exists.\n * @param centerY The second dimensions of the position of the center of the circle on which the arc exists.\n * @param endX The first dimensions of the end position of the arc.\n * @param endY The second dimensions of the end position of the arc.\n */\n public async arcAbsoluteOn(\n targetAxesIndices: number[],\n rotationDirection: RotationDirection,\n centerX: Measurement,\n centerY: Measurement,\n endX: Measurement,\n endY: Measurement\n ): Promise<void> {\n const request = new gateway.StreamArcRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamArcRequest.Type.ABS);\n request.setTargetAxesIndicesList(targetAxesIndices);\n request.setRotationDirection(rotationDirection as any);\n request.setCenterX(Measurement.toProtobuf(centerX));\n request.setCenterY(Measurement.toProtobuf(centerY));\n request.setEndX(Measurement.toProtobuf(endX));\n request.setEndY(Measurement.toProtobuf(endY));\n\n await gateway.callAsync('device/stream_arc', request);\n }\n\n /**\n * Queue a relative arc movement in the stream.\n * The movement will only target the specified subset of axes in the stream.\n * @param targetAxesIndices Indices of the axes in the stream the movement targets.\n * Refers to the axes provided during the stream setup or further execution.\n * Indices are zero-based.\n * @param rotationDirection The direction of the rotation.\n * @param centerX The first dimensions of the position of the center of the circle on which the arc exists.\n * @param centerY The second dimensions of the position of the center of the circle on which the arc exists.\n * @param endX The first dimensions of the end position of the arc.\n * @param endY The second dimensions of the end position of the arc.\n */\n public async arcRelativeOn(\n targetAxesIndices: number[],\n rotationDirection: RotationDirection,\n centerX: Measurement,\n centerY: Measurement,\n endX: Measurement,\n endY: Measurement\n ): Promise<void> {\n const request = new gateway.StreamArcRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamArcRequest.Type.REL);\n request.setTargetAxesIndicesList(targetAxesIndices);\n request.setRotationDirection(rotationDirection as any);\n request.setCenterX(Measurement.toProtobuf(centerX));\n request.setCenterY(Measurement.toProtobuf(centerY));\n request.setEndX(Measurement.toProtobuf(endX));\n request.setEndY(Measurement.toProtobuf(endY));\n\n await gateway.callAsync('device/stream_arc', request);\n }\n\n /**\n * Queue an absolute circle movement on the first two axes of the stream.\n * Absolute meaning that the home positions of the axes are treated as the origin.\n * @param rotationDirection The direction of the rotation.\n * @param centerX The first dimension of the position of the center of the circle.\n * @param centerY The second dimension of the position of the center of the circle.\n */\n public async circleAbsolute(\n rotationDirection: RotationDirection,\n centerX: Measurement,\n centerY: Measurement\n ): Promise<void> {\n const request = new gateway.StreamCircleRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamCircleRequest.Type.ABS);\n request.setRotationDirection(rotationDirection as any);\n request.setCenterX(Measurement.toProtobuf(centerX));\n request.setCenterY(Measurement.toProtobuf(centerY));\n\n await gateway.callAsync('device/stream_circle', request);\n }\n\n /**\n * Queue a relative circle movement on the first two axes of the stream.\n * Relative meaning that the current position of the axes is treated as the origin.\n * @param rotationDirection The direction of the rotation.\n * @param centerX The first dimension of the position of the center of the circle.\n * @param centerY The second dimension of the position of the center of the circle.\n */\n public async circleRelative(\n rotationDirection: RotationDirection,\n centerX: Measurement,\n centerY: Measurement\n ): Promise<void> {\n const request = new gateway.StreamCircleRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamCircleRequest.Type.REL);\n request.setRotationDirection(rotationDirection as any);\n request.setCenterX(Measurement.toProtobuf(centerX));\n request.setCenterY(Measurement.toProtobuf(centerY));\n\n await gateway.callAsync('device/stream_circle', request);\n }\n\n /**\n * Queue an absolute circle movement in the stream.\n * The movement will only target the specified subset of axes in the stream.\n * @param targetAxesIndices Indices of the axes in the stream the movement targets.\n * Refers to the axes provided during the stream setup or further execution.\n * Indices are zero-based.\n * @param rotationDirection The direction of the rotation.\n * @param centerX The first dimension of the position of the center of the circle.\n * @param centerY The second dimension of the position of the center of the circle.\n */\n public async circleAbsoluteOn(\n targetAxesIndices: number[],\n rotationDirection: RotationDirection,\n centerX: Measurement,\n centerY: Measurement\n ): Promise<void> {\n const request = new gateway.StreamCircleRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamCircleRequest.Type.ABS);\n request.setTargetAxesIndicesList(targetAxesIndices);\n request.setRotationDirection(rotationDirection as any);\n request.setCenterX(Measurement.toProtobuf(centerX));\n request.setCenterY(Measurement.toProtobuf(centerY));\n\n await gateway.callAsync('device/stream_circle', request);\n }\n\n /**\n * Queue a relative circle movement in the stream.\n * The movement will only target the specified subset of axes in the stream.\n * @param targetAxesIndices Indices of the axes in the stream the movement targets.\n * Refers to the axes provided during the stream setup or further execution.\n * Indices are zero-based.\n * @param rotationDirection The direction of the rotation.\n * @param centerX The first dimension of the position of the center of the circle.\n * @param centerY The second dimension of the position of the center of the circle.\n */\n public async circleRelativeOn(\n targetAxesIndices: number[],\n rotationDirection: RotationDirection,\n centerX: Measurement,\n centerY: Measurement\n ): Promise<void> {\n const request = new gateway.StreamCircleRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setType(gateway.StreamCircleRequest.Type.REL);\n request.setTargetAxesIndicesList(targetAxesIndices);\n request.setRotationDirection(rotationDirection as any);\n request.setCenterX(Measurement.toProtobuf(centerX));\n request.setCenterY(Measurement.toProtobuf(centerY));\n\n await gateway.callAsync('device/stream_circle', request);\n }\n\n /**\n * Wait for a digital input channel to reach a given value.\n * @param channelNumber The number of the digital input channel.\n * Channel numbers are numbered from one.\n * @param value The value that the stream should wait for.\n */\n public async waitDigitalInput(\n channelNumber: number,\n value: boolean\n ): Promise<void> {\n const request = new gateway.StreamWaitDigitalInputRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setChannelNumber(channelNumber);\n request.setValue(value);\n\n await gateway.callAsync('device/stream_wait_digital_input', request);\n }\n\n /**\n * Wait for the value of a analog input channel to reach a condition concerning a given value.\n * @param channelNumber The number of the analog input channel.\n * Channel numbers are numbered from one.\n * @param condition A condition (e.g. <, <=, ==, !=).\n * @param value The value that the condition concerns, in volts.\n */\n public async waitAnalogInput(\n channelNumber: number,\n condition: string,\n value: number\n ): Promise<void> {\n const request = new gateway.StreamWaitAnalogInputRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setChannelNumber(channelNumber);\n request.setCondition(condition);\n request.setValue(value);\n\n await gateway.callAsync('device/stream_wait_analog_input', request);\n }\n\n /**\n * Set the value of a digital output channel.\n * @param channelNumber The number of the digital output channel.\n * Channel numbers are numbered from one.\n * @param value The value to set the channel to.\n */\n public async setDigitalOutput(\n channelNumber: number,\n value: boolean\n ): Promise<void> {\n const request = new gateway.StreamSetDigitalOutputRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setChannelNumber(channelNumber);\n request.setValue(value);\n\n await gateway.callAsync('device/stream_set_digital_output', request);\n }\n\n /**\n * Set the value of an analog output channel.\n * @param channelNumber The number of the analog output channel.\n * Channel numbers are numbered from one.\n * @param value The value to set the channel to, in volts.\n */\n public async setAnalogOutput(\n channelNumber: number,\n value: number\n ): Promise<void> {\n const request = new gateway.StreamSetAnalogOutputRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setChannelNumber(channelNumber);\n request.setValue(value);\n\n await gateway.callAsync('device/stream_set_analog_output', request);\n }\n\n /**\n * Toggle the value of a digital output channel.\n * @param channelNumber The number of the digital output channel.\n * Channel numbers are numbered from one.\n */\n public async toggleDigitalOutput(\n channelNumber: number\n ): Promise<void> {\n const request = new gateway.StreamToggleDigitalOutputRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setChannelNumber(channelNumber);\n\n await gateway.callAsync('device/stream_toggle_digital_output', request);\n }\n\n /**\n * Wait a specified time.\n * @param time Amount of time to wait.\n * @param unit Units of time.\n */\n public async wait(\n time: number,\n unit: Time | Native = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.StreamWaitRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setTime(time);\n request.setUnit(unit);\n\n await gateway.callAsync('device/stream_wait', request);\n }\n\n /**\n * Waits until the live stream executes all queued actions.\n * @param throwErrorOnFault Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n throwErrorOnFault: boolean = true\n ): Promise<void> {\n const request = new gateway.StreamWaitUntilIdleRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setThrowErrorOnFault(throwErrorOnFault);\n\n await gateway.callAsync('device/stream_wait_until_idle', request);\n }\n\n /**\n * Cork the front of the stream's action queue, blocking execution.\n * Execution resumes upon uncorking the queue, or when the number of queued actions reaches its limit.\n * Corking eliminates discontinuities in motion due to subsequent stream commands reaching the device late.\n * You can only cork an idle live stream.\n */\n public async cork(): Promise<void> {\n const request = new gateway.StreamCorkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n\n await gateway.callAsync('device/stream_cork', request);\n }\n\n /**\n * Uncork the front of the queue, unblocking command execution.\n * You can only uncork an idle live stream that is corked.\n */\n public async uncork(): Promise<void> {\n const request = new gateway.StreamUncorkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n\n await gateway.callAsync('device/stream_uncork', request);\n }\n\n /**\n * Returns a boolean value indicating whether the live stream is executing a queued action.\n * @return True if the stream is executing a queued action.\n */\n public async isBusy(): Promise<boolean> {\n const request = new gateway.StreamIsBusyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n\n const response = await gateway.callAsync<gateway.StreamIsBusyResponse>(\n 'device/stream_is_busy',\n request,\n gateway.StreamIsBusyResponse);\n return response.getIsBusy();\n }\n\n /**\n * Gets the maximum speed of the live stream.\n * Converts the units using the first axis of the stream.\n * @param unit Units of velocity.\n * @return The maximum speed of the stream.\n */\n public async getMaxSpeed(\n unit: Velocity | AngularVelocity | Native = Units.NATIVE\n ): Promise<number> {\n const request = new gateway.StreamGetMaxSpeedRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setUnit(unit);\n\n const response = await gateway.callAsync<gateway.StreamGetMaxSpeedResponse>(\n 'device/stream_get_max_speed',\n request,\n gateway.StreamGetMaxSpeedResponse);\n return response.getMaxSpeed();\n }\n\n /**\n * Sets the maximum speed of the live stream.\n * Converts the units using the first axis of the stream.\n * @param maxSpeed Maximum speed at which any stream action is executed.\n * @param unit Units of velocity.\n */\n public async setMaxSpeed(\n maxSpeed: number,\n unit: Velocity | AngularVelocity | Native = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.StreamSetMaxSpeedRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setMaxSpeed(maxSpeed);\n request.setUnit(unit);\n\n await gateway.callAsync('device/stream_set_max_speed', request);\n }\n\n /**\n * Gets the maximum tangential acceleration of the live stream.\n * Converts the units using the first axis of the stream.\n * @param unit Units of acceleration.\n * @return The maximum tangential acceleration of the live stream.\n */\n public async getMaxTangentialAcceleration(\n unit: Acceleration | Native = Units.NATIVE\n ): Promise<number> {\n const request = new gateway.StreamGetMaxTangentialAccelerationRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setUnit(unit);\n\n const response = await gateway.callAsync<gateway.StreamGetMaxTangentialAccelerationResponse>(\n 'device/stream_get_max_tangential_acceleration',\n request,\n gateway.StreamGetMaxTangentialAccelerationResponse);\n return response.getMaxTangentialAcceleration();\n }\n\n /**\n * Sets the maximum tangential acceleration of the live stream.\n * Converts the units using the first axis of the stream.\n * @param maxTangentialAcceleration Maximum tangential acceleration at which any stream action is executed.\n * @param unit Units of acceleration.\n */\n public async setMaxTangentialAcceleration(\n maxTangentialAcceleration: number,\n unit: Acceleration | Native = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.StreamSetMaxTangentialAccelerationRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setMaxTangentialAcceleration(maxTangentialAcceleration);\n request.setUnit(unit);\n\n await gateway.callAsync('device/stream_set_max_tangential_acceleration', request);\n }\n\n /**\n * Gets the maximum centripetal acceleration of the live stream.\n * Converts the units using the first axis of the stream.\n * @param unit Units of acceleration.\n * @return The maximum centripetal acceleration of the live stream.\n */\n public async getMaxCentripetalAcceleration(\n unit: Acceleration | Native = Units.NATIVE\n ): Promise<number> {\n const request = new gateway.StreamGetMaxCentripetalAccelerationRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setUnit(unit);\n\n const response = await gateway.callAsync<gateway.StreamGetMaxCentripetalAccelerationResponse>(\n 'device/stream_get_max_centripetal_acceleration',\n request,\n gateway.StreamGetMaxCentripetalAccelerationResponse);\n return response.getMaxCentripetalAcceleration();\n }\n\n /**\n * Sets the maximum centripetal acceleration of the live stream.\n * Converts the units using the first axis of the stream.\n * @param maxCentripetalAcceleration Maximum centripetal acceleration at which any stream action is executed.\n * @param unit Units of acceleration.\n */\n public async setMaxCentripetalAcceleration(\n maxCentripetalAcceleration: number,\n unit: Acceleration | Native = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.StreamSetMaxCentripetalAccelerationRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n request.setMaxCentripetalAcceleration(maxCentripetalAcceleration);\n request.setUnit(unit);\n\n await gateway.callAsync('device/stream_set_max_centripetal_acceleration', request);\n }\n\n /**\n * Returns a string which represents the stream.\n * @return String which represents the stream.\n */\n public toString(): string {\n const request = new gateway.StreamToStringRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n\n const response = gateway.callSync<gateway.StreamToStringResponse>(\n 'device/stream_to_string',\n request,\n gateway.StreamToStringResponse);\n return response.getToStr();\n }\n\n /**\n * Disable the stream.\n * If the stream is not setup, this command does nothing.\n * Once disabled, the stream will no longer accept stream commands.\n * The stream will process the rest of the commands in the queue until it is empty.\n */\n public async disable(): Promise<void> {\n const request = new gateway.StreamDisableRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n\n await gateway.callAsync('device/stream_disable', request);\n }\n\n /**\n * Gets the axes of the stream.\n * @return An array of axis numbers of the axes the stream is set up to control.\n */\n private _retrieveAxes(): StreamAxisDefinition[] {\n const request = new gateway.StreamGetAxesRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n\n const response = gateway.callSync<gateway.StreamGetAxesResponse>(\n 'device/stream_get_axes',\n request,\n gateway.StreamGetAxesResponse);\n return response.toObject().axesList.map(resp => StreamAxisDefinition.fromProtobuf(resp));\n }\n\n /**\n * Get the mode of the stream.\n * @return Mode of the stream.\n */\n private _retrieveMode(): StreamMode {\n const request = new gateway.StreamGetModeRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setStreamId(this.streamId);\n\n const response = gateway.callSync<gateway.StreamGetModeResponse>(\n 'device/stream_get_mode',\n request,\n gateway.StreamGetModeResponse);\n return response.getMode();\n }\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { StreamAxisType } from './stream_axis_type';
|
|
2
|
-
/**
|
|
3
|
-
* Defines an axis of the stream.
|
|
4
|
-
*/
|
|
5
|
-
export interface StreamAxisDefinition {
|
|
6
|
-
/**
|
|
7
|
-
* Number of a physical axis or a lockstep group.
|
|
8
|
-
*/
|
|
9
|
-
axisNumber: number;
|
|
10
|
-
/**
|
|
11
|
-
* Defines the type of the axis.
|
|
12
|
-
*/
|
|
13
|
-
axisType?: StreamAxisType | null;
|
|
14
|
-
}
|
|
15
|
-
export declare namespace StreamAxisDefinition {
|
|
16
|
-
const __type = "StreamAxisDefinition";
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream_buffer.js","sourceRoot":"","sources":["../../../src/ascii/stream_buffer.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AAEtC;;;GAGG;AACH,MAAa,YAAY;IAiBvB,YAAY,MAAc,EAAE,QAAgB;QAC1C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAnBD;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAQD;;;OAGG;IACI,KAAK,CAAC,UAAU;QACrB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,6BAA6B,EAAE,CAAC;QAC5D,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEnC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,kCAAkC,EAClC,OAAO,EACP,OAAO,CAAC,8BAA8B,CAAC,CAAC;QAC1C,OAAO,QAAQ,CAAC,kBAAkB,EAAE,CAAC;IACvC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,KAAK;QAChB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,wBAAwB,EAAE,CAAC;QACvD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEnC,MAAM,OAAO,CAAC,SAAS,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AAlDD,oCAkDC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport * as gateway from '../gateway';\n\n/**\n * Represents a stream buffer with this ID on a device.\n * A stream buffer is a place to store a queue of stream actions.\n */\nexport class StreamBuffer {\n /**\n * The Device this buffer exists on.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The number identifying the buffer on the device.\n */\n public get bufferId(): number {\n return this._bufferId;\n }\n private _bufferId: number;\n\n constructor(device: Device, bufferId: number) {\n this._device = device;\n this._bufferId = bufferId;\n }\n\n /**\n * Get the buffer contents as an array of strings.\n * @return A string array containing all the stream commands stored in the buffer.\n */\n public async getContent(): Promise<string[]> {\n const request = new gateway.StreamBufferGetContentRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setBufferId(this.bufferId);\n\n const response = await gateway.callAsync<gateway.StreamBufferGetContentResponse>(\n 'device/stream_buffer_get_content',\n request,\n gateway.StreamBufferGetContentResponse);\n return response.getBufferLinesList();\n }\n\n /**\n * Erase the contents of the buffer.\n */\n public async erase(): Promise<void> {\n const request = new gateway.StreamBufferEraseRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setBufferId(this.bufferId);\n\n await gateway.callAsync('device/stream_buffer_erase', request);\n }\n}\n"]}
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
-
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
-
}) : (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
o[k2] = m[k];
|
|
10
|
-
}));
|
|
11
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
12
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
13
|
-
}) : function(o, v) {
|
|
14
|
-
o["default"] = v;
|
|
15
|
-
});
|
|
16
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
17
|
-
if (mod && mod.__esModule) return mod;
|
|
18
|
-
var result = {};
|
|
19
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
20
|
-
__setModuleDefault(result, mod);
|
|
21
|
-
return result;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.Connection = void 0;
|
|
25
|
-
require("../init");
|
|
26
|
-
const rxjs_1 = require("rxjs");
|
|
27
|
-
const operators_1 = require("rxjs/operators");
|
|
28
|
-
const gateway = __importStar(require("../gateway"));
|
|
29
|
-
const gateway_1 = require("../gateway");
|
|
30
|
-
const device_1 = require("./device");
|
|
31
|
-
const unknown_response_event_1 = require("./unknown_response_event");
|
|
32
|
-
const reply_only_event_1 = require("./reply_only_event");
|
|
33
|
-
const message_1 = require("./message");
|
|
34
|
-
/**
|
|
35
|
-
* Class representing access to particular connection (serial port, TCP connection) using the legacy Binary protocol.
|
|
36
|
-
*/
|
|
37
|
-
class Connection {
|
|
38
|
-
constructor(interfaceId) {
|
|
39
|
-
this._disconnected = new rxjs_1.ReplaySubject();
|
|
40
|
-
this._interfaceId = interfaceId;
|
|
41
|
-
this._subscribe();
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* The interface ID identifies thisConnection instance with the underlying library.
|
|
45
|
-
*/
|
|
46
|
-
get interfaceId() {
|
|
47
|
-
return this._interfaceId;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Opens a serial port.
|
|
51
|
-
* @param portName Name of the port to open.
|
|
52
|
-
* @param baudRate Optional baud rate (defaults to 9600).
|
|
53
|
-
* @param useMessageIds Enable use of message IDs (defaults to disabled).
|
|
54
|
-
* All your devices must be pre-configured to match.
|
|
55
|
-
* @return An object representing the port.
|
|
56
|
-
*/
|
|
57
|
-
static async openSerialPort(portName, baudRate = Connection.DEFAULT_BAUD_RATE, useMessageIds = false) {
|
|
58
|
-
const request = new gateway.OpenBinaryInterfaceRequest();
|
|
59
|
-
request.setInterfaceType(gateway.InterfaceType.SERIAL_PORT);
|
|
60
|
-
request.setPortName(portName);
|
|
61
|
-
request.setBaudRate(baudRate);
|
|
62
|
-
request.setUseMessageIds(useMessageIds);
|
|
63
|
-
const response = await gateway.callAsync('binary/interface/open', request, gateway.OpenInterfaceResponse);
|
|
64
|
-
return new Connection(response.getInterfaceId());
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Opens a TCP connection.
|
|
68
|
-
* @param hostName Hostname or IP address.
|
|
69
|
-
* @param port Optional port number (defaults to 8657).
|
|
70
|
-
* @param useMessageIds Enable use of message IDs (defaults to disabled).
|
|
71
|
-
* All your devices must be pre-configured to match.
|
|
72
|
-
* @return An object representing the connection.
|
|
73
|
-
*/
|
|
74
|
-
static async openTcp(hostName, port = 0, useMessageIds = false) {
|
|
75
|
-
const request = new gateway.OpenBinaryInterfaceRequest();
|
|
76
|
-
request.setInterfaceType(gateway.InterfaceType.TCP);
|
|
77
|
-
request.setHostName(hostName);
|
|
78
|
-
request.setPort(port);
|
|
79
|
-
request.setUseMessageIds(useMessageIds);
|
|
80
|
-
const response = await gateway.callAsync('binary/interface/open', request, gateway.OpenInterfaceResponse);
|
|
81
|
-
return new Connection(response.getInterfaceId());
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Close the connection.
|
|
85
|
-
*/
|
|
86
|
-
async close() {
|
|
87
|
-
const request = new gateway.CloseInterfaceRequest();
|
|
88
|
-
request.setInterfaceId(this.interfaceId);
|
|
89
|
-
await gateway.callAsync('interface/close', request);
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Sends a generic Binary command to this connection.
|
|
93
|
-
* For more information please refer to the
|
|
94
|
-
* [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).
|
|
95
|
-
* @param device Device address to send the command to. Use zero for broadcast.
|
|
96
|
-
* @param command Command to send.
|
|
97
|
-
* @param data Optional data argument to the command. Defaults to zero.
|
|
98
|
-
* @param timeout Number of seconds to wait for a response from the device. 0 or negative defaults to 0.5s.
|
|
99
|
-
* @param checkErrors Controls whether to throw an exception when the device rejects the command.
|
|
100
|
-
* @return A response to the command.
|
|
101
|
-
*/
|
|
102
|
-
async genericCommand(device, command, data = 0, timeout = 0.0, checkErrors = true) {
|
|
103
|
-
const request = new gateway.GenericBinaryRequest();
|
|
104
|
-
request.setInterfaceId(this.interfaceId);
|
|
105
|
-
request.setDevice(device);
|
|
106
|
-
request.setCommand(command);
|
|
107
|
-
request.setData(data);
|
|
108
|
-
request.setTimeout(timeout);
|
|
109
|
-
request.setCheckErrors(checkErrors);
|
|
110
|
-
const response = await gateway.callAsync('binary/interface/generic_command', request, gateway.BinaryMessage);
|
|
111
|
-
return message_1.Message.fromProtobuf(response.toObject());
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Sends a generic Binary command to this connection without expecting a response.
|
|
115
|
-
* For more information please refer to the
|
|
116
|
-
* [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).
|
|
117
|
-
* @param device Device address to send the command to. Use zero for broadcast.
|
|
118
|
-
* @param command Command to send.
|
|
119
|
-
* @param data Optional data argument to the command. Defaults to zero.
|
|
120
|
-
*/
|
|
121
|
-
async genericCommandNoResponse(device, command, data = 0) {
|
|
122
|
-
const request = new gateway.GenericBinaryRequest();
|
|
123
|
-
request.setInterfaceId(this.interfaceId);
|
|
124
|
-
request.setDevice(device);
|
|
125
|
-
request.setCommand(command);
|
|
126
|
-
request.setData(data);
|
|
127
|
-
await gateway.callAsync('binary/interface/generic_command_no_response', request);
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Sends a generic Binary command to this connection and expects responses from one or more devices.
|
|
131
|
-
* Responses are returned in order of arrival.
|
|
132
|
-
* For more information please refer to the
|
|
133
|
-
* [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).
|
|
134
|
-
* @param command Command to send.
|
|
135
|
-
* @param data Optional data argument to the command. Defaults to zero.
|
|
136
|
-
* @param timeout Number of seconds to wait for all responses from the device chain. 0 or negative defaults to 0.5s.
|
|
137
|
-
* @param checkErrors Controls whether to throw an exception when any device rejects the command.
|
|
138
|
-
* @return All responses to the command.
|
|
139
|
-
*/
|
|
140
|
-
async genericCommandMultiResponse(command, data = 0, timeout = 0.0, checkErrors = true) {
|
|
141
|
-
const request = new gateway.GenericBinaryRequest();
|
|
142
|
-
request.setInterfaceId(this.interfaceId);
|
|
143
|
-
request.setCommand(command);
|
|
144
|
-
request.setData(data);
|
|
145
|
-
request.setTimeout(timeout);
|
|
146
|
-
request.setCheckErrors(checkErrors);
|
|
147
|
-
const response = await gateway.callAsync('binary/interface/generic_command_multi_response', request, gateway.BinaryMessageCollection);
|
|
148
|
-
return response.toObject().messagesList.map(resp => message_1.Message.fromProtobuf(resp));
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Renumbers devices present on this connection. After renumbering, you must identify devices again.
|
|
152
|
-
* @return Total number of devices that responded to the renumber.
|
|
153
|
-
*/
|
|
154
|
-
async renumberDevices() {
|
|
155
|
-
const request = new gateway.BinaryDeviceRenumberRequest();
|
|
156
|
-
request.setInterfaceId(this.interfaceId);
|
|
157
|
-
const response = await gateway.callAsync('binary/device/renumber', request, gateway.BinaryDeviceRenumberResponse);
|
|
158
|
-
return response.getNumberDevices();
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Attempts to detect any devices present on this connection.
|
|
162
|
-
* @param identifyDevices Determines whether device identification should be performed as well.
|
|
163
|
-
* @return Array of detected devices.
|
|
164
|
-
*/
|
|
165
|
-
async detectDevices(identifyDevices = true) {
|
|
166
|
-
const request = new gateway.BinaryDeviceDetectRequest();
|
|
167
|
-
request.setInterfaceId(this.interfaceId);
|
|
168
|
-
request.setIdentifyDevices(identifyDevices);
|
|
169
|
-
const response = await gateway.callAsync('binary/device/detect', request, gateway.BinaryDeviceDetectResponse);
|
|
170
|
-
return response.getDevicesList().map(deviceAddress => this.getDevice(deviceAddress));
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Gets a Device class instance which allows you to control a particular device on this connection.
|
|
174
|
-
* Devices are numbered from 1.
|
|
175
|
-
* @param deviceAddress Address of device intended to control. Address is configured for each device.
|
|
176
|
-
* @return Device instance.
|
|
177
|
-
*/
|
|
178
|
-
getDevice(deviceAddress) {
|
|
179
|
-
if (deviceAddress <= 0) {
|
|
180
|
-
throw new TypeError('Invalid value; physical devices are numbered from 1.');
|
|
181
|
-
}
|
|
182
|
-
return new device_1.Device(this, deviceAddress);
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Returns a string that represents the connection.
|
|
186
|
-
* @return A string that represents the connection.
|
|
187
|
-
*/
|
|
188
|
-
toString() {
|
|
189
|
-
const request = new gateway.ToStringRequest();
|
|
190
|
-
request.setInterfaceId(this.interfaceId);
|
|
191
|
-
const response = gateway.callSync('interface/to_string', request, gateway.ToStringResponse);
|
|
192
|
-
return response.getToStr();
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Event invoked when connection is interrupted or closed.
|
|
196
|
-
*/
|
|
197
|
-
get disconnected() {
|
|
198
|
-
return this._disconnected;
|
|
199
|
-
}
|
|
200
|
-
_subscribe() {
|
|
201
|
-
this.unknownResponse = gateway_1.events.pipe(operators_1.takeUntil(this._disconnected), gateway_1.filterEvent('binary/interface/unknown_response'), operators_1.filter(event => event.interfaceId === this.interfaceId), operators_1.map(event => unknown_response_event_1.UnknownResponseEvent.fromProtobuf(event)));
|
|
202
|
-
this.replyOnly = gateway_1.events.pipe(operators_1.takeUntil(this._disconnected), gateway_1.filterEvent('binary/interface/reply_only'), operators_1.filter(event => event.interfaceId === this.interfaceId), operators_1.map(event => reply_only_event_1.ReplyOnlyEvent.fromProtobuf(event)));
|
|
203
|
-
gateway_1.events.pipe(gateway_1.filterEvent('interface/disconnected'), operators_1.filter(event => event.interfaceId === this.interfaceId), operators_1.take(1), operators_1.map(({ errorMessage, errorType }) => gateway.convertToException(errorType, errorMessage))).subscribe(this._disconnected);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
exports.Connection = Connection;
|
|
207
|
-
/**
|
|
208
|
-
* Default baud rate for serial connections.
|
|
209
|
-
*/
|
|
210
|
-
Connection.DEFAULT_BAUD_RATE = 9600;
|
|
211
|
-
//# sourceMappingURL=connection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../../src/binary/connection.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAEtD,mBAAiB;AACjB,+BAAiD;AACjD,8CAA8D;AAC9D,oDAAsC;AACtC,wCAAiD;AACjD,qCAAkC;AAClC,qEA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import '../init';\nimport { Observable, ReplaySubject } from 'rxjs';\nimport { map, filter, takeUntil, take } from 'rxjs/operators';\nimport * as gateway from '../gateway';\nimport { events, filterEvent } from '../gateway';\nimport { Device } from './device';\nimport { UnknownResponseEvent } from './unknown_response_event';\nimport { ReplyOnlyEvent } from './reply_only_event';\nimport { CommandCode } from './command_code';\nimport { Message } from './message';\nimport { MotionLibException } from '../exceptions';\n\n/**\n * Class representing access to particular connection (serial port, TCP connection) using the legacy Binary protocol.\n */\nexport class Connection {\n\n /**\n * Event invoked when a response from a device cannot be matched to any known request.\n */\n public unknownResponse!: Observable<UnknownResponseEvent>;\n\n /**\n * Event invoked when a reply-only command such as a move tracking message is received from a device.\n */\n public replyOnly!: Observable<ReplyOnlyEvent>;\n\n /**\n * Default baud rate for serial connections.\n */\n public static readonly DEFAULT_BAUD_RATE: number = 9600;\n\n /**\n * The interface ID identifies thisConnection instance with the underlying library.\n */\n public get interfaceId(): number {\n return this._interfaceId;\n }\n private _interfaceId: number;\n\n constructor(interfaceId: number) {\n this._interfaceId = interfaceId;\n this._subscribe();\n }\n\n /**\n * Opens a serial port.\n * @param portName Name of the port to open.\n * @param baudRate Optional baud rate (defaults to 9600).\n * @param useMessageIds Enable use of message IDs (defaults to disabled).\n * All your devices must be pre-configured to match.\n * @return An object representing the port.\n */\n public static async openSerialPort(\n portName: string,\n baudRate: number = Connection.DEFAULT_BAUD_RATE,\n useMessageIds: boolean = false\n ): Promise<Connection> {\n const request = new gateway.OpenBinaryInterfaceRequest();\n request.setInterfaceType(gateway.InterfaceType.SERIAL_PORT);\n request.setPortName(portName);\n request.setBaudRate(baudRate);\n request.setUseMessageIds(useMessageIds);\n\n const response = await gateway.callAsync<gateway.OpenInterfaceResponse>(\n 'binary/interface/open',\n request,\n gateway.OpenInterfaceResponse);\n return new Connection(response.getInterfaceId());\n }\n\n /**\n * Opens a TCP connection.\n * @param hostName Hostname or IP address.\n * @param port Optional port number (defaults to 8657).\n * @param useMessageIds Enable use of message IDs (defaults to disabled).\n * All your devices must be pre-configured to match.\n * @return An object representing the connection.\n */\n public static async openTcp(\n hostName: string,\n port: number = 0,\n useMessageIds: boolean = false\n ): Promise<Connection> {\n const request = new gateway.OpenBinaryInterfaceRequest();\n request.setInterfaceType(gateway.InterfaceType.TCP);\n request.setHostName(hostName);\n request.setPort(port);\n request.setUseMessageIds(useMessageIds);\n\n const response = await gateway.callAsync<gateway.OpenInterfaceResponse>(\n 'binary/interface/open',\n request,\n gateway.OpenInterfaceResponse);\n return new Connection(response.getInterfaceId());\n }\n\n /**\n * Close the connection.\n */\n public async close(): Promise<void> {\n const request = new gateway.CloseInterfaceRequest();\n request.setInterfaceId(this.interfaceId);\n\n await gateway.callAsync('interface/close', request);\n }\n\n /**\n * Sends a generic Binary command to this connection.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param device Device address to send the command to. Use zero for broadcast.\n * @param command Command to send.\n * @param data Optional data argument to the command. Defaults to zero.\n * @param timeout Number of seconds to wait for a response from the device. 0 or negative defaults to 0.5s.\n * @param checkErrors Controls whether to throw an exception when the device rejects the command.\n * @return A response to the command.\n */\n public async genericCommand(\n device: number,\n command: CommandCode,\n data: number = 0,\n timeout: number = 0.0,\n checkErrors: boolean = true\n ): Promise<Message> {\n const request = new gateway.GenericBinaryRequest();\n request.setInterfaceId(this.interfaceId);\n request.setDevice(device);\n request.setCommand(command as any);\n request.setData(data);\n request.setTimeout(timeout);\n request.setCheckErrors(checkErrors);\n\n const response = await gateway.callAsync<gateway.BinaryMessage>(\n 'binary/interface/generic_command',\n request,\n gateway.BinaryMessage);\n return Message.fromProtobuf(response.toObject());\n }\n\n /**\n * Sends a generic Binary command to this connection without expecting a response.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param device Device address to send the command to. Use zero for broadcast.\n * @param command Command to send.\n * @param data Optional data argument to the command. Defaults to zero.\n */\n public async genericCommandNoResponse(\n device: number,\n command: CommandCode,\n data: number = 0\n ): Promise<void> {\n const request = new gateway.GenericBinaryRequest();\n request.setInterfaceId(this.interfaceId);\n request.setDevice(device);\n request.setCommand(command as any);\n request.setData(data);\n\n await gateway.callAsync('binary/interface/generic_command_no_response', request);\n }\n\n /**\n * Sends a generic Binary command to this connection and expects responses from one or more devices.\n * Responses are returned in order of arrival.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param command Command to send.\n * @param data Optional data argument to the command. Defaults to zero.\n * @param timeout Number of seconds to wait for all responses from the device chain. 0 or negative defaults to 0.5s.\n * @param checkErrors Controls whether to throw an exception when any device rejects the command.\n * @return All responses to the command.\n */\n public async genericCommandMultiResponse(\n command: CommandCode,\n data: number = 0,\n timeout: number = 0.0,\n checkErrors: boolean = true\n ): Promise<Message[]> {\n const request = new gateway.GenericBinaryRequest();\n request.setInterfaceId(this.interfaceId);\n request.setCommand(command as any);\n request.setData(data);\n request.setTimeout(timeout);\n request.setCheckErrors(checkErrors);\n\n const response = await gateway.callAsync<gateway.BinaryMessageCollection>(\n 'binary/interface/generic_command_multi_response',\n request,\n gateway.BinaryMessageCollection);\n return response.toObject().messagesList.map(resp => Message.fromProtobuf(resp));\n }\n\n /**\n * Renumbers devices present on this connection. After renumbering, you must identify devices again.\n * @return Total number of devices that responded to the renumber.\n */\n public async renumberDevices(): Promise<number> {\n const request = new gateway.BinaryDeviceRenumberRequest();\n request.setInterfaceId(this.interfaceId);\n\n const response = await gateway.callAsync<gateway.BinaryDeviceRenumberResponse>(\n 'binary/device/renumber',\n request,\n gateway.BinaryDeviceRenumberResponse);\n return response.getNumberDevices();\n }\n\n /**\n * Attempts to detect any devices present on this connection.\n * @param identifyDevices Determines whether device identification should be performed as well.\n * @return Array of detected devices.\n */\n public async detectDevices(\n identifyDevices: boolean = true\n ): Promise<Device[]> {\n const request = new gateway.BinaryDeviceDetectRequest();\n request.setInterfaceId(this.interfaceId);\n request.setIdentifyDevices(identifyDevices);\n\n const response = await gateway.callAsync<gateway.BinaryDeviceDetectResponse>(\n 'binary/device/detect',\n request,\n gateway.BinaryDeviceDetectResponse);\n return response.getDevicesList().map(deviceAddress => this.getDevice(deviceAddress));\n }\n\n /**\n * Gets a Device class instance which allows you to control a particular device on this connection.\n * Devices are numbered from 1.\n * @param deviceAddress Address of device intended to control. Address is configured for each device.\n * @return Device instance.\n */\n public getDevice(\n deviceAddress: number\n ): Device {\n if (deviceAddress <= 0) {\n throw new TypeError('Invalid value; physical devices are numbered from 1.');\n }\n return new Device(this, deviceAddress);\n }\n\n /**\n * Returns a string that represents the connection.\n * @return A string that represents the connection.\n */\n public toString(): string {\n const request = new gateway.ToStringRequest();\n request.setInterfaceId(this.interfaceId);\n\n const response = gateway.callSync<gateway.ToStringResponse>(\n 'interface/to_string',\n request,\n gateway.ToStringResponse);\n return response.getToStr();\n }\n\n private _disconnected = new ReplaySubject<MotionLibException>();\n\n /**\n * Event invoked when connection is interrupted or closed.\n */\n public get disconnected(): Observable<MotionLibException> {\n return this._disconnected;\n }\n\n private _subscribe(): void {\n this.unknownResponse = events.pipe(\n takeUntil(this._disconnected),\n filterEvent<gateway.UnknownBinaryResponseEvent.AsObject>('binary/interface/unknown_response'),\n filter(event => event.interfaceId === this.interfaceId),\n map(event => UnknownResponseEvent.fromProtobuf(event))\n );\n\n this.replyOnly = events.pipe(\n takeUntil(this._disconnected),\n filterEvent<gateway.BinaryReplyOnlyEvent.AsObject>('binary/interface/reply_only'),\n filter(event => event.interfaceId === this.interfaceId),\n map(event => ReplyOnlyEvent.fromProtobuf(event))\n );\n\n events.pipe(\n filterEvent<gateway.DisconnectedEvent.AsObject>('interface/disconnected'),\n filter(event => event.interfaceId === this.interfaceId),\n take(1),\n map(({ errorMessage, errorType }) => gateway.convertToException(errorType, errorMessage))\n ).subscribe(this._disconnected);\n }\n}\n"]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export { BinaryCommandFailedException } from './binary_command_failed_exception';
|
|
2
|
-
export { CommandFailedException } from './command_failed_exception';
|
|
3
|
-
export { CommandPreemptedException } from './command_preempted_exception';
|
|
4
|
-
export { ConnectionClosedException } from './connection_closed_exception';
|
|
5
|
-
export { ConnectionFailedException } from './connection_failed_exception';
|
|
6
|
-
export { ConversionFailedException } from './conversion_failed_exception';
|
|
7
|
-
export { DeviceAddressConflictException } from './device_address_conflict_exception';
|
|
8
|
-
export { DeviceBusyException } from './device_busy_exception';
|
|
9
|
-
export { DeviceDbFailedException } from './device_db_failed_exception';
|
|
10
|
-
export { DeviceFailedException } from './device_failed_exception';
|
|
11
|
-
export { DeviceNotIdentifiedException } from './device_not_identified_exception';
|
|
12
|
-
export { InternalErrorException } from './internal_error_exception';
|
|
13
|
-
export { InvalidArgumentException } from './invalid_argument_exception';
|
|
14
|
-
export { InvalidDataException } from './invalid_data_exception';
|
|
15
|
-
export { InvalidPacketException } from './invalid_packet_exception';
|
|
16
|
-
export { InvalidParkStateException } from './invalid_park_state_exception';
|
|
17
|
-
export { InvalidResponseException } from './invalid_response_exception';
|
|
18
|
-
export { IoChannelOutOfRangeException } from './io_channel_out_of_range_exception';
|
|
19
|
-
export { IoFailedException } from './io_failed_exception';
|
|
20
|
-
export { LockstepEnabledException } from './lockstep_enabled_exception';
|
|
21
|
-
export { LockstepNotEnabledException } from './lockstep_not_enabled_exception';
|
|
22
|
-
export { MovementFailedException } from './movement_failed_exception';
|
|
23
|
-
export { MovementInterruptedException } from './movement_interrupted_exception';
|
|
24
|
-
export { NoDeviceFoundException } from './no_device_found_exception';
|
|
25
|
-
export { NotSupportedException } from './not_supported_exception';
|
|
26
|
-
export { OsFailedException } from './os_failed_exception';
|
|
27
|
-
export { OutOfRequestIdsException } from './out_of_request_ids_exception';
|
|
28
|
-
export { RequestTimeoutException } from './request_timeout_exception';
|
|
29
|
-
export { SerialPortBusyException } from './serial_port_busy_exception';
|
|
30
|
-
export { SettingNotFoundException } from './setting_not_found_exception';
|
|
31
|
-
export { StreamExecutionException } from './stream_execution_exception';
|
|
32
|
-
export { StreamModeException } from './stream_mode_exception';
|
|
33
|
-
export { StreamMovementFailedException } from './stream_movement_failed_exception';
|
|
34
|
-
export { StreamMovementInterruptedException } from './stream_movement_interrupted_exception';
|
|
35
|
-
export { StreamSetupFailedException } from './stream_setup_failed_exception';
|
|
36
|
-
export { TransportAlreadyUsedException } from './transport_already_used_exception';
|
|
37
|
-
export { UnknownRequestException } from './unknown_request_exception';
|
|
38
|
-
export { MotionLibException } from './motion_lib_exception';
|
|
39
|
-
export { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';
|
|
40
|
-
export { CommandFailedExceptionData } from './command_failed_exception_data';
|
|
41
|
-
export { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';
|
|
42
|
-
export { InvalidPacketExceptionData } from './invalid_packet_exception_data';
|
|
43
|
-
export { InvalidResponseExceptionData } from './invalid_response_exception_data';
|
|
44
|
-
export { MovementFailedExceptionData } from './movement_failed_exception_data';
|
|
45
|
-
export { MovementInterruptedExceptionData } from './movement_interrupted_exception_data';
|
|
46
|
-
export { StreamExecutionExceptionData } from './stream_execution_exception_data';
|
|
47
|
-
export { StreamMovementFailedExceptionData } from './stream_movement_failed_exception_data';
|
|
48
|
-
export { StreamMovementInterruptedExceptionData } from './stream_movement_interrupted_exception_data';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA;AAC/B,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,6EAA0E;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,6EAA0E;AAA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kCAAkC,OAAA;AAC3C,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,uFAAmF;AAA1E,iJAAA,6BAA6B,OAAA;AACtC,yEAAsE;AAA7D,oIAAA,uBAAuB,OAAA;AAChC,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAE3B,+FAA0F;AAAjF,wJAAA,gCAAgC,OAAA;AACzC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mGAA8F;AAArF,4JAAA,kCAAkC,OAAA;AAC3C,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,6FAAyF;AAAhF,uJAAA,gCAAgC,OAAA;AACzC,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,iGAA4F;AAAnF,0JAAA,iCAAiC,OAAA;AAC1C,2GAAsG;AAA7F,oKAAA,sCAAsC,OAAA","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nexport { BinaryCommandFailedException } from './binary_command_failed_exception';\nexport { CommandFailedException } from './command_failed_exception';\nexport { CommandPreemptedException } from './command_preempted_exception';\nexport { ConnectionClosedException } from './connection_closed_exception';\nexport { ConnectionFailedException } from './connection_failed_exception';\nexport { ConversionFailedException } from './conversion_failed_exception';\nexport { DeviceAddressConflictException } from './device_address_conflict_exception';\nexport { DeviceBusyException } from './device_busy_exception';\nexport { DeviceDbFailedException } from './device_db_failed_exception';\nexport { DeviceFailedException } from './device_failed_exception';\nexport { DeviceNotIdentifiedException } from './device_not_identified_exception';\nexport { InternalErrorException } from './internal_error_exception';\nexport { InvalidArgumentException } from './invalid_argument_exception';\nexport { InvalidDataException } from './invalid_data_exception';\nexport { InvalidPacketException } from './invalid_packet_exception';\nexport { InvalidParkStateException } from './invalid_park_state_exception';\nexport { InvalidResponseException } from './invalid_response_exception';\nexport { IoChannelOutOfRangeException } from './io_channel_out_of_range_exception';\nexport { IoFailedException } from './io_failed_exception';\nexport { LockstepEnabledException } from './lockstep_enabled_exception';\nexport { LockstepNotEnabledException } from './lockstep_not_enabled_exception';\nexport { MovementFailedException } from './movement_failed_exception';\nexport { MovementInterruptedException } from './movement_interrupted_exception';\nexport { NoDeviceFoundException } from './no_device_found_exception';\nexport { NotSupportedException } from './not_supported_exception';\nexport { OsFailedException } from './os_failed_exception';\nexport { OutOfRequestIdsException } from './out_of_request_ids_exception';\nexport { RequestTimeoutException } from './request_timeout_exception';\nexport { SerialPortBusyException } from './serial_port_busy_exception';\nexport { SettingNotFoundException } from './setting_not_found_exception';\nexport { StreamExecutionException } from './stream_execution_exception';\nexport { StreamModeException } from './stream_mode_exception';\nexport { StreamMovementFailedException } from './stream_movement_failed_exception';\nexport { StreamMovementInterruptedException } from './stream_movement_interrupted_exception';\nexport { StreamSetupFailedException } from './stream_setup_failed_exception';\nexport { TransportAlreadyUsedException } from './transport_already_used_exception';\nexport { UnknownRequestException } from './unknown_request_exception';\nexport { MotionLibException } from './motion_lib_exception';\n\nexport { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';\nexport { CommandFailedExceptionData } from './command_failed_exception_data';\nexport { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';\nexport { InvalidPacketExceptionData } from './invalid_packet_exception_data';\nexport { InvalidResponseExceptionData } from './invalid_response_exception_data';\nexport { MovementFailedExceptionData } from './movement_failed_exception_data';\nexport { MovementInterruptedExceptionData } from './movement_interrupted_exception_data';\nexport { StreamExecutionExceptionData } from './stream_execution_exception_data';\nexport { StreamMovementFailedExceptionData } from './stream_movement_failed_exception_data';\nexport { StreamMovementInterruptedExceptionData } from './stream_movement_interrupted_exception_data';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bindings.js","sourceRoot":"","sources":["../../../src/gateway/bindings.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,oDAA2B;AAC3B,wEAA0C;AAE1C,MAAM,eAAe,GAAG,gBAAK,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;AACvD,MAAM,WAAW,GAAG,sBAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;AACjD,8DAA8D;AACjD,QAAA,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAE5C,IAAI,OAAO,GAAG,cAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,cAAI,CAAC,GAAG,CAAC;AAEnD,MAAM,UAAU,GAAG,CAAC,CAAE,OAAO,CAAC,QAA8C,CAAC,QAAQ,CAAC;AACtF,IAAI,UAAU,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE;IACxD,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;CAC5D;AAED,eAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC","sourcesContent":["import path from 'path';\n\nimport pkgUp from 'pkg-up';\nimport binary from '@mapbox/node-pre-gyp';\n\nconst packageJsonPath = pkgUp.sync({ cwd: __dirname });\nconst bindingPath = binary.find(packageJsonPath);\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nexport const binding = require(bindingPath);\n\nlet dllPath = path.dirname(bindingPath) + path.sep;\n\nconst isElectron = !!(process.versions as unknown as Record<string, string>).electron;\nif (isElectron && !dllPath.includes('app.asar.unpacked')) {\n dllPath = dllPath.replace('app.asar', 'app.asar.unpacked');\n}\n\nbinding.loadDll(dllPath);\n"]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.callSync = exports.callAsync = void 0;
|
|
4
|
-
const main_pb_1 = require("../protobufs/main_pb");
|
|
5
|
-
const bindings_1 = require("./bindings");
|
|
6
|
-
const serialization_1 = require("./serialization");
|
|
7
|
-
const convert_exceptions_1 = require("./convert_exceptions");
|
|
8
|
-
async function callAsync(request, requestData, responseProto) {
|
|
9
|
-
const requestProto = new main_pb_1.Request();
|
|
10
|
-
requestProto.setRequest(request);
|
|
11
|
-
const data = serialization_1.serialize(requestProto, requestData);
|
|
12
|
-
const resultBuffer = await new Promise(resolve => bindings_1.binding.callAsync(data, resolve));
|
|
13
|
-
const structBuffers = serialization_1.deserialize(resultBuffer);
|
|
14
|
-
return processResponse(structBuffers, responseProto);
|
|
15
|
-
}
|
|
16
|
-
exports.callAsync = callAsync;
|
|
17
|
-
function callSync(request, requestData, responseProto) {
|
|
18
|
-
const requestProto = new main_pb_1.Request();
|
|
19
|
-
requestProto.setRequest(request);
|
|
20
|
-
const data = serialization_1.serialize(requestProto, requestData);
|
|
21
|
-
const resultBuffer = bindings_1.binding.callSync(data);
|
|
22
|
-
const structBuffers = serialization_1.deserialize(resultBuffer);
|
|
23
|
-
return processResponse(structBuffers, responseProto);
|
|
24
|
-
}
|
|
25
|
-
exports.callSync = callSync;
|
|
26
|
-
function processResponse(structBuffers, responseProto) {
|
|
27
|
-
const response = main_pb_1.Response.deserializeBinary(structBuffers[0]);
|
|
28
|
-
if (response.getResponse() !== main_pb_1.Response.ResponseType.OK) {
|
|
29
|
-
throw convert_exceptions_1.convertToException(response.getErrorType(), response.getErrorMessage(), structBuffers[1]);
|
|
30
|
-
}
|
|
31
|
-
/* istanbul ignore if */
|
|
32
|
-
if (responseProto && structBuffers.length <= 1) {
|
|
33
|
-
throw new Error('No response from library');
|
|
34
|
-
}
|
|
35
|
-
/* istanbul ignore if */
|
|
36
|
-
if (!responseProto && structBuffers.length > 1) {
|
|
37
|
-
throw new Error('Response from library ignored');
|
|
38
|
-
}
|
|
39
|
-
if (responseProto) {
|
|
40
|
-
return responseProto.deserializeBinary(structBuffers[1]);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|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AAC,CAAC,CAAC,CAAC;IAE9D,IAAI,QAAQ,CAAC,WAAW,EAAE,KAAK,kBAAQ,CAAC,YAAY,CAAC,EAAE,EAAE;QACvD,MAAM,uCAAkB,CAAC,QAAQ,CAAC,YAAY,EAAE,EAAE,QAAQ,CAAC,eAAe,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;KACjG;IAED,wBAAwB;IACxB,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,IAAI,CAAC,EAAE;QAC9C,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;KAC7C;IACD,wBAAwB;IACxB,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE;QAC9C,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;KAClD;IACD,IAAI,aAAa,EAAE;QACjB,OAAQ,aAAqB,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;KACnE;SAAM;QACL,OAAO,IAAI,CAAC;KACb;AACH,CAAC","sourcesContent":["import { Message } from 'google-protobuf';\n\nimport { Request, Response } from '../protobufs/main_pb';\n\nimport { binding } from './bindings';\nimport { Serializable, serialize, deserialize } from './serialization';\nimport { convertToException } from './convert_exceptions';\n\nexport async function callAsync(\n request: string,\n requestData?: Serializable\n): Promise<null>;\n\nexport async function callAsync<T extends Message>(\n request: string,\n requestData: Serializable | undefined,\n responseProto: new () => T\n): Promise<T>;\n\nexport async function callAsync<T extends Message>(\n request: string,\n requestData?: Serializable | undefined,\n responseProto?: new () => T\n): Promise<T | null> {\n const requestProto = new Request();\n requestProto.setRequest(request);\n\n const data = serialize(requestProto, requestData);\n\n const resultBuffer = await new Promise<Buffer>(resolve =>\n binding.callAsync(data, resolve)\n );\n\n const structBuffers = deserialize(resultBuffer);\n\n return processResponse(structBuffers, responseProto);\n}\n\nexport function callSync(\n request: string,\n requestData?: Serializable | undefined,\n): null;\n\nexport function callSync<T extends Message>(\n request: string,\n requestData: Serializable | undefined,\n responseProto: new () => T\n): T;\n\nexport function callSync<T extends Message>(\n request: string,\n requestData?: Serializable,\n responseProto?: new () => T\n): T | null {\n const requestProto = new Request();\n requestProto.setRequest(request);\n\n const data = serialize(requestProto, requestData);\n\n const resultBuffer: Buffer = binding.callSync(data);\n\n const structBuffers = deserialize(resultBuffer);\n\n return processResponse(structBuffers, responseProto);\n}\n\nfunction processResponse<T extends Message>(structBuffers: Buffer[], responseProto?: new () => T): T | null {\n const response = Response.deserializeBinary(structBuffers[0]);\n\n if (response.getResponse() !== Response.ResponseType.OK) {\n throw convertToException(response.getErrorType(), response.getErrorMessage(), structBuffers[1]);\n }\n\n /* istanbul ignore if */\n if (responseProto && structBuffers.length <= 1) {\n throw new Error('No response from library');\n }\n /* istanbul ignore if */\n if (!responseProto && structBuffers.length > 1) {\n throw new Error('Response from library ignored');\n }\n if (responseProto) {\n return (responseProto as any).deserializeBinary(structBuffers[1]);\n } else {\n return null;\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"convert_exceptions.js","sourceRoot":"","sources":["../../../src/gateway/convert_exceptions.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAEtD,kDAA0D;AAC1D,0DAA4C;AAE5C,MAAM,YAAY,GAAG,IAAI,GAAG,EAAwF,CAAC;AACrH,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,qBAAqB,EAAE,UAAU,CAAC,4BAA4B,CAAC,CAAC;AAC1F,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,cAAc,EAAE,UAAU,CAAC,sBAAsB,CAAC,CAAC;AAC7E,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,iBAAiB,EAAE,UAAU,CAAC,yBAAyB,CAAC,CAAC;AACnF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,iBAAiB,EAAE,UAAU,CAAC,yBAAyB,CAAC,CA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YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACvE,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,sBAAsB,EAAE,UAAU,CAAC,6BAA6B,CAAC,CAAC;AAC5F,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,2BAA2B,EAAE,UAAU,CAAC,kCAAkC,CAAC,CAAC;AACtG,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,mBAAmB,EAAE,UAAU,CAAC,0BAA0B,CAAC,CAAC;AACtF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,sBAAsB,EAAE,UAAU,CAAC,6BAA6B,CAAC,CAAC;AAC5F,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,eAAe,EAAE,UAAU,CAAC,uBAAuB,CAAC,CAAC;AAE/E,SAAgB,kBAAkB,CAAC,KAAe,EAAE,OAAe,EAAE,UAAmB;IACtF,MAAM,iBAAiB,GAAG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAElD,wBAAwB;IACxB,IAAI,CAAC,iBAAiB,EAAE;QACtB,OAAO,IAAI,UAAU,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;KACnD;IAED,OAAO,IAAI,iBAAiB,CAAC,OAAO,EAAE,UAAW,CAAC,CAAC;AACrD,CAAC;AATD,gDASC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Errors as PbErrors } from '../protobufs/main_pb';\nimport * as exceptions from '../exceptions';\n\nconst errorMapping = new Map<PbErrors, new (message: string, customData: Buffer) => exceptions.MotionLibException>();\nerrorMapping.set(PbErrors.BINARY_COMMAND_FAILED, exceptions.BinaryCommandFailedException);\nerrorMapping.set(PbErrors.COMMAND_FAILED, exceptions.CommandFailedException);\nerrorMapping.set(PbErrors.COMMAND_PREEMPTED, exceptions.CommandPreemptedException);\nerrorMapping.set(PbErrors.CONNECTION_CLOSED, exceptions.ConnectionClosedException);\nerrorMapping.set(PbErrors.CONNECTION_FAILED, exceptions.ConnectionFailedException);\nerrorMapping.set(PbErrors.CONVERSION_FAILED, exceptions.ConversionFailedException);\nerrorMapping.set(PbErrors.DEVICE_ADDRESS_CONFLICT, exceptions.DeviceAddressConflictException);\nerrorMapping.set(PbErrors.DEVICE_BUSY, exceptions.DeviceBusyException);\nerrorMapping.set(PbErrors.DEVICE_DB_FAILED, exceptions.DeviceDbFailedException);\nerrorMapping.set(PbErrors.DEVICE_FAILED, exceptions.DeviceFailedException);\nerrorMapping.set(PbErrors.DEVICE_NOT_IDENTIFIED, exceptions.DeviceNotIdentifiedException);\nerrorMapping.set(PbErrors.INTERNAL_ERROR, exceptions.InternalErrorException);\nerrorMapping.set(PbErrors.INVALID_ARGUMENT, exceptions.InvalidArgumentException);\nerrorMapping.set(PbErrors.INVALID_DATA, exceptions.InvalidDataException);\nerrorMapping.set(PbErrors.INVALID_PACKET, exceptions.InvalidPacketException);\nerrorMapping.set(PbErrors.INVALID_PARK_STATE, exceptions.InvalidParkStateException);\nerrorMapping.set(PbErrors.INVALID_RESPONSE, exceptions.InvalidResponseException);\nerrorMapping.set(PbErrors.IO_CHANNEL_OUT_OF_RANGE, exceptions.IoChannelOutOfRangeException);\nerrorMapping.set(PbErrors.IO_FAILED, exceptions.IoFailedException);\nerrorMapping.set(PbErrors.LOCKSTEP_ENABLED, exceptions.LockstepEnabledException);\nerrorMapping.set(PbErrors.LOCKSTEP_NOT_ENABLED, exceptions.LockstepNotEnabledException);\nerrorMapping.set(PbErrors.MOVEMENT_FAILED, exceptions.MovementFailedException);\nerrorMapping.set(PbErrors.MOVEMENT_INTERRUPTED, exceptions.MovementInterruptedException);\nerrorMapping.set(PbErrors.NO_DEVICE_FOUND, exceptions.NoDeviceFoundException);\nerrorMapping.set(PbErrors.NOT_SUPPORTED, exceptions.NotSupportedException);\nerrorMapping.set(PbErrors.OS_FAILED, exceptions.OsFailedException);\nerrorMapping.set(PbErrors.OUT_OF_REQUEST_IDS, exceptions.OutOfRequestIdsException);\nerrorMapping.set(PbErrors.REQUEST_TIMEOUT, exceptions.RequestTimeoutException);\nerrorMapping.set(PbErrors.SERIAL_PORT_BUSY, exceptions.SerialPortBusyException);\nerrorMapping.set(PbErrors.SETTING_NOT_FOUND, exceptions.SettingNotFoundException);\nerrorMapping.set(PbErrors.STREAM_EXECUTION, exceptions.StreamExecutionException);\nerrorMapping.set(PbErrors.STREAM_MODE, exceptions.StreamModeException);\nerrorMapping.set(PbErrors.STREAM_MOVEMENT_FAILED, exceptions.StreamMovementFailedException);\nerrorMapping.set(PbErrors.STREAM_MOVEMENT_INTERRUPTED, exceptions.StreamMovementInterruptedException);\nerrorMapping.set(PbErrors.STREAM_SETUP_FAILED, exceptions.StreamSetupFailedException);\nerrorMapping.set(PbErrors.TRANSPORT_ALREADY_USED, exceptions.TransportAlreadyUsedException);\nerrorMapping.set(PbErrors.UNKNOWN_REQUEST, exceptions.UnknownRequestException);\n\nexport function convertToException(error: PbErrors, message: string, customData?: Buffer): exceptions.MotionLibException {\n const SpecificException = errorMapping.get(error);\n\n /* istanbul ignore if */\n if (!SpecificException) {\n return new exceptions.MotionLibException(message);\n }\n\n return new SpecificException(message, customData!);\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/gateway/events.ts"],"names":[],"mappings":";;;AACA,+BAA4C;AAC5C,8CAA6C;AAE7C,kDAA2E;AAC3E,kDAA0H;AAE1H,yCAAqC;AACrC,mDAA8C;AAO9C,MAAM,aAAa,GAAG,IAAI,GAAG,EAAsB,CAAC;AAEvC,QAAA,MAAM,GAAyB,iBAAU,CAAC,MAAM,CAAC,CAAC,QAA4B,EAAE,EAAE;IAC7F,IAAI,aAAa,CAAC,IAAI,KAAK,CAAC,EAAE;QAC5B,kBAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,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AC,iBAAiB,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC;KACtE;IAED,MAAM,WAAW,GAAa,EAAE,SAAS,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAErF,KAAK,MAAM,QAAQ,IAAI,aAAa,EAAE;QACpC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KAC5B;AACH,CAAC,CAAC;AAEK,MAAM,WAAW,GAAG,CAAI,iBAAyB,EAAE,EAAE,CAAC,CAAC,MAA4B,EAAE,EAAE,CAC5F,MAAM,CAAC,IAAI,CACT,kBAAM,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,SAAS,KAAK,iBAAiB,CAAC,EAC1D,eAAG,CAAc,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAU,CAAC,CAC5C,CAAC;AAJS,QAAA,WAAW,eAIpB;AAEG,MAAM,iBAAiB,GAAG,GAAS,EAAE;IAC1C,kBAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;AACxC,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B","sourcesContent":["import { Message } from 'google-protobuf';\nimport { Observable, Observer } from 'rxjs';\nimport { filter, map } from 'rxjs/operators';\n\nimport { Event, TestEvent, DisconnectedEvent } from '../protobufs/main_pb';\nimport { UnknownResponseEvent, UnknownBinaryResponseEvent, AlertEvent, BinaryReplyOnlyEvent } from '../protobufs/main_pb';\n\nimport { binding } from './bindings';\nimport { deserialize } from './serialization';\n\ninterface SdkEvent {\n eventType: string;\n event: unknown;\n}\n\nconst subscriptions = new Set<Observer<SdkEvent>>();\n\nexport const events: Observable<SdkEvent> = Observable.create((observer: Observer<SdkEvent>) => {\n if (subscriptions.size === 0) {\n binding.setEventsEnabled(true);\n }\n\n subscriptions.add(observer);\n\n return () => {\n subscriptions.delete(observer);\n\n if (subscriptions.size === 0) {\n binding.setEventsEnabled(false);\n }\n };\n});\n\nconst eventParsers: { [event: string]: { deserializeBinary(buffer: Uint8Array): Message } } = {\n 'test/event': TestEvent,\n 'interface/unknown_response': UnknownResponseEvent,\n 'binary/interface/unknown_response': UnknownBinaryResponseEvent,\n 'interface/alert': AlertEvent,\n 'binary/interface/reply_only': BinaryReplyOnlyEvent,\n 'interface/disconnected': DisconnectedEvent,\n};\n\nconst eventHandler = (eventBuffer: Buffer) => {\n const structBuffers = deserialize(eventBuffer);\n const event = Event.deserializeBinary(structBuffers[0]);\n const eventData = structBuffers[1] || null;\n\n const eventName = event.getEvent();\n /* istanbul ignore if */\n if (!(eventName in eventParsers)) {\n throw new Error(`Unknown event: ${eventName}`);\n }\n const eventParser = eventParsers[eventName] || null;\n\n /* istanbul ignore if */\n if (!eventParser !== !eventData) {\n throw new Error(`Event data ignored or parser not provided for ${ eventName }`);\n }\n\n let eventDataProto: Record<string, unknown> | null = null;\n if (eventData) {\n eventDataProto = eventParser.deserializeBinary(eventData).toObject();\n }\n\n const eventObject: SdkEvent = { eventType: event.getEvent(), event: eventDataProto };\n\n for (const observer of subscriptions) {\n observer.next(eventObject);\n }\n};\n\nexport const filterEvent = <T>(eventTypeToFilter: string) => (source: Observable<SdkEvent>) =>\n source.pipe(\n filter(({ eventType }) => eventType === eventTypeToFilter),\n map<SdkEvent, T>(({ event }) => event as T)\n );\n\nexport const setupEventHandler = (): void => {\n binding.setEventHandler(eventHandler);\n};\n"]}
|
package/dist/node/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,+CAA6B;AAC7B,iEAA6D;AAApD,2HAAA,kBAAkB,OAAA;AAC3B,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,qDAAkD;AAAzC,gHAAA,aAAa,OAAA;AACtB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,2DAAyD;AAAhD,uHAAA,iBAAiB,OAAA;AAC1B,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,0CAAwB;AACxB,yCAAuB","sourcesContent":["export * from './ascii_ns';\nexport * from './binary_ns';\nexport * from './exceptions';\nexport { DeviceDbSourceType } from './device_db_source_type';\nexport { FirmwareVersion } from './firmware_version';\nexport { Library } from './library';\nexport { LogOutputMode } from './log_output_mode';\nexport { Measurement } from './measurement';\nexport { RotationDirection } from './rotation_direction';\nexport { Tools } from './tools';\nexport * from './units';\nexport * from './init';\n"]}
|
package/dist/node/init.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const __zml = "node";
|
package/dist/node/init.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.__zml = void 0;
|
|
4
|
-
const events_1 = require("./gateway/events");
|
|
5
|
-
events_1.setupEventHandler();
|
|
6
|
-
// something has to exported otherwise TS would not export methods when overwritten by init.web.ts
|
|
7
|
-
exports.__zml = 'node';
|
|
8
|
-
//# sourceMappingURL=init.js.map
|
package/dist/node/init.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/init.ts"],"names":[],"mappings":";;;AAAA,6CAAqD;AAErD,0BAAiB,EAAE,CAAC;AAEpB,kGAAkG;AACrF,QAAA,KAAK,GAAG,MAAM,CAAC","sourcesContent":["import { setupEventHandler } from './gateway/events';\n\nsetupEventHandler();\n\n// something has to exported otherwise TS would not export methods when overwritten by init.web.ts\nexport const __zml = 'node';\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Units } from './units';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a numerical value with optional units specified.
|
|
4
|
-
*/
|
|
5
|
-
export interface Measurement {
|
|
6
|
-
/**
|
|
7
|
-
* Value of the measurement.
|
|
8
|
-
*/
|
|
9
|
-
value: number;
|
|
10
|
-
/**
|
|
11
|
-
* Optional units of the measurement.
|
|
12
|
-
*/
|
|
13
|
-
unit?: Units | null;
|
|
14
|
-
}
|
|
15
|
-
export declare namespace Measurement {
|
|
16
|
-
const __type = "Measurement";
|
|
17
|
-
}
|