idwise-nfc-react-native-sdk 4.9.5 → 5.0.3
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 +5 -5
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +94 -73
- package/idwise-react-native-sdk.podspec +3 -4
- package/ios/IDWiseNFC.framework/Assets.car +0 -0
- package/ios/IDWiseNFC.framework/IDWiseNFC +0 -0
- package/ios/IDWiseNFC.framework/Info.plist +0 -0
- package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.abi.json +5587 -4553
- package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.private.swiftinterface +95 -57
- package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftinterface +95 -57
- package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.abi.json +5587 -4553
- package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +95 -57
- package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +95 -57
- package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule +0 -0
- package/ios/IDWiseNFC.framework/document_detector.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +2 -2
- package/ios/IDWiseNFC.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
- package/ios/IdwiseMobileSdk.mm +5 -2
- package/ios/IdwiseMobileSdk.swift +160 -115
- package/lib/commonjs/ApplicantDetailsKeys.js +12 -0
- package/lib/commonjs/ApplicantDetailsKeys.js.map +1 -0
- package/lib/commonjs/IDWise.js +3 -38
- package/lib/commonjs/IDWise.js.map +1 -1
- package/lib/commonjs/IDWiseConstants.js +3 -3
- package/lib/commonjs/IDWiseConstants.js.map +1 -1
- package/lib/commonjs/IDWiseDynamic.js +60 -0
- package/lib/commonjs/IDWiseDynamic.js.map +1 -0
- package/lib/commonjs/IDWiseEventListeners.js +16 -11
- package/lib/commonjs/IDWiseEventListeners.js.map +1 -1
- package/lib/commonjs/index.js +4 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/ApplicantDetailsKeys.js +6 -0
- package/lib/module/ApplicantDetailsKeys.js.map +1 -0
- package/lib/module/IDWise.js +4 -39
- package/lib/module/IDWise.js.map +1 -1
- package/lib/module/IDWiseConstants.js +2 -2
- package/lib/module/IDWiseConstants.js.map +1 -1
- package/lib/module/IDWiseDynamic.js +54 -0
- package/lib/module/IDWiseDynamic.js.map +1 -0
- package/lib/module/IDWiseEventListeners.js +16 -11
- package/lib/module/IDWiseEventListeners.js.map +1 -1
- package/lib/module/index.js +4 -2
- package/lib/module/index.js.map +1 -1
- package/package.json +2 -2
- package/src/ApplicantDetailsKeys.js +5 -0
- package/src/IDWise.js +8 -64
- package/src/IDWiseConstants.js +2 -2
- package/src/IDWiseDynamic.js +98 -0
- package/src/IDWiseEventListeners.js +17 -16
- package/src/index.js +3 -2
package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.private.swiftinterface
CHANGED
|
@@ -38,43 +38,67 @@ extension UIKit.UIApplication {
|
|
|
38
38
|
@_hasMissingDesignatedInitializers final public class InitializeSDKContainer {
|
|
39
39
|
@objc deinit
|
|
40
40
|
}
|
|
41
|
-
public protocol
|
|
42
|
-
func
|
|
43
|
-
func onJourneyResumed(
|
|
44
|
-
func
|
|
45
|
-
func
|
|
46
|
-
func onError(error: IDWiseNFC.
|
|
47
|
-
}
|
|
48
|
-
public
|
|
49
|
-
|
|
50
|
-
func
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
public
|
|
41
|
+
public protocol IDWiseJourneyCallbacks {
|
|
42
|
+
func onJourneyStarted(journeyStartedInfo: IDWiseNFC.JourneyStartedInfo)
|
|
43
|
+
func onJourneyResumed(journeyResumedInfo: IDWiseNFC.JourneyResumedInfo)
|
|
44
|
+
func onJourneyCompleted(journeyCompletedInfo: IDWiseNFC.JourneyCompletedInfo)
|
|
45
|
+
func onJourneyCancelled(journeyCancelledInfo: IDWiseNFC.JourneyCancelledInfo)
|
|
46
|
+
func onError(error: IDWiseNFC.IDWiseError)
|
|
47
|
+
}
|
|
48
|
+
public struct JourneyStartedInfo : Swift.Codable {
|
|
49
|
+
public let journeyId: Swift.String
|
|
50
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
51
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
52
|
+
}
|
|
53
|
+
public struct JourneyResumedInfo : Swift.Codable {
|
|
54
|
+
public let journeyId: Swift.String
|
|
55
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
56
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
57
|
+
}
|
|
58
|
+
public struct JourneyCancelledInfo : Swift.Codable {
|
|
59
|
+
public let journeyId: Swift.String
|
|
60
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
61
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
62
|
+
}
|
|
63
|
+
public struct JourneyCompletedInfo : Swift.Codable {
|
|
64
|
+
public let journeyId: Swift.String
|
|
65
|
+
public let isSuccessful: Swift.Bool
|
|
66
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
67
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
68
|
+
}
|
|
69
|
+
public struct ApplicantDetailsKeys {
|
|
70
|
+
public static let FULL_NAME: Swift.String
|
|
71
|
+
public static let BIRTH_DATE: Swift.String
|
|
72
|
+
public static let SEX: Swift.String
|
|
73
|
+
}
|
|
74
|
+
public enum IDWiseTheme {
|
|
56
75
|
case light, dark, systemDefault
|
|
57
|
-
public static func == (a: IDWiseNFC.
|
|
76
|
+
public static func == (a: IDWiseNFC.IDWiseTheme, b: IDWiseNFC.IDWiseTheme) -> Swift.Bool
|
|
58
77
|
public func hash(into hasher: inout Swift.Hasher)
|
|
59
78
|
public var hashValue: Swift.Int {
|
|
60
79
|
get
|
|
61
80
|
}
|
|
62
81
|
}
|
|
63
|
-
@_hasMissingDesignatedInitializers public class
|
|
82
|
+
@_hasMissingDesignatedInitializers public class IDWiseInternal {
|
|
83
|
+
@objc deinit
|
|
84
|
+
}
|
|
85
|
+
@_inheritsConvenienceInitializers public class IDWise : IDWiseNFC.IDWiseInternal {
|
|
86
|
+
public class func startJourney(flowId: Swift.String, referenceNumber: Swift.String = "", locale: Swift.String = "", applicantDetails: [Swift.String : Swift.String]?, journeyCallbacks: any IDWiseNFC.IDWiseJourneyCallbacks)
|
|
87
|
+
public class func resumeJourney(flowId: Swift.String, journeyId: Swift.String, locale: Swift.String = "", journeyCallbacks: any IDWiseNFC.IDWiseJourneyCallbacks)
|
|
88
|
+
public class func initialize(clientKey: Swift.String, theme: IDWiseNFC.IDWiseTheme, onError: @escaping (IDWiseNFC.IDWiseError?) -> ())
|
|
64
89
|
@objc deinit
|
|
65
90
|
}
|
|
66
|
-
|
|
67
|
-
public class func startJourney(
|
|
68
|
-
public class func
|
|
69
|
-
public class func resumeDynamicJourney(journeyDefinitionId: Swift.String, journeyId: Swift.String, locale: Swift.String = "", journeyDelegate: any IDWiseNFC.IDWiseSDKJourneyDelegate, stepDelegate: any IDWiseNFC.IDWiseSDKStepDelegate)
|
|
70
|
-
public class func resumeJourney(journeyDefinitionId: Swift.String, journeyId: Swift.String, locale: Swift.String = "", journeyDelegate: any IDWiseNFC.IDWiseSDKJourneyDelegate)
|
|
91
|
+
@_inheritsConvenienceInitializers public class IDWiseDynamic : IDWiseNFC.IDWiseInternal {
|
|
92
|
+
public class func startJourney(flowId: Swift.String, referenceNumber: Swift.String = "", locale: Swift.String = "", applicantDetails: [Swift.String : Swift.String]?, journeyCallbacks: any IDWiseNFC.IDWiseJourneyCallbacks, stepCallbacks: any IDWiseNFC.IDWiseStepCallbacks)
|
|
93
|
+
public class func resumeJourney(flowId: Swift.String, journeyId: Swift.String, locale: Swift.String = "", journeyCallbacks: any IDWiseNFC.IDWiseJourneyCallbacks, stepCallbacks: any IDWiseNFC.IDWiseStepCallbacks)
|
|
71
94
|
public class func startStep(stepId: Swift.String)
|
|
72
95
|
public class func startStepFromFileUpload(stepId: Swift.String, data: Foundation.Data)
|
|
73
|
-
public class func initialize(clientKey: Swift.String, theme: IDWiseNFC.
|
|
74
|
-
public class func getJourneySummary(callback: @escaping ((IDWiseNFC.JourneySummary?, IDWiseNFC.
|
|
96
|
+
public class func initialize(clientKey: Swift.String, theme: IDWiseNFC.IDWiseTheme, onError: @escaping (IDWiseNFC.IDWiseError?) -> ())
|
|
97
|
+
public class func getJourneySummary(callback: @escaping ((IDWiseNFC.JourneySummary?, IDWiseNFC.IDWiseError?) -> ()))
|
|
75
98
|
public class func unloadSDK()
|
|
76
|
-
public class func
|
|
99
|
+
public class func finishJourney()
|
|
77
100
|
public class func skipStep(stepId: Swift.String)
|
|
101
|
+
@objc deinit
|
|
78
102
|
}
|
|
79
103
|
public protocol NetworkConfigurable {
|
|
80
104
|
var baseURL: Foundation.URL { get }
|
|
@@ -204,7 +228,7 @@ public enum DataTransferError : Swift.Error {
|
|
|
204
228
|
case resolvedNetworkFailure(any Swift.Error)
|
|
205
229
|
}
|
|
206
230
|
public protocol DataTransferService {
|
|
207
|
-
typealias CompletionHandler<T> = (Swift.Result<T, IDWiseNFC.DataTransferError>, Foundation.Data?) -> Swift.Void
|
|
231
|
+
typealias CompletionHandler<T> = (Swift.Result<T, IDWiseNFC.DataTransferError>, Foundation.Data?, Foundation.URLResponse?) -> Swift.Void
|
|
208
232
|
@discardableResult
|
|
209
233
|
func request<T, E>(with endpoint: E, completion: @escaping Self.CompletionHandler<T>) -> (any IDWiseNFC.NetworkCancellable)? where T : Swift.Decodable, T == E.Response, E : IDWiseNFC.ResponseRequestable
|
|
210
234
|
@discardableResult
|
|
@@ -247,11 +271,32 @@ public class RawDataResponseDecoder : IDWiseNFC.ResponseDecoder {
|
|
|
247
271
|
public func decode<T>(_ data: Foundation.Data) throws -> T where T : Swift.Decodable
|
|
248
272
|
@objc deinit
|
|
249
273
|
}
|
|
250
|
-
public
|
|
274
|
+
public protocol IDWiseStepCallbacks {
|
|
275
|
+
func onStepCaptured(stepCapturedInfo: IDWiseNFC.StepCapturedInfo)
|
|
276
|
+
func onStepResult(stepResultInfo: IDWiseNFC.StepResultInfo)
|
|
277
|
+
func onStepCancelled(stepCancelledInfo: IDWiseNFC.StepCancelledInfo)
|
|
278
|
+
func onStepSkipped(stepSkippedInfo: IDWiseNFC.StepSkippedInfo)
|
|
251
279
|
}
|
|
252
|
-
public struct
|
|
253
|
-
public let
|
|
254
|
-
public
|
|
280
|
+
public struct StepSkippedInfo : Swift.Codable {
|
|
281
|
+
public let stepId: Swift.String
|
|
282
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
283
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
284
|
+
}
|
|
285
|
+
public struct StepCancelledInfo : Swift.Codable {
|
|
286
|
+
public let stepId: Swift.String
|
|
287
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
288
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
289
|
+
}
|
|
290
|
+
public struct StepResultInfo : Swift.Codable {
|
|
291
|
+
public let stepId: Swift.String
|
|
292
|
+
public let stepResult: IDWiseNFC.StepResult?
|
|
293
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
294
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
295
|
+
}
|
|
296
|
+
public struct StepCapturedInfo {
|
|
297
|
+
public let stepId: Swift.String
|
|
298
|
+
public let originalImage: UIKit.UIImage?
|
|
299
|
+
public let croppedImage: UIKit.UIImage?
|
|
255
300
|
}
|
|
256
301
|
@_hasMissingDesignatedInitializers public class UIUtilities {
|
|
257
302
|
public static func addCircle(atPoint point: CoreFoundation.CGPoint, to view: UIKit.UIView, color: UIKit.UIColor, radius: CoreFoundation.CGFloat)
|
|
@@ -435,7 +480,6 @@ public struct JourneySummaryInternal : Swift.Codable {
|
|
|
435
480
|
public let journeyDefinition: IDWiseNFC.JourneyDefinitionDTO?
|
|
436
481
|
public struct StepSummary : Swift.Codable {
|
|
437
482
|
public let definition: IDWiseNFC.JourneySummaryInternal.StepDefinition
|
|
438
|
-
public var result: IDWiseNFC.StepResult?
|
|
439
483
|
public let recognition: IDWiseNFC.DocumentRecognition?
|
|
440
484
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
441
485
|
public init(from decoder: any Swift.Decoder) throws
|
|
@@ -453,20 +497,6 @@ public struct JourneySummaryInternal : Swift.Codable {
|
|
|
453
497
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
454
498
|
public init(from decoder: any Swift.Decoder) throws
|
|
455
499
|
}
|
|
456
|
-
public struct StepResult : Swift.Codable, Swift.Equatable {
|
|
457
|
-
public let hasPassedRules: Swift.Bool?
|
|
458
|
-
public let documentHasBack: Swift.Bool?
|
|
459
|
-
public let isConcluded: Swift.Bool?
|
|
460
|
-
public let status: Swift.String?, errorUserFeedbackCode: Swift.String?, errorUserFeedbackTitle: Swift.String?, errorUserFeedbackDetails: Swift.String?
|
|
461
|
-
public var extractedFields: [Swift.String : IDWiseNFC.FieldValue]
|
|
462
|
-
public var nfcResult: IDWiseNFC.NFCResult?
|
|
463
|
-
public var recognition: IDWiseNFC.DocumentRecognition?
|
|
464
|
-
public let error_user_feedback_bullets: [Swift.String]?
|
|
465
|
-
public let attempt_id: Swift.String?
|
|
466
|
-
public static func == (lhs: IDWiseNFC.StepResult, rhs: IDWiseNFC.StepResult) -> Swift.Bool
|
|
467
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
468
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
469
|
-
}
|
|
470
500
|
public struct NFCConfigurationDTO : Swift.Codable {
|
|
471
501
|
public let performNFC: Swift.Bool?
|
|
472
502
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
@@ -492,16 +522,24 @@ public struct JourneySummary : Swift.Codable {
|
|
|
492
522
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
493
523
|
public init(from decoder: any Swift.Decoder) throws
|
|
494
524
|
}
|
|
495
|
-
public
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
525
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
526
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
527
|
+
}
|
|
528
|
+
public struct StepResult : Swift.Codable {
|
|
529
|
+
public let hasPassedRules: Swift.Bool?
|
|
530
|
+
public let isConcluded: Swift.Bool?
|
|
531
|
+
public let status: Swift.String?, errorUserFeedbackCode: Swift.String?, errorUserFeedbackTitle: Swift.String?, errorUserFeedbackDetails: Swift.String?
|
|
532
|
+
public var extractedFields: [Swift.String : IDWiseNFC.FieldValue]?
|
|
533
|
+
public var nfcResult: IDWiseNFC.NFCResult?
|
|
534
|
+
public var recognition: IDWiseNFC.DocumentRecognition?
|
|
535
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
536
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
537
|
+
}
|
|
538
|
+
public struct ErrorCodes {
|
|
539
|
+
}
|
|
540
|
+
public struct IDWiseError : Swift.Codable {
|
|
541
|
+
public let code: Swift.String
|
|
542
|
+
public let message: Swift.String
|
|
505
543
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
506
544
|
public init(from decoder: any Swift.Decoder) throws
|
|
507
545
|
}
|
|
@@ -517,8 +555,8 @@ extension UIKit.UIView {
|
|
|
517
555
|
public protocol Cancellable {
|
|
518
556
|
func cancel()
|
|
519
557
|
}
|
|
520
|
-
extension IDWiseNFC.
|
|
521
|
-
extension IDWiseNFC.
|
|
558
|
+
extension IDWiseNFC.IDWiseTheme : Swift.Equatable {}
|
|
559
|
+
extension IDWiseNFC.IDWiseTheme : Swift.Hashable {}
|
|
522
560
|
extension IDWiseNFC.LoaderPosition : Swift.Equatable {}
|
|
523
561
|
extension IDWiseNFC.LoaderPosition : Swift.Hashable {}
|
|
524
562
|
extension IDWiseNFC.HTTPMethodType : Swift.Equatable {}
|
package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftinterface
CHANGED
|
@@ -38,43 +38,67 @@ extension UIKit.UIApplication {
|
|
|
38
38
|
@_hasMissingDesignatedInitializers final public class InitializeSDKContainer {
|
|
39
39
|
@objc deinit
|
|
40
40
|
}
|
|
41
|
-
public protocol
|
|
42
|
-
func
|
|
43
|
-
func onJourneyResumed(
|
|
44
|
-
func
|
|
45
|
-
func
|
|
46
|
-
func onError(error: IDWiseNFC.
|
|
47
|
-
}
|
|
48
|
-
public
|
|
49
|
-
|
|
50
|
-
func
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
public
|
|
41
|
+
public protocol IDWiseJourneyCallbacks {
|
|
42
|
+
func onJourneyStarted(journeyStartedInfo: IDWiseNFC.JourneyStartedInfo)
|
|
43
|
+
func onJourneyResumed(journeyResumedInfo: IDWiseNFC.JourneyResumedInfo)
|
|
44
|
+
func onJourneyCompleted(journeyCompletedInfo: IDWiseNFC.JourneyCompletedInfo)
|
|
45
|
+
func onJourneyCancelled(journeyCancelledInfo: IDWiseNFC.JourneyCancelledInfo)
|
|
46
|
+
func onError(error: IDWiseNFC.IDWiseError)
|
|
47
|
+
}
|
|
48
|
+
public struct JourneyStartedInfo : Swift.Codable {
|
|
49
|
+
public let journeyId: Swift.String
|
|
50
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
51
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
52
|
+
}
|
|
53
|
+
public struct JourneyResumedInfo : Swift.Codable {
|
|
54
|
+
public let journeyId: Swift.String
|
|
55
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
56
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
57
|
+
}
|
|
58
|
+
public struct JourneyCancelledInfo : Swift.Codable {
|
|
59
|
+
public let journeyId: Swift.String
|
|
60
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
61
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
62
|
+
}
|
|
63
|
+
public struct JourneyCompletedInfo : Swift.Codable {
|
|
64
|
+
public let journeyId: Swift.String
|
|
65
|
+
public let isSuccessful: Swift.Bool
|
|
66
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
67
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
68
|
+
}
|
|
69
|
+
public struct ApplicantDetailsKeys {
|
|
70
|
+
public static let FULL_NAME: Swift.String
|
|
71
|
+
public static let BIRTH_DATE: Swift.String
|
|
72
|
+
public static let SEX: Swift.String
|
|
73
|
+
}
|
|
74
|
+
public enum IDWiseTheme {
|
|
56
75
|
case light, dark, systemDefault
|
|
57
|
-
public static func == (a: IDWiseNFC.
|
|
76
|
+
public static func == (a: IDWiseNFC.IDWiseTheme, b: IDWiseNFC.IDWiseTheme) -> Swift.Bool
|
|
58
77
|
public func hash(into hasher: inout Swift.Hasher)
|
|
59
78
|
public var hashValue: Swift.Int {
|
|
60
79
|
get
|
|
61
80
|
}
|
|
62
81
|
}
|
|
63
|
-
@_hasMissingDesignatedInitializers public class
|
|
82
|
+
@_hasMissingDesignatedInitializers public class IDWiseInternal {
|
|
83
|
+
@objc deinit
|
|
84
|
+
}
|
|
85
|
+
@_inheritsConvenienceInitializers public class IDWise : IDWiseNFC.IDWiseInternal {
|
|
86
|
+
public class func startJourney(flowId: Swift.String, referenceNumber: Swift.String = "", locale: Swift.String = "", applicantDetails: [Swift.String : Swift.String]?, journeyCallbacks: any IDWiseNFC.IDWiseJourneyCallbacks)
|
|
87
|
+
public class func resumeJourney(flowId: Swift.String, journeyId: Swift.String, locale: Swift.String = "", journeyCallbacks: any IDWiseNFC.IDWiseJourneyCallbacks)
|
|
88
|
+
public class func initialize(clientKey: Swift.String, theme: IDWiseNFC.IDWiseTheme, onError: @escaping (IDWiseNFC.IDWiseError?) -> ())
|
|
64
89
|
@objc deinit
|
|
65
90
|
}
|
|
66
|
-
|
|
67
|
-
public class func startJourney(
|
|
68
|
-
public class func
|
|
69
|
-
public class func resumeDynamicJourney(journeyDefinitionId: Swift.String, journeyId: Swift.String, locale: Swift.String = "", journeyDelegate: any IDWiseNFC.IDWiseSDKJourneyDelegate, stepDelegate: any IDWiseNFC.IDWiseSDKStepDelegate)
|
|
70
|
-
public class func resumeJourney(journeyDefinitionId: Swift.String, journeyId: Swift.String, locale: Swift.String = "", journeyDelegate: any IDWiseNFC.IDWiseSDKJourneyDelegate)
|
|
91
|
+
@_inheritsConvenienceInitializers public class IDWiseDynamic : IDWiseNFC.IDWiseInternal {
|
|
92
|
+
public class func startJourney(flowId: Swift.String, referenceNumber: Swift.String = "", locale: Swift.String = "", applicantDetails: [Swift.String : Swift.String]?, journeyCallbacks: any IDWiseNFC.IDWiseJourneyCallbacks, stepCallbacks: any IDWiseNFC.IDWiseStepCallbacks)
|
|
93
|
+
public class func resumeJourney(flowId: Swift.String, journeyId: Swift.String, locale: Swift.String = "", journeyCallbacks: any IDWiseNFC.IDWiseJourneyCallbacks, stepCallbacks: any IDWiseNFC.IDWiseStepCallbacks)
|
|
71
94
|
public class func startStep(stepId: Swift.String)
|
|
72
95
|
public class func startStepFromFileUpload(stepId: Swift.String, data: Foundation.Data)
|
|
73
|
-
public class func initialize(clientKey: Swift.String, theme: IDWiseNFC.
|
|
74
|
-
public class func getJourneySummary(callback: @escaping ((IDWiseNFC.JourneySummary?, IDWiseNFC.
|
|
96
|
+
public class func initialize(clientKey: Swift.String, theme: IDWiseNFC.IDWiseTheme, onError: @escaping (IDWiseNFC.IDWiseError?) -> ())
|
|
97
|
+
public class func getJourneySummary(callback: @escaping ((IDWiseNFC.JourneySummary?, IDWiseNFC.IDWiseError?) -> ()))
|
|
75
98
|
public class func unloadSDK()
|
|
76
|
-
public class func
|
|
99
|
+
public class func finishJourney()
|
|
77
100
|
public class func skipStep(stepId: Swift.String)
|
|
101
|
+
@objc deinit
|
|
78
102
|
}
|
|
79
103
|
public protocol NetworkConfigurable {
|
|
80
104
|
var baseURL: Foundation.URL { get }
|
|
@@ -204,7 +228,7 @@ public enum DataTransferError : Swift.Error {
|
|
|
204
228
|
case resolvedNetworkFailure(any Swift.Error)
|
|
205
229
|
}
|
|
206
230
|
public protocol DataTransferService {
|
|
207
|
-
typealias CompletionHandler<T> = (Swift.Result<T, IDWiseNFC.DataTransferError>, Foundation.Data?) -> Swift.Void
|
|
231
|
+
typealias CompletionHandler<T> = (Swift.Result<T, IDWiseNFC.DataTransferError>, Foundation.Data?, Foundation.URLResponse?) -> Swift.Void
|
|
208
232
|
@discardableResult
|
|
209
233
|
func request<T, E>(with endpoint: E, completion: @escaping Self.CompletionHandler<T>) -> (any IDWiseNFC.NetworkCancellable)? where T : Swift.Decodable, T == E.Response, E : IDWiseNFC.ResponseRequestable
|
|
210
234
|
@discardableResult
|
|
@@ -247,11 +271,32 @@ public class RawDataResponseDecoder : IDWiseNFC.ResponseDecoder {
|
|
|
247
271
|
public func decode<T>(_ data: Foundation.Data) throws -> T where T : Swift.Decodable
|
|
248
272
|
@objc deinit
|
|
249
273
|
}
|
|
250
|
-
public
|
|
274
|
+
public protocol IDWiseStepCallbacks {
|
|
275
|
+
func onStepCaptured(stepCapturedInfo: IDWiseNFC.StepCapturedInfo)
|
|
276
|
+
func onStepResult(stepResultInfo: IDWiseNFC.StepResultInfo)
|
|
277
|
+
func onStepCancelled(stepCancelledInfo: IDWiseNFC.StepCancelledInfo)
|
|
278
|
+
func onStepSkipped(stepSkippedInfo: IDWiseNFC.StepSkippedInfo)
|
|
251
279
|
}
|
|
252
|
-
public struct
|
|
253
|
-
public let
|
|
254
|
-
public
|
|
280
|
+
public struct StepSkippedInfo : Swift.Codable {
|
|
281
|
+
public let stepId: Swift.String
|
|
282
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
283
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
284
|
+
}
|
|
285
|
+
public struct StepCancelledInfo : Swift.Codable {
|
|
286
|
+
public let stepId: Swift.String
|
|
287
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
288
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
289
|
+
}
|
|
290
|
+
public struct StepResultInfo : Swift.Codable {
|
|
291
|
+
public let stepId: Swift.String
|
|
292
|
+
public let stepResult: IDWiseNFC.StepResult?
|
|
293
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
294
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
295
|
+
}
|
|
296
|
+
public struct StepCapturedInfo {
|
|
297
|
+
public let stepId: Swift.String
|
|
298
|
+
public let originalImage: UIKit.UIImage?
|
|
299
|
+
public let croppedImage: UIKit.UIImage?
|
|
255
300
|
}
|
|
256
301
|
@_hasMissingDesignatedInitializers public class UIUtilities {
|
|
257
302
|
public static func addCircle(atPoint point: CoreFoundation.CGPoint, to view: UIKit.UIView, color: UIKit.UIColor, radius: CoreFoundation.CGFloat)
|
|
@@ -435,7 +480,6 @@ public struct JourneySummaryInternal : Swift.Codable {
|
|
|
435
480
|
public let journeyDefinition: IDWiseNFC.JourneyDefinitionDTO?
|
|
436
481
|
public struct StepSummary : Swift.Codable {
|
|
437
482
|
public let definition: IDWiseNFC.JourneySummaryInternal.StepDefinition
|
|
438
|
-
public var result: IDWiseNFC.StepResult?
|
|
439
483
|
public let recognition: IDWiseNFC.DocumentRecognition?
|
|
440
484
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
441
485
|
public init(from decoder: any Swift.Decoder) throws
|
|
@@ -453,20 +497,6 @@ public struct JourneySummaryInternal : Swift.Codable {
|
|
|
453
497
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
454
498
|
public init(from decoder: any Swift.Decoder) throws
|
|
455
499
|
}
|
|
456
|
-
public struct StepResult : Swift.Codable, Swift.Equatable {
|
|
457
|
-
public let hasPassedRules: Swift.Bool?
|
|
458
|
-
public let documentHasBack: Swift.Bool?
|
|
459
|
-
public let isConcluded: Swift.Bool?
|
|
460
|
-
public let status: Swift.String?, errorUserFeedbackCode: Swift.String?, errorUserFeedbackTitle: Swift.String?, errorUserFeedbackDetails: Swift.String?
|
|
461
|
-
public var extractedFields: [Swift.String : IDWiseNFC.FieldValue]
|
|
462
|
-
public var nfcResult: IDWiseNFC.NFCResult?
|
|
463
|
-
public var recognition: IDWiseNFC.DocumentRecognition?
|
|
464
|
-
public let error_user_feedback_bullets: [Swift.String]?
|
|
465
|
-
public let attempt_id: Swift.String?
|
|
466
|
-
public static func == (lhs: IDWiseNFC.StepResult, rhs: IDWiseNFC.StepResult) -> Swift.Bool
|
|
467
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
468
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
469
|
-
}
|
|
470
500
|
public struct NFCConfigurationDTO : Swift.Codable {
|
|
471
501
|
public let performNFC: Swift.Bool?
|
|
472
502
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
@@ -492,16 +522,24 @@ public struct JourneySummary : Swift.Codable {
|
|
|
492
522
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
493
523
|
public init(from decoder: any Swift.Decoder) throws
|
|
494
524
|
}
|
|
495
|
-
public
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
525
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
526
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
527
|
+
}
|
|
528
|
+
public struct StepResult : Swift.Codable {
|
|
529
|
+
public let hasPassedRules: Swift.Bool?
|
|
530
|
+
public let isConcluded: Swift.Bool?
|
|
531
|
+
public let status: Swift.String?, errorUserFeedbackCode: Swift.String?, errorUserFeedbackTitle: Swift.String?, errorUserFeedbackDetails: Swift.String?
|
|
532
|
+
public var extractedFields: [Swift.String : IDWiseNFC.FieldValue]?
|
|
533
|
+
public var nfcResult: IDWiseNFC.NFCResult?
|
|
534
|
+
public var recognition: IDWiseNFC.DocumentRecognition?
|
|
535
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
536
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
537
|
+
}
|
|
538
|
+
public struct ErrorCodes {
|
|
539
|
+
}
|
|
540
|
+
public struct IDWiseError : Swift.Codable {
|
|
541
|
+
public let code: Swift.String
|
|
542
|
+
public let message: Swift.String
|
|
505
543
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
506
544
|
public init(from decoder: any Swift.Decoder) throws
|
|
507
545
|
}
|
|
@@ -517,8 +555,8 @@ extension UIKit.UIView {
|
|
|
517
555
|
public protocol Cancellable {
|
|
518
556
|
func cancel()
|
|
519
557
|
}
|
|
520
|
-
extension IDWiseNFC.
|
|
521
|
-
extension IDWiseNFC.
|
|
558
|
+
extension IDWiseNFC.IDWiseTheme : Swift.Equatable {}
|
|
559
|
+
extension IDWiseNFC.IDWiseTheme : Swift.Hashable {}
|
|
522
560
|
extension IDWiseNFC.LoaderPosition : Swift.Equatable {}
|
|
523
561
|
extension IDWiseNFC.LoaderPosition : Swift.Hashable {}
|
|
524
562
|
extension IDWiseNFC.HTTPMethodType : Swift.Equatable {}
|