@regulaforensics/document-reader-webclient 7.4.71-nightly → 7.4.95

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/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
- FALSE_IP_PARAMETERS = 65,
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
- LAST_DIAGNOSE_VALUE = 250
645
+ CHD_INCORRECT_OBJECT_COLOR = 250
640
646
  }
641
647
  /**
642
648
  * Regula Document Reader Web API
@@ -3241,10 +3247,6 @@ export enum ImageQualityCheckType {
3241
3247
  */
3242
3248
  Bounds = 5,
3243
3249
  /**
3244
- * Signals if an image is captured from screen
3245
- */
3246
- ScreenCapture = 6,
3247
- /**
3248
3250
  * Signals if the portrait is present
3249
3251
  */
3250
3252
  Portrait = 7,
@@ -6745,7 +6747,39 @@ export enum TextFieldType {
6745
6747
  /**
6746
6748
  * Signature
6747
6749
  */
6748
- SIGNATURE = 683
6750
+ SIGNATURE = 683,
6751
+ /**
6752
+ * Unique Certificate Identifier
6753
+ */
6754
+ FT_UNIQUE_CERTIFICATE_IDENTIFIER = 684,
6755
+ /**
6756
+ * Email
6757
+ */
6758
+ FT_EMAIL = 685,
6759
+ /**
6760
+ * Date of Specimen Collection
6761
+ */
6762
+ FT_DATE_OF_SPECIMEN_COLLECTION = 686,
6763
+ /**
6764
+ * Type Of Testing
6765
+ */
6766
+ FT_TYPE_OF_TESTING = 687,
6767
+ /**
6768
+ * Result Of Testing
6769
+ */
6770
+ FT_RESULT_OF_TESTING = 688,
6771
+ /**
6772
+ * Method Of Testing
6773
+ */
6774
+ FT_METHOD_OF_TESTING = 689,
6775
+ /**
6776
+ * Digital Travel Authorization Number
6777
+ */
6778
+ FT_DIGITAL_TRAVEL_AUTHORIZATION_NUMBER = 690,
6779
+ /**
6780
+ * Date of First Positive Test Result
6781
+ */
6782
+ FT_DATE_OF_FIRST_POSITIVE_TEST_RESULT = 691
6749
6783
  }
6750
6784
  /**
6751
6785
  * Regula Document Reader Web API
@@ -7845,6 +7879,42 @@ export interface FaceApi {
7845
7879
  */
7846
7880
  proxy_type?: number;
7847
7881
  }
7882
+ /**
7883
+ * Regula Document Reader Web API
7884
+ * 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
7885
+ *
7886
+ * The version of the OpenAPI document: 7.2.0
7887
+ *
7888
+ *
7889
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7890
+ * https://openapi-generator.tech
7891
+ * Do not edit the class manually.
7892
+ */
7893
+ /**
7894
+ *
7895
+ * @export
7896
+ * @interface GetTransactionsByTagResponse
7897
+ */
7898
+ export interface GetTransactionsByTagResponse {
7899
+ /**
7900
+ * Transaction id
7901
+ * @type {number}
7902
+ * @memberof GetTransactionsByTagResponse
7903
+ */
7904
+ id?: number;
7905
+ /**
7906
+ * Transaction status
7907
+ * @type {number}
7908
+ * @memberof GetTransactionsByTagResponse
7909
+ */
7910
+ state?: number;
7911
+ /**
7912
+ * Last time updated
7913
+ * @type {string}
7914
+ * @memberof GetTransactionsByTagResponse
7915
+ */
7916
+ updatedAt?: string;
7917
+ }
7848
7918
  /**
7849
7919
  * Regula Document Reader Web API
7850
7920
  * 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 +7968,6 @@ export interface ImageQA {
7898
7968
  * @memberof ImageQA
7899
7969
  */
7900
7970
  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
7971
  /**
7908
7972
  * This parameter specifies the necessary margin. Default 0.
7909
7973
  * @type {number}
@@ -9350,6 +9414,10 @@ export enum Result {
9350
9414
  */
9351
9415
  LEXICAL_ANALYSIS = 15,
9352
9416
  /**
9417
+ * Contains raw uncropped images
9418
+ */
9419
+ RAW_UNCROPPED_IMAGE = 16,
9420
+ /**
9353
9421
  * Contains Visual zone OCR results
9354
9422
  */
9355
9423
  VISUAL_TEXT = 17,
@@ -9874,6 +9942,12 @@ export interface ProcessParams {
9874
9942
  * @memberof ProcessParams
9875
9943
  */
9876
9944
  mrzDetectMode?: MrzDetectModeEnum;
9945
+ /**
9946
+ * This parameter is used to generate numeric representation for issuing state and nationality codes
9947
+ * @type {boolean}
9948
+ * @memberof ProcessParams
9949
+ */
9950
+ generateNumericCodes?: boolean;
9877
9951
  }
9878
9952
  /**
9879
9953
  *
@@ -9936,12 +10010,6 @@ export interface ProcessSystemInfo {
9936
10010
  * @interface ProcessRequest
9937
10011
  */
