@doorstepai/dropoff-sdk 1.0.32 → 2.0.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/android/build.gradle +1 -1
- package/android/src/main/java/com/doorstepai/dropoffsdk/DoorstepAIModule.kt +53 -9
- package/ios/DoorstepAI.mm +10 -0
- package/ios/DoorstepAI.swift +64 -5
- 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/Info.plist +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.abi.json +1487 -138
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +54 -10
- 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 +54 -10
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +11 -11
- 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 +1451 -816
- 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/Info.plist +0 -0
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1487 -138
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +54 -10
- 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 +54 -10
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1487 -138
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +54 -10
- 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 +54 -10
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +21 -21
- 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 +1451 -816
- package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/DoorstepDropoffSDK.yml +1446 -815
- package/lib/module/DoorstepAI.js +32 -54
- package/lib/module/DoorstepAI.js.map +1 -1
- package/lib/typescript/src/DoorstepAI.d.ts +6 -5
- package/lib/typescript/src/DoorstepAI.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/DoorstepAI.tsx +70 -53
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.2.
|
|
3
|
-
// swift-module-flags: -target arm64-apple-
|
|
4
|
-
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -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.2.3
|
|
5
5
|
import Compression
|
|
6
6
|
import CoreLocation
|
|
7
7
|
import CoreMotion
|
|
@@ -15,6 +15,21 @@ import _Concurrency
|
|
|
15
15
|
import _StringProcessing
|
|
16
16
|
import _SwiftConcurrencyShims
|
|
17
17
|
import os
|
|
18
|
+
public enum SDKLogLevel : Swift.Int, Swift.Codable, Swift.Comparable {
|
|
19
|
+
case debug
|
|
20
|
+
case info
|
|
21
|
+
case warning
|
|
22
|
+
case error
|
|
23
|
+
case critical
|
|
24
|
+
public static func < (lhs: DoorstepDropoffSDK.SDKLogLevel, rhs: DoorstepDropoffSDK.SDKLogLevel) -> Swift.Bool
|
|
25
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
26
|
+
public init?(rawValue: Swift.Int)
|
|
27
|
+
#endif
|
|
28
|
+
public typealias RawValue = Swift.Int
|
|
29
|
+
public var rawValue: Swift.Int {
|
|
30
|
+
get
|
|
31
|
+
}
|
|
32
|
+
}
|
|
18
33
|
public struct AddressType {
|
|
19
34
|
public let streetNumber: Swift.String
|
|
20
35
|
public let route: Swift.String
|
|
@@ -27,7 +42,8 @@ public struct AddressType {
|
|
|
27
42
|
public struct LatLngAddress : DoorstepDropoffSDK.AddressDesignation {
|
|
28
43
|
public let latitude: Swift.Double
|
|
29
44
|
public let longitude: Swift.Double
|
|
30
|
-
public
|
|
45
|
+
public let subUnit: Swift.String
|
|
46
|
+
public init(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String)
|
|
31
47
|
public var addressString: Swift.String {
|
|
32
48
|
get
|
|
33
49
|
}
|
|
@@ -49,14 +65,37 @@ public enum DoorstepAIError : Swift.Error {
|
|
|
49
65
|
case sessionCreationFailed(Swift.String)
|
|
50
66
|
case invalidAddress
|
|
51
67
|
}
|
|
68
|
+
public enum DropoffType : Swift.String, Swift.Codable {
|
|
69
|
+
case pod
|
|
70
|
+
case non_pod
|
|
71
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
72
|
+
public init?(rawValue: Swift.String)
|
|
73
|
+
#endif
|
|
74
|
+
public typealias RawValue = Swift.String
|
|
75
|
+
public var rawValue: Swift.String {
|
|
76
|
+
get
|
|
77
|
+
}
|
|
78
|
+
}
|
|
52
79
|
@_hasMissingDesignatedInitializers public class DoorstepAI {
|
|
53
|
-
public static func setApiKey(key: Swift.String, initCollectors: Swift.Bool =
|
|
80
|
+
public static func setApiKey(key: Swift.String, initCollectors: Swift.Bool = true, shouldGetConfig: Swift.Bool = true)
|
|
81
|
+
public static func configureRemoteLogging(enabled: Swift.Bool, minLevel: DoorstepDropoffSDK.SDKLogLevel = .warning, flushInterval: Foundation.TimeInterval = 30, batchSize: Swift.Int = 50, maxQueueSize: Swift.Int = 1000)
|
|
54
82
|
public static func enableDevMode(apiKey: Swift.String) async
|
|
55
|
-
|
|
56
|
-
public static func
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
public static func
|
|
83
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
84
|
+
public static func startDeliveryByPlaceID(placeID: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
|
|
85
|
+
#endif
|
|
86
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
87
|
+
public static func startDeliveryByPlusCode(plusCode: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
|
|
88
|
+
#endif
|
|
89
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
90
|
+
public static func startDeliveryByAddressType(address: DoorstepDropoffSDK.AddressType, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
|
|
91
|
+
#endif
|
|
92
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
93
|
+
public static func startDeliveryByAddressString(address: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
|
|
94
|
+
#endif
|
|
95
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
96
|
+
public static func startDeliveryByLatLng(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
|
|
97
|
+
#endif
|
|
98
|
+
public static func markDropoff(deliveryId: Swift.String, dropoffType: DoorstepDropoffSDK.DropoffType) async throws
|
|
60
99
|
public static func newEvent(eventName: Swift.String, deliveryId: Swift.String) async throws
|
|
61
100
|
public static func stopDelivery(deliveryId: Swift.String) async
|
|
62
101
|
public static func hasCachedData() -> Swift.Bool
|
|
@@ -70,4 +109,9 @@ public enum DoorstepAIError : Swift.Error {
|
|
|
70
109
|
}
|
|
71
110
|
public typealias Body = @_opaqueReturnTypeOf("$s18DoorstepDropoffSDK0A6AIRootV4bodyQrvp", 0) __
|
|
72
111
|
}
|
|
112
|
+
extension DoorstepDropoffSDK.SDKLogLevel : Swift.Hashable {}
|
|
113
|
+
extension DoorstepDropoffSDK.SDKLogLevel : Swift.RawRepresentable {}
|
|
114
|
+
extension DoorstepDropoffSDK.DropoffType : Swift.Equatable {}
|
|
115
|
+
extension DoorstepDropoffSDK.DropoffType : Swift.Hashable {}
|
|
116
|
+
extension DoorstepDropoffSDK.DropoffType : Swift.RawRepresentable {}
|
|
73
117
|
extension DoorstepDropoffSDK.DoorstepAIRoot : Swift.Sendable {}
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.2.
|
|
3
|
-
// swift-module-flags: -target arm64-apple-
|
|
4
|
-
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -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.2.3
|
|
5
5
|
import Compression
|
|
6
6
|
import CoreLocation
|
|
7
7
|
import CoreMotion
|
|
@@ -15,6 +15,21 @@ import _Concurrency
|
|
|
15
15
|
import _StringProcessing
|
|
16
16
|
import _SwiftConcurrencyShims
|
|
17
17
|
import os
|
|
18
|
+
public enum SDKLogLevel : Swift.Int, Swift.Codable, Swift.Comparable {
|
|
19
|
+
case debug
|
|
20
|
+
case info
|
|
21
|
+
case warning
|
|
22
|
+
case error
|
|
23
|
+
case critical
|
|
24
|
+
public static func < (lhs: DoorstepDropoffSDK.SDKLogLevel, rhs: DoorstepDropoffSDK.SDKLogLevel) -> Swift.Bool
|
|
25
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
26
|
+
public init?(rawValue: Swift.Int)
|
|
27
|
+
#endif
|
|
28
|
+
public typealias RawValue = Swift.Int
|
|
29
|
+
public var rawValue: Swift.Int {
|
|
30
|
+
get
|
|
31
|
+
}
|
|
32
|
+
}
|
|
18
33
|
public struct AddressType {
|
|
19
34
|
public let streetNumber: Swift.String
|
|
20
35
|
public let route: Swift.String
|
|
@@ -27,7 +42,8 @@ public struct AddressType {
|
|
|
27
42
|
public struct LatLngAddress : DoorstepDropoffSDK.AddressDesignation {
|
|
28
43
|
public let latitude: Swift.Double
|
|
29
44
|
public let longitude: Swift.Double
|
|
30
|
-
public
|
|
45
|
+
public let subUnit: Swift.String
|
|
46
|
+
public init(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String)
|
|
31
47
|
public var addressString: Swift.String {
|
|
32
48
|
get
|
|
33
49
|
}
|
|
@@ -49,14 +65,37 @@ public enum DoorstepAIError : Swift.Error {
|
|
|
49
65
|
case sessionCreationFailed(Swift.String)
|
|
50
66
|
case invalidAddress
|
|
51
67
|
}
|
|
68
|
+
public enum DropoffType : Swift.String, Swift.Codable {
|
|
69
|
+
case pod
|
|
70
|
+
case non_pod
|
|
71
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
72
|
+
public init?(rawValue: Swift.String)
|
|
73
|
+
#endif
|
|
74
|
+
public typealias RawValue = Swift.String
|
|
75
|
+
public var rawValue: Swift.String {
|
|
76
|
+
get
|
|
77
|
+
}
|
|
78
|
+
}
|
|
52
79
|
@_hasMissingDesignatedInitializers public class DoorstepAI {
|
|
53
|
-
public static func setApiKey(key: Swift.String, initCollectors: Swift.Bool =
|
|
80
|
+
public static func setApiKey(key: Swift.String, initCollectors: Swift.Bool = true, shouldGetConfig: Swift.Bool = true)
|
|
81
|
+
public static func configureRemoteLogging(enabled: Swift.Bool, minLevel: DoorstepDropoffSDK.SDKLogLevel = .warning, flushInterval: Foundation.TimeInterval = 30, batchSize: Swift.Int = 50, maxQueueSize: Swift.Int = 1000)
|
|
54
82
|
public static func enableDevMode(apiKey: Swift.String) async
|
|
55
|
-
|
|
56
|
-
public static func
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
public static func
|
|
83
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
84
|
+
public static func startDeliveryByPlaceID(placeID: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
|
|
85
|
+
#endif
|
|
86
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
87
|
+
public static func startDeliveryByPlusCode(plusCode: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
|
|
88
|
+
#endif
|
|
89
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
90
|
+
public static func startDeliveryByAddressType(address: DoorstepDropoffSDK.AddressType, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
|
|
91
|
+
#endif
|
|
92
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
93
|
+
public static func startDeliveryByAddressString(address: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
|
|
94
|
+
#endif
|
|
95
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
96
|
+
public static func startDeliveryByLatLng(latitude: Swift.Double, longitude: Swift.Double, subUnit: Swift.String, deliveryId: Swift.String, timeoutSeconds: Foundation.TimeInterval? = nil) async throws
|
|
97
|
+
#endif
|
|
98
|
+
public static func markDropoff(deliveryId: Swift.String, dropoffType: DoorstepDropoffSDK.DropoffType) async throws
|
|
60
99
|
public static func newEvent(eventName: Swift.String, deliveryId: Swift.String) async throws
|
|
61
100
|
public static func stopDelivery(deliveryId: Swift.String) async
|
|
62
101
|
public static func hasCachedData() -> Swift.Bool
|
|
@@ -70,4 +109,9 @@ public enum DoorstepAIError : Swift.Error {
|
|
|
70
109
|
}
|
|
71
110
|
public typealias Body = @_opaqueReturnTypeOf("$s18DoorstepDropoffSDK0A6AIRootV4bodyQrvp", 0) __
|
|
72
111
|
}
|
|
112
|
+
extension DoorstepDropoffSDK.SDKLogLevel : Swift.Hashable {}
|
|
113
|
+
extension DoorstepDropoffSDK.SDKLogLevel : Swift.RawRepresentable {}
|
|
114
|
+
extension DoorstepDropoffSDK.DropoffType : Swift.Equatable {}
|
|
115
|
+
extension DoorstepDropoffSDK.DropoffType : Swift.Hashable {}
|
|
116
|
+
extension DoorstepDropoffSDK.DropoffType : Swift.RawRepresentable {}
|
|
73
117
|
extension DoorstepDropoffSDK.DoorstepAIRoot : Swift.Sendable {}
|