@bikefinder/sdk 0.12.0 → 0.23.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.
Files changed (68) hide show
  1. package/README.md +47 -128
  2. package/dist/chunk-HTKUP56M.js +786 -0
  3. package/dist/index.d.ts +17753 -39
  4. package/dist/index.js +385 -65
  5. package/dist/schemas.d.ts +17882 -0
  6. package/dist/schemas.js +174 -0
  7. package/package.json +20 -23
  8. package/dist/acquisition-schema.d.ts +0 -177
  9. package/dist/acquisition-schema.js +0 -250
  10. package/dist/device-schema.d.ts +0 -9095
  11. package/dist/device-schema.js +0 -10734
  12. package/dist/generated/client/client.gen.d.ts +0 -2
  13. package/dist/generated/client/client.gen.js +0 -217
  14. package/dist/generated/client/index.d.ts +0 -10
  15. package/dist/generated/client/index.js +0 -6
  16. package/dist/generated/client/types.gen.d.ts +0 -120
  17. package/dist/generated/client/types.gen.js +0 -2
  18. package/dist/generated/client/utils.gen.d.ts +0 -37
  19. package/dist/generated/client/utils.gen.js +0 -231
  20. package/dist/generated/client.gen.d.ts +0 -12
  21. package/dist/generated/client.gen.js +0 -3
  22. package/dist/generated/core/auth.gen.d.ts +0 -25
  23. package/dist/generated/core/auth.gen.js +0 -14
  24. package/dist/generated/core/bodySerializer.gen.d.ts +0 -25
  25. package/dist/generated/core/bodySerializer.gen.js +0 -57
  26. package/dist/generated/core/params.gen.d.ts +0 -43
  27. package/dist/generated/core/params.gen.js +0 -112
  28. package/dist/generated/core/pathSerializer.gen.d.ts +0 -33
  29. package/dist/generated/core/pathSerializer.gen.js +0 -114
  30. package/dist/generated/core/queryKeySerializer.gen.d.ts +0 -18
  31. package/dist/generated/core/queryKeySerializer.gen.js +0 -99
  32. package/dist/generated/core/serverSentEvents.gen.d.ts +0 -71
  33. package/dist/generated/core/serverSentEvents.gen.js +0 -136
  34. package/dist/generated/core/types.gen.d.ts +0 -83
  35. package/dist/generated/core/types.gen.js +0 -2
  36. package/dist/generated/core/utils.gen.d.ts +0 -19
  37. package/dist/generated/core/utils.gen.js +0 -87
  38. package/dist/generated/index.d.ts +0 -2
  39. package/dist/generated/index.js +0 -2
  40. package/dist/generated/sdk.gen.d.ts +0 -136
  41. package/dist/generated/sdk.gen.js +0 -1347
  42. package/dist/generated/types.gen.d.ts +0 -12633
  43. package/dist/generated/types.gen.js +0 -2
  44. package/dist/generated/zod.gen.d.ts +0 -40667
  45. package/dist/generated/zod.gen.js +0 -13757
  46. package/dist/signalr/BikeFinder.Api.Commands.d.ts +0 -1
  47. package/dist/signalr/BikeFinder.Api.Commands.js +0 -1
  48. package/dist/signalr/BikeFinder.Api.Firestore.d.ts +0 -1
  49. package/dist/signalr/BikeFinder.Api.Firestore.js +0 -1
  50. package/dist/signalr/BikeFinder.Api.Http.d.ts +0 -7
  51. package/dist/signalr/BikeFinder.Api.Http.js +0 -4
  52. package/dist/signalr/BikeFinder.Api.Observations.d.ts +0 -1
  53. package/dist/signalr/BikeFinder.Api.Observations.js +0 -1
  54. package/dist/signalr/BikeFinder.Api.Settings.d.ts +0 -1
  55. package/dist/signalr/BikeFinder.Api.Settings.js +0 -1
  56. package/dist/signalr/BikeFinder.Api.Trackers.d.ts +0 -22
  57. package/dist/signalr/BikeFinder.Api.Trackers.js +0 -4
  58. package/dist/signalr/BikeFinder.DeviceConfiguration.d.ts +0 -1
  59. package/dist/signalr/BikeFinder.DeviceConfiguration.js +0 -1
  60. package/dist/signalr/BikeFinder.Nucleus.Commands.d.ts +0 -1
  61. package/dist/signalr/BikeFinder.Nucleus.Commands.js +0 -1
  62. package/dist/signalr/BikeFinder.Observations.Model.d.ts +0 -1
  63. package/dist/signalr/BikeFinder.Observations.Model.js +0 -1
  64. package/dist/signalr/TypedSignalR.Client/BikeFinder.Api.Trackers.d.ts +0 -91
  65. package/dist/signalr/TypedSignalR.Client/BikeFinder.Api.Trackers.js +0 -1
  66. package/dist/signalr/TypedSignalR.Client/index.d.ts +0 -18
  67. package/dist/signalr/TypedSignalR.Client/index.js +0 -89
  68. package/openapi/api.json +0 -52163
