@wayq/beekon-rn 0.0.3 → 0.0.6

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 (84) hide show
  1. package/BeekonRn.podspec +5 -3
  2. package/CHANGELOG.md +103 -0
  3. package/README.md +326 -52
  4. package/android/build.gradle +9 -4
  5. package/android/src/main/java/in/wayq/beekonrn/BeekonRnModule.kt +411 -59
  6. package/ios/BeekonRn.mm +103 -24
  7. package/ios/BeekonRn.swift +465 -61
  8. package/ios/Frameworks/BeekonKit.xcframework/Info.plist +5 -5
  9. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/BeekonKit +0 -0
  10. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/Info.plist +0 -0
  11. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios.abi.json +11424 -1279
  12. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  13. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios.swiftinterface +262 -36
  14. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/BeekonKit +0 -0
  15. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Info.plist +0 -0
  16. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios-simulator.abi.json +11424 -1279
  17. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  18. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +262 -36
  19. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +11424 -1279
  20. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  21. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +262 -36
  22. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/_CodeSignature/CodeResources +2 -80
  23. package/lib/module/NativeBeekonRn.js +35 -7
  24. package/lib/module/NativeBeekonRn.js.map +1 -1
  25. package/lib/module/beekon.js +246 -45
  26. package/lib/module/beekon.js.map +1 -1
  27. package/lib/module/index.js.map +1 -1
  28. package/lib/module/internal/mappers.js +166 -25
  29. package/lib/module/internal/mappers.js.map +1 -1
  30. package/lib/module/types/auth.js +4 -0
  31. package/lib/module/types/auth.js.map +1 -0
  32. package/lib/module/types/config.js +2 -0
  33. package/lib/module/types/enums.js +2 -0
  34. package/lib/module/types/enums.js.map +1 -0
  35. package/lib/module/types/error.js +20 -4
  36. package/lib/module/types/error.js.map +1 -1
  37. package/lib/module/types/geofence.js +2 -0
  38. package/lib/module/types/geofence.js.map +1 -0
  39. package/lib/module/types/location.js +2 -0
  40. package/lib/module/types/sync.js +2 -0
  41. package/lib/module/types/sync.js.map +1 -0
  42. package/lib/typescript/src/NativeBeekonRn.d.ts +150 -20
  43. package/lib/typescript/src/NativeBeekonRn.d.ts.map +1 -1
  44. package/lib/typescript/src/beekon.d.ts +110 -33
  45. package/lib/typescript/src/beekon.d.ts.map +1 -1
  46. package/lib/typescript/src/index.d.ts +6 -2
  47. package/lib/typescript/src/index.d.ts.map +1 -1
  48. package/lib/typescript/src/internal/mappers.d.ts +16 -6
  49. package/lib/typescript/src/internal/mappers.d.ts.map +1 -1
  50. package/lib/typescript/src/types/auth.d.ts +99 -0
  51. package/lib/typescript/src/types/auth.d.ts.map +1 -0
  52. package/lib/typescript/src/types/config.d.ts +66 -20
  53. package/lib/typescript/src/types/config.d.ts.map +1 -1
  54. package/lib/typescript/src/types/enums.d.ts +62 -0
  55. package/lib/typescript/src/types/enums.d.ts.map +1 -0
  56. package/lib/typescript/src/types/error.d.ts +21 -5
  57. package/lib/typescript/src/types/error.d.ts.map +1 -1
  58. package/lib/typescript/src/types/geofence.d.ts +36 -0
  59. package/lib/typescript/src/types/geofence.d.ts.map +1 -0
  60. package/lib/typescript/src/types/location.d.ts +22 -8
  61. package/lib/typescript/src/types/location.d.ts.map +1 -1
  62. package/lib/typescript/src/types/state.d.ts +13 -4
  63. package/lib/typescript/src/types/state.d.ts.map +1 -1
  64. package/lib/typescript/src/types/sync.d.ts +27 -0
  65. package/lib/typescript/src/types/sync.d.ts.map +1 -0
  66. package/package.json +8 -5
  67. package/scripts/fetch-beekonkit.sh +5 -5
  68. package/src/NativeBeekonRn.ts +165 -20
  69. package/src/beekon.ts +278 -48
  70. package/src/index.tsx +24 -2
  71. package/src/internal/mappers.ts +242 -27
  72. package/src/types/auth.ts +101 -0
  73. package/src/types/config.ts +68 -20
  74. package/src/types/enums.ts +80 -0
  75. package/src/types/error.ts +23 -5
  76. package/src/types/geofence.ts +37 -0
  77. package/src/types/location.ts +28 -8
  78. package/src/types/state.ts +13 -3
  79. package/src/types/sync.ts +23 -0
  80. package/ios/Frameworks/BeekonKit.xcframework/_CodeSignature/CodeDirectory +0 -0
  81. package/ios/Frameworks/BeekonKit.xcframework/_CodeSignature/CodeRequirements +0 -0
  82. package/ios/Frameworks/BeekonKit.xcframework/_CodeSignature/CodeResources +0 -296
  83. package/ios/Frameworks/BeekonKit.xcframework/_CodeSignature/CodeSignature +0 -0
  84. package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/_CodeSignature/CodeResources +0 -146
