@doorstepai/dropoff-sdk 2.2.7 → 2.2.9
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 +78 -10
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/doorstepai/dropoffsdk/DoorstepAIModule.kt +54 -6
- package/android/src/main/java/com/doorstepai/dropoffsdk/DoorstepEmbedViewManager.kt +63 -0
- package/android/src/main/java/com/doorstepai/dropoffsdk/HostForegroundServiceWaiter.kt +98 -0
- package/ios/DoorstepAI.mm +10 -0
- package/ios/DoorstepAI.swift +50 -6
- package/ios/DoorstepDropoffSDK.xcframework/Info.plist +5 -5
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.abi.json +12846 -6562
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +142 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftinterface +142 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +10 -10
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +5069 -3867
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +12846 -6562
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +142 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +142 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +12846 -6562
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +142 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +142 -9
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +20 -20
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +5064 -3862
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/DoorstepDropoffSDK.yml +5032 -3836
- package/ios/DoorstepEmbedViewManager.mm +9 -0
- package/ios/DoorstepEmbedViewManager.swift +46 -5
- package/lib/module/DoorstepAI.js +49 -2
- package/lib/module/DoorstepAI.js.map +1 -1
- package/lib/module/DoorstepEmbedView.js +23 -1
- package/lib/module/DoorstepEmbedView.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/embed-preload.example.d.ts +25 -0
- package/lib/typescript/embed-preload.example.d.ts.map +1 -0
- package/lib/typescript/src/DoorstepAI.d.ts +39 -8
- package/lib/typescript/src/DoorstepAI.d.ts.map +1 -1
- package/lib/typescript/src/DoorstepEmbedView.d.ts +34 -3
- package/lib/typescript/src/DoorstepEmbedView.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/DoorstepAI.tsx +88 -7
- package/src/DoorstepEmbedView.tsx +64 -9
- package/src/index.tsx +3 -0
|
@@ -30,12 +30,65 @@ public enum EmbedMode : Swift.String, Swift.Sendable {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
@_Concurrency.MainActor @preconcurrency public struct DoorstepEmbedView : SwiftUICore.View {
|
|
33
|
-
@_Concurrency.MainActor @preconcurrency public init(address: Swift.String, deliveryID: Swift.String? = nil, linkAPI: Swift.String = "https://api.core.doorstep.ai", mode: SwiftUICore.Binding<DoorstepDropoffSDK.EmbedMode>? = nil, inlineHeight: CoreFoundation.CGFloat = 300, expandedHeight: CoreFoundation.CGFloat = 600, baseMap: Swift.String = "light", parkingText: Swift.String = "95% of drivers parked here", markerColor: Swift.String = "#027FB8", polygonColor: Swift.String = "#3291BC", parkingColor: Swift.String = "#FF847B", onModeChanged: ((DoorstepDropoffSDK.EmbedMode) -> Swift.Void)? = nil,
|
|
33
|
+
@_Concurrency.MainActor @preconcurrency public init(address: Swift.String, deliveryID: Swift.String? = nil, linkAPI: Swift.String = "https://api.core.doorstep.ai", mode: SwiftUICore.Binding<DoorstepDropoffSDK.EmbedMode>? = nil, inlineHeight: CoreFoundation.CGFloat = 300, expandedHeight: CoreFoundation.CGFloat = 600, baseMap: Swift.String = "light", parkingText: Swift.String = "95% of drivers parked here", markerColor: Swift.String = "#027FB8", polygonColor: Swift.String = "#3291BC", parkingColor: Swift.String = "#FF847B", endpoint: DoorstepDropoffSDK.LatLngObject? = nil, mapStyleToggle: Swift.Bool = true, gpsRecenterToggle: Swift.Bool = true, streetViewToggle: Swift.Bool = true, expandContractToggle: Swift.Bool = true, fitGpsOnStart: Swift.Bool = false, readyTimeoutSeconds: Foundation.TimeInterval = 15, onModeChanged: ((DoorstepDropoffSDK.EmbedMode) -> Swift.Void)? = nil, onLoading: (() -> Swift.Void)? = nil, onSuccess: (() -> Swift.Void)? = nil, onError: ((DoorstepDropoffSDK.DoorstepEmbedError) -> Swift.Void)? = nil)
|
|
34
34
|
@_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
|
|
35
35
|
get
|
|
36
36
|
}
|
|
37
37
|
public typealias Body = @_opaqueReturnTypeOf("$s18DoorstepDropoffSDK0A9EmbedViewV4bodyQrvp", 0) __
|
|
38
38
|
}
|
|
39
|
+
public struct DoorstepEmbedError : Swift.Error {
|
|
40
|
+
public enum Stage : Swift.String, Swift.Sendable {
|
|
41
|
+
case linkGeneration
|
|
42
|
+
case webNavigation
|
|
43
|
+
case initialization
|
|
44
|
+
case rendering
|
|
45
|
+
public init?(rawValue: Swift.String)
|
|
46
|
+
public typealias RawValue = Swift.String
|
|
47
|
+
public var rawValue: Swift.String {
|
|
48
|
+
get
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
public enum Code : Swift.String, Swift.Sendable, Swift.CaseIterable {
|
|
52
|
+
case invalidApiKey
|
|
53
|
+
case destinationNotMapped
|
|
54
|
+
case networkError
|
|
55
|
+
case internalServerError
|
|
56
|
+
public init?(rawValue: Swift.String)
|
|
57
|
+
public typealias AllCases = [DoorstepDropoffSDK.DoorstepEmbedError.Code]
|
|
58
|
+
public typealias RawValue = Swift.String
|
|
59
|
+
nonisolated public static var allCases: [DoorstepDropoffSDK.DoorstepEmbedError.Code] {
|
|
60
|
+
get
|
|
61
|
+
}
|
|
62
|
+
public var rawValue: Swift.String {
|
|
63
|
+
get
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
public let code: DoorstepDropoffSDK.DoorstepEmbedError.Code
|
|
67
|
+
public let stage: DoorstepDropoffSDK.DoorstepEmbedError.Stage
|
|
68
|
+
public let message: Swift.String
|
|
69
|
+
public let isRetryable: Swift.Bool
|
|
70
|
+
public let httpStatusCode: Swift.Int?
|
|
71
|
+
public let requestID: Swift.String?
|
|
72
|
+
public let underlyingError: (any Swift.Error)?
|
|
73
|
+
public init(code: DoorstepDropoffSDK.DoorstepEmbedError.Code, stage: DoorstepDropoffSDK.DoorstepEmbedError.Stage, message: Swift.String, isRetryable: Swift.Bool, httpStatusCode: Swift.Int? = nil, requestID: Swift.String? = nil, underlyingError: (any Swift.Error)? = nil)
|
|
74
|
+
}
|
|
75
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError : Swift.CustomStringConvertible {
|
|
76
|
+
public var description: Swift.String {
|
|
77
|
+
get
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
public struct RouteTrackingOptions : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
81
|
+
public var enabled: Swift.Bool
|
|
82
|
+
public var clientRouteId: Swift.String?
|
|
83
|
+
public var driverId: Swift.String?
|
|
84
|
+
public var metadata: [Swift.String : Swift.String]?
|
|
85
|
+
public init(clientRouteId: Swift.String? = nil, driverId: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
86
|
+
@available(*, deprecated, message: "The enabled value is ignored; use server routeTracking.enabled.")
|
|
87
|
+
public init(enabled: Swift.Bool, clientRouteId: Swift.String? = nil, driverId: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
88
|
+
public static func == (a: DoorstepDropoffSDK.RouteTrackingOptions, b: DoorstepDropoffSDK.RouteTrackingOptions) -> Swift.Bool
|
|
89
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
90
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
91
|
+
}
|
|
39
92
|
public enum SDKLogLevel : Swift.Int, Swift.Codable, Swift.Comparable {
|
|
40
93
|
case debug
|
|
41
94
|
case info
|
|
@@ -131,6 +184,7 @@ public enum DoorstepAIError : Swift.Error {
|
|
|
131
184
|
case sessionCreationFailed(Swift.String)
|
|
132
185
|
case invalidAddress
|
|
133
186
|
case unknownDeliveryId(Swift.String)
|
|
187
|
+
case invalidMetadata
|
|
134
188
|
}
|
|
135
189
|
public enum DropoffType : Swift.String, Swift.Codable {
|
|
136
190
|
case pod
|
|
@@ -142,12 +196,32 @@ public enum DropoffType : Swift.String, Swift.Codable {
|
|
|
142
196
|
}
|
|
143
197
|
}
|
|
144
198
|
@_hasMissingDesignatedInitializers public class DoorstepAI {
|
|
199
|
+
public static var collectDebugLogs: Swift.Bool {
|
|
200
|
+
get
|
|
201
|
+
set
|
|
202
|
+
}
|
|
203
|
+
public static var isCollectingDebugLogs: Swift.Bool {
|
|
204
|
+
get
|
|
205
|
+
}
|
|
206
|
+
public static var isDevModeEnabled: Swift.Bool {
|
|
207
|
+
get
|
|
208
|
+
}
|
|
209
|
+
public static var debugLogCollectionError: Swift.String? {
|
|
210
|
+
get
|
|
211
|
+
}
|
|
212
|
+
public static let debugLogCollectionDidChangeNotification: Foundation.Notification.Name
|
|
213
|
+
public static func exportDebugLogs() async throws -> Foundation.URL
|
|
145
214
|
public static let configDidLoadNotification: Foundation.Notification.Name
|
|
215
|
+
public static var collectionStartedAt: Foundation.Date? {
|
|
216
|
+
get
|
|
217
|
+
}
|
|
146
218
|
public static let configDidFailToLoadNotification: Foundation.Notification.Name
|
|
147
219
|
public static let geofenceSessionStartedNotification: Foundation.Notification.Name
|
|
148
220
|
public static let geofenceSessionStoppedNotification: Foundation.Notification.Name
|
|
149
221
|
public static let sessionServerIdAssignedNotification: Foundation.Notification.Name
|
|
150
|
-
public static func setApiKey(key: Swift.String,
|
|
222
|
+
public static func setApiKey(key: Swift.String, shouldGetConfig: Swift.Bool = true)
|
|
223
|
+
@available(*, deprecated, message: "Omit initCollectors; use setApiKey(key:shouldGetConfig:).")
|
|
224
|
+
public static func setApiKey(key: Swift.String, initCollectors: Swift.Bool, shouldGetConfig: Swift.Bool = true)
|
|
151
225
|
public static func setDoorstepGoApiKey(key: Swift.String)
|
|
152
226
|
public static func setBackgroundSessionCompletionHandler(_ handler: @escaping () -> Swift.Void)
|
|
153
227
|
public static func setBackgroundSessionCompletionHandler(_ handler: @escaping () -> Swift.Void, forSessionIdentifier identifier: Swift.String)
|
|
@@ -159,23 +233,35 @@ public enum DropoffType : Swift.String, Swift.Codable {
|
|
|
159
233
|
public static func configureRemoteLogging(enabled: Swift.Bool, minLevel: DoorstepDropoffSDK.SDKLogLevel = .warning, flushInterval: Foundation.TimeInterval = 30, batchSize: Swift.Int = 50, maxQueueSize: Swift.Int = 1000)
|
|
160
234
|
public static func debugStateJson() -> Swift.String
|
|
161
235
|
public static func enableDevMode(apiKey: Swift.String) async
|
|
162
|
-
public static func startDeliveryByPlaceID(placeID: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
|
|
236
|
+
public static func startDeliveryByPlaceID(placeID: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, metadata: [Swift.String : Any]? = nil) async throws
|
|
163
237
|
@available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) instead.")
|
|
164
|
-
public static func startDeliveryByPlusCode(plusCode: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
|
|
165
|
-
public static func startDeliveryByAddressType(address: DoorstepDropoffSDK.AddressType, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
|
|
166
|
-
public static func startDeliveryByAddressString(address: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
|
|
238
|
+
public static func startDeliveryByPlusCode(plusCode: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, metadata: [Swift.String : Any]? = nil) async throws
|
|
239
|
+
public static func startDeliveryByAddressType(address: DoorstepDropoffSDK.AddressType, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, metadata: [Swift.String : Any]? = nil) async throws
|
|
240
|
+
public static func startDeliveryByAddressString(address: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, metadata: [Swift.String : Any]? = nil) async throws
|
|
167
241
|
@available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) instead.")
|
|
168
|
-
public static func startDeliveryByLatLng(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
|
|
242
|
+
public static func startDeliveryByLatLng(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, metadata: [Swift.String : Any]? = nil) async throws
|
|
169
243
|
public static func markDropoff(deliveryId: Swift.String, dropoffType: DoorstepDropoffSDK.DropoffType) async throws
|
|
170
244
|
public static func newEvent(eventName: Swift.String, deliveryId: Swift.String, timestamp: Swift.Double? = nil) async throws
|
|
245
|
+
public static func addMetadata(_ deliveryId: Swift.String, _ metadata: [Swift.String : Any]) async throws
|
|
171
246
|
public static func stopDelivery(deliveryId: Swift.String) async
|
|
172
|
-
public static func startRouteGeofencing(stops: [DoorstepDropoffSDK.DeliveryStop], options: DoorstepDropoffSDK.
|
|
247
|
+
public static func startRouteGeofencing(stops: [DoorstepDropoffSDK.DeliveryStop], options: DoorstepDropoffSDK.RouteOptions = RouteOptions())
|
|
248
|
+
@available(*, deprecated, message: "Use startRouteGeofencing(stops:options:) with RouteOptions.")
|
|
249
|
+
public static func startRouteGeofencing(stops: [DoorstepDropoffSDK.DeliveryStop], options: DoorstepDropoffSDK.RouteGeofenceOptions)
|
|
250
|
+
@available(*, deprecated, message: "Use one RouteOptions argument instead of RouteGeofenceOptions plus RouteTrackingOptions.")
|
|
251
|
+
public static func startRouteGeofencing(stops: [DoorstepDropoffSDK.DeliveryStop], options: DoorstepDropoffSDK.RouteGeofenceOptions = RouteGeofenceOptions(), routeTracking: DoorstepDropoffSDK.RouteTrackingOptions)
|
|
173
252
|
public static func updateRouteStops(_ stops: [DoorstepDropoffSDK.DeliveryStop])
|
|
174
253
|
public static func stopRouteGeofencing()
|
|
254
|
+
public static func isRouteGeofencingActive() -> Swift.Bool
|
|
175
255
|
public static func resumeRouteGeofencingIfNeeded()
|
|
176
256
|
public static var monitoredStops: [DoorstepDropoffSDK.DeliveryStop] {
|
|
177
257
|
get
|
|
178
258
|
}
|
|
259
|
+
public static var activeRouteId: Swift.String? {
|
|
260
|
+
get
|
|
261
|
+
}
|
|
262
|
+
public static var activeRouteRevision: Swift.Int? {
|
|
263
|
+
get
|
|
264
|
+
}
|
|
179
265
|
@objc deinit
|
|
180
266
|
}
|
|
181
267
|
public enum DoorstepPermission : Swift.String, Swift.CaseIterable, Swift.Sendable {
|
|
@@ -227,19 +313,36 @@ public struct DoorstepPermissionRequestResult : Swift.Sendable {
|
|
|
227
313
|
}
|
|
228
314
|
}
|
|
229
315
|
public struct DeliveryStop : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
316
|
+
public let routeStopId: Swift.String?
|
|
230
317
|
public let deliveryId: Swift.String
|
|
231
318
|
public let address: Swift.String
|
|
232
319
|
public let latitude: Swift.Double
|
|
233
320
|
public let longitude: Swift.Double
|
|
321
|
+
@available(*, deprecated, message: "Ignored; radius is controlled by server config misc.geofence.defaultRadiusMeters.")
|
|
234
322
|
public let radiusMeters: Swift.Double?
|
|
235
323
|
public let customerId: Swift.String?
|
|
236
324
|
public let driverId: Swift.String?
|
|
237
|
-
public
|
|
325
|
+
public let metadata: [Swift.String : DoorstepDropoffSDK.JSONValue]?
|
|
326
|
+
public init(routeStopId: Swift.String? = nil, deliveryId: Swift.String, address: Swift.String, latitude: Swift.Double, longitude: Swift.Double, radiusMeters: Swift.Double? = nil, customerId: Swift.String? = nil, driverId: Swift.String? = nil, metadata: [Swift.String : DoorstepDropoffSDK.JSONValue]? = nil)
|
|
238
327
|
public static func == (a: DoorstepDropoffSDK.DeliveryStop, b: DoorstepDropoffSDK.DeliveryStop) -> Swift.Bool
|
|
239
328
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
240
329
|
public init(from decoder: any Swift.Decoder) throws
|
|
241
330
|
}
|
|
331
|
+
public struct RouteOptions : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
332
|
+
@available(*, deprecated, message: "Ignored; radius is controlled by server config misc.geofence.defaultRadiusMeters.")
|
|
333
|
+
public var defaultRadiusMeters: Swift.Double
|
|
334
|
+
public var timeoutSeconds: Foundation.TimeInterval?
|
|
335
|
+
public var autoStopAfterDropoffSeconds: Foundation.TimeInterval?
|
|
336
|
+
public var clientRouteId: Swift.String?
|
|
337
|
+
public var driverId: Swift.String?
|
|
338
|
+
public var metadata: [Swift.String : Swift.String]?
|
|
339
|
+
public init(defaultRadiusMeters: Swift.Double = 250, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, clientRouteId: Swift.String? = nil, driverId: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
340
|
+
public static func == (a: DoorstepDropoffSDK.RouteOptions, b: DoorstepDropoffSDK.RouteOptions) -> Swift.Bool
|
|
341
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
342
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
343
|
+
}
|
|
242
344
|
public struct RouteGeofenceOptions : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
345
|
+
@available(*, deprecated, message: "Ignored; radius is controlled by server config misc.geofence.defaultRadiusMeters.")
|
|
243
346
|
public var defaultRadiusMeters: Swift.Double
|
|
244
347
|
public var timeoutSeconds: Foundation.TimeInterval?
|
|
245
348
|
public var autoStopAfterDropoffSeconds: Foundation.TimeInterval?
|
|
@@ -248,6 +351,30 @@ public struct RouteGeofenceOptions : Swift.Codable, Swift.Sendable, Swift.Equata
|
|
|
248
351
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
249
352
|
public init(from decoder: any Swift.Decoder) throws
|
|
250
353
|
}
|
|
354
|
+
indirect public enum JSONValue : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
355
|
+
case string(Swift.String), integer(Swift.Int64), number(Swift.Double), bool(Swift.Bool), object([Swift.String : DoorstepDropoffSDK.JSONValue]), array([DoorstepDropoffSDK.JSONValue]), null
|
|
356
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
357
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
358
|
+
public static func == (a: DoorstepDropoffSDK.JSONValue, b: DoorstepDropoffSDK.JSONValue) -> Swift.Bool
|
|
359
|
+
}
|
|
360
|
+
extension DoorstepDropoffSDK.JSONValue : Swift.ExpressibleByStringLiteral, Swift.ExpressibleByIntegerLiteral, Swift.ExpressibleByFloatLiteral, Swift.ExpressibleByBooleanLiteral, Swift.ExpressibleByNilLiteral, Swift.ExpressibleByArrayLiteral, Swift.ExpressibleByDictionaryLiteral {
|
|
361
|
+
public init(stringLiteral value: Swift.String)
|
|
362
|
+
public init(integerLiteral value: Swift.Int)
|
|
363
|
+
public init(floatLiteral value: Swift.Double)
|
|
364
|
+
public init(booleanLiteral value: Swift.Bool)
|
|
365
|
+
public init(nilLiteral: ())
|
|
366
|
+
public init(arrayLiteral elements: DoorstepDropoffSDK.JSONValue...)
|
|
367
|
+
public init(dictionaryLiteral elements: (Swift.String, DoorstepDropoffSDK.JSONValue)...)
|
|
368
|
+
public typealias ArrayLiteralElement = DoorstepDropoffSDK.JSONValue
|
|
369
|
+
public typealias BooleanLiteralType = Swift.Bool
|
|
370
|
+
public typealias ExtendedGraphemeClusterLiteralType = Swift.String
|
|
371
|
+
public typealias FloatLiteralType = Swift.Double
|
|
372
|
+
public typealias IntegerLiteralType = Swift.Int
|
|
373
|
+
public typealias Key = Swift.String
|
|
374
|
+
public typealias StringLiteralType = Swift.String
|
|
375
|
+
public typealias UnicodeScalarLiteralType = Swift.String
|
|
376
|
+
public typealias Value = DoorstepDropoffSDK.JSONValue
|
|
377
|
+
}
|
|
251
378
|
@_Concurrency.MainActor @preconcurrency public struct DoorstepAIRoot : SwiftUICore.View {
|
|
252
379
|
@_Concurrency.MainActor @preconcurrency public init()
|
|
253
380
|
@_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
|
|
@@ -268,6 +395,12 @@ extension DoorstepDropoffSDK.EmbedMode : Swift.Equatable {}
|
|
|
268
395
|
extension DoorstepDropoffSDK.EmbedMode : Swift.Hashable {}
|
|
269
396
|
extension DoorstepDropoffSDK.EmbedMode : Swift.RawRepresentable {}
|
|
270
397
|
extension DoorstepDropoffSDK.DoorstepEmbedView : Swift.Sendable {}
|
|
398
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Stage : Swift.Equatable {}
|
|
399
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Stage : Swift.Hashable {}
|
|
400
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Stage : Swift.RawRepresentable {}
|
|
401
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Code : Swift.Equatable {}
|
|
402
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Code : Swift.Hashable {}
|
|
403
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Code : Swift.RawRepresentable {}
|
|
271
404
|
extension DoorstepDropoffSDK.SDKLogLevel : Swift.Hashable {}
|
|
272
405
|
extension DoorstepDropoffSDK.SDKLogLevel : Swift.RawRepresentable {}
|
|
273
406
|
extension DoorstepDropoffSDK.DropoffType : Swift.Equatable {}
|
|
Binary file
|
|
@@ -30,12 +30,65 @@ public enum EmbedMode : Swift.String, Swift.Sendable {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
@_Concurrency.MainActor @preconcurrency public struct DoorstepEmbedView : SwiftUICore.View {
|
|
33
|
-
@_Concurrency.MainActor @preconcurrency public init(address: Swift.String, deliveryID: Swift.String? = nil, linkAPI: Swift.String = "https://api.core.doorstep.ai", mode: SwiftUICore.Binding<DoorstepDropoffSDK.EmbedMode>? = nil, inlineHeight: CoreFoundation.CGFloat = 300, expandedHeight: CoreFoundation.CGFloat = 600, baseMap: Swift.String = "light", parkingText: Swift.String = "95% of drivers parked here", markerColor: Swift.String = "#027FB8", polygonColor: Swift.String = "#3291BC", parkingColor: Swift.String = "#FF847B", onModeChanged: ((DoorstepDropoffSDK.EmbedMode) -> Swift.Void)? = nil,
|
|
33
|
+
@_Concurrency.MainActor @preconcurrency public init(address: Swift.String, deliveryID: Swift.String? = nil, linkAPI: Swift.String = "https://api.core.doorstep.ai", mode: SwiftUICore.Binding<DoorstepDropoffSDK.EmbedMode>? = nil, inlineHeight: CoreFoundation.CGFloat = 300, expandedHeight: CoreFoundation.CGFloat = 600, baseMap: Swift.String = "light", parkingText: Swift.String = "95% of drivers parked here", markerColor: Swift.String = "#027FB8", polygonColor: Swift.String = "#3291BC", parkingColor: Swift.String = "#FF847B", endpoint: DoorstepDropoffSDK.LatLngObject? = nil, mapStyleToggle: Swift.Bool = true, gpsRecenterToggle: Swift.Bool = true, streetViewToggle: Swift.Bool = true, expandContractToggle: Swift.Bool = true, fitGpsOnStart: Swift.Bool = false, readyTimeoutSeconds: Foundation.TimeInterval = 15, onModeChanged: ((DoorstepDropoffSDK.EmbedMode) -> Swift.Void)? = nil, onLoading: (() -> Swift.Void)? = nil, onSuccess: (() -> Swift.Void)? = nil, onError: ((DoorstepDropoffSDK.DoorstepEmbedError) -> Swift.Void)? = nil)
|
|
34
34
|
@_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
|
|
35
35
|
get
|
|
36
36
|
}
|
|
37
37
|
public typealias Body = @_opaqueReturnTypeOf("$s18DoorstepDropoffSDK0A9EmbedViewV4bodyQrvp", 0) __
|
|
38
38
|
}
|
|
39
|
+
public struct DoorstepEmbedError : Swift.Error {
|
|
40
|
+
public enum Stage : Swift.String, Swift.Sendable {
|
|
41
|
+
case linkGeneration
|
|
42
|
+
case webNavigation
|
|
43
|
+
case initialization
|
|
44
|
+
case rendering
|
|
45
|
+
public init?(rawValue: Swift.String)
|
|
46
|
+
public typealias RawValue = Swift.String
|
|
47
|
+
public var rawValue: Swift.String {
|
|
48
|
+
get
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
public enum Code : Swift.String, Swift.Sendable, Swift.CaseIterable {
|
|
52
|
+
case invalidApiKey
|
|
53
|
+
case destinationNotMapped
|
|
54
|
+
case networkError
|
|
55
|
+
case internalServerError
|
|
56
|
+
public init?(rawValue: Swift.String)
|
|
57
|
+
public typealias AllCases = [DoorstepDropoffSDK.DoorstepEmbedError.Code]
|
|
58
|
+
public typealias RawValue = Swift.String
|
|
59
|
+
nonisolated public static var allCases: [DoorstepDropoffSDK.DoorstepEmbedError.Code] {
|
|
60
|
+
get
|
|
61
|
+
}
|
|
62
|
+
public var rawValue: Swift.String {
|
|
63
|
+
get
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
public let code: DoorstepDropoffSDK.DoorstepEmbedError.Code
|
|
67
|
+
public let stage: DoorstepDropoffSDK.DoorstepEmbedError.Stage
|
|
68
|
+
public let message: Swift.String
|
|
69
|
+
public let isRetryable: Swift.Bool
|
|
70
|
+
public let httpStatusCode: Swift.Int?
|
|
71
|
+
public let requestID: Swift.String?
|
|
72
|
+
public let underlyingError: (any Swift.Error)?
|
|
73
|
+
public init(code: DoorstepDropoffSDK.DoorstepEmbedError.Code, stage: DoorstepDropoffSDK.DoorstepEmbedError.Stage, message: Swift.String, isRetryable: Swift.Bool, httpStatusCode: Swift.Int? = nil, requestID: Swift.String? = nil, underlyingError: (any Swift.Error)? = nil)
|
|
74
|
+
}
|
|
75
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError : Swift.CustomStringConvertible {
|
|
76
|
+
public var description: Swift.String {
|
|
77
|
+
get
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
public struct RouteTrackingOptions : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
81
|
+
public var enabled: Swift.Bool
|
|
82
|
+
public var clientRouteId: Swift.String?
|
|
83
|
+
public var driverId: Swift.String?
|
|
84
|
+
public var metadata: [Swift.String : Swift.String]?
|
|
85
|
+
public init(clientRouteId: Swift.String? = nil, driverId: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
86
|
+
@available(*, deprecated, message: "The enabled value is ignored; use server routeTracking.enabled.")
|
|
87
|
+
public init(enabled: Swift.Bool, clientRouteId: Swift.String? = nil, driverId: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
88
|
+
public static func == (a: DoorstepDropoffSDK.RouteTrackingOptions, b: DoorstepDropoffSDK.RouteTrackingOptions) -> Swift.Bool
|
|
89
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
90
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
91
|
+
}
|
|
39
92
|
public enum SDKLogLevel : Swift.Int, Swift.Codable, Swift.Comparable {
|
|
40
93
|
case debug
|
|
41
94
|
case info
|
|
@@ -131,6 +184,7 @@ public enum DoorstepAIError : Swift.Error {
|
|
|
131
184
|
case sessionCreationFailed(Swift.String)
|
|
132
185
|
case invalidAddress
|
|
133
186
|
case unknownDeliveryId(Swift.String)
|
|
187
|
+
case invalidMetadata
|
|
134
188
|
}
|
|
135
189
|
public enum DropoffType : Swift.String, Swift.Codable {
|
|
136
190
|
case pod
|
|
@@ -142,12 +196,32 @@ public enum DropoffType : Swift.String, Swift.Codable {
|
|
|
142
196
|
}
|
|
143
197
|
}
|
|
144
198
|
@_hasMissingDesignatedInitializers public class DoorstepAI {
|
|
199
|
+
public static var collectDebugLogs: Swift.Bool {
|
|
200
|
+
get
|
|
201
|
+
set
|
|
202
|
+
}
|
|
203
|
+
public static var isCollectingDebugLogs: Swift.Bool {
|
|
204
|
+
get
|
|
205
|
+
}
|
|
206
|
+
public static var isDevModeEnabled: Swift.Bool {
|
|
207
|
+
get
|
|
208
|
+
}
|
|
209
|
+
public static var debugLogCollectionError: Swift.String? {
|
|
210
|
+
get
|
|
211
|
+
}
|
|
212
|
+
public static let debugLogCollectionDidChangeNotification: Foundation.Notification.Name
|
|
213
|
+
public static func exportDebugLogs() async throws -> Foundation.URL
|
|
145
214
|
public static let configDidLoadNotification: Foundation.Notification.Name
|
|
215
|
+
public static var collectionStartedAt: Foundation.Date? {
|
|
216
|
+
get
|
|
217
|
+
}
|
|
146
218
|
public static let configDidFailToLoadNotification: Foundation.Notification.Name
|
|
147
219
|
public static let geofenceSessionStartedNotification: Foundation.Notification.Name
|
|
148
220
|
public static let geofenceSessionStoppedNotification: Foundation.Notification.Name
|
|
149
221
|
public static let sessionServerIdAssignedNotification: Foundation.Notification.Name
|
|
150
|
-
public static func setApiKey(key: Swift.String,
|
|
222
|
+
public static func setApiKey(key: Swift.String, shouldGetConfig: Swift.Bool = true)
|
|
223
|
+
@available(*, deprecated, message: "Omit initCollectors; use setApiKey(key:shouldGetConfig:).")
|
|
224
|
+
public static func setApiKey(key: Swift.String, initCollectors: Swift.Bool, shouldGetConfig: Swift.Bool = true)
|
|
151
225
|
public static func setDoorstepGoApiKey(key: Swift.String)
|
|
152
226
|
public static func setBackgroundSessionCompletionHandler(_ handler: @escaping () -> Swift.Void)
|
|
153
227
|
public static func setBackgroundSessionCompletionHandler(_ handler: @escaping () -> Swift.Void, forSessionIdentifier identifier: Swift.String)
|
|
@@ -159,23 +233,35 @@ public enum DropoffType : Swift.String, Swift.Codable {
|
|
|
159
233
|
public static func configureRemoteLogging(enabled: Swift.Bool, minLevel: DoorstepDropoffSDK.SDKLogLevel = .warning, flushInterval: Foundation.TimeInterval = 30, batchSize: Swift.Int = 50, maxQueueSize: Swift.Int = 1000)
|
|
160
234
|
public static func debugStateJson() -> Swift.String
|
|
161
235
|
public static func enableDevMode(apiKey: Swift.String) async
|
|
162
|
-
public static func startDeliveryByPlaceID(placeID: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
|
|
236
|
+
public static func startDeliveryByPlaceID(placeID: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, metadata: [Swift.String : Any]? = nil) async throws
|
|
163
237
|
@available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) instead.")
|
|
164
|
-
public static func startDeliveryByPlusCode(plusCode: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
|
|
165
|
-
public static func startDeliveryByAddressType(address: DoorstepDropoffSDK.AddressType, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
|
|
166
|
-
public static func startDeliveryByAddressString(address: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
|
|
238
|
+
public static func startDeliveryByPlusCode(plusCode: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, metadata: [Swift.String : Any]? = nil) async throws
|
|
239
|
+
public static func startDeliveryByAddressType(address: DoorstepDropoffSDK.AddressType, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, metadata: [Swift.String : Any]? = nil) async throws
|
|
240
|
+
public static func startDeliveryByAddressString(address: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, metadata: [Swift.String : Any]? = nil) async throws
|
|
167
241
|
@available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) instead.")
|
|
168
|
-
public static func startDeliveryByLatLng(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
|
|
242
|
+
public static func startDeliveryByLatLng(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String, deliveryId: Swift.String, customerId: Swift.String? = nil, driverId: Swift.String? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, metadata: [Swift.String : Any]? = nil) async throws
|
|
169
243
|
public static func markDropoff(deliveryId: Swift.String, dropoffType: DoorstepDropoffSDK.DropoffType) async throws
|
|
170
244
|
public static func newEvent(eventName: Swift.String, deliveryId: Swift.String, timestamp: Swift.Double? = nil) async throws
|
|
245
|
+
public static func addMetadata(_ deliveryId: Swift.String, _ metadata: [Swift.String : Any]) async throws
|
|
171
246
|
public static func stopDelivery(deliveryId: Swift.String) async
|
|
172
|
-
public static func startRouteGeofencing(stops: [DoorstepDropoffSDK.DeliveryStop], options: DoorstepDropoffSDK.
|
|
247
|
+
public static func startRouteGeofencing(stops: [DoorstepDropoffSDK.DeliveryStop], options: DoorstepDropoffSDK.RouteOptions = RouteOptions())
|
|
248
|
+
@available(*, deprecated, message: "Use startRouteGeofencing(stops:options:) with RouteOptions.")
|
|
249
|
+
public static func startRouteGeofencing(stops: [DoorstepDropoffSDK.DeliveryStop], options: DoorstepDropoffSDK.RouteGeofenceOptions)
|
|
250
|
+
@available(*, deprecated, message: "Use one RouteOptions argument instead of RouteGeofenceOptions plus RouteTrackingOptions.")
|
|
251
|
+
public static func startRouteGeofencing(stops: [DoorstepDropoffSDK.DeliveryStop], options: DoorstepDropoffSDK.RouteGeofenceOptions = RouteGeofenceOptions(), routeTracking: DoorstepDropoffSDK.RouteTrackingOptions)
|
|
173
252
|
public static func updateRouteStops(_ stops: [DoorstepDropoffSDK.DeliveryStop])
|
|
174
253
|
public static func stopRouteGeofencing()
|
|
254
|
+
public static func isRouteGeofencingActive() -> Swift.Bool
|
|
175
255
|
public static func resumeRouteGeofencingIfNeeded()
|
|
176
256
|
public static var monitoredStops: [DoorstepDropoffSDK.DeliveryStop] {
|
|
177
257
|
get
|
|
178
258
|
}
|
|
259
|
+
public static var activeRouteId: Swift.String? {
|
|
260
|
+
get
|
|
261
|
+
}
|
|
262
|
+
public static var activeRouteRevision: Swift.Int? {
|
|
263
|
+
get
|
|
264
|
+
}
|
|
179
265
|
@objc deinit
|
|
180
266
|
}
|
|
181
267
|
public enum DoorstepPermission : Swift.String, Swift.CaseIterable, Swift.Sendable {
|
|
@@ -227,19 +313,36 @@ public struct DoorstepPermissionRequestResult : Swift.Sendable {
|
|
|
227
313
|
}
|
|
228
314
|
}
|
|
229
315
|
public struct DeliveryStop : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
316
|
+
public let routeStopId: Swift.String?
|
|
230
317
|
public let deliveryId: Swift.String
|
|
231
318
|
public let address: Swift.String
|
|
232
319
|
public let latitude: Swift.Double
|
|
233
320
|
public let longitude: Swift.Double
|
|
321
|
+
@available(*, deprecated, message: "Ignored; radius is controlled by server config misc.geofence.defaultRadiusMeters.")
|
|
234
322
|
public let radiusMeters: Swift.Double?
|
|
235
323
|
public let customerId: Swift.String?
|
|
236
324
|
public let driverId: Swift.String?
|
|
237
|
-
public
|
|
325
|
+
public let metadata: [Swift.String : DoorstepDropoffSDK.JSONValue]?
|
|
326
|
+
public init(routeStopId: Swift.String? = nil, deliveryId: Swift.String, address: Swift.String, latitude: Swift.Double, longitude: Swift.Double, radiusMeters: Swift.Double? = nil, customerId: Swift.String? = nil, driverId: Swift.String? = nil, metadata: [Swift.String : DoorstepDropoffSDK.JSONValue]? = nil)
|
|
238
327
|
public static func == (a: DoorstepDropoffSDK.DeliveryStop, b: DoorstepDropoffSDK.DeliveryStop) -> Swift.Bool
|
|
239
328
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
240
329
|
public init(from decoder: any Swift.Decoder) throws
|
|
241
330
|
}
|
|
331
|
+
public struct RouteOptions : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
332
|
+
@available(*, deprecated, message: "Ignored; radius is controlled by server config misc.geofence.defaultRadiusMeters.")
|
|
333
|
+
public var defaultRadiusMeters: Swift.Double
|
|
334
|
+
public var timeoutSeconds: Foundation.TimeInterval?
|
|
335
|
+
public var autoStopAfterDropoffSeconds: Foundation.TimeInterval?
|
|
336
|
+
public var clientRouteId: Swift.String?
|
|
337
|
+
public var driverId: Swift.String?
|
|
338
|
+
public var metadata: [Swift.String : Swift.String]?
|
|
339
|
+
public init(defaultRadiusMeters: Swift.Double = 250, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil, clientRouteId: Swift.String? = nil, driverId: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
340
|
+
public static func == (a: DoorstepDropoffSDK.RouteOptions, b: DoorstepDropoffSDK.RouteOptions) -> Swift.Bool
|
|
341
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
342
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
343
|
+
}
|
|
242
344
|
public struct RouteGeofenceOptions : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
345
|
+
@available(*, deprecated, message: "Ignored; radius is controlled by server config misc.geofence.defaultRadiusMeters.")
|
|
243
346
|
public var defaultRadiusMeters: Swift.Double
|
|
244
347
|
public var timeoutSeconds: Foundation.TimeInterval?
|
|
245
348
|
public var autoStopAfterDropoffSeconds: Foundation.TimeInterval?
|
|
@@ -248,6 +351,30 @@ public struct RouteGeofenceOptions : Swift.Codable, Swift.Sendable, Swift.Equata
|
|
|
248
351
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
249
352
|
public init(from decoder: any Swift.Decoder) throws
|
|
250
353
|
}
|
|
354
|
+
indirect public enum JSONValue : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
355
|
+
case string(Swift.String), integer(Swift.Int64), number(Swift.Double), bool(Swift.Bool), object([Swift.String : DoorstepDropoffSDK.JSONValue]), array([DoorstepDropoffSDK.JSONValue]), null
|
|
356
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
357
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
358
|
+
public static func == (a: DoorstepDropoffSDK.JSONValue, b: DoorstepDropoffSDK.JSONValue) -> Swift.Bool
|
|
359
|
+
}
|
|
360
|
+
extension DoorstepDropoffSDK.JSONValue : Swift.ExpressibleByStringLiteral, Swift.ExpressibleByIntegerLiteral, Swift.ExpressibleByFloatLiteral, Swift.ExpressibleByBooleanLiteral, Swift.ExpressibleByNilLiteral, Swift.ExpressibleByArrayLiteral, Swift.ExpressibleByDictionaryLiteral {
|
|
361
|
+
public init(stringLiteral value: Swift.String)
|
|
362
|
+
public init(integerLiteral value: Swift.Int)
|
|
363
|
+
public init(floatLiteral value: Swift.Double)
|
|
364
|
+
public init(booleanLiteral value: Swift.Bool)
|
|
365
|
+
public init(nilLiteral: ())
|
|
366
|
+
public init(arrayLiteral elements: DoorstepDropoffSDK.JSONValue...)
|
|
367
|
+
public init(dictionaryLiteral elements: (Swift.String, DoorstepDropoffSDK.JSONValue)...)
|
|
368
|
+
public typealias ArrayLiteralElement = DoorstepDropoffSDK.JSONValue
|
|
369
|
+
public typealias BooleanLiteralType = Swift.Bool
|
|
370
|
+
public typealias ExtendedGraphemeClusterLiteralType = Swift.String
|
|
371
|
+
public typealias FloatLiteralType = Swift.Double
|
|
372
|
+
public typealias IntegerLiteralType = Swift.Int
|
|
373
|
+
public typealias Key = Swift.String
|
|
374
|
+
public typealias StringLiteralType = Swift.String
|
|
375
|
+
public typealias UnicodeScalarLiteralType = Swift.String
|
|
376
|
+
public typealias Value = DoorstepDropoffSDK.JSONValue
|
|
377
|
+
}
|
|
251
378
|
@_Concurrency.MainActor @preconcurrency public struct DoorstepAIRoot : SwiftUICore.View {
|
|
252
379
|
@_Concurrency.MainActor @preconcurrency public init()
|
|
253
380
|
@_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
|
|
@@ -268,6 +395,12 @@ extension DoorstepDropoffSDK.EmbedMode : Swift.Equatable {}
|
|
|
268
395
|
extension DoorstepDropoffSDK.EmbedMode : Swift.Hashable {}
|
|
269
396
|
extension DoorstepDropoffSDK.EmbedMode : Swift.RawRepresentable {}
|
|
270
397
|
extension DoorstepDropoffSDK.DoorstepEmbedView : Swift.Sendable {}
|
|
398
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Stage : Swift.Equatable {}
|
|
399
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Stage : Swift.Hashable {}
|
|
400
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Stage : Swift.RawRepresentable {}
|
|
401
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Code : Swift.Equatable {}
|
|
402
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Code : Swift.Hashable {}
|
|
403
|
+
extension DoorstepDropoffSDK.DoorstepEmbedError.Code : Swift.RawRepresentable {}
|
|
271
404
|
extension DoorstepDropoffSDK.SDKLogLevel : Swift.Hashable {}
|
|
272
405
|
extension DoorstepDropoffSDK.SDKLogLevel : Swift.RawRepresentable {}
|
|
273
406
|
extension DoorstepDropoffSDK.DropoffType : Swift.Equatable {}
|