vialink-react-native-sdk 3.1.1 → 3.3.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/libs/vialink-sdk.aar +0 -0
- package/dist/ViaLinkSDK.d.ts +7 -5
- package/ios/Frameworks/ViaLinkCore.xcframework/Info.plist +44 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Info.plist +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.abi.json +3473 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.package.swiftinterface +107 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.private.swiftinterface +107 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.swiftinterface +107 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/module.modulemap +4 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/ViaLinkCore +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Info.plist +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.abi.json +3473 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +107 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +107 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +107 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.abi.json +3473 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +107 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +107 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +107 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/module.modulemap +4 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/ViaLinkCore +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/_CodeSignature/CodeResources +101 -0
- package/package.json +1 -1
- package/vialink-react-native-sdk.podspec +1 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
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
|
+
// swift-module-flags: -target x86_64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -module-name ViaLinkCore -package-name vialink_ios_sdk
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
|
|
5
|
+
import CoreTelephony
|
|
6
|
+
import Foundation
|
|
7
|
+
import Network
|
|
8
|
+
import Swift
|
|
9
|
+
import UIKit
|
|
10
|
+
import _Concurrency
|
|
11
|
+
import _StringProcessing
|
|
12
|
+
import _SwiftConcurrencyShims
|
|
13
|
+
public struct DeepLinkData : Swift.Sendable {
|
|
14
|
+
public let path: Swift.String
|
|
15
|
+
public let params: [Swift.String : Swift.String]
|
|
16
|
+
public let shortCode: Swift.String?
|
|
17
|
+
public let linkId: Swift.Int?
|
|
18
|
+
public init(path: Swift.String, params: [Swift.String : Swift.String] = [:], shortCode: Swift.String? = nil, linkId: Swift.Int? = nil)
|
|
19
|
+
}
|
|
20
|
+
public struct DeferredError : Swift.Error, Swift.Sendable, Swift.Equatable {
|
|
21
|
+
public let code: ViaLinkCore.DeferredError.Code
|
|
22
|
+
public let message: Swift.String
|
|
23
|
+
public let httpStatus: Swift.Int?
|
|
24
|
+
public let retryable: Swift.Bool
|
|
25
|
+
public enum Code : Swift.String, Swift.Sendable {
|
|
26
|
+
case timeout
|
|
27
|
+
case network
|
|
28
|
+
case serverError
|
|
29
|
+
case invalidResponse
|
|
30
|
+
case unknown
|
|
31
|
+
public init?(rawValue: Swift.String)
|
|
32
|
+
public typealias RawValue = Swift.String
|
|
33
|
+
public var rawValue: Swift.String {
|
|
34
|
+
get
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
public init(code: ViaLinkCore.DeferredError.Code, message: Swift.String, httpStatus: Swift.Int? = nil, retryable: Swift.Bool)
|
|
38
|
+
public var localizedDescription: Swift.String {
|
|
39
|
+
get
|
|
40
|
+
}
|
|
41
|
+
public static func == (a: ViaLinkCore.DeferredError, b: ViaLinkCore.DeferredError) -> Swift.Bool
|
|
42
|
+
}
|
|
43
|
+
public struct PaymentInitiatedArgs : Swift.Sendable {
|
|
44
|
+
public let orderId: Swift.String
|
|
45
|
+
public let amount: Swift.Double
|
|
46
|
+
public let currency: Swift.String
|
|
47
|
+
public let linkId: Swift.Int?
|
|
48
|
+
public let paymentMethod: Swift.String?
|
|
49
|
+
public let metadata: [Swift.String : Swift.String]?
|
|
50
|
+
public init(orderId: Swift.String, amount: Swift.Double, currency: Swift.String, linkId: Swift.Int? = nil, paymentMethod: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
51
|
+
}
|
|
52
|
+
public struct PaymentInitiatedResult : Swift.Sendable {
|
|
53
|
+
public let success: Swift.Bool
|
|
54
|
+
public let paymentEventId: Swift.String
|
|
55
|
+
public init(success: Swift.Bool, paymentEventId: Swift.String)
|
|
56
|
+
}
|
|
57
|
+
public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendable, Swift.Equatable {
|
|
58
|
+
case invalidOrderId
|
|
59
|
+
case invalidAmount
|
|
60
|
+
case invalidCurrency
|
|
61
|
+
case sdkNotInitialized
|
|
62
|
+
case invalidResponse
|
|
63
|
+
case networkFailure(Swift.String)
|
|
64
|
+
public var errorDescription: Swift.String? {
|
|
65
|
+
get
|
|
66
|
+
}
|
|
67
|
+
public static func == (lhs: ViaLinkCore.PaymentError, rhs: ViaLinkCore.PaymentError) -> Swift.Bool
|
|
68
|
+
}
|
|
69
|
+
@_hasMissingDesignatedInitializers final public class ViaLinkSDK : @unchecked Swift.Sendable {
|
|
70
|
+
public static let sdkVersion: Swift.String
|
|
71
|
+
public static let shared: ViaLinkCore.ViaLinkSDK
|
|
72
|
+
final public func setWrapper(_ wrapper: Swift.String)
|
|
73
|
+
final public func configure(apiKey: Swift.String)
|
|
74
|
+
final public func onDeepLink(_ handler: @escaping (ViaLinkCore.DeepLinkData?) -> Swift.Void)
|
|
75
|
+
final public func onDeferredDeepLink(_ handler: @escaping (ViaLinkCore.DeepLinkData?, ViaLinkCore.DeferredError?) -> Swift.Void)
|
|
76
|
+
@discardableResult
|
|
77
|
+
final public func handleUniversalLink(_ userActivity: Foundation.NSUserActivity) -> Swift.Bool
|
|
78
|
+
final public func notifyAppLaunch()
|
|
79
|
+
@discardableResult
|
|
80
|
+
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
81
|
+
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
82
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static", iosUrl: Swift.String? = nil, androidUrl: Swift.String? = nil, webUrl: Swift.String? = nil, ogTitle: Swift.String? = nil, ogDescription: Swift.String? = nil, ogImageUrl: Swift.String? = nil, channel: Swift.String? = nil, feature: Swift.String? = nil, tags: [Swift.String]? = nil, expiresAt: Swift.String? = nil) async throws -> Swift.String
|
|
83
|
+
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
84
|
+
case notConfigured
|
|
85
|
+
case invalidResponse
|
|
86
|
+
public var errorDescription: Swift.String? {
|
|
87
|
+
get
|
|
88
|
+
}
|
|
89
|
+
public static func == (a: ViaLinkCore.ViaLinkSDK.CreateLinkError, b: ViaLinkCore.ViaLinkSDK.CreateLinkError) -> Swift.Bool
|
|
90
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
91
|
+
public var hashValue: Swift.Int {
|
|
92
|
+
get
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
final public var payment: ViaLinkCore.ViaLinkSDK.PaymentAPI {
|
|
96
|
+
get
|
|
97
|
+
}
|
|
98
|
+
public struct PaymentAPI {
|
|
99
|
+
public func initiated(_ args: ViaLinkCore.PaymentInitiatedArgs) async throws -> ViaLinkCore.PaymentInitiatedResult
|
|
100
|
+
}
|
|
101
|
+
@objc deinit
|
|
102
|
+
}
|
|
103
|
+
extension ViaLinkCore.DeferredError.Code : Swift.Equatable {}
|
|
104
|
+
extension ViaLinkCore.DeferredError.Code : Swift.Hashable {}
|
|
105
|
+
extension ViaLinkCore.DeferredError.Code : Swift.RawRepresentable {}
|
|
106
|
+
extension ViaLinkCore.ViaLinkSDK.CreateLinkError : Swift.Equatable {}
|
|
107
|
+
extension ViaLinkCore.ViaLinkSDK.CreateLinkError : Swift.Hashable {}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
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
|
+
// swift-module-flags: -target x86_64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -module-name ViaLinkCore -package-name vialink_ios_sdk
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
|
|
5
|
+
import CoreTelephony
|
|
6
|
+
import Foundation
|
|
7
|
+
import Network
|
|
8
|
+
import Swift
|
|
9
|
+
import UIKit
|
|
10
|
+
import _Concurrency
|
|
11
|
+
import _StringProcessing
|
|
12
|
+
import _SwiftConcurrencyShims
|
|
13
|
+
public struct DeepLinkData : Swift.Sendable {
|
|
14
|
+
public let path: Swift.String
|
|
15
|
+
public let params: [Swift.String : Swift.String]
|
|
16
|
+
public let shortCode: Swift.String?
|
|
17
|
+
public let linkId: Swift.Int?
|
|
18
|
+
public init(path: Swift.String, params: [Swift.String : Swift.String] = [:], shortCode: Swift.String? = nil, linkId: Swift.Int? = nil)
|
|
19
|
+
}
|
|
20
|
+
public struct DeferredError : Swift.Error, Swift.Sendable, Swift.Equatable {
|
|
21
|
+
public let code: ViaLinkCore.DeferredError.Code
|
|
22
|
+
public let message: Swift.String
|
|
23
|
+
public let httpStatus: Swift.Int?
|
|
24
|
+
public let retryable: Swift.Bool
|
|
25
|
+
public enum Code : Swift.String, Swift.Sendable {
|
|
26
|
+
case timeout
|
|
27
|
+
case network
|
|
28
|
+
case serverError
|
|
29
|
+
case invalidResponse
|
|
30
|
+
case unknown
|
|
31
|
+
public init?(rawValue: Swift.String)
|
|
32
|
+
public typealias RawValue = Swift.String
|
|
33
|
+
public var rawValue: Swift.String {
|
|
34
|
+
get
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
public init(code: ViaLinkCore.DeferredError.Code, message: Swift.String, httpStatus: Swift.Int? = nil, retryable: Swift.Bool)
|
|
38
|
+
public var localizedDescription: Swift.String {
|
|
39
|
+
get
|
|
40
|
+
}
|
|
41
|
+
public static func == (a: ViaLinkCore.DeferredError, b: ViaLinkCore.DeferredError) -> Swift.Bool
|
|
42
|
+
}
|
|
43
|
+
public struct PaymentInitiatedArgs : Swift.Sendable {
|
|
44
|
+
public let orderId: Swift.String
|
|
45
|
+
public let amount: Swift.Double
|
|
46
|
+
public let currency: Swift.String
|
|
47
|
+
public let linkId: Swift.Int?
|
|
48
|
+
public let paymentMethod: Swift.String?
|
|
49
|
+
public let metadata: [Swift.String : Swift.String]?
|
|
50
|
+
public init(orderId: Swift.String, amount: Swift.Double, currency: Swift.String, linkId: Swift.Int? = nil, paymentMethod: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
51
|
+
}
|
|
52
|
+
public struct PaymentInitiatedResult : Swift.Sendable {
|
|
53
|
+
public let success: Swift.Bool
|
|
54
|
+
public let paymentEventId: Swift.String
|
|
55
|
+
public init(success: Swift.Bool, paymentEventId: Swift.String)
|
|
56
|
+
}
|
|
57
|
+
public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendable, Swift.Equatable {
|
|
58
|
+
case invalidOrderId
|
|
59
|
+
case invalidAmount
|
|
60
|
+
case invalidCurrency
|
|
61
|
+
case sdkNotInitialized
|
|
62
|
+
case invalidResponse
|
|
63
|
+
case networkFailure(Swift.String)
|
|
64
|
+
public var errorDescription: Swift.String? {
|
|
65
|
+
get
|
|
66
|
+
}
|
|
67
|
+
public static func == (lhs: ViaLinkCore.PaymentError, rhs: ViaLinkCore.PaymentError) -> Swift.Bool
|
|
68
|
+
}
|
|
69
|
+
@_hasMissingDesignatedInitializers final public class ViaLinkSDK : @unchecked Swift.Sendable {
|
|
70
|
+
public static let sdkVersion: Swift.String
|
|
71
|
+
public static let shared: ViaLinkCore.ViaLinkSDK
|
|
72
|
+
final public func setWrapper(_ wrapper: Swift.String)
|
|
73
|
+
final public func configure(apiKey: Swift.String)
|
|
74
|
+
final public func onDeepLink(_ handler: @escaping (ViaLinkCore.DeepLinkData?) -> Swift.Void)
|
|
75
|
+
final public func onDeferredDeepLink(_ handler: @escaping (ViaLinkCore.DeepLinkData?, ViaLinkCore.DeferredError?) -> Swift.Void)
|
|
76
|
+
@discardableResult
|
|
77
|
+
final public func handleUniversalLink(_ userActivity: Foundation.NSUserActivity) -> Swift.Bool
|
|
78
|
+
final public func notifyAppLaunch()
|
|
79
|
+
@discardableResult
|
|
80
|
+
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
81
|
+
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
82
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static", iosUrl: Swift.String? = nil, androidUrl: Swift.String? = nil, webUrl: Swift.String? = nil, ogTitle: Swift.String? = nil, ogDescription: Swift.String? = nil, ogImageUrl: Swift.String? = nil, channel: Swift.String? = nil, feature: Swift.String? = nil, tags: [Swift.String]? = nil, expiresAt: Swift.String? = nil) async throws -> Swift.String
|
|
83
|
+
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
84
|
+
case notConfigured
|
|
85
|
+
case invalidResponse
|
|
86
|
+
public var errorDescription: Swift.String? {
|
|
87
|
+
get
|
|
88
|
+
}
|
|
89
|
+
public static func == (a: ViaLinkCore.ViaLinkSDK.CreateLinkError, b: ViaLinkCore.ViaLinkSDK.CreateLinkError) -> Swift.Bool
|
|
90
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
91
|
+
public var hashValue: Swift.Int {
|
|
92
|
+
get
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
final public var payment: ViaLinkCore.ViaLinkSDK.PaymentAPI {
|
|
96
|
+
get
|
|
97
|
+
}
|
|
98
|
+
public struct PaymentAPI {
|
|
99
|
+
public func initiated(_ args: ViaLinkCore.PaymentInitiatedArgs) async throws -> ViaLinkCore.PaymentInitiatedResult
|
|
100
|
+
}
|
|
101
|
+
@objc deinit
|
|
102
|
+
}
|
|
103
|
+
extension ViaLinkCore.DeferredError.Code : Swift.Equatable {}
|
|
104
|
+
extension ViaLinkCore.DeferredError.Code : Swift.Hashable {}
|
|
105
|
+
extension ViaLinkCore.DeferredError.Code : Swift.RawRepresentable {}
|
|
106
|
+
extension ViaLinkCore.ViaLinkSDK.CreateLinkError : Swift.Equatable {}
|
|
107
|
+
extension ViaLinkCore.ViaLinkSDK.CreateLinkError : Swift.Hashable {}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
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
|
+
// swift-module-flags: -target x86_64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -module-name ViaLinkCore -package-name vialink_ios_sdk
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
|
|
5
|
+
import CoreTelephony
|
|
6
|
+
import Foundation
|
|
7
|
+
import Network
|
|
8
|
+
import Swift
|
|
9
|
+
import UIKit
|
|
10
|
+
import _Concurrency
|
|
11
|
+
import _StringProcessing
|
|
12
|
+
import _SwiftConcurrencyShims
|
|
13
|
+
public struct DeepLinkData : Swift.Sendable {
|
|
14
|
+
public let path: Swift.String
|
|
15
|
+
public let params: [Swift.String : Swift.String]
|
|
16
|
+
public let shortCode: Swift.String?
|
|
17
|
+
public let linkId: Swift.Int?
|
|
18
|
+
public init(path: Swift.String, params: [Swift.String : Swift.String] = [:], shortCode: Swift.String? = nil, linkId: Swift.Int? = nil)
|
|
19
|
+
}
|
|
20
|
+
public struct DeferredError : Swift.Error, Swift.Sendable, Swift.Equatable {
|
|
21
|
+
public let code: ViaLinkCore.DeferredError.Code
|
|
22
|
+
public let message: Swift.String
|
|
23
|
+
public let httpStatus: Swift.Int?
|
|
24
|
+
public let retryable: Swift.Bool
|
|
25
|
+
public enum Code : Swift.String, Swift.Sendable {
|
|
26
|
+
case timeout
|
|
27
|
+
case network
|
|
28
|
+
case serverError
|
|
29
|
+
case invalidResponse
|
|
30
|
+
case unknown
|
|
31
|
+
public init?(rawValue: Swift.String)
|
|
32
|
+
public typealias RawValue = Swift.String
|
|
33
|
+
public var rawValue: Swift.String {
|
|
34
|
+
get
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
public init(code: ViaLinkCore.DeferredError.Code, message: Swift.String, httpStatus: Swift.Int? = nil, retryable: Swift.Bool)
|
|
38
|
+
public var localizedDescription: Swift.String {
|
|
39
|
+
get
|
|
40
|
+
}
|
|
41
|
+
public static func == (a: ViaLinkCore.DeferredError, b: ViaLinkCore.DeferredError) -> Swift.Bool
|
|
42
|
+
}
|
|
43
|
+
public struct PaymentInitiatedArgs : Swift.Sendable {
|
|
44
|
+
public let orderId: Swift.String
|
|
45
|
+
public let amount: Swift.Double
|
|
46
|
+
public let currency: Swift.String
|
|
47
|
+
public let linkId: Swift.Int?
|
|
48
|
+
public let paymentMethod: Swift.String?
|
|
49
|
+
public let metadata: [Swift.String : Swift.String]?
|
|
50
|
+
public init(orderId: Swift.String, amount: Swift.Double, currency: Swift.String, linkId: Swift.Int? = nil, paymentMethod: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
51
|
+
}
|
|
52
|
+
public struct PaymentInitiatedResult : Swift.Sendable {
|
|
53
|
+
public let success: Swift.Bool
|
|
54
|
+
public let paymentEventId: Swift.String
|
|
55
|
+
public init(success: Swift.Bool, paymentEventId: Swift.String)
|
|
56
|
+
}
|
|
57
|
+
public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendable, Swift.Equatable {
|
|
58
|
+
case invalidOrderId
|
|
59
|
+
case invalidAmount
|
|
60
|
+
case invalidCurrency
|
|
61
|
+
case sdkNotInitialized
|
|
62
|
+
case invalidResponse
|
|
63
|
+
case networkFailure(Swift.String)
|
|
64
|
+
public var errorDescription: Swift.String? {
|
|
65
|
+
get
|
|
66
|
+
}
|
|
67
|
+
public static func == (lhs: ViaLinkCore.PaymentError, rhs: ViaLinkCore.PaymentError) -> Swift.Bool
|
|
68
|
+
}
|
|
69
|
+
@_hasMissingDesignatedInitializers final public class ViaLinkSDK : @unchecked Swift.Sendable {
|
|
70
|
+
public static let sdkVersion: Swift.String
|
|
71
|
+
public static let shared: ViaLinkCore.ViaLinkSDK
|
|
72
|
+
final public func setWrapper(_ wrapper: Swift.String)
|
|
73
|
+
final public func configure(apiKey: Swift.String)
|
|
74
|
+
final public func onDeepLink(_ handler: @escaping (ViaLinkCore.DeepLinkData?) -> Swift.Void)
|
|
75
|
+
final public func onDeferredDeepLink(_ handler: @escaping (ViaLinkCore.DeepLinkData?, ViaLinkCore.DeferredError?) -> Swift.Void)
|
|
76
|
+
@discardableResult
|
|
77
|
+
final public func handleUniversalLink(_ userActivity: Foundation.NSUserActivity) -> Swift.Bool
|
|
78
|
+
final public func notifyAppLaunch()
|
|
79
|
+
@discardableResult
|
|
80
|
+
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
81
|
+
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
82
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static", iosUrl: Swift.String? = nil, androidUrl: Swift.String? = nil, webUrl: Swift.String? = nil, ogTitle: Swift.String? = nil, ogDescription: Swift.String? = nil, ogImageUrl: Swift.String? = nil, channel: Swift.String? = nil, feature: Swift.String? = nil, tags: [Swift.String]? = nil, expiresAt: Swift.String? = nil) async throws -> Swift.String
|
|
83
|
+
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
84
|
+
case notConfigured
|
|
85
|
+
case invalidResponse
|
|
86
|
+
public var errorDescription: Swift.String? {
|
|
87
|
+
get
|
|
88
|
+
}
|
|
89
|
+
public static func == (a: ViaLinkCore.ViaLinkSDK.CreateLinkError, b: ViaLinkCore.ViaLinkSDK.CreateLinkError) -> Swift.Bool
|
|
90
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
91
|
+
public var hashValue: Swift.Int {
|
|
92
|
+
get
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
final public var payment: ViaLinkCore.ViaLinkSDK.PaymentAPI {
|
|
96
|
+
get
|
|
97
|
+
}
|
|
98
|
+
public struct PaymentAPI {
|
|
99
|
+
public func initiated(_ args: ViaLinkCore.PaymentInitiatedArgs) async throws -> ViaLinkCore.PaymentInitiatedResult
|
|
100
|
+
}
|
|
101
|
+
@objc deinit
|
|
102
|
+
}
|
|
103
|
+
extension ViaLinkCore.DeferredError.Code : Swift.Equatable {}
|
|
104
|
+
extension ViaLinkCore.DeferredError.Code : Swift.Hashable {}
|
|
105
|
+
extension ViaLinkCore.DeferredError.Code : Swift.RawRepresentable {}
|
|
106
|
+
extension ViaLinkCore.ViaLinkSDK.CreateLinkError : Swift.Equatable {}
|
|
107
|
+
extension ViaLinkCore.ViaLinkSDK.CreateLinkError : Swift.Hashable {}
|
|
Binary file
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Info.plist</key>
|
|
8
|
+
<data>
|
|
9
|
+
cGdpRPBtoj0nrDCAK+kp/WQDXJg=
|
|
10
|
+
</data>
|
|
11
|
+
</dict>
|
|
12
|
+
<key>files2</key>
|
|
13
|
+
<dict/>
|
|
14
|
+
<key>rules</key>
|
|
15
|
+
<dict>
|
|
16
|
+
<key>^.*</key>
|
|
17
|
+
<true/>
|
|
18
|
+
<key>^.*\.lproj/</key>
|
|
19
|
+
<dict>
|
|
20
|
+
<key>optional</key>
|
|
21
|
+
<true/>
|
|
22
|
+
<key>weight</key>
|
|
23
|
+
<real>1000</real>
|
|
24
|
+
</dict>
|
|
25
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
26
|
+
<dict>
|
|
27
|
+
<key>omit</key>
|
|
28
|
+
<true/>
|
|
29
|
+
<key>weight</key>
|
|
30
|
+
<real>1100</real>
|
|
31
|
+
</dict>
|
|
32
|
+
<key>^Base\.lproj/</key>
|
|
33
|
+
<dict>
|
|
34
|
+
<key>weight</key>
|
|
35
|
+
<real>1010</real>
|
|
36
|
+
</dict>
|
|
37
|
+
<key>^version.plist$</key>
|
|
38
|
+
<true/>
|
|
39
|
+
</dict>
|
|
40
|
+
<key>rules2</key>
|
|
41
|
+
<dict>
|
|
42
|
+
<key>.*\.dSYM($|/)</key>
|
|
43
|
+
<dict>
|
|
44
|
+
<key>weight</key>
|
|
45
|
+
<real>11</real>
|
|
46
|
+
</dict>
|
|
47
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
48
|
+
<dict>
|
|
49
|
+
<key>omit</key>
|
|
50
|
+
<true/>
|
|
51
|
+
<key>weight</key>
|
|
52
|
+
<real>2000</real>
|
|
53
|
+
</dict>
|
|
54
|
+
<key>^.*</key>
|
|
55
|
+
<true/>
|
|
56
|
+
<key>^.*\.lproj/</key>
|
|
57
|
+
<dict>
|
|
58
|
+
<key>optional</key>
|
|
59
|
+
<true/>
|
|
60
|
+
<key>weight</key>
|
|
61
|
+
<real>1000</real>
|
|
62
|
+
</dict>
|
|
63
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
64
|
+
<dict>
|
|
65
|
+
<key>omit</key>
|
|
66
|
+
<true/>
|
|
67
|
+
<key>weight</key>
|
|
68
|
+
<real>1100</real>
|
|
69
|
+
</dict>
|
|
70
|
+
<key>^Base\.lproj/</key>
|
|
71
|
+
<dict>
|
|
72
|
+
<key>weight</key>
|
|
73
|
+
<real>1010</real>
|
|
74
|
+
</dict>
|
|
75
|
+
<key>^Info\.plist$</key>
|
|
76
|
+
<dict>
|
|
77
|
+
<key>omit</key>
|
|
78
|
+
<true/>
|
|
79
|
+
<key>weight</key>
|
|
80
|
+
<real>20</real>
|
|
81
|
+
</dict>
|
|
82
|
+
<key>^PkgInfo$</key>
|
|
83
|
+
<dict>
|
|
84
|
+
<key>omit</key>
|
|
85
|
+
<true/>
|
|
86
|
+
<key>weight</key>
|
|
87
|
+
<real>20</real>
|
|
88
|
+
</dict>
|
|
89
|
+
<key>^embedded\.provisionprofile$</key>
|
|
90
|
+
<dict>
|
|
91
|
+
<key>weight</key>
|
|
92
|
+
<real>20</real>
|
|
93
|
+
</dict>
|
|
94
|
+
<key>^version\.plist$</key>
|
|
95
|
+
<dict>
|
|
96
|
+
<key>weight</key>
|
|
97
|
+
<real>20</real>
|
|
98
|
+
</dict>
|
|
99
|
+
</dict>
|
|
100
|
+
</dict>
|
|
101
|
+
</plist>
|
package/package.json
CHANGED