@@ -1,27 +1,129 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
3
- // swift-module-flags: -target arm64-apple-ios17.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -module-name BeekonKit -package-name beekon_ios
4
- // swift-module-flags-ignorable: -no-verify-emitted-module-interface -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
5
- import CoreLocation
2
+ // swift-compiler-version: Apple Swift version 6.3.1 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
3
+ // swift-module-flags: -target arm64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name BeekonKit -package-name beekon_ios
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
5
+ @preconcurrency import BackgroundTasks
6
+ import Compression
7
+ @preconcurrency import CoreLocation
8
+ import CoreMotion
9
+ import Darwin
6
10
  import Foundation
7
11
  import Foundation/*.Bundle*/
8
12
  import Foundation/*.ProcessInfo*/
9
13
  import Foundation/*.URL*/
14
+ import Network
15
+ import Security
10
16
  import Swift
17
+ @preconcurrency import UIKit
11
18
  import _Concurrency
12
19
  import _StringProcessing
13
20
  import _SwiftConcurrencyShims
14
21
  import os
22
+ public enum AccuracyMode : Swift.String, Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Codable {
23
+ case high
24
+ case balanced
25
+ case low
26
+ public init?(rawValue: Swift.String)
27
+ public typealias RawValue = Swift.String
28
+ public var rawValue: Swift.String {
29
+ get
30
+ }
31
+ }
32
+ public enum ActivityType : Swift.String, Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Codable {
33
+ case stationary
34
+ case walking
35
+ case running
36
+ case cycling
37
+ case automotive
38
+ case unknown
39
+ public init?(rawValue: Swift.String)
40
+ public typealias RawValue = Swift.String
41
+ public var rawValue: Swift.String {
42
+ get
43
+ }
44
+ }
45
+ public enum AuthStrategy : Swift.String, Swift.Sendable, Swift.Equatable, Swift.Codable {
46
+ case bearer
47
+ case raw
48
+ public init?(rawValue: Swift.String)
49
+ public typealias RawValue = Swift.String
50
+ public var rawValue: Swift.String {
51
+ get
52
+ }
53
+ }
54
+ public enum AuthBodyFormat : Swift.String, Swift.Sendable, Swift.Equatable, Swift.Codable {
55
+ case form
56
+ case json
57
+ public init?(rawValue: Swift.String)
58
+ public typealias RawValue = Swift.String
59
+ public var rawValue: Swift.String {
60
+ get
61
+ }
62
+ }
63
+ public struct AuthResponseMapping : Swift.Sendable, Swift.Equatable, Swift.Codable {
64
+ public var accessToken: Swift.String?
65
+ public var refreshToken: Swift.String?
66
+ public var expiresIn: Swift.String?
67
+ public var expiresAt: Swift.String?
68
+ public init(accessToken: Swift.String? = nil, refreshToken: Swift.String? = nil, expiresIn: Swift.String? = nil, expiresAt: Swift.String? = nil)
69
+ public static func == (a: BeekonKit.AuthResponseMapping, b: BeekonKit.AuthResponseMapping) -> Swift.Bool
70
+ public func encode(to encoder: any Swift.Encoder) throws
71
+ public init(from decoder: any Swift.Decoder) throws
72
+ }
73
+ public struct AuthConfig : Swift.Sendable, Swift.Equatable, Swift.Codable {
74
+ public var accessToken: Swift.String?
75
+ public var refreshToken: Swift.String?
76
+ public var expiresAt: Foundation.TimeInterval?
77
+ public var strategy: BeekonKit.AuthStrategy
78
+ public var refreshUrl: Foundation.URL?
79
+ public var refreshPayload: [Swift.String : Swift.String]
80
+ public var refreshHeaders: [Swift.String : Swift.String]
81
+ public var refreshBodyFormat: BeekonKit.AuthBodyFormat
82
+ public var responseMapping: BeekonKit.AuthResponseMapping
83
+ public var skewMarginSeconds: Foundation.TimeInterval
84
+ public var seedEpoch: Swift.Int?
85
+ public init(accessToken: Swift.String? = nil, refreshToken: Swift.String? = nil, expiresAt: Foundation.TimeInterval? = nil, strategy: BeekonKit.AuthStrategy = .bearer, refreshUrl: Foundation.URL? = nil, refreshPayload: [Swift.String : Swift.String] = [:], refreshHeaders: [Swift.String : Swift.String] = ["Authorization": "Bearer {accessToken}"], refreshBodyFormat: BeekonKit.AuthBodyFormat = .form, responseMapping: BeekonKit.AuthResponseMapping = AuthResponseMapping(), skewMarginSeconds: Foundation.TimeInterval = 60, seedEpoch: Swift.Int? = nil)
86
+ public init(from decoder: any Swift.Decoder) throws
87
+ public func encode(to encoder: any Swift.Encoder) throws
88
+ public static func == (a: BeekonKit.AuthConfig, b: BeekonKit.AuthConfig) -> Swift.Bool
89
+ }
90
+ public struct AuthTokens : Swift.Sendable, Swift.Equatable {
91
+ public let accessToken: Swift.String
92
+ public let refreshToken: Swift.String?
93
+ public let expiresAt: Foundation.TimeInterval?
94
+ public let epoch: Swift.Int
95
+ public init(accessToken: Swift.String, refreshToken: Swift.String?, expiresAt: Foundation.TimeInterval?, epoch: Swift.Int)
96
+ public static func == (a: BeekonKit.AuthTokens, b: BeekonKit.AuthTokens) -> Swift.Bool
97
+ }
15
98
  @_hasMissingDesignatedInitializers public actor Beekon {
16
99
  public static let shared: BeekonKit.Beekon
17
- public func configure(_ config: BeekonKit.BeekonConfig)
18
- public func start() async throws
100
+ nonisolated public static func registerBackgroundTasks()
101
+ public func configure(_ config: BeekonKit.BeekonConfig) async
102
+ public func start() async
19
103
  public func stop() async
20
- public func locations(from: Foundation.Date, to: Foundation.Date) async throws -> [BeekonKit.Location]
104
+ public func resumeIfNeeded() async
105
+ public func getLocations(from: Foundation.Date, to: Foundation.Date) async throws -> [BeekonKit.Location]
106
+ public func getCurrentLocation(timeout: Foundation.TimeInterval = 15, accuracy: BeekonKit.AccuracyMode? = nil) async throws -> BeekonKit.Location?
107
+ public func deleteLocations(before: Foundation.Date?) async throws -> Swift.Int
108
+ public func pendingUploadCount() async throws -> Swift.Int
109
+ public func sync()
110
+ public func setExtras(_ extras: [Swift.String : Swift.String])
111
+ public func addGeofences(_ geofences: [BeekonKit.BeekonGeofence]) async throws
112
+ public func removeGeofences(ids: [Swift.String]) async
113
+ public func listGeofences() async -> [BeekonKit.BeekonGeofence]
114
+ public var locations: _Concurrency.AsyncStream<BeekonKit.Location> {
115
+ get
116
+ }
21
117
  public var state: _Concurrency.AsyncStream<BeekonKit.BeekonState> {
22
118
  get
23
119
  }
24
- public var locations: _Concurrency.AsyncStream<BeekonKit.Location> {
120
+ public var geofenceEvents: _Concurrency.AsyncStream<BeekonKit.GeofenceEvent> {
121
+ get
122
+ }
123
+ public var syncStatus: _Concurrency.AsyncStream<BeekonKit.SyncStatus> {
124
+ get
125
+ }
126
+ public var authChanges: _Concurrency.AsyncStream<BeekonKit.AuthTokens> {
25
127
  get
26
128
  }
27
129
  @objc deinit
@@ -30,56 +132,180 @@ import os
30
132
  get
31
133
  }
32
134
  }