9938
10012
  export interface ProcessRequest {
9939
- /**
9940
- * session id
9941
- * @type {string}
9942
- * @memberof ProcessRequest
9943
- */
9944
- tag?: string;
9945
10013
  /**
9946
10014
  *
9947
10015
  * @type {ProcessParams}
@@ -9954,6 +10022,24 @@ export interface ProcessRequest {
9954
10022
  * @memberof ProcessRequest
9955
10023
  */
9956
10024
  List?: Array<ProcessRequestImage>;
10025
+ /**
10026
+ * Session ID
10027
+ * @type {string}
10028
+ * @memberof ProcessRequest
10029
+ */
10030
+ tag?: string;
10031
+ /**
10032
+ * Customer name
10033
+ * @type {string}
10034
+ * @memberof ProcessRequest
10035
+ */
10036
+ tenant?: string;
10037
+ /**
10038
+ * Environment type
10039
+ * @type {string}
10040
+ * @memberof ProcessRequest
10041
+ */
10042
+ env?: string;
9957
10043
  /**
9958
10044
  * Live portrait photo
9959
10045
  * @type {string}
@@ -10091,28 +10177,53 @@ export interface TransactionProcessGetResponse {
10091
10177
  /**
10092
10178
  *
10093
10179
  * @export
10094
- * @interface TransactionScenarioRequest
10180
+ * @interface TransactionProcessRequest
10095
10181
  */
10096
- export interface TransactionScenarioRequest {
10182
+ export interface TransactionProcessRequest {
10097
10183
  /**
10098
10184
  *
10099
- * @type {Scenario}
10100
- * @memberof TransactionScenarioRequest
10185
+ * @type {ProcessParams}
10186
+ * @memberof TransactionProcessRequest
10101
10187
  */
10102
- scenario?: Scenario;
10103
- }
10104
- /**
10105
- *
10106
- * @export
10107
- * @interface TransactionProcessRequest
10108
- */
10109
- export interface TransactionProcessRequest {
10188
+ processParam: ProcessParams;
10189
+ /**
10190
+ *
10191
+ * @type {Array<ProcessRequestImage>}
10192
+ * @memberof TransactionProcessRequest
10193
+ */
10194
+ List?: Array<ProcessRequestImage>;
10195
+ /**
10196
+ * Live portrait photo
10197
+ * @type {string}
10198
+ * @memberof TransactionProcessRequest
10199
+ */
10200
+ livePortrait?: string;
10201
+ /**
10202
+ * Portrait photo from an external source
10203
+ * @type {string}
10204
+ * @memberof TransactionProcessRequest
10205
+ */
10206
+ extPortrait?: string;
10110
10207
  /**
10111
10208
  *
10112
- * @type {TransactionScenarioRequest}
10209
+ * @type {ContainerList}
10113
10210
  * @memberof TransactionProcessRequest
10114
10211
  */
10115
- processParam: TransactionScenarioRequest;
10212
+ ContainerList?: ContainerList;
10213
+ /**
10214
+ *
10215
+ * @type {ProcessSystemInfo}
10216
+ * @memberof TransactionProcessRequest
10217
+ */
10218
+ systemInfo?: ProcessSystemInfo;
10219
+ /**
10220
+ * 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.
10221
+ * @type {{ [key: string]: object; }}
10222
+ * @memberof TransactionProcessRequest
10223
+ */
10224
+ passBackObject?: {
10225
+ [key: string]: object;
10226
+ };
10116
10227
  }
10117
10228
  export class TextFieldExt implements TextField {
10118
10229
  fieldType: TextFieldType;
@@ -10337,5 +10448,38 @@ export class DocumentReaderApi {
10337
10448
  * @throws {RequiredError}
10338
10449
  */
10339
10450
  getReprocessTransactionResult(transactionId: number, withImages?: boolean, options?: any): Promise<Response>;
10451
+ /**
10452
+ *
10453
+ * @summary Get transactions by tag
10454
+ * @param {number} tagId Tag id
10455
+ * @param {*} [options] Override http request option.
10456
+ * @throws {RequiredError}
10457
+ */
10458
+ getTransactionsByTag(tagId: number, options?: any): Promise<AxiosResponse<import("models").GetTransactionsByTagResponse[], any>>;
10459
+ /**
10460
+ *
10461
+ * @summary Delete Reprocess transactions by tag
10462
+ * @param {number} tagId Tag id
10463
+ * @param {*} [options] Override http request option.
10464
+ * @throws {RequiredError}
10465
+ */
10466
+ deleteReprocessTransactionsByTag(tagId: number, options?: any): Promise<AxiosResponse<object, any>>;
10467
+ /**
10468
+ *
10469
+ * @summary Get Reprocess transaction file
10470
+ * @param {number} transactionId Transaction id
10471
+ * @param {string} name File name
10472
+ * @param {*} [options] Override http request option.
10473
+ * @throws {RequiredError}
10474
+ */
10475
+ getReprocessTransactionFile(transactionId: number, name: string, options?: any): Promise<AxiosResponse<any, any>>;
10476
+ /**
10477
+ *
10478
+ * @summary Get Reprocess transaction data
10479
+ * @param {number} transactionId Transaction id
10480
+ * @param {*} [options] Override http request option.
10481
+ * @throws {RequiredError}
10482
+ */
10483
+ getReprocessTransactionData(transactionId: number, options?: any): Promise<AxiosResponse<import("models").TransactionProcessGetResponse, any>>;
10340
10484
  }
10341
10485
  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.71-nightly",
8
+ "version": "7.4.95",
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 install"
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.3",
55
- "axios": "^1.6.8",
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.10.3",
61
- "@parcel/transformer-typescript-types": "^2.10.3",
62
- "@types/pako": "^2.0.1",
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.0.0",
67
- "eslint-plugin-prettier": "^5.0.1",
68
- "husky": "^8.0.3",
69
- "lint-staged": "^15.0.1",
70
- "parcel": "^2.10.3",
71
- "prettier": "^3.0.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
  }