@ovok/native 1.17.0-dev.2243 → 1.17.0-dev.2247

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 (96) hide show
  1. package/lib/commonjs/modules/next/bluetooth/adapters/ovok-reading-sink.js +2 -0
  2. package/lib/commonjs/modules/next/bluetooth/adapters/ovok-reading-sink.js.map +1 -1
  3. package/lib/commonjs/modules/next/bluetooth/adapters/urine-measurements.js +40 -0
  4. package/lib/commonjs/modules/next/bluetooth/adapters/urine-measurements.js.map +1 -0
  5. package/lib/commonjs/modules/next/bluetooth/families/built-in.js +3 -2
  6. package/lib/commonjs/modules/next/bluetooth/families/built-in.js.map +1 -1
  7. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/contec-urine.js +17 -0
  8. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/contec-urine.js.map +1 -0
  9. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/frame.js +66 -0
  10. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/frame.js.map +1 -0
  11. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/models.js +11 -0
  12. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/models.js.map +1 -0
  13. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/protocol.js +106 -0
  14. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/protocol.js.map +1 -0
  15. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/session.js +58 -0
  16. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/session.js.map +1 -0
  17. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/strip-result.js +123 -0
  18. package/lib/commonjs/modules/next/bluetooth/families/contec-urine/strip-result.js.map +1 -0
  19. package/lib/commonjs/modules/next/bluetooth/families/transtek-a6/commands.js +9 -4
  20. package/lib/commonjs/modules/next/bluetooth/families/transtek-a6/commands.js.map +1 -1
  21. package/lib/commonjs/modules/next/bluetooth/families/transtek-a6/handshake.js +7 -3
  22. package/lib/commonjs/modules/next/bluetooth/families/transtek-a6/handshake.js.map +1 -1
  23. package/lib/commonjs/modules/next/bluetooth/families/transtek-a6/session.js +11 -1
  24. package/lib/commonjs/modules/next/bluetooth/families/transtek-a6/session.js.map +1 -1
  25. package/lib/module/modules/next/bluetooth/adapters/ovok-reading-sink.js +2 -0
  26. package/lib/module/modules/next/bluetooth/adapters/ovok-reading-sink.js.map +1 -1
  27. package/lib/module/modules/next/bluetooth/adapters/urine-measurements.js +37 -0
  28. package/lib/module/modules/next/bluetooth/adapters/urine-measurements.js.map +1 -0
  29. package/lib/module/modules/next/bluetooth/core/measurement-type.js.map +1 -1
  30. package/lib/module/modules/next/bluetooth/families/built-in.js +3 -2
  31. package/lib/module/modules/next/bluetooth/families/built-in.js.map +1 -1
  32. package/lib/module/modules/next/bluetooth/families/contec-urine/contec-urine.js +9 -0
  33. package/lib/module/modules/next/bluetooth/families/contec-urine/contec-urine.js.map +1 -0
  34. package/lib/module/modules/next/bluetooth/families/contec-urine/frame.js +60 -0
  35. package/lib/module/modules/next/bluetooth/families/contec-urine/frame.js.map +1 -0
  36. package/lib/module/modules/next/bluetooth/families/contec-urine/models.js +9 -0
  37. package/lib/module/modules/next/bluetooth/families/contec-urine/models.js.map +1 -0
  38. package/lib/module/modules/next/bluetooth/families/contec-urine/protocol.js +103 -0
  39. package/lib/module/modules/next/bluetooth/families/contec-urine/protocol.js.map +1 -0
  40. package/lib/module/modules/next/bluetooth/families/contec-urine/session.js +55 -0
  41. package/lib/module/modules/next/bluetooth/families/contec-urine/session.js.map +1 -0
  42. package/lib/module/modules/next/bluetooth/families/contec-urine/strip-result.js +120 -0
  43. package/lib/module/modules/next/bluetooth/families/contec-urine/strip-result.js.map +1 -0
  44. package/lib/module/modules/next/bluetooth/families/transtek-a6/commands.js +9 -4
  45. package/lib/module/modules/next/bluetooth/families/transtek-a6/commands.js.map +1 -1
  46. package/lib/module/modules/next/bluetooth/families/transtek-a6/handshake.js +8 -4
  47. package/lib/module/modules/next/bluetooth/families/transtek-a6/handshake.js.map +1 -1
  48. package/lib/module/modules/next/bluetooth/families/transtek-a6/session.js +11 -1
  49. package/lib/module/modules/next/bluetooth/families/transtek-a6/session.js.map +1 -1
  50. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts.map +1 -1
  51. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/urine-measurements.d.ts +6 -0
  52. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/urine-measurements.d.ts.map +1 -0
  53. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/measurement-type.d.ts +1 -1
  54. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/measurement-type.d.ts.map +1 -1
  55. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/built-in.d.ts.map +1 -1
  56. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/contec-urine.d.ts +6 -0
  57. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/contec-urine.d.ts.map +1 -0
  58. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/frame.d.ts +33 -0
  59. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/frame.d.ts.map +1 -0
  60. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/models.d.ts +5 -0
  61. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/models.d.ts.map +1 -0
  62. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/protocol.d.ts +6 -0
  63. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/protocol.d.ts.map +1 -0
  64. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/session.d.ts +17 -0
  65. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/session.d.ts.map +1 -0
  66. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/strip-result.d.ts +5 -0
  67. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/contec-urine/strip-result.d.ts.map +1 -0
  68. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/transtek-a6/commands.d.ts +8 -3
  69. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/transtek-a6/commands.d.ts.map +1 -1
  70. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/transtek-a6/handshake.d.ts +6 -1
  71. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/transtek-a6/handshake.d.ts.map +1 -1
  72. package/lib/typescript/commonjs/src/modules/next/bluetooth/families/transtek-a6/session.d.ts.map +1 -1
  73. package/lib/typescript/module/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts.map +1 -1
  74. package/lib/typescript/module/src/modules/next/bluetooth/adapters/urine-measurements.d.ts +6 -0
  75. package/lib/typescript/module/src/modules/next/bluetooth/adapters/urine-measurements.d.ts.map +1 -0
  76. package/lib/typescript/module/src/modules/next/bluetooth/core/measurement-type.d.ts +1 -1
  77. package/lib/typescript/module/src/modules/next/bluetooth/core/measurement-type.d.ts.map +1 -1
  78. package/lib/typescript/module/src/modules/next/bluetooth/families/built-in.d.ts.map +1 -1
  79. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/contec-urine.d.ts +6 -0
  80. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/contec-urine.d.ts.map +1 -0
  81. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/frame.d.ts +33 -0
  82. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/frame.d.ts.map +1 -0
  83. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/models.d.ts +5 -0
  84. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/models.d.ts.map +1 -0
  85. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/protocol.d.ts +6 -0
  86. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/protocol.d.ts.map +1 -0
  87. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/session.d.ts +17 -0
  88. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/session.d.ts.map +1 -0
  89. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/strip-result.d.ts +5 -0
  90. package/lib/typescript/module/src/modules/next/bluetooth/families/contec-urine/strip-result.d.ts.map +1 -0
  91. package/lib/typescript/module/src/modules/next/bluetooth/families/transtek-a6/commands.d.ts +8 -3
  92. package/lib/typescript/module/src/modules/next/bluetooth/families/transtek-a6/commands.d.ts.map +1 -1
  93. package/lib/typescript/module/src/modules/next/bluetooth/families/transtek-a6/handshake.d.ts +6 -1
  94. package/lib/typescript/module/src/modules/next/bluetooth/families/transtek-a6/handshake.d.ts.map +1 -1
  95. package/lib/typescript/module/src/modules/next/bluetooth/families/transtek-a6/session.d.ts.map +1 -1
  96. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import { HistoryRecord } from "../../core/protocol";
