@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.
Files changed (43) 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/Info.plist +5 -5
  8. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
  9. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.abi.json +1380 -412
  10. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +13 -4
  11. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  12. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftinterface +13 -4
  13. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +10 -10
  14. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
  15. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +3248 -2675
  16. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
  17. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1380 -412
  18. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +13 -4
  19. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  20. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +13 -4
  21. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1380 -412
  22. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +13 -4
  23. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  24. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +13 -4
  25. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +20 -20
  26. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
  27. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +3248 -2675
  28. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/DoorstepDropoffSDK.yml +3233 -2662
  29. package/lib/module/DoorstepAI.js +190 -12
  30. package/lib/module/DoorstepAI.js.map +1 -1
  31. package/lib/module/RootDoorstepAI.js +70 -26
  32. package/lib/module/RootDoorstepAI.js.map +1 -1
  33. package/lib/module/index.js.map +1 -1
  34. package/lib/typescript/src/DoorstepAI.d.ts +151 -7
  35. package/lib/typescript/src/DoorstepAI.d.ts.map +1 -1
  36. package/lib/typescript/src/RootDoorstepAI.d.ts +13 -2
  37. package/lib/typescript/src/RootDoorstepAI.d.ts.map +1 -1
  38. package/lib/typescript/src/index.d.ts +1 -1
  39. package/lib/typescript/src/index.d.ts.map +1 -1
  40. package/package.json +2 -1
  41. package/src/DoorstepAI.tsx +241 -23
  42. package/src/RootDoorstepAI.tsx +98 -45
  43. 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 {}