@doorstepai/dropoff-sdk 2.1.2 → 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.
Files changed (42) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +115 -3
  3. package/android/build.gradle +1 -1
  4. package/android/src/main/java/com/doorstepai/dropoffsdk/DoorstepAIModule.kt +332 -0
  5. package/ios/DoorstepAI.mm +5 -2
  6. package/ios/DoorstepAI.swift +170 -2
  7. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
  8. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.abi.json +1374 -413
  9. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +13 -4
  10. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  11. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftinterface +13 -4
  12. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +10 -10
  13. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
  14. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +3248 -2687
  15. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
  16. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1374 -413
  17. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +13 -4
  18. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  19. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +13 -4
  20. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1374 -413
  21. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +13 -4
  22. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  23. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +13 -4
  24. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +20 -20
  25. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
  26. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +3248 -2687
  27. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/DoorstepDropoffSDK.yml +3233 -2674
  28. package/lib/module/DoorstepAI.js +190 -12
  29. package/lib/module/DoorstepAI.js.map +1 -1
  30. package/lib/module/RootDoorstepAI.js +70 -26
  31. package/lib/module/RootDoorstepAI.js.map +1 -1
  32. package/lib/module/index.js.map +1 -1
  33. package/lib/typescript/src/DoorstepAI.d.ts +151 -7
  34. package/lib/typescript/src/DoorstepAI.d.ts.map +1 -1
  35. package/lib/typescript/src/RootDoorstepAI.d.ts +14 -3
  36. package/lib/typescript/src/RootDoorstepAI.d.ts.map +1 -1
  37. package/lib/typescript/src/index.d.ts +1 -1
  38. package/lib/typescript/src/index.d.ts.map +1 -1
  39. package/package.json +2 -1
  40. package/src/DoorstepAI.tsx +241 -23
  41. package/src/RootDoorstepAI.tsx +98 -45
  42. 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
- public var lastCSVSessionDirectory: Foundation.URL?
185
- public var bleScanningEnabled: Swift.Bool
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 {}
@@ -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
- public var lastCSVSessionDirectory: Foundation.URL?
185
- public var bleScanningEnabled: Swift.Bool
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,43 +18,43 @@
18
18
  </data>
19
19
  <key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
20
20
  <data>
21
- Y269WuqaIXKYaidxcfZyDjtBOCU=
21
+ Xakd+vQ0VntCNeFxu/Wu9xwJ4AM=
22
22
  </data>
23
23
  <key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
24
24
  <data>
25
- a2SZ1cenTlCVexWbA6NdxFQ6qKA=
25
+ JDeaLHMoF3kbZNVG1ceyyzeZWX0=
26
26
  </data>
27
27
  <key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
28
28
  <data>
29
- 7lMqZhpRkd1M/kxkTqsriSQeLCY=
29
+ i2gSkWR7+0Fy6dI0n0jjycOSO4M=
30
30
  </data>
31
31
  <key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
32
32
  <data>
33
- a2SZ1cenTlCVexWbA6NdxFQ6qKA=
33
+ JDeaLHMoF3kbZNVG1ceyyzeZWX0=
34
34
  </data>
35
35
  <key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
36
36
  <data>
37
- gBqnFA9HeWJ78xzKB8FQbnDiy5A=
37
+ Fr5JNnG9zxCI19MXUFpdUv3wFsY=
38
38
  </data>
39
39
  <key>Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
40
40
  <data>
41
- Y269WuqaIXKYaidxcfZyDjtBOCU=
41
+ Xakd+vQ0VntCNeFxu/Wu9xwJ4AM=
42
42
  </data>
43
43
  <key>Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
44
44
  <data>
45
- z025njUACwG67ftwxi901Zg94qg=
45
+ Sq4NLxLrHCfNqJvV9AX0csHwoag=
46
46
  </data>
47
47
  <key>Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
48
48
  <data>
49
- OESTHlY3trAsCXGdIPCSgRluPSY=
49
+ QeoqYkzovmwnYZHfeKa/EHkJ0Uk=
50
50
  </data>
51
51
  <key>Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
52
52
  <data>
53
- z025njUACwG67ftwxi901Zg94qg=
53
+ Sq4NLxLrHCfNqJvV9AX0csHwoag=
54
54
  </data>
55
55
  <key>Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
56
56
  <data>
