@zaber/motion 7.10.0 → 7.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +9 -38
- package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
- package/dist/lib/ascii/pvt_sequence.d.ts +2 -1
- package/dist/lib/ascii/pvt_sequence.d.ts.map +1 -1
- package/dist/lib/ascii/pvt_sequence.js +2 -1
- package/dist/lib/ascii/pvt_sequence.js.map +1 -1
- package/dist/lib/device_db_source.d.ts +23 -0
- package/dist/lib/device_db_source.d.ts.map +1 -0
- package/dist/lib/device_db_source.js +32 -0
- package/dist/lib/device_db_source.js.map +1 -0
- package/dist/lib/exceptions/device_db_failed_exception_data.d.ts +5 -0
- package/dist/lib/exceptions/device_db_failed_exception_data.d.ts.map +1 -1
- package/dist/lib/exceptions/device_db_failed_exception_data.js +4 -0
- package/dist/lib/exceptions/device_db_failed_exception_data.js.map +1 -1
- package/dist/lib/exceptions/device_db_inner_error.d.ts +26 -0
- package/dist/lib/exceptions/device_db_inner_error.d.ts.map +1 -0
- package/dist/lib/exceptions/device_db_inner_error.js +34 -0
- package/dist/lib/exceptions/device_db_inner_error.js.map +1 -0
- package/dist/lib/exceptions/index.d.ts +1 -0
- package/dist/lib/exceptions/index.d.ts.map +1 -1
- package/dist/lib/exceptions/index.js +1 -0
- package/dist/lib/exceptions/index.js.map +1 -1
- package/dist/lib/gateway/wasm-exec.d.ts +1 -1
- package/dist/lib/gateway/wasm-exec.d.ts.map +1 -1
- package/dist/lib/gateway/wasm-exec.js +1 -1
- package/dist/lib/gateway/wasm-exec.js.map +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +1 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/library.d.ts +7 -0
- package/dist/lib/library.d.ts.map +1 -1
- package/dist/lib/library.js +16 -1
- package/dist/lib/library.js.map +1 -1
- package/dist/lib/requests/index.d.ts +1 -0
- package/dist/lib/requests/index.d.ts.map +1 -1
- package/dist/lib/requests/index.js +1 -0
- package/dist/lib/requests/index.js.map +1 -1
- package/dist/lib/requests/set_device_db_layered_sources_request.d.ts +13 -0
- package/dist/lib/requests/set_device_db_layered_sources_request.d.ts.map +1 -0
- package/dist/lib/requests/set_device_db_layered_sources_request.js +28 -0
- package/dist/lib/requests/set_device_db_layered_sources_request.js.map +1 -0
- package/dist/lib/requests/set_device_db_source_request.d.ts +6 -0
- package/dist/lib/requests/set_device_db_source_request.d.ts.map +1 -1
- package/dist/lib/requests/set_device_db_source_request.js.map +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -39,7 +39,7 @@ SOFTWARE.
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
------------------
|
|
42
|
-
github.com/creack/goselect v0.1.
|
|
42
|
+
github.com/creack/goselect v0.1.3
|
|
43
43
|
------------------
|
|
44
44
|
The MIT License (MIT)
|
|
45
45
|
|
|
@@ -292,7 +292,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
292
292
|
SOFTWARE.
|
|
293
293
|
|
|
294
294
|
------------------
|
|
295
|
-
github.com/mattn/go-sqlite3 v1.
|
|
295
|
+
github.com/mattn/go-sqlite3 v1.14.28
|
|
296
296
|
------------------
|
|
297
297
|
The MIT License (MIT)
|
|
298
298
|
|
|
@@ -1151,7 +1151,7 @@ Public License instead of this License. But first, please read
|
|
|
1151
1151
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
|
1152
1152
|
|
|
1153
1153
|
------------------
|
|
1154
|
-
github.com/zabertech/go-serial v0.0.0-
|
|
1154
|
+
github.com/zabertech/go-serial v0.0.0-20250729220630-0e47786acc33 (fork github.com/bugst/go-serial)
|
|
1155
1155
|
------------------
|
|
1156
1156
|
|
|
1157
1157
|
Copyright (c) 2014-2016, Cristian Maglie.
|
|
@@ -1188,7 +1188,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
1188
1188
|
|
|
1189
1189
|
|
|
1190
1190
|
------------------
|
|
1191
|
-
gitlab.com/ZaberTech/zaber-device-db-service v0.0.0-
|
|
1191
|
+
gitlab.com/ZaberTech/zaber-device-db-service v0.0.0-20250731204611-5cd79ada4afd
|
|
1192
1192
|
------------------
|
|
1193
1193
|
Copyright 2022 Zaber Technologies Inc.
|
|
1194
1194
|
|
|
@@ -1199,7 +1199,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
1199
1199
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1200
1200
|
|
|
1201
1201
|
------------------
|
|
1202
|
-
gitlab.com/ZaberTech/zaber-go-lib v0.0.0-
|
|
1202
|
+
gitlab.com/ZaberTech/zaber-go-lib v0.0.0-20250729223504-20f21b4d47e2
|
|
1203
1203
|
------------------
|
|
1204
1204
|
Copyright 2022 Zaber Technologies Inc.
|
|
1205
1205
|
|
|
@@ -1415,7 +1415,7 @@ go.mongodb.org/mongo-driver v1.14.0
|
|
|
1415
1415
|
limitations under the License.
|
|
1416
1416
|
|
|
1417
1417
|
------------------
|
|
1418
|
-
golang.org/x/crypto v0.
|
|
1418
|
+
golang.org/x/crypto v0.17.0
|
|
1419
1419
|
------------------
|
|
1420
1420
|
Copyright (c) 2009 The Go Authors. All rights reserved.
|
|
1421
1421
|
|
|
@@ -1508,7 +1508,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
1508
1508
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1509
1509
|
|
|
1510
1510
|
------------------
|
|
1511
|
-
golang.org/x/mod v0.
|
|
1511
|
+
golang.org/x/mod v0.8.0
|
|
1512
1512
|
------------------
|
|
1513
1513
|
Copyright (c) 2009 The Go Authors. All rights reserved.
|
|
1514
1514
|
|
|
@@ -1601,7 +1601,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
1601
1601
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1602
1602
|
|
|
1603
1603
|
------------------
|
|
1604
|
-
golang.org/x/sys v0.
|
|
1604
|
+
golang.org/x/sys v0.5.0
|
|
1605
1605
|
------------------
|
|
1606
1606
|
Copyright (c) 2009 The Go Authors. All rights reserved.
|
|
1607
1607
|
|
|
@@ -1694,7 +1694,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
1694
1694
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1695
1695
|
|
|
1696
1696
|
------------------
|
|
1697
|
-
golang.org/x/tools v0.
|
|
1697
|
+
golang.org/x/tools v0.6.0
|
|
1698
1698
|
------------------
|
|
1699
1699
|
Copyright (c) 2009 The Go Authors. All rights reserved.
|
|
1700
1700
|
|
|
@@ -1750,35 +1750,6 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
|
1750
1750
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1751
1751
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1752
1752
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1753
|
-
------------------
|
|
1754
|
-
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
|
|
1755
|
-
------------------
|
|
1756
|
-
Gocheck - A rich testing framework for Go
|
|
1757
|
-
|
|
1758
|
-
Copyright (c) 2010-2013 Gustavo Niemeyer <gustavo@niemeyer.net>
|
|
1759
|
-
|
|
1760
|
-
All rights reserved.
|
|
1761
|
-
|
|
1762
|
-
Redistribution and use in source and binary forms, with or without
|
|
1763
|
-
modification, are permitted provided that the following conditions are met:
|
|
1764
|
-
|
|
1765
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
|
1766
|
-
list of conditions and the following disclaimer.
|
|
1767
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
1768
|
-
this list of conditions and the following disclaimer in the documentation
|
|
1769
|
-
and/or other materials provided with the distribution.
|
|
1770
|
-
|
|
1771
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
1772
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1773
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1774
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
1775
|
-
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1776
|
-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
1777
|
-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
1778
|
-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1779
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
1780
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1781
|
-
|
|
1782
1753
|
------------------
|
|
1783
1754
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
|
|
1784
1755
|
------------------
|
|
Binary file
|
|
@@ -252,9 +252,10 @@ export declare class PvtSequence {
|
|
|
252
252
|
*
|
|
253
253
|
* Units must be wrapped in parens or square braces: ie. (µm/s), [µm/s].
|
|
254
254
|
* Additionally, native units are the default if no units are specified.
|
|
255
|
+
* Time values default to milliseconds if no units are provided.
|
|
255
256
|
* If no header is included, then column order is assumed to be "T,P1,V1,P2,V2,...".
|
|
256
257
|
* In this case the number of columns must be odd.
|
|
257
|
-
* @param path The path
|
|
258
|
+
* @param path The path to the csv file to load.
|
|
258
259
|
* @returns The PVT csv data loaded from the file.
|
|
259
260
|
*/
|
|
260
261
|
static loadSequenceData(path: string): Promise<PvtCsvData>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pvt_sequence.d.ts","sourceRoot":"","sources":["../../../src/ascii/pvt_sequence.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAA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Aa,IAAI,OAAO,CAAC,OAAO,CAAC;IAmB9C;;OAEG;IACI,2BAA2B,IAAI,IAAI;IAe1C;;OAEG;IACI,0BAA0B,IAAI,IAAI;IAezC;;;OAGG;IACH,OAAO,CAAC,aAAa;IAmBrB;;;OAGG;IACH,OAAO,CAAC,aAAa;IAmBrB;;;;;;;;;;;;OAYG;WACiB,gBAAgB,CAClC,YAAY,EAAE,eAAe,EAC7B,IAAI,EAAE,MAAM,EACZ,cAAc,CAAC,EAAE,MAAM,EAAE,GACxB,OAAO,CAAC,IAAI,CAAC;IAchB;;;;;;;;;;;;;;;;;;;;;;OAsBG;WACiB,gBAAgB,CAClC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,UAAU,CAAC;IAgBtB;;;;;;OAMG;IACU,gBAAgB,CAC3B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC,IAAI,CAAC;IAiBhB;;;;;OAKG;IACU,oBAAoB,CAC/B,MAAM,EAAE,mBAAmB,EAAE,GAC5B,OAAO,CAAC,IAAI,CAAC;IAgBhB;;;;;;OAMG;IACU,eAAe,CAC1B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;IAiBhB;;;;;OAKG;IACU,mBAAmB,CAC9B,MAAM,EAAE,MAAM,EAAE,GACf,OAAO,CAAC,IAAI,CAAC;CAejB;AAED,kBAAU,WAAW,CAAC;IACpB,UAAiB,oBAAoB;QACjC;;WAEG;QACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC/B;CACF"}
|
|
@@ -617,9 +617,10 @@ class PvtSequence {
|
|
|
617
617
|
*
|
|
618
618
|
* Units must be wrapped in parens or square braces: ie. (µm/s), [µm/s].
|
|
619
619
|
* Additionally, native units are the default if no units are specified.
|
|
620
|
+
* Time values default to milliseconds if no units are provided.
|
|
620
621
|
* If no header is included, then column order is assumed to be "T,P1,V1,P2,V2,...".
|
|
621
622
|
* In this case the number of columns must be odd.
|
|
622
|
-
* @param path The path
|
|
623
|
+
* @param path The path to the csv file to load.
|
|
623
624
|
* @returns The PVT csv data loaded from the file.
|
|
624
625
|
*/
|
|
625
626
|
static async loadSequenceData(path) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pvt_sequence.js","sourceRoot":"","sources":["../../../src/ascii/pvt_sequence.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AACtC,sDAAwC;AAOxC,2DAAsD;AACtD,iDAA4C;AAC5C,qCAAiC;AAGjC;;;;;;GAMG;AACH,MAAa,WAAW;IACtB;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;OAEG;IACH,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAGD;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAGD,YAAY,MAAc,EAAE,KAAa;QACvC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,GAAG,GAAG,IAAI,cAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,kBAAkB,CAC7B,GAAG,OAA4B;QAE/B,MAAM,OAAO,GAA+D;YAC1E,GAAG,QAAQ,CAAC,+BAA+B,CAAC,OAAO;YACnD,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM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AAC,4BAA4B,CAAC,OAAO;YAChD,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,QAAQ,EAAE,IAAI,CAAC,KAAK;YACpB,GAAG,EAAE,IAAI;YACT,aAAa,EAAE,aAAa;YAC5B,KAAK,EAAE,KAAK;YACZ,QAAQ;gBACN,OAAO,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,mBAAmB,CAC9B,MAAgB;QAEhB,MAAM,OAAO,GAAgE;YAC3E,GAAG,QAAQ,CAAC,gCAAgC,CAAC,OAAO;YACpD,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,QAAQ,EAAE,IAAI,CAAC,KAAK;YACpB,GAAG,EAAE,IAAI;YACT,MAAM,EAAE,MAAM;YACd,QAAQ;gBACN,OAAO,QAAQ,CAAC,gCAAgC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAClE,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,sCAAsC,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AAh0BD,kCAg0BC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Measurement } from '../measurement';\nimport { PvtBuffer } from './pvt_buffer';\nimport { PvtMode } from './pvt_mode';\nimport { PvtAxisDefinition } from './pvt_axis_definition';\nimport { MeasurementSequence } from './measurement_sequence';\nimport { OptionalMeasurementSequence } from './optional_measurement_sequence';\nimport { PvtSequenceData } from './pvt_sequence_data';\nimport { PvtCsvData } from './pvt_csv_data';\nimport { PvtIo } from './pvt_io';\nimport { DigitalOutputAction } from './digital_output_action';\n\n/**\n * A handle for a PVT sequence with this number on the device.\n * PVT sequences provide a way execute or store trajectory\n * consisting of points with defined position, velocity, and time.\n * PVT sequence methods append actions to a queue which executes\n * or stores actions in a first in, first out order.\n */\nexport class PvtSequence {\n /**\n * Device that controls this PVT sequence.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The number that identifies the PVT sequence on the device.\n */\n public get pvtId(): number {\n return this._pvtId;\n }\n private _pvtId: number;\n\n /**\n * Current mode of the PVT sequence.\n */\n public get mode(): PvtMode {\n return this._retrieveMode();\n }\n\n /**\n * An array of axes definitions the PVT sequence is set up to control.\n */\n public get axes(): PvtAxisDefinition[] {\n return this._retrieveAxes();\n }\n\n /**\n * Gets an object that provides access to I/O for this sequence.\n */\n public get io(): PvtIo {\n return this._io;\n }\n private _io: PvtIo;\n\n constructor(device: Device, pvtId: number) {\n this._device = device;\n this._pvtId = pvtId;\n this._io = new PvtIo(device, pvtId);\n }\n\n /**\n * Setup the PVT sequence to control the specified axes and to queue actions on the device.\n * Allows use of lockstep axes in a PVT sequence.\n * @param pvtAxes Definition of the PVT sequence axes.\n */\n public async setupLiveComposite(\n ...pvtAxes: PvtAxisDefinition[]\n ): Promise<void> {\n const request: requests.StreamSetupLiveCompositeRequest & gateway.Message = {\n ...requests.StreamSetupLiveCompositeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtAxes: pvtAxes,\n toBinary() {\n return requests.StreamSetupLiveCompositeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_live_composite', request);\n }\n\n /**\n * Setup the PVT sequence to control the specified axes and to queue actions on the device.\n * @param axes Numbers of physical axes to setup the PVT sequence on.\n */\n public async setupLive(\n ...axes: number[]\n ): Promise<void> {\n const request: requests.StreamSetupLiveRequest & gateway.Message = {\n ...requests.StreamSetupLiveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n axes: axes,\n toBinary() {\n return requests.StreamSetupLiveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_live', request);\n }\n\n /**\n * Setup the PVT sequence to use the specified axes and queue actions into a PVT buffer.\n * Allows use of lockstep axes in a PVT sequence.\n * @param pvtBuffer The PVT buffer to queue actions in.\n * @param pvtAxes Definition of the PVT sequence axes.\n */\n public async setupStoreComposite(\n pvtBuffer: PvtBuffer,\n ...pvtAxes: PvtAxisDefinition[]\n ): Promise<void> {\n const request: requests.StreamSetupStoreCompositeRequest & gateway.Message = {\n ...requests.StreamSetupStoreCompositeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n pvtAxes: pvtAxes,\n toBinary() {\n return requests.StreamSetupStoreCompositeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_store_composite', request);\n }\n\n /**\n * Setup the PVT sequence to use the specified axes and queue actions into a PVT buffer.\n * @param pvtBuffer The PVT buffer to queue actions in.\n * @param axes Numbers of physical axes to setup the PVT sequence on.\n */\n public async setupStore(\n pvtBuffer: PvtBuffer,\n ...axes: number[]\n ): Promise<void> {\n const request: requests.StreamSetupStoreRequest & gateway.Message = {\n ...requests.StreamSetupStoreRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n axes: axes,\n toBinary() {\n return requests.StreamSetupStoreRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_store', request);\n }\n\n /**\n * Append the actions in a PVT buffer to the sequence's queue.\n * @param pvtBuffer The PVT buffer to call.\n */\n public async call(\n pvtBuffer: PvtBuffer\n ): Promise<void> {\n const request: requests.StreamCallRequest & gateway.Message = {\n ...requests.StreamCallRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n toBinary() {\n return requests.StreamCallRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_call', request);\n }\n\n /**\n * Queues a point with absolute coordinates in the PVT sequence.\n * If some or all velocities are not provided, the sequence calculates the velocities\n * from surrounding points using finite difference.\n * The last point of the sequence must have defined velocity (likely zero).\n * @param positions Positions for the axes to move through, relative to their home positions.\n * @param velocities The axes velocities at the given point.\n * Specify an empty array or null for specific axes to make the sequence calculate the velocity.\n * @param time The duration between the previous point in the sequence and this one.\n */\n public async point(\n positions: Measurement[],\n velocities: (Measurement | null)[],\n time: Measurement\n ): Promise<void> {\n const request: requests.PvtPointRequest & gateway.Message = {\n ...requests.PvtPointRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.ABS,\n positions: positions,\n velocities: velocities,\n time: time,\n toBinary() {\n return requests.PvtPointRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_point', request);\n }\n\n /**\n * Queues points with absolute coordinates in the PVT sequence.\n * @param positions Per-axis sequences of positions.\n * @param velocities Per-axis sequences of velocities.\n * For velocities [v0, v1, ...] and positions [p0, p1, ...], v1 is the target velocity at point p1.\n * @param times Segment times from one point to another.\n * For times [t0, t1, ...] and positions [p0, p1, ...], t1 is the time it takes to move from p0 to p1.\n */\n public async points(\n positions: MeasurementSequence[],\n velocities: MeasurementSequence[],\n times: MeasurementSequence\n ): Promise<void> {\n const request: requests.PvtPointsRequest & gateway.Message = {\n ...requests.PvtPointsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.ABS,\n positions: positions,\n velocities: velocities,\n times: times,\n toBinary() {\n return requests.PvtPointsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_points', request);\n }\n\n /**\n * Queues a point with coordinates relative to the previous point in the PVT sequence.\n * If some or all velocities are not provided, the sequence calculates the velocities\n * from surrounding points using finite difference.\n * The last point of the sequence must have defined velocity (likely zero).\n * @param positions Positions for the axes to move through, relative to the previous point.\n * @param velocities The axes velocities at the given point.\n * Specify an empty array or null for specific axes to make the sequence calculate the velocity.\n * @param time The duration between the previous point in the sequence and this one.\n */\n public async pointRelative(\n positions: Measurement[],\n velocities: (Measurement | null)[],\n time: Measurement\n ): Promise<void> {\n const request: requests.PvtPointRequest & gateway.Message = {\n ...requests.PvtPointRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.REL,\n positions: positions,\n velocities: velocities,\n time: time,\n toBinary() {\n return requests.PvtPointRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_point', request);\n }\n\n /**\n * Queues points with coordinates relative to the previous point in the PVT sequence.\n * @param positions Per-axis sequences of positions.\n * @param velocities Per-axis sequences of velocities.\n * For velocities [v0, v1, ...] and positions [p0, p1, ...], v1 is the target velocity at point p1.\n * @param times Segment times from one point to another.\n * For times [t0, t1, ...] and positions [p0, p1, ...], t1 is the time it takes to move from p0 to p1.\n */\n public async pointsRelative(\n positions: MeasurementSequence[],\n velocities: MeasurementSequence[],\n times: MeasurementSequence\n ): Promise<void> {\n const request: requests.PvtPointsRequest & gateway.Message = {\n ...requests.PvtPointsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.REL,\n positions: positions,\n velocities: velocities,\n times: times,\n toBinary() {\n return requests.PvtPointsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_points', request);\n }\n\n /**\n * Generates velocities for a sequence of positions and times, and (optionally) a partially defined sequence\n * of velocities. Note that if some velocities are defined, the solver will NOT modify them in any way.\n * If all velocities are defined, the solver will simply return the same velocities.\n * This function calculates velocities by enforcing that acceleration be continuous at each segment transition.\n *\n * Also note that if generating a path for multiple axes, the user must provide a position measurement sequence\n * per axis, And the values arrays for each sequence must be equal in length to each other and also to the\n * times sequence.\n * @param positions Positions for the axes to move through, relative to their home positions.\n * Each MeasurementSequence represents a sequence of positions along a particular dimension.\n * For example, a 2D path sequence would contain two MeasurementSequence objects,\n * one representing positions along X and one for those along Y.\n * @param times The relative or absolute time of each position in the PVT sequence.\n * @param velocities Optional velocities corresponding to each point in the position sequences.\n * @param [timesRelative=true] If true, the times sequence values are interpreted as relative. Otherwise,\n * they are interpreted as absolute. Note that the values of the returned time\n * sequence are ALWAYS relative. This is because the PVT sequence API expects\n * points to have relative times.\n * @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.\n */\n public static async generateVelocities(\n positions: MeasurementSequence[],\n times: MeasurementSequence,\n velocities?: OptionalMeasurementSequence[],\n timesRelative: boolean = true\n ): Promise<PvtSequenceData> {\n const request: requests.PvtGenerateVelocitiesRequest & gateway.Message = {\n ...requests.PvtGenerateVelocitiesRequest.DEFAULT,\n positions: positions,\n times: times,\n velocities: velocities,\n timesRelative: timesRelative,\n toBinary() {\n return requests.PvtGenerateVelocitiesRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtSequenceData>(\n 'device/pvt_generate_velocities',\n request,\n PvtSequenceData.fromBinary);\n return response;\n }\n\n /**\n * Generates positions for a sequence of velocities and times. This function calculates\n * positions by enforcing that acceleration be continuous at each segment transition.\n *\n * Note that if generating a path for multiple axes, the user must provide a\n * velocity measurement sequence per axis, and the values arrays for each sequence\n * must be equal in length to each other and also to the times sequence.\n * @param velocities The sequence of velocities for each axis.\n * Each MeasurementSequence represents a sequence of velocities along particular dimension.\n * @param times The relative or absolute time of each position in the PVT sequence.\n * @param [timesRelative=true] If true, the times sequence values are interpreted as relative. Otherwise,\n * they are interpreted as absolute. Note that the values of the returned time\n * sequence are ALWAYS relative. This is because the PVT sequence API expects\n * points to have relative times.\n * @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.\n */\n public static async generatePositions(\n velocities: MeasurementSequence[],\n times: MeasurementSequence,\n timesRelative: boolean = true\n ): Promise<PvtSequenceData> {\n const request: requests.PvtGeneratePositionsRequest & gateway.Message = {\n ...requests.PvtGeneratePositionsRequest.DEFAULT,\n velocities: velocities,\n times: times,\n timesRelative: timesRelative,\n toBinary() {\n return requests.PvtGeneratePositionsRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtSequenceData>(\n 'device/pvt_generate_positions',\n request,\n PvtSequenceData.fromBinary);\n return response;\n }\n\n /**\n * Waits until the live PVT sequence executes all queued actions.\n * @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n options: PvtSequence.WaitUntilIdleOptions = {}\n ): Promise<void> {\n const {\n throwErrorOnFault = true,\n } = options;\n const request: requests.StreamWaitUntilIdleRequest & gateway.Message = {\n ...requests.StreamWaitUntilIdleRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n throwErrorOnFault: throwErrorOnFault,\n toBinary() {\n return requests.StreamWaitUntilIdleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_wait_until_idle', request);\n }\n\n /**\n * Cork the front of the PVT sequences'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 PVT commands reaching the device late.\n * You can only cork an idle live PVT sequence.\n */\n public async cork(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\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 PVT sequence that is corked.\n */\n public async uncork(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_uncork', request);\n }\n\n /**\n * Returns a boolean value indicating whether the live PVT sequence is executing a queued action.\n * @returns True if the PVT sequence is executing a queued action.\n */\n public async isBusy(): Promise<boolean> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/stream_is_busy',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string which represents the PVT sequence.\n * @returns String which represents the PVT sequence.\n */\n public toString(): string {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/stream_to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Disables the PVT sequence.\n * If the PVT sequence is not setup, this command does nothing.\n * Once disabled, the PVT sequence will no longer accept PVT commands.\n * The PVT sequence will process the rest of the commands in the queue until it is empty.\n */\n public async disable(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_disable', request);\n }\n\n /**\n * Sends a generic ASCII command to the PVT sequence.\n * Keeps resending the command while the device rejects with AGAIN reason.\n * @param command Command and its parameters.\n */\n public async genericCommand(\n command: string\n ): Promise<void> {\n const request: requests.StreamGenericCommandRequest & gateway.Message = {\n ...requests.StreamGenericCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n command: command,\n toBinary() {\n return requests.StreamGenericCommandRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_generic_command', request);\n }\n\n /**\n * Sends a batch of generic ASCII commands to the PVT sequence.\n * Keeps resending command while the device rejects with AGAIN reason.\n * The batch is atomic in terms of thread safety.\n * @param batch Array of commands.\n */\n public async genericCommandBatch(\n batch: string[]\n ): Promise<void> {\n const request: requests.StreamGenericCommandBatchRequest & gateway.Message = {\n ...requests.StreamGenericCommandBatchRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n batch: batch,\n toBinary() {\n return requests.StreamGenericCommandBatchRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_generic_command_batch', request);\n }\n\n /**\n * Queries the PVT sequence status from the device\n * and returns boolean indicating whether the PVT sequence is disabled.\n * Useful to determine if execution was interrupted by other movements.\n * @returns True if the PVT sequence is disabled.\n */\n public async checkDisabled(): Promise<boolean> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/stream_check_disabled',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Makes the PVT sequence throw PvtDiscontinuityException when it encounters discontinuities (ND warning flag).\n */\n public treatDiscontinuitiesAsError(): void {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device/stream_treat_discontinuities', request);\n }\n\n /**\n * Prevents PvtDiscontinuityException as a result of expected discontinuity when resuming the sequence.\n */\n public ignoreCurrentDiscontinuity(): void {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device/stream_ignore_discontinuity', request);\n }\n\n /**\n * Gets the axes of the PVT sequence.\n * @returns An array of axis numbers of the axes the PVT sequence is set up to control.\n */\n private _retrieveAxes(): PvtAxisDefinition[] {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StreamGetAxesResponse>(\n 'device/stream_get_axes',\n request,\n requests.StreamGetAxesResponse.fromBinary);\n return response.pvtAxes;\n }\n\n /**\n * Get the mode of the PVT sequence.\n * @returns Mode of the PVT sequence.\n */\n private _retrieveMode(): PvtMode {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StreamModeResponse>(\n 'device/stream_get_mode',\n request,\n requests.StreamModeResponse.fromBinary);\n return response.pvtMode;\n }\n\n /**\n * Saves PvtSequenceData object as csv file.\n * Save format is compatible with Zaber Launcher PVT Editor App.\n *\n * Throws InvalidArgumentException if fields are undefined or inconsistent.\n * For example, position and velocity arrays must have the same dimensions.\n * Sequence lengths must be consistent for positions, velocities and times.\n * @param sequenceData The PVT sequence data to save.\n * @param path The path to save the file to.\n * @param dimensionNames Optional csv column names for each series.\n * If not provided, the default names will be used: Series 1, Series 2, etc..\n * Length of this array must be equal to number of dimensions in sequence data.\n */\n public static async saveSequenceData(\n sequenceData: PvtSequenceData,\n path: string,\n dimensionNames?: string[]\n ): Promise<void> {\n const request: requests.PvtSaveCsvRequest & gateway.Message = {\n ...requests.PvtSaveCsvRequest.DEFAULT,\n sequenceData: sequenceData,\n path: path,\n dimensionNames: dimensionNames,\n toBinary() {\n return requests.PvtSaveCsvRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_pvt_save_csv', request);\n }\n\n /**\n * Load PVT Sequence data from CSV file.\n * The CSV data can include a header (recommended).\n * There are two possible header formats:\n *\n * 1. A time column with named position and velocity columns.\n * For example, \"Time (ms),X Position (cm),X Velocity (cm/s),...\".\n * In this case, position, velocity and time columns are all optional.\n * Also, order does not matter, but position and velocity names must be consistent.\n * This is our recommended CSV format.\n *\n * 2. A time column with alternating position and velocity columns.\n * For example, \"Time (ms),Position (cm),Velocity (cm/s),...\".\n * In this case, only the time column is optional and order does matter.\n *\n * Units must be wrapped in parens or square braces: ie. (µm/s), [µm/s].\n * Additionally, native units are the default if no units are specified.\n * If no header is included, then column order is assumed to be \"T,P1,V1,P2,V2,...\".\n * In this case the number of columns must be odd.\n * @param path The path from which the csv file will be loaded.\n * @returns The PVT csv data loaded from the file.\n */\n public static async loadSequenceData(\n path: string\n ): Promise<PvtCsvData> {\n const request: requests.PvtLoadCsvRequest & gateway.Message = {\n ...requests.PvtLoadCsvRequest.DEFAULT,\n path: path,\n toBinary() {\n return requests.PvtLoadCsvRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtCsvData>(\n 'device/stream_pvt_load_csv',\n request,\n PvtCsvData.fromBinary);\n return response;\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetDigitalOutput instead.\n *\n * Sets value for the specified digital output channel.\n * @param channelNumber Channel number starting at 1.\n * @param value The type of action to perform on the channel.\n */\n public async setDigitalOutput(\n channelNumber: number,\n value: DigitalOutputAction\n ): Promise<void> {\n const request: requests.StreamSetDigitalOutputRequest & gateway.Message = {\n ...requests.StreamSetDigitalOutputRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.StreamSetDigitalOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_digital_output', request);\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetAllDigitalOutputs instead.\n *\n * Sets values for all digital output channels.\n * @param values The type of action to perform on the channel.\n */\n public async setAllDigitalOutputs(\n values: DigitalOutputAction[]\n ): Promise<void> {\n const request: requests.StreamSetAllDigitalOutputsRequest & gateway.Message = {\n ...requests.StreamSetAllDigitalOutputsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n values: values,\n toBinary() {\n return requests.StreamSetAllDigitalOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_all_digital_outputs', request);\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetAnalogOutput instead.\n *\n * Sets value for the specified analog output channel.\n * @param channelNumber Channel number starting at 1.\n * @param value Value to set the output channel voltage to.\n */\n public async setAnalogOutput(\n channelNumber: number,\n value: number\n ): Promise<void> {\n const request: requests.StreamSetAnalogOutputRequest & gateway.Message = {\n ...requests.StreamSetAnalogOutputRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.StreamSetAnalogOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_analog_output', request);\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetAllAnalogOutputs instead.\n *\n * Sets values for all analog output channels.\n * @param values Voltage values to set the output channels to.\n */\n public async setAllAnalogOutputs(\n values: number[]\n ): Promise<void> {\n const request: requests.StreamSetAllAnalogOutputsRequest & gateway.Message = {\n ...requests.StreamSetAllAnalogOutputsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n values: values,\n toBinary() {\n return requests.StreamSetAllAnalogOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_all_analog_outputs', request);\n }\n}\n\nnamespace PvtSequence {\n export interface WaitUntilIdleOptions {\n /**\n * Determines whether to throw error when fault is observed.\n */\n throwErrorOnFault?: boolean;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"pvt_sequence.js","sourceRoot":"","sources":["../../../src/ascii/pvt_sequence.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AACtC,sDAAwC;AAOxC,2DAAsD;AACtD,iDAA4C;AAC5C,qCAAiC;AAGjC;;;;;;GAMG;AACH,MAAa,WAAW;IACtB;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;OAEG;IACH,IAAW,KAAK;QACd,OAAO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,gCAAgC,CAAC,OAAO;YACpD,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,QAAQ,EAAE,IAAI,CAAC,KAAK;YACpB,GAAG,EAAE,IAAI;YACT,MAAM,EAAE,MAAM;YACd,QAAQ;gBACN,OAAO,QAAQ,CAAC,gCAAgC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAClE,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,sCAAsC,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AAj0BD,kCAi0BC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Measurement } from '../measurement';\nimport { PvtBuffer } from './pvt_buffer';\nimport { PvtMode } from './pvt_mode';\nimport { PvtAxisDefinition } from './pvt_axis_definition';\nimport { MeasurementSequence } from './measurement_sequence';\nimport { OptionalMeasurementSequence } from './optional_measurement_sequence';\nimport { PvtSequenceData } from './pvt_sequence_data';\nimport { PvtCsvData } from './pvt_csv_data';\nimport { PvtIo } from './pvt_io';\nimport { DigitalOutputAction } from './digital_output_action';\n\n/**\n * A handle for a PVT sequence with this number on the device.\n * PVT sequences provide a way execute or store trajectory\n * consisting of points with defined position, velocity, and time.\n * PVT sequence methods append actions to a queue which executes\n * or stores actions in a first in, first out order.\n */\nexport class PvtSequence {\n /**\n * Device that controls this PVT sequence.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The number that identifies the PVT sequence on the device.\n */\n public get pvtId(): number {\n return this._pvtId;\n }\n private _pvtId: number;\n\n /**\n * Current mode of the PVT sequence.\n */\n public get mode(): PvtMode {\n return this._retrieveMode();\n }\n\n /**\n * An array of axes definitions the PVT sequence is set up to control.\n */\n public get axes(): PvtAxisDefinition[] {\n return this._retrieveAxes();\n }\n\n /**\n * Gets an object that provides access to I/O for this sequence.\n */\n public get io(): PvtIo {\n return this._io;\n }\n private _io: PvtIo;\n\n constructor(device: Device, pvtId: number) {\n this._device = device;\n this._pvtId = pvtId;\n this._io = new PvtIo(device, pvtId);\n }\n\n /**\n * Setup the PVT sequence to control the specified axes and to queue actions on the device.\n * Allows use of lockstep axes in a PVT sequence.\n * @param pvtAxes Definition of the PVT sequence axes.\n */\n public async setupLiveComposite(\n ...pvtAxes: PvtAxisDefinition[]\n ): Promise<void> {\n const request: requests.StreamSetupLiveCompositeRequest & gateway.Message = {\n ...requests.StreamSetupLiveCompositeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtAxes: pvtAxes,\n toBinary() {\n return requests.StreamSetupLiveCompositeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_live_composite', request);\n }\n\n /**\n * Setup the PVT sequence to control the specified axes and to queue actions on the device.\n * @param axes Numbers of physical axes to setup the PVT sequence on.\n */\n public async setupLive(\n ...axes: number[]\n ): Promise<void> {\n const request: requests.StreamSetupLiveRequest & gateway.Message = {\n ...requests.StreamSetupLiveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n axes: axes,\n toBinary() {\n return requests.StreamSetupLiveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_live', request);\n }\n\n /**\n * Setup the PVT sequence to use the specified axes and queue actions into a PVT buffer.\n * Allows use of lockstep axes in a PVT sequence.\n * @param pvtBuffer The PVT buffer to queue actions in.\n * @param pvtAxes Definition of the PVT sequence axes.\n */\n public async setupStoreComposite(\n pvtBuffer: PvtBuffer,\n ...pvtAxes: PvtAxisDefinition[]\n ): Promise<void> {\n const request: requests.StreamSetupStoreCompositeRequest & gateway.Message = {\n ...requests.StreamSetupStoreCompositeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n pvtAxes: pvtAxes,\n toBinary() {\n return requests.StreamSetupStoreCompositeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_store_composite', request);\n }\n\n /**\n * Setup the PVT sequence to use the specified axes and queue actions into a PVT buffer.\n * @param pvtBuffer The PVT buffer to queue actions in.\n * @param axes Numbers of physical axes to setup the PVT sequence on.\n */\n public async setupStore(\n pvtBuffer: PvtBuffer,\n ...axes: number[]\n ): Promise<void> {\n const request: requests.StreamSetupStoreRequest & gateway.Message = {\n ...requests.StreamSetupStoreRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n axes: axes,\n toBinary() {\n return requests.StreamSetupStoreRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_setup_store', request);\n }\n\n /**\n * Append the actions in a PVT buffer to the sequence's queue.\n * @param pvtBuffer The PVT buffer to call.\n */\n public async call(\n pvtBuffer: PvtBuffer\n ): Promise<void> {\n const request: requests.StreamCallRequest & gateway.Message = {\n ...requests.StreamCallRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n pvtBuffer: pvtBuffer.bufferId,\n toBinary() {\n return requests.StreamCallRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_call', request);\n }\n\n /**\n * Queues a point with absolute coordinates in the PVT sequence.\n * If some or all velocities are not provided, the sequence calculates the velocities\n * from surrounding points using finite difference.\n * The last point of the sequence must have defined velocity (likely zero).\n * @param positions Positions for the axes to move through, relative to their home positions.\n * @param velocities The axes velocities at the given point.\n * Specify an empty array or null for specific axes to make the sequence calculate the velocity.\n * @param time The duration between the previous point in the sequence and this one.\n */\n public async point(\n positions: Measurement[],\n velocities: (Measurement | null)[],\n time: Measurement\n ): Promise<void> {\n const request: requests.PvtPointRequest & gateway.Message = {\n ...requests.PvtPointRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.ABS,\n positions: positions,\n velocities: velocities,\n time: time,\n toBinary() {\n return requests.PvtPointRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_point', request);\n }\n\n /**\n * Queues points with absolute coordinates in the PVT sequence.\n * @param positions Per-axis sequences of positions.\n * @param velocities Per-axis sequences of velocities.\n * For velocities [v0, v1, ...] and positions [p0, p1, ...], v1 is the target velocity at point p1.\n * @param times Segment times from one point to another.\n * For times [t0, t1, ...] and positions [p0, p1, ...], t1 is the time it takes to move from p0 to p1.\n */\n public async points(\n positions: MeasurementSequence[],\n velocities: MeasurementSequence[],\n times: MeasurementSequence\n ): Promise<void> {\n const request: requests.PvtPointsRequest & gateway.Message = {\n ...requests.PvtPointsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.ABS,\n positions: positions,\n velocities: velocities,\n times: times,\n toBinary() {\n return requests.PvtPointsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_points', request);\n }\n\n /**\n * Queues a point with coordinates relative to the previous point in the PVT sequence.\n * If some or all velocities are not provided, the sequence calculates the velocities\n * from surrounding points using finite difference.\n * The last point of the sequence must have defined velocity (likely zero).\n * @param positions Positions for the axes to move through, relative to the previous point.\n * @param velocities The axes velocities at the given point.\n * Specify an empty array or null for specific axes to make the sequence calculate the velocity.\n * @param time The duration between the previous point in the sequence and this one.\n */\n public async pointRelative(\n positions: Measurement[],\n velocities: (Measurement | null)[],\n time: Measurement\n ): Promise<void> {\n const request: requests.PvtPointRequest & gateway.Message = {\n ...requests.PvtPointRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.REL,\n positions: positions,\n velocities: velocities,\n time: time,\n toBinary() {\n return requests.PvtPointRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_point', request);\n }\n\n /**\n * Queues points with coordinates relative to the previous point in the PVT sequence.\n * @param positions Per-axis sequences of positions.\n * @param velocities Per-axis sequences of velocities.\n * For velocities [v0, v1, ...] and positions [p0, p1, ...], v1 is the target velocity at point p1.\n * @param times Segment times from one point to another.\n * For times [t0, t1, ...] and positions [p0, p1, ...], t1 is the time it takes to move from p0 to p1.\n */\n public async pointsRelative(\n positions: MeasurementSequence[],\n velocities: MeasurementSequence[],\n times: MeasurementSequence\n ): Promise<void> {\n const request: requests.PvtPointsRequest & gateway.Message = {\n ...requests.PvtPointsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n type: requests.StreamSegmentType.REL,\n positions: positions,\n velocities: velocities,\n times: times,\n toBinary() {\n return requests.PvtPointsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_points', request);\n }\n\n /**\n * Generates velocities for a sequence of positions and times, and (optionally) a partially defined sequence\n * of velocities. Note that if some velocities are defined, the solver will NOT modify them in any way.\n * If all velocities are defined, the solver will simply return the same velocities.\n * This function calculates velocities by enforcing that acceleration be continuous at each segment transition.\n *\n * Also note that if generating a path for multiple axes, the user must provide a position measurement sequence\n * per axis, And the values arrays for each sequence must be equal in length to each other and also to the\n * times sequence.\n * @param positions Positions for the axes to move through, relative to their home positions.\n * Each MeasurementSequence represents a sequence of positions along a particular dimension.\n * For example, a 2D path sequence would contain two MeasurementSequence objects,\n * one representing positions along X and one for those along Y.\n * @param times The relative or absolute time of each position in the PVT sequence.\n * @param velocities Optional velocities corresponding to each point in the position sequences.\n * @param [timesRelative=true] If true, the times sequence values are interpreted as relative. Otherwise,\n * they are interpreted as absolute. Note that the values of the returned time\n * sequence are ALWAYS relative. This is because the PVT sequence API expects\n * points to have relative times.\n * @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.\n */\n public static async generateVelocities(\n positions: MeasurementSequence[],\n times: MeasurementSequence,\n velocities?: OptionalMeasurementSequence[],\n timesRelative: boolean = true\n ): Promise<PvtSequenceData> {\n const request: requests.PvtGenerateVelocitiesRequest & gateway.Message = {\n ...requests.PvtGenerateVelocitiesRequest.DEFAULT,\n positions: positions,\n times: times,\n velocities: velocities,\n timesRelative: timesRelative,\n toBinary() {\n return requests.PvtGenerateVelocitiesRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtSequenceData>(\n 'device/pvt_generate_velocities',\n request,\n PvtSequenceData.fromBinary);\n return response;\n }\n\n /**\n * Generates positions for a sequence of velocities and times. This function calculates\n * positions by enforcing that acceleration be continuous at each segment transition.\n *\n * Note that if generating a path for multiple axes, the user must provide a\n * velocity measurement sequence per axis, and the values arrays for each sequence\n * must be equal in length to each other and also to the times sequence.\n * @param velocities The sequence of velocities for each axis.\n * Each MeasurementSequence represents a sequence of velocities along particular dimension.\n * @param times The relative or absolute time of each position in the PVT sequence.\n * @param [timesRelative=true] If true, the times sequence values are interpreted as relative. Otherwise,\n * they are interpreted as absolute. Note that the values of the returned time\n * sequence are ALWAYS relative. This is because the PVT sequence API expects\n * points to have relative times.\n * @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.\n */\n public static async generatePositions(\n velocities: MeasurementSequence[],\n times: MeasurementSequence,\n timesRelative: boolean = true\n ): Promise<PvtSequenceData> {\n const request: requests.PvtGeneratePositionsRequest & gateway.Message = {\n ...requests.PvtGeneratePositionsRequest.DEFAULT,\n velocities: velocities,\n times: times,\n timesRelative: timesRelative,\n toBinary() {\n return requests.PvtGeneratePositionsRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtSequenceData>(\n 'device/pvt_generate_positions',\n request,\n PvtSequenceData.fromBinary);\n return response;\n }\n\n /**\n * Waits until the live PVT sequence executes all queued actions.\n * @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n options: PvtSequence.WaitUntilIdleOptions = {}\n ): Promise<void> {\n const {\n throwErrorOnFault = true,\n } = options;\n const request: requests.StreamWaitUntilIdleRequest & gateway.Message = {\n ...requests.StreamWaitUntilIdleRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n throwErrorOnFault: throwErrorOnFault,\n toBinary() {\n return requests.StreamWaitUntilIdleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_wait_until_idle', request);\n }\n\n /**\n * Cork the front of the PVT sequences'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 PVT commands reaching the device late.\n * You can only cork an idle live PVT sequence.\n */\n public async cork(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\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 PVT sequence that is corked.\n */\n public async uncork(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_uncork', request);\n }\n\n /**\n * Returns a boolean value indicating whether the live PVT sequence is executing a queued action.\n * @returns True if the PVT sequence is executing a queued action.\n */\n public async isBusy(): Promise<boolean> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/stream_is_busy',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string which represents the PVT sequence.\n * @returns String which represents the PVT sequence.\n */\n public toString(): string {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/stream_to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Disables the PVT sequence.\n * If the PVT sequence is not setup, this command does nothing.\n * Once disabled, the PVT sequence will no longer accept PVT commands.\n * The PVT sequence will process the rest of the commands in the queue until it is empty.\n */\n public async disable(): Promise<void> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_disable', request);\n }\n\n /**\n * Sends a generic ASCII command to the PVT sequence.\n * Keeps resending the command while the device rejects with AGAIN reason.\n * @param command Command and its parameters.\n */\n public async genericCommand(\n command: string\n ): Promise<void> {\n const request: requests.StreamGenericCommandRequest & gateway.Message = {\n ...requests.StreamGenericCommandRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n command: command,\n toBinary() {\n return requests.StreamGenericCommandRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_generic_command', request);\n }\n\n /**\n * Sends a batch of generic ASCII commands to the PVT sequence.\n * Keeps resending command while the device rejects with AGAIN reason.\n * The batch is atomic in terms of thread safety.\n * @param batch Array of commands.\n */\n public async genericCommandBatch(\n batch: string[]\n ): Promise<void> {\n const request: requests.StreamGenericCommandBatchRequest & gateway.Message = {\n ...requests.StreamGenericCommandBatchRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n batch: batch,\n toBinary() {\n return requests.StreamGenericCommandBatchRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_generic_command_batch', request);\n }\n\n /**\n * Queries the PVT sequence status from the device\n * and returns boolean indicating whether the PVT sequence is disabled.\n * Useful to determine if execution was interrupted by other movements.\n * @returns True if the PVT sequence is disabled.\n */\n public async checkDisabled(): Promise<boolean> {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/stream_check_disabled',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Makes the PVT sequence throw PvtDiscontinuityException when it encounters discontinuities (ND warning flag).\n */\n public treatDiscontinuitiesAsError(): void {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device/stream_treat_discontinuities', request);\n }\n\n /**\n * Prevents PvtDiscontinuityException as a result of expected discontinuity when resuming the sequence.\n */\n public ignoreCurrentDiscontinuity(): void {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device/stream_ignore_discontinuity', request);\n }\n\n /**\n * Gets the axes of the PVT sequence.\n * @returns An array of axis numbers of the axes the PVT sequence is set up to control.\n */\n private _retrieveAxes(): PvtAxisDefinition[] {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StreamGetAxesResponse>(\n 'device/stream_get_axes',\n request,\n requests.StreamGetAxesResponse.fromBinary);\n return response.pvtAxes;\n }\n\n /**\n * Get the mode of the PVT sequence.\n * @returns Mode of the PVT sequence.\n */\n private _retrieveMode(): PvtMode {\n const request: requests.StreamEmptyRequest & gateway.Message = {\n ...requests.StreamEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n toBinary() {\n return requests.StreamEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StreamModeResponse>(\n 'device/stream_get_mode',\n request,\n requests.StreamModeResponse.fromBinary);\n return response.pvtMode;\n }\n\n /**\n * Saves PvtSequenceData object as csv file.\n * Save format is compatible with Zaber Launcher PVT Editor App.\n *\n * Throws InvalidArgumentException if fields are undefined or inconsistent.\n * For example, position and velocity arrays must have the same dimensions.\n * Sequence lengths must be consistent for positions, velocities and times.\n * @param sequenceData The PVT sequence data to save.\n * @param path The path to save the file to.\n * @param dimensionNames Optional csv column names for each series.\n * If not provided, the default names will be used: Series 1, Series 2, etc..\n * Length of this array must be equal to number of dimensions in sequence data.\n */\n public static async saveSequenceData(\n sequenceData: PvtSequenceData,\n path: string,\n dimensionNames?: string[]\n ): Promise<void> {\n const request: requests.PvtSaveCsvRequest & gateway.Message = {\n ...requests.PvtSaveCsvRequest.DEFAULT,\n sequenceData: sequenceData,\n path: path,\n dimensionNames: dimensionNames,\n toBinary() {\n return requests.PvtSaveCsvRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_pvt_save_csv', request);\n }\n\n /**\n * Load PVT Sequence data from CSV file.\n * The CSV data can include a header (recommended).\n * There are two possible header formats:\n *\n * 1. A time column with named position and velocity columns.\n * For example, \"Time (ms),X Position (cm),X Velocity (cm/s),...\".\n * In this case, position, velocity and time columns are all optional.\n * Also, order does not matter, but position and velocity names must be consistent.\n * This is our recommended CSV format.\n *\n * 2. A time column with alternating position and velocity columns.\n * For example, \"Time (ms),Position (cm),Velocity (cm/s),...\".\n * In this case, only the time column is optional and order does matter.\n *\n * Units must be wrapped in parens or square braces: ie. (µm/s), [µm/s].\n * Additionally, native units are the default if no units are specified.\n * Time values default to milliseconds if no units are provided.\n * If no header is included, then column order is assumed to be \"T,P1,V1,P2,V2,...\".\n * In this case the number of columns must be odd.\n * @param path The path to the csv file to load.\n * @returns The PVT csv data loaded from the file.\n */\n public static async loadSequenceData(\n path: string\n ): Promise<PvtCsvData> {\n const request: requests.PvtLoadCsvRequest & gateway.Message = {\n ...requests.PvtLoadCsvRequest.DEFAULT,\n path: path,\n toBinary() {\n return requests.PvtLoadCsvRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<PvtCsvData>(\n 'device/stream_pvt_load_csv',\n request,\n PvtCsvData.fromBinary);\n return response;\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetDigitalOutput instead.\n *\n * Sets value for the specified digital output channel.\n * @param channelNumber Channel number starting at 1.\n * @param value The type of action to perform on the channel.\n */\n public async setDigitalOutput(\n channelNumber: number,\n value: DigitalOutputAction\n ): Promise<void> {\n const request: requests.StreamSetDigitalOutputRequest & gateway.Message = {\n ...requests.StreamSetDigitalOutputRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.StreamSetDigitalOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_digital_output', request);\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetAllDigitalOutputs instead.\n *\n * Sets values for all digital output channels.\n * @param values The type of action to perform on the channel.\n */\n public async setAllDigitalOutputs(\n values: DigitalOutputAction[]\n ): Promise<void> {\n const request: requests.StreamSetAllDigitalOutputsRequest & gateway.Message = {\n ...requests.StreamSetAllDigitalOutputsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n values: values,\n toBinary() {\n return requests.StreamSetAllDigitalOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_all_digital_outputs', request);\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetAnalogOutput instead.\n *\n * Sets value for the specified analog output channel.\n * @param channelNumber Channel number starting at 1.\n * @param value Value to set the output channel voltage to.\n */\n public async setAnalogOutput(\n channelNumber: number,\n value: number\n ): Promise<void> {\n const request: requests.StreamSetAnalogOutputRequest & gateway.Message = {\n ...requests.StreamSetAnalogOutputRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n channelNumber: channelNumber,\n value: value,\n toBinary() {\n return requests.StreamSetAnalogOutputRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_analog_output', request);\n }\n\n /**\n * @deprecated Use PvtSequence.Io.SetAllAnalogOutputs instead.\n *\n * Sets values for all analog output channels.\n * @param values Voltage values to set the output channels to.\n */\n public async setAllAnalogOutputs(\n values: number[]\n ): Promise<void> {\n const request: requests.StreamSetAllAnalogOutputsRequest & gateway.Message = {\n ...requests.StreamSetAllAnalogOutputsRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n streamId: this.pvtId,\n pvt: true,\n values: values,\n toBinary() {\n return requests.StreamSetAllAnalogOutputsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/stream_set_all_analog_outputs', request);\n }\n}\n\nnamespace PvtSequence {\n export interface WaitUntilIdleOptions {\n /**\n * Determines whether to throw error when fault is observed.\n */\n throwErrorOnFault?: boolean;\n }\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BSON } from 'bson';
|
|
2
|
+
import { DeviceDbSourceType } from './device_db_source_type';
|
|
3
|
+
/**
|
|
4
|
+
* A source that device information can be retrieved from.
|
|
5
|
+
*/
|
|
6
|
+
export interface DeviceDbSource {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the source is a web service or a local DB file.
|
|
9
|
+
*/
|
|
10
|
+
sourceType: DeviceDbSourceType;
|
|
11
|
+
/**
|
|
12
|
+
* The URL of the web service or path to the local DB file.
|
|
13
|
+
*/
|
|
14
|
+
urlOrFilePath?: (string | null);
|
|
15
|
+
}
|
|
16
|
+
export declare const DeviceDbSource: {
|
|
17
|
+
fromBinary: (buffer: Uint8Array) => DeviceDbSource;
|
|
18
|
+
toBinary: (value: DeviceDbSource) => Uint8Array;
|
|
19
|
+
DEFAULT: Readonly<DeviceDbSource>;
|
|
20
|
+
sanitize: (value: DeviceDbSource) => DeviceDbSource;
|
|
21
|
+
convert: (value: BSON.Document) => DeviceDbSource;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=device_db_source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device_db_source.d.ts","sourceRoot":"","sources":["../../src/device_db_source.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,UAAU,EAAE,kBAAkB,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAEjC;AAED,eAAO,MAAM,cAAc;yBACJ,UAAU,KAAG,cAAc;sBAC9B,cAAc,KAAG,UAAU;;sBAK3B,cAAc,KAAG,cAAc;qBAQhC,KAAK,QAAQ,KAAG,cAAc;CAIhD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceDbSource = void 0;
|
|
4
|
+
/* This file is generated. Do not modify by hand. */
|
|
5
|
+
const bson_1 = require("bson");
|
|
6
|
+
const sanitizer_1 = require("./gateway/sanitizer");
|
|
7
|
+
const device_db_source_type_1 = require("./device_db_source_type");
|
|
8
|
+
exports.DeviceDbSource = {
|
|
9
|
+
fromBinary: (buffer) => exports.DeviceDbSource.convert(bson_1.BSON.deserialize(buffer, { useBigInt64: true })),
|
|
10
|
+
toBinary: (value) => bson_1.BSON.serialize(exports.DeviceDbSource.sanitize(value)),
|
|
11
|
+
DEFAULT: Object.freeze({
|
|
12
|
+
sourceType: 0,
|
|
13
|
+
urlOrFilePath: null,
|
|
14
|
+
}),
|
|
15
|
+
sanitize: (value) => {
|
|
16
|
+
if (value == null) {
|
|
17
|
+
throw new TypeError('Expected DeviceDbSource object but got null or undefined.');
|
|
18
|
+
}
|
|
19
|
+
if (typeof value !== 'object') {
|
|
20
|
+
throw new TypeError(`Expected DeviceDbSource object but got ${typeof value}.`);
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
sourceType: sanitizer_1.sanitizer.sanitizeEnum(value.sourceType, 'DeviceDbSourceType', device_db_source_type_1.DeviceDbSourceType, 'sourceType'),
|
|
24
|
+
urlOrFilePath: value.urlOrFilePath != null ? sanitizer_1.sanitizer.sanitizeString(value.urlOrFilePath, 'urlOrFilePath') : null,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
convert: (value) => ({
|
|
28
|
+
sourceType: value.sourceType,
|
|
29
|
+
urlOrFilePath: value.urlOrFilePath,
|
|
30
|
+
})
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=device_db_source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device_db_source.js","sourceRoot":"","sources":["../../src/device_db_source.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,mDAAgD;AAChD,mEAA6D;AAkBhD,QAAA,cAAc,GAAG;IAC5B,UAAU,EAAE,CAAC,MAAkB,EAAkB,EAAE,CAAC,sBAAc,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3H,QAAQ,EAAE,CAAC,KAAqB,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,sBAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/F,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,UAAU,EAAE,CAAuB;QACnC,aAAa,EAAE,IAAI;KACpB,CAA6B;IAC9B,QAAQ,EAAE,CAAC,KAAqB,EAAkB,EAAE;QAClD,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,2DAA2D,CAAC,CAAA;QAAC,CAAC;QACvG,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,0CAA0C,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QACjH,OAAO;YACL,UAAU,EAAE,qBAAS,CAAC,YAAY,CAAC,KAAK,CAAC,UAAU,EAAE,oBAAoB,EAAE,0CAAkB,EAAE,YAAY,CAAC;YAC5G,aAAa,EAAE,KAAK,CAAC,aAAa,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI;SACnH,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAAkB,EAAE,CAAC,CAAC;QAClD,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,aAAa,EAAE,KAAK,CAAC,aAAa;KACnC,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from './gateway/sanitizer';\nimport { DeviceDbSourceType } from './device_db_source_type';\n\n/**\n * A source that device information can be retrieved from.\n */\nexport interface DeviceDbSource {\n /**\n * Whether the source is a web service or a local DB file.\n */\n sourceType: DeviceDbSourceType;\n\n /**\n * The URL of the web service or path to the local DB file.\n */\n urlOrFilePath?: (string | null);\n\n}\n\nexport const DeviceDbSource = {\n fromBinary: (buffer: Uint8Array): DeviceDbSource => DeviceDbSource.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: DeviceDbSource): Uint8Array => BSON.serialize(DeviceDbSource.sanitize(value)),\n DEFAULT: Object.freeze({\n sourceType: 0 as DeviceDbSourceType,\n urlOrFilePath: null,\n }) as Readonly<DeviceDbSource>,\n sanitize: (value: DeviceDbSource): DeviceDbSource => {\n if (value == null) { throw new TypeError('Expected DeviceDbSource object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected DeviceDbSource object but got ${typeof value}.`) }\n return {\n sourceType: sanitizer.sanitizeEnum(value.sourceType, 'DeviceDbSourceType', DeviceDbSourceType, 'sourceType'),\n urlOrFilePath: value.urlOrFilePath != null ? sanitizer.sanitizeString(value.urlOrFilePath, 'urlOrFilePath') : null,\n };\n },\n convert: (value: BSON.Document): DeviceDbSource => ({\n sourceType: value.sourceType,\n urlOrFilePath: value.urlOrFilePath,\n })\n};\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BSON } from 'bson';
|
|
2
|
+
import { DeviceDbInnerError } from '../exceptions/device_db_inner_error';
|
|
2
3
|
/**
|
|
3
4
|
* Contains additional data for a DeviceDbFailedException.
|
|
4
5
|
*/
|
|
@@ -7,6 +8,10 @@ export interface DeviceDbFailedExceptionData {
|
|
|
7
8
|
* Code describing type of the error.
|
|
8
9
|
*/
|
|
9
10
|
code: string;
|
|
11
|
+
/**
|
|
12
|
+
* A list of errors that occurred while trying to access information from the device database.
|
|
13
|
+
*/
|
|
14
|
+
innerErrors: DeviceDbInnerError[];
|
|
10
15
|
}
|
|
11
16
|
export declare const DeviceDbFailedExceptionData: {
|
|
12
17
|
fromBinary: (buffer: Uint8Array) => DeviceDbFailedExceptionData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device_db_failed_exception_data.d.ts","sourceRoot":"","sources":["../../../src/exceptions/device_db_failed_exception_data.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"device_db_failed_exception_data.d.ts","sourceRoot":"","sources":["../../../src/exceptions/device_db_failed_exception_data.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,kBAAkB,EAAE,CAAC;CAEnC;AAED,eAAO,MAAM,2BAA2B;yBACjB,UAAU,KAAG,2BAA2B;sBAC3C,2BAA2B,KAAG,UAAU;;sBAKxC,2BAA2B,KAAG,2BAA2B;qBAQ1D,KAAK,QAAQ,KAAG,2BAA2B;CAI7D,CAAC"}
|
|
@@ -4,11 +4,13 @@ exports.DeviceDbFailedExceptionData = void 0;
|
|
|
4
4
|
/* This file is generated. Do not modify by hand. */
|
|
5
5
|
const bson_1 = require("bson");
|
|
6
6
|
const sanitizer_1 = require("../gateway/sanitizer");
|
|
7
|
+
const device_db_inner_error_1 = require("../exceptions/device_db_inner_error");
|
|
7
8
|
exports.DeviceDbFailedExceptionData = {
|
|
8
9
|
fromBinary: (buffer) => exports.DeviceDbFailedExceptionData.convert(bson_1.BSON.deserialize(buffer, { useBigInt64: true })),
|
|
9
10
|
toBinary: (value) => bson_1.BSON.serialize(exports.DeviceDbFailedExceptionData.sanitize(value)),
|
|
10
11
|
DEFAULT: Object.freeze({
|
|
11
12
|
code: '',
|
|
13
|
+
innerErrors: [],
|
|
12
14
|
}),
|
|
13
15
|
sanitize: (value) => {
|
|
14
16
|
if (value == null) {
|
|
@@ -19,10 +21,12 @@ exports.DeviceDbFailedExceptionData = {
|
|
|
19
21
|
}
|
|
20
22
|
return {
|
|
21
23
|
code: sanitizer_1.sanitizer.sanitizeString(value.code, 'code'),
|
|
24
|
+
innerErrors: Array.from(value.innerErrors ?? [], item => device_db_inner_error_1.DeviceDbInnerError.sanitize(item)),
|
|
22
25
|
};
|
|
23
26
|
},
|
|
24
27
|
convert: (value) => ({
|
|
25
28
|
code: value.code,
|
|
29
|
+
innerErrors: value.innerErrors,
|
|
26
30
|
})
|
|
27
31
|
};
|
|
28
32
|
//# sourceMappingURL=device_db_failed_exception_data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device_db_failed_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/device_db_failed_exception_data.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;
|
|
1
|
+
{"version":3,"file":"device_db_failed_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/device_db_failed_exception_data.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AACjD,+EAAyE;AAkB5D,QAAA,2BAA2B,GAAG;IACzC,UAAU,EAAE,CAAC,MAAkB,EAA+B,EAAE,CAAC,mCAA2B,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IACrJ,QAAQ,EAAE,CAAC,KAAkC,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,mCAA2B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzH,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,EAAE;QACR,WAAW,EAAE,EAAE;KAChB,CAA0C;IAC3C,QAAQ,EAAE,CAAC,KAAkC,EAA+B,EAAE;QAC5E,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,wEAAwE,CAAC,CAAA;QAAC,CAAC;QACpH,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,uDAAuD,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QAC9H,OAAO;YACL,IAAI,EAAE,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC;YAClD,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,0CAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SAC5F,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAA+B,EAAE,CAAC,CAAC;QAC/D,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,WAAW,EAAE,KAAK,CAAC,WAAW;KAC/B,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\nimport { DeviceDbInnerError } from '../exceptions/device_db_inner_error';\n\n/**\n * Contains additional data for a DeviceDbFailedException.\n */\nexport interface DeviceDbFailedExceptionData {\n /**\n * Code describing type of the error.\n */\n code: string;\n\n /**\n * A list of errors that occurred while trying to access information from the device database.\n */\n innerErrors: DeviceDbInnerError[];\n\n}\n\nexport const DeviceDbFailedExceptionData = {\n fromBinary: (buffer: Uint8Array): DeviceDbFailedExceptionData => DeviceDbFailedExceptionData.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: DeviceDbFailedExceptionData): Uint8Array => BSON.serialize(DeviceDbFailedExceptionData.sanitize(value)),\n DEFAULT: Object.freeze({\n code: '',\n innerErrors: [],\n }) as Readonly<DeviceDbFailedExceptionData>,\n sanitize: (value: DeviceDbFailedExceptionData): DeviceDbFailedExceptionData => {\n if (value == null) { throw new TypeError('Expected DeviceDbFailedExceptionData object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected DeviceDbFailedExceptionData object but got ${typeof value}.`) }\n return {\n code: sanitizer.sanitizeString(value.code, 'code'),\n innerErrors: Array.from(value.innerErrors ?? [], item => DeviceDbInnerError.sanitize(item)),\n };\n },\n convert: (value: BSON.Document): DeviceDbFailedExceptionData => ({\n code: value.code,\n innerErrors: value.innerErrors,\n })\n};\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BSON } from 'bson';
|
|
2
|
+
/**
|
|
3
|
+
* One of the errors that occurred while trying to access information from the device database.
|
|
4
|
+
*/
|
|
5
|
+
export interface DeviceDbInnerError {
|
|
6
|
+
/**
|
|
7
|
+
* Code describing type of the error.
|
|
8
|
+
*/
|
|
9
|
+
code: string;
|
|
10
|
+
/**
|
|
11
|
+
* Description of the error.
|
|
12
|
+
*/
|
|
13
|
+
message: string;
|
|
14
|
+
/**
|
|
15
|
+
* A list of errors that occurred while trying to access information from the device database.
|
|
16
|
+
*/
|
|
17
|
+
innerErrors: DeviceDbInnerError[];
|
|
18
|
+
}
|
|
19
|
+
export declare const DeviceDbInnerError: {
|
|
20
|
+
fromBinary: (buffer: Uint8Array) => DeviceDbInnerError;
|
|
21
|
+
toBinary: (value: DeviceDbInnerError) => Uint8Array;
|
|
22
|
+
DEFAULT: Readonly<DeviceDbInnerError>;
|
|
23
|
+
sanitize: (value: DeviceDbInnerError) => DeviceDbInnerError;
|
|
24
|
+
convert: (value: BSON.Document) => DeviceDbInnerError;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=device_db_inner_error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device_db_inner_error.d.ts","sourceRoot":"","sources":["../../../src/exceptions/device_db_inner_error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,kBAAkB,EAAE,CAAC;CAEnC;AAED,eAAO,MAAM,kBAAkB;yBACR,UAAU,KAAG,kBAAkB;sBAClC,kBAAkB,KAAG,UAAU;;sBAM/B,kBAAkB,KAAG,kBAAkB;qBASxC,KAAK,QAAQ,KAAG,kBAAkB;CAKpD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceDbInnerError = void 0;
|
|
4
|
+
/* This file is generated. Do not modify by hand. */
|
|
5
|
+
const bson_1 = require("bson");
|
|
6
|
+
const sanitizer_1 = require("../gateway/sanitizer");
|
|
7
|
+
exports.DeviceDbInnerError = {
|
|
8
|
+
fromBinary: (buffer) => exports.DeviceDbInnerError.convert(bson_1.BSON.deserialize(buffer, { useBigInt64: true })),
|
|
9
|
+
toBinary: (value) => bson_1.BSON.serialize(exports.DeviceDbInnerError.sanitize(value)),
|
|
10
|
+
DEFAULT: Object.freeze({
|
|
11
|
+
code: '',
|
|
12
|
+
message: '',
|
|
13
|
+
innerErrors: [],
|
|
14
|
+
}),
|
|
15
|
+
sanitize: (value) => {
|
|
16
|
+
if (value == null) {
|
|
17
|
+
throw new TypeError('Expected DeviceDbInnerError object but got null or undefined.');
|
|
18
|
+
}
|
|
19
|
+
if (typeof value !== 'object') {
|
|
20
|
+
throw new TypeError(`Expected DeviceDbInnerError object but got ${typeof value}.`);
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
code: sanitizer_1.sanitizer.sanitizeString(value.code, 'code'),
|
|
24
|
+
message: sanitizer_1.sanitizer.sanitizeString(value.message, 'message'),
|
|
25
|
+
innerErrors: Array.from(value.innerErrors ?? [], item => exports.DeviceDbInnerError.sanitize(item)),
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
convert: (value) => ({
|
|
29
|
+
code: value.code,
|
|
30
|
+
message: value.message,
|
|
31
|
+
innerErrors: value.innerErrors,
|
|
32
|
+
})
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=device_db_inner_error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device_db_inner_error.js","sourceRoot":"","sources":["../../../src/exceptions/device_db_inner_error.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AAuBpC,QAAA,kBAAkB,GAAG;IAChC,UAAU,EAAE,CAAC,MAAkB,EAAsB,EAAE,CAAC,0BAAkB,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IACnI,QAAQ,EAAE,CAAC,KAAyB,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,0BAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACvG,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,EAAE;QACR,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,EAAE;KAChB,CAAiC;IAClC,QAAQ,EAAE,CAAC,KAAyB,EAAsB,EAAE;QAC1D,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,+DAA+D,CAAC,CAAA;QAAC,CAAC;QAC3G,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,8CAA8C,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QACrH,OAAO;YACL,IAAI,EAAE,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC;YAClD,OAAO,EAAE,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC;YAC3D,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,0BAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SAC5F,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAAsB,EAAE,CAAC,CAAC;QACtD,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,WAAW,EAAE,KAAK,CAAC,WAAW;KAC/B,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\n\n/**\n * One of the errors that occurred while trying to access information from the device database.\n */\nexport interface DeviceDbInnerError {\n /**\n * Code describing type of the error.\n */\n code: string;\n\n /**\n * Description of the error.\n */\n message: string;\n\n /**\n * A list of errors that occurred while trying to access information from the device database.\n */\n innerErrors: DeviceDbInnerError[];\n\n}\n\nexport const DeviceDbInnerError = {\n fromBinary: (buffer: Uint8Array): DeviceDbInnerError => DeviceDbInnerError.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: DeviceDbInnerError): Uint8Array => BSON.serialize(DeviceDbInnerError.sanitize(value)),\n DEFAULT: Object.freeze({\n code: '',\n message: '',\n innerErrors: [],\n }) as Readonly<DeviceDbInnerError>,\n sanitize: (value: DeviceDbInnerError): DeviceDbInnerError => {\n if (value == null) { throw new TypeError('Expected DeviceDbInnerError object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected DeviceDbInnerError object but got ${typeof value}.`) }\n return {\n code: sanitizer.sanitizeString(value.code, 'code'),\n message: sanitizer.sanitizeString(value.message, 'message'),\n innerErrors: Array.from(value.innerErrors ?? [], item => DeviceDbInnerError.sanitize(item)),\n };\n },\n convert: (value: BSON.Document): DeviceDbInnerError => ({\n code: value.code,\n message: value.message,\n innerErrors: value.innerErrors,\n })\n};\n"]}
|
|
@@ -15,6 +15,7 @@ export * from './device_address_conflict_exception_data';
|
|
|
15
15
|
export * from './device_busy_exception';
|
|
16
16
|
export * from './device_db_failed_exception';
|
|
17
17
|
export * from './device_db_failed_exception_data';
|
|
18
|
+
export * from './device_db_inner_error';
|
|
18
19
|
export * from './device_detection_failed_exception';
|
|
19
20
|
export * from './device_failed_exception';
|
|
20
21
|
export * from './device_not_identified_exception';
|