@regulaforensics/document-reader-webclient 7.4.82-rc → 7.4.97
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/main/index.cjs +1 -1
- package/dist/module/index.js +1 -1
- package/lib/index.d.ts +205 -34
- package/package.json +13 -13
package/lib/index.d.ts
CHANGED
|
@@ -469,7 +469,11 @@ export enum AuthenticityResultType {
|
|
|
469
469
|
/**
|
|
470
470
|
* Extended MRZ check
|
|
471
471
|
*/
|
|
472
|
-
EXTENDED_MRZ_CHECK = 8388608
|
|
472
|
+
EXTENDED_MRZ_CHECK = 8388608,
|
|
473
|
+
/**
|
|
474
|
+
* Encrypted IPI
|
|
475
|
+
*/
|
|
476
|
+
ENCRYPTED_IPI = 16777216
|
|
473
477
|
}
|
|
474
478
|
/**
|
|
475
479
|
* Regula Document Reader Web API
|
|
@@ -558,7 +562,9 @@ export enum CheckDiagnose {
|
|
|
558
562
|
UV_DULL_PAPER_ERROR = 54,
|
|
559
563
|
FALSE_LUMINESCENCE_IN_BLANK = 55,
|
|
560
564
|
BAD_AREA_IN_AXIAL = 60,
|
|
561
|
-
|
|
565
|
+
FALSE_IPI_PARAMETERS = 65,
|
|
566
|
+
ENCRYPTED_IPI_NOT_FOUND = 66,
|
|
567
|
+
ENCRYPTED_IPI_DATA_DONT_MATCH = 67,
|
|
562
568
|
FIELD_POS_CORRECTOR_HIGHLIGHT_IR = 80,
|
|
563
569
|
FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA = 81,
|
|
564
570
|
FIELD_POS_CORRECTOR_PHOTO_REPLACED = 82,
|
|
@@ -636,7 +642,7 @@ export enum CheckDiagnose {
|
|
|
636
642
|
CHD_ICAO_IDB_SIGNATURE_MUST_BE_PRESENT = 246,
|
|
637
643
|
CHD_ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT = 247,
|
|
638
644
|
CHD_ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT = 248,
|
|
639
|
-
|
|
645
|
+
CHD_INCORRECT_OBJECT_COLOR = 250
|
|
640
646
|
}
|
|
641
647
|
/**
|
|
642
648
|
* Regula Document Reader Web API
|
|
@@ -1265,6 +1271,12 @@ export interface AuthenticityCheckResultItem {
|
|
|
1265
1271
|
* @memberof AuthenticityCheckResultItem
|
|
1266
1272
|
*/
|
|
1267
1273
|
ElementDiagnose?: CheckDiagnose;
|
|
1274
|
+
/**
|
|
1275
|
+
*
|
|
1276
|
+
* @type {number}
|
|
1277
|
+
* @memberof AuthenticityCheckResultItem
|
|
1278
|
+
*/
|
|
1279
|
+
PercentValue?: number;
|
|
1268
1280
|
}
|
|
1269
1281
|
/**
|
|
1270
1282
|
*
|
|
@@ -3241,10 +3253,6 @@ export enum ImageQualityCheckType {
|
|
|
3241
3253
|
*/
|
|
3242
3254
|
Bounds = 5,
|
|
3243
3255
|
/**
|
|
3244
|
-
* Signals if an image is captured from screen
|
|
3245
|
-
*/
|
|
3246
|
-
ScreenCapture = 6,
|
|
3247
|
-
/**
|
|
3248
3256
|
* Signals if the portrait is present
|
|
3249
3257
|
*/
|
|
3250
3258
|
Portrait = 7,
|
|
@@ -6745,7 +6753,39 @@ export enum TextFieldType {
|
|
|
6745
6753
|
/**
|
|
6746
6754
|
* Signature
|
|
6747
6755
|
*/
|
|
6748
|
-
SIGNATURE = 683
|
|
6756
|
+
SIGNATURE = 683,
|
|
6757
|
+
/**
|
|
6758
|
+
* Unique Certificate Identifier
|
|
6759
|
+
*/
|
|
6760
|
+
FT_UNIQUE_CERTIFICATE_IDENTIFIER = 684,
|
|
6761
|
+
/**
|
|
6762
|
+
* Email
|
|
6763
|
+
*/
|
|
6764
|
+
FT_EMAIL = 685,
|
|
6765
|
+
/**
|
|
6766
|
+
* Date of Specimen Collection
|
|
6767
|
+
*/
|
|
6768
|
+
FT_DATE_OF_SPECIMEN_COLLECTION = 686,
|
|
6769
|
+
/**
|
|
6770
|
+
* Type Of Testing
|
|
6771
|
+
*/
|
|
6772
|
+
FT_TYPE_OF_TESTING = 687,
|
|
6773
|
+
/**
|
|
6774
|
+
* Result Of Testing
|
|
6775
|
+
*/
|
|
6776
|
+
FT_RESULT_OF_TESTING = 688,
|
|
6777
|
+
/**
|
|
6778
|
+
* Method Of Testing
|
|
6779
|
+
*/
|
|
6780
|
+
FT_METHOD_OF_TESTING = 689,
|
|
6781
|
+
/**
|
|
6782
|
+
* Digital Travel Authorization Number
|
|
6783
|
+
*/
|
|
6784
|
+
FT_DIGITAL_TRAVEL_AUTHORIZATION_NUMBER = 690,
|
|
6785
|
+
/**
|
|
6786
|
+
* Date of First Positive Test Result
|
|
6787
|
+
*/
|
|
6788
|
+
FT_DATE_OF_FIRST_POSITIVE_TEST_RESULT = 691
|
|
6749
6789
|
}
|
|
6750
6790
|
/**
|
|
6751
6791
|
* Regula Document Reader Web API
|
|
@@ -7845,6 +7885,42 @@ export interface FaceApi {
|
|
|
7845
7885
|
*/
|
|
7846
7886
|
proxy_type?: number;
|
|
7847
7887
|
}
|
|
7888
|
+
/**
|
|
7889
|
+
* Regula Document Reader Web API
|
|
7890
|
+
* Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
|
|
7891
|
+
*
|
|
7892
|
+
* The version of the OpenAPI document: 7.2.0
|
|
7893
|
+
*
|
|
7894
|
+
*
|
|
7895
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7896
|
+
* https://openapi-generator.tech
|
|
7897
|
+
* Do not edit the class manually.
|
|
7898
|
+
*/
|
|
7899
|
+
/**
|
|
7900
|
+
*
|
|
7901
|
+
* @export
|
|
7902
|
+
* @interface GetTransactionsByTagResponse
|
|
7903
|
+
*/
|
|
7904
|
+
export interface GetTransactionsByTagResponse {
|
|
7905
|
+
/**
|
|
7906
|
+
* Transaction id
|
|
7907
|
+
* @type {number}
|
|
7908
|
+
* @memberof GetTransactionsByTagResponse
|
|
7909
|
+
*/
|
|
7910
|
+
id?: number;
|
|
7911
|
+
/**
|
|
7912
|
+
* Transaction status
|
|
7913
|
+
* @type {number}
|
|
7914
|
+
* @memberof GetTransactionsByTagResponse
|
|
7915
|
+
*/
|
|
7916
|
+
state?: number;
|
|
7917
|
+
/**
|
|
7918
|
+
* Last time updated
|
|
7919
|
+
* @type {string}
|
|
7920
|
+
* @memberof GetTransactionsByTagResponse
|
|
7921
|
+
*/
|
|
7922
|
+
updatedAt?: string;
|
|
7923
|
+
}
|
|
7848
7924
|
/**
|
|
7849
7925
|
* Regula Document Reader Web API
|
|
7850
7926
|
* Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
|
|
@@ -7898,12 +7974,6 @@ export interface ImageQA {
|
|
|
7898
7974
|
* @memberof ImageQA
|
|
7899
7975
|
*/
|
|
7900
7976
|
colornessCheck?: boolean;
|
|
7901
|
-
/**
|
|
7902
|
-
* This option enables screen capture (moire patterns) check while performing image quality validation.
|
|
7903
|
-
* @type {boolean}
|
|
7904
|
-
* @memberof ImageQA
|
|
7905
|
-
*/
|
|
7906
|
-
moireCheck?: boolean;
|
|
7907
7977
|
/**
|
|
7908
7978
|
* This parameter specifies the necessary margin. Default 0.
|
|
7909
7979
|
* @type {number}
|
|
@@ -8228,6 +8298,27 @@ export interface InlineResponse2001 {
|
|
|
8228
8298
|
*/
|
|
8229
8299
|
CoreLibResultCode?: number;
|
|
8230
8300
|
}
|
|
8301
|
+
/**
|
|
8302
|
+
*
|
|
8303
|
+
* @export
|
|
8304
|
+
* @interface ListTransactionsByTagResponse
|
|
8305
|
+
*/
|
|
8306
|
+
export interface ListTransactionsByTagResponse {
|
|
8307
|
+
/**
|
|
8308
|
+
*
|
|
8309
|
+
* @type {Array<GetTransactionsByTagResponse>}
|
|
8310
|
+
* @memberof ListTransactionsByTagResponse
|
|
8311
|
+
*/
|
|
8312
|
+
items?: Array<GetTransactionsByTagResponse>;
|
|
8313
|
+
/**
|
|
8314
|
+
*
|
|
8315
|
+
* @type {{ [key: string]: object; }}
|
|
8316
|
+
* @memberof ListTransactionsByTagResponse
|
|
8317
|
+
*/
|
|
8318
|
+
metadata?: {
|
|
8319
|
+
[key: string]: object;
|
|
8320
|
+
};
|
|
8321
|
+
}
|
|
8231
8322
|
/**
|
|
8232
8323
|
* Regula Document Reader Web API
|
|
8233
8324
|
* Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
|
|
@@ -9350,6 +9441,10 @@ export enum Result {
|
|
|
9350
9441
|
*/
|
|
9351
9442
|
LEXICAL_ANALYSIS = 15,
|
|
9352
9443
|
/**
|
|
9444
|
+
* Contains raw uncropped images
|
|
9445
|
+
*/
|
|
9446
|
+
RAW_UNCROPPED_IMAGE = 16,
|
|
9447
|
+
/**
|
|
9353
9448
|
* Contains Visual zone OCR results
|
|
9354
9449
|
*/
|
|
9355
9450
|
VISUAL_TEXT = 17,
|
|
@@ -9874,6 +9969,12 @@ export interface ProcessParams {
|
|
|
9874
9969
|
* @memberof ProcessParams
|
|
9875
9970
|
*/
|
|
9876
9971
|
mrzDetectMode?: MrzDetectModeEnum;
|
|
9972
|
+
/**
|
|
9973
|
+
* This parameter is used to generate numeric representation for issuing state and nationality codes
|
|
9974
|
+
* @type {boolean}
|
|
9975
|
+
* @memberof ProcessParams
|
|
9976
|
+
*/
|
|
9977
|
+
generateNumericCodes?: boolean;
|
|
9877
9978
|
}
|
|
9878
9979
|
/**
|
|
9879
9980
|
*
|
|
@@ -9936,12 +10037,6 @@ export interface ProcessSystemInfo {
|
|
|
9936
10037
|
* @interface ProcessRequest
|
|
9937
10038
|
*/
|
|
9938
10039
|
export interface ProcessRequest {
|
|
9939
|
-
/**
|
|
9940
|
-
* session id
|
|
9941
|
-
* @type {string}
|
|
9942
|
-
* @memberof ProcessRequest
|
|
9943
|
-
*/
|
|
9944
|
-
tag?: string;
|
|
9945
10040
|
/**
|
|
9946
10041
|
*
|
|
9947
10042
|
* @type {ProcessParams}
|
|
@@ -9954,6 +10049,24 @@ export interface ProcessRequest {
|
|
|
9954
10049
|
* @memberof ProcessRequest
|
|
9955
10050
|
*/
|
|
9956
10051
|
List?: Array<ProcessRequestImage>;
|
|
10052
|
+
/**
|
|
10053
|
+
* Session ID
|
|
10054
|
+
* @type {string}
|
|
10055
|
+
* @memberof ProcessRequest
|
|
10056
|
+
*/
|
|
10057
|
+
tag?: string;
|
|
10058
|
+
/**
|
|
10059
|
+
* Customer name
|
|
10060
|
+
* @type {string}
|
|
10061
|
+
* @memberof ProcessRequest
|
|
10062
|
+
*/
|
|
10063
|
+
tenant?: string;
|
|
10064
|
+
/**
|
|
10065
|
+
* Environment type
|
|
10066
|
+
* @type {string}
|
|
10067
|
+
* @memberof ProcessRequest
|
|
10068
|
+
*/
|
|
10069
|
+
env?: string;
|
|
9957
10070
|
/**
|
|
9958
10071
|
* Live portrait photo
|
|
9959
10072
|
* @type {string}
|
|
@@ -10091,28 +10204,53 @@ export interface TransactionProcessGetResponse {
|
|
|
10091
10204
|
/**
|
|
10092
10205
|
*
|
|
10093
10206
|
* @export
|
|
10094
|
-
* @interface
|
|
10207
|
+
* @interface TransactionProcessRequest
|
|
10095
10208
|
*/
|
|
10096
|
-
export interface
|
|
10209
|
+
export interface TransactionProcessRequest {
|
|
10097
10210
|
/**
|
|
10098
10211
|
*
|
|
10099
|
-
* @type {
|
|
10100
|
-
* @memberof
|
|
10212
|
+
* @type {ProcessParams}
|
|
10213
|
+
* @memberof TransactionProcessRequest
|
|
10101
10214
|
*/
|
|
10102
|
-
|
|
10103
|
-
}
|
|
10104
|
-
/**
|
|
10105
|
-
*
|
|
10106
|
-
* @export
|
|
10107
|
-
* @interface TransactionProcessRequest
|
|
10108
|
-
*/
|
|
10109
|
-
export interface TransactionProcessRequest {
|
|
10215
|
+
processParam: ProcessParams;
|
|
10110
10216
|
/**
|
|
10111
10217
|
*
|
|
10112
|
-
* @type {
|
|
10218
|
+
* @type {Array<ProcessRequestImage>}
|
|
10219
|
+
* @memberof TransactionProcessRequest
|
|
10220
|
+
*/
|
|
10221
|
+
List?: Array<ProcessRequestImage>;
|
|
10222
|
+
/**
|
|
10223
|
+
* Live portrait photo
|
|
10224
|
+
* @type {string}
|
|
10225
|
+
* @memberof TransactionProcessRequest
|
|
10226
|
+
*/
|
|
10227
|
+
livePortrait?: string;
|
|
10228
|
+
/**
|
|
10229
|
+
* Portrait photo from an external source
|
|
10230
|
+
* @type {string}
|
|
10113
10231
|
* @memberof TransactionProcessRequest
|
|
10114
10232
|
*/
|
|
10115
|
-
|
|
10233
|
+
extPortrait?: string;
|
|
10234
|
+
/**
|
|
10235
|
+
*
|
|
10236
|
+
* @type {ContainerList}
|
|
10237
|
+
* @memberof TransactionProcessRequest
|
|
10238
|
+
*/
|
|
10239
|
+
ContainerList?: ContainerList;
|
|
10240
|
+
/**
|
|
10241
|
+
*
|
|
10242
|
+
* @type {ProcessSystemInfo}
|
|
10243
|
+
* @memberof TransactionProcessRequest
|
|
10244
|
+
*/
|
|
10245
|
+
systemInfo?: ProcessSystemInfo;
|
|
10246
|
+
/**
|
|
10247
|
+
* Free-form object to be included in response. Must be object, not list or simple value. Do not affect document processing. Use it freely to pass your app params. Stored in process logs.
|
|
10248
|
+
* @type {{ [key: string]: object; }}
|
|
10249
|
+
* @memberof TransactionProcessRequest
|
|
10250
|
+
*/
|
|
10251
|
+
passBackObject?: {
|
|
10252
|
+
[key: string]: object;
|
|
10253
|
+
};
|
|
10116
10254
|
}
|
|
10117
10255
|
export class TextFieldExt implements TextField {
|
|
10118
10256
|
fieldType: TextFieldType;
|
|
@@ -10337,5 +10475,38 @@ export class DocumentReaderApi {
|
|
|
10337
10475
|
* @throws {RequiredError}
|
|
10338
10476
|
*/
|
|
10339
10477
|
getReprocessTransactionResult(transactionId: number, withImages?: boolean, options?: any): Promise<Response>;
|
|
10478
|
+
/**
|
|
10479
|
+
*
|
|
10480
|
+
* @summary Get transactions by tag
|
|
10481
|
+
* @param {number} tagId Tag id
|
|
10482
|
+
* @param {*} [options] Override http request option.
|
|
10483
|
+
* @throws {RequiredError}
|
|
10484
|
+
*/
|
|
10485
|
+
getTransactionsByTag(tagId: string, options?: any): Promise<AxiosResponse<ListTransactionsByTagResponse>>;
|
|
10486
|
+
/**
|
|
10487
|
+
*
|
|
10488
|
+
* @summary Delete Reprocess transactions by tag
|
|
10489
|
+
* @param {number} tagId Tag id
|
|
10490
|
+
* @param {*} [options] Override http request option.
|
|
10491
|
+
* @throws {RequiredError}
|
|
10492
|
+
*/
|
|
10493
|
+
deleteReprocessTransactionsByTag(tagId: number, options?: any): Promise<AxiosResponse<object, any>>;
|
|
10494
|
+
/**
|
|
10495
|
+
*
|
|
10496
|
+
* @summary Get Reprocess transaction file
|
|
10497
|
+
* @param {number} transactionId Transaction id
|
|
10498
|
+
* @param {string} name File name
|
|
10499
|
+
* @param {*} [options] Override http request option.
|
|
10500
|
+
* @throws {RequiredError}
|
|
10501
|
+
*/
|
|
10502
|
+
getReprocessTransactionFile(transactionId: number, name: string, options?: any): Promise<AxiosResponse<any, any>>;
|
|
10503
|
+
/**
|
|
10504
|
+
*
|
|
10505
|
+
* @summary Get Reprocess transaction data
|
|
10506
|
+
* @param {number} transactionId Transaction id
|
|
10507
|
+
* @param {*} [options] Override http request option.
|
|
10508
|
+
* @throws {RequiredError}
|
|
10509
|
+
*/
|
|
10510
|
+
getReprocessTransactionData(transactionId: number, options?: any): Promise<AxiosResponse<TransactionProcessGetResponse, any>>;
|
|
10340
10511
|
}
|
|
10341
10512
|
export function requestToBaseRequest(request: ProcessRequestExt): ProcessRequest;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"> 0.2%",
|
|
6
6
|
"not dead"
|
|
7
7
|
],
|
|
8
|
-
"version": "7.4.
|
|
8
|
+
"version": "7.4.97",
|
|
9
9
|
"description": "Regula Document Reader js client for the browser and node.js based on axios",
|
|
10
10
|
"author": "Regula Forensics, Inc.",
|
|
11
11
|
"keywords": [
|
|
@@ -45,30 +45,30 @@
|
|
|
45
45
|
"check-types": "tsc --noEmit",
|
|
46
46
|
"format": "eslint --fix",
|
|
47
47
|
"build": "parcel build --no-source-maps --no-cache",
|
|
48
|
-
"prepare": "husky
|
|
48
|
+
"prepare": "husky"
|
|
49
49
|
},
|
|
50
50
|
"lint-staged": {
|
|
51
51
|
"*.{js,ts}": "eslint --fix"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@swc/helpers": "^0.5.
|
|
55
|
-
"axios": "^1.
|
|
54
|
+
"@swc/helpers": "^0.5.12",
|
|
55
|
+
"axios": "^1.7.4",
|
|
56
56
|
"base64-arraybuffer": "^1.0.2",
|
|
57
57
|
"pako": "^2.1.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@parcel/packager-ts": "^2.
|
|
61
|
-
"@parcel/transformer-typescript-types": "^2.
|
|
62
|
-
"@types/pako": "^2.0.
|
|
60
|
+
"@parcel/packager-ts": "^2.12.0",
|
|
61
|
+
"@parcel/transformer-typescript-types": "^2.12.0",
|
|
62
|
+
"@types/pako": "^2.0.3",
|
|
63
63
|
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
64
64
|
"@typescript-eslint/parser": "^6.8.0",
|
|
65
65
|
"eslint": "^8.51.0",
|
|
66
|
-
"eslint-config-prettier": "^9.
|
|
67
|
-
"eslint-plugin-prettier": "^5.
|
|
68
|
-
"husky": "^
|
|
69
|
-
"lint-staged": "^15.
|
|
70
|
-
"parcel": "^2.
|
|
71
|
-
"prettier": "^3.
|
|
66
|
+
"eslint-config-prettier": "^9.1.0",
|
|
67
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
68
|
+
"husky": "^9.1.5",
|
|
69
|
+
"lint-staged": "^15.2.9",
|
|
70
|
+
"parcel": "^2.12.0",
|
|
71
|
+
"prettier": "^3.3.3",
|
|
72
72
|
"typescript": "^5.3.2"
|
|
73
73
|
}
|
|
74
74
|
}
|