idwise-nfc-react-native-sdk 5.8.3 → 5.9.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.
@@ -10,13 +10,13 @@ Pod::Spec.new do |s|
10
10
  s.license = package["license"]
11
11
  s.authors = package["author"]
12
12
 
13
- s.platforms = { :ios => min_ios_version_supported }
13
+ s.platforms = { :ios => '15.6' }
14
14
  s.source = { :git => "https://github.com/idwise/idwise_react_native_sdk.git", :tag => "#{s.version}" }
15
15
 
16
16
  s.source_files = "ios/**/*.{h,m,mm,cpp,swift}"
17
17
  s.private_header_files = "ios/**/*.h"
18
18
 
19
- s.dependency 'IDWiseNFC', '5.8.1'
19
+ s.dependency 'IDWiseNFC', '5.9.0'
20
20
 
21
21
  s.pod_target_xcconfig = {
22
22
  "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
@@ -4,4 +4,4 @@ IdwiseReactNativeSdk_targetSdkVersion=34
4
4
  IdwiseReactNativeSdk_compileSdkVersion=35
5
5
  IdwiseReactNativeSdk_ndkVersion=27.1.12297006
6
6
  # Idwise SDK version
7
- idwise_sdk_version=5.8.0
7
+ idwise_sdk_version=5.9.0
@@ -12,6 +12,7 @@ import com.fasterxml.jackson.databind.ObjectMapper
12
12
  import com.fasterxml.jackson.databind.MapperFeature
13
13
  import com.fasterxml.jackson.annotation.PropertyAccessor
14
14
  import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility
15
+ import com.fasterxml.jackson.annotation.JsonIgnoreProperties
15
16
  import com.idwise.sdk.IDWise
16
17
  import com.idwise.sdk.IDWiseDynamic
17
18
  import com.idwise.sdk.IDWiseJourneyCallbacks
@@ -48,8 +49,8 @@ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationConte
48
49
  @ReactMethod
49
50
  override fun initialize(clientKey: String, theme: String) {
50
51
 
51
- objectMapper.configure(MapperFeature.AUTO_DETECT_IS_GETTERS, false);
52
- objectMapper.setVisibility(PropertyAccessor.FIELD, Visibility.ANY);
52
+ objectMapper.configure(MapperFeature.AUTO_DETECT_IS_GETTERS, false);
53
+ objectMapper.setVisibility(PropertyAccessor.FIELD, Visibility.ANY);
53
54
  objectMapper.setVisibility(PropertyAccessor.GETTER, Visibility.NONE);
54
55
  objectMapper.setVisibility(PropertyAccessor.SETTER, Visibility.NONE);
55
56
 
@@ -61,7 +62,12 @@ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationConte
61
62
 
62
63
  IDWise.initialize(clientKey, idwiseTheme) { error ->
63
64
  val params: WritableMap = Arguments.createMap()
64
- params.putString("data",objectMapper.writeValueAsString(error))
65
+ val errorMap = JSONObject()
66
+ error?.let{
67
+ errorMap.put("code", error?.code)
68
+ errorMap.put("message", error?.message)
69
+ }
70
+ params.putString("data", errorMap.toString())
65
71
  sendEvent("onInitializeError", params)
66
72
  }
67
73
  }
@@ -286,7 +292,8 @@ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationConte
286
292
 
287
293
 
288
294
  internal data class JourneySummaryExposed(
289
- val summary:JourneySummary?,
295
+ val summary:JourneySummary?,
296
+ @JsonIgnoreProperties(value = ["cause", "stackTrace", "suppressed"])
290
297
  val error:IDWiseError?
291
298
  )
292
299
 
@@ -0,0 +1,6 @@
1
+ declare namespace _default {
2
+ let FULL_NAME: string;
3
+ let BIRTH_DATE: string;
4
+ let SEX: string;
5
+ }
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FULL_NAME: 'full_name',
5
+ BIRTH_DATE: 'birth_date',
6
+ SEX: 'sex',
7
+ };
@@ -0,0 +1,11 @@
1
+ export namespace IDWise {
2
+ export { initialize };
3
+ export { startJourney };
4
+ export { resumeJourney };
5
+ export { isDeviceBlocked };
6
+ }
7
+ declare function initialize(clientKey: any, theme: any, callback: any): void;
8
+ declare function startJourney(journeyDefinitionId: any, referenceNo: any, locale: any, applicantDetails: any, journeyCallback: any): void;
9
+ declare function resumeJourney(journeyDefinitionId: any, journeyId: any, locale: any, journeyCallback: any): void;
10
+ declare function isDeviceBlocked(): any;
11
+ export {};
package/lib/IDWise.js ADDED
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IDWise = void 0;
7
+ const react_native_1 = require("react-native");
8
+ const NativeIdwiseReactNativeSdk_1 = __importDefault(require("./NativeIdwiseReactNativeSdk"));
9
+ const IDWiseEventListeners_1 = require("./IDWiseEventListeners");
10
+ const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` +
11
+ react_native_1.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
12
+ '- You rebuilt the app after installing the package\n' +
13
+ '- You are not using Expo Go\n';
14
+ const RNIDWise = NativeIdwiseReactNativeSdk_1.default
15
+ ? NativeIdwiseReactNativeSdk_1.default
16
+ : new Proxy({}, {
17
+ get() {
18
+ throw new Error(LINKING_ERROR);
19
+ },
20
+ });
21
+ const initialize = (clientKey, theme, callback) => {
22
+ console.log('IDWise - initialize');
23
+ (0, IDWiseEventListeners_1.setInitializeEventListeners)(callback);
24
+ RNIDWise.initialize(clientKey, theme);
25
+ };
26
+ const isDeviceBlocked = () => {
27
+ console.log('IDWise - isDeviceBlocked');
28
+ return RNIDWise.isDeviceBlocked();
29
+ };
30
+ const startJourney = (journeyDefinitionId, referenceNo, locale, applicantDetails, journeyCallback) => {
31
+ console.log('IDWise - startJourney');
32
+ (0, IDWiseEventListeners_1.setJourneyEventListeners)(journeyCallback);
33
+ (0, IDWiseEventListeners_1.setStepEventListeners)(null);
34
+ RNIDWise.startJourney(journeyDefinitionId, referenceNo, locale, applicantDetails);
35
+ };
36
+ const resumeJourney = (journeyDefinitionId, journeyId, locale, journeyCallback) => {
37
+ console.log('IDWise - resumeJourney');
38
+ (0, IDWiseEventListeners_1.setJourneyEventListeners)(journeyCallback);
39
+ RNIDWise.resumeJourney(journeyDefinitionId, journeyId, locale);
40
+ };
41
+ exports.IDWise = {
42
+ initialize,
43
+ startJourney,
44
+ resumeJourney,
45
+ isDeviceBlocked,
46
+ };
@@ -0,0 +1,26 @@
1
+ export namespace IDWiseEvents {
2
+ let EVENT_INITIALIZE_ERRROR: string;
3
+ let EVENT_JOURNEY_STARTED: string;
4
+ let EVENT_JOURNEY_RESUMED: string;
5
+ let EVENT_JOURNEY_FINISHED: string;
6
+ let EVENT_JOURNEY_CANCELLED: string;
7
+ let EVENT_JOURNEY_BLOCKED: string;
8
+ let EVENT_JOURNEY_ERROR: string;
9
+ let EVENT_JOURNEY_SUMMARY: string;
10
+ let EVENT_JOURNEY_SUMMARY_ERROR: string;
11
+ let EVENT_STEP_CAPTURED: string;
12
+ let EVENT_STEP_RESULT: string;
13
+ let EVENT_STEP_CANCELLED: string;
14
+ let EVENT_STEP_SKIPPED: string;
15
+ }
16
+ export namespace IDWiseTheme {
17
+ let LIGHT: string;
18
+ let DARK: string;
19
+ let SYSTEM_DEFAULT: string;
20
+ }
21
+ export namespace ApplicantDetailsKeys {
22
+ let FULL_NAME: string;
23
+ let BIRTH_DATE: string;
24
+ let SEX: string;
25
+ let ADDRESS: string;
26
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicantDetailsKeys = exports.IDWiseTheme = exports.IDWiseEvents = void 0;
4
+ exports.IDWiseEvents = {
5
+ EVENT_INITIALIZE_ERRROR: 'onInitializeError',
6
+ EVENT_JOURNEY_STARTED: 'onJourneyStarted',
7
+ EVENT_JOURNEY_RESUMED: 'onJourneyResumed',
8
+ EVENT_JOURNEY_FINISHED: 'onJourneyCompleted',
9
+ EVENT_JOURNEY_CANCELLED: 'onJourneyCancelled',
10
+ EVENT_JOURNEY_BLOCKED: 'onJourneyBlocked',
11
+ EVENT_JOURNEY_ERROR: 'onJourneyError',
12
+ EVENT_JOURNEY_SUMMARY: 'onJourneySummary',
13
+ EVENT_JOURNEY_SUMMARY_ERROR: 'onJourneySummaryError',
14
+ EVENT_STEP_CAPTURED: 'onStepCaptured',
15
+ EVENT_STEP_RESULT: 'onStepResult',
16
+ EVENT_STEP_CANCELLED: 'onStepCancelled',
17
+ EVENT_STEP_SKIPPED: 'onStepSkipped',
18
+ };
19
+ exports.IDWiseTheme = {
20
+ LIGHT: 'LIGHT',
21
+ DARK: 'DARK',
22
+ SYSTEM_DEFAULT: 'SYSTEM_DEFAULT',
23
+ };
24
+ exports.ApplicantDetailsKeys = {
25
+ FULL_NAME: 'full_name',
26
+ BIRTH_DATE: 'birth_date',
27
+ SEX: 'sex',
28
+ ADDRESS: 'address',
29
+ };
@@ -0,0 +1,21 @@
1
+ export namespace IDWiseDynamic {
2
+ export { initialize };
3
+ export { startJourney };
4
+ export { startStep };
5
+ export { getJourneySummary };
6
+ export { finishJourney };
7
+ export { skipStep };
8
+ export { resumeJourney };
9
+ export { isDeviceBlocked };
10
+ export { unloadSDK };
11
+ }
12
+ declare function initialize(clientKey: any, theme: any, callback: any): void;
13
+ declare function startJourney(journeyDefinitionId: any, referenceNo: any, locale: any, applicantDetails: any, journeyCallback: any, stepCallback: any): void;
14
+ declare function startStep(stepId: any): any;
15
+ declare function getJourneySummary(callback: any): void;
16
+ declare function finishJourney(): void;
17
+ declare function skipStep(stepId: any): any;
18
+ declare function resumeJourney(journeyDefinitionId: any, journeyId: any, locale: any, journeyCallback: any, stepCallback: any): void;
19
+ declare function isDeviceBlocked(): any;
20
+ declare function unloadSDK(): void;
21
+ export {};
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IDWiseDynamic = void 0;
4
+ const react_native_1 = require("react-native");
5
+ const IDWiseEventListeners_1 = require("./IDWiseEventListeners");
6
+ const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` +
7
+ react_native_1.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
8
+ '- You rebuilt the app after installing the package\n' +
9
+ '- You are not using Expo Go\n';
10
+ const RNIDWise = react_native_1.NativeModules.IdwiseReactNativeSdk
11
+ ? react_native_1.NativeModules.IdwiseReactNativeSdk
12
+ : new Proxy({}, {
13
+ get() {
14
+ throw new Error(LINKING_ERROR);
15
+ },
16
+ });
17
+ const initialize = (clientKey, theme, callback) => {
18
+ console.log('IDWise - initialize');
19
+ (0, IDWiseEventListeners_1.setInitializeEventListeners)(callback);
20
+ RNIDWise.initialize(clientKey, theme);
21
+ };
22
+ const isDeviceBlocked = () => {
23
+ console.log('IDWise - isDeviceBlocked');
24
+ return RNIDWise.isDeviceBlocked();
25
+ };
26
+ const startJourney = (journeyDefinitionId, referenceNo, locale, applicantDetails, journeyCallback, stepCallback) => {
27
+ console.log('IDWise - startDynamicJourney');
28
+ (0, IDWiseEventListeners_1.setJourneyEventListeners)(journeyCallback);
29
+ (0, IDWiseEventListeners_1.setStepEventListeners)(stepCallback);
30
+ RNIDWise.startDynamicJourney(journeyDefinitionId, referenceNo, locale, applicantDetails);
31
+ };
32
+ const resumeJourney = (journeyDefinitionId, journeyId, locale, journeyCallback, stepCallback) => {
33
+ console.log('IDWise - resumeDynamicJourney');
34
+ (0, IDWiseEventListeners_1.setJourneyEventListeners)(journeyCallback);
35
+ (0, IDWiseEventListeners_1.setStepEventListeners)(stepCallback);
36
+ RNIDWise.resumeDynamicJourney(journeyDefinitionId, journeyId, locale);
37
+ };
38
+ const startStep = (stepId) => RNIDWise.startStep(stepId);
39
+ const skipStep = (stepId) => RNIDWise.skipStep(stepId);
40
+ const getJourneySummary = (callback) => {
41
+ console.log('IDWise - getJourneySummary');
42
+ (0, IDWiseEventListeners_1.setJourneySummaryEventListener)(callback);
43
+ RNIDWise.getJourneySummary();
44
+ };
45
+ const finishJourney = () => {
46
+ console.log('IDWise - finishDynamicJourney');
47
+ RNIDWise.finishDynamicJourney();
48
+ };
49
+ const unloadSDK = () => {
50
+ console.log('IDWise - unloadSDK');
51
+ RNIDWise.unloadSDK();
52
+ };
53
+ exports.IDWiseDynamic = {
54
+ initialize,
55
+ startJourney,
56
+ startStep,
57
+ getJourneySummary,
58
+ finishJourney,
59
+ skipStep,
60
+ resumeJourney,
61
+ isDeviceBlocked,
62
+ unloadSDK,
63
+ };
@@ -0,0 +1,4 @@
1
+ export function setInitializeEventListeners(idwiseInitializeCallback: any): void;
2
+ export function setJourneyEventListeners(idwiseJourneyCallback: any): void;
3
+ export function setJourneySummaryEventListener(idwiseJourneySummaryCallback: any): void;
4
+ export function setStepEventListeners(idwiseStepCallback: any): void;
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setStepEventListeners = exports.setJourneySummaryEventListener = exports.setJourneyEventListeners = exports.setInitializeEventListeners = void 0;
4
+ const react_native_1 = require("react-native");
5
+ const IDWiseConstants_1 = require("./IDWiseConstants");
6
+ const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` +
7
+ react_native_1.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
8
+ '- You rebuilt the app after installing the package\n' +
9
+ '- You are not using Expo Go\n';
10
+ const RNIDWise = react_native_1.NativeModules.IdwiseReactNativeSdk
11
+ ? react_native_1.NativeModules.IdwiseReactNativeSdk
12
+ : new Proxy({}, {
13
+ get() {
14
+ throw new Error(LINKING_ERROR);
15
+ },
16
+ });
17
+ const eventEmitter = new react_native_1.NativeEventEmitter(RNIDWise);
18
+ const setInitializeEventListeners = (idwiseInitializeCallback) => {
19
+ console.log('IDWise - setInitializeEventListeners');
20
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_INITIALIZE_ERRROR);
21
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_INITIALIZE_ERRROR, (event) => {
22
+ idwiseInitializeCallback === null || idwiseInitializeCallback === void 0 ? void 0 : idwiseInitializeCallback.onError(JSON.parse(event.data));
23
+ });
24
+ };
25
+ exports.setInitializeEventListeners = setInitializeEventListeners;
26
+ const setJourneyEventListeners = (idwiseJourneyCallback) => {
27
+ console.log('IDWise - setJourneyEventListeners');
28
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_STARTED);
29
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_RESUMED);
30
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_FINISHED);
31
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_CANCELLED);
32
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_BLOCKED);
33
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_ERROR);
34
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_STARTED, (event) => {
35
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onJourneyStarted(JSON.parse(event.data));
36
+ });
37
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_RESUMED, (event) => {
38
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onJourneyResumed(JSON.parse(event.data));
39
+ });
40
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_FINISHED, (event) => {
41
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onJourneyCompleted(JSON.parse(event.data));
42
+ });
43
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_CANCELLED, (event) => {
44
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onJourneyCancelled(JSON.parse(event.data));
45
+ });
46
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_BLOCKED, (event) => {
47
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onJourneyBlocked(JSON.parse(event.data));
48
+ });
49
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_ERROR, (event) => {
50
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onError(JSON.parse(event.data));
51
+ });
52
+ };
53
+ exports.setJourneyEventListeners = setJourneyEventListeners;
54
+ const setStepEventListeners = (idwiseStepCallback) => {
55
+ console.log('IDWise - setStepEventListener');
56
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_CAPTURED);
57
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_RESULT);
58
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_CANCELLED);
59
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_SKIPPED);
60
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_CAPTURED, (event) => {
61
+ idwiseStepCallback === null || idwiseStepCallback === void 0 ? void 0 : idwiseStepCallback.onStepCaptured(JSON.parse(event.data));
62
+ });
63
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_RESULT, (event) => {
64
+ idwiseStepCallback === null || idwiseStepCallback === void 0 ? void 0 : idwiseStepCallback.onStepResult(JSON.parse(event.data));
65
+ });
66
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_CANCELLED, (event) => {
67
+ idwiseStepCallback === null || idwiseStepCallback === void 0 ? void 0 : idwiseStepCallback.onStepCancelled(JSON.parse(event.data));
68
+ });
69
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_SKIPPED, (event) => {
70
+ idwiseStepCallback === null || idwiseStepCallback === void 0 ? void 0 : idwiseStepCallback.onStepSkipped(JSON.parse(event.data));
71
+ });
72
+ };
73
+ exports.setStepEventListeners = setStepEventListeners;
74
+ const setJourneySummaryEventListener = (idwiseJourneySummaryCallback) => {
75
+ console.log('IDWise - setJourneySummaryEventListener');
76
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_SUMMARY);
77
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_SUMMARY_ERROR);
78
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_SUMMARY, (event) => {
79
+ let summary = JSON.parse(event.data);
80
+ if (summary.error == null) {
81
+ idwiseJourneySummaryCallback === null || idwiseJourneySummaryCallback === void 0 ? void 0 : idwiseJourneySummaryCallback.onJourneySummary(summary.summary);
82
+ }
83
+ else {
84
+ idwiseJourneySummaryCallback === null || idwiseJourneySummaryCallback === void 0 ? void 0 : idwiseJourneySummaryCallback.onError(summary.error);
85
+ }
86
+ });
87
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_SUMMARY_ERROR, (event) => {
88
+ idwiseJourneySummaryCallback === null || idwiseJourneySummaryCallback === void 0 ? void 0 : idwiseJourneySummaryCallback.onError(JSON.parse(event.error));
89
+ });
90
+ };
91
+ exports.setJourneySummaryEventListener = setJourneySummaryEventListener;
@@ -0,0 +1,21 @@
1
+ import type { TurboModule } from 'react-native';
2
+ export interface Spec extends TurboModule {
3
+ multiply(a: number, b: number): number;
4
+ initialize(clientKey: string, theme: string): void;
5
+ isDeviceBlocked(): boolean;
6
+ startJourney(flowId: string, referenceNo: string | undefined, locale: string | undefined, applicantDetails: {
7
+ [key: string]: string;
8
+ } | undefined): void;
9
+ resumeJourney(flowId: string, journeyId: string, locale: string | undefined): void;
10
+ startDynamicJourney(flowId: string, referenceNo: string | undefined, locale: string | undefined, applicantDetails: {
11
+ [key: string]: string;
12
+ } | undefined): void;
13
+ resumeDynamicJourney(flowId: string, journeyId: string, locale: string | undefined): void;
14
+ startStep(stepId: string): void;
15
+ finishDynamicJourney(): void;
16
+ skipStep(stepId: string): void;
17
+ getJourneySummary(): void;
18
+ unloadSDK(): void;
19
+ }
20
+ declare const _default: Spec;
21
+ export default _default;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_native_1 = require("react-native");
4
+ exports.default = react_native_1.TurboModuleRegistry.getEnforcing('IdwiseReactNativeSdk');
package/lib/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ declare namespace _default {
2
+ export { IDWise };
3
+ export { IDWiseTheme };
4
+ export { IDWiseDynamic };
5
+ }
6
+ export default _default;
7
+ import { IDWise } from './IDWise';
8
+ import { IDWiseTheme } from './IDWiseConstants';
9
+ import { IDWiseDynamic } from './IDWiseDynamic';
10
+ import { ApplicantDetailsKeys } from './IDWiseConstants';
11
+ export { IDWise, IDWiseTheme, IDWiseDynamic, ApplicantDetailsKeys };
package/lib/index.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.withIDWise = exports.ApplicantDetailsKeys = exports.IDWiseDynamic = exports.IDWiseTheme = exports.IDWise = void 0;
7
+ const IDWise_1 = require("./IDWise");
8
+ Object.defineProperty(exports, "IDWise", { enumerable: true, get: function () { return IDWise_1.IDWise; } });
9
+ const IDWiseConstants_1 = require("./IDWiseConstants");
10
+ Object.defineProperty(exports, "IDWiseTheme", { enumerable: true, get: function () { return IDWiseConstants_1.IDWiseTheme; } });
11
+ Object.defineProperty(exports, "ApplicantDetailsKeys", { enumerable: true, get: function () { return IDWiseConstants_1.ApplicantDetailsKeys; } });
12
+ const IDWiseDynamic_1 = require("./IDWiseDynamic");
13
+ Object.defineProperty(exports, "IDWiseDynamic", { enumerable: true, get: function () { return IDWiseDynamic_1.IDWiseDynamic; } });
14
+ exports.default = { IDWise: IDWise_1.IDWise, IDWiseTheme: IDWiseConstants_1.IDWiseTheme, IDWiseDynamic: IDWiseDynamic_1.IDWiseDynamic };
15
+ var withIdwise_js_1 = require("./plugin/withIdwise.js");
16
+ Object.defineProperty(exports, "withIDWise", { enumerable: true, get: function () { return __importDefault(withIdwise_js_1).default; } });
@@ -0,0 +1,6 @@
1
+ declare namespace _default {
2
+ let FULL_NAME: string;
3
+ let BIRTH_DATE: string;
4
+ let SEX: string;
5
+ }
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FULL_NAME: 'full_name',
5
+ BIRTH_DATE: 'birth_date',
6
+ SEX: 'sex',
7
+ };
@@ -0,0 +1,11 @@
1
+ export namespace IDWise {
2
+ export { initialize };
3
+ export { startJourney };
4
+ export { resumeJourney };
5
+ export { isDeviceBlocked };
6
+ }
7
+ declare function initialize(clientKey: any, theme: any, callback: any): void;
8
+ declare function startJourney(journeyDefinitionId: any, referenceNo: any, locale: any, applicantDetails: any, journeyCallback: any): void;
9
+ declare function resumeJourney(journeyDefinitionId: any, journeyId: any, locale: any, journeyCallback: any): void;
10
+ declare function isDeviceBlocked(): any;
11
+ export {};
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IDWise = void 0;
7
+ const react_native_1 = require("react-native");
8
+ const NativeIdwiseReactNativeSdk_1 = __importDefault(require("./NativeIdwiseReactNativeSdk"));
9
+ const IDWiseEventListeners_1 = require("./IDWiseEventListeners");
10
+ const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` +
11
+ react_native_1.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
12
+ '- You rebuilt the app after installing the package\n' +
13
+ '- You are not using Expo Go\n';
14
+ const RNIDWise = NativeIdwiseReactNativeSdk_1.default
15
+ ? NativeIdwiseReactNativeSdk_1.default
16
+ : new Proxy({}, {
17
+ get() {
18
+ throw new Error(LINKING_ERROR);
19
+ },
20
+ });
21
+ const initialize = (clientKey, theme, callback) => {
22
+ console.log('IDWise - initialize');
23
+ (0, IDWiseEventListeners_1.setInitializeEventListeners)(callback);
24
+ RNIDWise.initialize(clientKey, theme);
25
+ };
26
+ const isDeviceBlocked = () => {
27
+ console.log('IDWise - isDeviceBlocked');
28
+ return RNIDWise.isDeviceBlocked();
29
+ };
30
+ const startJourney = (journeyDefinitionId, referenceNo, locale, applicantDetails, journeyCallback) => {
31
+ console.log('IDWise - startJourney');
32
+ (0, IDWiseEventListeners_1.setJourneyEventListeners)(journeyCallback);
33
+ (0, IDWiseEventListeners_1.setStepEventListeners)(null);
34
+ RNIDWise.startJourney(journeyDefinitionId, referenceNo, locale, applicantDetails);
35
+ };
36
+ const resumeJourney = (journeyDefinitionId, journeyId, locale, journeyCallback) => {
37
+ console.log('IDWise - resumeJourney');
38
+ (0, IDWiseEventListeners_1.setJourneyEventListeners)(journeyCallback);
39
+ RNIDWise.resumeJourney(journeyDefinitionId, journeyId, locale);
40
+ };
41
+ exports.IDWise = {
42
+ initialize,
43
+ startJourney,
44
+ resumeJourney,
45
+ isDeviceBlocked,
46
+ };
@@ -0,0 +1,26 @@
1
+ export namespace IDWiseEvents {
2
+ let EVENT_INITIALIZE_ERRROR: string;
3
+ let EVENT_JOURNEY_STARTED: string;
4
+ let EVENT_JOURNEY_RESUMED: string;
5
+ let EVENT_JOURNEY_FINISHED: string;
6
+ let EVENT_JOURNEY_CANCELLED: string;
7
+ let EVENT_JOURNEY_BLOCKED: string;
8
+ let EVENT_JOURNEY_ERROR: string;
9
+ let EVENT_JOURNEY_SUMMARY: string;
10
+ let EVENT_JOURNEY_SUMMARY_ERROR: string;
11
+ let EVENT_STEP_CAPTURED: string;
12
+ let EVENT_STEP_RESULT: string;
13
+ let EVENT_STEP_CANCELLED: string;
14
+ let EVENT_STEP_SKIPPED: string;
15
+ }
16
+ export namespace IDWiseTheme {
17
+ let LIGHT: string;
18
+ let DARK: string;
19
+ let SYSTEM_DEFAULT: string;
20
+ }
21
+ export namespace ApplicantDetailsKeys {
22
+ let FULL_NAME: string;
23
+ let BIRTH_DATE: string;
24
+ let SEX: string;
25
+ let ADDRESS: string;
26
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicantDetailsKeys = exports.IDWiseTheme = exports.IDWiseEvents = void 0;
4
+ exports.IDWiseEvents = {
5
+ EVENT_INITIALIZE_ERRROR: 'onInitializeError',
6
+ EVENT_JOURNEY_STARTED: 'onJourneyStarted',
7
+ EVENT_JOURNEY_RESUMED: 'onJourneyResumed',
8
+ EVENT_JOURNEY_FINISHED: 'onJourneyCompleted',
9
+ EVENT_JOURNEY_CANCELLED: 'onJourneyCancelled',
10
+ EVENT_JOURNEY_BLOCKED: 'onJourneyBlocked',
11
+ EVENT_JOURNEY_ERROR: 'onJourneyError',
12
+ EVENT_JOURNEY_SUMMARY: 'onJourneySummary',
13
+ EVENT_JOURNEY_SUMMARY_ERROR: 'onJourneySummaryError',
14
+ EVENT_STEP_CAPTURED: 'onStepCaptured',
15
+ EVENT_STEP_RESULT: 'onStepResult',
16
+ EVENT_STEP_CANCELLED: 'onStepCancelled',
17
+ EVENT_STEP_SKIPPED: 'onStepSkipped',
18
+ };
19
+ exports.IDWiseTheme = {
20
+ LIGHT: 'LIGHT',
21
+ DARK: 'DARK',
22
+ SYSTEM_DEFAULT: 'SYSTEM_DEFAULT',
23
+ };
24
+ exports.ApplicantDetailsKeys = {
25
+ FULL_NAME: 'full_name',
26
+ BIRTH_DATE: 'birth_date',
27
+ SEX: 'sex',
28
+ ADDRESS: 'address',
29
+ };
@@ -0,0 +1,21 @@
1
+ export namespace IDWiseDynamic {
2
+ export { initialize };
3
+ export { startJourney };
4
+ export { startStep };
5
+ export { getJourneySummary };
6
+ export { finishJourney };
7
+ export { skipStep };
8
+ export { resumeJourney };
9
+ export { isDeviceBlocked };
10
+ export { unloadSDK };
11
+ }
12
+ declare function initialize(clientKey: any, theme: any, callback: any): void;
13
+ declare function startJourney(journeyDefinitionId: any, referenceNo: any, locale: any, applicantDetails: any, journeyCallback: any, stepCallback: any): void;
14
+ declare function startStep(stepId: any): any;
15
+ declare function getJourneySummary(callback: any): void;
16
+ declare function finishJourney(): void;
17
+ declare function skipStep(stepId: any): any;
18
+ declare function resumeJourney(journeyDefinitionId: any, journeyId: any, locale: any, journeyCallback: any, stepCallback: any): void;
19
+ declare function isDeviceBlocked(): any;
20
+ declare function unloadSDK(): void;
21
+ export {};
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IDWiseDynamic = void 0;
4
+ const react_native_1 = require("react-native");
5
+ const IDWiseEventListeners_1 = require("./IDWiseEventListeners");
6
+ const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` +
7
+ react_native_1.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
8
+ '- You rebuilt the app after installing the package\n' +
9
+ '- You are not using Expo Go\n';
10
+ const RNIDWise = react_native_1.NativeModules.IdwiseReactNativeSdk
11
+ ? react_native_1.NativeModules.IdwiseReactNativeSdk
12
+ : new Proxy({}, {
13
+ get() {
14
+ throw new Error(LINKING_ERROR);
15
+ },
16
+ });
17
+ const initialize = (clientKey, theme, callback) => {
18
+ console.log('IDWise - initialize');
19
+ (0, IDWiseEventListeners_1.setInitializeEventListeners)(callback);
20
+ RNIDWise.initialize(clientKey, theme);
21
+ };
22
+ const isDeviceBlocked = () => {
23
+ console.log('IDWise - isDeviceBlocked');
24
+ return RNIDWise.isDeviceBlocked();
25
+ };
26
+ const startJourney = (journeyDefinitionId, referenceNo, locale, applicantDetails, journeyCallback, stepCallback) => {
27
+ console.log('IDWise - startDynamicJourney');
28
+ (0, IDWiseEventListeners_1.setJourneyEventListeners)(journeyCallback);
29
+ (0, IDWiseEventListeners_1.setStepEventListeners)(stepCallback);
30
+ RNIDWise.startDynamicJourney(journeyDefinitionId, referenceNo, locale, applicantDetails);
31
+ };
32
+ const resumeJourney = (journeyDefinitionId, journeyId, locale, journeyCallback, stepCallback) => {
33
+ console.log('IDWise - resumeDynamicJourney');
34
+ (0, IDWiseEventListeners_1.setJourneyEventListeners)(journeyCallback);
35
+ (0, IDWiseEventListeners_1.setStepEventListeners)(stepCallback);
36
+ RNIDWise.resumeDynamicJourney(journeyDefinitionId, journeyId, locale);
37
+ };
38
+ const startStep = (stepId) => RNIDWise.startStep(stepId);
39
+ const skipStep = (stepId) => RNIDWise.skipStep(stepId);
40
+ const getJourneySummary = (callback) => {
41
+ console.log('IDWise - getJourneySummary');
42
+ (0, IDWiseEventListeners_1.setJourneySummaryEventListener)(callback);
43
+ RNIDWise.getJourneySummary();
44
+ };
45
+ const finishJourney = () => {
46
+ console.log('IDWise - finishDynamicJourney');
47
+ RNIDWise.finishDynamicJourney();
48
+ };
49
+ const unloadSDK = () => {
50
+ console.log('IDWise - unloadSDK');
51
+ RNIDWise.unloadSDK();
52
+ };
53
+ exports.IDWiseDynamic = {
54
+ initialize,
55
+ startJourney,
56
+ startStep,
57
+ getJourneySummary,
58
+ finishJourney,
59
+ skipStep,
60
+ resumeJourney,
61
+ isDeviceBlocked,
62
+ unloadSDK,
63
+ };
@@ -0,0 +1,4 @@
1
+ export function setInitializeEventListeners(idwiseInitializeCallback: any): void;
2
+ export function setJourneyEventListeners(idwiseJourneyCallback: any): void;
3
+ export function setJourneySummaryEventListener(idwiseJourneySummaryCallback: any): void;
4
+ export function setStepEventListeners(idwiseStepCallback: any): void;
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setStepEventListeners = exports.setJourneySummaryEventListener = exports.setJourneyEventListeners = exports.setInitializeEventListeners = void 0;
4
+ const react_native_1 = require("react-native");
5
+ const IDWiseConstants_1 = require("./IDWiseConstants");
6
+ const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` +
7
+ react_native_1.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
8
+ '- You rebuilt the app after installing the package\n' +
9
+ '- You are not using Expo Go\n';
10
+ const RNIDWise = react_native_1.NativeModules.IdwiseReactNativeSdk
11
+ ? react_native_1.NativeModules.IdwiseReactNativeSdk
12
+ : new Proxy({}, {
13
+ get() {
14
+ throw new Error(LINKING_ERROR);
15
+ },
16
+ });
17
+ const eventEmitter = new react_native_1.NativeEventEmitter(RNIDWise);
18
+ const setInitializeEventListeners = (idwiseInitializeCallback) => {
19
+ console.log('IDWise - setInitializeEventListeners');
20
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_INITIALIZE_ERRROR);
21
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_INITIALIZE_ERRROR, (event) => {
22
+ idwiseInitializeCallback === null || idwiseInitializeCallback === void 0 ? void 0 : idwiseInitializeCallback.onError(JSON.parse(event.data));
23
+ });
24
+ };
25
+ exports.setInitializeEventListeners = setInitializeEventListeners;
26
+ const setJourneyEventListeners = (idwiseJourneyCallback) => {
27
+ console.log('IDWise - setJourneyEventListeners');
28
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_STARTED);
29
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_RESUMED);
30
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_FINISHED);
31
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_CANCELLED);
32
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_BLOCKED);
33
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_ERROR);
34
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_STARTED, (event) => {
35
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onJourneyStarted(JSON.parse(event.data));
36
+ });
37
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_RESUMED, (event) => {
38
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onJourneyResumed(JSON.parse(event.data));
39
+ });
40
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_FINISHED, (event) => {
41
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onJourneyCompleted(JSON.parse(event.data));
42
+ });
43
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_CANCELLED, (event) => {
44
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onJourneyCancelled(JSON.parse(event.data));
45
+ });
46
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_BLOCKED, (event) => {
47
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onJourneyBlocked(JSON.parse(event.data));
48
+ });
49
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_ERROR, (event) => {
50
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 ? void 0 : idwiseJourneyCallback.onError(JSON.parse(event.data));
51
+ });
52
+ };
53
+ exports.setJourneyEventListeners = setJourneyEventListeners;
54
+ const setStepEventListeners = (idwiseStepCallback) => {
55
+ console.log('IDWise - setStepEventListener');
56
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_CAPTURED);
57
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_RESULT);
58
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_CANCELLED);
59
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_SKIPPED);
60
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_CAPTURED, (event) => {
61
+ idwiseStepCallback === null || idwiseStepCallback === void 0 ? void 0 : idwiseStepCallback.onStepCaptured(JSON.parse(event.data));
62
+ });
63
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_RESULT, (event) => {
64
+ idwiseStepCallback === null || idwiseStepCallback === void 0 ? void 0 : idwiseStepCallback.onStepResult(JSON.parse(event.data));
65
+ });
66
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_CANCELLED, (event) => {
67
+ idwiseStepCallback === null || idwiseStepCallback === void 0 ? void 0 : idwiseStepCallback.onStepCancelled(JSON.parse(event.data));
68
+ });
69
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_STEP_SKIPPED, (event) => {
70
+ idwiseStepCallback === null || idwiseStepCallback === void 0 ? void 0 : idwiseStepCallback.onStepSkipped(JSON.parse(event.data));
71
+ });
72
+ };
73
+ exports.setStepEventListeners = setStepEventListeners;
74
+ const setJourneySummaryEventListener = (idwiseJourneySummaryCallback) => {
75
+ console.log('IDWise - setJourneySummaryEventListener');
76
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_SUMMARY);
77
+ eventEmitter.removeAllListeners(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_SUMMARY_ERROR);
78
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_SUMMARY, (event) => {
79
+ let summary = JSON.parse(event.data);
80
+ if (summary.error == null) {
81
+ idwiseJourneySummaryCallback === null || idwiseJourneySummaryCallback === void 0 ? void 0 : idwiseJourneySummaryCallback.onJourneySummary(summary.summary);
82
+ }
83
+ else {
84
+ idwiseJourneySummaryCallback === null || idwiseJourneySummaryCallback === void 0 ? void 0 : idwiseJourneySummaryCallback.onError(summary.error);
85
+ }
86
+ });
87
+ eventEmitter.addListener(IDWiseConstants_1.IDWiseEvents.EVENT_JOURNEY_SUMMARY_ERROR, (event) => {
88
+ idwiseJourneySummaryCallback === null || idwiseJourneySummaryCallback === void 0 ? void 0 : idwiseJourneySummaryCallback.onError(JSON.parse(event.error));
89
+ });
90
+ };
91
+ exports.setJourneySummaryEventListener = setJourneySummaryEventListener;
@@ -0,0 +1,21 @@
1
+ import type { TurboModule } from 'react-native';
2
+ export interface Spec extends TurboModule {
3
+ multiply(a: number, b: number): number;
4
+ initialize(clientKey: string, theme: string): void;
5
+ isDeviceBlocked(): boolean;
6
+ startJourney(flowId: string, referenceNo: string | undefined, locale: string | undefined, applicantDetails: {
7
+ [key: string]: string;
8
+ } | undefined): void;
9
+ resumeJourney(flowId: string, journeyId: string, locale: string | undefined): void;
10
+ startDynamicJourney(flowId: string, referenceNo: string | undefined, locale: string | undefined, applicantDetails: {
11
+ [key: string]: string;
12
+ } | undefined): void;
13
+ resumeDynamicJourney(flowId: string, journeyId: string, locale: string | undefined): void;
14
+ startStep(stepId: string): void;
15
+ finishDynamicJourney(): void;
16
+ skipStep(stepId: string): void;
17
+ getJourneySummary(): void;
18
+ unloadSDK(): void;
19
+ }
20
+ declare const _default: Spec;
21
+ export default _default;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_native_1 = require("react-native");
4
+ exports.default = react_native_1.TurboModuleRegistry.getEnforcing('IdwiseReactNativeSdk');
@@ -0,0 +1,11 @@
1
+ declare namespace _default {
2
+ export { IDWise };
3
+ export { IDWiseTheme };
4
+ export { IDWiseDynamic };
5
+ }
6
+ export default _default;
7
+ import { IDWise } from './IDWise';
8
+ import { IDWiseTheme } from './IDWiseConstants';
9
+ import { IDWiseDynamic } from './IDWiseDynamic';
10
+ import { ApplicantDetailsKeys } from './IDWiseConstants';
11
+ export { IDWise, IDWiseTheme, IDWiseDynamic, ApplicantDetailsKeys };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.withIDWise = exports.ApplicantDetailsKeys = exports.IDWiseDynamic = exports.IDWiseTheme = exports.IDWise = void 0;
7
+ const IDWise_1 = require("./IDWise");
8
+ Object.defineProperty(exports, "IDWise", { enumerable: true, get: function () { return IDWise_1.IDWise; } });
9
+ const IDWiseConstants_1 = require("./IDWiseConstants");
10
+ Object.defineProperty(exports, "IDWiseTheme", { enumerable: true, get: function () { return IDWiseConstants_1.IDWiseTheme; } });
11
+ Object.defineProperty(exports, "ApplicantDetailsKeys", { enumerable: true, get: function () { return IDWiseConstants_1.ApplicantDetailsKeys; } });
12
+ const IDWiseDynamic_1 = require("./IDWiseDynamic");
13
+ Object.defineProperty(exports, "IDWiseDynamic", { enumerable: true, get: function () { return IDWiseDynamic_1.IDWiseDynamic; } });
14
+ exports.default = { IDWise: IDWise_1.IDWise, IDWiseTheme: IDWiseConstants_1.IDWiseTheme, IDWiseDynamic: IDWiseDynamic_1.IDWiseDynamic };
15
+ var withIdwise_js_1 = require("./plugin/withIdwise.js");
16
+ Object.defineProperty(exports, "withIDWise", { enumerable: true, get: function () { return __importDefault(withIdwise_js_1).default; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idwise-nfc-react-native-sdk",
3
- "version": "5.8.3",
3
+ "version": "5.9.0",
4
4
  "description": "React-Native Wrapper for IDWise SDK",
5
5
  "main": "./lib/index.js",
6
6
  "react-native": "./src/index.js",