@bikefinder/sdk 0.4.0 → 0.6.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 +13 -15
- package/dist/{workflow-schema.d.ts → acquisition-schema.d.ts} +22 -43
- package/dist/{workflow-schema.js → acquisition-schema.js} +43 -91
- package/dist/device-schema.d.ts +1046 -463
- package/dist/device-schema.js +1206 -590
- 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 +1686 -1163
- package/dist/generated/zod.gen.d.ts +3452 -4523
- package/dist/generated/zod.gen.js +2379 -2392
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/dist/signalr/BikeFinder.Api.Observations.d.ts +1 -0
- package/dist/signalr/BikeFinder.Api.Observations.js +1 -0
- package/dist/signalr/BikeFinder.Api.Settings.d.ts +1 -0
- package/dist/signalr/BikeFinder.Api.Settings.js +1 -0
- package/dist/signalr/TypedSignalR.Client/BikeFinder.Api.Trackers.d.ts +12 -10
- package/openapi/api.json +13720 -10560
- package/package.json +3 -3
- /package/dist/signalr/{BikeFinder.Api.Aws.d.ts → BikeFinder.Api.Commands.d.ts} +0 -0
- /package/dist/signalr/{BikeFinder.Api.Aws.js → BikeFinder.Api.Commands.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -27,8 +27,7 @@ export declare function createBikeFinderClient(options: ClientOptions): {
|
|
|
27
27
|
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
|
-
export {
|
|
31
|
-
export type { FirmwareMode, WorkflowState } from "./workflow-schema.js";
|
|
30
|
+
export { acquisitionDefinition } from "./acquisition-schema.js";
|
|
32
31
|
export { observationValueSchema, observationDefinitions, settingsValueSchema, } from "./device-schema.js";
|
|
33
32
|
type ObservationDefinition = (typeof observationDefinitions)[number];
|
|
34
33
|
export type MetricName = ObservationDefinition["name"];
|
package/dist/index.js
CHANGED
|
@@ -69,5 +69,5 @@ export function createBikeFinderClient(options) {
|
|
|
69
69
|
export function observationSeriesQuery(series) {
|
|
70
70
|
return series.map(({ definitionId, subject }) => subject == null ? `${definitionId}` : `${definitionId}/${subject}`);
|
|
71
71
|
}
|
|
72
|
-
export {
|
|
72
|
+
export { acquisitionDefinition } from "./acquisition-schema.js";
|
|
73
73
|
export { observationValueSchema, observationDefinitions, settingsValueSchema, } from "./device-schema.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from "../generated/types.gen.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from "../generated/types.gen.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,8 +2,10 @@ import type { IStreamResult } from "@microsoft/signalr";
|
|
|
2
2
|
import type { TrackerDocument, TrackerPage, AccountProfileDocument, NotificationPage, SubscriptionPage, FavoritePage } from "../BikeFinder.Api.Firestore.js";
|
|
3
3
|
import type { PageRequest } from "../BikeFinder.Api.Http.js";
|
|
4
4
|
import type { StaffTrackerPageRequest } from "../BikeFinder.Api.Trackers.js";
|
|
5
|
-
import type {
|
|
5
|
+
import type { ObservationSelection, ObservationReading } from "../BikeFinder.Api.Observations.js";
|
|
6
6
|
import type { Observation } from "../BikeFinder.Observations.Model.js";
|
|
7
|
+
import type { CommandUpdate } from "../BikeFinder.Api.Commands.js";
|
|
8
|
+
import type { SettingsSnapshot } from "../BikeFinder.Api.Settings.js";
|
|
7
9
|
export type ITrackerHub = {
|
|
8
10
|
/**
|
|
9
11
|
* @param id Transpiled from string
|
|
@@ -50,11 +52,11 @@ export type IStaffTrackerHub = {
|
|
|
50
52
|
watchTrackers(query: StaffTrackerPageRequest): IStreamResult<TrackerPage>;
|
|
51
53
|
/**
|
|
52
54
|
* @param id Transpiled from string
|
|
53
|
-
* @param query Transpiled from BikeFinder.Api.
|
|
55
|
+
* @param query Transpiled from BikeFinder.Api.Observations.ObservationSelection
|
|
54
56
|
* @param cancellation Transpiled from System.Threading.CancellationToken
|
|
55
|
-
* @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.
|
|
57
|
+
* @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Observations.ObservationReading[]>
|
|
56
58
|
*/
|
|
57
|
-
watchObservations(id: string, query:
|
|
59
|
+
watchObservations(id: string, query: ObservationSelection): IStreamResult<ObservationReading[]>;
|
|
58
60
|
/**
|
|
59
61
|
* @param id Transpiled from string
|
|
60
62
|
* @param cancellation Transpiled from System.Threading.CancellationToken
|
|
@@ -64,22 +66,22 @@ export type IStaffTrackerHub = {
|
|
|
64
66
|
/**
|
|
65
67
|
* @param id Transpiled from string
|
|
66
68
|
* @param cancellation Transpiled from System.Threading.CancellationToken
|
|
67
|
-
* @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.
|
|
69
|
+
* @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Commands.CommandUpdate>
|
|
68
70
|
*/
|
|
69
|
-
watchCommandEvents(id: string): IStreamResult<
|
|
71
|
+
watchCommandEvents(id: string): IStreamResult<CommandUpdate>;
|
|
70
72
|
/**
|
|
71
73
|
* @param id Transpiled from string
|
|
72
74
|
* @param operationId Transpiled from System.Guid
|
|
73
75
|
* @param cancellation Transpiled from System.Threading.CancellationToken
|
|
74
|
-
* @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.
|
|
76
|
+
* @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Commands.CommandUpdate>
|
|
75
77
|
*/
|
|
76
|
-
watchCommand(id: string, operationId: string): IStreamResult<
|
|
78
|
+
watchCommand(id: string, operationId: string): IStreamResult<CommandUpdate>;
|
|
77
79
|
/**
|
|
78
80
|
* @param id Transpiled from string
|
|
79
81
|
* @param cancellation Transpiled from System.Threading.CancellationToken
|
|
80
|
-
* @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.
|
|
82
|
+
* @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Settings.SettingsSnapshot>
|
|
81
83
|
*/
|
|
82
|
-
watchSettings(id: string): IStreamResult<
|
|
84
|
+
watchSettings(id: string): IStreamResult<SettingsSnapshot>;
|
|
83
85
|
/**
|
|
84
86
|
* @param query Transpiled from BikeFinder.Api.Http.PageRequest
|
|
85
87
|
* @param cancellation Transpiled from System.Threading.CancellationToken
|