@bikefinder/staff-sdk 0.12.0 → 0.13.1
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/README.md +9 -2
- package/dist/{chunk-TXAMHEXI.js → chunk-2RDQSYD5.js} +328 -4
- package/dist/index.d.ts +3569 -12
- package/dist/index.js +257 -9
- package/dist/schemas.d.ts +3313 -4
- package/dist/schemas.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
trackerLatestReport,
|
|
146
146
|
trackerStatistics,
|
|
147
147
|
zDeviceSettings
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-2RDQSYD5.js";
|
|
149
149
|
|
|
150
150
|
// ../../src/client/client.ts
|
|
151
151
|
import { createORPCClient, DynamicLink } from "@orpc/client";
|
|
@@ -3530,7 +3530,7 @@ var observationValueSchema = {
|
|
|
3530
3530
|
],
|
|
3531
3531
|
"additionalProperties": false,
|
|
3532
3532
|
"title": "Charging changed",
|
|
3533
|
-
"description": "
|
|
3533
|
+
"description": "Legacy charging transition retained for older firmware and stored history. New firmware reports battery.charging.status through diagnostics instead.",
|
|
3534
3534
|
"x-bf": {
|
|
3535
3535
|
"definitionId": 25,
|
|
3536
3536
|
"role": "event",
|
|
@@ -3539,7 +3539,7 @@ var observationValueSchema = {
|
|
|
3539
3539
|
"requestScoped": false,
|
|
3540
3540
|
"presentation": {
|
|
3541
3541
|
"displayName": "Charging changed",
|
|
3542
|
-
"description": "
|
|
3542
|
+
"description": "Legacy charging transition retained for older firmware and stored history. New firmware reports battery.charging.status through diagnostics instead.",
|
|
3543
3543
|
"hiddenByDefault": true,
|
|
3544
3544
|
"formatter": "transition"
|
|
3545
3545
|
}
|
|
@@ -5446,7 +5446,7 @@ var observationValueSchema = {
|
|
|
5446
5446
|
],
|
|
5447
5447
|
"additionalProperties": false,
|
|
5448
5448
|
"title": "Power external power changed",
|
|
5449
|
-
"description": "
|
|
5449
|
+
"description": "Legacy external-power transition retained for older firmware and stored history. New firmware reports battery.externalPower at boot and on confirmed state changes instead.",
|
|
5450
5450
|
"x-bf": {
|
|
5451
5451
|
"definitionId": 136,
|
|
5452
5452
|
"role": "event",
|
|
@@ -5455,7 +5455,7 @@ var observationValueSchema = {
|
|
|
5455
5455
|
"requestScoped": false,
|
|
5456
5456
|
"presentation": {
|
|
5457
5457
|
"displayName": "Power external power changed",
|
|
5458
|
-
"description": "
|
|
5458
|
+
"description": "Legacy external-power transition retained for older firmware and stored history. New firmware reports battery.externalPower at boot and on confirmed state changes instead.",
|
|
5459
5459
|
"hiddenByDefault": true,
|
|
5460
5460
|
"formatter": "transition"
|
|
5461
5461
|
}
|
|
@@ -7557,6 +7557,165 @@ var observationValueSchema = {
|
|
|
7557
7557
|
"hiddenByDefault": false
|
|
7558
7558
|
}
|
|
7559
7559
|
}
|
|
7560
|
+
},
|
|
7561
|
+
"movement.accelerationChanged": {
|
|
7562
|
+
"type": "object",
|
|
7563
|
+
"properties": {
|
|
7564
|
+
"xMg": {
|
|
7565
|
+
"type": "integer",
|
|
7566
|
+
"minimum": -4e3,
|
|
7567
|
+
"maximum": 4e3
|
|
7568
|
+
},
|
|
7569
|
+
"yMg": {
|
|
7570
|
+
"type": "integer",
|
|
7571
|
+
"minimum": -4e3,
|
|
7572
|
+
"maximum": 4e3
|
|
7573
|
+
},
|
|
7574
|
+
"zMg": {
|
|
7575
|
+
"type": "integer",
|
|
7576
|
+
"minimum": -4e3,
|
|
7577
|
+
"maximum": 4e3
|
|
7578
|
+
},
|
|
7579
|
+
"changedAxes": {
|
|
7580
|
+
"type": "integer",
|
|
7581
|
+
"minimum": 1,
|
|
7582
|
+
"maximum": 7
|
|
7583
|
+
}
|
|
7584
|
+
},
|
|
7585
|
+
"required": [
|
|
7586
|
+
"xMg",
|
|
7587
|
+
"yMg",
|
|
7588
|
+
"zMg",
|
|
7589
|
+
"changedAxes"
|
|
7590
|
+
],
|
|
7591
|
+
"additionalProperties": false,
|
|
7592
|
+
"title": "Acceleration changed",
|
|
7593
|
+
"description": "Three-axis acceleration at the sample time. Bits 0, 1 and 2 identify the X, Y and Z axes that crossed the configured threshold.",
|
|
7594
|
+
"x-bf": {
|
|
7595
|
+
"definitionId": 185,
|
|
7596
|
+
"role": "event",
|
|
7597
|
+
"subject": "device",
|
|
7598
|
+
"producer": "device",
|
|
7599
|
+
"requestScoped": false,
|
|
7600
|
+
"presentation": {
|
|
7601
|
+
"displayName": "Acceleration changed",
|
|
7602
|
+
"description": "Three-axis acceleration at the sample time. Bits 0, 1 and 2 identify the X, Y and Z axes that crossed the configured threshold.",
|
|
7603
|
+
"hiddenByDefault": false,
|
|
7604
|
+
"formatter": "fields",
|
|
7605
|
+
"fields": [
|
|
7606
|
+
{
|
|
7607
|
+
"path": "xMg",
|
|
7608
|
+
"unit": "mg"
|
|
7609
|
+
},
|
|
7610
|
+
{
|
|
7611
|
+
"path": "yMg",
|
|
7612
|
+
"unit": "mg"
|
|
7613
|
+
},
|
|
7614
|
+
{
|
|
7615
|
+
"path": "zMg",
|
|
7616
|
+
"unit": "mg"
|
|
7617
|
+
},
|
|
7618
|
+
{
|
|
7619
|
+
"path": "changedAxes"
|
|
7620
|
+
}
|
|
7621
|
+
]
|
|
7622
|
+
}
|
|
7623
|
+
}
|
|
7624
|
+
},
|
|
7625
|
+
"battery.module.snapshot": {
|
|
7626
|
+
"type": "object",
|
|
7627
|
+
"properties": {
|
|
7628
|
+
"level": {
|
|
7629
|
+
"type": "integer",
|
|
7630
|
+
"minimum": 0,
|
|
7631
|
+
"maximum": 100
|
|
7632
|
+
},
|
|
7633
|
+
"voltageMv": {
|
|
7634
|
+
"type": "integer",
|
|
7635
|
+
"minimum": 0,
|
|
7636
|
+
"maximum": 65535
|
|
7637
|
+
},
|
|
7638
|
+
"currentMa": {
|
|
7639
|
+
"type": "number",
|
|
7640
|
+
"minimum": -3276.8,
|
|
7641
|
+
"maximum": 3276.7
|
|
7642
|
+
},
|
|
7643
|
+
"gaugeTemperatureC": {
|
|
7644
|
+
"type": "integer",
|
|
7645
|
+
"minimum": -128,
|
|
7646
|
+
"maximum": 127
|
|
7647
|
+
},
|
|
7648
|
+
"chargerState": {
|
|
7649
|
+
"type": "string",
|
|
7650
|
+
"enum": [
|
|
7651
|
+
"ready",
|
|
7652
|
+
"charging",
|
|
7653
|
+
"full",
|
|
7654
|
+
"fault"
|
|
7655
|
+
]
|
|
7656
|
+
},
|
|
7657
|
+
"chargerFault": {
|
|
7658
|
+
"type": "integer",
|
|
7659
|
+
"minimum": 0,
|
|
7660
|
+
"maximum": 7
|
|
7661
|
+
}
|
|
7662
|
+
},
|
|
7663
|
+
"required": [
|
|
7664
|
+
"level",
|
|
7665
|
+
"voltageMv",
|
|
7666
|
+
"currentMa",
|
|
7667
|
+
"gaugeTemperatureC",
|
|
7668
|
+
"chargerState",
|
|
7669
|
+
"chargerFault"
|
|
7670
|
+
],
|
|
7671
|
+
"additionalProperties": false,
|
|
7672
|
+
"title": "Battery module snapshot",
|
|
7673
|
+
"description": "Level, voltage, signed current, gauge temperature and charger state/fault from one complete validated module sample. MeasuredAt is the original sample time; gauge temperature is not necessarily cell temperature. The module identity is the observation subject. Raw thermistor ADC, guard internals, settings and registers remain separate diagnostics.",
|
|
7674
|
+
"x-bf": {
|
|
7675
|
+
"definitionId": 186,
|
|
7676
|
+
"role": "measurement",
|
|
7677
|
+
"subject": "batteryModule",
|
|
7678
|
+
"producer": "device",
|
|
7679
|
+
"requestScoped": false,
|
|
7680
|
+
"presentation": {
|
|
7681
|
+
"displayName": "Battery module snapshot",
|
|
7682
|
+
"description": "Level, voltage, signed current, gauge temperature and charger state/fault from one complete validated module sample. MeasuredAt is the original sample time; gauge temperature is not necessarily cell temperature. The module identity is the observation subject. Raw thermistor ADC, guard internals, settings and registers remain separate diagnostics.",
|
|
7683
|
+
"hiddenByDefault": false,
|
|
7684
|
+
"formatter": "fields",
|
|
7685
|
+
"fields": [
|
|
7686
|
+
{
|
|
7687
|
+
"path": "level",
|
|
7688
|
+
"label": "Level",
|
|
7689
|
+
"unit": "%"
|
|
7690
|
+
},
|
|
7691
|
+
{
|
|
7692
|
+
"path": "voltageMv",
|
|
7693
|
+
"label": "Voltage",
|
|
7694
|
+
"unit": "mV"
|
|
7695
|
+
},
|
|
7696
|
+
{
|
|
7697
|
+
"path": "currentMa",
|
|
7698
|
+
"label": "Current",
|
|
7699
|
+
"unit": "mA",
|
|
7700
|
+
"precision": 1
|
|
7701
|
+
},
|
|
7702
|
+
{
|
|
7703
|
+
"path": "gaugeTemperatureC",
|
|
7704
|
+
"label": "Gauge temperature",
|
|
7705
|
+
"unit": "\xB0C"
|
|
7706
|
+
},
|
|
7707
|
+
{
|
|
7708
|
+
"path": "chargerState",
|
|
7709
|
+
"label": "Charger",
|
|
7710
|
+
"format": "label"
|
|
7711
|
+
},
|
|
7712
|
+
{
|
|
7713
|
+
"path": "chargerFault",
|
|
7714
|
+
"label": "Fault"
|
|
7715
|
+
}
|
|
7716
|
+
]
|
|
7717
|
+
}
|
|
7718
|
+
}
|
|
7560
7719
|
}
|
|
7561
7720
|
}
|
|
7562
7721
|
};
|
|
@@ -7609,7 +7768,7 @@ var settingsValueSchema = {
|
|
|
7609
7768
|
"minimum": 1,
|
|
7610
7769
|
"maximum": 255,
|
|
7611
7770
|
"title": "Movement detection count",
|
|
7612
|
-
"description": "
|
|
7771
|
+
"description": "Consecutive wake-engine periods above the differential threshold. One period allows a brief tap to wake the tracker."
|
|
7613
7772
|
},
|
|
7614
7773
|
"chargingInputCurrentLimit": {
|
|
7615
7774
|
"type": "integer",
|
|
@@ -7969,12 +8128,24 @@ var settingsValueSchema = {
|
|
|
7969
8128
|
"maximum": 86400,
|
|
7970
8129
|
"title": "Report interval on battery",
|
|
7971
8130
|
"description": "Interval between periodic status reports while battery power is confirmed. Zero disables periodic reports on battery (the default). Does not control report contents, positioning requests, event reports or local battery safety checks."
|
|
8131
|
+
},
|
|
8132
|
+
"accelerationSamplingEnabled": {
|
|
8133
|
+
"type": "boolean",
|
|
8134
|
+
"title": "Acceleration sampling",
|
|
8135
|
+
"description": "Read the three acceleration axes every 100 ms while sensor service is active. Enable only on trackers qualified for the extra current."
|
|
8136
|
+
},
|
|
8137
|
+
"accelerationChangePercent": {
|
|
8138
|
+
"type": "integer",
|
|
8139
|
+
"minimum": 1,
|
|
8140
|
+
"maximum": 100,
|
|
8141
|
+
"title": "Acceleration change threshold",
|
|
8142
|
+
"description": "Record a change when an axis changes by more than this percentage of its last recorded magnitude, with a 125 mg minimum denominator."
|
|
7972
8143
|
}
|
|
7973
8144
|
},
|
|
7974
8145
|
"x-bf": {
|
|
7975
8146
|
"domain": "settings",
|
|
7976
8147
|
"version": 1,
|
|
7977
|
-
"settingsSchemaVersion":
|
|
8148
|
+
"settingsSchemaVersion": 39
|
|
7978
8149
|
}
|
|
7979
8150
|
};
|
|
7980
8151
|
var observationDefinitions = [
|
|
@@ -8429,7 +8600,7 @@ var observationDefinitions = [
|
|
|
8429
8600
|
"requestScoped": false,
|
|
8430
8601
|
"presentation": {
|
|
8431
8602
|
"displayName": "Charging changed",
|
|
8432
|
-
"description": "
|
|
8603
|
+
"description": "Legacy charging transition retained for older firmware and stored history. New firmware reports battery.charging.status through diagnostics instead.",
|
|
8433
8604
|
"hiddenByDefault": true,
|
|
8434
8605
|
"formatter": "transition"
|
|
8435
8606
|
}
|
|
@@ -9321,7 +9492,7 @@ var observationDefinitions = [
|
|
|
9321
9492
|
"requestScoped": false,
|
|
9322
9493
|
"presentation": {
|
|
9323
9494
|
"displayName": "Power external power changed",
|
|
9324
|
-
"description": "
|
|
9495
|
+
"description": "Legacy external-power transition retained for older firmware and stored history. New firmware reports battery.externalPower at boot and on confirmed state changes instead.",
|
|
9325
9496
|
"hiddenByDefault": true,
|
|
9326
9497
|
"formatter": "transition"
|
|
9327
9498
|
}
|
|
@@ -10113,6 +10284,83 @@ var observationDefinitions = [
|
|
|
10113
10284
|
"description": "Full nRF9160 factory DEVICEID, encoded losslessly as 13 uppercase Crockford Base32 characters. The input bytes are the little-endian DEVICEID[0] word followed by little-endian DEVICEID[1], matching the physical flasher hardware ID. Captured once at startup; distinct from the assigned product serial.",
|
|
10114
10285
|
"hiddenByDefault": false
|
|
10115
10286
|
}
|
|
10287
|
+
},
|
|
10288
|
+
{
|
|
10289
|
+
"id": 185,
|
|
10290
|
+
"name": "movement.accelerationChanged",
|
|
10291
|
+
"role": "event",
|
|
10292
|
+
"subject": "device",
|
|
10293
|
+
"producer": "device",
|
|
10294
|
+
"requestScoped": false,
|
|
10295
|
+
"presentation": {
|
|
10296
|
+
"displayName": "Acceleration changed",
|
|
10297
|
+
"description": "Three-axis acceleration at the sample time. Bits 0, 1 and 2 identify the X, Y and Z axes that crossed the configured threshold.",
|
|
10298
|
+
"hiddenByDefault": false,
|
|
10299
|
+
"formatter": "fields",
|
|
10300
|
+
"fields": [
|
|
10301
|
+
{
|
|
10302
|
+
"path": "xMg",
|
|
10303
|
+
"unit": "mg"
|
|
10304
|
+
},
|
|
10305
|
+
{
|
|
10306
|
+
"path": "yMg",
|
|
10307
|
+
"unit": "mg"
|
|
10308
|
+
},
|
|
10309
|
+
{
|
|
10310
|
+
"path": "zMg",
|
|
10311
|
+
"unit": "mg"
|
|
10312
|
+
},
|
|
10313
|
+
{
|
|
10314
|
+
"path": "changedAxes"
|
|
10315
|
+
}
|
|
10316
|
+
]
|
|
10317
|
+
}
|
|
10318
|
+
},
|
|
10319
|
+
{
|
|
10320
|
+
"id": 186,
|
|
10321
|
+
"name": "battery.module.snapshot",
|
|
10322
|
+
"role": "measurement",
|
|
10323
|
+
"subject": "batteryModule",
|
|
10324
|
+
"producer": "device",
|
|
10325
|
+
"requestScoped": false,
|
|
10326
|
+
"presentation": {
|
|
10327
|
+
"displayName": "Battery module snapshot",
|
|
10328
|
+
"description": "Level, voltage, signed current, gauge temperature and charger state/fault from one complete validated module sample. MeasuredAt is the original sample time; gauge temperature is not necessarily cell temperature. The module identity is the observation subject. Raw thermistor ADC, guard internals, settings and registers remain separate diagnostics.",
|
|
10329
|
+
"hiddenByDefault": false,
|
|
10330
|
+
"formatter": "fields",
|
|
10331
|
+
"fields": [
|
|
10332
|
+
{
|
|
10333
|
+
"path": "level",
|
|
10334
|
+
"label": "Level",
|
|
10335
|
+
"unit": "%"
|
|
10336
|
+
},
|
|
10337
|
+
{
|
|
10338
|
+
"path": "voltageMv",
|
|
10339
|
+
"label": "Voltage",
|
|
10340
|
+
"unit": "mV"
|
|
10341
|
+
},
|
|
10342
|
+
{
|
|
10343
|
+
"path": "currentMa",
|
|
10344
|
+
"label": "Current",
|
|
10345
|
+
"unit": "mA",
|
|
10346
|
+
"precision": 1
|
|
10347
|
+
},
|
|
10348
|
+
{
|
|
10349
|
+
"path": "gaugeTemperatureC",
|
|
10350
|
+
"label": "Gauge temperature",
|
|
10351
|
+
"unit": "\xB0C"
|
|
10352
|
+
},
|
|
10353
|
+
{
|
|
10354
|
+
"path": "chargerState",
|
|
10355
|
+
"label": "Charger",
|
|
10356
|
+
"format": "label"
|
|
10357
|
+
},
|
|
10358
|
+
{
|
|
10359
|
+
"path": "chargerFault",
|
|
10360
|
+
"label": "Fault"
|
|
10361
|
+
}
|
|
10362
|
+
]
|
|
10363
|
+
}
|
|
10116
10364
|
}
|
|
10117
10365
|
];
|
|
10118
10366
|
|