assentify-sdk-react-native 1.0.0-Beta → 1.0.0-Beta.10

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 (52) hide show
  1. package/README.md +36 -2
  2. package/android/build.gradle +4 -2
  3. package/android/src/main/java/com/assentifysdk/AssentifySdkModule.kt +19 -14
  4. package/android/src/main/java/com/assentifysdk/FlowActivity.kt +28 -4
  5. package/assentify-sdk.podspec +1 -1
  6. package/ios/NativeAssentifySdk.mm +6 -3
  7. package/ios/NativeAssentifySdk.swift +78 -38
  8. package/lib/commonjs/AssentifyProvider.js +9 -0
  9. package/lib/commonjs/AssentifyProvider.js.map +1 -1
  10. package/lib/commonjs/AssentifyWrapper.js +4 -4
  11. package/lib/commonjs/AssentifyWrapper.js.map +1 -1
  12. package/lib/commonjs/FlowStepperType.js +11 -0
  13. package/lib/commonjs/FlowStepperType.js.map +1 -0
  14. package/lib/commonjs/index.js +12 -0
  15. package/lib/commonjs/index.js.map +1 -1
  16. package/lib/commonjs/types.js.map +1 -1
  17. package/lib/module/AssentifyProvider.js +9 -0
  18. package/lib/module/AssentifyProvider.js.map +1 -1
  19. package/lib/module/AssentifyWrapper.js +4 -4
  20. package/lib/module/AssentifyWrapper.js.map +1 -1
  21. package/lib/module/FlowStepperType.js +5 -0
  22. package/lib/module/FlowStepperType.js.map +1 -0
  23. package/lib/module/index.js +1 -0
  24. package/lib/module/index.js.map +1 -1
  25. package/lib/module/types.js.map +1 -1
  26. package/lib/typescript/example/src/Home.d.ts.map +1 -1
  27. package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts.map +1 -1
  28. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +2 -2
  29. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -1
  30. package/lib/typescript/lib/commonjs/FlowStepperType.d.ts +6 -0
  31. package/lib/typescript/lib/commonjs/FlowStepperType.d.ts.map +1 -0
  32. package/lib/typescript/lib/module/AssentifyProvider.d.ts.map +1 -1
  33. package/lib/typescript/lib/module/AssentifyWrapper.d.ts +2 -2
  34. package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -1
  35. package/lib/typescript/lib/module/FlowStepperType.d.ts +5 -0
  36. package/lib/typescript/lib/module/FlowStepperType.d.ts.map +1 -0
  37. package/lib/typescript/lib/module/index.d.ts +3 -2
  38. package/lib/typescript/lib/module/index.d.ts.map +1 -1
  39. package/lib/typescript/src/AssentifyProvider.d.ts.map +1 -1
  40. package/lib/typescript/src/AssentifyWrapper.d.ts +3 -2
  41. package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -1
  42. package/lib/typescript/src/FlowStepperType.d.ts +6 -0
  43. package/lib/typescript/src/FlowStepperType.d.ts.map +1 -0
  44. package/lib/typescript/src/index.d.ts +3 -2
  45. package/lib/typescript/src/index.d.ts.map +1 -1
  46. package/lib/typescript/src/types.d.ts.map +1 -1
  47. package/package.json +1 -1
  48. package/src/AssentifyProvider.tsx +11 -0
  49. package/src/AssentifyWrapper.ts +13 -6
  50. package/src/FlowStepperType.ts +7 -0
  51. package/src/index.ts +1 -0
  52. package/src/types.ts +1 -0
@@ -2,6 +2,7 @@ import { NativeModules, Platform, Alert, Linking } from 'react-native';
2
2
  import { type LanguageCode } from './Language';
3
3
  import { type TemplatesByCountry } from './types';
4
4
  import { type BackgroundTypeCode } from './BackgroundType';
5
+ import { type FlowStepperTypeCode } from './FlowStepperType';
5
6
 
6
7
  const LINKING_ERROR =
7
8
  `The package 'assentify-sdk-react-native-react-native' doesn't seem to be linked. Make sure: \n\n` +
@@ -26,8 +27,7 @@ const AssentifyWrapper = {
26
27
  /// Initialize
27
28
  initialize: function (
28
29
  apiKey: string,
29
- tenantIdentifier: string,
30
- instanceHash: string,
30
+ configFileName: string,
31
31
  performLivenessFace?: boolean,
32
32
  ENV_CustomColor?: string,
33
33
  enableDetect?: boolean,
@@ -50,8 +50,7 @@ const AssentifyWrapper = {
50
50
  ) {
51
51
  AssentifySdk.initialize(
52
52
  apiKey,
53
- tenantIdentifier,
54
- instanceHash,
53
+ configFileName,
55
54
  performLivenessFace ?? false,
56
55
  ENV_CustomColor ?? '#f5a103',
57
56
  enableDetect ?? true,
@@ -128,7 +127,11 @@ const AssentifyWrapper = {
128
127
  language?: LanguageCode,
129
128
  enableNfc?: boolean,
130
129
  enableQr?: boolean,
131
- blockLoaderCustomProperties?:Record<string, string>
130
+ blockLoaderCustomProperties?:Record<string, string>,
131
+ flowStepperType?:FlowStepperTypeCode,
132
+ rangeStart?: number,
133
+ rangeEnd?: number,
134
+ stepperTitle?: string,
132
135
  ) {
133
136
  AssentifySdk.startFlow(
134
137
  logoUrl ?? "",
@@ -148,7 +151,11 @@ const AssentifyWrapper = {
148
151
  language ?? "NON",
149
152
  enableNfc ?? false,
150
153
  enableQr ?? false,
151
- JSON.stringify(blockLoaderCustomProperties ?? {})
154
+ JSON.stringify(blockLoaderCustomProperties ?? {}),
155
+ flowStepperType ?? "Normal",
156
+ rangeStart ?? 25,
157
+ rangeEnd ?? 50,
158
+ stepperTitle ?? "Identification",
152
159
  );
153
160
  },
154
161
 
@@ -0,0 +1,7 @@
1
+ export const FlowStepperType = {
2
+ Normal: "Normal",
3
+ PercentageBased: "PercentageBased",
4
+
5
+ };
6
+
7
+ export type FlowStepperTypeCode = typeof FlowStepperType[keyof typeof FlowStepperType];
package/src/index.ts CHANGED
@@ -4,5 +4,6 @@ export * from './types';
4
4
  export * from './Language';
5
5
  export * from './ActiveLiveType';
6
6
  export * from './BackgroundType';
7
+ export * from './FlowStepperType';
7
8
  export const Assentify = AssentifyWrapper;
8
9
  export * from './AssentifyProvider';
package/src/types.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { type LanguageCode } from './Language';
2
2
  import { type BackgroundTypeCode } from './BackgroundType';
3
+ import { type FlowStepperTypeCode } from './FlowStepperType';
3
4
 
4
5
 
5
6
  export interface AssentifySdkCallback {