idwise-react-native-sdk 5.4.5-alpha.5 → 5.4.5-alpha.7

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.
@@ -86,8 +86,8 @@ android {
86
86
  }
87
87
 
88
88
  compileOptions {
89
- sourceCompatibility JavaVersion.VERSION_1_8
90
- targetCompatibility JavaVersion.VERSION_1_8
89
+ sourceCompatibility JavaVersion.VERSION_17
90
+ targetCompatibility JavaVersion.VERSION_17
91
91
  }
92
92
  }
93
93
 
package/index.d.ts CHANGED
@@ -48,7 +48,7 @@ export namespace IDWise {
48
48
  journeyDefinitionId: string,
49
49
  referenceNo: string,
50
50
  locale: string,
51
- applicantDetails: Map<string,string>,
51
+ applicantDetails: { [key: string]: string }|undefined,
52
52
  journeyCallback: IDWiseJourneyCallbacks
53
53
  ): void;
54
54
 
@@ -64,7 +64,7 @@ export namespace IDWise {
64
64
  export namespace IDWiseDynamic {
65
65
  function initialize(
66
66
  clientKey: string,
67
- theme: Record<string, any>,
67
+ theme: string,
68
68
  callback: InitializeCallback
69
69
  ): void;
70
70
 
@@ -74,7 +74,7 @@ export namespace IDWiseDynamic {
74
74
  journeyDefinitionId: string,
75
75
  referenceNo: string,
76
76
  locale: string,
77
- applicantDetails: typeof ApplicantDetails,
77
+ applicantDetails: { [key: string]: string }|undefined,
78
78
  journeyCallback: IDWiseJourneyCallbacks,
79
79
  stepCallback: IDWiseStepCallbacks
80
80
  ): void;
@@ -105,18 +105,20 @@ declare const IDWiseTheme: {
105
105
  SYSTEM_DEFAULT: 'SYSTEM_DEFAULT';
106
106
  };
107
107
 
108
- declare const ApplicantDetails: {
109
- FIRST_NAME: 'first_name';
110
- LAST_NAME: 'last_name';
111
- ADDRESS: 'address';
112
- SEX:'sex'
108
+ declare const ApplicantDetailsKeys: {
109
+ FULL_NAME: 'full_name',
110
+ BIRTH_DATE: 'birth_date',
111
+ SEX: 'sex',
112
+ ADDRESS: 'address'
113
113
  };
114
114
 
115
115
  export {IDWiseTheme}
116
+ export {ApplicantDetailsKeys}
116
117
  // ===== Default Export =====
117
118
  declare const IDWiseSDK: {
118
119
  IDWise: typeof IDWise;
119
120
  IDWiseTheme: typeof IDWiseTheme;
121
+ ApplicantDetailsKeys: typeof ApplicantDetailsKeys;
120
122
  IDWiseDynamic: typeof IDWiseDynamic;
121
123
  };
122
124
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idwise-react-native-sdk",
3
- "version": "5.4.5-alpha.5",
3
+ "version": "5.4.5-alpha.7",
4
4
  "description": "IDWise React Native Bridge",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -22,3 +22,10 @@ export const IDWiseTheme = {
22
22
  DARK: 'DARK',
23
23
  SYSTEM_DEFAULT: 'SYSTEM_DEFAULT',
24
24
  };
25
+
26
+ export const ApplicantDetailsKeys = {
27
+ FULL_NAME: 'full_name',
28
+ BIRTH_DATE: 'birth_date',
29
+ SEX: 'sex',
30
+ ADDRESS: 'address',
31
+ };
package/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { IDWise } from './IDWise';
2
- import { IDWiseTheme } from './IDWiseConstants';
2
+ import { IDWiseTheme, ApplicantDetailsKeys } from './IDWiseConstants';
3
3
  import { IDWiseDynamic } from './IDWiseDynamic';
4
4
 
5
- export { IDWise, IDWiseTheme, IDWiseDynamic };
5
+ export { IDWise, IDWiseTheme, IDWiseDynamic, ApplicantDetailsKeys };
6
6
 
7
7
  export default { IDWise, IDWiseTheme, IDWiseDynamic };