@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/README.md +8 -1
- package/dist/device-schema.d.ts +27 -219
- package/dist/device-schema.js +20 -231
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +11 -6
- package/dist/generated/sdk.gen.js +150 -55
- package/dist/generated/types.gen.d.ts +294 -416
- package/dist/generated/zod.gen.d.ts +362 -654
- package/dist/generated/zod.gen.js +169 -282
- package/dist/index.d.ts +1 -1
- package/dist/workflow-schema.d.ts +2 -10
- package/dist/workflow-schema.js +2 -21
- package/openapi/api.json +895 -1166
- package/package.json +1 -1
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 {
|
|
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:
|
|
3
|
-
readonly
|
|
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;
|
package/dist/workflow-schema.js
CHANGED
|
@@ -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":
|
|
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
|
-
"
|
|
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"
|