57
- s9pDw99ozvEZ8/SbUt/yymAFSvI=
57
+ b0pdYVusxz1eFEVJPIzv5C5Mgtc=
58
58
  </data>
59
59
  <key>Modules/module.modulemap</key>
60
60
  <data>
@@ -85,70 +85,70 @@
85
85
  <dict>
86
86
  <key>hash2</key>
87
87
  <data>
88
- gQdM7V/r2lWm95cx+fKZ9R3oDyxrbEQ8R3y2/ot5Jcs=
88
+ oFI2Tmo/ig+ZZfPxu9LNGfMUDCNaZ/bBZdq1XckOoHk=
89
89
  </data>
90
90
  </dict>
91
91
  <key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
92
92
  <dict>
93
93
  <key>hash2</key>
94
94
  <data>
95
- LDE6GVv8himM/9VMhLqRkU0nunoal8d4asgIf6heai8=
95
+ ypabhZPzknr0dj1x6Z1cU6bMU7Xh2tJ9Zb30hm/KJjs=
96
96
  </data>
97
97
  </dict>
98
98
  <key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
99
99
  <dict>
100
100
  <key>hash2</key>
101
101
  <data>
102
- SBBV3oqwMXQrysZmgwjaZlQxKbusu16uSG0FoWO1Gls=
102
+ JMoU25K0Y8yZC7n4aAj+lgT9uoDz5eP59qZKYNVAPRY=
103
103
  </data>
104
104
  </dict>
105
105
  <key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
106
106
  <dict>
107
107
  <key>hash2</key>
108
108
  <data>
109
- LDE6GVv8himM/9VMhLqRkU0nunoal8d4asgIf6heai8=
109
+ ypabhZPzknr0dj1x6Z1cU6bMU7Xh2tJ9Zb30hm/KJjs=
110
110
  </data>
111
111
  </dict>
112
112
  <key>Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
113
113
  <dict>
114
114
  <key>hash2</key>
115
115
  <data>
116
- eAJZUSRStzyVLDSPMNs2OoR1nWgv4rWPYKdyFpMKbEU=
116
+ RiCQv0Nw3NmKKvMLcGAZe+2oIzT59/WzAbejneqPNf8=
117
117
  </data>
118
118
  </dict>
119
119
  <key>Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
120
120
  <dict>
121
121
  <key>hash2</key>
122
122
  <data>
123
- gQdM7V/r2lWm95cx+fKZ9R3oDyxrbEQ8R3y2/ot5Jcs=
123
+ oFI2Tmo/ig+ZZfPxu9LNGfMUDCNaZ/bBZdq1XckOoHk=
124
124
  </data>
125
125
  </dict>
126
126
  <key>Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
127
127
  <dict>
128
128
  <key>hash2</key>
129
129
  <data>
130
- bB1FuYBK8fvZdpuOz7VYlddw9xpDubZGM9I0xFJENg4=
130
+ GUa36mp2LjVADA9o2CvCAZkt9nVMRRK96k/EoroXCh8=
131
131
  </data>
132
132
  </dict>
133
133
  <key>Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
134
134
  <dict>
135
135
  <key>hash2</key>
136
136
  <data>
137
- fGXRqWcx3Gt3cigsnPPdi6MC+O2VZW8+Wz1QFdRDqjI=
137
+ 3jI7FG0smsqYaf9pr4YurYvz6ZP1AVeNkAbqYaFYK4k=
138
138
  </data>
139
139
  </dict>
140
140
  <key>Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
141
141
  <dict>
142
142
  <key>hash2</key>
143
143
  <data>
144
- bB1FuYBK8fvZdpuOz7VYlddw9xpDubZGM9I0xFJENg4=
144
+ GUa36mp2LjVADA9o2CvCAZkt9nVMRRK96k/EoroXCh8=
145
145
  </data>
146
146
  </dict>
147
147
  <key>Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
148
148
  <dict>
149
149
  <key>hash2</key>
150
150
  <data>
151
- 6SMWm+kdh37eSU+DbrqZ3+LTOyxxy9nqYJEaRYSr7+o=
151
+ SvCIe0Lv2lIeV3Y59vAtN6OEt4WQY2Nflaa3WnuzG9c=
152
152
  </data>
153
153
  </dict>
154
154
  <key>Modules/module.modulemap</key>