2
+ /** One stored strip result, from the frame that carries it. */
3
+ declare const stripResultOf: (frame: Uint8Array) => HistoryRecord;
4
+ export { stripResultOf };
5
+ //# sourceMappingURL=strip-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strip-result.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/contec-urine/strip-result.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AA4EpD,+DAA+D;AAC/D,QAAA,MAAM,aAAa,GAAI,OAAO,UAAU,KAAG,aAAiE,CAAC;AAE7G,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -24,10 +24,15 @@ declare const loginReplyPayload: (deviceId: Uint8Array) => number[];
24
24
  declare const getDataPayload: (login: Login) => number[];
25
25
  /** Asks for every stored record of the user the device has selected, whether or not it was sent before. */
26
26
  declare const getAllDataPayload: (login: Login) => number[];
27
- /** Tells the device which phone this is: the phone's clock in milliseconds as six bytes, then the constant 02. */
28
- declare const registerPayload: (now: Date) => number[];
27
+ /** The byte that ends a register command: 01 on Transtek's own firmware (atlas), 02 on Viatom's. */
28
+ declare const REGISTER_TRAILER: {
29
+ readonly transtek: 1;
30
+ readonly viatom: 2;
31
+ };
32
+ /** Tells the device which phone this is: the phone's clock in milliseconds as six bytes, then the trailer. */
33
+ declare const registerPayload: (now: Date, trailer: number) => number[];
29
34
  /** Whether a settings reply accepts the command it echoes. */
30
35
  declare const acceptsSettings: (reply: A6Message, command: number) => boolean;
31
- export { acceptsSettings, COMMAND, getAllDataPayload, getDataPayload, loginReplyPayload, parseLoginRequest, registerPayload, };
36
+ export { acceptsSettings, COMMAND, getAllDataPayload, getDataPayload, loginReplyPayload, parseLoginRequest, REGISTER_TRAILER, registerPayload, };
32
37
  export type { Login };
