@zaber/motion 2.6.1 → 2.7.0-load-state-checks

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
  2. package/dist/lib/ascii/axis.d.ts +18 -0
  3. package/dist/lib/ascii/axis.js +40 -0
  4. package/dist/lib/ascii/axis.js.map +1 -1
  5. package/dist/lib/ascii/axis_settings.d.ts +14 -0
  6. package/dist/lib/ascii/axis_settings.js +30 -0
  7. package/dist/lib/ascii/axis_settings.js.map +1 -1
  8. package/dist/lib/ascii/connection.d.ts +1 -1
  9. package/dist/lib/ascii/connection.js +1 -1
  10. package/dist/lib/ascii/connection.js.map +1 -1
  11. package/dist/lib/ascii/device.d.ts +20 -0
  12. package/dist/lib/ascii/device.js +40 -0
  13. package/dist/lib/ascii/device.js.map +1 -1
  14. package/dist/lib/ascii/device_settings.d.ts +14 -0
  15. package/dist/lib/ascii/device_settings.js +28 -0
  16. package/dist/lib/ascii/device_settings.js.map +1 -1
  17. package/dist/lib/ascii/setting_constants.d.ts +360 -0
  18. package/dist/lib/ascii/setting_constants.js +360 -0
  19. package/dist/lib/ascii/setting_constants.js.map +1 -1
  20. package/dist/lib/ascii/stream.d.ts +6 -0
  21. package/dist/lib/ascii/stream.js +13 -0
  22. package/dist/lib/ascii/stream.js.map +1 -1
  23. package/dist/lib/ascii/stream_axis_definition.d.ts +1 -1
  24. package/dist/lib/ascii/stream_axis_definition.js.map +1 -1
  25. package/dist/lib/ascii/stream_buffer.d.ts +1 -0
  26. package/dist/lib/ascii/stream_buffer.js +1 -0
  27. package/dist/lib/ascii/stream_buffer.js.map +1 -1
  28. package/dist/lib/can_set_state_axis_response.d.ts +16 -0
  29. package/dist/lib/can_set_state_axis_response.js +18 -0
  30. package/dist/lib/can_set_state_axis_response.js.map +1 -0
  31. package/dist/lib/can_set_state_device_response.d.ts +17 -0
  32. package/dist/lib/can_set_state_device_response.js +19 -0
  33. package/dist/lib/can_set_state_device_response.js.map +1 -0
  34. package/dist/lib/exceptions/g_code_execution_exception.d.ts +14 -0
  35. package/dist/lib/exceptions/g_code_execution_exception.js +32 -0
  36. package/dist/lib/exceptions/g_code_execution_exception.js.map +1 -0
  37. package/dist/lib/exceptions/g_code_execution_exception_data.d.ts +17 -0
  38. package/dist/lib/exceptions/g_code_execution_exception_data.js +18 -0
  39. package/dist/lib/exceptions/g_code_execution_exception_data.js.map +1 -0
  40. package/dist/lib/exceptions/g_code_syntax_exception.d.ts +14 -0
  41. package/dist/lib/exceptions/g_code_syntax_exception.js +32 -0
  42. package/dist/lib/exceptions/g_code_syntax_exception.js.map +1 -0
  43. package/dist/lib/exceptions/g_code_syntax_exception_data.d.ts +17 -0
  44. package/dist/lib/exceptions/g_code_syntax_exception_data.js +18 -0
  45. package/dist/lib/exceptions/g_code_syntax_exception_data.js.map +1 -0
  46. package/dist/lib/exceptions/index.d.ts +8 -0
  47. package/dist/lib/exceptions/index.js +18 -1
  48. package/dist/lib/exceptions/index.js.map +1 -1
  49. package/dist/lib/exceptions/set_device_state_exception_data.d.ts +25 -0
  50. package/dist/lib/exceptions/set_device_state_exception_data.js +21 -0
  51. package/dist/lib/exceptions/set_device_state_exception_data.js.map +1 -0
  52. package/dist/lib/exceptions/set_device_state_failed_exception.d.ts +14 -0
  53. package/dist/lib/exceptions/set_device_state_failed_exception.js +32 -0
  54. package/dist/lib/exceptions/set_device_state_failed_exception.js.map +1 -0
  55. package/dist/lib/exceptions/set_peripheral_state_exception_data.d.ts +20 -0
  56. package/dist/lib/exceptions/set_peripheral_state_exception_data.js +19 -0
  57. package/dist/lib/exceptions/set_peripheral_state_exception_data.js.map +1 -0
  58. package/dist/lib/exceptions/set_peripheral_state_failed_exception.d.ts +14 -0
  59. package/dist/lib/exceptions/set_peripheral_state_failed_exception.js +32 -0
  60. package/dist/lib/exceptions/set_peripheral_state_failed_exception.js.map +1 -0
  61. package/dist/lib/finalizer.d.ts +5 -0
  62. package/dist/lib/finalizer.js +21 -0
  63. package/dist/lib/finalizer.js.map +1 -0
  64. package/dist/lib/gateway/convert_exceptions.js +4 -0
  65. package/dist/lib/gateway/convert_exceptions.js.map +1 -1
  66. package/dist/lib/gcode/axis_mapping.d.ts +16 -0
  67. package/dist/lib/gcode/axis_mapping.js +38 -0
  68. package/dist/lib/gcode/axis_mapping.js.map +1 -0
  69. package/dist/lib/gcode/index.d.ts +8 -0
  70. package/dist/lib/gcode/index.js +20 -0
  71. package/dist/lib/gcode/index.js.map +1 -0
  72. package/dist/lib/gcode/translate_message.d.ts +21 -0
  73. package/dist/lib/gcode/translate_message.js +19 -0
  74. package/dist/lib/gcode/translate_message.js.map +1 -0
  75. package/dist/lib/gcode/translate_result.d.ts +17 -0
  76. package/dist/lib/gcode/translate_result.js +19 -0
  77. package/dist/lib/gcode/translate_result.js.map +1 -0
  78. package/dist/lib/gcode/translator.d.ts +68 -0
  79. package/dist/lib/gcode/translator.js +144 -0
  80. package/dist/lib/gcode/translator.js.map +1 -0
  81. package/dist/lib/gcode/translator_axis_definition.d.ts +20 -0
  82. package/dist/lib/gcode/translator_axis_definition.js +48 -0
  83. package/dist/lib/gcode/translator_axis_definition.js.map +1 -0
  84. package/dist/lib/gcode/translator_config.d.ts +18 -0
  85. package/dist/lib/gcode/translator_config.js +41 -0
  86. package/dist/lib/gcode/translator_config.js.map +1 -0
  87. package/dist/lib/gcode/translator_definition.d.ts +18 -0
  88. package/dist/lib/gcode/translator_definition.js +39 -0
  89. package/dist/lib/gcode/translator_definition.js.map +1 -0
  90. package/dist/lib/gcode/translator_live.d.ts +70 -0
  91. package/dist/lib/gcode/translator_live.js +147 -0
  92. package/dist/lib/gcode/translator_live.js.map +1 -0
  93. package/dist/lib/gcode_ns.d.ts +19 -0
  94. package/dist/lib/gcode_ns.js +35 -0
  95. package/dist/lib/gcode_ns.js.map +1 -0
  96. package/dist/lib/index.d.ts +3 -0
  97. package/dist/lib/index.js +6 -1
  98. package/dist/lib/index.js.map +1 -1
  99. package/dist/lib/measurement.d.ts +1 -1
  100. package/dist/lib/measurement.js.map +1 -1
  101. package/dist/lib/protobufs/main_pb.d.ts +784 -0
  102. package/dist/lib/protobufs/main_pb.js +6037 -1
  103. package/dist/lib/protobufs/main_pb.js.map +1 -1
  104. package/package.json +2 -2