33
- public struct BeekonConfig : Swift.Sendable, Swift.Equatable, Swift.Hashable {
34
- public var intervalSeconds: Foundation.TimeInterval
35
- public var distanceMeters: Swift.Double
36
- public static let `default`: BeekonKit.BeekonConfig
37
- public init(intervalSeconds: Foundation.TimeInterval = 30, distanceMeters: Swift.Double = 100)
135
+ public struct BeekonConfig : Swift.Sendable, Swift.Equatable, Swift.Codable {
136
+ public var minTimeBetweenLocationsSeconds: Foundation.TimeInterval
137
+ public var minDistanceBetweenLocationsMeters: Swift.Double
138
+ public var accuracyMode: BeekonKit.AccuracyMode
139
+ public var whenStationary: BeekonKit.StationaryMode
140
+ public var stationaryRadiusMeters: Swift.Double
141
+ public var detectActivity: Swift.Bool
142
+ public var sync: BeekonKit.SyncConfig?
143
+ public static let minimumLocationIntervalSeconds: Swift.Double
144
+ public static let minimumStationaryRadiusMeters: Swift.Double
145
+ public init(minTimeBetweenLocationsSeconds: Foundation.TimeInterval = 30, minDistanceBetweenLocationsMeters: Swift.Double = 100, accuracyMode: BeekonKit.AccuracyMode = .balanced, whenStationary: BeekonKit.StationaryMode = .pause, stationaryRadiusMeters: Swift.Double = 5, detectActivity: Swift.Bool = false, sync: BeekonKit.SyncConfig? = nil)
146
+ public init(from decoder: any Swift.Decoder) throws
147
+ public func encode(to encoder: any Swift.Encoder) throws
38
148
  public static func == (a: BeekonKit.BeekonConfig, b: BeekonKit.BeekonConfig) -> Swift.Bool
149
+ }
150
+ public struct SyncConfig : Swift.Sendable, Swift.Equatable, Swift.Codable {
151
+ public var url: Foundation.URL
152
+ public var headers: [Swift.String : Swift.String]
153
+ public var intervalSeconds: Foundation.TimeInterval
154
+ public var batchSize: Swift.Int
155
+ public var auth: BeekonKit.AuthConfig?
156
+ public init(url: Foundation.URL, headers: [Swift.String : Swift.String] = [:], intervalSeconds: Foundation.TimeInterval = 300, batchSize: Swift.Int = 100, auth: BeekonKit.AuthConfig? = nil)
157
+ public static func == (a: BeekonKit.SyncConfig, b: BeekonKit.SyncConfig) -> Swift.Bool
158
+ public func encode(to encoder: any Swift.Encoder) throws
159
+ public init(from decoder: any Swift.Decoder) throws
160
+ }
161
+ public enum BeekonError : Swift.Error, Swift.Sendable, Swift.Equatable {
162
+ case invalidGeofence(reason: Swift.String)
163
+ case storage(reason: Swift.String)
164
+ case locationUnavailable(reason: BeekonKit.LocationUnavailableReason)
165
+ public static func == (a: BeekonKit.BeekonError, b: BeekonKit.BeekonError) -> Swift.Bool
166
+ }
167
+ public enum LocationUnavailableReason : Swift.Sendable, Swift.Equatable {
168
+ case permissionDenied
169
+ case locationServicesDisabled
170
+ case unavailable
171
+ public static func == (a: BeekonKit.LocationUnavailableReason, b: BeekonKit.LocationUnavailableReason) -> Swift.Bool
39
172
  public func hash(into hasher: inout Swift.Hasher)
40
173
  public var hashValue: Swift.Int {
41
174
  get
42
175
  }
43
176
  }
44
- public enum BeekonError : Swift.Error, Swift.Sendable {
45
- case permissionDenied
46
- case locationServicesDisabled
47
- case storageFailure(any Swift.Error)
177
+ public struct BeekonGeofence : Swift.Sendable, Swift.Equatable, Swift.Codable {
178
+ public var id: Swift.String
179
+ public var latitude: Swift.Double
180
+ public var longitude: Swift.Double
181
+ public var radiusMeters: Swift.Double
182
+ public var notifyOnEntry: Swift.Bool
183
+ public var notifyOnExit: Swift.Bool
184
+ public init(id: Swift.String, latitude: Swift.Double, longitude: Swift.Double, radiusMeters: Swift.Double, notifyOnEntry: Swift.Bool = true, notifyOnExit: Swift.Bool = true)
185
+ public static func == (a: BeekonKit.BeekonGeofence, b: BeekonKit.BeekonGeofence) -> Swift.Bool
186
+ public func encode(to encoder: any Swift.Encoder) throws
187
+ public init(from decoder: any Swift.Decoder) throws
48
188
  }
49
- public enum BeekonState : Swift.Sendable, Swift.Equatable, Swift.Hashable {
189
+ public enum BeekonState : Swift.Sendable, Swift.Equatable {
50
190
  case idle
51
191
  case tracking
52
- case stopped(reason: BeekonKit.StopReason)
192
+ case stopped(BeekonKit.StopReason)
53
193
  public static func == (a: BeekonKit.BeekonState, b: BeekonKit.BeekonState) -> Swift.Bool
54
- public func hash(into hasher: inout Swift.Hasher)
55
- public var hashValue: Swift.Int {
56
- get
57
- }
58
194
  }
59
- public enum StopReason : Swift.Sendable, Swift.Equatable, Swift.Hashable {
195
+ public enum StopReason : Swift.String, Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Codable {
60
196
  case user
61
197
  case permissionDenied
62
198
  case locationServicesDisabled
63
- public static func == (a: BeekonKit.StopReason, b: BeekonKit.StopReason) -> Swift.Bool
64
- public func hash(into hasher: inout Swift.Hasher)
65
- public var hashValue: Swift.Int {
199
+ case locationUnavailable
200
+ case system
201
+ public init?(rawValue: Swift.String)
202
+ public typealias RawValue = Swift.String
203
+ public var rawValue: Swift.String {
66
204
  get
67
205
  }
68
206
  }
69
- public struct Location : Swift.Sendable, Swift.Equatable, Swift.Hashable {
70
- public let lat: Swift.Double
71
- public let lng: Swift.Double
207
+ public struct GeofenceEvent : Swift.Sendable, Swift.Equatable {
208
+ public let id: Swift.String
209
+ public let geofenceId: Swift.String
210
+ public let type: BeekonKit.Transition
211
+ public let timestamp: Foundation.Date
212
+ public init(id: Swift.String, geofenceId: Swift.String, type: BeekonKit.Transition, timestamp: Foundation.Date)
213
+ public static func == (a: BeekonKit.GeofenceEvent, b: BeekonKit.GeofenceEvent) -> Swift.Bool
214
+ }
215
+ public struct Location : Swift.Sendable, Swift.Equatable {
216
+ public let id: Swift.String
217
+ public let latitude: Swift.Double
218
+ public let longitude: Swift.Double
219
+ public let timestamp: Foundation.Date
72
220
  public let accuracy: Swift.Double?
73
221
  public let speed: Swift.Double?
74
222
  public let bearing: Swift.Double?
75
223
  public let altitude: Swift.Double?
76
- public let timestamp: Foundation.Date
77
- #if compiler(>=5.3) && $NonescapableTypes
78
- public init(lat: Swift.Double, lng: Swift.Double, timestamp: Foundation.Date, accuracy: Swift.Double? = nil, speed: Swift.Double? = nil, bearing: Swift.Double? = nil, altitude: Swift.Double? = nil)
79
- #endif
224
+ public let quality: BeekonKit.LocationQuality
225
+ public let trigger: BeekonKit.LocationTrigger
226
+ public let motion: BeekonKit.MotionState
227
+ public let activity: BeekonKit.ActivityType?
228
+ public let isMock: Swift.Bool
229
+ public init(id: Swift.String, latitude: Swift.Double, longitude: Swift.Double, timestamp: Foundation.Date, accuracy: Swift.Double? = nil, speed: Swift.Double? = nil, bearing: Swift.Double? = nil, altitude: Swift.Double? = nil, quality: BeekonKit.LocationQuality = .ok, trigger: BeekonKit.LocationTrigger = .interval, motion: BeekonKit.MotionState = .unknown, activity: BeekonKit.ActivityType? = nil, isMock: Swift.Bool = false)
80
230
  public static func == (a: BeekonKit.Location, b: BeekonKit.Location) -> Swift.Bool
81
- public func hash(into hasher: inout Swift.Hasher)
82
- public var hashValue: Swift.Int {
231
+ }
232
+ public enum LocationQuality : Swift.String, Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Codable {
233
+ case ok
234
+ case lowAccuracy
235
+ case implausibleSpeed
236
+ public init?(rawValue: Swift.String)
237
+ public typealias RawValue = Swift.String
238
+ public var rawValue: Swift.String {
239
+ get
240
+ }
241
+ }
242
+ public enum LocationTrigger : Swift.String, Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Codable {
243
+ case interval
244
+ case motion
245
+ case checkIn
246
+ case geofence
247
+ case manual
248
+ public init?(rawValue: Swift.String)
249
+ public typealias RawValue = Swift.String
250
+ public var rawValue: Swift.String {
251
+ get
252
+ }
253
+ }
254
+ public enum MotionState : Swift.String, Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Codable {
255
+ case moving
256
+ case stationary
257
+ case unknown
258
+ public init?(rawValue: Swift.String)
259
+ public typealias RawValue = Swift.String
260
+ public var rawValue: Swift.String {
261
+ get
262
+ }
263
+ }
264
+ public enum StationaryMode : Swift.String, Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Codable {
265
+ case keepTracking
266
+ case pause
267
+ case pauseWithCheckIns
268
+ public init?(rawValue: Swift.String)
269
+ public typealias RawValue = Swift.String
270
+ public var rawValue: Swift.String {
271
+ get
272
+ }
273
+ }
274
+ public enum SyncStatus : Swift.Sendable, Swift.Equatable {
275
+ case idle
276
+ case pending
277
+ case failed(BeekonKit.SyncFailure)
278
+ public static func == (a: BeekonKit.SyncStatus, b: BeekonKit.SyncStatus) -> Swift.Bool
279
+ }
280
+ public enum SyncFailure : Swift.String, Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Codable {
281
+ case auth
282
+ case rejected
283
+ public init?(rawValue: Swift.String)
284
+ public typealias RawValue = Swift.String
285
+ public var rawValue: Swift.String {
286
+ get
287
+ }
288
+ }
289
+ public enum Transition : Swift.String, Swift.Sendable, Swift.Equatable, Swift.Hashable, Swift.Codable {
290
+ case enter
291
+ case exit
292
+ public init?(rawValue: Swift.String)
293
+ public typealias RawValue = Swift.String
294
+ public var rawValue: Swift.String {
83
295
  get
84
296
  }
85
297
  }
298
+ extension BeekonKit.AccuracyMode : Swift.RawRepresentable {}
299
+ extension BeekonKit.ActivityType : Swift.RawRepresentable {}
300
+ extension BeekonKit.AuthStrategy : Swift.Hashable {}
301
+ extension BeekonKit.AuthStrategy : Swift.RawRepresentable {}
302
+ extension BeekonKit.AuthBodyFormat : Swift.Hashable {}
303
+ extension BeekonKit.AuthBodyFormat : Swift.RawRepresentable {}
304
+ extension BeekonKit.LocationUnavailableReason : Swift.Hashable {}
305
+ extension BeekonKit.StopReason : Swift.RawRepresentable {}
306
+ extension BeekonKit.LocationQuality : Swift.RawRepresentable {}
307
+ extension BeekonKit.LocationTrigger : Swift.RawRepresentable {}
308
+ extension BeekonKit.MotionState : Swift.RawRepresentable {}
309
+ extension BeekonKit.StationaryMode : Swift.RawRepresentable {}
310
+ extension BeekonKit.SyncFailure : Swift.RawRepresentable {}
311
+ extension BeekonKit.Transition : Swift.RawRepresentable {}