33
38
  //# sourceMappingURL=commands.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,kEAAkE;AAClE,QAAA,MAAM,OAAO;;;;;;CAMH,CAAC;AAYX,yDAAyD;AACzD,KAAK,KAAK,GAAG;IAEX,0DAA0D;IAC1D,QAAQ,EAAE,UAAU,CAAC;IAErB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IAEnB,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,kFAAkF;AAClF,QAAA,MAAM,iBAAiB,GAAI,SAAS,UAAU,KAAG,KAAK,GAAG,SAOlD,CAAC;AAER,kDAAkD;AAClD,QAAA,MAAM,iBAAiB,GAAI,UAAU,UAAU,KAAG,MAAM,EAKvD,CAAC;AAEF,uEAAuE;AACvE,QAAA,MAAM,cAAc,GAAI,OAAO,KAAK,KAAG,MAAM,EAA2C,CAAC;AAEzF,2GAA2G;AAC3G,QAAA,MAAM,iBAAiB,GAAI,OAAO,KAAK,KAAG,MAAM,EAAkD,CAAC;AAEnG,kHAAkH;AAClH,QAAA,MAAM,eAAe,GAAI,KAAK,IAAI,KAAG,MAAM,EAAuD,CAAC;AAEnG,8DAA8D;AAC9D,QAAA,MAAM,eAAe,GAAI,OAAO,SAAS,EAAE,SAAS,MAAM,KAAG,OACkB,CAAC;AAEhF,OAAO,EACL,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,GAChB,CAAC;AACF,YAAY,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,kEAAkE;AAClE,QAAA,MAAM,OAAO;;;;;;CAMH,CAAC;AAWX,yDAAyD;AACzD,KAAK,KAAK,GAAG;IAEX,0DAA0D;IAC1D,QAAQ,EAAE,UAAU,CAAC;IAErB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IAEnB,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,kFAAkF;AAClF,QAAA,MAAM,iBAAiB,GAAI,SAAS,UAAU,KAAG,KAAK,GAAG,SAOlD,CAAC;AAER,kDAAkD;AAClD,QAAA,MAAM,iBAAiB,GAAI,UAAU,UAAU,KAAG,MAAM,EAKvD,CAAC;AAEF,uEAAuE;AACvE,QAAA,MAAM,cAAc,GAAI,OAAO,KAAK,KAAG,MAAM,EAA2C,CAAC;AAEzF,2GAA2G;AAC3G,QAAA,MAAM,iBAAiB,GAAI,OAAO,KAAK,KAAG,MAAM,EAAkD,CAAC;AAEnG,oGAAoG;AACpG,QAAA,MAAM,gBAAgB;;;CAA4C,CAAC;AAEnE,8GAA8G;AAC9G,QAAA,MAAM,eAAe,GAAI,KAAK,IAAI,EAAE,SAAS,MAAM,KAAG,MAAM,EAA6C,CAAC;AAE1G,8DAA8D;AAC9D,QAAA,MAAM,eAAe,GAAI,OAAO,SAAS,EAAE,SAAS,MAAM,KAAG,OACkB,CAAC;AAEhF,OAAO,EACL,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,GAChB,CAAC;AACF,YAAY,EAAE,KAAK,EAAE,CAAC"}
@@ -9,8 +9,13 @@ type A6Handshake = {
9
9
  greet: (send: Send, now: Date) => Promise<void>;
10
10
  /** Writes the login reply and returns once the device is ready to take commands. */
11
11
  login: (reply: () => Promise<void>, acknowledgements: Exchange<boolean>) => Promise<void>;
12
+ /** What the phone sends when the device stays silent through the login wait, before waiting once more. */
13
+ whenSilent?: (send: Send, now: Date) => Promise<void>;
12
14
  };
13
- /** The device starts the conversation itself, and after the login reply the phone waits out a fixed pause. */
15
+ /**
16
+ * The device starts the conversation itself, and after the login reply the phone waits out a fixed pause. One that has
17
+ * not been registered stays silent until the phone registers it, which the phone does once the login wait runs out.
18
+ */
14
19
  declare const DEVICE_STARTS: A6Handshake;
15
20
  /** The phone registers first, then goes on as soon as the device acknowledges the login, or when the settle time is up. */
16
21
  declare const PHONE_REGISTERS: A6Handshake;
