@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/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 { workflowDefinition } from "./workflow-schema.js";
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 { workflowDefinition } from "./workflow-schema.js";
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 { AwsObservationSelection, AwsObservationReading, AwsCommandUpdate, AwsSettingsSnapshot } from "../BikeFinder.Api.Aws.js";
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.Aws.AwsObservationSelection
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.Aws.AwsObservationReading[]>
57
+ * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Observations.ObservationReading[]>
56
58
  */
57
- watchObservations(id: string, query: AwsObservationSelection): IStreamResult<AwsObservationReading[]>;
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.Aws.AwsCommandUpdate>
69
+ * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Commands.CommandUpdate>
68
70
  */
69
- watchCommandEvents(id: string): IStreamResult<AwsCommandUpdate>;
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.Aws.AwsCommandUpdate>
76
+ * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Commands.CommandUpdate>
75
77
  */
76
- watchCommand(id: string, operationId: string): IStreamResult<AwsCommandUpdate>;
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.Aws.AwsSettingsSnapshot>
82
+ * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Settings.SettingsSnapshot>
81
83
  */
82
- watchSettings(id: string): IStreamResult<AwsSettingsSnapshot>;
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