@@ -9,6 +9,8 @@ export { DeviceBusyException } from './device_busy_exception';
9
9
  export { DeviceDbFailedException } from './device_db_failed_exception';
10
10
  export { DeviceFailedException } from './device_failed_exception';
11
11
  export { DeviceNotIdentifiedException } from './device_not_identified_exception';
12
+ export { GCodeExecutionException } from './g_code_execution_exception';
13
+ export { GCodeSyntaxException } from './g_code_syntax_exception';
12
14
  export { InternalErrorException } from './internal_error_exception';
13
15
  export { InvalidArgumentException } from './invalid_argument_exception';
14
16
  export { InvalidDataException } from './invalid_data_exception';
@@ -27,6 +29,8 @@ export { OsFailedException } from './os_failed_exception';
27
29
  export { OutOfRequestIdsException } from './out_of_request_ids_exception';
28
30
  export { RequestTimeoutException } from './request_timeout_exception';
29
31
  export { SerialPortBusyException } from './serial_port_busy_exception';
32
+ export { SetDeviceStateFailedException } from './set_device_state_failed_exception';
33
+ export { SetPeripheralStateFailedException } from './set_peripheral_state_failed_exception';
30
34
  export { SettingNotFoundException } from './setting_not_found_exception';
31
35
  export { StreamExecutionException } from './stream_execution_exception';
32
36
  export { StreamModeException } from './stream_mode_exception';
