idwise-nfc-react-native-sdk 4.9.5 → 5.0.2

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 (54) hide show
  1. package/android/build.gradle +5 -5
  2. package/android/gradle.properties +1 -1
  3. package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +94 -73
  4. package/idwise-react-native-sdk.podspec +3 -4
  5. package/ios/IDWiseNFC.framework/Assets.car +0 -0
  6. package/ios/IDWiseNFC.framework/IDWiseNFC +0 -0
  7. package/ios/IDWiseNFC.framework/Info.plist +0 -0
  8. package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  9. package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  10. package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.abi.json +5689 -4620
  11. package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.private.swiftinterface +95 -57
  12. package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftinterface +95 -57
  13. package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  14. package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.abi.json +5689 -4620
  15. package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +95 -57
  16. package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +95 -57
  17. package/ios/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule +0 -0
  18. package/ios/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/objects-13.0+.nib +0 -0
  19. package/ios/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/runtime.nib +0 -0
  20. package/ios/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +2 -2
  21. package/ios/IDWiseNFC.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
  22. package/ios/IdwiseMobileSdk.mm +5 -2
  23. package/ios/IdwiseMobileSdk.swift +160 -115
  24. package/lib/commonjs/ApplicantDetailsKeys.js +12 -0
  25. package/lib/commonjs/ApplicantDetailsKeys.js.map +1 -0
  26. package/lib/commonjs/IDWise.js +3 -38
  27. package/lib/commonjs/IDWise.js.map +1 -1
  28. package/lib/commonjs/IDWiseConstants.js +3 -3
  29. package/lib/commonjs/IDWiseConstants.js.map +1 -1
  30. package/lib/commonjs/IDWiseDynamic.js +60 -0
  31. package/lib/commonjs/IDWiseDynamic.js.map +1 -0
  32. package/lib/commonjs/IDWiseEventListeners.js +16 -11
  33. package/lib/commonjs/IDWiseEventListeners.js.map +1 -1
  34. package/lib/commonjs/index.js +4 -2
  35. package/lib/commonjs/index.js.map +1 -1
  36. package/lib/module/ApplicantDetailsKeys.js +6 -0
  37. package/lib/module/ApplicantDetailsKeys.js.map +1 -0
  38. package/lib/module/IDWise.js +4 -39
  39. package/lib/module/IDWise.js.map +1 -1
  40. package/lib/module/IDWiseConstants.js +2 -2
  41. package/lib/module/IDWiseConstants.js.map +1 -1
  42. package/lib/module/IDWiseDynamic.js +54 -0
  43. package/lib/module/IDWiseDynamic.js.map +1 -0
  44. package/lib/module/IDWiseEventListeners.js +16 -11
  45. package/lib/module/IDWiseEventListeners.js.map +1 -1
  46. package/lib/module/index.js +4 -2
  47. package/lib/module/index.js.map +1 -1
  48. package/package.json +2 -2
  49. package/src/ApplicantDetailsKeys.js +5 -0
  50. package/src/IDWise.js +8 -64
  51. package/src/IDWiseConstants.js +2 -2
  52. package/src/IDWiseDynamic.js +98 -0
  53. package/src/IDWiseEventListeners.js +17 -16
  54. package/src/index.js +3 -2
