@koraidv/core 1.7.8 → 1.7.9
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -460,7 +460,7 @@ declare class KoraIDV {
|
|
|
460
460
|
/**
|
|
461
461
|
* Upload document image
|
|
462
462
|
*/
|
|
463
|
-
uploadDocument(imageData: Blob, side: 'front' | 'back', documentType: DocumentType): Promise<{
|
|
463
|
+
uploadDocument(imageData: Blob, side: 'front' | 'back', documentType: DocumentType, country?: string): Promise<{
|
|
464
464
|
success: boolean;
|
|
465
465
|
qualityIssues?: string[];
|
|
466
466
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -460,7 +460,7 @@ declare class KoraIDV {
|
|
|
460
460
|
/**
|
|
461
461
|
* Upload document image
|
|
462
462
|
*/
|
|
463
|
-
uploadDocument(imageData: Blob, side: 'front' | 'back', documentType: DocumentType): Promise<{
|
|
463
|
+
uploadDocument(imageData: Blob, side: 'front' | 'back', documentType: DocumentType, country?: string): Promise<{
|
|
464
464
|
success: boolean;
|
|
465
465
|
qualityIssues?: string[];
|
|
466
466
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -947,7 +947,7 @@ var KoraIDV = class {
|
|
|
947
947
|
/**
|
|
948
948
|
* Upload document image
|
|
949
949
|
*/
|
|
950
|
-
async uploadDocument(imageData, side, documentType) {
|
|
950
|
+
async uploadDocument(imageData, side, documentType, country) {
|
|
951
951
|
if (!this.currentVerification) {
|
|
952
952
|
throw new KoraError("INVALID_VERIFICATION_STATE" /* INVALID_VERIFICATION_STATE */, "No active verification");
|
|
953
953
|
}
|
|
@@ -955,7 +955,10 @@ var KoraIDV = class {
|
|
|
955
955
|
this.currentVerification.id,
|
|
956
956
|
imageData,
|
|
957
957
|
side,
|
|
958
|
-
documentType
|
|
958
|
+
documentType,
|
|
959
|
+
void 0,
|
|
960
|
+
// decodedBarcodePayload — wired separately for back-side fast path
|
|
961
|
+
country
|
|
959
962
|
);
|
|
960
963
|
return {
|
|
961
964
|
success: response.success ?? true,
|
package/dist/index.mjs
CHANGED
|
@@ -903,7 +903,7 @@ var KoraIDV = class {
|
|
|
903
903
|
/**
|
|
904
904
|
* Upload document image
|
|
905
905
|
*/
|
|
906
|
-
async uploadDocument(imageData, side, documentType) {
|
|
906
|
+
async uploadDocument(imageData, side, documentType, country) {
|
|
907
907
|
if (!this.currentVerification) {
|
|
908
908
|
throw new KoraError("INVALID_VERIFICATION_STATE" /* INVALID_VERIFICATION_STATE */, "No active verification");
|
|
909
909
|
}
|
|
@@ -911,7 +911,10 @@ var KoraIDV = class {
|
|
|
911
911
|
this.currentVerification.id,
|
|
912
912
|
imageData,
|
|
913
913
|
side,
|
|
914
|
-
documentType
|
|
914
|
+
documentType,
|
|
915
|
+
void 0,
|
|
916
|
+
// decodedBarcodePayload — wired separately for back-side fast path
|
|
917
|
+
country
|
|
915
918
|
);
|
|
916
919
|
return {
|
|
917
920
|
success: response.success ?? true,
|