@zaber/motion 7.13.0 → 7.14.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 -188
- package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
- package/dist/lib/ascii/optional_measurement_sequence.d.ts +1 -1
- package/dist/lib/ascii/optional_measurement_sequence.js.map +1 -1
- package/dist/lib/library.js +1 -1
- package/dist/lib/library.js.map +1 -1
- package/dist/lib/microscopy/wdi_autofocus_provider.d.ts +51 -0
- package/dist/lib/microscopy/wdi_autofocus_provider.d.ts.map +1 -1
- package/dist/lib/microscopy/wdi_autofocus_provider.js +68 -0
- package/dist/lib/microscopy/wdi_autofocus_provider.js.map +1 -1
- package/dist/lib/requests/index.d.ts +2 -0
- package/dist/lib/requests/index.d.ts.map +1 -1
- package/dist/lib/requests/index.js +2 -0
- package/dist/lib/requests/index.js.map +1 -1
- package/dist/lib/requests/test_request_complex.d.ts +12 -0
- package/dist/lib/requests/test_request_complex.d.ts.map +1 -0
- package/dist/lib/requests/test_request_complex.js +28 -0
- package/dist/lib/requests/test_request_complex.js.map +1 -0
- package/dist/lib/requests/wdi_generic_float_request.d.ts +17 -0
- package/dist/lib/requests/wdi_generic_float_request.d.ts.map +1 -0
- package/dist/lib/requests/wdi_generic_float_request.js +43 -0
- package/dist/lib/requests/wdi_generic_float_request.js.map +1 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -65,13 +65,13 @@ SOFTWARE.
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
------------------
|
|
68
|
-
github.com/davecgh/go-spew v1.1.
|
|
68
|
+
github.com/davecgh/go-spew v1.1.1
|
|
69
69
|
------------------
|
|
70
70
|
ISC License
|
|
71
71
|
|
|
72
72
|
Copyright (c) 2012-2016 Dave Collins <dave@davec.name>
|
|
73
73
|
|
|
74
|
-
Permission to use, copy, modify, and distribute this software for any
|
|
74
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
75
75
|
purpose with or without fee is hereby granted, provided that the above
|
|
76
76
|
copyright notice and this permission notice appear in all copies.
|
|
77
77
|
|
|
@@ -422,33 +422,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
422
422
|
THE SOFTWARE.
|
|
423
423
|
|
|
424
424
|
------------------
|
|
425
|
-
github.com/stretchr/
|
|
426
|
-
------------------
|
|
427
|
-
The MIT License
|
|
428
|
-
|
|
429
|
-
Copyright (c) 2014 Stretchr, Inc.
|
|
430
|
-
Copyright (c) 2017-2018 objx contributors
|
|
431
|
-
|
|
432
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
433
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
434
|
-
in the Software without restriction, including without limitation the rights
|
|
435
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
436
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
437
|
-
furnished to do so, subject to the following conditions:
|
|
438
|
-
|
|
439
|
-
The above copyright notice and this permission notice shall be included in all
|
|
440
|
-
copies or substantial portions of the Software.
|
|
441
|
-
|
|
442
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
443
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
444
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
445
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
446
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
447
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
448
|
-
SOFTWARE.
|
|
449
|
-
|
|
450
|
-
------------------
|
|
451
|
-
github.com/stretchr/testify v1.7.0
|
|
425
|
+
github.com/stretchr/testify v1.8.1
|
|
452
426
|
------------------
|
|
453
427
|
MIT License
|
|
454
428
|
|
|
@@ -1415,9 +1389,9 @@ go.mongodb.org/mongo-driver v1.14.0
|
|
|
1415
1389
|
limitations under the License.
|
|
1416
1390
|
|
|
1417
1391
|
------------------
|
|
1418
|
-
golang.org/x/crypto v0.
|
|
1392
|
+
golang.org/x/crypto v0.28.0
|
|
1419
1393
|
------------------
|
|
1420
|
-
Copyright
|
|
1394
|
+
Copyright 2009 The Go Authors.
|
|
1421
1395
|
|
|
1422
1396
|
Redistribution and use in source and binary forms, with or without
|
|
1423
1397
|
modification, are permitted provided that the following conditions are
|
|
@@ -1429,7 +1403,7 @@ notice, this list of conditions and the following disclaimer.
|
|
|
1429
1403
|
copyright notice, this list of conditions and the following disclaimer
|
|
1430
1404
|
in the documentation and/or other materials provided with the
|
|
1431
1405
|
distribution.
|
|
1432
|
-
* Neither the name of Google
|
|
1406
|
+
* Neither the name of Google LLC nor the names of its
|
|
1433
1407
|
contributors may be used to endorse or promote products derived from
|
|
1434
1408
|
this software without specific prior written permission.
|
|
1435
1409
|
|
|
@@ -1507,37 +1481,6 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
1507
1481
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1508
1482
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1509
1483
|
|
|
1510
|
-
------------------
|
|
1511
|
-
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4
|
|
1512
|
-
------------------
|
|
1513
|
-
Copyright (c) 2009 The Go Authors. All rights reserved.
|
|
1514
|
-
|
|
1515
|
-
Redistribution and use in source and binary forms, with or without
|
|
1516
|
-
modification, are permitted provided that the following conditions are
|
|
1517
|
-
met:
|
|
1518
|
-
|
|
1519
|
-
* Redistributions of source code must retain the above copyright
|
|
1520
|
-
notice, this list of conditions and the following disclaimer.
|
|
1521
|
-
* Redistributions in binary form must reproduce the above
|
|
1522
|
-
copyright notice, this list of conditions and the following disclaimer
|
|
1523
|
-
in the documentation and/or other materials provided with the
|
|
1524
|
-
distribution.
|
|
1525
|
-
* Neither the name of Google Inc. nor the names of its
|
|
1526
|
-
contributors may be used to endorse or promote products derived from
|
|
1527
|
-
this software without specific prior written permission.
|
|
1528
|
-
|
|
1529
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
1530
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
1531
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
1532
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
1533
|
-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
1534
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
1535
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
1536
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
1537
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1538
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1539
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1540
|
-
|
|
1541
1484
|
------------------
|
|
1542
1485
|
golang.org/x/net v0.0.0-20190620200207-3b0461eec859
|
|
1543
1486
|
------------------
|
|
@@ -1570,71 +1513,9 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
1570
1513
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1571
1514
|
|
|
1572
1515
|
------------------
|
|
1573
|
-
golang.org/x/
|
|
1516
|
+
golang.org/x/sys v0.34.0
|
|
1574
1517
|
------------------
|
|
1575
|
-
Copyright
|
|
1576
|
-
|
|
1577
|
-
Redistribution and use in source and binary forms, with or without
|
|
1578
|
-
modification, are permitted provided that the following conditions are
|
|
1579
|
-
met:
|
|
1580
|
-
|
|
1581
|
-
* Redistributions of source code must retain the above copyright
|
|
1582
|
-
notice, this list of conditions and the following disclaimer.
|
|
1583
|
-
* Redistributions in binary form must reproduce the above
|
|
1584
|
-
copyright notice, this list of conditions and the following disclaimer
|
|
1585
|
-
in the documentation and/or other materials provided with the
|
|
1586
|
-
distribution.
|
|
1587
|
-
* Neither the name of Google Inc. nor the names of its
|
|
1588
|
-
contributors may be used to endorse or promote products derived from
|
|
1589
|
-
this software without specific prior written permission.
|
|
1590
|
-
|
|
1591
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
1592
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
1593
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
1594
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
1595
|
-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
1596
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
1597
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
1598
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
1599
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1600
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1601
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1602
|
-
|
|
1603
|
-
------------------
|
|
1604
|
-
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f
|
|
1605
|
-
------------------
|
|
1606
|
-
Copyright (c) 2009 The Go Authors. All rights reserved.
|
|
1607
|
-
|
|
1608
|
-
Redistribution and use in source and binary forms, with or without
|
|
1609
|
-
modification, are permitted provided that the following conditions are
|
|
1610
|
-
met:
|
|
1611
|
-
|
|
1612
|
-
* Redistributions of source code must retain the above copyright
|
|
1613
|
-
notice, this list of conditions and the following disclaimer.
|
|
1614
|
-
* Redistributions in binary form must reproduce the above
|
|
1615
|
-
copyright notice, this list of conditions and the following disclaimer
|
|
1616
|
-
in the documentation and/or other materials provided with the
|
|
1617
|
-
distribution.
|
|
1618
|
-
* Neither the name of Google Inc. nor the names of its
|
|
1619
|
-
contributors may be used to endorse or promote products derived from
|
|
1620
|
-
this software without specific prior written permission.
|
|
1621
|
-
|
|
1622
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
1623
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
1624
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
1625
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
1626
|
-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
1627
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
1628
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
1629
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
1630
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1631
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1632
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1633
|
-
|
|
1634
|
-
------------------
|
|
1635
|
-
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
|
|
1636
|
-
------------------
|
|
1637
|
-
Copyright (c) 2009 The Go Authors. All rights reserved.
|
|
1518
|
+
Copyright 2009 The Go Authors.
|
|
1638
1519
|
|
|
1639
1520
|
Redistribution and use in source and binary forms, with or without
|
|
1640
1521
|
modification, are permitted provided that the following conditions are
|
|
@@ -1646,7 +1527,7 @@ notice, this list of conditions and the following disclaimer.
|
|
|
1646
1527
|
copyright notice, this list of conditions and the following disclaimer
|
|
1647
1528
|
in the documentation and/or other materials provided with the
|
|
1648
1529
|
distribution.
|
|
1649
|
-
* Neither the name of Google
|
|
1530
|
+
* Neither the name of Google LLC nor the names of its
|
|
1650
1531
|
contributors may be used to endorse or promote products derived from
|
|
1651
1532
|
this software without specific prior written permission.
|
|
1652
1533
|
|
|
@@ -1693,37 +1574,6 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
1693
1574
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1694
1575
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1695
1576
|
|
|
1696
|
-
------------------
|
|
1697
|
-
golang.org/x/tools v0.1.12
|
|
1698
|
-
------------------
|
|
1699
|
-
Copyright (c) 2009 The Go Authors. All rights reserved.
|
|
1700
|
-
|
|
1701
|
-
Redistribution and use in source and binary forms, with or without
|
|
1702
|
-
modification, are permitted provided that the following conditions are
|
|
1703
|
-
met:
|
|
1704
|
-
|
|
1705
|
-
* Redistributions of source code must retain the above copyright
|
|
1706
|
-
notice, this list of conditions and the following disclaimer.
|
|
1707
|
-
* Redistributions in binary form must reproduce the above
|
|
1708
|
-
copyright notice, this list of conditions and the following disclaimer
|
|
1709
|
-
in the documentation and/or other materials provided with the
|
|
1710
|
-
distribution.
|
|
1711
|
-
* Neither the name of Google Inc. nor the names of its
|
|
1712
|
-
contributors may be used to endorse or promote products derived from
|
|
1713
|
-
this software without specific prior written permission.
|
|
1714
|
-
|
|
1715
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
1716
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
1717
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
1718
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
1719
|
-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
1720
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
1721
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
1722
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
1723
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1724
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1725
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1726
|
-
|
|
1727
1577
|
------------------
|
|
1728
1578
|
gonum.org/v1/gonum v0.16.0
|
|
1729
1579
|
------------------
|
|
@@ -1750,35 +1600,6 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
|
1750
1600
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1751
1601
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1752
1602
|
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
1603
|
------------------
|
|
1783
1604
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
|
|
1784
1605
|
------------------
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optional_measurement_sequence.js","sourceRoot":"","sources":["../../../src/ascii/optional_measurement_sequence.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AAmBpC,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,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,IAAI;KACX,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,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YACvH,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;SAC9E,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAA+B,EAAE,CAAC,CAAC;QAC/D,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\nimport { Units } from '../units';\n\n/**\n * Represents a sequence of optional numerical values with optional units specified.\n */\nexport interface OptionalMeasurementSequence {\n /**\n * Sequence of values.\n */\n values: (number | null)[];\n\n /**\n * Optional units of the sequence.\n */\n unit?: (Units | null);\n\n}\n\nexport const OptionalMeasurementSequence = {\n fromBinary: (buffer: Uint8Array): OptionalMeasurementSequence => OptionalMeasurementSequence.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: OptionalMeasurementSequence): Uint8Array => BSON.serialize(OptionalMeasurementSequence.sanitize(value)),\n DEFAULT: Object.freeze({\n values: [],\n unit: null,\n }) as Readonly<OptionalMeasurementSequence>,\n sanitize: (value: OptionalMeasurementSequence): OptionalMeasurementSequence => {\n if (value == null) { throw new TypeError('Expected OptionalMeasurementSequence object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected OptionalMeasurementSequence object but got ${typeof value}.`) }\n return {\n values: Array.from(value.values ?? [], item => item != null ? sanitizer.sanitizeNumber(item, 'items of values') : null),\n unit: value.unit != null ? sanitizer.sanitizeUnits(value.unit, 'unit') : null,\n };\n },\n convert: (value: BSON.Document): OptionalMeasurementSequence => ({\n values: value.values,\n unit: value.unit,\n })\n};\n"]}
|
|
1
|
+
{"version":3,"file":"optional_measurement_sequence.js","sourceRoot":"","sources":["../../../src/ascii/optional_measurement_sequence.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AAmBpC,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,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,IAAI;KACX,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,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YACvH,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;SAC9E,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAA+B,EAAE,CAAC,CAAC;QAC/D,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\nimport { Units } from '../units';\n\n/**\n * Represents a sequence of optional numerical values with optional units specified.\n */\nexport interface OptionalMeasurementSequence {\n /**\n * Sequence of optional values.\n */\n values: (number | null)[];\n\n /**\n * Optional units of the sequence.\n */\n unit?: (Units | null);\n\n}\n\nexport const OptionalMeasurementSequence = {\n fromBinary: (buffer: Uint8Array): OptionalMeasurementSequence => OptionalMeasurementSequence.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: OptionalMeasurementSequence): Uint8Array => BSON.serialize(OptionalMeasurementSequence.sanitize(value)),\n DEFAULT: Object.freeze({\n values: [],\n unit: null,\n }) as Readonly<OptionalMeasurementSequence>,\n sanitize: (value: OptionalMeasurementSequence): OptionalMeasurementSequence => {\n if (value == null) { throw new TypeError('Expected OptionalMeasurementSequence object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected OptionalMeasurementSequence object but got ${typeof value}.`) }\n return {\n values: Array.from(value.values ?? [], item => item != null ? sanitizer.sanitizeNumber(item, 'items of values') : null),\n unit: value.unit != null ? sanitizer.sanitizeUnits(value.unit, 'unit') : null,\n };\n },\n convert: (value: BSON.Document): OptionalMeasurementSequence => ({\n values: value.values,\n unit: value.unit,\n })\n};\n"]}
|
package/dist/lib/library.js
CHANGED
package/dist/lib/library.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.js","sourceRoot":"","sources":["../../src/library.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AACrC,qDAAuC;AAKvC,MAAa,OAAO;IAClB;;;;OAIG;IACI,MAAM,CAAC,YAAY,CACxB,IAAmB,EACnB,QAAiB;QAEjB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,QAAQ;YAClB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,iBAAiB,CAC7B,UAA8B,EAC9B,aAAsB;QAEtB,MAAM,OAAO,GAAwD;YACnE,GAAG,QAAQ,CAAC,wBAAwB,CAAC,OAAO;YAC5C,UAAU,EAAE,UAAU;YACtB,aAAa,EAAE,aAAa;YAC5B,QAAQ;gBACN,OAAO,QAAQ,CAAC,wBAAwB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1D,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,kBAAkB,CAC9B,GAAG,OAAyB;QAE5B,MAAM,OAAO,GAAgE;YAC3E,GAAG,QAAQ,CAAC,gCAAgC,C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D,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF;AA3LD,0BA2LC;AAED,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport * as requests from './requests';\nimport { LogOutputMode } from './log_output_mode';\nimport { DeviceDbSourceType } from './device_db_source_type';\nimport { DeviceDbSource } from './device_db_source';\n\nexport class Library {\n /**\n * Sets library logging output.\n * @param mode Logging output mode.\n * @param filePath Path of the file to open.\n */\n public static setLogOutput(\n mode: LogOutputMode,\n filePath?: string\n ): void {\n const request: requests.SetLogOutputRequest & gateway.Message = {\n ...requests.SetLogOutputRequest.DEFAULT,\n mode: mode,\n filePath: filePath,\n toBinary() {\n return requests.SetLogOutputRequest.toBinary(this);\n },\n };\n\n gateway.callSync('logging/set_output', request);\n }\n\n /**\n * Sets source of Device DB data. Allows selection of a web service or a local file.\n * @param sourceType Source type.\n * @param urlOrFilePath URL of the web service or path to the local file.\n * Leave empty for the default URL of Zaber web service.\n */\n public static setDeviceDbSource(\n sourceType: DeviceDbSourceType,\n urlOrFilePath?: string\n ): void {\n const request: requests.SetDeviceDbSourceRequest & gateway.Message = {\n ...requests.SetDeviceDbSourceRequest.DEFAULT,\n sourceType: sourceType,\n urlOrFilePath: urlOrFilePath,\n toBinary() {\n return requests.SetDeviceDbSourceRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_source', request);\n }\n\n /**\n * Sets a sequence of sources. When the library needs device information,\n * it will try each source in the order they are provided.\n * @param sources The list of sources the library will access data from.\n */\n public static setDeviceDbSources(\n ...sources: DeviceDbSource[]\n ): void {\n const request: requests.SetDeviceDbLayeredSourcesRequest & gateway.Message = {\n ...requests.SetDeviceDbLayeredSourcesRequest.DEFAULT,\n sources: sources,\n toBinary() {\n return requests.SetDeviceDbLayeredSourcesRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_sources', request);\n }\n\n /**\n * Enables Device DB store.\n * The store uses filesystem to save information obtained from the Device DB.\n * The stored data are later used instead of the Device DB.\n * @param storeLocation Specifies relative or absolute path of the folder used by the store.\n * If left empty defaults to a folder in user home directory.\n * Must be accessible by the process.\n */\n public static enableDeviceDbStore(\n storeLocation?: string\n ): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toggleOn: true,\n storeLocation: storeLocation,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables Device DB store.\n */\n public static disableDeviceDbStore(): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Checks if the Device DB store is currently enabled.\n * @returns True if the Device DB store is enabled.\n */\n public static isDeviceDbStoreEnabled(): boolean {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device_db/check_store',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Clears the Device DB store on the local filesystem.\n * Note: If the device DB was enabled with a custom store location, store files will be removed in that location.\n */\n public static async clearDeviceDbStore(): Promise<void> {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device_db/clear_store', request);\n }\n\n /**\n * Disables certain customer checks (like FF flag).\n * @param mode Whether to turn internal mode on or off.\n */\n public static setInternalMode(\n mode: boolean\n ): void {\n const request: requests.SetInternalModeRequest & gateway.Message = {\n ...requests.SetInternalModeRequest.DEFAULT,\n mode: mode,\n toBinary() {\n return requests.SetInternalModeRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_internal_mode', request);\n }\n\n /**\n * Sets the period between polling for IDLE during movements.\n * Caution: Setting the period too low may cause performance issues.\n * @param period Period in milliseconds.\n * Negative value restores the default period.\n */\n public static setIdlePollingPeriod(\n period: number\n ): void {\n const request: requests.IntRequest & gateway.Message = {\n ...requests.IntRequest.DEFAULT,\n value: period,\n toBinary() {\n return requests.IntRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_idle_polling_period', request);\n }\n\n /**\n * Throws an error if the version of the loaded shared library does not match the caller's version.\n */\n public static checkVersion(): void {\n const request: requests.CheckVersionRequest & gateway.Message = {\n ...requests.CheckVersionRequest.DEFAULT,\n host: 'js',\n version: '7.
|
|
1
|
+
{"version":3,"file":"library.js","sourceRoot":"","sources":["../../src/library.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AACrC,qDAAuC;AAKvC,MAAa,OAAO;IAClB;;;;OAIG;IACI,MAAM,CAAC,YAAY,CACxB,IAAmB,EACnB,QAAiB;QAEjB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,QAAQ;YAClB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,iBAAiB,CAC7B,UAA8B,EAC9B,aAAsB;QAEtB,MAAM,OAAO,GAA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OAAO,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC5C,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,YAAY;QACxB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,QAAQ;YACjB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF;AA3LD,0BA2LC;AAED,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport * as requests from './requests';\nimport { LogOutputMode } from './log_output_mode';\nimport { DeviceDbSourceType } from './device_db_source_type';\nimport { DeviceDbSource } from './device_db_source';\n\nexport class Library {\n /**\n * Sets library logging output.\n * @param mode Logging output mode.\n * @param filePath Path of the file to open.\n */\n public static setLogOutput(\n mode: LogOutputMode,\n filePath?: string\n ): void {\n const request: requests.SetLogOutputRequest & gateway.Message = {\n ...requests.SetLogOutputRequest.DEFAULT,\n mode: mode,\n filePath: filePath,\n toBinary() {\n return requests.SetLogOutputRequest.toBinary(this);\n },\n };\n\n gateway.callSync('logging/set_output', request);\n }\n\n /**\n * Sets source of Device DB data. Allows selection of a web service or a local file.\n * @param sourceType Source type.\n * @param urlOrFilePath URL of the web service or path to the local file.\n * Leave empty for the default URL of Zaber web service.\n */\n public static setDeviceDbSource(\n sourceType: DeviceDbSourceType,\n urlOrFilePath?: string\n ): void {\n const request: requests.SetDeviceDbSourceRequest & gateway.Message = {\n ...requests.SetDeviceDbSourceRequest.DEFAULT,\n sourceType: sourceType,\n urlOrFilePath: urlOrFilePath,\n toBinary() {\n return requests.SetDeviceDbSourceRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_source', request);\n }\n\n /**\n * Sets a sequence of sources. When the library needs device information,\n * it will try each source in the order they are provided.\n * @param sources The list of sources the library will access data from.\n */\n public static setDeviceDbSources(\n ...sources: DeviceDbSource[]\n ): void {\n const request: requests.SetDeviceDbLayeredSourcesRequest & gateway.Message = {\n ...requests.SetDeviceDbLayeredSourcesRequest.DEFAULT,\n sources: sources,\n toBinary() {\n return requests.SetDeviceDbLayeredSourcesRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_sources', request);\n }\n\n /**\n * Enables Device DB store.\n * The store uses filesystem to save information obtained from the Device DB.\n * The stored data are later used instead of the Device DB.\n * @param storeLocation Specifies relative or absolute path of the folder used by the store.\n * If left empty defaults to a folder in user home directory.\n * Must be accessible by the process.\n */\n public static enableDeviceDbStore(\n storeLocation?: string\n ): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toggleOn: true,\n storeLocation: storeLocation,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables Device DB store.\n */\n public static disableDeviceDbStore(): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Checks if the Device DB store is currently enabled.\n * @returns True if the Device DB store is enabled.\n */\n public static isDeviceDbStoreEnabled(): boolean {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device_db/check_store',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Clears the Device DB store on the local filesystem.\n * Note: If the device DB was enabled with a custom store location, store files will be removed in that location.\n */\n public static async clearDeviceDbStore(): Promise<void> {\n const request: requests.EmptyRequest & gateway.Message = {\n ...requests.EmptyRequest.DEFAULT,\n toBinary() {\n return requests.EmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device_db/clear_store', request);\n }\n\n /**\n * Disables certain customer checks (like FF flag).\n * @param mode Whether to turn internal mode on or off.\n */\n public static setInternalMode(\n mode: boolean\n ): void {\n const request: requests.SetInternalModeRequest & gateway.Message = {\n ...requests.SetInternalModeRequest.DEFAULT,\n mode: mode,\n toBinary() {\n return requests.SetInternalModeRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_internal_mode', request);\n }\n\n /**\n * Sets the period between polling for IDLE during movements.\n * Caution: Setting the period too low may cause performance issues.\n * @param period Period in milliseconds.\n * Negative value restores the default period.\n */\n public static setIdlePollingPeriod(\n period: number\n ): void {\n const request: requests.IntRequest & gateway.Message = {\n ...requests.IntRequest.DEFAULT,\n value: period,\n toBinary() {\n return requests.IntRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_idle_polling_period', request);\n }\n\n /**\n * Throws an error if the version of the loaded shared library does not match the caller's version.\n */\n public static checkVersion(): void {\n const request: requests.CheckVersionRequest & gateway.Message = {\n ...requests.CheckVersionRequest.DEFAULT,\n host: 'js',\n version: '7.14.0',\n toBinary() {\n return requests.CheckVersionRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/check_version', request);\n }\n}\n\ngateway.addInitCallback(Library.checkVersion);\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FirmwareVersion } from '../firmware_version';
|
|
1
2
|
import { WdiAutofocusProviderStatus } from './wdi_autofocus_provider_status';
|
|
2
3
|
/**
|
|
3
4
|
* Class representing access to WDI Autofocus connection.
|
|
@@ -12,6 +13,10 @@ export declare class WdiAutofocusProvider {
|
|
|
12
13
|
*/
|
|
13
14
|
get providerId(): number;
|
|
14
15
|
private _providerId;
|
|
16
|
+
/**
|
|
17
|
+
* The firmware version of the connected autofocus.
|
|
18
|
+
*/
|
|
19
|
+
get firmwareVersion(): FirmwareVersion;
|
|
15
20
|
constructor(providerId: number);
|
|
16
21
|
/**
|
|
17
22
|
* Opens a TCP connection to WDI autofocus.
|
|
@@ -29,6 +34,11 @@ export declare class WdiAutofocusProvider {
|
|
|
29
34
|
* @param providerId The ID of the connection to free.
|
|
30
35
|
*/
|
|
31
36
|
private static _free;
|
|
37
|
+
/**
|
|
38
|
+
* Returns FW version.
|
|
39
|
+
* @returns Firmware version.
|
|
40
|
+
*/
|
|
41
|
+
private _retrieveFirmwareVersion;
|
|
32
42
|
/**
|
|
33
43
|
* Generic read operation.
|
|
34
44
|
* @param registerId Register address to read from.
|
|
@@ -48,6 +58,23 @@ export declare class WdiAutofocusProvider {
|
|
|
48
58
|
* @param [options.registerBank='U'] Register bank letter (defaults to U for user bank).
|
|
49
59
|
*/
|
|
50
60
|
genericWrite(registerId: number, size?: number, data?: number[], options?: WdiAutofocusProvider.GenericWriteOptions): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Generic read operation.
|
|
63
|
+
* @param registerId Register address to read from.
|
|
64
|
+
* @param [options.count=1] Number of values to read (defaults to 1).
|
|
65
|
+
* @param [options.offset=0] Offset within the register (defaults to 0).
|
|
66
|
+
* @param [options.registerBank='U'] Register bank letter (defaults to U for user bank).
|
|
67
|
+
* @returns Array of floats read from the device.
|
|
68
|
+
*/
|
|
69
|
+
genericReadFloat(registerId: number, options?: WdiAutofocusProvider.GenericReadFloatOptions): Promise<number[]>;
|
|
70
|
+
/**
|
|
71
|
+
* Generic write operation.
|
|
72
|
+
* @param registerId Register address to write to.
|
|
73
|
+
* @param [data=[]] Array of values to write to the register. Empty array is allowed.
|
|
74
|
+
* @param [options.offset=0] Offset within the register (defaults to 0).
|
|
75
|
+
* @param [options.registerBank='U'] Register bank letter (defaults to U for user bank).
|
|
76
|
+
*/
|
|
77
|
+
genericWriteFloat(registerId: number, data?: number[], options?: WdiAutofocusProvider.GenericWriteFloatOptions): Promise<void>;
|
|
51
78
|
/**
|
|
52
79
|
* Enables the laser.
|
|
53
80
|
*/
|
|
@@ -98,6 +125,30 @@ declare namespace WdiAutofocusProvider {
|
|
|
98
125
|
*/
|
|
99
126
|
registerBank?: string;
|
|
100
127
|
}
|
|
128
|
+
interface GenericReadFloatOptions {
|
|
129
|
+
/**
|
|
130
|
+
* Number of values to read (defaults to 1).
|
|
131
|
+
*/
|
|
132
|
+
count?: number;
|
|
133
|
+
/**
|
|
134
|
+
* Offset within the register (defaults to 0).
|
|
135
|
+
*/
|
|
136
|
+
offset?: number;
|
|
137
|
+
/**
|
|
138
|
+
* Register bank letter (defaults to U for user bank).
|
|
139
|
+
*/
|
|
140
|
+
registerBank?: string;
|
|
141
|
+
}
|
|
142
|
+
interface GenericWriteFloatOptions {
|
|
143
|
+
/**
|
|
144
|
+
* Offset within the register (defaults to 0).
|
|
145
|
+
*/
|
|
146
|
+
offset?: number;
|
|
147
|
+
/**
|
|
148
|
+
* Register bank letter (defaults to U for user bank).
|
|
149
|
+
*/
|
|
150
|
+
registerBank?: string;
|
|
151
|
+
}
|
|
101
152
|
}
|
|
102
153
|
export {};
|
|
103
154
|
//# sourceMappingURL=wdi_autofocus_provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wdi_autofocus_provider.d.ts","sourceRoot":"","sources":["../../../src/microscopy/wdi_autofocus_provider.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;GAEG;AACH,qBAAa,oBAAoB;IAC/B;;OAEG;IACH,gBAAuB,gBAAgB,EAAE,MAAM,CAAM;IAErD;;OAEG;IACH,IAAW,UAAU,IAAI,MAAM,CAE9B;IACD,OAAO,CAAC,WAAW,CAAS;
|
|
1
|
+
{"version":3,"file":"wdi_autofocus_provider.d.ts","sourceRoot":"","sources":["../../../src/microscopy/wdi_autofocus_provider.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;GAEG;AACH,qBAAa,oBAAoB;IAC/B;;OAEG;IACH,gBAAuB,gBAAgB,EAAE,MAAM,CAAM;IAErD;;OAEG;IACH,IAAW,UAAU,IAAI,MAAM,CAE9B;IACD,OAAO,CAAC,WAAW,CAAS;IAE5B;;OAEG;IACH,IAAW,eAAe,IAAI,eAAe,CAE5C;gBAEW,UAAU,EAAE,MAAM;IAK9B;;;;;OAKG;WACiB,OAAO,CACzB,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE,MAA8C,GACnD,OAAO,CAAC,oBAAoB,CAAC;IAkBhC;;OAEG;IACU,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAYnC;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,KAAK;IAcpB;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAgBhC;;;;;;;;OAQG;IACU,WAAW,CACtB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,oBAAoB,CAAC,kBAAuB,GACpD,OAAO,CAAC,MAAM,EAAE,CAAC;IA0BpB;;;;;;;OAOG;IACU,YAAY,CACvB,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,MAAU,EAChB,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,GAAE,oBAAoB,CAAC,mBAAwB,GACrD,OAAO,CAAC,IAAI,CAAC;IAqBhB;;;;;;;OAOG;IACU,gBAAgB,CAC3B,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,oBAAoB,CAAC,uBAA4B,GACzD,OAAO,CAAC,MAAM,EAAE,CAAC;IAyBpB;;;;;;OAMG;IACU,iBAAiB,CAC5B,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,GAAE,oBAAoB,CAAC,wBAA6B,GAC1D,OAAO,CAAC,IAAI,CAAC;IAoBhB;;OAEG;IACU,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAazC;;OAEG;IACU,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAa1C;;;OAGG;IACU,SAAS,IAAI,OAAO,CAAC,0BAA0B,CAAC;IAgB7D;;;OAGG;IACI,QAAQ,IAAI,MAAM;IAgBzB;;;;MAIE;IACK,IAAI,IAAI,IAAI;CAGpB;AAED,kBAAU,oBAAoB,CAAC;IAC7B,UAAiB,kBAAkB;QAC/B;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB;IACD,UAAiB,mBAAmB;QAChC;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB;IACD,UAAiB,uBAAuB;QACpC;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB;IACD,UAAiB,wBAAwB;QACrC;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB;CACF"}
|
|
@@ -29,6 +29,7 @@ exports.WdiAutofocusProvider = void 0;
|
|
|
29
29
|
const gateway = __importStar(require("../gateway"));
|
|
30
30
|
const requests = __importStar(require("../requests"));
|
|
31
31
|
const finalizer_1 = require("../finalizer");
|
|
32
|
+
const firmware_version_1 = require("../firmware_version");
|
|
32
33
|
/**
|
|
33
34
|
* Class representing access to WDI Autofocus connection.
|
|
34
35
|
*/
|
|
@@ -39,6 +40,12 @@ class WdiAutofocusProvider {
|
|
|
39
40
|
get providerId() {
|
|
40
41
|
return this._providerId;
|
|
41
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* The firmware version of the connected autofocus.
|
|
45
|
+
*/
|
|
46
|
+
get firmwareVersion() {
|
|
47
|
+
return this._retrieveFirmwareVersion();
|
|
48
|
+
}
|
|
42
49
|
constructor(providerId) {
|
|
43
50
|
this._providerId = providerId;
|
|
44
51
|
(0, finalizer_1.registerForFinalization)(this, WdiAutofocusProvider._free.bind(null, providerId));
|
|
@@ -89,6 +96,21 @@ class WdiAutofocusProvider {
|
|
|
89
96
|
};
|
|
90
97
|
gateway.callSync('wdi/free', request);
|
|
91
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Returns FW version.
|
|
101
|
+
* @returns Firmware version.
|
|
102
|
+
*/
|
|
103
|
+
_retrieveFirmwareVersion() {
|
|
104
|
+
const request = {
|
|
105
|
+
...requests.InterfaceEmptyRequest.DEFAULT,
|
|
106
|
+
interfaceId: this.providerId,
|
|
107
|
+
toBinary() {
|
|
108
|
+
return requests.InterfaceEmptyRequest.toBinary(this);
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
const response = gateway.callSync('wdi/get_firmware_version', request, firmware_version_1.FirmwareVersion.fromBinary);
|
|
112
|
+
return response;
|
|
113
|
+
}
|
|
92
114
|
/**
|
|
93
115
|
* Generic read operation.
|
|
94
116
|
* @param registerId Register address to read from.
|
|
@@ -139,6 +161,52 @@ class WdiAutofocusProvider {
|
|
|
139
161
|
};
|
|
140
162
|
await gateway.callAsync('wdi/write', request);
|
|
141
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Generic read operation.
|
|
166
|
+
* @param registerId Register address to read from.
|
|
167
|
+
* @param [options.count=1] Number of values to read (defaults to 1).
|
|
168
|
+
* @param [options.offset=0] Offset within the register (defaults to 0).
|
|
169
|
+
* @param [options.registerBank='U'] Register bank letter (defaults to U for user bank).
|
|
170
|
+
* @returns Array of floats read from the device.
|
|
171
|
+
*/
|
|
172
|
+
async genericReadFloat(registerId, options = {}) {
|
|
173
|
+
const { count = 1, offset = 0, registerBank = 'U', } = options;
|
|
174
|
+
const request = {
|
|
175
|
+
...requests.WdiGenericFloatRequest.DEFAULT,
|
|
176
|
+
interfaceId: this.providerId,
|
|
177
|
+
registerId: registerId,
|
|
178
|
+
count: count,
|
|
179
|
+
offset: offset,
|
|
180
|
+
registerBank: registerBank,
|
|
181
|
+
toBinary() {
|
|
182
|
+
return requests.WdiGenericFloatRequest.toBinary(this);
|
|
183
|
+
},
|
|
184
|
+
};
|
|
185
|
+
const response = await gateway.callAsync('wdi/read_float', request, requests.DoubleArrayResponse.fromBinary);
|
|
186
|
+
return response.values;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Generic write operation.
|
|
190
|
+
* @param registerId Register address to write to.
|
|
191
|
+
* @param [data=[]] Array of values to write to the register. Empty array is allowed.
|
|
192
|
+
* @param [options.offset=0] Offset within the register (defaults to 0).
|
|
193
|
+
* @param [options.registerBank='U'] Register bank letter (defaults to U for user bank).
|
|
194
|
+
*/
|
|
195
|
+
async genericWriteFloat(registerId, data = [], options = {}) {
|
|
196
|
+
const { offset = 0, registerBank = 'U', } = options;
|
|
197
|
+
const request = {
|
|
198
|
+
...requests.WdiGenericFloatRequest.DEFAULT,
|
|
199
|
+
interfaceId: this.providerId,
|
|
200
|
+
registerId: registerId,
|
|
201
|
+
data: data,
|
|
202
|
+
offset: offset,
|
|
203
|
+
registerBank: registerBank,
|
|
204
|
+
toBinary() {
|
|
205
|
+
return requests.WdiGenericFloatRequest.toBinary(this);
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
await gateway.callAsync('wdi/write_float', request);
|
|
209
|
+
}
|
|
142
210
|
/**
|
|
143
211
|
* Enables the laser.
|
|
144
212
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wdi_autofocus_provider.js","sourceRoot":"","sources":["../../../src/microscopy/wdi_autofocus_provider.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AACtC,sDAAwC;AACxC,4CAAuD;AAGvD;;GAEG;AACH,MAAa,oBAAoB;IAM/B;;OAEG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAGD,YAAY,UAAkB;QAC5B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAA,mCAAuB,EAAC,IAAI,EAAE,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,KAAK,CAAC,OAAO,CACzB,QAAgB,EAChB,OAAe,oBAAoB,CAAC,gBAAgB;QAEpD,MAAM,OAAO,GAAoD;YAC/D,GAAG,QAAQ,CAAC,oBAAoB,CAAC,OAAO;YACxC,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG;YACzC,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,IAAI;YACV,QAAQ;gBACN,OAAO,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,UAAU,EACV,OAAO,EACP,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QACnC,OAAO,IAAI,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,KAAK;QAChB,MAAM,OAAO,GAAqD;YAChE,GAAG,QAAQ,CAAC,qBAAqB,CAAC,OAA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nD,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,SAAS;QACpB,MAAM,OAAO,GAAqD;YAChE,GAAG,QAAQ,CAAC,qBAAqB,CAAC,OAAO;YACzC,WAAW,EAAE,IAAI,CAAC,UAAU;YAC5B,QAAQ;gBACN,OAAO,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACvD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,gBAAgB,EAChB,OAAO,EACP,QAAQ,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QAC5C,OAAO,QAAQ,CAAC,MAAM,CAAC;IACzB,CAAC;IAED;;;OAGG;IACI,QAAQ;QACb,MAAM,OAAO,GAAqD;YAChE,GAAG,QAAQ,CAAC,qBAAqB,CAAC,OAAO;YACzC,WAAW,EAAE,IAAI,CAAC,UAAU;YAC5B,QAAQ;gBACN,OAAO,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACvD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,eAAe,EACf,OAAO,EACP,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QACtC,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;IAED;;;;MAIE;IACK,IAAI;QACT,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9C,CAAC;;AAvOH,oDAwOC;AAvOC;;GAEG;AACoB,qCAAgB,GAAW,EAAE,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { registerForFinalization } from '../finalizer';\nimport { WdiAutofocusProviderStatus } from './wdi_autofocus_provider_status';\n\n/**\n * Class representing access to WDI Autofocus connection.\n */\nexport class WdiAutofocusProvider {\n /**\n * Default port number for TCP connections to WDI autofocus.\n */\n public static readonly DEFAULT_TCP_PORT: number = 27;\n\n /**\n * The ID identifies the autofocus with the underlying library.\n */\n public get providerId(): number {\n return this._providerId;\n }\n private _providerId: number;\n\n constructor(providerId: number) {\n this._providerId = providerId;\n registerForFinalization(this, WdiAutofocusProvider._free.bind(null, providerId));\n }\n\n /**\n * Opens a TCP connection to WDI autofocus.\n * @param hostName Hostname or IP address.\n * @param [port=WdiAutofocusProvider.DEFAULT_TCP_PORT] Optional port number (defaults to 27).\n * @returns An object representing the autofocus connection.\n */\n public static async openTcp(\n hostName: string,\n port: number = WdiAutofocusProvider.DEFAULT_TCP_PORT\n ): Promise<WdiAutofocusProvider> {\n const request: requests.OpenInterfaceRequest & gateway.Message = {\n ...requests.OpenInterfaceRequest.DEFAULT,\n interfaceType: requests.InterfaceType.TCP,\n hostName: hostName,\n port: port,\n toBinary() {\n return requests.OpenInterfaceRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'wdi/open',\n request,\n requests.IntResponse.fromBinary);\n return new WdiAutofocusProvider(response.value);\n }\n\n /**\n * Close the connection.\n */\n public async close(): Promise<void> {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.providerId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('wdi/close', request);\n }\n\n /**\n * Frees the connection.\n * @param providerId The ID of the connection to free.\n */\n private static _free(\n providerId: number\n ): void {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: providerId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('wdi/free', request);\n }\n\n /**\n * Generic read operation.\n * @param registerId Register address to read from.\n * @param size Data size to read. Valid values are (1,2,4). Determines the data type (Byte, Word, DWord).\n * @param [options.count=1] Number of values to read (defaults to 1).\n * @param [options.offset=0] Offset within the register (defaults to 0).\n * @param [options.registerBank='U'] Register bank letter (defaults to U for user bank).\n * @returns Array of integers read from the device.\n */\n public async genericRead(\n registerId: number,\n size: number,\n options: WdiAutofocusProvider.GenericReadOptions = {}\n ): Promise<number[]> {\n const {\n count = 1,\n offset = 0,\n registerBank = 'U',\n } = options;\n const request: requests.WdiGenericRequest & gateway.Message = {\n ...requests.WdiGenericRequest.DEFAULT,\n interfaceId: this.providerId,\n registerId: registerId,\n size: size,\n count: count,\n offset: offset,\n registerBank: registerBank,\n toBinary() {\n return requests.WdiGenericRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntArrayResponse>(\n 'wdi/read',\n request,\n requests.IntArrayResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Generic write operation.\n * @param registerId Register address to write to.\n * @param [size=0] Data size to write. Valid values are (0,1,2,4). Determines the data type (Nil, Byte, Word, DWord).\n * @param [data=[]] Array of values to write to the register. Empty array is allowed.\n * @param [options.offset=0] Offset within the register (defaults to 0).\n * @param [options.registerBank='U'] Register bank letter (defaults to U for user bank).\n */\n public async genericWrite(\n registerId: number,\n size: number = 0,\n data: number[] = [],\n options: WdiAutofocusProvider.GenericWriteOptions = {}\n ): Promise<void> {\n const {\n offset = 0,\n registerBank = 'U',\n } = options;\n const request: requests.WdiGenericRequest & gateway.Message = {\n ...requests.WdiGenericRequest.DEFAULT,\n interfaceId: this.providerId,\n registerId: registerId,\n size: size,\n data: data,\n offset: offset,\n registerBank: registerBank,\n toBinary() {\n return requests.WdiGenericRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('wdi/write', request);\n }\n\n /**\n * Enables the laser.\n */\n public async enableLaser(): Promise<void> {\n const request: requests.WdiGenericRequest & gateway.Message = {\n ...requests.WdiGenericRequest.DEFAULT,\n interfaceId: this.providerId,\n registerId: 1,\n toBinary() {\n return requests.WdiGenericRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('wdi/write', request);\n }\n\n /**\n * Disables the laser.\n */\n public async disableLaser(): Promise<void> {\n const request: requests.WdiGenericRequest & gateway.Message = {\n ...requests.WdiGenericRequest.DEFAULT,\n interfaceId: this.providerId,\n registerId: 2,\n toBinary() {\n return requests.WdiGenericRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('wdi/write', request);\n }\n\n /**\n * Gets the status of the autofocus.\n * @returns The status of the autofocus.\n */\n public async getStatus(): Promise<WdiAutofocusProviderStatus> {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.providerId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.WdiGetStatusResponse>(\n 'wdi/get_status',\n request,\n requests.WdiGetStatusResponse.fromBinary);\n return response.status;\n }\n\n /**\n * Returns a string that represents the autofocus connection.\n * @returns A string that represents the connection.\n */\n public toString(): string {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.providerId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'wdi/to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Releases the native resources of the connection.\n * Should only be called if your environment does not support FinalizationRegistry.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n */\n public free(): void {\n WdiAutofocusProvider._free(this.providerId);\n }\n}\n\nnamespace WdiAutofocusProvider {\n export interface GenericReadOptions {\n /**\n * Number of values to read (defaults to 1).\n */\n count?: number;\n /**\n * Offset within the register (defaults to 0).\n */\n offset?: number;\n /**\n * Register bank letter (defaults to U for user bank).\n */\n registerBank?: string;\n }\n export interface GenericWriteOptions {\n /**\n * Offset within the register (defaults to 0).\n */\n offset?: number;\n /**\n * Register bank letter (defaults to U for user bank).\n */\n registerBank?: string;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"wdi_autofocus_provider.js","sourceRoot":"","sources":["../../../src/microscopy/wdi_autofocus_provider.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AACtC,sDAAwC;AACxC,4CAAuD;AACvD,0DAAsD;AAGtD;;GAEG;AACH,MAAa,oBAAoB;IAM/B;;OAEG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAGD;;OAEG;IACH,IAAW,eAAe;QACxB,OAAO,IAAI,CAAC,wBAAwB,EAAE,CAAC;IACzC,CAAC;IAED,YAAY,UAAkB;QAC5B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAA,mCAAuB,EAAC,IAAI,EAAE,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,KAAK,CAAC,OAAO,CACzB,QAAgB,EAChB,OAAe,oBAAoB,CAAC,gBAAgB;QAEpD,MAAM,OAAO,GAAoD;YAC/D,GAAG,QAAQ,CAAC,oBAAoB,CAAC,OAAO;YACxC,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG;YACzC,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,IAAI;YACV,QAAQ;gBACN,OAAO,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,UAAU,EACV,OAAO,EACP,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QACnC,OA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;YAC5B,QAAQ;gBACN,OAAO,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACvD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,eAAe,EACf,OAAO,EACP,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QACtC,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;IAED;;;;MAIE;IACK,IAAI;QACT,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9C,CAAC;;AArUH,oDAsUC;AArUC;;GAEG;AACoB,qCAAgB,GAAW,EAAE,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { registerForFinalization } from '../finalizer';\nimport { FirmwareVersion } from '../firmware_version';\nimport { WdiAutofocusProviderStatus } from './wdi_autofocus_provider_status';\n\n/**\n * Class representing access to WDI Autofocus connection.\n */\nexport class WdiAutofocusProvider {\n /**\n * Default port number for TCP connections to WDI autofocus.\n */\n public static readonly DEFAULT_TCP_PORT: number = 27;\n\n /**\n * The ID identifies the autofocus with the underlying library.\n */\n public get providerId(): number {\n return this._providerId;\n }\n private _providerId: number;\n\n /**\n * The firmware version of the connected autofocus.\n */\n public get firmwareVersion(): FirmwareVersion {\n return this._retrieveFirmwareVersion();\n }\n\n constructor(providerId: number) {\n this._providerId = providerId;\n registerForFinalization(this, WdiAutofocusProvider._free.bind(null, providerId));\n }\n\n /**\n * Opens a TCP connection to WDI autofocus.\n * @param hostName Hostname or IP address.\n * @param [port=WdiAutofocusProvider.DEFAULT_TCP_PORT] Optional port number (defaults to 27).\n * @returns An object representing the autofocus connection.\n */\n public static async openTcp(\n hostName: string,\n port: number = WdiAutofocusProvider.DEFAULT_TCP_PORT\n ): Promise<WdiAutofocusProvider> {\n const request: requests.OpenInterfaceRequest & gateway.Message = {\n ...requests.OpenInterfaceRequest.DEFAULT,\n interfaceType: requests.InterfaceType.TCP,\n hostName: hostName,\n port: port,\n toBinary() {\n return requests.OpenInterfaceRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'wdi/open',\n request,\n requests.IntResponse.fromBinary);\n return new WdiAutofocusProvider(response.value);\n }\n\n /**\n * Close the connection.\n */\n public async close(): Promise<void> {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.providerId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('wdi/close', request);\n }\n\n /**\n * Frees the connection.\n * @param providerId The ID of the connection to free.\n */\n private static _free(\n providerId: number\n ): void {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: providerId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('wdi/free', request);\n }\n\n /**\n * Returns FW version.\n * @returns Firmware version.\n */\n private _retrieveFirmwareVersion(): FirmwareVersion {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.providerId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<FirmwareVersion>(\n 'wdi/get_firmware_version',\n request,\n FirmwareVersion.fromBinary);\n return response;\n }\n\n /**\n * Generic read operation.\n * @param registerId Register address to read from.\n * @param size Data size to read. Valid values are (1,2,4). Determines the data type (Byte, Word, DWord).\n * @param [options.count=1] Number of values to read (defaults to 1).\n * @param [options.offset=0] Offset within the register (defaults to 0).\n * @param [options.registerBank='U'] Register bank letter (defaults to U for user bank).\n * @returns Array of integers read from the device.\n */\n public async genericRead(\n registerId: number,\n size: number,\n options: WdiAutofocusProvider.GenericReadOptions = {}\n ): Promise<number[]> {\n const {\n count = 1,\n offset = 0,\n registerBank = 'U',\n } = options;\n const request: requests.WdiGenericRequest & gateway.Message = {\n ...requests.WdiGenericRequest.DEFAULT,\n interfaceId: this.providerId,\n registerId: registerId,\n size: size,\n count: count,\n offset: offset,\n registerBank: registerBank,\n toBinary() {\n return requests.WdiGenericRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntArrayResponse>(\n 'wdi/read',\n request,\n requests.IntArrayResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Generic write operation.\n * @param registerId Register address to write to.\n * @param [size=0] Data size to write. Valid values are (0,1,2,4). Determines the data type (Nil, Byte, Word, DWord).\n * @param [data=[]] Array of values to write to the register. Empty array is allowed.\n * @param [options.offset=0] Offset within the register (defaults to 0).\n * @param [options.registerBank='U'] Register bank letter (defaults to U for user bank).\n */\n public async genericWrite(\n registerId: number,\n size: number = 0,\n data: number[] = [],\n options: WdiAutofocusProvider.GenericWriteOptions = {}\n ): Promise<void> {\n const {\n offset = 0,\n registerBank = 'U',\n } = options;\n const request: requests.WdiGenericRequest & gateway.Message = {\n ...requests.WdiGenericRequest.DEFAULT,\n interfaceId: this.providerId,\n registerId: registerId,\n size: size,\n data: data,\n offset: offset,\n registerBank: registerBank,\n toBinary() {\n return requests.WdiGenericRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('wdi/write', request);\n }\n\n /**\n * Generic read operation.\n * @param registerId Register address to read from.\n * @param [options.count=1] Number of values to read (defaults to 1).\n * @param [options.offset=0] Offset within the register (defaults to 0).\n * @param [options.registerBank='U'] Register bank letter (defaults to U for user bank).\n * @returns Array of floats read from the device.\n */\n public async genericReadFloat(\n registerId: number,\n options: WdiAutofocusProvider.GenericReadFloatOptions = {}\n ): Promise<number[]> {\n const {\n count = 1,\n offset = 0,\n registerBank = 'U',\n } = options;\n const request: requests.WdiGenericFloatRequest & gateway.Message = {\n ...requests.WdiGenericFloatRequest.DEFAULT,\n interfaceId: this.providerId,\n registerId: registerId,\n count: count,\n offset: offset,\n registerBank: registerBank,\n toBinary() {\n return requests.WdiGenericFloatRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleArrayResponse>(\n 'wdi/read_float',\n request,\n requests.DoubleArrayResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Generic write operation.\n * @param registerId Register address to write to.\n * @param [data=[]] Array of values to write to the register. Empty array is allowed.\n * @param [options.offset=0] Offset within the register (defaults to 0).\n * @param [options.registerBank='U'] Register bank letter (defaults to U for user bank).\n */\n public async genericWriteFloat(\n registerId: number,\n data: number[] = [],\n options: WdiAutofocusProvider.GenericWriteFloatOptions = {}\n ): Promise<void> {\n const {\n offset = 0,\n registerBank = 'U',\n } = options;\n const request: requests.WdiGenericFloatRequest & gateway.Message = {\n ...requests.WdiGenericFloatRequest.DEFAULT,\n interfaceId: this.providerId,\n registerId: registerId,\n data: data,\n offset: offset,\n registerBank: registerBank,\n toBinary() {\n return requests.WdiGenericFloatRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('wdi/write_float', request);\n }\n\n /**\n * Enables the laser.\n */\n public async enableLaser(): Promise<void> {\n const request: requests.WdiGenericRequest & gateway.Message = {\n ...requests.WdiGenericRequest.DEFAULT,\n interfaceId: this.providerId,\n registerId: 1,\n toBinary() {\n return requests.WdiGenericRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('wdi/write', request);\n }\n\n /**\n * Disables the laser.\n */\n public async disableLaser(): Promise<void> {\n const request: requests.WdiGenericRequest & gateway.Message = {\n ...requests.WdiGenericRequest.DEFAULT,\n interfaceId: this.providerId,\n registerId: 2,\n toBinary() {\n return requests.WdiGenericRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('wdi/write', request);\n }\n\n /**\n * Gets the status of the autofocus.\n * @returns The status of the autofocus.\n */\n public async getStatus(): Promise<WdiAutofocusProviderStatus> {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.providerId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.WdiGetStatusResponse>(\n 'wdi/get_status',\n request,\n requests.WdiGetStatusResponse.fromBinary);\n return response.status;\n }\n\n /**\n * Returns a string that represents the autofocus connection.\n * @returns A string that represents the connection.\n */\n public toString(): string {\n const request: requests.InterfaceEmptyRequest & gateway.Message = {\n ...requests.InterfaceEmptyRequest.DEFAULT,\n interfaceId: this.providerId,\n toBinary() {\n return requests.InterfaceEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'wdi/to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Releases the native resources of the connection.\n * Should only be called if your environment does not support FinalizationRegistry.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n */\n public free(): void {\n WdiAutofocusProvider._free(this.providerId);\n }\n}\n\nnamespace WdiAutofocusProvider {\n export interface GenericReadOptions {\n /**\n * Number of values to read (defaults to 1).\n */\n count?: number;\n /**\n * Offset within the register (defaults to 0).\n */\n offset?: number;\n /**\n * Register bank letter (defaults to U for user bank).\n */\n registerBank?: string;\n }\n export interface GenericWriteOptions {\n /**\n * Offset within the register (defaults to 0).\n */\n offset?: number;\n /**\n * Register bank letter (defaults to U for user bank).\n */\n registerBank?: string;\n }\n export interface GenericReadFloatOptions {\n /**\n * Number of values to read (defaults to 1).\n */\n count?: number;\n /**\n * Offset within the register (defaults to 0).\n */\n offset?: number;\n /**\n * Register bank letter (defaults to U for user bank).\n */\n registerBank?: string;\n }\n export interface GenericWriteFloatOptions {\n /**\n * Offset within the register (defaults to 0).\n */\n offset?: number;\n /**\n * Register bank letter (defaults to U for user bank).\n */\n registerBank?: string;\n }\n}\n"]}
|
|
@@ -209,6 +209,7 @@ export * from './string_array_response';
|
|
|
209
209
|
export * from './string_response';
|
|
210
210
|
export * from './test_event';
|
|
211
211
|
export * from './test_request';
|
|
212
|
+
export * from './test_request_complex';
|
|
212
213
|
export * from './test_response';
|
|
213
214
|
export * from './test_response_long';
|
|
214
215
|
export * from './toggle_device_db_store_request';
|
|
@@ -249,6 +250,7 @@ export * from './unknown_binary_response_event_wrapper';
|
|
|
249
250
|
export * from './unknown_response_event_wrapper';
|
|
250
251
|
export * from './wait_to_clear_warnings_request';
|
|
251
252
|
export * from './wait_to_respond_request';
|
|
253
|
+
export * from './wdi_generic_float_request';
|
|
252
254
|
export * from './wdi_generic_request';
|
|
253
255
|
export * from './wdi_get_status_response';
|
|
254
256
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/requests/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,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ACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC"}
|
|
@@ -226,6 +226,7 @@ __exportStar(require("./string_array_response"), exports);
|
|
|
226
226
|
__exportStar(require("./string_response"), exports);
|
|
227
227
|
__exportStar(require("./test_event"), exports);
|
|
228
228
|
__exportStar(require("./test_request"), exports);
|
|
229
|
+
__exportStar(require("./test_request_complex"), exports);
|
|
229
230
|
__exportStar(require("./test_response"), exports);
|
|
230
231
|
__exportStar(require("./test_response_long"), exports);
|
|
231
232
|
__exportStar(require("./toggle_device_db_store_request"), exports);
|
|
@@ -266,6 +267,7 @@ __exportStar(require("./unknown_binary_response_event_wrapper"), exports);
|
|
|
266
267
|
__exportStar(require("./unknown_response_event_wrapper"), exports);
|
|
267
268
|
__exportStar(require("./wait_to_clear_warnings_request"), exports);
|
|
268
269
|
__exportStar(require("./wait_to_respond_request"), exports);
|
|
270
|
+
__exportStar(require("./wdi_generic_float_request"), exports);
|
|
269
271
|
__exportStar(require("./wdi_generic_request"), exports);
|
|
270
272
|
__exportStar(require("./wdi_get_status_response"), exports);
|
|
271
273
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,wDAAsC;AACtC,4DAA0C;AAC1C,2EAAyD;AACzD,4EAA0D;AAC1D,kEAAgD;AAChD,2EAAyD;AACzD,uDAAqC;AACrC,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,mDAAiC;AACjC,2DAAyC;AACzC,iEAA+C;AAC/C,kEAAgD;AAChD,sEAAoD;AACpD,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,+DAA6C;AAC7C,sEAAoD;AACpD,8DAA4C;AAC5C,oEAAkD;AAClD,kDAAgC;AAChC,gEAA8C;AAC9C,0DAAwC;AACxC,+CAA6B;AAC7B,0DAAwC;AACxC,0DAAwC;AACxC,mEAAiD;AACjD,mEAAiD;AACjD,kEAAgD;AAChD,mEAAiD;AACjD,+EAA6D;AAC7D,0EAAwD;AACxD,mEAAiD;AACjD,0DAAwC;AACxC,2DAAyC;AACzC,yDAAuC;AACvC,qEAAmD;AACnD,sEAAoD;AACpD,sEAAoD;AACpD,uEAAqD;AACrD,iEAA+C;AAC/C,kEAAgD;AAChD,+DAA6C;AAC7C,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,wDAAsC;AACtC,4DAA0C;AAC1C,wDAAsC;AACtC,4DAA0C;AAC1C,qEAAmD;AACnD,0DAAwC;AACxC,2DAAyC;AACzC,2DAAyC;AACzC,0EAAwD;AACxD,mFAAiE;AACjE,2EAAyD;AACzD,oFAAkE;AAClE,qEAAmD;AACnD,8EAA4D;AAC5D,sEAAoD;AACpD,+EAA6D;AAC7D,sEAAoD;AACpD,oEAAkD;AAClD,mEAAiD;AACjD,+DAA6C;AAC7C,mEAAiD;AACjD,oEAAkD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AC5C,sEAAoD;AACpD,4DAA0C;AAC1C,gEAA8C;AAC9C,2EAAyD;AACzD,8DAA4C;AAC5C,mDAAiC;AACjC,8DAA4C;AAC5C,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,0EAAwD;AACxD,mEAAiD;AACjD,mEAAiD;AACjD,4DAA0C;AAC1C,wDAAsC;AACtC,4DAA0C","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './alert_event_wrapper';\nexport * from './autofocus_focus_request';\nexport * from './autofocus_get_objective_params_request';\nexport * from './autofocus_get_objective_params_response';\nexport * from './autofocus_get_status_response';\nexport * from './autofocus_set_objective_params_request';\nexport * from './axes_empty_request';\nexport * from './axes_get_setting_request';\nexport * from './axes_move_request';\nexport * from './axis_empty_request';\nexport * from './axis_move_type';\nexport * from './axis_to_string_request';\nexport * from './binary_device_detect_request';\nexport * from './binary_device_detect_response';\nexport * from './binary_device_get_setting_request';\nexport * from './binary_device_home_request';\nexport * from './binary_device_move_request';\nexport * from './binary_device_set_setting_request';\nexport * from './binary_device_stop_request';\nexport * from './binary_generic_with_units_request';\nexport * from './binary_message_collection';\nexport * from './binary_reply_only_event_wrapper';\nexport * from './bool_response';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_request';\nexport * from './channel_on';\nexport * from './channel_set_intensity';\nexport * from './check_version_request';\nexport * from './custom_interface_close_request';\nexport * from './custom_interface_open_response';\nexport * from './custom_interface_read_request';\nexport * from './custom_interface_write_request';\nexport * from './device_cancel_all_outputs_schedule_request';\nexport * from './device_cancel_output_schedule_request';\nexport * from './device_convert_setting_request';\nexport * from './device_detect_request';\nexport * from './device_detect_response';\nexport * from './device_empty_request';\nexport * from './device_get_all_analog_io_request';\nexport * from './device_get_all_analog_io_response';\nexport * from './device_get_all_digital_io_request';\nexport * from './device_get_all_digital_io_response';\nexport * from './device_get_analog_io_request';\nexport * from './device_get_digital_io_request';\nexport * from './device_get_setting_request';\nexport * from './device_get_storage_request';\nexport * from './device_get_warnings_request';\nexport * from './device_get_warnings_response';\nexport * from './device_home_request';\nexport * from './device_identify_request';\nexport * from './device_move_request';\nexport * from './device_move_sin_request';\nexport * from './device_multi_get_setting_request';\nexport * from './device_on_all_request';\nexport * from './device_on_all_response';\nexport * from './device_restore_request';\nexport * from './device_set_all_analog_outputs_request';\nexport * from './device_set_all_analog_outputs_schedule_request';\nexport * from './device_set_all_digital_outputs_request';\nexport * from './device_set_all_digital_outputs_schedule_request';\nexport * from './device_set_analog_output_request';\nexport * from './device_set_analog_output_schedule_request';\nexport * from './device_set_digital_output_request';\nexport * from './device_set_digital_output_schedule_request';\nexport * from './device_set_lowpass_filter_request';\nexport * from './device_set_setting_bool_request';\nexport * from './device_set_setting_int_request';\nexport * from './device_set_setting_request';\nexport * from './device_set_setting_str_request';\nexport * from './device_set_storage_bool_request';\nexport * from './device_set_storage_number_request';\nexport * from './device_set_storage_request';\nexport * from './device_set_unit_conversions_request';\nexport * from './device_stop_request';\nexport * from './device_storage_list_keys_request';\nexport * from './device_storage_request';\nexport * from './device_type';\nexport * from './device_wait_until_idle_request';\nexport * from './disconnected_event';\nexport * from './double_array_response';\nexport * from './double_response';\nexport * from './driver_enable_request';\nexport * from './empty_autofocus_request';\nexport * from './empty_request';\nexport * from './errors';\nexport * from './find_device_request';\nexport * from './find_device_response';\nexport * from './forget_devices_request';\nexport * from './gateway_event';\nexport * from './gateway_request';\nexport * from './gateway_response';\nexport * from './generic_binary_request';\nexport * from './generic_command_request';\nexport * from './generic_command_response_collection';\nexport * from './get_all_io_port_labels_response';\nexport * from './get_axis_setting_results';\nexport * from './get_io_port_label_request';\nexport * from './get_setting_results';\nexport * from './get_simple_tuning_param_definition_response';\nexport * from './int_64_response';\nexport * from './int_array_response';\nexport * from './int_request';\nexport * from './int_response';\nexport * from './interface_empty_request';\nexport * from './interface_type';\nexport * from './load_paramset';\nexport * from './lockstep_disable_request';\nexport * from './lockstep_empty_request';\nexport * from './lockstep_enable_request';\nexport * from './lockstep_get_axis_numbers_response';\nexport * from './lockstep_get_request';\nexport * from './lockstep_home_request';\nexport * from './lockstep_move_request';\nexport * from './lockstep_move_sin_request';\nexport * from './lockstep_set_request';\nexport * from './lockstep_stop_request';\nexport * from './lockstep_wait_until_idle_request';\nexport * from './microscope_config_response';\nexport * from './microscope_empty_request';\nexport * from './microscope_find_request';\nexport * from './microscope_init_request';\nexport * from './microscope_trigger_camera_request';\nexport * from './objective_changer_change_request';\nexport * from './objective_changer_create_response';\nexport * from './objective_changer_get_current_response';\nexport * from './objective_changer_request';\nexport * from './objective_changer_set_request';\nexport * from './open_binary_interface_request';\nexport * from './open_interface_request';\nexport * from './open_interface_response';\nexport * from './oscilloscope_add_io_channel_request';\nexport * from './oscilloscope_add_setting_channel_request';\nexport * from './oscilloscope_data_get_request';\nexport * from './oscilloscope_data_get_sample_time_request';\nexport * from './oscilloscope_data_get_samples_response';\nexport * from './oscilloscope_data_identifier';\nexport * from './oscilloscope_read_response';\nexport * from './oscilloscope_request';\nexport * from './oscilloscope_start_request';\nexport * from './prepare_command_request';\nexport * from './process_on';\nexport * from './pvt_buffer_get_sequence_data_request';\nexport * from './pvt_csv_request';\nexport * from './pvt_generate_positions_request';\nexport * from './pvt_generate_velocities_and_times_request';\nexport * from './pvt_generate_velocities_request';\nexport * from './pvt_load_csv_request';\nexport * from './pvt_point_request';\nexport * from './pvt_points_request';\nexport * from './pvt_save_csv_request';\nexport * from './pvt_submit_sequence_data_request';\nexport * from './renumber_request';\nexport * from './response_type';\nexport * from './servo_tuning_paramset_response';\nexport * from './servo_tuning_request';\nexport * from './set_device_db_layered_sources_request';\nexport * from './set_device_db_source_request';\nexport * from './set_interface_checksum_enabled_request';\nexport * from './set_interface_timeout_request';\nexport * from './set_internal_mode_request';\nexport * from './set_io_port_label_request';\nexport * from './set_log_output_request';\nexport * from './set_process_controller_source';\nexport * from './set_servo_tuning_pid_request';\nexport * from './set_servo_tuning_request';\nexport * from './set_simple_tuning';\nexport * from './set_state_request';\nexport * from './stream_arc_request';\nexport * from './stream_buffer_erase_request';\nexport * from './stream_buffer_get_content_request';\nexport * from './stream_buffer_get_content_response';\nexport * from './stream_buffer_list';\nexport * from './stream_call_request';\nexport * from './stream_cancel_all_outputs_schedule_request';\nexport * from './stream_cancel_output_schedule_request';\nexport * from './stream_circle_request';\nexport * from './stream_empty_request';\nexport * from './stream_generic_command_batch_request';\nexport * from './stream_generic_command_request';\nexport * from './stream_get_axes_response';\nexport * from './stream_get_max_centripetal_acceleration_request';\nexport * from './stream_get_max_speed_request';\nexport * from './stream_get_max_tangential_acceleration_request';\nexport * from './stream_line_request';\nexport * from './stream_mode_response';\nexport * from './stream_segment_type';\nexport * from './stream_set_all_analog_outputs_request';\nexport * from './stream_set_all_analog_outputs_schedule_request';\nexport * from './stream_set_all_digital_outputs_request';\nexport * from './stream_set_all_digital_outputs_schedule_request';\nexport * from './stream_set_analog_output_request';\nexport * from './stream_set_analog_output_schedule_request';\nexport * from './stream_set_digital_output_request';\nexport * from './stream_set_digital_output_schedule_request';\nexport * from './stream_set_hold_request';\nexport * from './stream_set_max_centripetal_acceleration_request';\nexport * from './stream_set_max_speed_request';\nexport * from './stream_set_max_tangential_acceleration_request';\nexport * from './stream_setup_live_composite_request';\nexport * from './stream_setup_live_request';\nexport * from './stream_setup_store_arbitrary_axes_request';\nexport * from './stream_setup_store_composite_request';\nexport * from './stream_setup_store_request';\nexport * from './stream_wait_analog_input_request';\nexport * from './stream_wait_digital_input_request';\nexport * from './stream_wait_request';\nexport * from './stream_wait_until_idle_request';\nexport * from './string_array_response';\nexport * from './string_response';\nexport * from './test_event';\nexport * from './test_request';\nexport * from './test_response';\nexport * from './test_response_long';\nexport * from './toggle_device_db_store_request';\nexport * from './tools_list_serial_ports_response';\nexport * from './translator_create_from_device_request';\nexport * from './translator_create_live_request';\nexport * from './translator_create_request';\nexport * from './translator_create_response';\nexport * from './translator_empty_request';\nexport * from './translator_flush_live_request';\nexport * from './translator_flush_response';\nexport * from './translator_get_axis_offset_request';\nexport * from './translator_get_axis_position_request';\nexport * from './translator_set_axis_position_request';\nexport * from './translator_set_feed_rate_override_request';\nexport * from './translator_set_traverse_rate_request';\nexport * from './translator_translate_request';\nexport * from './trigger_clear_action_request';\nexport * from './trigger_empty_request';\nexport * from './trigger_enable_request';\nexport * from './trigger_enabled_states';\nexport * from './trigger_fire_at_interval_request';\nexport * from './trigger_fire_when_distance_travelled_request';\nexport * from './trigger_fire_when_io_request';\nexport * from './trigger_fire_when_request';\nexport * from './trigger_fire_when_setting_request';\nexport * from './trigger_on_fire_request';\nexport * from './trigger_on_fire_set_request';\nexport * from './trigger_on_fire_set_to_setting_request';\nexport * from './trigger_set_label_request';\nexport * from './trigger_states';\nexport * from './unit_convert_unit_request';\nexport * from './unit_get_enum_request';\nexport * from './unit_get_enum_response';\nexport * from './unit_get_symbol_request';\nexport * from './unit_get_symbol_response';\nexport * from './unknown_binary_response_event_wrapper';\nexport * from './unknown_response_event_wrapper';\nexport * from './wait_to_clear_warnings_request';\nexport * from './wait_to_respond_request';\nexport * from './wdi_generic_request';\nexport * from './wdi_get_status_response';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,wDAAsC;AACtC,4DAA0C;AAC1C,2EAAyD;AACzD,4EAA0D;AAC1D,kEAAgD;AAChD,2EAAyD;AACzD,uDAAqC;AACrC,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,mDAAiC;AACjC,2DAAyC;AACzC,iEAA+C;AAC/C,kEAAgD;AAChD,sEAAoD;AACpD,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,+DAA6C;AAC7C,sEAAoD;AACpD,8DAA4C;AAC5C,oEAAkD;AAClD,kDAAgC;AAChC,gEAA8C;AAC9C,0DAAwC;AACxC,+CAA6B;AAC7B,0DAAwC;AACxC,0DAAwC;AACxC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;AAC1C,oFAAkE;AAClE,iEAA+C;AAC/C,mFAAiE;AACjE,wEAAsD;AACtD,8DAA4C;AAC5C,8EAA4D;AAC5D,yEAAuD;AACvD,+DAA6C;AAC7C,qEAAmD;AACnD,sEAAoD;AACpD,wDAAsC;AACtC,mEAAiD;AACjD,0DAAwC;AACxC,oDAAkC;AAClC,+CAA6B;AAC7B,iDAA+B;AAC/B,yDAAuC;AACvC,kDAAgC;AAChC,uDAAqC;AACrC,mEAAiD;AACjD,qEAAmD;AACnD,0EAAwD;AACxD,mEAAiD;AACjD,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,kEAAgD;AAChD,8DAA4C;AAC5C,uEAAqD;AACrD,yEAAuD;AACvD,yEAAuD;AACvD,8EAA4D;AAC5D,yEAAuD;AACvD,iEAA+C;AAC/C,iEAA+C;AAC/C,0DAAwC;AACxC,2DAAyC;AACzC,2DAAyC;AACzC,qEAAmD;AACnD,iFAA+D;AAC/D,iEAA+C;AAC/C,8DAA4C;AAC5C,sEAAoD;AACpD,4DAA0C;AAC1C,gEAA8C;AAC9C,2EAAyD;AACzD,8DAA4C;AAC5C,mDAAiC;AACjC,8DAA4C;AAC5C,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,0EAAwD;AACxD,mEAAiD;AACjD,mEAAiD;AACjD,4DAA0C;AAC1C,8DAA4C;AAC5C,wDAAsC;AACtC,4DAA0C","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './alert_event_wrapper';\nexport * from './autofocus_focus_request';\nexport * from './autofocus_get_objective_params_request';\nexport * from './autofocus_get_objective_params_response';\nexport * from './autofocus_get_status_response';\nexport * from './autofocus_set_objective_params_request';\nexport * from './axes_empty_request';\nexport * from './axes_get_setting_request';\nexport * from './axes_move_request';\nexport * from './axis_empty_request';\nexport * from './axis_move_type';\nexport * from './axis_to_string_request';\nexport * from './binary_device_detect_request';\nexport * from './binary_device_detect_response';\nexport * from './binary_device_get_setting_request';\nexport * from './binary_device_home_request';\nexport * from './binary_device_move_request';\nexport * from './binary_device_set_setting_request';\nexport * from './binary_device_stop_request';\nexport * from './binary_generic_with_units_request';\nexport * from './binary_message_collection';\nexport * from './binary_reply_only_event_wrapper';\nexport * from './bool_response';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_request';\nexport * from './channel_on';\nexport * from './channel_set_intensity';\nexport * from './check_version_request';\nexport * from './custom_interface_close_request';\nexport * from './custom_interface_open_response';\nexport * from './custom_interface_read_request';\nexport * from './custom_interface_write_request';\nexport * from './device_cancel_all_outputs_schedule_request';\nexport * from './device_cancel_output_schedule_request';\nexport * from './device_convert_setting_request';\nexport * from './device_detect_request';\nexport * from './device_detect_response';\nexport * from './device_empty_request';\nexport * from './device_get_all_analog_io_request';\nexport * from './device_get_all_analog_io_response';\nexport * from './device_get_all_digital_io_request';\nexport * from './device_get_all_digital_io_response';\nexport * from './device_get_analog_io_request';\nexport * from './device_get_digital_io_request';\nexport * from './device_get_setting_request';\nexport * from './device_get_storage_request';\nexport * from './device_get_warnings_request';\nexport * from './device_get_warnings_response';\nexport * from './device_home_request';\nexport * from './device_identify_request';\nexport * from './device_move_request';\nexport * from './device_move_sin_request';\nexport * from './device_multi_get_setting_request';\nexport * from './device_on_all_request';\nexport * from './device_on_all_response';\nexport * from './device_restore_request';\nexport * from './device_set_all_analog_outputs_request';\nexport * from './device_set_all_analog_outputs_schedule_request';\nexport * from './device_set_all_digital_outputs_request';\nexport * from './device_set_all_digital_outputs_schedule_request';\nexport * from './device_set_analog_output_request';\nexport * from './device_set_analog_output_schedule_request';\nexport * from './device_set_digital_output_request';\nexport * from './device_set_digital_output_schedule_request';\nexport * from './device_set_lowpass_filter_request';\nexport * from './device_set_setting_bool_request';\nexport * from './device_set_setting_int_request';\nexport * from './device_set_setting_request';\nexport * from './device_set_setting_str_request';\nexport * from './device_set_storage_bool_request';\nexport * from './device_set_storage_number_request';\nexport * from './device_set_storage_request';\nexport * from './device_set_unit_conversions_request';\nexport * from './device_stop_request';\nexport * from './device_storage_list_keys_request';\nexport * from './device_storage_request';\nexport * from './device_type';\nexport * from './device_wait_until_idle_request';\nexport * from './disconnected_event';\nexport * from './double_array_response';\nexport * from './double_response';\nexport * from './driver_enable_request';\nexport * from './empty_autofocus_request';\nexport * from './empty_request';\nexport * from './errors';\nexport * from './find_device_request';\nexport * from './find_device_response';\nexport * from './forget_devices_request';\nexport * from './gateway_event';\nexport * from './gateway_request';\nexport * from './gateway_response';\nexport * from './generic_binary_request';\nexport * from './generic_command_request';\nexport * from './generic_command_response_collection';\nexport * from './get_all_io_port_labels_response';\nexport * from './get_axis_setting_results';\nexport * from './get_io_port_label_request';\nexport * from './get_setting_results';\nexport * from './get_simple_tuning_param_definition_response';\nexport * from './int_64_response';\nexport * from './int_array_response';\nexport * from './int_request';\nexport * from './int_response';\nexport * from './interface_empty_request';\nexport * from './interface_type';\nexport * from './load_paramset';\nexport * from './lockstep_disable_request';\nexport * from './lockstep_empty_request';\nexport * from './lockstep_enable_request';\nexport * from './lockstep_get_axis_numbers_response';\nexport * from './lockstep_get_request';\nexport * from './lockstep_home_request';\nexport * from './lockstep_move_request';\nexport * from './lockstep_move_sin_request';\nexport * from './lockstep_set_request';\nexport * from './lockstep_stop_request';\nexport * from './lockstep_wait_until_idle_request';\nexport * from './microscope_config_response';\nexport * from './microscope_empty_request';\nexport * from './microscope_find_request';\nexport * from './microscope_init_request';\nexport * from './microscope_trigger_camera_request';\nexport * from './objective_changer_change_request';\nexport * from './objective_changer_create_response';\nexport * from './objective_changer_get_current_response';\nexport * from './objective_changer_request';\nexport * from './objective_changer_set_request';\nexport * from './open_binary_interface_request';\nexport * from './open_interface_request';\nexport * from './open_interface_response';\nexport * from './oscilloscope_add_io_channel_request';\nexport * from './oscilloscope_add_setting_channel_request';\nexport * from './oscilloscope_data_get_request';\nexport * from './oscilloscope_data_get_sample_time_request';\nexport * from './oscilloscope_data_get_samples_response';\nexport * from './oscilloscope_data_identifier';\nexport * from './oscilloscope_read_response';\nexport * from './oscilloscope_request';\nexport * from './oscilloscope_start_request';\nexport * from './prepare_command_request';\nexport * from './process_on';\nexport * from './pvt_buffer_get_sequence_data_request';\nexport * from './pvt_csv_request';\nexport * from './pvt_generate_positions_request';\nexport * from './pvt_generate_velocities_and_times_request';\nexport * from './pvt_generate_velocities_request';\nexport * from './pvt_load_csv_request';\nexport * from './pvt_point_request';\nexport * from './pvt_points_request';\nexport * from './pvt_save_csv_request';\nexport * from './pvt_submit_sequence_data_request';\nexport * from './renumber_request';\nexport * from './response_type';\nexport * from './servo_tuning_paramset_response';\nexport * from './servo_tuning_request';\nexport * from './set_device_db_layered_sources_request';\nexport * from './set_device_db_source_request';\nexport * from './set_interface_checksum_enabled_request';\nexport * from './set_interface_timeout_request';\nexport * from './set_internal_mode_request';\nexport * from './set_io_port_label_request';\nexport * from './set_log_output_request';\nexport * from './set_process_controller_source';\nexport * from './set_servo_tuning_pid_request';\nexport * from './set_servo_tuning_request';\nexport * from './set_simple_tuning';\nexport * from './set_state_request';\nexport * from './stream_arc_request';\nexport * from './stream_buffer_erase_request';\nexport * from './stream_buffer_get_content_request';\nexport * from './stream_buffer_get_content_response';\nexport * from './stream_buffer_list';\nexport * from './stream_call_request';\nexport * from './stream_cancel_all_outputs_schedule_request';\nexport * from './stream_cancel_output_schedule_request';\nexport * from './stream_circle_request';\nexport * from './stream_empty_request';\nexport * from './stream_generic_command_batch_request';\nexport * from './stream_generic_command_request';\nexport * from './stream_get_axes_response';\nexport * from './stream_get_max_centripetal_acceleration_request';\nexport * from './stream_get_max_speed_request';\nexport * from './stream_get_max_tangential_acceleration_request';\nexport * from './stream_line_request';\nexport * from './stream_mode_response';\nexport * from './stream_segment_type';\nexport * from './stream_set_all_analog_outputs_request';\nexport * from './stream_set_all_analog_outputs_schedule_request';\nexport * from './stream_set_all_digital_outputs_request';\nexport * from './stream_set_all_digital_outputs_schedule_request';\nexport * from './stream_set_analog_output_request';\nexport * from './stream_set_analog_output_schedule_request';\nexport * from './stream_set_digital_output_request';\nexport * from './stream_set_digital_output_schedule_request';\nexport * from './stream_set_hold_request';\nexport * from './stream_set_max_centripetal_acceleration_request';\nexport * from './stream_set_max_speed_request';\nexport * from './stream_set_max_tangential_acceleration_request';\nexport * from './stream_setup_live_composite_request';\nexport * from './stream_setup_live_request';\nexport * from './stream_setup_store_arbitrary_axes_request';\nexport * from './stream_setup_store_composite_request';\nexport * from './stream_setup_store_request';\nexport * from './stream_wait_analog_input_request';\nexport * from './stream_wait_digital_input_request';\nexport * from './stream_wait_request';\nexport * from './stream_wait_until_idle_request';\nexport * from './string_array_response';\nexport * from './string_response';\nexport * from './test_event';\nexport * from './test_request';\nexport * from './test_request_complex';\nexport * from './test_response';\nexport * from './test_response_long';\nexport * from './toggle_device_db_store_request';\nexport * from './tools_list_serial_ports_response';\nexport * from './translator_create_from_device_request';\nexport * from './translator_create_live_request';\nexport * from './translator_create_request';\nexport * from './translator_create_response';\nexport * from './translator_empty_request';\nexport * from './translator_flush_live_request';\nexport * from './translator_flush_response';\nexport * from './translator_get_axis_offset_request';\nexport * from './translator_get_axis_position_request';\nexport * from './translator_set_axis_position_request';\nexport * from './translator_set_feed_rate_override_request';\nexport * from './translator_set_traverse_rate_request';\nexport * from './translator_translate_request';\nexport * from './trigger_clear_action_request';\nexport * from './trigger_empty_request';\nexport * from './trigger_enable_request';\nexport * from './trigger_enabled_states';\nexport * from './trigger_fire_at_interval_request';\nexport * from './trigger_fire_when_distance_travelled_request';\nexport * from './trigger_fire_when_io_request';\nexport * from './trigger_fire_when_request';\nexport * from './trigger_fire_when_setting_request';\nexport * from './trigger_on_fire_request';\nexport * from './trigger_on_fire_set_request';\nexport * from './trigger_on_fire_set_to_setting_request';\nexport * from './trigger_set_label_request';\nexport * from './trigger_states';\nexport * from './unit_convert_unit_request';\nexport * from './unit_get_enum_request';\nexport * from './unit_get_enum_response';\nexport * from './unit_get_symbol_request';\nexport * from './unit_get_symbol_response';\nexport * from './unknown_binary_response_event_wrapper';\nexport * from './unknown_response_event_wrapper';\nexport * from './wait_to_clear_warnings_request';\nexport * from './wait_to_respond_request';\nexport * from './wdi_generic_float_request';\nexport * from './wdi_generic_request';\nexport * from './wdi_get_status_response';\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BSON } from 'bson';
|
|
2
|
+
export interface TestRequestComplex {
|
|
3
|
+
intArray: number[];
|
|
4
|
+
}
|
|
5
|
+
export declare const TestRequestComplex: {
|
|
6
|
+
fromBinary: (buffer: Uint8Array) => TestRequestComplex;
|
|
7
|
+
toBinary: (value: TestRequestComplex) => Uint8Array;
|
|
8
|
+
DEFAULT: Readonly<TestRequestComplex>;
|
|
9
|
+
sanitize: (value: TestRequestComplex) => TestRequestComplex;
|
|
10
|
+
convert: (value: BSON.Document) => TestRequestComplex;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=test_request_complex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test_request_complex.d.ts","sourceRoot":"","sources":["../../../src/requests/test_request_complex.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,EAAE,CAAC;CAEpB;AAED,eAAO,MAAM,kBAAkB;yBACR,UAAU,KAAG,kBAAkB;sBAClC,kBAAkB,KAAG,UAAU;;sBAI/B,kBAAkB,KAAG,kBAAkB;qBAOxC,KAAK,QAAQ,KAAG,kBAAkB;CAGpD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestRequestComplex = 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.TestRequestComplex = {
|
|
8
|
+
fromBinary: (buffer) => exports.TestRequestComplex.convert(bson_1.BSON.deserialize(buffer, { useBigInt64: true })),
|
|
9
|
+
toBinary: (value) => bson_1.BSON.serialize(exports.TestRequestComplex.sanitize(value)),
|
|
10
|
+
DEFAULT: Object.freeze({
|
|
11
|
+
intArray: [],
|
|
12
|
+
}),
|
|
13
|
+
sanitize: (value) => {
|
|
14
|
+
if (value == null) {
|
|
15
|
+
throw new TypeError('Expected TestRequestComplex object but got null or undefined.');
|
|
16
|
+
}
|
|
17
|
+
if (typeof value !== 'object') {
|
|
18
|
+
throw new TypeError(`Expected TestRequestComplex object but got ${typeof value}.`);
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
intArray: Array.from(value.intArray ?? [], item => sanitizer_1.sanitizer.sanitizeInt(item, 'items of intArray')),
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
convert: (value) => ({
|
|
25
|
+
intArray: value.intArray,
|
|
26
|
+
})
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=test_request_complex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test_request_complex.js","sourceRoot":"","sources":["../../../src/requests/test_request_complex.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AAOpC,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,QAAQ,EAAE,EAAE;KACb,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,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,qBAAS,CAAC,WAAW,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC;SACrG,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAAsB,EAAE,CAAC,CAAC;QACtD,QAAQ,EAAE,KAAK,CAAC,QAAQ;KACzB,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\n\nexport interface TestRequestComplex {\n intArray: number[];\n\n}\n\nexport const TestRequestComplex = {\n fromBinary: (buffer: Uint8Array): TestRequestComplex => TestRequestComplex.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: TestRequestComplex): Uint8Array => BSON.serialize(TestRequestComplex.sanitize(value)),\n DEFAULT: Object.freeze({\n intArray: [],\n }) as Readonly<TestRequestComplex>,\n sanitize: (value: TestRequestComplex): TestRequestComplex => {\n if (value == null) { throw new TypeError('Expected TestRequestComplex object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected TestRequestComplex object but got ${typeof value}.`) }\n return {\n intArray: Array.from(value.intArray ?? [], item => sanitizer.sanitizeInt(item, 'items of intArray')),\n };\n },\n convert: (value: BSON.Document): TestRequestComplex => ({\n intArray: value.intArray,\n })\n};\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BSON } from 'bson';
|
|
2
|
+
export interface WdiGenericFloatRequest {
|
|
3
|
+
interfaceId: number;
|
|
4
|
+
registerId: number;
|
|
5
|
+
count: number;
|
|
6
|
+
offset: number;
|
|
7
|
+
registerBank: string;
|
|
8
|
+
data: number[];
|
|
9
|
+
}
|
|
10
|
+
export declare const WdiGenericFloatRequest: {
|
|
11
|
+
fromBinary: (buffer: Uint8Array) => WdiGenericFloatRequest;
|
|
12
|
+
toBinary: (value: WdiGenericFloatRequest) => Uint8Array;
|
|
13
|
+
DEFAULT: Readonly<WdiGenericFloatRequest>;
|
|
14
|
+
sanitize: (value: WdiGenericFloatRequest) => WdiGenericFloatRequest;
|
|
15
|
+
convert: (value: BSON.Document) => WdiGenericFloatRequest;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=wdi_generic_float_request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wdi_generic_float_request.d.ts","sourceRoot":"","sources":["../../../src/requests/wdi_generic_float_request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;IAErB,IAAI,EAAE,MAAM,EAAE,CAAC;CAEhB;AAED,eAAO,MAAM,sBAAsB;yBACZ,UAAU,KAAG,sBAAsB;sBACtC,sBAAsB,KAAG,UAAU;;sBASnC,sBAAsB,KAAG,sBAAsB;qBAYhD,KAAK,QAAQ,KAAG,sBAAsB;CAQxD,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WdiGenericFloatRequest = 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.WdiGenericFloatRequest = {
|
|
8
|
+
fromBinary: (buffer) => exports.WdiGenericFloatRequest.convert(bson_1.BSON.deserialize(buffer, { useBigInt64: true })),
|
|
9
|
+
toBinary: (value) => bson_1.BSON.serialize(exports.WdiGenericFloatRequest.sanitize(value)),
|
|
10
|
+
DEFAULT: Object.freeze({
|
|
11
|
+
interfaceId: 0,
|
|
12
|
+
registerId: 0,
|
|
13
|
+
count: 0,
|
|
14
|
+
offset: 0,
|
|
15
|
+
registerBank: '',
|
|
16
|
+
data: [],
|
|
17
|
+
}),
|
|
18
|
+
sanitize: (value) => {
|
|
19
|
+
if (value == null) {
|
|
20
|
+
throw new TypeError('Expected WdiGenericFloatRequest object but got null or undefined.');
|
|
21
|
+
}
|
|
22
|
+
if (typeof value !== 'object') {
|
|
23
|
+
throw new TypeError(`Expected WdiGenericFloatRequest object but got ${typeof value}.`);
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
interfaceId: sanitizer_1.sanitizer.sanitizeInt(value.interfaceId, 'interfaceId'),
|
|
27
|
+
registerId: sanitizer_1.sanitizer.sanitizeInt(value.registerId, 'registerId'),
|
|
28
|
+
count: sanitizer_1.sanitizer.sanitizeInt(value.count, 'count'),
|
|
29
|
+
offset: sanitizer_1.sanitizer.sanitizeInt(value.offset, 'offset'),
|
|
30
|
+
registerBank: sanitizer_1.sanitizer.sanitizeString(value.registerBank, 'registerBank'),
|
|
31
|
+
data: Array.from(value.data ?? [], item => sanitizer_1.sanitizer.sanitizeNumber(item, 'items of data')),
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
convert: (value) => ({
|
|
35
|
+
interfaceId: value.interfaceId,
|
|
36
|
+
registerId: value.registerId,
|
|
37
|
+
count: value.count,
|
|
38
|
+
offset: value.offset,
|
|
39
|
+
registerBank: value.registerBank,
|
|
40
|
+
data: value.data,
|
|
41
|
+
})
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=wdi_generic_float_request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wdi_generic_float_request.js","sourceRoot":"","sources":["../../../src/requests/wdi_generic_float_request.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AAiBpC,QAAA,sBAAsB,GAAG;IACpC,UAAU,EAAE,CAAC,MAAkB,EAA0B,EAAE,CAAC,8BAAsB,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3I,QAAQ,EAAE,CAAC,KAA6B,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,8BAAsB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/G,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,WAAW,EAAE,CAAC;QACd,UAAU,EAAE,CAAC;QACb,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,YAAY,EAAE,EAAE;QAChB,IAAI,EAAE,EAAE;KACT,CAAqC;IACtC,QAAQ,EAAE,CAAC,KAA6B,EAA0B,EAAE;QAClE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,mEAAmE,CAAC,CAAA;QAAC,CAAC;QAC/G,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,kDAAkD,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QACzH,OAAO;YACL,WAAW,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,WAAW,EAAE,aAAa,CAAC;YACpE,UAAU,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,UAAU,EAAE,YAAY,CAAC;YACjE,KAAK,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC;YAClD,MAAM,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC;YACrD,YAAY,EAAE,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,EAAE,cAAc,CAAC;YAC1E,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,qBAAS,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;SAC5F,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAA0B,EAAE,CAAC,CAAC;QAC1D,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\n\nexport interface WdiGenericFloatRequest {\n interfaceId: number;\n\n registerId: number;\n\n count: number;\n\n offset: number;\n\n registerBank: string;\n\n data: number[];\n\n}\n\nexport const WdiGenericFloatRequest = {\n fromBinary: (buffer: Uint8Array): WdiGenericFloatRequest => WdiGenericFloatRequest.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: WdiGenericFloatRequest): Uint8Array => BSON.serialize(WdiGenericFloatRequest.sanitize(value)),\n DEFAULT: Object.freeze({\n interfaceId: 0,\n registerId: 0,\n count: 0,\n offset: 0,\n registerBank: '',\n data: [],\n }) as Readonly<WdiGenericFloatRequest>,\n sanitize: (value: WdiGenericFloatRequest): WdiGenericFloatRequest => {\n if (value == null) { throw new TypeError('Expected WdiGenericFloatRequest object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected WdiGenericFloatRequest object but got ${typeof value}.`) }\n return {\n interfaceId: sanitizer.sanitizeInt(value.interfaceId, 'interfaceId'),\n registerId: sanitizer.sanitizeInt(value.registerId, 'registerId'),\n count: sanitizer.sanitizeInt(value.count, 'count'),\n offset: sanitizer.sanitizeInt(value.offset, 'offset'),\n registerBank: sanitizer.sanitizeString(value.registerBank, 'registerBank'),\n data: Array.from(value.data ?? [], item => sanitizer.sanitizeNumber(item, 'items of data')),\n };\n },\n convert: (value: BSON.Document): WdiGenericFloatRequest => ({\n interfaceId: value.interfaceId,\n registerId: value.registerId,\n count: value.count,\n offset: value.offset,\n registerBank: value.registerBank,\n data: value.data,\n })\n};\n"]}
|