@@ -39,10 +43,14 @@ export { MotionLibException } from './motion_lib_exception';
39
43
  export { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';
40
44
  export { CommandFailedExceptionData } from './command_failed_exception_data';
41
45
  export { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';
46
+ export { GCodeExecutionExceptionData } from './g_code_execution_exception_data';
47
+ export { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';
42
48
  export { InvalidPacketExceptionData } from './invalid_packet_exception_data';
43
49
  export { InvalidResponseExceptionData } from './invalid_response_exception_data';
44
50
  export { MovementFailedExceptionData } from './movement_failed_exception_data';
45
51
  export { MovementInterruptedExceptionData } from './movement_interrupted_exception_data';
52
+ export { SetDeviceStateExceptionData } from './set_device_state_exception_data';
53
+ export { SetPeripheralStateExceptionData } from './set_peripheral_state_exception_data';
46
54
  export { StreamExecutionExceptionData } from './stream_execution_exception_data';
47
55
  export { StreamMovementFailedExceptionData } from './stream_movement_failed_exception_data';
48
56
  export { StreamMovementInterruptedExceptionData } from './stream_movement_interrupted_exception_data';
@@ -2,7 +2,8 @@
2
2
  // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
3
  // ============= DO NOT EDIT DIRECTLY ============= //
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.StreamMovementInterruptedExceptionData = exports.StreamMovementFailedExceptionData = exports.StreamExecutionExceptionData = exports.MovementInterruptedExceptionData = exports.MovementFailedExceptionData = exports.InvalidResponseExceptionData = exports.InvalidPacketExceptionData = exports.DeviceAddressConflictExceptionData = exports.CommandFailedExceptionData = exports.BinaryCommandFailedExceptionData = exports.MotionLibException = exports.UnknownRequestException = exports.TransportAlreadyUsedException = exports.StreamSetupFailedException = exports.StreamMovementInterruptedException = exports.StreamMovementFailedException = exports.StreamModeException = exports.StreamExecutionException = exports.SettingNotFoundException = exports.SerialPortBusyException = exports.RequestTimeoutException = exports.OutOfRequestIdsException = exports.OsFailedException = exports.NotSupportedException = exports.NoDeviceFoundException = exports.MovementInterruptedException = exports.MovementFailedException = exports.LockstepNotEnabledException = exports.LockstepEnabledException = exports.IoFailedException = exports.IoChannelOutOfRangeException = exports.InvalidResponseException = exports.InvalidParkStateException = exports.InvalidPacketException = exports.InvalidDataException = exports.InvalidArgumentException = exports.InternalErrorException = exports.DeviceNotIdentifiedException = exports.DeviceFailedException = exports.DeviceDbFailedException = exports.DeviceBusyException = exports.DeviceAddressConflictException = exports.ConversionFailedException = exports.ConnectionFailedException = exports.ConnectionClosedException = exports.CommandPreemptedException = exports.CommandFailedException = exports.BinaryCommandFailedException = void 0;
5
+ exports.MovementFailedExceptionData = exports.InvalidResponseExceptionData = exports.InvalidPacketExceptionData = exports.GCodeSyntaxExceptionData = exports.GCodeExecutionExceptionData = exports.DeviceAddressConflictExceptionData = exports.CommandFailedExceptionData = exports.BinaryCommandFailedExceptionData = exports.MotionLibException = exports.UnknownRequestException = exports.TransportAlreadyUsedException = exports.StreamSetupFailedException = exports.StreamMovementInterruptedException = exports.StreamMovementFailedException = exports.StreamModeException = exports.StreamExecutionException = exports.SettingNotFoundException = exports.SetPeripheralStateFailedException = exports.SetDeviceStateFailedException = exports.SerialPortBusyException = exports.RequestTimeoutException = exports.OutOfRequestIdsException = exports.OsFailedException = exports.NotSupportedException = exports.NoDeviceFoundException = exports.MovementInterruptedException = exports.MovementFailedException = exports.LockstepNotEnabledException = exports.LockstepEnabledException = exports.IoFailedException = exports.IoChannelOutOfRangeException = exports.InvalidResponseException = exports.InvalidParkStateException = exports.InvalidPacketException = exports.InvalidDataException = exports.InvalidArgumentException = exports.InternalErrorException = exports.GCodeSyntaxException = exports.GCodeExecutionException = exports.DeviceNotIdentifiedException = exports.DeviceFailedException = exports.DeviceDbFailedException = exports.DeviceBusyException = exports.DeviceAddressConflictException = exports.ConversionFailedException = exports.ConnectionFailedException = exports.ConnectionClosedException = exports.CommandPreemptedException = exports.CommandFailedException = exports.BinaryCommandFailedException = void 0;
6
+ exports.StreamMovementInterruptedExceptionData = exports.StreamMovementFailedExceptionData = exports.StreamExecutionExceptionData = exports.SetPeripheralStateExceptionData = exports.SetDeviceStateExceptionData = exports.MovementInterruptedExceptionData = void 0;
6
7
  var binary_command_failed_exception_1 = require("./binary_command_failed_exception");
7
8
  Object.defineProperty(exports, "BinaryCommandFailedException", { enumerable: true, get: function () { return binary_command_failed_exception_1.BinaryCommandFailedException; } });
8
9
  var command_failed_exception_1 = require("./command_failed_exception");
@@ -25,6 +26,10 @@ var device_failed_exception_1 = require("./device_failed_exception");
25
26
  Object.defineProperty(exports, "DeviceFailedException", { enumerable: true, get: function () { return device_failed_exception_1.DeviceFailedException; } });
26
27
  var device_not_identified_exception_1 = require("./device_not_identified_exception");
27
28
  Object.defineProperty(exports, "DeviceNotIdentifiedException", { enumerable: true, get: function () { return device_not_identified_exception_1.DeviceNotIdentifiedException; } });
29
+ var g_code_execution_exception_1 = require("./g_code_execution_exception");
30
+ Object.defineProperty(exports, "GCodeExecutionException", { enumerable: true, get: function () { return g_code_execution_exception_1.GCodeExecutionException; } });
31
+ var g_code_syntax_exception_1 = require("./g_code_syntax_exception");
32
+ Object.defineProperty(exports, "GCodeSyntaxException", { enumerable: true, get: function () { return g_code_syntax_exception_1.GCodeSyntaxException; } });
28
33
  var internal_error_exception_1 = require("./internal_error_exception");
29
34
  Object.defineProperty(exports, "InternalErrorException", { enumerable: true, get: function () { return internal_error_exception_1.InternalErrorException; } });
30
35
  var invalid_argument_exception_1 = require("./invalid_argument_exception");
@@ -61,6 +66,10 @@ var request_timeout_exception_1 = require("./request_timeout_exception");
61
66
  Object.defineProperty(exports, "RequestTimeoutException", { enumerable: true, get: function () { return request_timeout_exception_1.RequestTimeoutException; } });
62
67
  var serial_port_busy_exception_1 = require("./serial_port_busy_exception");
63
68
  Object.defineProperty(exports, "SerialPortBusyException", { enumerable: true, get: function () { return serial_port_busy_exception_1.SerialPortBusyException; } });
69
+ var set_device_state_failed_exception_1 = require("./set_device_state_failed_exception");
70
+ Object.defineProperty(exports, "SetDeviceStateFailedException", { enumerable: true, get: function () { return set_device_state_failed_exception_1.SetDeviceStateFailedException; } });
71
+ var set_peripheral_state_failed_exception_1 = require("./set_peripheral_state_failed_exception");
72
+ Object.defineProperty(exports, "SetPeripheralStateFailedException", { enumerable: true, get: function () { return set_peripheral_state_failed_exception_1.SetPeripheralStateFailedException; } });
64
73
  var setting_not_found_exception_1 = require("./setting_not_found_exception");
65
74
  Object.defineProperty(exports, "SettingNotFoundException", { enumerable: true, get: function () { return setting_not_found_exception_1.SettingNotFoundException; } });
66
75
  var stream_execution_exception_1 = require("./stream_execution_exception");
@@ -85,6 +94,10 @@ var command_failed_exception_data_1 = require("./command_failed_exception_data")
85
94
  Object.defineProperty(exports, "CommandFailedExceptionData", { enumerable: true, get: function () { return command_failed_exception_data_1.CommandFailedExceptionData; } });
86
95
  var device_address_conflict_exception_data_1 = require("./device_address_conflict_exception_data");
87
96
  Object.defineProperty(exports, "DeviceAddressConflictExceptionData", { enumerable: true, get: function () { return device_address_conflict_exception_data_1.DeviceAddressConflictExceptionData; } });
97
+ var g_code_execution_exception_data_1 = require("./g_code_execution_exception_data");
98
+ Object.defineProperty(exports, "GCodeExecutionExceptionData", { enumerable: true, get: function () { return g_code_execution_exception_data_1.GCodeExecutionExceptionData; } });
99
+ var g_code_syntax_exception_data_1 = require("./g_code_syntax_exception_data");
100
+ Object.defineProperty(exports, "GCodeSyntaxExceptionData", { enumerable: true, get: function () { return g_code_syntax_exception_data_1.GCodeSyntaxExceptionData; } });
88
101
  var invalid_packet_exception_data_1 = require("./invalid_packet_exception_data");
89
102
  Object.defineProperty(exports, "InvalidPacketExceptionData", { enumerable: true, get: function () { return invalid_packet_exception_data_1.InvalidPacketExceptionData; } });
90
103
  var invalid_response_exception_data_1 = require("./invalid_response_exception_data");
@@ -93,6 +106,10 @@ var movement_failed_exception_data_1 = require("./movement_failed_exception_data
93
106
  Object.defineProperty(exports, "MovementFailedExceptionData", { enumerable: true, get: function () { return movement_failed_exception_data_1.MovementFailedExceptionData; } });
94
107
  var movement_interrupted_exception_data_1 = require("./movement_interrupted_exception_data");
95
108
  Object.defineProperty(exports, "MovementInterruptedExceptionData", { enumerable: true, get: function () { return movement_interrupted_exception_data_1.MovementInterruptedExceptionData; } });
109
+ var set_device_state_exception_data_1 = require("./set_device_state_exception_data");
110
+ Object.defineProperty(exports, "SetDeviceStateExceptionData", { enumerable: true, get: function () { return set_device_state_exception_data_1.SetDeviceStateExceptionData; } });
111
+ var set_peripheral_state_exception_data_1 = require("./set_peripheral_state_exception_data");
112
+ Object.defineProperty(exports, "SetPeripheralStateExceptionData", { enumerable: true, get: function () { return set_peripheral_state_exception_data_1.SetPeripheralStateExceptionData; } });
96
113
  var stream_execution_exception_data_1 = require("./stream_execution_exception_data");
97
114
  Object.defineProperty(exports, "StreamExecutionExceptionData", { enumerable: true, get: function () { return stream_execution_exception_data_1.StreamExecutionExceptionData; } });
98
115
  var stream_movement_failed_exception_data_1 = require("./stream_movement_failed_exception_data");
@@ -1 +1 @@
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;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,yFAAqF;AAA5E,mJAAA,8BAA8B,OAAA;AACvC,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA;AAC/B,2EAAwE;AAA/D,sIAAA,wBAAwB,OAAA;AACjC,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA;AAC7B,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA;AAC/B,+EAA2E;AAAlE,yIAAA,yBAAyB,OAAA;AAClC,2EAAwE;AAA/D,sIAAA,wBAAwB,OAAA;AACjC,yFAAmF;AAA1E,iJAAA,4BAA4B,OAAA;AACrC,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA;AAC1B,2EAAwE;AAA/D,s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AA","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
+ {"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;AAAjE,wIAAA,yBAAyB,OAAA;AAClC,yFAAqF;AAA5E,mJAAA,8BAA8B,OAAA;AACvC,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA;AAC/B,2EAAwE;AAA/D,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AgC,OAAA;AACzC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mGAA8F;AAArF,4JAAA,kCAAkC,OAAA;AAC3C,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,+EAA0E;AAAjE,wIAAA,wBAAwB,OAAA;AACjC,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,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,6FAAwF;AAA/E,sJAAA,+BAA+B,OAAA;AACxC,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 { GCodeExecutionException } from './g_code_execution_exception';\nexport { GCodeSyntaxException } from './g_code_syntax_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 { SetDeviceStateFailedException } from './set_device_state_failed_exception';\nexport { SetPeripheralStateFailedException } from './set_peripheral_state_failed_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 { GCodeExecutionExceptionData } from './g_code_execution_exception_data';\nexport { GCodeSyntaxExceptionData } from './g_code_syntax_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 { SetDeviceStateExceptionData } from './set_device_state_exception_data';\nexport { SetPeripheralStateExceptionData } from './set_peripheral_state_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"]}
@@ -0,0 +1,25 @@
1
+ import { SetPeripheralStateExceptionData } from './set_peripheral_state_exception_data';
2
+ /**
3
+ * Contains additional data for a SetDeviceStateFailedException.
4
+ */
5
+ export interface SetDeviceStateExceptionData {
6
+ /**
7
+ * A list of settings which could not be set.
8
+ */
9
+ settings: string[];
10
+ /**
11
+ * The reason the stream buffers could not be set.
12
+ */
13
+ streamBuffers: string[];
14
+ /**
15
+ * The reason the triggers could not be set.
16
+ */
17
+ triggers: string[];
18
+ /**
19
+ * Errors for any peripherals that could not be set.
20
+ */
21
+ peripherals: SetPeripheralStateExceptionData[];
22
+ }
23
+ export declare namespace SetDeviceStateExceptionData {
24
+ const __type = "SetDeviceStateExceptionData";
25
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
+ // ============= DO NOT EDIT DIRECTLY ============= //
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.SetDeviceStateExceptionData = void 0;
6
+ const set_peripheral_state_exception_data_1 = require("./set_peripheral_state_exception_data");
7
+ var SetDeviceStateExceptionData;
8
+ (function (SetDeviceStateExceptionData) {
9
+ SetDeviceStateExceptionData.__type = 'SetDeviceStateExceptionData';
10
+ /** @internal */
11
+ function fromProtobuf(pbData) {
12
+ return {
13
+ settings: pbData.settingsList,
14
+ streamBuffers: pbData.streamBuffersList,
15
+ triggers: pbData.triggersList,
16
+ peripherals: pbData.peripheralsList.map(item => set_peripheral_state_exception_data_1.SetPeripheralStateExceptionData.fromProtobuf(item)),
17
+ };
18
+ }
19
+ SetDeviceStateExceptionData.fromProtobuf = fromProtobuf;
20
+ })(SetDeviceStateExceptionData = exports.SetDeviceStateExceptionData || (exports.SetDeviceStateExceptionData = {}));
21
+ //# sourceMappingURL=set_device_state_exception_data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set_device_state_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/set_device_state_exception_data.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAGtD,+FAAwF;AA4BxF,IAAiB,2BAA2B,CAY3C;AAZD,WAAiB,2BAA2B;IAC7B,kCAAM,GAAG,6BAA6B,CAAC;IAEpD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAoD;QAC/E,OAAO;YACL,QAAQ,EAAE,MAAM,CAAC,YAAY;YAC7B,aAAa,EAAE,MAAM,CAAC,iBAAiB;YACvC,QAAQ,EAAE,MAAM,CAAC,YAAY;YAC7B,WAAW,EAAE,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,qEAA+B,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SACpG,CAAC;IACJ,CAAC;IAPe,wCAAY,eAO3B,CAAA;AACH,CAAC,EAZgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAY3C","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { SetPeripheralStateExceptionData } from './set_peripheral_state_exception_data';\n\n/**\n * Contains additional data for a SetDeviceStateFailedException.\n */\nexport interface SetDeviceStateExceptionData {\n /**\n * A list of settings which could not be set.\n */\n settings: string[];\n\n /**\n * The reason the stream buffers could not be set.\n */\n streamBuffers: string[];\n\n /**\n * The reason the triggers could not be set.\n */\n triggers: string[];\n\n /**\n * Errors for any peripherals that could not be set.\n */\n peripherals: SetPeripheralStateExceptionData[];\n\n}\n\nexport namespace SetDeviceStateExceptionData {\n export const __type = 'SetDeviceStateExceptionData';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.SetDeviceStateExceptionData.AsObject): SetDeviceStateExceptionData {\n return {\n settings: pbData.settingsList,\n streamBuffers: pbData.streamBuffersList,\n triggers: pbData.triggersList,\n peripherals: pbData.peripheralsList.map(item => SetPeripheralStateExceptionData.fromProtobuf(item)),\n };\n }\n}\n"]}
@@ -0,0 +1,14 @@
1
+ /// <reference types="node" />
2
+ import { MotionLibException } from './motion_lib_exception';
3
+ import { SetDeviceStateExceptionData } from './set_device_state_exception_data';
4
+ /**
5
+ * Thrown when a device cannot be set to the supplied state.
6
+ */
7
+ export declare class SetDeviceStateFailedException extends MotionLibException {
8
+ /**
9
+ * Additional data for SetDeviceStateFailedException
10
+ */
11
+ get details(): SetDeviceStateExceptionData;
12
+ private _details;
13
+ constructor(message: string, customData: Buffer | SetDeviceStateExceptionData);
14
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
+ // ============= DO NOT EDIT DIRECTLY ============= //
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.SetDeviceStateFailedException = void 0;
6
+ const motion_lib_exception_1 = require("./motion_lib_exception");
7
+ const main_pb_1 = require("../protobufs/main_pb");
8
+ const set_device_state_exception_data_1 = require("./set_device_state_exception_data");
9
+ /**
10
+ * Thrown when a device cannot be set to the supplied state.
11
+ */
12
+ class SetDeviceStateFailedException extends motion_lib_exception_1.MotionLibException {
13
+ constructor(message, customData) {
14
+ super(message);
15
+ Object.setPrototypeOf(this, SetDeviceStateFailedException.prototype);
16
+ if (Buffer.isBuffer(customData)) {
17
+ const protobufObj = main_pb_1.SetDeviceStateExceptionData.deserializeBinary(customData);
18
+ this._details = set_device_state_exception_data_1.SetDeviceStateExceptionData.fromProtobuf(protobufObj.toObject());
19
+ }
20
+ else {
21
+ this._details = customData;
22
+ }
23
+ }
24
+ /**
25
+ * Additional data for SetDeviceStateFailedException
26
+ */
27
+ get details() {
28
+ return this._details;
29
+ }
30
+ }
31
+ exports.SetDeviceStateFailedException = SetDeviceStateFailedException;
32
+ //# sourceMappingURL=set_device_state_failed_exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set_device_state_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/set_device_state_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAyF;AACzF,uFAAgF;AAEhF;;GAEG;AACH,MAAa,6BAA8B,SAAQ,yCAAkB;IASnE,YACE,OAAe,EACf,UAAgD;QAEhD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,6BAA6B,CAAC,SAAS,CAAC,CAAC;QAErE,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,qCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,6DAA2B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SAClF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;IArBD;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CAiBF;AAvBD,sEAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { SetDeviceStateExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { SetDeviceStateExceptionData } from './set_device_state_exception_data';\n\n/**\n * Thrown when a device cannot be set to the supplied state.\n */\nexport class SetDeviceStateFailedException extends MotionLibException {\n /**\n * Additional data for SetDeviceStateFailedException\n */\n public get details(): SetDeviceStateExceptionData {\n return this._details;\n }\n private _details: SetDeviceStateExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | SetDeviceStateExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, SetDeviceStateFailedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = SetDeviceStateExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Contains additional data for a SetPeripheralStateFailedException.
3
+ */
4
+ export interface SetPeripheralStateExceptionData {
5
+ /**
6
+ * The number of axis where the exception originated.
7
+ */
8
+ axisNumber: number;
9
+ /**
10
+ * A list of settings which could not be set.
11
+ */
12
+ settings: string[];
13
+ /**
14
+ * The reason servo tuning could not be set.
15
+ */
16
+ servoTuning: string;
17
+ }
18
+ export declare namespace SetPeripheralStateExceptionData {
19
+ const __type = "SetPeripheralStateExceptionData";
20
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
+ // ============= DO NOT EDIT DIRECTLY ============= //
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.SetPeripheralStateExceptionData = void 0;
6
+ var SetPeripheralStateExceptionData;
7
+ (function (SetPeripheralStateExceptionData) {
8
+ SetPeripheralStateExceptionData.__type = 'SetPeripheralStateExceptionData';
9
+ /** @internal */
10
+ function fromProtobuf(pbData) {
11
+ return {
12
+ axisNumber: pbData.axisNumber,
13
+ settings: pbData.settingsList,
14
+ servoTuning: pbData.servoTuning,
15
+ };
16
+ }
17
+ SetPeripheralStateExceptionData.fromProtobuf = fromProtobuf;
18
+ })(SetPeripheralStateExceptionData = exports.SetPeripheralStateExceptionData || (exports.SetPeripheralStateExceptionData = {}));
19
+ //# sourceMappingURL=set_peripheral_state_exception_data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set_peripheral_state_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/set_peripheral_state_exception_data.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAyBtD,IAAiB,+BAA+B,CAW/C;AAXD,WAAiB,+BAA+B;IACjC,sCAAM,GAAG,iCAAiC,CAAC;IAExD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAwD;QACnF,OAAO;YACL,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,QAAQ,EAAE,MAAM,CAAC,YAAY;YAC7B,WAAW,EAAE,MAAM,CAAC,WAAW;SAChC,CAAC;IACJ,CAAC;IANe,4CAAY,eAM3B,CAAA;AACH,CAAC,EAXgB,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAW/C","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Contains additional data for a SetPeripheralStateFailedException.\n */\nexport interface SetPeripheralStateExceptionData {\n /**\n * The number of axis where the exception originated.\n */\n axisNumber: number;\n\n /**\n * A list of settings which could not be set.\n */\n settings: string[];\n\n /**\n * The reason servo tuning could not be set.\n */\n servoTuning: string;\n\n}\n\nexport namespace SetPeripheralStateExceptionData {\n export const __type = 'SetPeripheralStateExceptionData';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.SetPeripheralStateExceptionData.AsObject): SetPeripheralStateExceptionData {\n return {\n axisNumber: pbData.axisNumber,\n settings: pbData.settingsList,\n servoTuning: pbData.servoTuning,\n };\n }\n}\n"]}
@@ -0,0 +1,14 @@
1
+ /// <reference types="node" />
2
+ import { MotionLibException } from './motion_lib_exception';
3
+ import { SetPeripheralStateExceptionData } from './set_peripheral_state_exception_data';
4
+ /**
5
+ * Thrown when an axis cannot be set to the supplied state.
6
+ */
7
+ export declare class SetPeripheralStateFailedException extends MotionLibException {
8
+ /**
9
+ * Additional data for SetPeripheralStateFailedException
10
+ */
11
+ get details(): SetPeripheralStateExceptionData;
12
+ private _details;
13
+ constructor(message: string, customData: Buffer | SetPeripheralStateExceptionData);
14
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
+ // ============= DO NOT EDIT DIRECTLY ============= //
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.SetPeripheralStateFailedException = void 0;
6
+ const motion_lib_exception_1 = require("./motion_lib_exception");
7
+ const main_pb_1 = require("../protobufs/main_pb");
8
+ const set_peripheral_state_exception_data_1 = require("./set_peripheral_state_exception_data");
9
+ /**
10
+ * Thrown when an axis cannot be set to the supplied state.
11
+ */
12
+ class SetPeripheralStateFailedException extends motion_lib_exception_1.MotionLibException {
13
+ constructor(message, customData) {
14
+ super(message);
15
+ Object.setPrototypeOf(this, SetPeripheralStateFailedException.prototype);
16
+ if (Buffer.isBuffer(customData)) {
17
+ const protobufObj = main_pb_1.SetPeripheralStateExceptionData.deserializeBinary(customData);
18
+ this._details = set_peripheral_state_exception_data_1.SetPeripheralStateExceptionData.fromProtobuf(protobufObj.toObject());
19
+ }
20
+ else {
21
+ this._details = customData;
22
+ }
23
+ }
24
+ /**
25
+ * Additional data for SetPeripheralStateFailedException
26
+ */
27
+ get details() {
28
+ return this._details;
29
+ }
30
+ }
31
+ exports.SetPeripheralStateFailedException = SetPeripheralStateFailedException;
32
+ //# sourceMappingURL=set_peripheral_state_failed_exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set_peripheral_state_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/set_peripheral_state_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAA6F;AAC7F,+FAAwF;AAExF;;GAEG;AACH,MAAa,iCAAkC,SAAQ,yCAAkB;IASvE,YACE,OAAe,EACf,UAAoD;QAEpD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iCAAiC,CAAC,SAAS,CAAC,CAAC;QAEzE,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,yCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,qEAA+B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACtF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;IArBD;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CAiBF;AAvBD,8EAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { SetPeripheralStateExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { SetPeripheralStateExceptionData } from './set_peripheral_state_exception_data';\n\n/**\n * Thrown when an axis cannot be set to the supplied state.\n */\nexport class SetPeripheralStateFailedException extends MotionLibException {\n /**\n * Additional data for SetPeripheralStateFailedException\n */\n public get details(): SetPeripheralStateExceptionData {\n return this._details;\n }\n private _details: SetPeripheralStateExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | SetPeripheralStateExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, SetPeripheralStateFailedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = SetPeripheralStateExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @param instance what to finalize
3
+ * @param cleanup callback performing the finalization (MUST NOT hold reference to instance)
4
+ */
5
+ export declare const registerForFinalization: (instance: object, cleanup: () => void) => void;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerForFinalization = void 0;
4
+ let finalizationRegistry;
5
+ if (typeof FinalizationRegistry !== 'undefined') {
6
+ finalizationRegistry = new FinalizationRegistry(cleanup => cleanup());
7
+ }
8
+ /**
9
+ * @param instance what to finalize
10
+ * @param cleanup callback performing the finalization (MUST NOT hold reference to instance)
11
+ */
12
+ const registerForFinalization = (instance, cleanup) => {
13
+ if (finalizationRegistry == null) {
14
+ // eslint-disable-next-line no-console
15
+ console.warn(`FinalizationRegistry is not supported by your environment, instances of ${instance.constructor.name} must be freed manually.`);
16
+ return;
17
+ }
18
+ finalizationRegistry.register(instance, cleanup);
19
+ };
20
+ exports.registerForFinalization = registerForFinalization;
21
+ //# sourceMappingURL=finalizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finalizer.js","sourceRoot":"","sources":["../../src/finalizer.ts"],"names":[],"mappings":";;;AAAA,IAAI,oBAAkE,CAAC;AAEvE,IAAI,OAAO,oBAAoB,KAAK,WAAW,EAAE;IAC/C,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;CACvE;AAED;;;GAGG;AACI,MAAM,uBAAuB,GAAG,CAAC,QAAgB,EAAE,OAAmB,EAAE,EAAE;IAC/E,IAAI,oBAAoB,IAAI,IAAI,EAAE;QAChC,sCAAsC;QACtC,OAAO,CAAC,IAAI,CAAC,2EAA2E,QAAQ,CAAC,WAAW,CAAC,IAAI,0BAA0B,CAAC,CAAC;QAC7I,OAAO;KACR;IACD,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC,CAAC;AAPW,QAAA,uBAAuB,2BAOlC","sourcesContent":["let finalizationRegistry: FinalizationRegistry<() => void> | undefined;\n\nif (typeof FinalizationRegistry !== 'undefined') {\n finalizationRegistry = new FinalizationRegistry(cleanup => cleanup());\n}\n\n/**\n * @param instance what to finalize\n * @param cleanup callback performing the finalization (MUST NOT hold reference to instance)\n */\nexport const registerForFinalization = (instance: object, cleanup: () => void) => { // eslint-disable-line @typescript-eslint/ban-types\n if (finalizationRegistry == null) {\n // eslint-disable-next-line no-console\n console.warn(`FinalizationRegistry is not supported by your environment, instances of ${instance.constructor.name} must be freed manually.`);\n return;\n }\n finalizationRegistry.register(instance, cleanup);\n};\n"]}
@@ -36,6 +36,8 @@ errorMapping.set(main_pb_1.Errors.DEVICE_BUSY, exceptions.DeviceBusyException);
36
36
  errorMapping.set(main_pb_1.Errors.DEVICE_DB_FAILED, exceptions.DeviceDbFailedException);
37
37
  errorMapping.set(main_pb_1.Errors.DEVICE_FAILED, exceptions.DeviceFailedException);
38
38
  errorMapping.set(main_pb_1.Errors.DEVICE_NOT_IDENTIFIED, exceptions.DeviceNotIdentifiedException);
39
+ errorMapping.set(main_pb_1.Errors.G_CODE_EXECUTION, exceptions.GCodeExecutionException);
40
+ errorMapping.set(main_pb_1.Errors.G_CODE_SYNTAX, exceptions.GCodeSyntaxException);
39
41
  errorMapping.set(main_pb_1.Errors.INTERNAL_ERROR, exceptions.InternalErrorException);
40
42
  errorMapping.set(main_pb_1.Errors.INVALID_ARGUMENT, exceptions.InvalidArgumentException);
41
43
  errorMapping.set(main_pb_1.Errors.INVALID_DATA, exceptions.InvalidDataException);
@@ -54,6 +56,8 @@ errorMapping.set(main_pb_1.Errors.OS_FAILED, exceptions.OsFailedException);
54
56
  errorMapping.set(main_pb_1.Errors.OUT_OF_REQUEST_IDS, exceptions.OutOfRequestIdsException);
55
57
  errorMapping.set(main_pb_1.Errors.REQUEST_TIMEOUT, exceptions.RequestTimeoutException);
56
58
  errorMapping.set(main_pb_1.Errors.SERIAL_PORT_BUSY, exceptions.SerialPortBusyException);
59
+ errorMapping.set(main_pb_1.Errors.SET_DEVICE_STATE_FAILED, exceptions.SetDeviceStateFailedException);
60
+ errorMapping.set(main_pb_1.Errors.SET_PERIPHERAL_STATE_FAILED, exceptions.SetPeripheralStateFailedException);
57
61
  errorMapping.set(main_pb_1.Errors.SETTING_NOT_FOUND, exceptions.SettingNotFoundException);
58
62
  errorMapping.set(main_pb_1.Errors.STREAM_EXECUTION, exceptions.StreamExecutionException);
59
63
  errorMapping.set(main_pb_1.Errors.STREAM_MODE, exceptions.StreamModeException);
@@ -1 +1 @@
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,CAAC;AACnF,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,CAAC;AACnF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,uBAAuB,EAAE,UAAU,CAAC,8BAA8B,CAAC,CAAC;AAC9F,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACvE,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,gBAAgB,EAAE,UAAU,CAAC,uBAAuB,CAAC,CAAC;AAChF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,aAAa,EAAE,UAAU,CAAC,qBAAqB,CAAC,CAAC;AAC3E,YAAY,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,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
+ {"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,CAAC;AACnF,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,CAAC;AACnF,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,uBAAuB,EAAE,UAAU,CAAC,8BAA8B,CAAC,CAAC;AAC9F,YAAY,CAAC,GAAG,CAAC,gBAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACvE,YAAY,CAAC,GAAG,CAAC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,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.G_CODE_EXECUTION, exceptions.GCodeExecutionException);\nerrorMapping.set(PbErrors.G_CODE_SYNTAX, exceptions.GCodeSyntaxException);\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.SET_DEVICE_STATE_FAILED, exceptions.SetDeviceStateFailedException);\nerrorMapping.set(PbErrors.SET_PERIPHERAL_STATE_FAILED, exceptions.SetPeripheralStateFailedException);\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"]}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Maps a translator axis to a Zaber stream axis.
3
+ */
4
+ export interface AxisMapping {
5
+ /**
6
+ * Letter of the translator axis (X,Y,Z,A,B,C,E).
7
+ */
8
+ axisLetter: string;
9
+ /**
10
+ * Index of the stream axis.
11
+ */
12
+ axisIndex: number;
13
+ }
14
+ export declare namespace AxisMapping {
15
+ const __type = "AxisMapping";
16
+ }
@@ -0,0 +1,38 @@
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.AxisMapping = void 0;
25
+ const gateway = __importStar(require("../gateway"));
26
+ var AxisMapping;
27
+ (function (AxisMapping) {
28
+ AxisMapping.__type = 'AxisMapping';
29
+ /** @internal */
30
+ function toProtobuf(source) {
31
+ const pbData = new gateway.TranslatorAxisMapping();
32
+ pbData.setAxisLetter(source.axisLetter);
33
+ pbData.setAxisIndex(source.axisIndex);
34
+ return pbData;
35
+ }
36
+ AxisMapping.toProtobuf = toProtobuf;
37
+ })(AxisMapping = exports.AxisMapping || (exports.AxisMapping = {}));
38
+ //# sourceMappingURL=axis_mapping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axis_mapping.js","sourceRoot":"","sources":["../../../src/gcode/axis_mapping.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAkBtC,IAAiB,WAAW,CAU3B;AAVD,WAAiB,WAAW;IACb,kBAAM,GAAG,aAAa,CAAC;IAEpC,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAAmB;QAC5C,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;QACnD,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACxC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACtC,OAAO,MAAM,CAAC;IAChB,CAAC;IALe,sBAAU,aAKzB,CAAA;AACH,CAAC,EAVgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAU3B","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Maps a translator axis to a Zaber stream axis.\n */\nexport interface AxisMapping {\n /**\n * Letter of the translator axis (X,Y,Z,A,B,C,E).\n */\n axisLetter: string;\n\n /**\n * Index of the stream axis.\n */\n axisIndex: number;\n\n}\n\nexport namespace AxisMapping {\n export const __type = 'AxisMapping';\n\n /** @internal */\n export function toProtobuf(source: AxisMapping): gateway.TranslatorAxisMapping {\n const pbData = new gateway.TranslatorAxisMapping();\n pbData.setAxisLetter(source.axisLetter);\n pbData.setAxisIndex(source.axisIndex);\n return pbData;\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ export { TranslateMessage } from './translate_message';
2
+ export { TranslateResult } from './translate_result';
3
+ export { TranslatorConfig } from './translator_config';
4
+ export { TranslatorAxisDefinition } from './translator_axis_definition';
5
+ export { TranslatorDefinition } from './translator_definition';
6
+ export { AxisMapping } from './axis_mapping';
7
+ export { Translator } from './translator';
8
+ export { TranslatorLive } from './translator_live';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TranslatorLive = exports.Translator = exports.AxisMapping = exports.TranslatorDefinition = exports.TranslatorAxisDefinition = exports.TranslatorConfig = exports.TranslateResult = exports.TranslateMessage = void 0;
4
+ var translate_message_1 = require("./translate_message");
5
+ Object.defineProperty(exports, "TranslateMessage", { enumerable: true, get: function () { return translate_message_1.TranslateMessage; } });
6
+ var translate_result_1 = require("./translate_result");
7
+ Object.defineProperty(exports, "TranslateResult", { enumerable: true, get: function () { return translate_result_1.TranslateResult; } });
8
+ var translator_config_1 = require("./translator_config");
9
+ Object.defineProperty(exports, "TranslatorConfig", { enumerable: true, get: function () { return translator_config_1.TranslatorConfig; } });
10
+ var translator_axis_definition_1 = require("./translator_axis_definition");
11
+ Object.defineProperty(exports, "TranslatorAxisDefinition", { enumerable: true, get: function () { return translator_axis_definition_1.TranslatorAxisDefinition; } });
12
+ var translator_definition_1 = require("./translator_definition");
13
+ Object.defineProperty(exports, "TranslatorDefinition", { enumerable: true, get: function () { return translator_definition_1.TranslatorDefinition; } });
14
+ var axis_mapping_1 = require("./axis_mapping");
15
+ Object.defineProperty(exports, "AxisMapping", { enumerable: true, get: function () { return axis_mapping_1.AxisMapping; } });
16
+ var translator_1 = require("./translator");
17
+ Object.defineProperty(exports, "Translator", { enumerable: true, get: function () { return translator_1.Translator; } });
18
+ var translator_live_1 = require("./translator_live");
19
+ Object.defineProperty(exports, "TranslatorLive", { enumerable: true, get: function () { return translator_live_1.TranslatorLive; } });
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/gcode/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,2EAAwE;AAA/D,sIAAA,wBAAwB,OAAA;AACjC,iEAA+D;AAAtD,6HAAA,oBAAoB,OAAA;AAC7B,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA","sourcesContent":["export { TranslateMessage } from './translate_message';\nexport { TranslateResult } from './translate_result';\nexport { TranslatorConfig } from './translator_config';\nexport { TranslatorAxisDefinition } from './translator_axis_definition';\nexport { TranslatorDefinition } from './translator_definition';\nexport { AxisMapping } from './axis_mapping';\nexport { Translator } from './translator';\nexport { TranslatorLive } from './translator_live';\n"]}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Represents a message from translator regarding a block translation.
3
+ */
4
+ export interface TranslateMessage {
5
+ /**
6
+ * The message describing an occurrence.
7
+ */
8
+ message: string;
9
+ /**
10
+ * The index in the block string that the message regards to.
11
+ */
12
+ fromBlock: number;
13
+ /**
14
+ * The end index in the block string that the message regards to.
15
+ * The end index is exclusive.
16
+ */
17
+ toBlock: number;
18
+ }
19
+ export declare namespace TranslateMessage {
20
+ const __type = "TranslateMessage";
21
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
+ // ============= DO NOT EDIT DIRECTLY ============= //
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.TranslateMessage = void 0;
6
+ var TranslateMessage;
7
+ (function (TranslateMessage) {
8
+ TranslateMessage.__type = 'TranslateMessage';
9
+ /** @internal */
10
+ function fromProtobuf(pbData) {
11
+ return {
12
+ message: pbData.message,
13
+ fromBlock: pbData.fromBlock,
14
+ toBlock: pbData.toBlock,
15
+ };
16
+ }
17
+ TranslateMessage.fromProtobuf = fromProtobuf;
18
+ })(TranslateMessage = exports.TranslateMessage || (exports.TranslateMessage = {}));
19
+ //# sourceMappingURL=translate_message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translate_message.js","sourceRoot":"","sources":["../../../src/gcode/translate_message.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AA0BtD,IAAiB,gBAAgB,CAWhC;AAXD,WAAiB,gBAAgB;IAClB,uBAAM,GAAG,kBAAkB,CAAC;IAEzC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAyC;QACpE,OAAO;YACL,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC;IACJ,CAAC;IANe,6BAAY,eAM3B,CAAA;AACH,CAAC,EAXgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAWhC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Represents a message from translator regarding a block translation.\n */\nexport interface TranslateMessage {\n /**\n * The message describing an occurrence.\n */\n message: string;\n\n /**\n * The index in the block string that the message regards to.\n */\n fromBlock: number;\n\n /**\n * The end index in the block string that the message regards to.\n * The end index is exclusive.\n */\n toBlock: number;\n\n}\n\nexport namespace TranslateMessage {\n export const __type = 'TranslateMessage';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.TranslateMessage.AsObject): TranslateMessage {\n return {\n message: pbData.message,\n fromBlock: pbData.fromBlock,\n toBlock: pbData.toBlock,\n };\n }\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { TranslateMessage } from './translate_message';
2
+ /**
3
+ * Represents a result of a G-code block translation.
4
+ */
5
+ export interface TranslateResult {
6
+ /**
7
+ * Stream commands resulting from the block.
8
+ */
9
+ commands: string[];
10
+ /**
11
+ * Messages informing about unsupported codes and features.
12
+ */
13
+ warnings: TranslateMessage[];
14
+ }
15
+ export declare namespace TranslateResult {
16
+ const __type = "TranslateResult";
17
+ }