@bikefinder/staff-sdk 0.13.0 → 0.13.2
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-KCGGPV4C.js} +299 -3
- package/dist/index.d.ts +369 -8
- package/dist/index.js +262 -9
- package/dist/schemas.d.ts +108 -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,9 @@ 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;
|
|
46637
|
+
automaticBatteryModuleSnapshotsEnabled?: boolean | undefined;
|
|
46599
46638
|
};
|
|
46600
46639
|
reported: {
|
|
46601
46640
|
batteryIntervalSeconds?: number | undefined;
|
|
@@ -46654,6 +46693,9 @@ declare const awsContract: {
|
|
|
46654
46693
|
wifiScanType?: "active" | "passive" | undefined;
|
|
46655
46694
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
46656
46695
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
46696
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
46697
|
+
accelerationChangePercent?: number | undefined;
|
|
46698
|
+
automaticBatteryModuleSnapshotsEnabled?: boolean | undefined;
|
|
46657
46699
|
};
|
|
46658
46700
|
application: {
|
|
46659
46701
|
settings: {
|
|
@@ -46745,6 +46787,9 @@ declare const awsContract: {
|
|
|
46745
46787
|
wifiScanType?: "active" | "passive" | undefined;
|
|
46746
46788
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
46747
46789
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
46790
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
46791
|
+
accelerationChangePercent?: number | undefined;
|
|
46792
|
+
automaticBatteryModuleSnapshotsEnabled?: boolean | undefined;
|
|
46748
46793
|
};
|
|
46749
46794
|
reported: {
|
|
46750
46795
|
batteryIntervalSeconds?: number | undefined;
|
|
@@ -46803,6 +46848,9 @@ declare const awsContract: {
|
|
|
46803
46848
|
wifiScanType?: "active" | "passive" | undefined;
|
|
46804
46849
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
46805
46850
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
46851
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
46852
|
+
accelerationChangePercent?: number | undefined;
|
|
46853
|
+
automaticBatteryModuleSnapshotsEnabled?: boolean | undefined;
|
|
46806
46854
|
};
|
|
46807
46855
|
application: {
|
|
46808
46856
|
settings: {
|
|
@@ -48016,6 +48064,9 @@ declare const awsContract: {
|
|
|
48016
48064
|
}>>;
|
|
48017
48065
|
chargingStatusMaxAgeSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48018
48066
|
reportIntervalOnBatterySeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48067
|
+
accelerationSamplingEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
48068
|
+
accelerationChangePercent: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48069
|
+
automaticBatteryModuleSnapshotsEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
48019
48070
|
}, import("zod/v4/core").$strip>;
|
|
48020
48071
|
reported: import("zod").ZodObject<{
|
|
48021
48072
|
batteryIntervalSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
@@ -48104,6 +48155,9 @@ declare const awsContract: {
|
|
|
48104
48155
|
}>>;
|
|
48105
48156
|
chargingStatusMaxAgeSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48106
48157
|
reportIntervalOnBatterySeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48158
|
+
accelerationSamplingEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
48159
|
+
accelerationChangePercent: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
48160
|
+
automaticBatteryModuleSnapshotsEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
48107
48161
|
}, import("zod/v4/core").$strip>;
|
|
48108
48162
|
application: import("zod").ZodObject<{
|
|
48109
48163
|
settings: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -49326,6 +49380,9 @@ declare const awsContract: {
|
|
|
49326
49380
|
}>>;
|
|
49327
49381
|
chargingStatusMaxAgeSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49328
49382
|
reportIntervalOnBatterySeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49383
|
+
accelerationSamplingEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
49384
|
+
accelerationChangePercent: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49385
|
+
automaticBatteryModuleSnapshotsEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
49329
49386
|
}, import("zod/v4/core").$strict>;
|
|
49330
49387
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
49331
49388
|
version: import("zod").ZodInt;
|
|
@@ -49417,6 +49474,9 @@ declare const awsContract: {
|
|
|
49417
49474
|
}>>;
|
|
49418
49475
|
chargingStatusMaxAgeSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49419
49476
|
reportIntervalOnBatterySeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49477
|
+
accelerationSamplingEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
49478
|
+
accelerationChangePercent: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49479
|
+
automaticBatteryModuleSnapshotsEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
49420
49480
|
}, import("zod/v4/core").$strip>;
|
|
49421
49481
|
reported: import("zod").ZodObject<{
|
|
49422
49482
|
batteryIntervalSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
@@ -49505,6 +49565,9 @@ declare const awsContract: {
|
|
|
49505
49565
|
}>>;
|
|
49506
49566
|
chargingStatusMaxAgeSeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49507
49567
|
reportIntervalOnBatterySeconds: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49568
|
+
accelerationSamplingEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
49569
|
+
accelerationChangePercent: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
49570
|
+
automaticBatteryModuleSnapshotsEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
49508
49571
|
}, import("zod/v4/core").$strip>;
|
|
49509
49572
|
application: import("zod").ZodObject<{
|
|
49510
49573
|
settings: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -53448,6 +53511,8 @@ declare const awsContract: {
|
|
|
53448
53511
|
"outbox.status": "outbox.status";
|
|
53449
53512
|
"power.statistics": "power.statistics";
|
|
53450
53513
|
"device.hardwareId": "device.hardwareId";
|
|
53514
|
+
"movement.accelerationChanged": "movement.accelerationChanged";
|
|
53515
|
+
"battery.module.snapshot": "battery.module.snapshot";
|
|
53451
53516
|
}>;
|
|
53452
53517
|
subject: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
53453
53518
|
}, import("zod/v4/core").$strict>>>;
|
|
@@ -113343,6 +113408,8 @@ export declare const observationHistoryInput: z$1.ZodObject<{
|
|
|
113343
113408
|
"outbox.status": "outbox.status";
|
|
113344
113409
|
"power.statistics": "power.statistics";
|
|
113345
113410
|
"device.hardwareId": "device.hardwareId";
|
|
113411
|
+
"movement.accelerationChanged": "movement.accelerationChanged";
|
|
113412
|
+
"battery.module.snapshot": "battery.module.snapshot";
|
|
113346
113413
|
}>;
|
|
113347
113414
|
subject: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
113348
113415
|
}, z$1.core.$strict>>>;
|
|
@@ -116174,6 +116241,8 @@ export declare const staffObservationContract: {
|
|
|
116174
116241
|
"outbox.status": "outbox.status";
|
|
116175
116242
|
"power.statistics": "power.statistics";
|
|
116176
116243
|
"device.hardwareId": "device.hardwareId";
|
|
116244
|
+
"movement.accelerationChanged": "movement.accelerationChanged";
|
|
116245
|
+
"battery.module.snapshot": "battery.module.snapshot";
|
|
116177
116246
|
}>;
|
|
116178
116247
|
subject: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
116179
116248
|
}, z$1.core.$strict>>>;
|
|
@@ -118096,6 +118165,9 @@ export declare const settingsSnapshot: z$1.ZodObject<{
|
|
|
118096
118165
|
}>>;
|
|
118097
118166
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118098
118167
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118168
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
118169
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
118170
|
+
automaticBatteryModuleSnapshotsEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
118099
118171
|
}, z$1.core.$strip>;
|
|
118100
118172
|
reported: z$1.ZodObject<{
|
|
118101
118173
|
batteryIntervalSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
@@ -118184,6 +118256,9 @@ export declare const settingsSnapshot: z$1.ZodObject<{
|
|
|
118184
118256
|
}>>;
|
|
118185
118257
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118186
118258
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118259
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
118260
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
118261
|
+
automaticBatteryModuleSnapshotsEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
118187
118262
|
}, z$1.core.$strip>;
|
|
118188
118263
|
application: z$1.ZodObject<{
|
|
118189
118264
|
settings: z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -118320,6 +118395,9 @@ export declare const settingsUpdateInput: z$1.ZodObject<{
|
|
|
118320
118395
|
}>>;
|
|
118321
118396
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118322
118397
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
118398
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
118399
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
118400
|
+
automaticBatteryModuleSnapshotsEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
118323
118401
|
}, z$1.core.$strict>;
|
|
118324
118402
|
}, z$1.core.$strict>;
|
|
118325
118403
|
export declare const settingsErrors: {
|
|
@@ -119475,6 +119553,9 @@ export declare const staffSettingsContract: {
|
|
|
119475
119553
|
wifiScanType?: "active" | "passive" | undefined;
|
|
119476
119554
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
119477
119555
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
119556
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
119557
|
+
accelerationChangePercent?: number | undefined;
|
|
119558
|
+
automaticBatteryModuleSnapshotsEnabled?: boolean | undefined;
|
|
119478
119559
|
};
|
|
119479
119560
|
reported: {
|
|
119480
119561
|
batteryIntervalSeconds?: number | undefined;
|
|
@@ -119533,6 +119614,9 @@ export declare const staffSettingsContract: {
|
|
|
119533
119614
|
wifiScanType?: "active" | "passive" | undefined;
|
|
119534
119615
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
119535
119616
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
119617
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
119618
|
+
accelerationChangePercent?: number | undefined;
|
|
119619
|
+
automaticBatteryModuleSnapshotsEnabled?: boolean | undefined;
|
|
119536
119620
|
};
|
|
119537
119621
|
application: {
|
|
119538
119622
|
settings: {
|
|
@@ -119624,6 +119708,9 @@ export declare const staffSettingsContract: {
|
|
|
119624
119708
|
wifiScanType?: "active" | "passive" | undefined;
|
|
119625
119709
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
119626
119710
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
119711
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
119712
|
+
accelerationChangePercent?: number | undefined;
|
|
119713
|
+
automaticBatteryModuleSnapshotsEnabled?: boolean | undefined;
|
|
119627
119714
|
};
|
|
119628
119715
|
reported: {
|
|
119629
119716
|
batteryIntervalSeconds?: number | undefined;
|
|
@@ -119682,6 +119769,9 @@ export declare const staffSettingsContract: {
|
|
|
119682
119769
|
wifiScanType?: "active" | "passive" | undefined;
|
|
119683
119770
|
chargingStatusMaxAgeSeconds?: number | undefined;
|
|
119684
119771
|
reportIntervalOnBatterySeconds?: number | undefined;
|
|
119772
|
+
accelerationSamplingEnabled?: boolean | undefined;
|
|
119773
|
+
accelerationChangePercent?: number | undefined;
|
|
119774
|
+
automaticBatteryModuleSnapshotsEnabled?: boolean | undefined;
|
|
119685
119775
|
};
|
|
119686
119776
|
application: {
|
|
119687
119777
|
settings: {
|
|
@@ -120895,6 +120985,9 @@ export declare const staffSettingsContract: {
|
|
|
120895
120985
|
}>>;
|
|
120896
120986
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
120897
120987
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
120988
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
120989
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
120990
|
+
automaticBatteryModuleSnapshotsEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
120898
120991
|
}, z$1.core.$strip>;
|
|
120899
120992
|
reported: z$1.ZodObject<{
|
|
120900
120993
|
batteryIntervalSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
@@ -120983,6 +121076,9 @@ export declare const staffSettingsContract: {
|
|
|
120983
121076
|
}>>;
|
|
120984
121077
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
120985
121078
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
121079
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
121080
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
121081
|
+
automaticBatteryModuleSnapshotsEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
120986
121082
|
}, z$1.core.$strip>;
|
|
120987
121083
|
application: z$1.ZodObject<{
|
|
120988
121084
|
settings: z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -122205,6 +122301,9 @@ export declare const staffSettingsContract: {
|
|
|
122205
122301
|
}>>;
|
|
122206
122302
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122207
122303
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122304
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
122305
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
122306
|
+
automaticBatteryModuleSnapshotsEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
122208
122307
|
}, z$1.core.$strict>;
|
|
122209
122308
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
122210
122309
|
version: z$1.ZodInt;
|
|
@@ -122296,6 +122395,9 @@ export declare const staffSettingsContract: {
|
|
|
122296
122395
|
}>>;
|
|
122297
122396
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122298
122397
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122398
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
122399
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
122400
|
+
automaticBatteryModuleSnapshotsEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
122299
122401
|
}, z$1.core.$strip>;
|
|
122300
122402
|
reported: z$1.ZodObject<{
|
|
122301
122403
|
batteryIntervalSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
@@ -122384,6 +122486,9 @@ export declare const staffSettingsContract: {
|
|
|
122384
122486
|
}>>;
|
|
122385
122487
|
chargingStatusMaxAgeSeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122386
122488
|
reportIntervalOnBatterySeconds: z$1.ZodOptional<z$1.ZodInt>;
|
|
122489
|
+
accelerationSamplingEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
122490
|
+
accelerationChangePercent: z$1.ZodOptional<z$1.ZodInt>;
|
|
122491
|
+
automaticBatteryModuleSnapshotsEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
122387
122492
|
}, z$1.core.$strip>;
|
|
122388
122493
|
application: z$1.ZodObject<{
|
|
122389
122494
|
settings: z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -196791,7 +196896,7 @@ export declare const observationValueSchema: {
|
|
|
196791
196896
|
];
|
|
196792
196897
|
readonly additionalProperties: false;
|
|
196793
196898
|
readonly title: "Charging changed";
|
|
196794
|
-
readonly description: "
|
|
196899
|
+
readonly description: "Legacy charging transition retained for older firmware and stored history. New firmware reports battery.charging.status through diagnostics instead.";
|
|
196795
196900
|
readonly "x-bf": {
|
|
196796
196901
|
readonly definitionId: 25;
|
|
196797
196902
|
readonly role: "event";
|
|
@@ -196800,7 +196905,7 @@ export declare const observationValueSchema: {
|
|
|
196800
196905
|
readonly requestScoped: false;
|
|
196801
196906
|
readonly presentation: {
|
|
196802
196907
|
readonly displayName: "Charging changed";
|
|
196803
|
-
readonly description: "
|
|
196908
|
+
readonly description: "Legacy charging transition retained for older firmware and stored history. New firmware reports battery.charging.status through diagnostics instead.";
|
|
196804
196909
|
readonly hiddenByDefault: true;
|
|
196805
196910
|
readonly formatter: "transition";
|
|
196806
196911
|
};
|
|
@@ -198709,7 +198814,7 @@ export declare const observationValueSchema: {
|
|
|
198709
198814
|
];
|
|
198710
198815
|
readonly additionalProperties: false;
|
|
198711
198816
|
readonly title: "Power external power changed";
|
|
198712
|
-
readonly description: "
|
|
198817
|
+
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
198818
|
readonly "x-bf": {
|
|
198714
198819
|
readonly definitionId: 136;
|
|
198715
198820
|
readonly role: "event";
|
|
@@ -198718,7 +198823,7 @@ export declare const observationValueSchema: {
|
|
|
198718
198823
|
readonly requestScoped: false;
|
|
198719
198824
|
readonly presentation: {
|
|
198720
198825
|
readonly displayName: "Power external power changed";
|
|
198721
|
-
readonly description: "
|
|
198826
|
+
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
198827
|
readonly hiddenByDefault: true;
|
|
198723
198828
|
readonly formatter: "transition";
|
|
198724
198829
|
};
|
|
@@ -200821,6 +200926,165 @@ export declare const observationValueSchema: {
|
|
|
200821
200926
|
};
|
|
200822
200927
|
};
|
|
200823
200928
|
};
|
|
200929
|
+
readonly "movement.accelerationChanged": {
|
|
200930
|
+
readonly type: "object";
|
|
200931
|
+
readonly properties: {
|
|
200932
|
+
readonly xMg: {
|
|
200933
|
+
readonly type: "integer";
|
|
200934
|
+
readonly minimum: -4000;
|
|
200935
|
+
readonly maximum: 4000;
|
|
200936
|
+
};
|
|
200937
|
+
readonly yMg: {
|
|
200938
|
+
readonly type: "integer";
|
|
200939
|
+
readonly minimum: -4000;
|
|
200940
|
+
readonly maximum: 4000;
|
|
200941
|
+
};
|
|
200942
|
+
readonly zMg: {
|
|
200943
|
+
readonly type: "integer";
|
|
200944
|
+
readonly minimum: -4000;
|
|
200945
|
+
readonly maximum: 4000;
|
|
200946
|
+
};
|
|
200947
|
+
readonly changedAxes: {
|
|
200948
|
+
readonly type: "integer";
|
|
200949
|
+
readonly minimum: 1;
|
|
200950
|
+
readonly maximum: 7;
|
|
200951
|
+
};
|
|
200952
|
+
};
|
|
200953
|
+
readonly required: readonly [
|
|
200954
|
+
"xMg",
|
|
200955
|
+
"yMg",
|
|
200956
|
+
"zMg",
|
|
200957
|
+
"changedAxes"
|
|
200958
|
+
];
|
|
200959
|
+
readonly additionalProperties: false;
|
|
200960
|
+
readonly title: "Acceleration changed";
|
|
200961
|
+
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.";
|
|
200962
|
+
readonly "x-bf": {
|
|
200963
|
+
readonly definitionId: 185;
|
|
200964
|
+
readonly role: "event";
|
|
200965
|
+
readonly subject: "device";
|
|
200966
|
+
readonly producer: "device";
|
|
200967
|
+
readonly requestScoped: false;
|
|
200968
|
+
readonly presentation: {
|
|
200969
|
+
readonly displayName: "Acceleration changed";
|
|
200970
|
+
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.";
|
|
200971
|
+
readonly hiddenByDefault: false;
|
|
200972
|
+
readonly formatter: "fields";
|
|
200973
|
+
readonly fields: readonly [
|
|
200974
|
+
{
|
|
200975
|
+
readonly path: "xMg";
|
|
200976
|
+
readonly unit: "mg";
|
|
200977
|
+
},
|
|
200978
|
+
{
|
|
200979
|
+
readonly path: "yMg";
|
|
200980
|
+
readonly unit: "mg";
|
|
200981
|
+
},
|
|
200982
|
+
{
|
|
200983
|
+
readonly path: "zMg";
|
|
200984
|
+
readonly unit: "mg";
|
|
200985
|
+
},
|
|
200986
|
+
{
|
|
200987
|
+
readonly path: "changedAxes";
|
|
200988
|
+
}
|
|
200989
|
+
];
|
|
200990
|
+
};
|
|
200991
|
+
};
|
|
200992
|
+
};
|
|
200993
|
+
readonly "battery.module.snapshot": {
|
|
200994
|
+
readonly type: "object";
|
|
200995
|
+
readonly properties: {
|
|
200996
|
+
readonly level: {
|
|
200997
|
+
readonly type: "integer";
|
|
200998
|
+
readonly minimum: 0;
|
|
200999
|
+
readonly maximum: 100;
|
|
201000
|
+
};
|
|
201001
|
+
readonly voltageMv: {
|
|
201002
|
+
readonly type: "integer";
|
|
201003
|
+
readonly minimum: 0;
|
|
201004
|
+
readonly maximum: 65535;
|
|
201005
|
+
};
|
|
201006
|
+
readonly currentMa: {
|
|
201007
|
+
readonly type: "number";
|
|
201008
|
+
readonly minimum: -3276.8;
|
|
201009
|
+
readonly maximum: 3276.7;
|
|
201010
|
+
};
|
|
201011
|
+
readonly gaugeTemperatureC: {
|
|
201012
|
+
readonly type: "integer";
|
|
201013
|
+
readonly minimum: -128;
|
|
201014
|
+
readonly maximum: 127;
|
|
201015
|
+
};
|
|
201016
|
+
readonly chargerState: {
|
|
201017
|
+
readonly type: "string";
|
|
201018
|
+
readonly enum: readonly [
|
|
201019
|
+
"ready",
|
|
201020
|
+
"charging",
|
|
201021
|
+
"full",
|
|
201022
|
+
"fault"
|
|
201023
|
+
];
|
|
201024
|
+
};
|
|
201025
|
+
readonly chargerFault: {
|
|
201026
|
+
readonly type: "integer";
|
|
201027
|
+
readonly minimum: 0;
|
|
201028
|
+
readonly maximum: 7;
|
|
201029
|
+
};
|
|
201030
|
+
};
|
|
201031
|
+
readonly required: readonly [
|
|
201032
|
+
"level",
|
|
201033
|
+
"voltageMv",
|
|
201034
|
+
"currentMa",
|
|
201035
|
+
"gaugeTemperatureC",
|
|
201036
|
+
"chargerState",
|
|
201037
|
+
"chargerFault"
|
|
201038
|
+
];
|
|
201039
|
+
readonly additionalProperties: false;
|
|
201040
|
+
readonly title: "Battery module snapshot";
|
|
201041
|
+
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.";
|
|
201042
|
+
readonly "x-bf": {
|
|
201043
|
+
readonly definitionId: 186;
|
|
201044
|
+
readonly role: "measurement";
|
|
201045
|
+
readonly subject: "batteryModule";
|
|
201046
|
+
readonly producer: "device";
|
|
201047
|
+
readonly requestScoped: false;
|
|
201048
|
+
readonly presentation: {
|
|
201049
|
+
readonly displayName: "Battery module snapshot";
|
|
201050
|
+
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.";
|
|
201051
|
+
readonly hiddenByDefault: false;
|
|
201052
|
+
readonly formatter: "fields";
|
|
201053
|
+
readonly fields: readonly [
|
|
201054
|
+
{
|
|
201055
|
+
readonly path: "level";
|
|
201056
|
+
readonly label: "Level";
|
|
201057
|
+
readonly unit: "%";
|
|
201058
|
+
},
|
|
201059
|
+
{
|
|
201060
|
+
readonly path: "voltageMv";
|
|
201061
|
+
readonly label: "Voltage";
|
|
201062
|
+
readonly unit: "mV";
|
|
201063
|
+
},
|
|
201064
|
+
{
|
|
201065
|
+
readonly path: "currentMa";
|
|
201066
|
+
readonly label: "Current";
|
|
201067
|
+
readonly unit: "mA";
|
|
201068
|
+
readonly precision: 1;
|
|
201069
|
+
},
|
|
201070
|
+
{
|
|
201071
|
+
readonly path: "gaugeTemperatureC";
|
|
201072
|
+
readonly label: "Gauge temperature";
|
|
201073
|
+
readonly unit: "\u00B0C";
|
|
201074
|
+
},
|
|
201075
|
+
{
|
|
201076
|
+
readonly path: "chargerState";
|
|
201077
|
+
readonly label: "Charger";
|
|
201078
|
+
readonly format: "label";
|
|
201079
|
+
},
|
|
201080
|
+
{
|
|
201081
|
+
readonly path: "chargerFault";
|
|
201082
|
+
readonly label: "Fault";
|
|
201083
|
+
}
|
|
201084
|
+
];
|
|
201085
|
+
};
|
|
201086
|
+
};
|
|
201087
|
+
};
|
|
200824
201088
|
};
|
|
200825
201089
|
};
|
|
200826
201090
|
export declare const settingsValueSchema: {
|
|
@@ -200872,7 +201136,7 @@ export declare const settingsValueSchema: {
|
|
|
200872
201136
|
readonly minimum: 1;
|
|
200873
201137
|
readonly maximum: 255;
|
|
200874
201138
|
readonly title: "Movement detection count";
|
|
200875
|
-
readonly description: "
|
|
201139
|
+
readonly description: "Consecutive wake-engine periods above the differential threshold. One period allows a brief tap to wake the tracker.";
|
|
200876
201140
|
};
|
|
200877
201141
|
readonly chargingInputCurrentLimit: {
|
|
200878
201142
|
readonly type: "integer";
|
|
@@ -201233,11 +201497,28 @@ export declare const settingsValueSchema: {
|
|
|
201233
201497
|
readonly title: "Report interval on battery";
|
|
201234
201498
|
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
201499
|
};
|
|
201500
|
+
readonly accelerationSamplingEnabled: {
|
|
201501
|
+
readonly type: "boolean";
|
|
201502
|
+
readonly title: "Acceleration sampling";
|
|
201503
|
+
readonly description: "Read the three acceleration axes every 100 ms while sensor service is active. Enable only on trackers qualified for the extra current.";
|
|
201504
|
+
};
|
|
201505
|
+
readonly accelerationChangePercent: {
|
|
201506
|
+
readonly type: "integer";
|
|
201507
|
+
readonly minimum: 1;
|
|
201508
|
+
readonly maximum: 100;
|
|
201509
|
+
readonly title: "Acceleration change threshold";
|
|
201510
|
+
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.";
|
|
201511
|
+
};
|
|
201512
|
+
readonly automaticBatteryModuleSnapshotsEnabled: {
|
|
201513
|
+
readonly type: "boolean";
|
|
201514
|
+
readonly title: "Routine battery module snapshots";
|
|
201515
|
+
readonly description: "Include battery.module.snapshot in routine status, charging and keepalive reports. Disabling removes queued routine snapshot permissions only; explicit requests, diagnostics, battery sampling and charging safety remain available.";
|
|
201516
|
+
};
|
|
201236
201517
|
};
|
|
201237
201518
|
readonly "x-bf": {
|
|
201238
201519
|
readonly domain: "settings";
|
|
201239
201520
|
readonly version: 1;
|
|
201240
|
-
readonly settingsSchemaVersion:
|
|
201521
|
+
readonly settingsSchemaVersion: 40;
|
|
201241
201522
|
};
|
|
201242
201523
|
};
|
|
201243
201524
|
export declare const observationDefinitions: readonly [
|
|
@@ -201692,7 +201973,7 @@ export declare const observationDefinitions: readonly [
|
|
|
201692
201973
|
readonly requestScoped: false;
|
|
201693
201974
|
readonly presentation: {
|
|
201694
201975
|
readonly displayName: "Charging changed";
|
|
201695
|
-
readonly description: "
|
|
201976
|
+
readonly description: "Legacy charging transition retained for older firmware and stored history. New firmware reports battery.charging.status through diagnostics instead.";
|
|
201696
201977
|
readonly hiddenByDefault: true;
|
|
201697
201978
|
readonly formatter: "transition";
|
|
201698
201979
|
};
|
|
@@ -202585,7 +202866,7 @@ export declare const observationDefinitions: readonly [
|
|
|
202585
202866
|
readonly requestScoped: false;
|
|
202586
202867
|
readonly presentation: {
|
|
202587
202868
|
readonly displayName: "Power external power changed";
|
|
202588
|
-
readonly description: "
|
|
202869
|
+
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
202870
|
readonly hiddenByDefault: true;
|
|
202590
202871
|
readonly formatter: "transition";
|
|
202591
202872
|
};
|
|
@@ -203377,6 +203658,83 @@ export declare const observationDefinitions: readonly [
|
|
|
203377
203658
|
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
203659
|
readonly hiddenByDefault: false;
|
|
203379
203660
|
};
|
|
203661
|
+
},
|
|
203662
|
+
{
|
|
203663
|
+
readonly id: 185;
|
|
203664
|
+
readonly name: "movement.accelerationChanged";
|
|
203665
|
+
readonly role: "event";
|
|
203666
|
+
readonly subject: "device";
|
|
203667
|
+
readonly producer: "device";
|
|
203668
|
+
readonly requestScoped: false;
|
|
203669
|
+
readonly presentation: {
|
|
203670
|
+
readonly displayName: "Acceleration changed";
|
|
203671
|
+
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.";
|
|
203672
|
+
readonly hiddenByDefault: false;
|
|
203673
|
+
readonly formatter: "fields";
|
|
203674
|
+
readonly fields: readonly [
|
|
203675
|
+
{
|
|
203676
|
+
readonly path: "xMg";
|
|
203677
|
+
readonly unit: "mg";
|
|
203678
|
+
},
|
|
203679
|
+
{
|
|
203680
|
+
readonly path: "yMg";
|
|
203681
|
+
readonly unit: "mg";
|
|
203682
|
+
},
|
|
203683
|
+
{
|
|
203684
|
+
readonly path: "zMg";
|
|
203685
|
+
readonly unit: "mg";
|
|
203686
|
+
},
|
|
203687
|
+
{
|
|
203688
|
+
readonly path: "changedAxes";
|
|
203689
|
+
}
|
|
203690
|
+
];
|
|
203691
|
+
};
|
|
203692
|
+
},
|
|
203693
|
+
{
|
|
203694
|
+
readonly id: 186;
|
|
203695
|
+
readonly name: "battery.module.snapshot";
|
|
203696
|
+
readonly role: "measurement";
|
|
203697
|
+
readonly subject: "batteryModule";
|
|
203698
|
+
readonly producer: "device";
|
|
203699
|
+
readonly requestScoped: false;
|
|
203700
|
+
readonly presentation: {
|
|
203701
|
+
readonly displayName: "Battery module snapshot";
|
|
203702
|
+
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.";
|
|
203703
|
+
readonly hiddenByDefault: false;
|
|
203704
|
+
readonly formatter: "fields";
|
|
203705
|
+
readonly fields: readonly [
|
|
203706
|
+
{
|
|
203707
|
+
readonly path: "level";
|
|
203708
|
+
readonly label: "Level";
|
|
203709
|
+
readonly unit: "%";
|
|
203710
|
+
},
|
|
203711
|
+
{
|
|
203712
|
+
readonly path: "voltageMv";
|
|
203713
|
+
readonly label: "Voltage";
|
|
203714
|
+
readonly unit: "mV";
|
|
203715
|
+
},
|
|
203716
|
+
{
|
|
203717
|
+
readonly path: "currentMa";
|
|
203718
|
+
readonly label: "Current";
|
|
203719
|
+
readonly unit: "mA";
|
|
203720
|
+
readonly precision: 1;
|
|
203721
|
+
},
|
|
203722
|
+
{
|
|
203723
|
+
readonly path: "gaugeTemperatureC";
|
|
203724
|
+
readonly label: "Gauge temperature";
|
|
203725
|
+
readonly unit: "\u00B0C";
|
|
203726
|
+
},
|
|
203727
|
+
{
|
|
203728
|
+
readonly path: "chargerState";
|
|
203729
|
+
readonly label: "Charger";
|
|
203730
|
+
readonly format: "label";
|
|
203731
|
+
},
|
|
203732
|
+
{
|
|
203733
|
+
readonly path: "chargerFault";
|
|
203734
|
+
readonly label: "Fault";
|
|
203735
|
+
}
|
|
203736
|
+
];
|
|
203737
|
+
};
|
|
203380
203738
|
}
|
|
203381
203739
|
];
|
|
203382
203740
|
declare const zDeviceSettings: z.ZodObject<{
|
|
@@ -203466,6 +203824,9 @@ declare const zDeviceSettings: z.ZodObject<{
|
|
|
203466
203824
|
}>>;
|
|
203467
203825
|
chargingStatusMaxAgeSeconds: z.ZodOptional<z.ZodInt>;
|
|
203468
203826
|
reportIntervalOnBatterySeconds: z.ZodOptional<z.ZodInt>;
|
|
203827
|
+
accelerationSamplingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
203828
|
+
accelerationChangePercent: z.ZodOptional<z.ZodInt>;
|
|
203829
|
+
automaticBatteryModuleSnapshotsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
203469
203830
|
}, z.core.$strict>;
|
|
203470
203831
|
export type MetricName = (typeof observationDefinitions)[number]["name"];
|
|
203471
203832
|
export type ObservationFact = {
|