@zaber/motion 7.10.0 → 7.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/LICENSE +9 -38
  2. package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
  3. package/dist/lib/ascii/pvt_sequence.d.ts +2 -1
  4. package/dist/lib/ascii/pvt_sequence.d.ts.map +1 -1
  5. package/dist/lib/ascii/pvt_sequence.js +2 -1
  6. package/dist/lib/ascii/pvt_sequence.js.map +1 -1
  7. package/dist/lib/device_db_source.d.ts +23 -0
  8. package/dist/lib/device_db_source.d.ts.map +1 -0
  9. package/dist/lib/device_db_source.js +32 -0
  10. package/dist/lib/device_db_source.js.map +1 -0
  11. package/dist/lib/exceptions/device_db_failed_exception_data.d.ts +5 -0
  12. package/dist/lib/exceptions/device_db_failed_exception_data.d.ts.map +1 -1
  13. package/dist/lib/exceptions/device_db_failed_exception_data.js +4 -0
  14. package/dist/lib/exceptions/device_db_failed_exception_data.js.map +1 -1
  15. package/dist/lib/exceptions/device_db_inner_error.d.ts +26 -0
  16. package/dist/lib/exceptions/device_db_inner_error.d.ts.map +1 -0
  17. package/dist/lib/exceptions/device_db_inner_error.js +34 -0
  18. package/dist/lib/exceptions/device_db_inner_error.js.map +1 -0
  19. package/dist/lib/exceptions/index.d.ts +1 -0
  20. package/dist/lib/exceptions/index.d.ts.map +1 -1
  21. package/dist/lib/exceptions/index.js +1 -0
  22. package/dist/lib/exceptions/index.js.map +1 -1
  23. package/dist/lib/gateway/wasm-exec.d.ts +1 -1
  24. package/dist/lib/gateway/wasm-exec.d.ts.map +1 -1
  25. package/dist/lib/gateway/wasm-exec.js +1 -1
  26. package/dist/lib/gateway/wasm-exec.js.map +1 -1
  27. package/dist/lib/index.d.ts +1 -0
  28. package/dist/lib/index.d.ts.map +1 -1
  29. package/dist/lib/index.js +1 -0
  30. package/dist/lib/index.js.map +1 -1
  31. package/dist/lib/library.d.ts +7 -0
  32. package/dist/lib/library.d.ts.map +1 -1
  33. package/dist/lib/library.js +16 -1
  34. package/dist/lib/library.js.map +1 -1
  35. package/dist/lib/requests/index.d.ts +1 -0
  36. package/dist/lib/requests/index.d.ts.map +1 -1
  37. package/dist/lib/requests/index.js +1 -0
  38. package/dist/lib/requests/index.js.map +1 -1
  39. package/dist/lib/requests/set_device_db_layered_sources_request.d.ts +13 -0
  40. package/dist/lib/requests/set_device_db_layered_sources_request.d.ts.map +1 -0
  41. package/dist/lib/requests/set_device_db_layered_sources_request.js +28 -0
  42. package/dist/lib/requests/set_device_db_layered_sources_request.js.map +1 -0
  43. package/dist/lib/requests/set_device_db_source_request.d.ts +6 -0
  44. package/dist/lib/requests/set_device_db_source_request.d.ts.map +1 -1
  45. package/dist/lib/requests/set_device_db_source_request.js.map +1 -1
  46. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetDeviceDbLayeredSourcesRequest = void 0;
