@transfergratis/react-native-sdk 0.1.9 โ 0.1.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.
- package/build/components/EnhancedCameraView.d.ts.map +1 -1
- package/build/components/EnhancedCameraView.js +8 -1
- package/build/components/EnhancedCameraView.js.map +1 -1
- package/build/components/KYCElements/IDCardCapture.d.ts.map +1 -1
- package/build/components/KYCElements/IDCardCapture.js +63 -21
- package/build/components/KYCElements/IDCardCapture.js.map +1 -1
- package/build/components/KYCElements/ReviewSubmitTemplate.js +1 -1
- package/build/components/KYCElements/ReviewSubmitTemplate.js.map +1 -1
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -1
- package/build/components/KYCElements/SelfieCaptureTemplate.js +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js.map +1 -1
- package/build/components/KYCElements/VerificationProgressTemplate.d.ts.map +1 -1
- package/build/components/KYCElements/VerificationProgressTemplate.js +10 -9
- package/build/components/KYCElements/VerificationProgressTemplate.js.map +1 -1
- package/build/components/OverLay/IdCard.js +3 -3
- package/build/components/OverLay/IdCard.js.map +1 -1
- package/build/components/OverLay/StepOverlay.d.ts.map +1 -1
- package/build/components/OverLay/StepOverlay.js +3 -1
- package/build/components/OverLay/StepOverlay.js.map +1 -1
- package/build/components/OverLay/type.d.ts +5 -0
- package/build/components/OverLay/type.d.ts.map +1 -1
- package/build/components/OverLay/type.js.map +1 -1
- package/build/components/TemplateKYCExample.js +2 -2
- package/build/components/TemplateKYCExample.js.map +1 -1
- package/build/config/countriesData.d.ts.map +1 -1
- package/build/config/countriesData.js +1 -0
- package/build/config/countriesData.js.map +1 -1
- package/build/config/region_mapping.d.ts.map +1 -1
- package/build/config/region_mapping.js +98 -49
- package/build/config/region_mapping.js.map +1 -1
- package/build/hooks/useTemplateKYCFlow.d.ts.map +1 -1
- package/build/hooks/useTemplateKYCFlow.js +7 -6
- package/build/hooks/useTemplateKYCFlow.js.map +1 -1
- package/build/i18n/en/index.d.ts +6 -0
- package/build/i18n/en/index.d.ts.map +1 -1
- package/build/i18n/en/index.js +7 -1
- package/build/i18n/en/index.js.map +1 -1
- package/build/i18n/fr/index.d.ts +6 -0
- package/build/i18n/fr/index.d.ts.map +1 -1
- package/build/i18n/fr/index.js +7 -1
- package/build/i18n/fr/index.js.map +1 -1
- package/build/modules/api/CardAuthentification.d.ts +23 -2
- package/build/modules/api/CardAuthentification.d.ts.map +1 -1
- package/build/modules/api/CardAuthentification.js +45 -16
- package/build/modules/api/CardAuthentification.js.map +1 -1
- package/build/modules/api/KYCService.d.ts +9 -0
- package/build/modules/api/KYCService.d.ts.map +1 -1
- package/build/modules/api/KYCService.js +52 -29
- package/build/modules/api/KYCService.js.map +1 -1
- package/build/types/KYC.types.d.ts +3 -0
- package/build/types/KYC.types.d.ts.map +1 -1
- package/build/types/KYC.types.js.map +1 -1
- package/build/utils/logger.d.ts +12 -0
- package/build/utils/logger.d.ts.map +1 -0
- package/build/utils/logger.js +45 -0
- package/build/utils/logger.js.map +1 -0
- package/package.json +1 -1
- package/src/components/EnhancedCameraView.tsx +8 -2
- package/src/components/KYCElements/IDCardCapture.tsx +75 -25
- package/src/components/KYCElements/ReviewSubmitTemplate.tsx +1 -1
- package/src/components/KYCElements/SelfieCaptureTemplate.tsx +1 -0
- package/src/components/KYCElements/VerificationProgressTemplate.tsx +10 -9
- package/src/components/OverLay/IdCard.tsx +3 -3
- package/src/components/OverLay/StepOverlay.tsx +3 -1
- package/src/components/OverLay/type.ts +15 -9
- package/src/components/TemplateKYCExample.tsx +2 -2
- package/src/config/countriesData.ts +1 -0
- package/src/config/region_mapping.json +735 -0
- package/src/config/region_mapping.ts +98 -49
- package/src/hooks/useTemplateKYCFlow.tsx +7 -6
- package/src/i18n/en/index.ts +7 -1
- package/src/i18n/fr/index.ts +9 -2
- package/src/modules/api/CardAuthentification.ts +64 -30
- package/src/modules/api/KYCService.ts +57 -32
- package/src/types/KYC.types.ts +3 -0
- package/src/utils/logger.ts +48 -0
|
@@ -15,7 +15,7 @@ export interface IdCardOverlayProps {
|
|
|
15
15
|
orientation?: 'center' | 'left' | 'right';
|
|
16
16
|
isAnalyzing?: boolean;
|
|
17
17
|
isSuccess?: boolean;
|
|
18
|
-
language:string
|
|
18
|
+
language: string
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
|
|
@@ -24,6 +24,7 @@ interface StepperProps {
|
|
|
24
24
|
selectedDocumentType: string;
|
|
25
25
|
step: number;
|
|
26
26
|
totalSteps: number;
|
|
27
|
+
side: string;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export interface ExtractMrzTextResponse {
|
|
@@ -65,13 +66,13 @@ export interface EnhancedCameraViewProps {
|
|
|
65
66
|
showSwitchCamera?: boolean;
|
|
66
67
|
overlayComponent?: React.ReactNode;
|
|
67
68
|
bbox?: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
xMin: number;
|
|
70
|
+
yMin: number;
|
|
71
|
+
xMax: number;
|
|
72
|
+
yMax: number;
|
|
73
|
+
borderColor?: string;
|
|
74
|
+
borderWidth?: number;
|
|
75
|
+
cornerRadius?: number;
|
|
75
76
|
};
|
|
76
77
|
canFlip?: boolean;
|
|
77
78
|
// Video recording props
|
|
@@ -80,4 +81,9 @@ export interface EnhancedCameraViewProps {
|
|
|
80
81
|
onVideoRecordingStart?: () => void;
|
|
81
82
|
onVideoRecordingStop?: (result: { success: boolean; path?: string; error?: string }) => void;
|
|
82
83
|
videoDuration?: number;
|
|
83
|
-
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface CheckTemplateTypeResponse {
|
|
87
|
+
template_path: string;
|
|
88
|
+
lpips_score: number;
|
|
89
|
+
}
|
|
@@ -56,8 +56,8 @@ const advancedVerificationTemplate: KYCTemplate = {
|
|
|
56
56
|
buttonText: { en: "Confirm", fr: "Confirmer" }
|
|
57
57
|
},
|
|
58
58
|
config: {
|
|
59
|
-
allowed_countries: ["
|
|
60
|
-
default_country: "
|
|
59
|
+
allowed_countries: ["CM", "NG", "CI", "KE","GH"],
|
|
60
|
+
default_country: "CM",
|
|
61
61
|
required: true
|
|
62
62
|
} as const
|
|
63
63
|
},
|
|
@@ -81,4 +81,5 @@ export const countryData: Record<string, Country> = {
|
|
|
81
81
|
IS: { name: 'Islande', name_en: "Iceland", flag: '๐ฎ๐ธ' },
|
|
82
82
|
IE: { name: 'Irlande', name_en: "Ireland", flag: '๐ฎ๐ช' },
|
|
83
83
|
NZ: { name: 'Nouvelle-Zรฉlande', name_en: "New Zealand", flag: '๐ณ๐ฟ' },
|
|
84
|
+
GH: { name: 'Ghana', name_en: "Ghana", flag: '๐ฌ๐ญ' },
|
|
84
85
|
};
|