@synapticon/motion-master-client 2.3.0-beta.0 → 6.0.0-alpha.22

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 (66) hide show
  1. package/LICENSE +21 -0
  2. package/dist/client.d.ts +20 -0
  3. package/dist/client.js +37 -0
  4. package/dist/constants.d.ts +2 -0
  5. package/dist/constants.js +8 -0
  6. package/dist/generated/Api.d.ts +991 -0
  7. package/dist/generated/Api.js +614 -0
  8. package/dist/generated/data-contracts.d.ts +644 -0
  9. package/dist/generated/data-contracts.js +12 -0
  10. package/dist/generated/http-client.d.ts +60 -0
  11. package/dist/generated/http-client.js +171 -0
  12. package/dist/hex.d.ts +2 -0
  13. package/dist/hex.js +20 -0
  14. package/dist/index.d.ts +10 -7
  15. package/dist/index.js +16 -22
  16. package/dist/mmpd.d.ts +54 -0
  17. package/dist/mmpd.js +323 -0
  18. package/dist/sdo.d.ts +15 -0
  19. package/dist/sdo.js +212 -0
  20. package/dist/somanet.d.ts +5 -0
  21. package/dist/somanet.js +15 -0
  22. package/dist/web-socket-connection.d.ts +69 -0
  23. package/dist/web-socket-connection.js +206 -0
  24. package/package.json +29 -35
  25. package/.vscode/launch.json +0 -23
  26. package/README.md +0 -118
  27. package/box.config.json +0 -7
  28. package/dist/index.d.ts.map +0 -1
  29. package/dist/index.js.map +0 -1
  30. package/dist/motion-master-client-web-socket-connection.d.ts +0 -43
  31. package/dist/motion-master-client-web-socket-connection.d.ts.map +0 -1
  32. package/dist/motion-master-client-web-socket-connection.js +0 -91
  33. package/dist/motion-master-client-web-socket-connection.js.map +0 -1
  34. package/dist/motion-master-client.d.ts +0 -105
  35. package/dist/motion-master-client.d.ts.map +0 -1
  36. package/dist/motion-master-client.js +0 -348
  37. package/dist/motion-master-client.js.map +0 -1
  38. package/dist/motion-master-notification-subscribe-data.d.ts +0 -8
  39. package/dist/motion-master-notification-subscribe-data.d.ts.map +0 -1
  40. package/dist/motion-master-notification-subscribe-data.js +0 -3
  41. package/dist/motion-master-notification-subscribe-data.js.map +0 -1
  42. package/dist/motion-master-notification-web-socket-connection.d.ts +0 -56
  43. package/dist/motion-master-notification-web-socket-connection.d.ts.map +0 -1
  44. package/dist/motion-master-notification-web-socket-connection.js +0 -115
  45. package/dist/motion-master-notification-web-socket-connection.js.map +0 -1
  46. package/dist/motion-master-notification.d.ts +0 -31
  47. package/dist/motion-master-notification.d.ts.map +0 -1
  48. package/dist/motion-master-notification.js +0 -44
  49. package/dist/motion-master-notification.js.map +0 -1
  50. package/dist/util.d.ts +0 -16
  51. package/dist/util.d.ts.map +0 -1
  52. package/dist/util.js +0 -24
  53. package/dist/util.js.map +0 -1
  54. package/licenses.format.json +0 -4
  55. package/motion-master-client.config.json +0 -7
  56. package/smm_data_dic.json +0 -1213
  57. package/src/index.ts +0 -7
  58. package/src/motion-master-client-web-socket-connection.ts +0 -104
  59. package/src/motion-master-client.ts +0 -468
  60. package/src/motion-master-notification-subscribe-data.ts +0 -7
  61. package/src/motion-master-notification-web-socket-connection.ts +0 -143
  62. package/src/motion-master-notification.ts +0 -51
  63. package/src/util.ts +0 -22
  64. package/test.sh +0 -122
  65. package/tsconfig.json +0 -63
  66. package/tslint.json +0 -118
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MotionMasterNotification = void 0;
4
- var rxjs_1 = require("rxjs");
5
- var operators_1 = require("rxjs/operators");
6
- var MotionMasterNotification = /** @class */ (function () {
7
- function MotionMasterNotification() {
8
- /**
9
- * Buffered messages by topic.
10
- */
11
- this.input$ = new rxjs_1.Subject();
12
- /**
13
- * Notification messages are system and device events.
14
- */
15
- this.notification$ = this.selectMessagesByTopic('notification').pipe(operators_1.switchMap(function (messages) { return rxjs_1.from(messages); }));
16
- /**
17
- * An observable of system event status messages.
18
- * Motion Master goes through several states until it gets to initialized.
19
- */
20
- this.systemEvent$ = this.notification$.pipe(operators_1.filter(function (message) { return (message.status && 'systemEvent' in message.status) === true; }),
21
- // tslint:disable-next-line: no-non-null-assertion
22
- operators_1.map(function (message) { return message.status.systemEvent; }));
23
- /**
24
- * An observable of device event status messages.
25
- */
26
- this.deviceEvent$ = this.notification$.pipe(operators_1.filter(function (message) { return (message.status && 'deviceEvent' in message.status) === true; }),
27
- // tslint:disable-next-line: no-non-null-assertion
28
- operators_1.map(function (message) { return message.status.deviceEvent; }));
29
- }
30
- /**
31
- * Select messages by topic.
32
- * @param t topic to filter by
33
- * @returns an observable of messages
34
- */
35
- MotionMasterNotification.prototype.selectMessagesByTopic = function (t) {
36
- return this.input$.pipe(operators_1.filter(function (_a) {
37
- var topic = _a.topic;
38
- return topic === t;
39
- }), operators_1.pluck('messages'));
40
- };
41
- return MotionMasterNotification;
42
- }());
43
- exports.MotionMasterNotification = MotionMasterNotification;
44
- //# sourceMappingURL=motion-master-notification.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"motion-master-notification.js","sourceRoot":"","sources":["../src/motion-master-notification.ts"],"names":[],"mappings":";;;AAAA,6BAAqC;AACrC,4CAA+D;AAI/D;IAAA;QAEE;;WAEG;QACM,WAAM,GAAG,IAAI,cAAO,EAAsD,CAAC;QAEpF;;WAEG;QACM,kBAAa,GAAG,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC,IAAI,CACtE,qBAAS,CAAC,UAAC,QAAQ,IAAK,OAAA,WAAI,CAAC,QAAQ,CAAC,EAAd,CAAc,CAAC,CACxC,CAAC;QAEF;;;WAGG;QACM,iBAAY,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAC7C,kBAAM,CAAC,UAAC,OAAO,IAAK,OAAA,CAAC,OAAO,CAAC,MAAM,IAAI,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,EAA5D,CAA4D,CAAC;QACjF,kDAAkD;QAClD,eAAG,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,MAAO,CAAC,WAAY,EAA5B,CAA4B,CAAC,CAC/C,CAAC;QAEF;;WAEG;QACM,iBAAY,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAC7C,kBAAM,CAAC,UAAC,OAAO,IAAK,OAAA,CAAC,OAAO,CAAC,MAAM,IAAI,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,EAA5D,CAA4D,CAAC;QACjF,kDAAkD;QAClD,eAAG,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,MAAO,CAAC,WAAY,EAA5B,CAA4B,CAAC,CAC/C,CAAC;IAcJ,CAAC;IAZC;;;;OAIG;IACH,wDAAqB,GAArB,UAAsB,CAAS;QAC7B,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CACrB,kBAAM,CAAC,UAAC,EAAS;gBAAP,KAAK,WAAA;YAAO,OAAA,KAAK,KAAK,CAAC;QAAX,CAAW,CAAC,EAClC,iBAAK,CAAC,UAAU,CAAC,CAClB,CAAC;IACJ,CAAC;IAEH,+BAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,4DAAwB"}
package/dist/util.d.ts DELETED
@@ -1,16 +0,0 @@
1
- import { motionmaster } from '@synapticon/motion-master-proto';
2
- export import MotionMasterMessage = motionmaster.MotionMasterMessage;
3
- export import IMotionMasterMessage = motionmaster.IMotionMasterMessage;
4
- /**
5
- * Encode MotionMasterMessage to typed array.
6
- * @param message an instance of MotionMasterMessage.
7
- * @returns Uint8Array
8
- */
9
- export declare function encodeMotionMasterMessage(message: IMotionMasterMessage): Uint8Array;
10
- /**
11
- * Decode MotionMasterMessage from typed array.
12
- * @param data Uint8Array to decode
13
- * @returns MotionMasterMessage
14
- */
15
- export declare function decodeMotionMasterMessage(data: Uint8Array): motionmaster.MotionMasterMessage;
16
- //# sourceMappingURL=util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,MAAM,QAAQ,mBAAmB,GAAG,YAAY,CAAC,mBAAmB,CAAC;AACrE,MAAM,QAAQ,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC;AAEvE;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,oBAAoB,cAEtE;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,UAAU,oCAEzD"}
package/dist/util.js DELETED
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decodeMotionMasterMessage = exports.encodeMotionMasterMessage = exports.MotionMasterMessage = void 0;
4
- var motion_master_proto_1 = require("@synapticon/motion-master-proto");
5
- exports.MotionMasterMessage = motion_master_proto_1.motionmaster.MotionMasterMessage;
6
- /**
7
- * Encode MotionMasterMessage to typed array.
8
- * @param message an instance of MotionMasterMessage.
9
- * @returns Uint8Array
10
- */
11
- function encodeMotionMasterMessage(message) {
12
- return exports.MotionMasterMessage.encode(message).finish();
13
- }
14
- exports.encodeMotionMasterMessage = encodeMotionMasterMessage;
15
- /**
16
- * Decode MotionMasterMessage from typed array.
17
- * @param data Uint8Array to decode
18
- * @returns MotionMasterMessage
19
- */
20
- function decodeMotionMasterMessage(data) {
21
- return exports.MotionMasterMessage.decode(data);
22
- }
23
- exports.decodeMotionMasterMessage = decodeMotionMasterMessage;
24
- //# sourceMappingURL=util.js.map
package/dist/util.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAEjD,QAAA,mBAAmB,GAAG,kCAAY,CAAC,mBAAmB,CAAC;AAGrE;;;;GAIG;AACH,SAAgB,yBAAyB,CAAC,OAA6B;IACrE,OAAO,2BAAmB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;AACtD,CAAC;AAFD,8DAEC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB,CAAC,IAAgB;IACxD,OAAO,2BAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC;AAFD,8DAEC"}
@@ -1,4 +0,0 @@
1
- {
2
- "licenses": "",
3
- "description": ""
4
- }
@@ -1,7 +0,0 @@
1
- {
2
- "pingSystemInterval": 200,
3
- "motionMasterHeartbeatTimeoutDue": 1000,
4
- "serverEndpoint": "tcp://127.0.0.1:62524",
5
- "notificationEndpoint": "tcp://127.0.0.1:62525",
6
- "identity": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
7
- }