@doorstepai/dropoff-sdk 2.0.3 → 2.0.5

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 (45) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/com/doorstepai/dropoffsdk/DoorstepAIModule.kt +29 -57
  3. package/ios/DoorstepAI.mm +12 -5
  4. package/ios/DoorstepAI.swift +41 -20
  5. package/ios/DoorstepDropoffSDK.xcframework/Info.plist +5 -5
  6. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
  7. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Headers/DoorstepDropoffSDK.h +1 -0
  8. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Headers/RateReducer.h +117 -0
  9. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Info.plist +0 -0
  10. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.abi.json +1248 -261
  11. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +13 -11
  12. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  13. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftinterface +13 -11
  14. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +24 -13
  15. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
  16. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +2103 -1583
  17. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
  18. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Headers/DoorstepDropoffSDK.h +1 -0
  19. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Headers/RateReducer.h +117 -0
  20. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Info.plist +0 -0
  21. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1248 -261
  22. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +13 -11
  23. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  24. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +13 -11
  25. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1248 -261
  26. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +13 -11
  27. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  28. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +13 -11
  29. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +34 -23
  30. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
  31. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +2103 -1583
  32. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/DoorstepDropoffSDK.yml +2093 -1578
  33. package/lib/module/DoorstepAI.js +90 -19
  34. package/lib/module/DoorstepAI.js.map +1 -1
  35. package/lib/module/RootDoorstepAI.js.map +1 -1
  36. package/lib/module/index.js.map +1 -1
  37. package/lib/typescript/src/DoorstepAI.d.ts +61 -6
  38. package/lib/typescript/src/DoorstepAI.d.ts.map +1 -1
  39. package/lib/typescript/src/RootDoorstepAI.d.ts.map +1 -1
  40. package/lib/typescript/src/index.d.ts +1 -1
  41. package/lib/typescript/src/index.d.ts.map +1 -1
  42. package/package.json +1 -1
  43. package/src/DoorstepAI.tsx +252 -47
  44. package/src/RootDoorstepAI.tsx +0 -1
  45. package/src/index.tsx +6 -1
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.3 effective-5.10 (swiftlang-6.3.0.123.5 clang-2100.0.123.102)
2
+ // swift-compiler-version: Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
3
3
  // swift-module-flags: -target arm64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name DoorstepDropoffSDK
4
- // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3
4
+ // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
5
5
  import Compression
6
6
  import CoreLocation
7
7
  import CoreMotion
@@ -81,23 +81,23 @@ public enum DropoffType : Swift.String, Swift.Codable {
81
81
  }
82
82
  }