4
+ /* This file is generated. Do not modify by hand. */
5
+ const bson_1 = require("bson");
6
+ const device_db_source_1 = require("../device_db_source");
7
+ exports.SetDeviceDbLayeredSourcesRequest = {
8
+ fromBinary: (buffer) => exports.SetDeviceDbLayeredSourcesRequest.convert(bson_1.BSON.deserialize(buffer, { useBigInt64: true })),
9
+ toBinary: (value) => bson_1.BSON.serialize(exports.SetDeviceDbLayeredSourcesRequest.sanitize(value)),
10
+ DEFAULT: Object.freeze({
11
+ sources: [],
12
+ }),
13
+ sanitize: (value) => {
14
+ if (value == null) {
15
+ throw new TypeError('Expected SetDeviceDbLayeredSourcesRequest object but got null or undefined.');
16
+ }
17
+ if (typeof value !== 'object') {
18
+ throw new TypeError(`Expected SetDeviceDbLayeredSourcesRequest object but got ${typeof value}.`);
19
+ }
20
+ return {
21
+ sources: Array.from(value.sources ?? [], item => device_db_source_1.DeviceDbSource.sanitize(item)),
22
+ };
23
+ },
24
+ convert: (value) => ({
25
+ sources: value.sources,
26
+ })
27
+ };
28
+ //# sourceMappingURL=set_device_db_layered_sources_request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set_device_db_layered_sources_request.js","sourceRoot":"","sources":["../../../src/requests/set_device_db_layered_sources_request.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,0DAAqD;AAOxC,QAAA,gCAAgC,GAAG;IAC9C,UAAU,EAAE,CAAC,MAAkB,EAAoC,EAAE,CAAC,wCAAgC,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/J,QAAQ,EAAE,CAAC,KAAuC,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,wCAAgC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACnI,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,EAAE;KACZ,CAA+C;IAChD,QAAQ,EAAE,CAAC,KAAuC,EAAoC,EAAE;QACtF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,6EAA6E,CAAC,CAAA;QAAC,CAAC;QACzH,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,4DAA4D,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QACnI,OAAO;YACL,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,iCAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SAChF,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAAoC,EAAE,CAAC,CAAC;QACpE,OAAO,EAAE,KAAK,CAAC,OAAO;KACvB,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { DeviceDbSource } from '../device_db_source';\n\nexport interface SetDeviceDbLayeredSourcesRequest {\n sources: DeviceDbSource[];\n\n}\n\nexport const SetDeviceDbLayeredSourcesRequest = {\n fromBinary: (buffer: Uint8Array): SetDeviceDbLayeredSourcesRequest => SetDeviceDbLayeredSourcesRequest.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: SetDeviceDbLayeredSourcesRequest): Uint8Array => BSON.serialize(SetDeviceDbLayeredSourcesRequest.sanitize(value)),\n DEFAULT: Object.freeze({\n sources: [],\n }) as Readonly<SetDeviceDbLayeredSourcesRequest>,\n sanitize: (value: SetDeviceDbLayeredSourcesRequest): SetDeviceDbLayeredSourcesRequest => {\n if (value == null) { throw new TypeError('Expected SetDeviceDbLayeredSourcesRequest object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected SetDeviceDbLayeredSourcesRequest object but got ${typeof value}.`) }\n return {\n sources: Array.from(value.sources ?? [], item => DeviceDbSource.sanitize(item)),\n };\n },\n convert: (value: BSON.Document): SetDeviceDbLayeredSourcesRequest => ({\n sources: value.sources,\n })\n};\n"]}
@@ -1,7 +1,13 @@
1
1
  import { BSON } from 'bson';
2
2
  import { DeviceDbSourceType } from '../device_db_source_type';
3
3
  export interface SetDeviceDbSourceRequest {
4
+ /**
5
+ * Whether the source is a web service or a local DB file.
6
+ */
4
7
  sourceType: DeviceDbSourceType;
8
+ /**
9
+ * The URL of the web service or path to the local DB file.
10
+ */
5
11
  urlOrFilePath?: (string | null);
6
12
  }