@@ -38,43 +38,67 @@ extension UIKit.UIApplication {
38
38
  @_hasMissingDesignatedInitializers final public class InitializeSDKContainer {
39
39
  @objc deinit
40
40
  }
41
- public protocol IDWiseSDKJourneyDelegate {
42
- func JourneyStarted(journeyID: Swift.String)
43
- func onJourneyResumed(journeyID: Swift.String)
44
- func JourneyFinished()
45
- func JourneyCancelled()
46
- func onError(error: IDWiseNFC.IDWiseSDKError)
47
- }
48
- public protocol IDWiseSDKStepDelegate {
49
- func onStepCaptured(stepId: Swift.Int, capturedImage: UIKit.UIImage?)
50
- func onStepResult(stepId: Swift.Int, stepResult: IDWiseNFC.StepResult?)
51
- func onStepConfirmed(stepId: Swift.String)
52
- func onStepCancelled(stepId: Swift.String)
53
- func onStepSkipped(stepId: Swift.String)
54
- }
55
- public enum IDWiseSDKTheme {
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.IDWiseSDKTheme, b: IDWiseNFC.IDWiseSDKTheme) -> Swift.Bool
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 IDWise {
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
- extension IDWiseNFC.IDWise {
67
- public class func startJourney(journeyDefinitionId: Swift.String, referenceNumber: Swift.String = "", locale: Swift.String = "", journeyDelegate: any IDWiseNFC.IDWiseSDKJourneyDelegate)
68
- public class func startDynamicJourney(journeyDefinitionId: Swift.String, referenceNumber: Swift.String = "", locale: Swift.String = "", journeyDelegate: any IDWiseNFC.IDWiseSDKJourneyDelegate, stepDelegate: any IDWiseNFC.IDWiseSDKStepDelegate)
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.IDWiseSDKTheme, onError: @escaping (IDWiseNFC.IDWiseSDKError?) -> ())
74
- public class func getJourneySummary(callback: @escaping ((IDWiseNFC.JourneySummary?, IDWiseNFC.IDWiseSDKError?) -> ()))
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 finishDynamicJourney()
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 struct ErrorCodes {
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 IDWiseSDKError {
253
- public let code: Swift.Int
254
- public let message: Swift.String
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 struct StepResult : Swift.Codable {
496
- public let hasPassedRules: Swift.Bool?
497
- public let isConcluded: Swift.Bool?
498
- public let status: Swift.String?, errorUserFeedbackCode: Swift.String?, errorUserFeedbackTitle: Swift.String?, errorUserFeedbackDetails: Swift.String?
499
- public var extractedFields: [Swift.String : IDWiseNFC.FieldValue]?
500
- public var nfcResult: IDWiseNFC.NFCResult?
501
- public var recognition: IDWiseNFC.DocumentRecognition?
502
- public func encode(to encoder: any Swift.Encoder) throws
503
- public init(from decoder: any Swift.Decoder) throws
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.IDWiseSDKTheme : Swift.Equatable {}
521
- extension IDWiseNFC.IDWiseSDKTheme : Swift.Hashable {}
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 {}
@@ -38,43 +38,67 @@ extension UIKit.UIApplication {
38
38
  @_hasMissingDesignatedInitializers final public class InitializeSDKContainer {
39
39
  @objc deinit
40
40
  }
41
- public protocol IDWiseSDKJourneyDelegate {
42
- func JourneyStarted(journeyID: Swift.String)
43
- func onJourneyResumed(journeyID: Swift.String)
44
- func JourneyFinished()
45
- func JourneyCancelled()
46
- func onError(error: IDWiseNFC.IDWiseSDKError)
47
- }
48
- public protocol IDWiseSDKStepDelegate {
49
- func onStepCaptured(stepId: Swift.Int, capturedImage: UIKit.UIImage?)
50
- func onStepResult(stepId: Swift.Int, stepResult: IDWiseNFC.StepResult?)
51
- func onStepConfirmed(stepId: Swift.String)
52
- func onStepCancelled(stepId: Swift.String)
53
- func onStepSkipped(stepId: Swift.String)
54
- }
55
- public enum IDWiseSDKTheme {
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.IDWiseSDKTheme, b: IDWiseNFC.IDWiseSDKTheme) -> Swift.Bool
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 IDWise {
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
- extension IDWiseNFC.IDWise {
67
- public class func startJourney(journeyDefinitionId: Swift.String, referenceNumber: Swift.String = "", locale: Swift.String = "", journeyDelegate: any IDWiseNFC.IDWiseSDKJourneyDelegate)
68
- public class func startDynamicJourney(journeyDefinitionId: Swift.String, referenceNumber: Swift.String = "", locale: Swift.String = "", journeyDelegate: any IDWiseNFC.IDWiseSDKJourneyDelegate, stepDelegate: any IDWiseNFC.IDWiseSDKStepDelegate)
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.IDWiseSDKTheme, onError: @escaping (IDWiseNFC.IDWiseSDKError?) -> ())
74
- public class func getJourneySummary(callback: @escaping ((IDWiseNFC.JourneySummary?, IDWiseNFC.IDWiseSDKError?) -> ()))
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 finishDynamicJourney()
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 struct ErrorCodes {
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 IDWiseSDKError {
253
- public let code: Swift.Int
254
- public let message: Swift.String
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 struct StepResult : Swift.Codable {
496
- public let hasPassedRules: Swift.Bool?
497
- public let isConcluded: Swift.Bool?
498
- public let status: Swift.String?, errorUserFeedbackCode: Swift.String?, errorUserFeedbackTitle: Swift.String?, errorUserFeedbackDetails: Swift.String?
499
- public var extractedFields: [Swift.String : IDWiseNFC.FieldValue]?
500
- public var nfcResult: IDWiseNFC.NFCResult?
501
- public var recognition: IDWiseNFC.DocumentRecognition?
502
- public func encode(to encoder: any Swift.Encoder) throws
503
- public init(from decoder: any Swift.Decoder) throws
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.IDWiseSDKTheme : Swift.Equatable {}
521
- extension IDWiseNFC.IDWiseSDKTheme : Swift.Hashable {}
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 {}