83
83
  @_hasMissingDesignatedInitializers public class DoorstepAI {
84
+ public static let configDidLoadNotification: Foundation.Notification.Name
85
+ public static let configDidFailToLoadNotification: Foundation.Notification.Name
84
86
  public static func setApiKey(key: Swift.String, initCollectors: Swift.Bool = true, shouldGetConfig: Swift.Bool = true)
85
87
  public static func setBackgroundSessionCompletionHandler(_ handler: @escaping () -> Swift.Void)
86
88
  public static func requestAllPermissions(requestAlwaysLocation: Swift.Bool = true)
87
89
  public static func configureRemoteLogging(enabled: Swift.Bool, minLevel: DoorstepDropoffSDK.SDKLogLevel = .warning, flushInterval: Foundation.TimeInterval = 30, batchSize: Swift.Int = 50, maxQueueSize: Swift.Int = 1000)
88
90
  public static func enableDevMode(apiKey: Swift.String) async
89
- public static func startDeliveryByPlaceID(placeID: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
90
- @available(*, deprecated, message: "Use startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:) instead.")
91
- public static func startDeliveryByPlusCode(plusCode: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
92
- public static func startDeliveryByAddressType(address: DoorstepDropoffSDK.AddressType, deliveryId: Swift.String, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
93
- public static func startDeliveryByAddressString(address: Swift.String, deliveryId: Swift.String, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
94
- @available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:) instead.")
95
- public static func startDeliveryByLatLng(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
91
+ public static func startDeliveryByPlaceID(placeID: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
92
+ @available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) instead.")
93
+ public static func startDeliveryByPlusCode(plusCode: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
94
+ public static func startDeliveryByAddressType(address: DoorstepDropoffSDK.AddressType, deliveryId: Swift.String, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
95
+ public static func startDeliveryByAddressString(address: Swift.String, deliveryId: Swift.String, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
96
+ @available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) instead.")
97
+ public static func startDeliveryByLatLng(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
96
98
  public static func markDropoff(deliveryId: Swift.String, dropoffType: DoorstepDropoffSDK.DropoffType) async throws
97
99
  public static func newEvent(eventName: Swift.String, deliveryId: Swift.String) async throws
98
100
  public static func stopDelivery(deliveryId: Swift.String) async
99
- public static func hasCachedData() -> Swift.Bool
100
- public static func waitForCacheDataCompletion() async -> Swift.Bool
101
101
  @objc deinit
102
102
  }
103
103
  @_Concurrency.MainActor @preconcurrency public struct DoorstepAIRoot : SwiftUICore.View {
@@ -107,6 +107,8 @@ public enum DropoffType : Swift.String, Swift.Codable {
107
107
  }
108
108
  public typealias Body = @_opaqueReturnTypeOf("$s18DoorstepDropoffSDK0A6AIRootV4bodyQrvp", 0) __
109
109
  }
110
+ public var csvOnlyMode: Swift.Bool
111
+ public var lastCSVSessionDirectory: Foundation.URL?
110
112
  extension DoorstepDropoffSDK.SDKLogLevel : Swift.Hashable {}
111
113
  extension DoorstepDropoffSDK.SDKLogLevel : Swift.RawRepresentable {}
112
114
  extension DoorstepDropoffSDK.DropoffType : Swift.Equatable {}
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.3 effective-5.10 (swiftlang-6.3.0.123.5 clang-2100.0.123.102)
2
+ // swift-compiler-version: Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
3
3
  // swift-module-flags: -target arm64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name DoorstepDropoffSDK
4
- // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3
4
+ // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
5
5
  import Compression
6
6
  import CoreLocation
7
7
  import CoreMotion
@@ -81,23 +81,23 @@ public enum DropoffType : Swift.String, Swift.Codable {
81
81
  }
82
82
  }
83
83
  @_hasMissingDesignatedInitializers public class DoorstepAI {
84
+ public static let configDidLoadNotification: Foundation.Notification.Name
85
+ public static let configDidFailToLoadNotification: Foundation.Notification.Name
84
86
  public static func setApiKey(key: Swift.String, initCollectors: Swift.Bool = true, shouldGetConfig: Swift.Bool = true)
85
87
  public static func setBackgroundSessionCompletionHandler(_ handler: @escaping () -> Swift.Void)
86
88
  public static func requestAllPermissions(requestAlwaysLocation: Swift.Bool = true)
87
89
  public static func configureRemoteLogging(enabled: Swift.Bool, minLevel: DoorstepDropoffSDK.SDKLogLevel = .warning, flushInterval: Foundation.TimeInterval = 30, batchSize: Swift.Int = 50, maxQueueSize: Swift.Int = 1000)
88
90
  public static func enableDevMode(apiKey: Swift.String) async
89
- public static func startDeliveryByPlaceID(placeID: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
90
- @available(*, deprecated, message: "Use startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:) instead.")
91
- public static func startDeliveryByPlusCode(plusCode: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
92
- public static func startDeliveryByAddressType(address: DoorstepDropoffSDK.AddressType, deliveryId: Swift.String, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
93
- public static func startDeliveryByAddressString(address: Swift.String, deliveryId: Swift.String, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
94
- @available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:) instead.")
95
- public static func startDeliveryByLatLng(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
91
+ public static func startDeliveryByPlaceID(placeID: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
92
+ @available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) instead.")
93
+ public static func startDeliveryByPlusCode(plusCode: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
94
+ public static func startDeliveryByAddressType(address: DoorstepDropoffSDK.AddressType, deliveryId: Swift.String, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
95
+ public static func startDeliveryByAddressString(address: Swift.String, deliveryId: Swift.String, coordinates: DoorstepDropoffSDK.LatLngObject? = nil, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
96
+ @available(*, deprecated, message: "Use startDeliveryByAddressType(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) or startDeliveryByAddressString(address:deliveryId:coordinates:timeoutSeconds:autoStopAfterDropoffSeconds:) instead.")
97
+ public static func startDeliveryByLatLng(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil, autoStopAfterDropoffSeconds: Foundation.TimeInterval? = nil) async throws
96
98
  public static func markDropoff(deliveryId: Swift.String, dropoffType: DoorstepDropoffSDK.DropoffType) async throws
97
99
  public static func newEvent(eventName: Swift.String, deliveryId: Swift.String) async throws
98
100
  public static func stopDelivery(deliveryId: Swift.String) async
99
- public static func hasCachedData() -> Swift.Bool
100
- public static func waitForCacheDataCompletion() async -> Swift.Bool
101
101
  @objc deinit
102
102
  }
103
103
  @_Concurrency.MainActor @preconcurrency public struct DoorstepAIRoot : SwiftUICore.View {
@@ -107,6 +107,8 @@ public enum DropoffType : Swift.String, Swift.Codable {
107
107
  }
108
108
  public typealias Body = @_opaqueReturnTypeOf("$s18DoorstepDropoffSDK0A6AIRootV4bodyQrvp", 0) __
109
109
  }
110
+ public var csvOnlyMode: Swift.Bool
111
+ public var lastCSVSessionDirectory: Foundation.URL?
110
112
  extension DoorstepDropoffSDK.SDKLogLevel : Swift.Hashable {}
111
113
  extension DoorstepDropoffSDK.SDKLogLevel : Swift.RawRepresentable {}
112
114
  extension DoorstepDropoffSDK.DropoffType : Swift.Equatable {}