7
13
  export declare const SetDeviceDbSourceRequest: {
@@ -1 +1 @@
1
- {"version":3,"file":"set_device_db_source_request.d.ts","sourceRoot":"","sources":["../../../src/requests/set_device_db_source_request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,kBAAkB,CAAC;IAE/B,aAAa,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAEjC;AAED,eAAO,MAAM,wBAAwB;yBACd,UAAU,KAAG,wBAAwB;sBACxC,wBAAwB,KAAG,UAAU;;sBAKrC,wBAAwB,KAAG,wBAAwB;qBAQpD,KAAK,QAAQ,KAAG,wBAAwB;CAI1D,CAAC"}
1
+ {"version":3,"file":"set_device_db_source_request.d.ts","sourceRoot":"","sources":["../../../src/requests/set_device_db_source_request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,UAAU,EAAE,kBAAkB,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAEjC;AAED,eAAO,MAAM,wBAAwB;yBACd,UAAU,KAAG,wBAAwB;sBACxC,wBAAwB,KAAG,UAAU;;sBAKrC,wBAAwB,KAAG,wBAAwB;qBAQpD,KAAK,QAAQ,KAAG,wBAAwB;CAI1D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"set_device_db_source_request.js","sourceRoot":"","sources":["../../../src/requests/set_device_db_source_request.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AACjD,oEAA8D;AASjD,QAAA,wBAAwB,GAAG;IACtC,UAAU,EAAE,CAAC,MAAkB,EAA4B,EAAE,CAAC,gCAAwB,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/I,QAAQ,EAAE,CAAC,KAA+B,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,gCAAwB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACnH,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,UAAU,EAAE,CAAuB;QACnC,aAAa,EAAE,IAAI;KACpB,CAAuC;IACxC,QAAQ,EAAE,CAAC,KAA+B,EAA4B,EAAE;QACtE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,qEAAqE,CAAC,CAAA;QAAC,CAAC;QACjH,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,oDAAoD,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QAC3H,OAAO;YACL,UAAU,EAAE,qBAAS,CAAC,YAAY,CAAC,KAAK,CAAC,UAAU,EAAE,oBAAoB,EAAE,0CAAkB,EAAE,YAAY,CAAC;YAC5G,aAAa,EAAE,KAAK,CAAC,aAAa,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI;SACnH,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAA4B,EAAE,CAAC,CAAC;QAC5D,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,aAAa,EAAE,KAAK,CAAC,aAAa;KACnC,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\nimport { DeviceDbSourceType } from '../device_db_source_type';\n\nexport interface SetDeviceDbSourceRequest {\n sourceType: DeviceDbSourceType;\n\n urlOrFilePath?: (string | null);\n\n}\n\nexport const SetDeviceDbSourceRequest = {\n fromBinary: (buffer: Uint8Array): SetDeviceDbSourceRequest => SetDeviceDbSourceRequest.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: SetDeviceDbSourceRequest): Uint8Array => BSON.serialize(SetDeviceDbSourceRequest.sanitize(value)),\n DEFAULT: Object.freeze({\n sourceType: 0 as DeviceDbSourceType,\n urlOrFilePath: null,\n }) as Readonly<SetDeviceDbSourceRequest>,\n sanitize: (value: SetDeviceDbSourceRequest): SetDeviceDbSourceRequest => {\n if (value == null) { throw new TypeError('Expected SetDeviceDbSourceRequest object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected SetDeviceDbSourceRequest object but got ${typeof value}.`) }\n return {\n sourceType: sanitizer.sanitizeEnum(value.sourceType, 'DeviceDbSourceType', DeviceDbSourceType, 'sourceType'),\n urlOrFilePath: value.urlOrFilePath != null ? sanitizer.sanitizeString(value.urlOrFilePath, 'urlOrFilePath') : null,\n };\n },\n convert: (value: BSON.Document): SetDeviceDbSourceRequest => ({\n sourceType: value.sourceType,\n urlOrFilePath: value.urlOrFilePath,\n })\n};\n"]}
1
+ {"version":3,"file":"set_device_db_source_request.js","sourceRoot":"","sources":["../../../src/requests/set_device_db_source_request.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AACjD,oEAA8D;AAejD,QAAA,wBAAwB,GAAG;IACtC,UAAU,EAAE,CAAC,MAAkB,EAA4B,EAAE,CAAC,gCAAwB,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/I,QAAQ,EAAE,CAAC,KAA+B,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,gCAAwB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACnH,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,UAAU,EAAE,CAAuB;QACnC,aAAa,EAAE,IAAI;KACpB,CAAuC;IACxC,QAAQ,EAAE,CAAC,KAA+B,EAA4B,EAAE;QACtE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,qEAAqE,CAAC,CAAA;QAAC,CAAC;QACjH,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,oDAAoD,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QAC3H,OAAO;YACL,UAAU,EAAE,qBAAS,CAAC,YAAY,CAAC,KAAK,CAAC,UAAU,EAAE,oBAAoB,EAAE,0CAAkB,EAAE,YAAY,CAAC;YAC5G,aAAa,EAAE,KAAK,CAAC,aAAa,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI;SACnH,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAA4B,EAAE,CAAC,CAAC;QAC5D,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,aAAa,EAAE,KAAK,CAAC,aAAa;KACnC,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\nimport { DeviceDbSourceType } from '../device_db_source_type';\n\nexport interface SetDeviceDbSourceRequest {\n /**\n * Whether the source is a web service or a local DB file.\n */\n sourceType: DeviceDbSourceType;\n\n /**\n * The URL of the web service or path to the local DB file.\n */\n urlOrFilePath?: (string | null);\n\n}\n\nexport const SetDeviceDbSourceRequest = {\n fromBinary: (buffer: Uint8Array): SetDeviceDbSourceRequest => SetDeviceDbSourceRequest.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: SetDeviceDbSourceRequest): Uint8Array => BSON.serialize(SetDeviceDbSourceRequest.sanitize(value)),\n DEFAULT: Object.freeze({\n sourceType: 0 as DeviceDbSourceType,\n urlOrFilePath: null,\n }) as Readonly<SetDeviceDbSourceRequest>,\n sanitize: (value: SetDeviceDbSourceRequest): SetDeviceDbSourceRequest => {\n if (value == null) { throw new TypeError('Expected SetDeviceDbSourceRequest object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected SetDeviceDbSourceRequest object but got ${typeof value}.`) }\n return {\n sourceType: sanitizer.sanitizeEnum(value.sourceType, 'DeviceDbSourceType', DeviceDbSourceType, 'sourceType'),\n urlOrFilePath: value.urlOrFilePath != null ? sanitizer.sanitizeString(value.urlOrFilePath, 'urlOrFilePath') : null,\n };\n },\n convert: (value: BSON.Document): SetDeviceDbSourceRequest => ({\n sourceType: value.sourceType,\n urlOrFilePath: value.urlOrFilePath,\n })\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaber/motion",
3
- "version": "7.10.0",
3
+ "version": "7.11.0",
4
4
  "description": "Zaber Motion Library is a multi-platform library used to operate Zaber devices.",
5
5
  "keywords": [],
6
6
  "main": "dist/lib/index.js",