@doorstepai/dropoff-sdk 2.1.1 → 2.2.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/CHANGELOG.md +66 -0
- package/README.md +115 -3
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/doorstepai/dropoffsdk/DoorstepAIModule.kt +332 -0
- package/ios/DoorstepAI.mm +5 -2
- package/ios/DoorstepAI.swift +170 -2
- 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 +1380 -412
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +13 -4
- 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 +13 -4
- 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 +3248 -2675
- 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 +1380 -412
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +13 -4
- 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 +13 -4
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1380 -412
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +13 -4
- 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 +13 -4
- 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 +3248 -2675
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/DoorstepDropoffSDK.yml +3233 -2662
- package/lib/module/DoorstepAI.js +190 -12
- package/lib/module/DoorstepAI.js.map +1 -1
- package/lib/module/RootDoorstepAI.js +70 -26
- package/lib/module/RootDoorstepAI.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/DoorstepAI.d.ts +151 -7
- package/lib/typescript/src/DoorstepAI.d.ts.map +1 -1
- package/lib/typescript/src/RootDoorstepAI.d.ts +13 -2
- package/lib/typescript/src/RootDoorstepAI.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/DoorstepAI.tsx +241 -23
- package/src/RootDoorstepAI.tsx +98 -45
- package/src/index.tsx +4 -0
|
@@ -13,6 +13,7 @@ import SQLite3
|
|
|
13
13
|
import Swift
|
|
14
14
|
import SwiftUI
|
|
15
15
|
import UIKit
|
|
16
|
+
import UserNotifications
|
|
16
17
|
import _Concurrency
|
|
17
18
|
import _StringProcessing
|
|
18
19
|
import _SwiftConcurrencyShims
|
|
@@ -111,6 +112,7 @@ extension DoorstepDropoffSDK.AddressType : DoorstepDropoffSDK.AddressDesignation
|
|
|
111
112
|
public enum DoorstepAIError : Swift.Error {
|
|
112
113
|
case sessionCreationFailed(Swift.String)
|
|
113
114
|
case invalidAddress
|
|
115
|
+
case unknownDeliveryId(Swift.String)
|
|
114
116
|
}
|
|
115
117
|
public enum DropoffType : Swift.String, Swift.Codable {
|
|
116
118
|
case pod
|
|
@@ -129,8 +131,9 @@ public enum DropoffType : Swift.String, Swift.Codable {
|
|
|
129
131
|
public static let sessionServerIdAssignedNotification: Foundation.Notification.Name
|
|
130
132
|
public static func setApiKey(key: Swift.String, initCollectors: Swift.Bool = true, shouldGetConfig: Swift.Bool = true)
|
|
131
133
|
public static func setBackgroundSessionCompletionHandler(_ handler: @escaping () -> Swift.Void)
|
|
132
|
-
public static func requestAllPermissions(requestAlwaysLocation: Swift.Bool = true, requestBluetooth: Swift.Bool = true)
|
|
134
|
+
public static func requestAllPermissions(requestAlwaysLocation: Swift.Bool = true, requestBluetooth: Swift.Bool = true, onlyIfNotDetermined: Swift.Bool = true)
|
|
133
135
|
public static func configureRemoteLogging(enabled: Swift.Bool, minLevel: DoorstepDropoffSDK.SDKLogLevel = .warning, flushInterval: Foundation.TimeInterval = 30, batchSize: Swift.Int = 50, maxQueueSize: Swift.Int = 1000)
|
|
136
|
+
public static func debugStateJson() -> Swift.String
|
|
134
137
|
public static func enableDevMode(apiKey: Swift.String) async
|
|
135
138
|
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
|
|
136
139
|
@available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) instead.")
|
|
@@ -180,9 +183,15 @@ public struct RouteGeofenceOptions : Swift.Codable, Swift.Sendable, Swift.Equata
|
|
|
180
183
|
}
|
|
181
184
|
public typealias Body = @_opaqueReturnTypeOf("$s18DoorstepDropoffSDK0A6AIRootV4bodyQrvp", 0) __
|
|
182
185
|
}
|
|
183
|
-
public var csvOnlyMode: Swift.Bool
|
|
184
|
-
|
|
185
|
-
|
|
186
|
+
public var csvOnlyMode: Swift.Bool {
|
|
187
|
+
get
|
|
188
|
+
}
|
|
189
|
+
public var lastCSVSessionDirectory: Foundation.URL? {
|
|
190
|
+
get
|
|
191
|
+
}
|
|
192
|
+
public var bleScanningEnabled: Swift.Bool {
|
|
193
|
+
get
|
|
194
|
+
}
|
|
186
195
|
extension DoorstepDropoffSDK.SDKLogLevel : Swift.Hashable {}
|
|
187
196
|
extension DoorstepDropoffSDK.SDKLogLevel : Swift.RawRepresentable {}
|
|
188
197
|
extension DoorstepDropoffSDK.DropoffType : Swift.Equatable {}
|
|
Binary file
|
|
@@ -13,6 +13,7 @@ import SQLite3
|
|
|
13
13
|
import Swift
|
|
14
14
|
import SwiftUI
|
|
15
15
|
import UIKit
|
|
16
|
+
import UserNotifications
|
|
16
17
|
import _Concurrency
|
|
17
18
|
import _StringProcessing
|
|
18
19
|
import _SwiftConcurrencyShims
|
|
@@ -111,6 +112,7 @@ extension DoorstepDropoffSDK.AddressType : DoorstepDropoffSDK.AddressDesignation
|
|
|
111
112
|
public enum DoorstepAIError : Swift.Error {
|
|
112
113
|
case sessionCreationFailed(Swift.String)
|
|
113
114
|
case invalidAddress
|
|
115
|
+
case unknownDeliveryId(Swift.String)
|
|
114
116
|
}
|
|
115
117
|
public enum DropoffType : Swift.String, Swift.Codable {
|
|
116
118
|
case pod
|
|
@@ -129,8 +131,9 @@ public enum DropoffType : Swift.String, Swift.Codable {
|
|
|
129
131
|
public static let sessionServerIdAssignedNotification: Foundation.Notification.Name
|
|
130
132
|
public static func setApiKey(key: Swift.String, initCollectors: Swift.Bool = true, shouldGetConfig: Swift.Bool = true)
|
|
131
133
|
public static func setBackgroundSessionCompletionHandler(_ handler: @escaping () -> Swift.Void)
|
|
132
|
-
public static func requestAllPermissions(requestAlwaysLocation: Swift.Bool = true, requestBluetooth: Swift.Bool = true)
|
|
134
|
+
public static func requestAllPermissions(requestAlwaysLocation: Swift.Bool = true, requestBluetooth: Swift.Bool = true, onlyIfNotDetermined: Swift.Bool = true)
|
|
133
135
|
public static func configureRemoteLogging(enabled: Swift.Bool, minLevel: DoorstepDropoffSDK.SDKLogLevel = .warning, flushInterval: Foundation.TimeInterval = 30, batchSize: Swift.Int = 50, maxQueueSize: Swift.Int = 1000)
|
|
136
|
+
public static func debugStateJson() -> Swift.String
|
|
134
137
|
public static func enableDevMode(apiKey: Swift.String) async
|
|
135
138
|
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
|
|
136
139
|
@available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) instead.")
|
|
@@ -180,9 +183,15 @@ public struct RouteGeofenceOptions : Swift.Codable, Swift.Sendable, Swift.Equata
|
|
|
180
183
|
}
|
|
181
184
|
public typealias Body = @_opaqueReturnTypeOf("$s18DoorstepDropoffSDK0A6AIRootV4bodyQrvp", 0) __
|
|
182
185
|
}
|
|
183
|
-
public var csvOnlyMode: Swift.Bool
|
|
184
|
-
|
|
185
|
-
|
|
186
|
+
public var csvOnlyMode: Swift.Bool {
|
|
187
|
+
get
|
|
188
|
+
}
|
|
189
|
+
public var lastCSVSessionDirectory: Foundation.URL? {
|
|
190
|
+
get
|
|
191
|
+
}
|
|
192
|
+
public var bleScanningEnabled: Swift.Bool {
|
|
193
|
+
get
|
|
194
|
+
}
|
|
186
195
|
extension DoorstepDropoffSDK.SDKLogLevel : Swift.Hashable {}
|
|
187
196
|
extension DoorstepDropoffSDK.SDKLogLevel : Swift.RawRepresentable {}
|
|
188
197
|
extension DoorstepDropoffSDK.DropoffType : Swift.Equatable {}
|
|
@@ -18,23 +18,23 @@
|
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.abi.json</key>
|
|
20
20
|
<data>
|
|
21
|
-
|
|
21
|
+
WN0g/J7KSMM3eCADWuwzs/C5FAo=
|
|
22
22
|
</data>
|
|
23
23
|
<key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
9CO6CNqQ9ks0NyOMdcGdz2tcBRg=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
6ouf2E1tyEQcoDQelTj4Wn25vBc=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
9CO6CNqQ9ks0NyOMdcGdz2tcBRg=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftmodule</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
sN9UUG3D5JGC+sMt0NrJFGw9oT8=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/module.modulemap</key>
|
|
40
40
|
<data>
|
|
@@ -65,35 +65,35 @@
|
|
|
65
65
|
<dict>
|
|
66
66
|
<key>hash2</key>
|
|
67
67
|
<data>
|
|
68
|
-
|
|
68
|
+
a+B6NHPlh3Sbv/YX2HhDVsBDhnH7IF3kZ28NllViWl0=
|
|
69
69
|
</data>
|
|
70
70
|
</dict>
|
|
71
71
|
<key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
72
72
|
<dict>
|
|
73
73
|
<key>hash2</key>
|
|
74
74
|
<data>
|
|
75
|
-
|
|
75
|
+
9CW1BlwmNvNBZUigWIt9w31boc0ckHFESaCcqR+l/jw=
|
|
76
76
|
</data>
|
|
77
77
|
</dict>
|
|
78
78
|
<key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
79
79
|
<dict>
|
|
80
80
|
<key>hash2</key>
|
|
81
81
|
<data>
|
|
82
|
-
|
|
82
|
+
h3mNV0T6duvhgZaI7Bnv3PD+ZZPU7dLh2+xlV7VgcI0=
|
|
83
83
|
</data>
|
|
84
84
|
</dict>
|
|
85
85
|
<key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
86
86
|
<dict>
|
|
87
87
|
<key>hash2</key>
|
|
88
88
|
<data>
|
|
89
|
-
|
|
89
|
+
9CW1BlwmNvNBZUigWIt9w31boc0ckHFESaCcqR+l/jw=
|
|
90
90
|
</data>
|
|
91
91
|
</dict>
|
|
92
92
|
<key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftmodule</key>
|
|
93
93
|
<dict>
|
|
94
94
|
<key>hash2</key>
|
|
95
95
|
<data>
|
|
96
|
-
|
|
96
|
+
NBfn7CaS0LXPl15n1m1B5Gjyn8tbGlh0Mj9g/anh7tY=
|
|
97
97
|
</data>
|
|
98
98
|
</dict>
|
|
99
99
|
<key>Modules/module.modulemap</key>
|