@bikefinder/staff-sdk 0.13.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/dist/{chunk-WQGCHZBN.js → chunk-2RDQSYD5.js} +298 -3
- package/dist/index.d.ts +342 -8
- package/dist/index.js +257 -9
- package/dist/schemas.d.ts +86 -0
- package/dist/schemas.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -37017,6 +37017,36 @@ export type Observation = {
|
|
|
37017
37017
|
type: "device.hardwareId";
|
|
37018
37018
|
subject: null;
|
|
37019
37019
|
value: string;
|
|
37020
|
+
} | {
|
|
37021
|
+
id: ObservationId;
|
|
37022
|
+
serialNumber: string;
|
|
37023
|
+
measuredAt: string;
|
|
37024
|
+
receivedAt: string;
|
|
37025
|
+
requestId: number | null;
|
|
37026
|
+
type: "movement.accelerationChanged";
|
|
37027
|
+
subject: null;
|
|
37028
|
+
value: {
|
|
37029
|
+
xMg: number;
|
|
37030
|
+
yMg: number;
|
|
37031
|
+
zMg: number;
|
|
37032
|
+
changedAxes: number;
|
|
37033
|
+
};
|
|
37034
|
+
} | {
|
|
37035
|
+
id: ObservationId;
|
|
37036
|
+
serialNumber: string;
|
|
37037
|
+
measuredAt: string;
|
|
37038
|
+
receivedAt: string;
|
|
37039
|
+
requestId: number | null;
|
|
37040
|
+
type: "battery.module.snapshot";
|
|
37041
|
+
subject: ModuleSubject;
|
|
37042
|
+
value: {
|
|
37043
|
+
level: number;
|
|
37044
|
+
voltageMv: number;
|
|
37045
|
+
currentMa: number;
|
|
37046
|
+
gaugeTemperatureC: number;
|
|
37047
|
+
chargerState: "ready" | "charging" | "full" | "fault";
|
|
37048
|
+
chargerFault: number;
|
|
37049
|
+
};
|
|
37020
37050
|
};
|
|
37021
37051
|
export type ObservationSeries = {
|
|
37022
37052
|
type: "agnss.completed";
|
|
@@ -37303,6 +37333,12 @@ export type ObservationSeries = {
|
|
|
37303
37333
|
} | {
|
|
37304
37334
|
type: "device.hardwareId";
|
|
37305
37335
|
subject: null;
|
|
37336
|
+
} | {
|
|
37337
|
+
type: "movement.accelerationChanged";
|
|
37338
|
+
subject: null;
|
|
37339
|
+
} | {
|
|
37340
|
+
type: "battery.module.snapshot";
|
|
37341
|
+
subject: ModuleSubject;
|
|
37306
37342
|
};
|
|
37307
37343
|
export declare const observationSeries: z$1.ZodCustom<ObservationSeries, ObservationSeries>;
|
|
37308
37344
|
declare const observationResponse: z$1.ZodType<Observation>;
|
|
@@ -46596,6 +46632,8 @@ declare const awsContract: {
|
|
|
46596
46632
|
wifiScanType?: "active" | "passive" | undefined;
|
|
46597
46633
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
46598
46634
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
46635
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
46636
|
+
accelerationChangePercent?: number | undefined;
|
|
46599
46637
|
};
|
|
46600
46638
|
reported: {
|
|
46601
46639
|
batteryIntervalSeconds?: number | undefined;
|
|
@@ -46654,6 +46692,8 @@ declare const awsContract: {
|
|
|
46654
46692
|
wifiScanType?: "active" | "passive" | undefined;
|
|
46655
46693
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
46656
46694
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
46695
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
46696
|
+
accelerationChangePercent?: number | undefined;
|
|
46657
46697
|
};
|
|
46658
46698
|
application: {
|
|
46659
46699
|
settings: {
|
|
@@ -46745,6 +46785,8 @@ declare const awsContract: {
|
|
|
46745
46785
|
wifiScanType?: "active" | "passive" | undefined;
|
|
46746
46786
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
46747
46787
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
46788
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
46789
|
+
accelerationChangePercent?: number | undefined;
|
|
46748
46790
|
};
|
|
46749
46791
|
reported: {
|
|
46750
46792
|
batteryIntervalSeconds?: number | undefined;
|
|
@@ -46803,6 +46845,8 @@ declare const awsContract: {
|
|
|
46803
46845
|
wifiScanType?: "active" | "passive" | undefined;
|
|
46804
46846
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
46805
46847
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
46848
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
46849
|
+
accelerationChangePercent?: number | undefined;
|
|
46806
46850
|
};
|
|
46807
46851
|
application: {
|
|
46808
46852
|
settings: {
|
|
@@ -48016,6 +48060,8 @@ declare const awsContract: {
|
|
|
48016
48060
|
}>>;
|
|
48017
48061
|
chargingStatusMaxAgeSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48018
48062
|
reportIntervalOnBatterySeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48063
|
+
accelerationSamplingEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
48064
|
+
accelerationChangePercent: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48019
48065
|
}, import("zod/v4/core").$strip>;
|
|
48020
48066
|
reported: import("zod").ZodObject<{
|
|
48021
48067
|
batteryIntervalSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
@@ -48104,6 +48150,8 @@ declare const awsContract: {
|
|
|
48104
48150
|
}>>;
|
|
48105
48151
|
chargingStatusMaxAgeSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48106
48152
|
reportIntervalOnBatterySeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48153
|
+
accelerationSamplingEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
48154
|
+
accelerationChangePercent: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48107
48155
|
}, import("zod/v4/core").$strip>;
|
|
48108
48156
|
application: import("zod").ZodObject<{
|
|
48109
48157
|
settings: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -49326,6 +49374,8 @@ declare const awsContract: {
|
|
|
49326
49374
|
}>>;
|
|
49327
49375
|
chargingStatusMaxAgeSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49328
49376
|
reportIntervalOnBatterySeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49377
|
+
accelerationSamplingEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
49378
|
+
accelerationChangePercent: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49329
49379
|
}, import("zod/v4/core").$strict>;
|
|
49330
49380
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
49331
49381
|
version: import("zod").ZodInt;
|
|
@@ -49417,6 +49467,8 @@ declare const awsContract: {
|
|
|
49417
49467
|
}>>;
|
|
49418
49468
|
chargingStatusMaxAgeSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49419
49469
|
reportIntervalOnBatterySeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49470
|
+
accelerationSamplingEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
49471
|
+
accelerationChangePercent: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49420
49472
|
}, import("zod/v4/core").$strip>;
|
|
49421
49473
|
reported: import("zod").ZodObject<{
|
|
49422
49474
|
batteryIntervalSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
@@ -49505,6 +49557,8 @@ declare const awsContract: {
|
|
|
49505
49557
|
}>>;
|
|
49506
49558
|
chargingStatusMaxAgeSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49507
49559
|
reportIntervalOnBatterySeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49560
|
+
accelerationSamplingEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
49561
|
+
accelerationChangePercent: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49508
49562
|
}, import("zod/v4/core").$strip>;
|
|
49509
49563
|
application: import("zod").ZodObject<{
|
|
49510
49564
|
settings: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -53448,6 +53502,8 @@ declare const awsContract: {
|
|
|
53448
53502
|
"outbox.status": "outbox.status";
|
|
53449
53503
|
"power.statistics": "power.statistics";
|
|
53450
53504
|
"device.hardwareId": "device.hardwareId";
|
|
53505
|
+
"movement.accelerationChanged": "movement.accelerationChanged";
|
|
53506
|
+
"battery.module.snapshot": "battery.module.snapshot";
|
|
53451
53507
|
}>;
|
|
53452
53508
|
subject: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
53453
53509
|
}, import("zod/v4/core").$strict>>>;
|
|
@@ -113343,6 +113399,8 @@ export declare const observationHistoryInput: z$1.ZodObject<{
|
|
|
113343
113399
|
"outbox.status": "outbox.status";
|
|
113344
113400
|
"power.statistics": "power.statistics";
|
|
113345
113401
|
"device.hardwareId": "device.hardwareId";
|
|
113402
|
+
"movement.accelerationChanged": "movement.accelerationChanged";
|
|
113403
|
+
"battery.module.snapshot": "battery.module.snapshot";
|
|
113346
113404
|
}>;
|
|
113347
113405
|
subject: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
113348
113406
|
}, z$1.core.$strict>>>;
|
|
@@ -116174,6 +116232,8 @@ export declare const staffObservationContract: {
|
|
|
116174
116232
|
"outbox.status": "outbox.status";
|
|
116175
116233
|
"power.statistics": "power.statistics";
|
|
116176
116234
|
"device.hardwareId": "device.hardwareId";
|
|
116235
|
+
"movement.accelerationChanged": "movement.accelerationChanged";
|
|
116236
|
+
"battery.module.snapshot": "battery.module.snapshot";
|
|
116177
116237
|
}>;
|
|
116178
116238
|
subject: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
116179
116239
|
}, z$1.core.$strict>>>;
|
|
@@ -118096,6 +118156,8 @@ export declare const settingsSnapshot: z$1.ZodObject<{
|
|
|
118096
118156
|
}>>;
|
|
118097
118157
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118098
118158
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118159
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
118160
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
118099
118161
|
}, z$1.core.$strip>;
|
|
118100
118162
|
reported: z$1.ZodObject<{
|
|
118101
118163
|
batteryIntervalSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
@@ -118184,6 +118246,8 @@ export declare const settingsSnapshot: z$1.ZodObject<{
|
|
|
118184
118246
|
}>>;
|
|
118185
118247
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118186
118248
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118249
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
118250
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
118187
118251
|
}, z$1.core.$strip>;
|
|
118188
118252
|
application: z$1.ZodObject<{
|
|
118189
118253
|
settings: z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -118320,6 +118384,8 @@ export declare const settingsUpdateInput: z$1.ZodObject<{
|
|
|
118320
118384
|
}>>;
|
|
118321
118385
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118322
118386
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118387
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
118388
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
118323
118389
|
}, z$1.core.$strict>;
|
|
118324
118390
|
}, z$1.core.$strict>;
|
|
118325
118391
|
export declare const settingsErrors: {
|
|
@@ -119475,6 +119541,8 @@ export declare const staffSettingsContract: {
|
|
|
119475
119541
|
wifiScanType?: "active" | "passive" | undefined;
|
|
119476
119542
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
119477
119543
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
119544
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
119545
|
+
accelerationChangePercent?: number | undefined;
|
|
119478
119546
|
};
|
|
119479
119547
|
reported: {
|
|
119480
119548
|
batteryIntervalSeconds?: number | undefined;
|
|
@@ -119533,6 +119601,8 @@ export declare const staffSettingsContract: {
|
|
|
119533
119601
|
wifiScanType?: "active" | "passive" | undefined;
|
|
119534
119602
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
119535
119603
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
119604
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
119605
|
+
accelerationChangePercent?: number | undefined;
|
|
119536
119606
|
};
|
|
119537
119607
|
application: {
|
|
119538
119608
|
settings: {
|
|
@@ -119624,6 +119694,8 @@ export declare const staffSettingsContract: {
|
|
|
119624
119694
|
wifiScanType?: "active" | "passive" | undefined;
|
|
119625
119695
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
119626
119696
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
119697
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
119698
|
+
accelerationChangePercent?: number | undefined;
|
|
119627
119699
|
};
|
|
119628
119700
|
reported: {
|
|
119629
119701
|
batteryIntervalSeconds?: number | undefined;
|
|
@@ -119682,6 +119754,8 @@ export declare const staffSettingsContract: {
|
|
|
119682
119754
|
wifiScanType?: "active" | "passive" | undefined;
|
|
119683
119755
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
119684
119756
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
119757
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
119758
|
+
accelerationChangePercent?: number | undefined;
|
|
119685
119759
|
};
|
|
119686
119760
|
application: {
|
|
119687
119761
|
settings: {
|
|
@@ -120895,6 +120969,8 @@ export declare const staffSettingsContract: {
|
|
|
120895
120969
|
}>>;
|
|
120896
120970
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
120897
120971
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
120972
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
120973
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
120898
120974
|
}, z$1.core.$strip>;
|
|
120899
120975
|
reported: z$1.ZodObject<{
|
|
120900
120976
|
batteryIntervalSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
@@ -120983,6 +121059,8 @@ export declare const staffSettingsContract: {
|
|
|
120983
121059
|
}>>;
|
|
120984
121060
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
120985
121061
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
121062
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
121063
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
120986
121064
|
}, z$1.core.$strip>;
|
|
120987
121065
|
application: z$1.ZodObject<{
|
|
120988
121066
|
settings: z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -122205,6 +122283,8 @@ export declare const staffSettingsContract: {
|
|
|
122205
122283
|
}>>;
|
|
122206
122284
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122207
122285
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122286
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
122287
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
122208
122288
|
}, z$1.core.$strict>;
|
|
122209
122289
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
122210
122290
|
version: z$1.ZodInt;
|
|
@@ -122296,6 +122376,8 @@ export declare const staffSettingsContract: {
|
|
|
122296
122376
|
}>>;
|
|
122297
122377
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122298
122378
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122379
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
122380
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
122299
122381
|
}, z$1.core.$strip>;
|
|
122300
122382
|
reported: z$1.ZodObject<{
|
|
122301
122383
|
batteryIntervalSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
@@ -122384,6 +122466,8 @@ export declare const staffSettingsContract: {
|
|
|
122384
122466
|
}>>;
|
|
122385
122467
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122386
122468
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122469
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
122470
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
122387
122471
|
}, z$1.core.$strip>;
|
|
122388
122472
|
application: z$1.ZodObject<{
|
|
122389
122473
|
settings: z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -196791,7 +196875,7 @@ export declare const observationValueSchema: {
|
|
|
196791
196875
|
];
|
|
196792
196876
|
readonly additionalProperties: false;
|
|
196793
196877
|
readonly title: "Charging changed";
|
|
196794
|
-
readonly description: "
|
|
196878
|
+
readonly description: "Legacy charging transition retained for older firmware and stored history. New firmware reports battery.charging.status through diagnostics instead.";
|
|
196795
196879
|
readonly "x-bf": {
|
|
196796
196880
|
readonly definitionId: 25;
|
|
196797
196881
|
readonly role: "event";
|
|
@@ -196800,7 +196884,7 @@ export declare const observationValueSchema: {
|
|
|
196800
196884
|
readonly requestScoped: false;
|
|
196801
196885
|
readonly presentation: {
|
|
196802
196886
|
readonly displayName: "Charging changed";
|
|
196803
|
-
readonly description: "
|
|
196887
|
+
readonly description: "Legacy charging transition retained for older firmware and stored history. New firmware reports battery.charging.status through diagnostics instead.";
|
|
196804
196888
|
readonly hiddenByDefault: true;
|
|
196805
196889
|
readonly formatter: "transition";
|
|
196806
196890
|
};
|
|
@@ -198709,7 +198793,7 @@ export declare const observationValueSchema: {
|
|
|
198709
198793
|
];
|
|
198710
198794
|
readonly additionalProperties: false;
|
|
198711
198795
|
readonly title: "Power external power changed";
|
|
198712
|
-
readonly description: "
|
|
198796
|
+
readonly 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.";
|
|
198713
198797
|
readonly "x-bf": {
|
|
198714
198798
|
readonly definitionId: 136;
|
|
198715
198799
|
readonly role: "event";
|
|
@@ -198718,7 +198802,7 @@ export declare const observationValueSchema: {
|
|
|
198718
198802
|
readonly requestScoped: false;
|
|
198719
198803
|
readonly presentation: {
|
|
198720
198804
|
readonly displayName: "Power external power changed";
|
|
198721
|
-
readonly description: "
|
|
198805
|
+
readonly 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.";
|
|
198722
198806
|
readonly hiddenByDefault: true;
|
|
198723
198807
|
readonly formatter: "transition";
|
|
198724
198808
|
};
|
|
@@ -200821,6 +200905,165 @@ export declare const observationValueSchema: {
|
|
|
200821
200905
|
};
|
|
200822
200906
|
};
|
|
200823
200907
|
};
|
|
200908
|
+
readonly "movement.accelerationChanged": {
|
|
200909
|
+
readonly type: "object";
|
|
200910
|
+
readonly properties: {
|
|
200911
|
+
readonly xMg: {
|
|
200912
|
+
readonly type: "integer";
|
|
200913
|
+
readonly minimum: -4000;
|
|
200914
|
+
readonly maximum: 4000;
|
|
200915
|
+
};
|
|
200916
|
+
readonly yMg: {
|
|
200917
|
+
readonly type: "integer";
|
|
200918
|
+
readonly minimum: -4000;
|
|
200919
|
+
readonly maximum: 4000;
|
|
200920
|
+
};
|
|
200921
|
+
readonly zMg: {
|
|
200922
|
+
readonly type: "integer";
|
|
200923
|
+
readonly minimum: -4000;
|
|
200924
|
+
readonly maximum: 4000;
|
|
200925
|
+
};
|
|
200926
|
+
readonly changedAxes: {
|
|
200927
|
+
readonly type: "integer";
|
|
200928
|
+
readonly minimum: 1;
|
|
200929
|
+
readonly maximum: 7;
|
|
200930
|
+
};
|
|
200931
|
+
};
|
|
200932
|
+
readonly required: readonly [
|
|
200933
|
+
"xMg",
|
|
200934
|
+
"yMg",
|
|
200935
|
+
"zMg",
|
|
200936
|
+
"changedAxes"
|
|
200937
|
+
];
|
|
200938
|
+
readonly additionalProperties: false;
|
|
200939
|
+
readonly title: "Acceleration changed";
|
|
200940
|
+
readonly 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.";
|
|
200941
|
+
readonly "x-bf": {
|
|
200942
|
+
readonly definitionId: 185;
|
|
200943
|
+
readonly role: "event";
|
|
200944
|
+
readonly subject: "device";
|
|
200945
|
+
readonly producer: "device";
|
|
200946
|
+
readonly requestScoped: false;
|
|
200947
|
+
readonly presentation: {
|
|
200948
|
+
readonly displayName: "Acceleration changed";
|
|
200949
|
+
readonly 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.";
|
|
200950
|
+
readonly hiddenByDefault: false;
|
|
200951
|
+
readonly formatter: "fields";
|
|
200952
|
+
readonly fields: readonly [
|
|
200953
|
+
{
|
|
200954
|
+
readonly path: "xMg";
|
|
200955
|
+
readonly unit: "mg";
|
|
200956
|
+
},
|
|
200957
|
+
{
|
|
200958
|
+
readonly path: "yMg";
|
|
200959
|
+
readonly unit: "mg";
|
|
200960
|
+
},
|
|
200961
|
+
{
|
|
200962
|
+
readonly path: "zMg";
|
|
200963
|
+
readonly unit: "mg";
|
|
200964
|
+
},
|
|
200965
|
+
{
|
|
200966
|
+
readonly path: "changedAxes";
|
|
200967
|
+
}
|
|
200968
|
+
];
|
|
200969
|
+
};
|
|
200970
|
+
};
|
|
200971
|
+
};
|
|
200972
|
+
readonly "battery.module.snapshot": {
|
|
200973
|
+
readonly type: "object";
|
|
200974
|
+
readonly properties: {
|
|
200975
|
+
readonly level: {
|
|
200976
|
+
readonly type: "integer";
|
|
200977
|
+
readonly minimum: 0;
|
|
200978
|
+
readonly maximum: 100;
|
|
200979
|
+
};
|
|
200980
|
+
readonly voltageMv: {
|
|
200981
|
+
readonly type: "integer";
|
|
200982
|
+
readonly minimum: 0;
|
|
200983
|
+
readonly maximum: 65535;
|
|
200984
|
+
};
|
|
200985
|
+
readonly currentMa: {
|
|
200986
|
+
readonly type: "number";
|
|
200987
|
+
readonly minimum: -3276.8;
|
|
200988
|
+
readonly maximum: 3276.7;
|
|
200989
|
+
};
|
|
200990
|
+
readonly gaugeTemperatureC: {
|
|
200991
|
+
readonly type: "integer";
|
|
200992
|
+
readonly minimum: -128;
|
|
200993
|
+
readonly maximum: 127;
|
|
200994
|
+
};
|
|
200995
|
+
readonly chargerState: {
|
|
200996
|
+
readonly type: "string";
|
|
200997
|
+
readonly enum: readonly [
|
|
200998
|
+
"ready",
|
|
200999
|
+
"charging",
|
|
201000
|
+
"full",
|
|
201001
|
+
"fault"
|
|
201002
|
+
];
|
|
201003
|
+
};
|
|
201004
|
+
readonly chargerFault: {
|
|
201005
|
+
readonly type: "integer";
|
|
201006
|
+
readonly minimum: 0;
|
|
201007
|
+
readonly maximum: 7;
|
|
201008
|
+
};
|
|
201009
|
+
};
|
|
201010
|
+
readonly required: readonly [
|
|
201011
|
+
"level",
|
|
201012
|
+
"voltageMv",
|
|
201013
|
+
"currentMa",
|
|
201014
|
+
"gaugeTemperatureC",
|
|
201015
|
+
"chargerState",
|
|
201016
|
+
"chargerFault"
|
|
201017
|
+
];
|
|
201018
|
+
readonly additionalProperties: false;
|
|
201019
|
+
readonly title: "Battery module snapshot";
|
|
201020
|
+
readonly 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.";
|
|
201021
|
+
readonly "x-bf": {
|
|
201022
|
+
readonly definitionId: 186;
|
|
201023
|
+
readonly role: "measurement";
|
|
201024
|
+
readonly subject: "batteryModule";
|
|
201025
|
+
readonly producer: "device";
|
|
201026
|
+
readonly requestScoped: false;
|
|
201027
|
+
readonly presentation: {
|
|
201028
|
+
readonly displayName: "Battery module snapshot";
|
|
201029
|
+
readonly 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.";
|
|
201030
|
+
readonly hiddenByDefault: false;
|
|
201031
|
+
readonly formatter: "fields";
|
|
201032
|
+
readonly fields: readonly [
|
|
201033
|
+
{
|
|
201034
|
+
readonly path: "level";
|
|
201035
|
+
readonly label: "Level";
|
|
201036
|
+
readonly unit: "%";
|
|
201037
|
+
},
|
|
201038
|
+
{
|
|
201039
|
+
readonly path: "voltageMv";
|
|
201040
|
+
readonly label: "Voltage";
|
|
201041
|
+
readonly unit: "mV";
|
|
201042
|
+
},
|
|
201043
|
+
{
|
|
201044
|
+
readonly path: "currentMa";
|
|
201045
|
+
readonly label: "Current";
|
|
201046
|
+
readonly unit: "mA";
|
|
201047
|
+
readonly precision: 1;
|
|
201048
|
+
},
|
|
201049
|
+
{
|
|
201050
|
+
readonly path: "gaugeTemperatureC";
|
|
201051
|
+
readonly label: "Gauge temperature";
|
|
201052
|
+
readonly unit: "\u00B0C";
|
|
201053
|
+
},
|
|
201054
|
+
{
|
|
201055
|
+
readonly path: "chargerState";
|
|
201056
|
+
readonly label: "Charger";
|
|
201057
|
+
readonly format: "label";
|
|
201058
|
+
},
|
|
201059
|
+
{
|
|
201060
|
+
readonly path: "chargerFault";
|
|
201061
|
+
readonly label: "Fault";
|
|
201062
|
+
}
|
|
201063
|
+
];
|
|
201064
|
+
};
|
|
201065
|
+
};
|
|
201066
|
+
};
|
|
200824
201067
|
};
|
|
200825
201068
|
};
|
|
200826
201069
|
export declare const settingsValueSchema: {
|
|
@@ -200872,7 +201115,7 @@ export declare const settingsValueSchema: {
|
|
|
200872
201115
|
readonly minimum: 1;
|
|
200873
201116
|
readonly maximum: 255;
|
|
200874
201117
|
readonly title: "Movement detection count";
|
|
200875
|
-
readonly description: "
|
|
201118
|
+
readonly description: "Consecutive wake-engine periods above the differential threshold. One period allows a brief tap to wake the tracker.";
|
|
200876
201119
|
};
|
|
200877
201120
|
readonly chargingInputCurrentLimit: {
|
|
200878
201121
|
readonly type: "integer";
|
|
@@ -201233,11 +201476,23 @@ export declare const settingsValueSchema: {
|
|
|
201233
201476
|
readonly title: "Report interval on battery";
|
|
201234
201477
|
readonly 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.";
|
|
201235
201478
|
};
|
|
201479
|
+
readonly accelerationSamplingEnabled: {
|
|
201480
|
+
readonly type: "boolean";
|
|
201481
|
+
readonly title: "Acceleration sampling";
|
|
201482
|
+
readonly description: "Read the three acceleration axes every 100 ms while sensor service is active. Enable only on trackers qualified for the extra current.";
|
|
201483
|
+
};
|
|
201484
|
+
readonly accelerationChangePercent: {
|
|
201485
|
+
readonly type: "integer";
|
|
201486
|
+
readonly minimum: 1;
|
|
201487
|
+
readonly maximum: 100;
|
|
201488
|
+
readonly title: "Acceleration change threshold";
|
|
201489
|
+
readonly description: "Record a change when an axis changes by more than this percentage of its last recorded magnitude, with a 125 mg minimum denominator.";
|
|
201490
|
+
};
|
|
201236
201491
|
};
|
|
201237
201492
|
readonly "x-bf": {
|
|
201238
201493
|
readonly domain: "settings";
|
|
201239
201494
|
readonly version: 1;
|
|
201240
|
-
readonly settingsSchemaVersion:
|
|
201495
|
+
readonly settingsSchemaVersion: 39;
|
|
201241
201496
|
};
|
|
201242
201497
|
};
|
|
201243
201498
|
export declare const observationDefinitions: readonly [
|
|
@@ -201692,7 +201947,7 @@ export declare const observationDefinitions: readonly [
|
|
|
201692
201947
|
readonly requestScoped: false;
|
|
201693
201948
|
readonly presentation: {
|
|
201694
201949
|
readonly displayName: "Charging changed";
|
|
201695
|
-
readonly description: "
|
|
201950
|
+
readonly description: "Legacy charging transition retained for older firmware and stored history. New firmware reports battery.charging.status through diagnostics instead.";
|
|
201696
201951
|
readonly hiddenByDefault: true;
|
|
201697
201952
|
readonly formatter: "transition";
|
|
201698
201953
|
};
|
|
@@ -202585,7 +202840,7 @@ export declare const observationDefinitions: readonly [
|
|
|
202585
202840
|
readonly requestScoped: false;
|
|
202586
202841
|
readonly presentation: {
|
|
202587
202842
|
readonly displayName: "Power external power changed";
|
|
202588
|
-
readonly description: "
|
|
202843
|
+
readonly 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.";
|
|
202589
202844
|
readonly hiddenByDefault: true;
|
|
202590
202845
|
readonly formatter: "transition";
|
|
202591
202846
|
};
|
|
@@ -203377,6 +203632,83 @@ export declare const observationDefinitions: readonly [
|
|
|
203377
203632
|
readonly 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.";
|
|
203378
203633
|
readonly hiddenByDefault: false;
|
|
203379
203634
|
};
|
|
203635
|
+
},
|
|
203636
|
+
{
|
|
203637
|
+
readonly id: 185;
|
|
203638
|
+
readonly name: "movement.accelerationChanged";
|
|
203639
|
+
readonly role: "event";
|
|
203640
|
+
readonly subject: "device";
|
|
203641
|
+
readonly producer: "device";
|
|
203642
|
+
readonly requestScoped: false;
|
|
203643
|
+
readonly presentation: {
|
|
203644
|
+
readonly displayName: "Acceleration changed";
|
|
203645
|
+
readonly 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.";
|
|
203646
|
+
readonly hiddenByDefault: false;
|
|
203647
|
+
readonly formatter: "fields";
|
|
203648
|
+
readonly fields: readonly [
|
|
203649
|
+
{
|
|
203650
|
+
readonly path: "xMg";
|
|
203651
|
+
readonly unit: "mg";
|
|
203652
|
+
},
|
|
203653
|
+
{
|
|
203654
|
+
readonly path: "yMg";
|
|
203655
|
+
readonly unit: "mg";
|
|
203656
|
+
},
|
|
203657
|
+
{
|
|
203658
|
+
readonly path: "zMg";
|
|
203659
|
+
readonly unit: "mg";
|
|
203660
|
+
},
|
|
203661
|
+
{
|
|
203662
|
+
readonly path: "changedAxes";
|
|
203663
|
+
}
|
|
203664
|
+
];
|
|
203665
|
+
};
|
|
203666
|
+
},
|
|
203667
|
+
{
|
|
203668
|
+
readonly id: 186;
|
|
203669
|
+
readonly name: "battery.module.snapshot";
|
|
203670
|
+
readonly role: "measurement";
|
|
203671
|
+
readonly subject: "batteryModule";
|
|
203672
|
+
readonly producer: "device";
|
|
203673
|
+
readonly requestScoped: false;
|
|
203674
|
+
readonly presentation: {
|
|
203675
|
+
readonly displayName: "Battery module snapshot";
|
|
203676
|
+
readonly 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.";
|
|
203677
|
+
readonly hiddenByDefault: false;
|
|
203678
|
+
readonly formatter: "fields";
|
|
203679
|
+
readonly fields: readonly [
|
|
203680
|
+
{
|
|
203681
|
+
readonly path: "level";
|
|
203682
|
+
readonly label: "Level";
|
|
203683
|
+
readonly unit: "%";
|
|
203684
|
+
},
|
|
203685
|
+
{
|
|
203686
|
+
readonly path: "voltageMv";
|
|
203687
|
+
readonly label: "Voltage";
|
|
203688
|
+
readonly unit: "mV";
|
|
203689
|
+
},
|
|
203690
|
+
{
|
|
203691
|
+
readonly path: "currentMa";
|
|
203692
|
+
readonly label: "Current";
|
|
203693
|
+
readonly unit: "mA";
|
|
203694
|
+
readonly precision: 1;
|
|
203695
|
+
},
|
|
203696
|
+
{
|
|
203697
|
+
readonly path: "gaugeTemperatureC";
|
|
203698
|
+
readonly label: "Gauge temperature";
|
|
203699
|
+
readonly unit: "\u00B0C";
|
|
203700
|
+
},
|
|
203701
|
+
{
|
|
203702
|
+
readonly path: "chargerState";
|
|
203703
|
+
readonly label: "Charger";
|
|
203704
|
+
readonly format: "label";
|
|
203705
|
+
},
|
|
203706
|
+
{
|
|
203707
|
+
readonly path: "chargerFault";
|
|
203708
|
+
readonly label: "Fault";
|
|
203709
|
+
}
|
|
203710
|
+
];
|
|
203711
|
+
};
|
|
203380
203712
|
}
|
|
203381
203713
|
];
|
|
203382
203714
|
declare const zDeviceSettings: z.ZodObject<{
|
|
@@ -203466,6 +203798,8 @@ declare const zDeviceSettings: z.ZodObject<{
|
|
|
203466
203798
|
}>>;
|
|
203467
203799
|
chargingStatusMaxAgeSeconds: z.ZodOptional<z.ZodInt>;
|
|
203468
203800
|
reportIntervalOnBatterySeconds: z.ZodOptional<z.ZodInt>;
|
|
203801
|
+
accelerationSamplingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
203802
|
+
accelerationChangePercent: z.ZodOptional<z.ZodInt>;
|
|
203469
203803
|
}, z.core.$strict>;
|
|
203470
203804
|
export type MetricName = (typeof observationDefinitions)[number]["name"];
|
|
203471
203805
|
export type ObservationFact = {
|