@@ -1 +1 @@
1
- {"version":3,"file":"handshake.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/handshake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAK/C,6FAA6F;AAC7F,QAAA,MAAM,SAAS,OAAQ,CAAC;AAExB,wCAAwC;AACxC,KAAK,IAAI,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5E,mFAAmF;AACnF,KAAK,WAAW,GAAG;IAEjB,6EAA6E;IAC7E,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD,oFAAoF;IACpF,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3F,CAAC;AAEF,8GAA8G;AAC9G,QAAA,MAAM,aAAa,EAAE,WAMpB,CAAC;AAYF,2HAA2H;AAC3H,QAAA,MAAM,eAAe,EAAE,WAStB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"handshake.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/handshake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAK/C,6FAA6F;AAC7F,QAAA,MAAM,SAAS,OAAQ,CAAC;AAExB,wCAAwC;AACxC,KAAK,IAAI,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5E,mFAAmF;AACnF,KAAK,WAAW,GAAG;IAEjB,6EAA6E;IAC7E,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD,oFAAoF;IACpF,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1F,0GAA0G;IAC1G,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACvD,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,aAAa,EAAE,WAOpB,CAAC;AAYF,2HAA2H;AAC3H,QAAA,MAAM,eAAe,EAAE,WAStB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/session.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAU,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAA4B,KAAK,EAAwC,MAAM,YAAY,CAAC;AACnG,OAAO,EAAE,SAAS,EAAyC,MAAM,SAAS,CAAC;AAE3E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAa,SAAS,EAAE,MAAM,WAAW,CAAC;AAajD,wFAAwF;AACxF,KAAK,YAAY,GAAG;IAElB,yEAAyE;IACzE,IAAI,EAAE,QAAQ,CAAC;IAEf,8CAA8C;IAC9C,KAAK,EAAE,KAAK,CAAC;IAEb,yBAAyB;IACzB,GAAG,EAAE,MAAM,IAAI,CAAC;IAEhB,uEAAuE;IACvE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAE1B,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,MAAM,CAAC;IAEvB,0BAA0B;IAC1B,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE,0DAA0D;IAC1D,OAAO,EAAE,CAAC,EAAE,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC,qCAAqC;IACrC,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAyGF,+HAA+H;AAC/H,QAAA,MAAM,WAAW,GAAU,SAAS,SAAS,EAAE,SAAS,eAAe,KAAG,OAAO,CAAC,YAAY,CA6D7F,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/session.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAU,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAA4B,KAAK,EAAwC,MAAM,YAAY,CAAC;AACnG,OAAO,EAAE,SAAS,EAAyC,MAAM,SAAS,CAAC;AAE3E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAa,SAAS,EAAE,MAAM,WAAW,CAAC;AAajD,wFAAwF;AACxF,KAAK,YAAY,GAAG;IAElB,yEAAyE;IACzE,IAAI,EAAE,QAAQ,CAAC;IAEf,8CAA8C;IAC9C,KAAK,EAAE,KAAK,CAAC;IAEb,yBAAyB;IACzB,GAAG,EAAE,MAAM,IAAI,CAAC;IAEhB,uEAAuE;IACvE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAE1B,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,MAAM,CAAC;IAEvB,0BAA0B;IAC1B,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE,0DAA0D;IAC1D,OAAO,EAAE,CAAC,EAAE,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC,qCAAqC;IACrC,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAyGF,+HAA+H;AAC/H,QAAA,MAAM,WAAW,GAAU,SAAS,SAAS,EAAE,SAAS,eAAe,KAAG,OAAO,CAAC,YAAY,CAuE7F,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ovok-reading-sink.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/ovok-reading-sink.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAmB,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAyB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAwIhF,uHAAuH;AACvH,KAAK,cAAc,GAAG,kBAAkB,CAAC;AA6CzC;;;;GAIG;AACH,QAAA,MAAM,eAAe,GAAI,QAAQ,cAAc,EAAE,WAAW,QAAQ,KAAG,WAsBrE,CAAC;AAEH,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"ovok-reading-sink.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/ovok-reading-sink.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAmB,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAyB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AA0IhF,uHAAuH;AACvH,KAAK,cAAc,GAAG,kBAAkB,CAAC;AA6CzC;;;;GAIG;AACH,QAAA,MAAM,eAAe,GAAI,QAAQ,cAAc,EAAE,WAAW,QAAQ,KAAG,WAsBrE,CAAC;AAEH,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { UrineAnalyzeMeasurement } from "@ovok/core/next";
2
+ import { Reading } from "../core/reading";
3
+ /** A strip result already comes in Ovok's units; one without any analyte Ovok keeps cannot be saved. */
4
+ declare const urineAnalysis: (reading: Reading) => UrineAnalyzeMeasurement | undefined;
5
+ export { urineAnalysis };
6
+ //# sourceMappingURL=urine-measurements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urine-measurements.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/adapters/urine-measurements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAG9E,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAqB1C,wGAAwG;AACxG,QAAA,MAAM,aAAa,GAAI,SAAS,OAAO,KAAG,uBAAuB,GAAG,SAenE,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -2,7 +2,7 @@ declare const MEASUREMENT_TYPES: readonly ["activity", "alcohol_content", "auscu
2
2
  /** What a device measures. */
3
3
  type MeasurementType = (typeof MEASUREMENT_TYPES)[number];
4
4
  /** What one value in a reading is. */
5
- type MetricCode = "systolic" | "diastolic" | "mean_arterial_pressure" | "cuff_pressure" | "pulse_rate" | "heart_rate" | "fetal_heart_rate" | "ecg_qrs_duration" | "ecg_qtc_interval" | "pvc_count" | "energy_expended" | "blood_glucose" | "blood_ketone" | "blood_uric_acid" | "blood_cholesterol" | "hdl_cholesterol" | "ldl_cholesterol" | "triglycerides" | "blood_lactate" | "hemoglobin" | "hematocrit" | "body_weight" | "body_height" | "bmi" | "body_fat_percent" | "body_water_percent" | "muscle_percent" | "muscle_mass" | "fat_free_mass" | "soft_lean_mass" | "body_water_mass" | "bone_mass" | "visceral_fat" | "basal_metabolic_rate" | "metabolic_age" | "impedance" | "body_temperature" | "spo2" | "perfusion_index" | "pulse_amplitude_index" | "respiration_rate" | "fvc" | "fev1" | "fev1_fvc_ratio" | "pef" | "fef25_75" | "steps" | "distance" | "active_energy";
5
+ type MetricCode = "systolic" | "diastolic" | "mean_arterial_pressure" | "cuff_pressure" | "pulse_rate" | "heart_rate" | "fetal_heart_rate" | "ecg_qrs_duration" | "ecg_qtc_interval" | "pvc_count" | "energy_expended" | "blood_glucose" | "blood_ketone" | "blood_uric_acid" | "blood_cholesterol" | "hdl_cholesterol" | "ldl_cholesterol" | "triglycerides" | "blood_lactate" | "hemoglobin" | "hematocrit" | "body_weight" | "body_height" | "bmi" | "body_fat_percent" | "body_water_percent" | "muscle_percent" | "muscle_mass" | "fat_free_mass" | "soft_lean_mass" | "body_water_mass" | "bone_mass" | "visceral_fat" | "basal_metabolic_rate" | "metabolic_age" | "impedance" | "body_temperature" | "spo2" | "perfusion_index" | "pulse_amplitude_index" | "respiration_rate" | "fvc" | "fev1" | "fev1_fvc_ratio" | "pef" | "fef25_75" | "steps" | "distance" | "active_energy" | "urine_urobilinogen" | "urine_blood" | "urine_bilirubin" | "urine_ketones" | "urine_glucose" | "urine_protein" | "urine_ph" | "urine_nitrite" | "urine_leukocytes" | "urine_specific_gravity" | "urine_ascorbic_acid" | "urine_microalbumin" | "urine_creatinine" | "urine_calcium";
6
6
  export { MEASUREMENT_TYPES };
7
7
  export type { MeasurementType, MetricCode };
8
8
  //# sourceMappingURL=measurement-type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"measurement-type.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/measurement-type.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,iBAAiB,0kBAqCb,CAAC;AAEX,8BAA8B;AAC9B,KAAK,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,sCAAsC;AACtC,KAAK,UAAU,GACX,UAAU,GACV,WAAW,GACX,wBAAwB,GACxB,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,WAAW,GACX,iBAAiB,GACjB,eAAe,GACf,cAAc,GACd,iBAAiB,GACjB,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,aAAa,GACb,KAAK,GACL,kBAAkB,GAClB,oBAAoB,GACpB,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,iBAAiB,GACjB,WAAW,GACX,cAAc,GACd,sBAAsB,GACtB,eAAe,GACf,WAAW,GACX,kBAAkB,GAClB,MAAM,GACN,iBAAiB,GACjB,uBAAuB,GACvB,kBAAkB,GAClB,KAAK,GACL,MAAM,GACN,gBAAgB,GAChB,KAAK,GACL,UAAU,GACV,OAAO,GACP,UAAU,GACV,eAAe,CAAC;AAEpB,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"measurement-type.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/measurement-type.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,iBAAiB,0kBAqCb,CAAC;AAEX,8BAA8B;AAC9B,KAAK,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,sCAAsC;AACtC,KAAK,UAAU,GACX,UAAU,GACV,WAAW,GACX,wBAAwB,GACxB,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,WAAW,GACX,iBAAiB,GACjB,eAAe,GACf,cAAc,GACd,iBAAiB,GACjB,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,aAAa,GACb,KAAK,GACL,kBAAkB,GAClB,oBAAoB,GACpB,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,iBAAiB,GACjB,WAAW,GACX,cAAc,GACd,sBAAsB,GACtB,eAAe,GACf,WAAW,GACX,kBAAkB,GAClB,MAAM,GACN,iBAAiB,GACjB,uBAAuB,GACvB,kBAAkB,GAClB,KAAK,GACL,MAAM,GACN,gBAAgB,GAChB,KAAK,GACL,UAAU,GACV,OAAO,GACP,UAAU,GACV,eAAe,GACf,oBAAoB,GACpB,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,eAAe,GACf,UAAU,GACV,eAAe,GACf,kBAAkB,GAClB,wBAAwB,GACxB,qBAAqB,GACrB,oBAAoB,GACpB,kBAAkB,GAClB,eAAe,CAAC;AAEpB,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"built-in.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/families/built-in.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAoFlD,6FAA6F;AAC7F,QAAA,MAAM,eAAe,EAAE,SAAS,WAAW,EAiFzC,CAAC;AAEH,6CAA6C;AAC7C,QAAA,MAAM,kBAAkB,EAAE,SAAS,cAAc,EAiFhD,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"built-in.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/families/built-in.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAqFlD,6FAA6F;AAC7F,QAAA,MAAM,eAAe,EAAE,SAAS,WAAW,EAkFzC,CAAC;AAEH,6CAA6C;AAC7C,QAAA,MAAM,kBAAkB,EAAE,SAAS,cAAc,EAkFhD,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { DeviceProtocol } from "../../core/protocol";
2
+ import { CONTEC_URINE_MODELS } from "./models";
3
+ /** The protocols of Contec's urine analyzers. */
4
+ declare const CONTEC_URINE_PROTOCOLS: readonly DeviceProtocol[];
5
+ export { CONTEC_URINE_MODELS, CONTEC_URINE_PROTOCOLS };
6
+ //# sourceMappingURL=contec-urine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contec-urine.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/contec-urine/contec-urine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,iDAAiD;AACjD,QAAA,MAAM,sBAAsB,EAAE,SAAS,cAAc,EAAqB,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { Framing } from "../frame-tools/frame-stream";
2
+ declare const URINE_SERVICE: string;
3
+ declare const COMMAND_CHARACTERISTIC: string;
4
+ declare const REPLY_CHARACTERISTIC: string;
5
+ /** The analyzer counts its years from 2000. */
6
+ declare const YEAR_BASE = 2000;
7
+ /** The commands without their sum; setting the clock adds the time to `setTime`. */
8
+ declare const COMMAND: {
9
+ readonly reset: readonly [128];
10
+ readonly version: readonly [130];
11
+ readonly setTime: readonly [131];
12
+ readonly counts: readonly [144, 0];
13
+ readonly records: readonly [146, 0];
14
+ readonly nextGroup: readonly [146, 1];
15
+ readonly uploaded: readonly [146, 126];
16
+ };
17
+ /** The header of each reply in use; a stored result comes alone (`record`) or in a group of up to ten (`groupRecord`). */
18
+ declare const REPLY: {
19
+ readonly reset: 240;
20
+ readonly version: 242;
21
+ readonly setTime: 243;
22
+ readonly counts: 224;
23
+ readonly record: 225;
24
+ readonly groupRecord: 226;
25
+ };
26
+ /** A command frame: its bytes and their 7-bit sum. */
27
+ declare const commandFrame: (bytes: readonly number[]) => Uint8Array;
28
+ /** The 14-bit word at `at`: two 7-bit bytes, low first. */
29
+ declare const wordAt: (bytes: Uint8Array, at: number) => number;
30
+ /** Cuts a reply by its header's size and sum; any other byte, such as the version text firmware 1.0.0 trails, is dropped. */
31
+ declare const REPLY_FRAMING: Framing;
32
+ export { COMMAND, COMMAND_CHARACTERISTIC, commandFrame, REPLY, REPLY_CHARACTERISTIC, REPLY_FRAMING, URINE_SERVICE, wordAt, YEAR_BASE };
33
+ //# sourceMappingURL=frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/contec-urine/frame.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,OAAO,EAAgB,MAAM,6BAA6B,CAAC;AAG7E,QAAA,MAAM,aAAa,QAAmB,CAAC;AACvC,QAAA,MAAM,sBAAsB,QAAmB,CAAC;AAChD,QAAA,MAAM,oBAAoB,QAAmB,CAAC;AAK9C,+CAA+C;AAC/C,QAAA,MAAM,SAAS,OAAO,CAAC;AAEvB,oFAAoF;AACpF,QAAA,MAAM,OAAO;;;;;;;;CAQH,CAAC;AAEX,0HAA0H;AAC1H,QAAA,MAAM,KAAK;;;;;;;CAAwG,CAAC;AAepH,sDAAsD;AACtD,QAAA,MAAM,YAAY,GAAI,OAAO,SAAS,MAAM,EAAE,KAAG,UAAsD,CAAC;AAExG,2DAA2D;AAC3D,QAAA,MAAM,MAAM,GAAI,OAAO,UAAU,EAAE,IAAI,MAAM,KAAG,MAC+C,CAAC;AAEhG,6HAA6H;AAC7H,QAAA,MAAM,aAAa,EAAE,OAWpB,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { DeviceModel } from "../../core/catalog";
2
+ /** It advertises as BC01 and four digits, e.g. BC010969. */
3
+ declare const CONTEC_URINE_MODELS: readonly DeviceModel[];
4
+ export { CONTEC_URINE_MODELS };
5
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/contec-urine/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAKjD,4DAA4D;AAC5D,QAAA,MAAM,mBAAmB,EAAE,SAAS,WAAW,EAAmF,CAAC;AAEnI,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { DeviceProtocol } from "../../core/protocol";
2
+ import { UrineConnection } from "./session";
3
+ /** The Contec BC401BT urine analyzer: firmware, a clock, and the strip results stored in it. */
4
+ declare const BC401_PROTOCOL: DeviceProtocol<UrineConnection>;
5
+ export { BC401_PROTOCOL };
6
+ //# sourceMappingURL=protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/contec-urine/protocol.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAkC,MAAM,qBAAqB,CAAC;AAGrF,OAAO,EAAe,eAAe,EAAE,MAAM,WAAW,CAAC;AAyGzD,gGAAgG;AAChG,QAAA,MAAM,cAAc,EAAE,cAAc,CAAC,eAAe,CAQnD,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { ProtocolContext } from "../../core/protocol";
2
+ /** One open link: commands out, and the analyzer's frames in the order they arrive. */
3
+ type UrineConnection = {
4
+ /** Sends a command; its sum is added. */
5
+ send: (command: readonly number[]) => Promise<void>;
6
+ /** The next frame, which must carry one of `headers`; the analyzer pushes a group's results without being asked. */
7
+ next: (...headers: readonly number[]) => Promise<Uint8Array>;
8
+ /** Sends a command and resolves with its reply, which must carry one of `headers`. */
9
+ request: (command: readonly number[], ...headers: readonly number[]) => Promise<Uint8Array>;
10
+ /** Stops listening. */
11
+ stop: () => void;
12
+ };
13
+ /** Listens to the analyzer, which answers one command at a time. */
14
+ declare const openSession: ({ link }: ProtocolContext) => Promise<UrineConnection>;
15
+ export { openSession };
16
+ export type { UrineConnection };
17
+ //# sourceMappingURL=session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/contec-urine/session.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAStD,uFAAuF;AACvF,KAAK,eAAe,GAAG;IAErB,yCAAyC;IACzC,IAAI,EAAE,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpD,oHAAoH;IACpH,IAAI,EAAE,CAAC,GAAG,OAAO,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;IAE7D,sFAAsF;IACtF,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,EAAE,GAAG,OAAO,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5F,uBAAuB;IACvB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,oEAAoE;AACpE,QAAA,MAAM,WAAW,GAAU,UAAU,eAAe,KAAG,OAAO,CAAC,eAAe,CA+C7E,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { HistoryRecord } from "../../core/protocol";
2
+ /** One stored strip result, from the frame that carries it. */
3
+ declare const stripResultOf: (frame: Uint8Array) => HistoryRecord;
4
+ export { stripResultOf };
5
+ //# sourceMappingURL=strip-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strip-result.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/contec-urine/strip-result.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AA4EpD,+DAA+D;AAC/D,QAAA,MAAM,aAAa,GAAI,OAAO,UAAU,KAAG,aAAiE,CAAC;AAE7G,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -24,10 +24,15 @@ declare const loginReplyPayload: (deviceId: Uint8Array) => number[];
24
24
  declare const getDataPayload: (login: Login) => number[];
25
25
  /** Asks for every stored record of the user the device has selected, whether or not it was sent before. */
26
26
  declare const getAllDataPayload: (login: Login) => number[];
27
- /** Tells the device which phone this is: the phone's clock in milliseconds as six bytes, then the constant 02. */
28
- declare const registerPayload: (now: Date) => number[];
27
+ /** The byte that ends a register command: 01 on Transtek's own firmware (atlas), 02 on Viatom's. */
28
+ declare const REGISTER_TRAILER: {
29
+ readonly transtek: 1;
30
+ readonly viatom: 2;
31
+ };
32
+ /** Tells the device which phone this is: the phone's clock in milliseconds as six bytes, then the trailer. */
33
+ declare const registerPayload: (now: Date, trailer: number) => number[];
29
34
  /** Whether a settings reply accepts the command it echoes. */
30
35
  declare const acceptsSettings: (reply: A6Message, command: number) => boolean;
31
- export { acceptsSettings, COMMAND, getAllDataPayload, getDataPayload, loginReplyPayload, parseLoginRequest, registerPayload, };
36
+ export { acceptsSettings, COMMAND, getAllDataPayload, getDataPayload, loginReplyPayload, parseLoginRequest, REGISTER_TRAILER, registerPayload, };
32
37
  export type { Login };
33
38
  //# sourceMappingURL=commands.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,kEAAkE;AAClE,QAAA,MAAM,OAAO;;;;;;CAMH,CAAC;AAYX,yDAAyD;AACzD,KAAK,KAAK,GAAG;IAEX,0DAA0D;IAC1D,QAAQ,EAAE,UAAU,CAAC;IAErB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IAEnB,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,kFAAkF;AAClF,QAAA,MAAM,iBAAiB,GAAI,SAAS,UAAU,KAAG,KAAK,GAAG,SAOlD,CAAC;AAER,kDAAkD;AAClD,QAAA,MAAM,iBAAiB,GAAI,UAAU,UAAU,KAAG,MAAM,EAKvD,CAAC;AAEF,uEAAuE;AACvE,QAAA,MAAM,cAAc,GAAI,OAAO,KAAK,KAAG,MAAM,EAA2C,CAAC;AAEzF,2GAA2G;AAC3G,QAAA,MAAM,iBAAiB,GAAI,OAAO,KAAK,KAAG,MAAM,EAAkD,CAAC;AAEnG,kHAAkH;AAClH,QAAA,MAAM,eAAe,GAAI,KAAK,IAAI,KAAG,MAAM,EAAuD,CAAC;AAEnG,8DAA8D;AAC9D,QAAA,MAAM,eAAe,GAAI,OAAO,SAAS,EAAE,SAAS,MAAM,KAAG,OACkB,CAAC;AAEhF,OAAO,EACL,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,GAChB,CAAC;AACF,YAAY,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,kEAAkE;AAClE,QAAA,MAAM,OAAO;;;;;;CAMH,CAAC;AAWX,yDAAyD;AACzD,KAAK,KAAK,GAAG;IAEX,0DAA0D;IAC1D,QAAQ,EAAE,UAAU,CAAC;IAErB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IAEnB,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,kFAAkF;AAClF,QAAA,MAAM,iBAAiB,GAAI,SAAS,UAAU,KAAG,KAAK,GAAG,SAOlD,CAAC;AAER,kDAAkD;AAClD,QAAA,MAAM,iBAAiB,GAAI,UAAU,UAAU,KAAG,MAAM,EAKvD,CAAC;AAEF,uEAAuE;AACvE,QAAA,MAAM,cAAc,GAAI,OAAO,KAAK,KAAG,MAAM,EAA2C,CAAC;AAEzF,2GAA2G;AAC3G,QAAA,MAAM,iBAAiB,GAAI,OAAO,KAAK,KAAG,MAAM,EAAkD,CAAC;AAEnG,oGAAoG;AACpG,QAAA,MAAM,gBAAgB;;;CAA4C,CAAC;AAEnE,8GAA8G;AAC9G,QAAA,MAAM,eAAe,GAAI,KAAK,IAAI,EAAE,SAAS,MAAM,KAAG,MAAM,EAA6C,CAAC;AAE1G,8DAA8D;AAC9D,QAAA,MAAM,eAAe,GAAI,OAAO,SAAS,EAAE,SAAS,MAAM,KAAG,OACkB,CAAC;AAEhF,OAAO,EACL,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,GAChB,CAAC;AACF,YAAY,EAAE,KAAK,EAAE,CAAC"}
@@ -9,8 +9,13 @@ type A6Handshake = {
9
9
  greet: (send: Send, now: Date) => Promise<void>;
10
10
  /** Writes the login reply and returns once the device is ready to take commands. */
11
11
  login: (reply: () => Promise<void>, acknowledgements: Exchange<boolean>) => Promise<void>;
12
+ /** What the phone sends when the device stays silent through the login wait, before waiting once more. */
13
+ whenSilent?: (send: Send, now: Date) => Promise<void>;
12
14
  };
13
- /** The device starts the conversation itself, and after the login reply the phone waits out a fixed pause. */
15
+ /**
16
+ * The device starts the conversation itself, and after the login reply the phone waits out a fixed pause. One that has
17
+ * not been registered stays silent until the phone registers it, which the phone does once the login wait runs out.
18
+ */
14
19
  declare const DEVICE_STARTS: A6Handshake;
15
20
  /** The phone registers first, then goes on as soon as the device acknowledges the login, or when the settle time is up. */
16
21
  declare const PHONE_REGISTERS: A6Handshake;
@@ -1 +1 @@
1
- {"version":3,"file":"handshake.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/handshake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAK/C,6FAA6F;AAC7F,QAAA,MAAM,SAAS,OAAQ,CAAC;AAExB,wCAAwC;AACxC,KAAK,IAAI,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5E,mFAAmF;AACnF,KAAK,WAAW,GAAG;IAEjB,6EAA6E;IAC7E,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD,oFAAoF;IACpF,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3F,CAAC;AAEF,8GAA8G;AAC9G,QAAA,MAAM,aAAa,EAAE,WAMpB,CAAC;AAYF,2HAA2H;AAC3H,QAAA,MAAM,eAAe,EAAE,WAStB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"handshake.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/handshake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAK/C,6FAA6F;AAC7F,QAAA,MAAM,SAAS,OAAQ,CAAC;AAExB,wCAAwC;AACxC,KAAK,IAAI,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5E,mFAAmF;AACnF,KAAK,WAAW,GAAG;IAEjB,6EAA6E;IAC7E,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD,oFAAoF;IACpF,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1F,0GAA0G;IAC1G,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACvD,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,aAAa,EAAE,WAOpB,CAAC;AAYF,2HAA2H;AAC3H,QAAA,MAAM,eAAe,EAAE,WAStB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/session.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAU,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAA4B,KAAK,EAAwC,MAAM,YAAY,CAAC;AACnG,OAAO,EAAE,SAAS,EAAyC,MAAM,SAAS,CAAC;AAE3E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAa,SAAS,EAAE,MAAM,WAAW,CAAC;AAajD,wFAAwF;AACxF,KAAK,YAAY,GAAG;IAElB,yEAAyE;IACzE,IAAI,EAAE,QAAQ,CAAC;IAEf,8CAA8C;IAC9C,KAAK,EAAE,KAAK,CAAC;IAEb,yBAAyB;IACzB,GAAG,EAAE,MAAM,IAAI,CAAC;IAEhB,uEAAuE;IACvE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAE1B,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,MAAM,CAAC;IAEvB,0BAA0B;IAC1B,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE,0DAA0D;IAC1D,OAAO,EAAE,CAAC,EAAE,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC,qCAAqC;IACrC,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAyGF,+HAA+H;AAC/H,QAAA,MAAM,WAAW,GAAU,SAAS,SAAS,EAAE,SAAS,eAAe,KAAG,OAAO,CAAC,YAAY,CA6D7F,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/transtek-a6/session.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAU,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAA4B,KAAK,EAAwC,MAAM,YAAY,CAAC;AACnG,OAAO,EAAE,SAAS,EAAyC,MAAM,SAAS,CAAC;AAE3E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAa,SAAS,EAAE,MAAM,WAAW,CAAC;AAajD,wFAAwF;AACxF,KAAK,YAAY,GAAG;IAElB,yEAAyE;IACzE,IAAI,EAAE,QAAQ,CAAC;IAEf,8CAA8C;IAC9C,KAAK,EAAE,KAAK,CAAC;IAEb,yBAAyB;IACzB,GAAG,EAAE,MAAM,IAAI,CAAC;IAEhB,uEAAuE;IACvE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAE1B,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,MAAM,CAAC;IAEvB,0BAA0B;IAC1B,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE,0DAA0D;IAC1D,OAAO,EAAE,CAAC,EAAE,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC,qCAAqC;IACrC,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAyGF,+HAA+H;AAC/H,QAAA,MAAM,WAAW,GAAU,SAAS,SAAS,EAAE,SAAS,eAAe,KAAG,OAAO,CAAC,YAAY,CAuE7F,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,YAAY,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovok/native",
3
- "version": "1.17.0-dev.2243+878a18a",
3
+ "version": "1.17.0-dev.2247+a109da3",
4
4
  "description": "React native component sdk for OVOK",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",