@@ -1 +0,0 @@
1
- export type * from "../generated/types.gen.js";
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export type * from "../generated/types.gen.js";
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- /** Transpiled from BikeFinder.Api.Http.PageRequest */
2
- export type PageRequest = {
3
- /** Transpiled from int */
4
- limit: number;
5
- /** Transpiled from string? */
6
- cursor?: string;
7
- };
@@ -1,4 +0,0 @@
1
- /* THIS (.ts) FILE IS GENERATED BY Tapper */
2
- /* eslint-disable */
3
- /* tslint:disable */
4
- export {};
@@ -1 +0,0 @@
1
- export type * from "../generated/types.gen.js";
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export type * from "../generated/types.gen.js";
@@ -1 +0,0 @@
1
- export {};
@@ -1,22 +0,0 @@
1
- /** Transpiled from BikeFinder.Api.Trackers.StaffTrackerPageRequest */
2
- export type StaffTrackerPageRequest = {
3
- /** Transpiled from int */
4
- limit: number;
5
- /** Transpiled from string? */
6
- cursor?: string;
7
- /** Transpiled from BikeFinder.Api.Trackers.TrackerSelection? */
8
- selection?: TrackerSelection;
9
- };
10
- /** Transpiled from BikeFinder.Api.Trackers.TrackerSelection */
11
- export type TrackerSelection = {
12
- /** Transpiled from string? */
13
- serialNumber?: string;
14
- /** Transpiled from string? */
15
- imei?: string;
16
- /** Transpiled from string? */
17
- iccid?: string;
18
- /** Transpiled from string? */
19
- accountId?: string;
20
- /** Transpiled from string? */
21
- subscriptionId?: string;
22
- };
@@ -1,4 +0,0 @@
1
- /* THIS (.ts) FILE IS GENERATED BY Tapper */
2
- /* eslint-disable */
3
- /* tslint:disable */
4
- export {};
@@ -1 +0,0 @@
1
- export type * from "../generated/types.gen.js";
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export type * from "../generated/types.gen.js";
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export type * from "../generated/types.gen.js";
@@ -1 +0,0 @@
1
- export {};
@@ -1,91 +0,0 @@
1
- import type { IStreamResult } from "@microsoft/signalr";
2
- import type { TrackerDocument, TrackerPage, AccountProfileDocument, NotificationPage, SubscriptionPage, FavoritePage } from "../BikeFinder.Api.Firestore.js";
3
- import type { PageRequest } from "../BikeFinder.Api.Http.js";
4
- import type { StaffTrackerPageRequest } from "../BikeFinder.Api.Trackers.js";
5
- import type { ObservationSelection, ObservationReading } from "../BikeFinder.Api.Observations.js";
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";
9
- export type ITrackerHub = {
10
- /**
11
- * @param id Transpiled from string
12
- * @param cancellation Transpiled from System.Threading.CancellationToken
13
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Firestore.TrackerDocument>
14
- */
15
- watchTracker(id: string): IStreamResult<TrackerDocument>;
16
- /**
17
- * @param query Transpiled from BikeFinder.Api.Http.PageRequest
18
- * @param cancellation Transpiled from System.Threading.CancellationToken
19
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Firestore.TrackerPage>
20
- */
21
- watchTrackers(query: PageRequest): IStreamResult<TrackerPage>;
22
- /**
23
- * @param cancellation Transpiled from System.Threading.CancellationToken
24
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Firestore.AccountProfileDocument>
25
- */
26
- watchAccount(): IStreamResult<AccountProfileDocument>;
27
- /**
28
- * @param query Transpiled from BikeFinder.Api.Http.PageRequest
29
- * @param cancellation Transpiled from System.Threading.CancellationToken
30
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Firestore.NotificationPage>
31
- */
32
- watchNotifications(query: PageRequest): IStreamResult<NotificationPage>;
33
- /**
34
- * @param query Transpiled from BikeFinder.Api.Http.PageRequest
35
- * @param cancellation Transpiled from System.Threading.CancellationToken
36
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Firestore.SubscriptionPage>
37
- */
38
- watchSubscriptions(query: PageRequest): IStreamResult<SubscriptionPage>;
39
- };
40
- export type IStaffTrackerHub = {
41
- /**
42
- * @param id Transpiled from string
43
- * @param cancellation Transpiled from System.Threading.CancellationToken
44
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Firestore.TrackerDocument>
45
- */
46
- watchTracker(id: string): IStreamResult<TrackerDocument>;
47
- /**
48
- * @param query Transpiled from BikeFinder.Api.Trackers.StaffTrackerPageRequest
49
- * @param cancellation Transpiled from System.Threading.CancellationToken
50
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Firestore.TrackerPage>
51
- */
52
- watchTrackers(query: StaffTrackerPageRequest): IStreamResult<TrackerPage>;
53
- /**
54
- * @param id Transpiled from string
55
- * @param query Transpiled from BikeFinder.Api.Observations.ObservationSelection
56
- * @param cancellation Transpiled from System.Threading.CancellationToken
57
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Observations.ObservationReading[]>
58
- */
59
- watchObservations(id: string, query: ObservationSelection): IStreamResult<ObservationReading[]>;
60
- /**
61
- * @param id Transpiled from string
62
- * @param cancellation Transpiled from System.Threading.CancellationToken
63
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Observations.Model.Observation>
64
- */
65
- watchObservationEvents(id: string): IStreamResult<Observation>;
66
- /**
67
- * @param id Transpiled from string
68
- * @param cancellation Transpiled from System.Threading.CancellationToken
69
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Commands.CommandUpdate>
70
- */
71
- watchCommandEvents(id: string): IStreamResult<CommandUpdate>;
72
- /**
73
- * @param id Transpiled from string
74
- * @param operationId Transpiled from System.Guid
75
- * @param cancellation Transpiled from System.Threading.CancellationToken
76
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Commands.CommandUpdate>
77
- */
78
- watchCommand(id: string, operationId: string): IStreamResult<CommandUpdate>;
79
- /**
80
- * @param id Transpiled from string
81
- * @param cancellation Transpiled from System.Threading.CancellationToken
82
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Settings.SettingsSnapshot>
83
- */
84
- watchSettings(id: string): IStreamResult<SettingsSnapshot>;
85
- /**
86
- * @param query Transpiled from BikeFinder.Api.Http.PageRequest
87
- * @param cancellation Transpiled from System.Threading.CancellationToken
88
- * @returns Transpiled from System.Collections.Generic.IAsyncEnumerable<BikeFinder.Api.Firestore.FavoritePage>
89
- */
90
- watchFavorites(query: PageRequest): IStreamResult<FavoritePage>;
91
- };
@@ -1,18 +0,0 @@
1
- import type { HubConnection } from "@microsoft/signalr";
2
- import type { ITrackerHub, IStaffTrackerHub } from "./BikeFinder.Api.Trackers.js";
3
- export type Disposable = {
4
- dispose(): void;
5
- };
6
- export type HubProxyFactory<T> = {
7
- createHubProxy(connection: HubConnection): T;
8
- };
9
- export type ReceiverRegister<T> = {
10
- register(connection: HubConnection, receiver: T): Disposable;
11
- };
12
- export type HubProxyFactoryProvider = {
13
- (hubType: "ITrackerHub"): HubProxyFactory<ITrackerHub>;
14
- (hubType: "IStaffTrackerHub"): HubProxyFactory<IStaffTrackerHub>;
15
- };
16
- export declare const getHubProxyFactory: HubProxyFactoryProvider;
17
- export type ReceiverRegisterProvider = {};
18
- export declare const getReceiverRegister: ReceiverRegisterProvider;
@@ -1,89 +0,0 @@
1
- class ReceiverMethodSubscription {
2
- connection;
3
- receiverMethod;
4
- constructor(connection, receiverMethod) {
5
- this.connection = connection;
6
- this.receiverMethod = receiverMethod;
7
- }
8
- dispose = () => {
9
- for (const it of this.receiverMethod) {
10
- this.connection.off(it.methodName, it.method);
11
- }
12
- };
13
- }
14
- export const getHubProxyFactory = ((hubType) => {
15
- if (hubType === "ITrackerHub") {
16
- return ITrackerHub_HubProxyFactory.Instance;
17
- }
18
- if (hubType === "IStaffTrackerHub") {
19
- return IStaffTrackerHub_HubProxyFactory.Instance;
20
- }
21
- });
22
- export const getReceiverRegister = ((receiverType) => { });
23
- // HubProxy
24
- class ITrackerHub_HubProxyFactory {
25
- static Instance = new ITrackerHub_HubProxyFactory();
26
- constructor() { }
27
- createHubProxy = (connection) => {
28
- return new ITrackerHub_HubProxy(connection);
29
- };
30
- }
31
- class ITrackerHub_HubProxy {
32
- connection;
33
- constructor(connection) {
34
- this.connection = connection;
35
- }
36
- watchTracker = (id) => {
37
- return this.connection.stream("WatchTracker", id);
38
- };
39
- watchTrackers = (query) => {
40
- return this.connection.stream("WatchTrackers", query);
41
- };
42
- watchAccount = () => {
43
- return this.connection.stream("WatchAccount");
44
- };
45
- watchNotifications = (query) => {
46
- return this.connection.stream("WatchNotifications", query);
47
- };
48
- watchSubscriptions = (query) => {
49
- return this.connection.stream("WatchSubscriptions", query);
50
- };
51
- }
52
- class IStaffTrackerHub_HubProxyFactory {
53
- static Instance = new IStaffTrackerHub_HubProxyFactory();
54
- constructor() { }
55
- createHubProxy = (connection) => {
56
- return new IStaffTrackerHub_HubProxy(connection);
57
- };
58
- }
59
- class IStaffTrackerHub_HubProxy {
60
- connection;
61
- constructor(connection) {
62
- this.connection = connection;
63
- }
64
- watchTracker = (id) => {
65
- return this.connection.stream("WatchTracker", id);
66
- };
67
- watchTrackers = (query) => {
68
- return this.connection.stream("WatchTrackers", query);
69
- };
70
- watchObservations = (id, query) => {
71
- return this.connection.stream("WatchObservations", id, query);
72
- };
73
- watchObservationEvents = (id) => {
74
- return this.connection.stream("WatchObservationEvents", id);
75
- };
76
- watchCommandEvents = (id) => {
77
- return this.connection.stream("WatchCommandEvents", id);
78
- };
79
- watchCommand = (id, operationId) => {
80
- return this.connection.stream("WatchCommand", id, operationId);
81
- };
82
- watchSettings = (id) => {
83
- return this.connection.stream("WatchSettings", id);
84
- };
85
- watchFavorites = (query) => {
86
- return this.connection.stream("WatchFavorites", query);
87
- };
88
- }
89
- // Receiver