@bikefinder/sdk 0.4.0 → 0.5.0

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/index.d.ts CHANGED
@@ -28,7 +28,7 @@ export type BikeFinderClient = ReturnType<typeof createBikeFinderClient>;
28
28
  /** Encode exact current-observation selections for repeated GET series parameters. */
29
29
  export declare function observationSeriesQuery(series: readonly import("./generated/types.gen.js").ObservationSeries[]): string[];
30
30
  export { workflowDefinition } from "./workflow-schema.js";
31
- export type { FirmwareMode, WorkflowState } from "./workflow-schema.js";
31
+ export type { WorkflowState } from "./workflow-schema.js";
32
32
  export { observationValueSchema, observationDefinitions, settingsValueSchema, } from "./device-schema.js";
33
33
  type ObservationDefinition = (typeof observationDefinitions)[number];
34
34
  export type MetricName = ObservationDefinition["name"];
@@ -1,7 +1,6 @@
1
1
  export declare const workflowDefinition: {
2
- readonly version: 2;
3
- readonly modes: readonly [0, 1, 2];
4
- readonly states: readonly ["idle", "battery", "connect", "cell", "wifi", "publish", "listen", "gps", "gpsPublish", "rest"];
2
+ readonly version: 3;
3
+ readonly states: readonly ["idle", "battery", "connect", "publish"];
5
4
  readonly outcomes: readonly ["done", "unavailable", "failed", "timeout", "cancelled"];
6
5
  readonly acquisition: {
7
6
  readonly gnss: readonly [{
@@ -168,18 +167,12 @@ export declare const workflowDefinition: {
168
167
  }, {
169
168
  readonly symbol: "PUBLISH";
170
169
  readonly name: "publish";
171
- }, {
172
- readonly symbol: "LISTEN";
173
- readonly name: "listen";
174
170
  }, {
175
171
  readonly symbol: "MODEM_ONLINE";
176
172
  readonly name: "modemOnline";
177
173
  }, {
178
174
  readonly symbol: "MODEM_EDRX";
179
175
  readonly name: "modemEdrx";
180
- }, {
181
- readonly symbol: "MODEM_PSM";
182
- readonly name: "modemPsm";
183
176
  }, {
184
177
  readonly symbol: "MODEM_OFFLINE";
185
178
  readonly name: "modemOffline";
@@ -194,5 +187,4 @@ export declare const workflowDefinition: {
194
187
  readonly name: "connect";
195
188
  }];
196
189
  };
197
- export type FirmwareMode = (typeof workflowDefinition.modes)[number];
198
190
  export type WorkflowState = string;
@@ -1,22 +1,11 @@
1
1
  // Generated from protocol JSON Schemas by tools/generate-device-sdk.mjs. Do not edit.
2
2
  export const workflowDefinition = {
3
- "version": 2,
4
- "modes": [
5
- 0,
6
- 1,
7
- 2
8
- ],
3
+ "version": 3,
9
4
  "states": [
10
5
  "idle",
11
6
  "battery",
12
7
  "connect",
13
- "cell",
14
- "wifi",
15
- "publish",
16
- "listen",
17
- "gps",
18
- "gpsPublish",
19
- "rest"
8
+ "publish"
20
9
  ],
21
10
  "outcomes": [
22
11
  "done",
@@ -262,10 +251,6 @@ export const workflowDefinition = {
262
251
  "symbol": "PUBLISH",
263
252
  "name": "publish"
264
253
  },
265
- {
266
- "symbol": "LISTEN",
267
- "name": "listen"
268
- },
269
254
  {
270
255
  "symbol": "MODEM_ONLINE",
271
256
  "name": "modemOnline"
@@ -274,10 +259,6 @@ export const workflowDefinition = {
274
259
  "symbol": "MODEM_EDRX",
275
260
  "name": "modemEdrx"
276
261
  },
277
- {
278
- "symbol": "MODEM_PSM",
279
- "name": "modemPsm"
280
- },
281
262
  {
282
263
  "symbol": "MODEM_OFFLINE",
283
264
  "name": "modemOffline"