@regulaforensics/document-reader-webclient 6.9.3 → 6.9.5

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
@@ -117,7 +117,7 @@ export interface Point {
117
117
  * @export
118
118
  * @interface PointArray
119
119
  */
120
- interface PointArray {
120
+ export interface PointArray {
121
121
  /**
122
122
  *
123
123
  * @type {Array<Point>}
@@ -172,7 +172,7 @@ export interface RectangleCoordinates {
172
172
  * @export
173
173
  * @interface AreaArray
174
174
  */
175
- interface AreaArray {
175
+ export interface AreaArray {
176
176
  /**
177
177
  *
178
178
  * @type {Array<RectangleCoordinates>}
@@ -2414,7 +2414,7 @@ export interface ChosenDocumentTypeResultAllOf {
2414
2414
  * @export
2415
2415
  * @interface BcPDF417INFO
2416
2416
  */
2417
- interface BcPDF417INFO {
2417
+ export interface BcPDF417INFO {
2418
2418
  /**
2419
2419
  *
2420
2420
  * @type {number}
@@ -2468,7 +2468,7 @@ interface BcPDF417INFO {
2468
2468
  * @export
2469
2469
  * @interface BcROIDETECT
2470
2470
  */
2471
- interface BcROIDETECT {
2471
+ export interface BcROIDETECT {
2472
2472
  /**
2473
2473
  *
2474
2474
  * @type {number}
@@ -2510,7 +2510,7 @@ interface BcROIDETECT {
2510
2510
  * @export
2511
2511
  * @interface DataModule
2512
2512
  */
2513
- interface DataModule {
2513
+ export interface DataModule {
2514
2514
  /**
2515
2515
  *
2516
2516
  * @type {string}
@@ -2547,7 +2547,7 @@ interface DataModule {
2547
2547
  * @export
2548
2548
  * @interface PArrayField
2549
2549
  */
2550
- interface PArrayField {
2550
+ export interface PArrayField {
2551
2551
  /**
2552
2552
  *
2553
2553
  * @type {number}
@@ -2614,7 +2614,7 @@ interface PArrayField {
2614
2614
  * @export
2615
2615
  * @interface DocBarCodeInfoFieldsList
2616
2616
  */
2617
- interface DocBarCodeInfoFieldsList {
2617
+ export interface DocBarCodeInfoFieldsList {
2618
2618
  /**
2619
2619
  * Count of array fields
2620
2620
  * @type {number}
@@ -2633,7 +2633,7 @@ interface DocBarCodeInfoFieldsList {
2633
2633
  * @export
2634
2634
  * @interface DocBarCodeInfoAllOf
2635
2635
  */
2636
- interface DocBarCodeInfoAllOf {
2636
+ export interface DocBarCodeInfoAllOf {
2637
2637
  /**
2638
2638
  *
2639
2639
  * @type {DocBarCodeInfoFieldsList}
@@ -2659,7 +2659,7 @@ export interface DocumentImageResultAllOf {
2659
2659
  * @export
2660
2660
  * @interface DocumentPosition
2661
2661
  */
2662
- interface DocumentPosition {
2662
+ export interface DocumentPosition {
2663
2663
  /**
2664
2664
  *
2665
2665
  * @type {DocumentFormat}
@@ -2726,7 +2726,7 @@ interface DocumentPosition {
2726
2726
  * @export
2727
2727
  * @interface DocumentPositionResultAllOf
2728
2728
  */
2729
- interface DocumentPositionResultAllOf {
2729
+ export interface DocumentPositionResultAllOf {
2730
2730
  /**
2731
2731
  *
2732
2732
  * @type {DocumentPosition}
@@ -2812,7 +2812,7 @@ export interface DocumentTypesCandidatesResultAllOf {
2812
2812
  * @export
2813
2813
  * @interface EncryptedRCLResultAllOf
2814
2814
  */
2815
- interface EncryptedRCLResultAllOf {
2815
+ export interface EncryptedRCLResultAllOf {
2816
2816
  /**
2817
2817
  * Base64 encoded data
2818
2818
  * @type {string}
@@ -3068,7 +3068,7 @@ export enum ImageQualityCheckType {
3068
3068
  * @export
3069
3069
  * @interface ImageQualityCheck
3070
3070
  */
3071
- interface ImageQualityCheck {
3071
+ export interface ImageQualityCheck {
3072
3072
  /**
3073
3073
  *
3074
3074
  * @type {ImageQualityCheckType}
@@ -3117,7 +3117,7 @@ interface ImageQualityCheck {
3117
3117
  * @export
3118
3118
  * @interface ImageQualityCheckList
3119
3119
  */
3120
- interface ImageQualityCheckList {
3120
+ export interface ImageQualityCheckList {
3121
3121
  /**
3122
3122
  *
3123
3123
  * @type {CheckResult}
@@ -3136,7 +3136,7 @@ interface ImageQualityCheckList {
3136
3136
  * @export
3137
3137
  * @interface ImageQualityResultAllOf
3138
3138
  */
3139
- interface ImageQualityResultAllOf {
3139
+ export interface ImageQualityResultAllOf {
3140
3140
  /**
3141
3141
  *
3142
3142
  * @type {ImageQualityCheckList}
@@ -3309,7 +3309,7 @@ export interface ImagesFieldValue {
3309
3309
  * @export
3310
3310
  * @interface ImagesField
3311
3311
  */
3312
- interface _ImagesField1 {
3312
+ export interface ImagesField {
3313
3313
  /**
3314
3314
  * Human readable field name. Do not bind to this name - use GraphicFieldType instead.
3315
3315
  * @type {string}
@@ -3334,7 +3334,7 @@ interface _ImagesField1 {
3334
3334
  * @export
3335
3335
  * @interface Images
3336
3336
  */
3337
- interface _Images1 {
3337
+ export interface Images {
3338
3338
  /**
3339
3339
  *
3340
3340
  * @type {Array<ImagesAvailableSource>}
@@ -3346,7 +3346,7 @@ interface _Images1 {
3346
3346
  * @type {Array<ImagesField>}
3347
3347
  * @memberof Images
3348
3348
  */
3349
- fieldList: Array<_ImagesField1>;
3349
+ fieldList: Array<ImagesField>;
3350
3350
  }
3351
3351
  /**
3352
3352
  *
@@ -3359,7 +3359,7 @@ export interface ImagesResultAllOf {
3359
3359
  * @type {Images}
3360
3360
  * @memberof ImagesResultAllOf
3361
3361
  */
3362
- _Images1: _Images1;
3362
+ Images: Images;
3363
3363
  }
3364
3364
  /**
3365
3365
  * Regula Document Reader Web API
@@ -6598,7 +6598,7 @@ export interface LexicalAnalysisResultAllOf {
6598
6598
  * @export
6599
6599
  * @interface LicenseResultAllOf
6600
6600
  */
6601
- interface LicenseResultAllOf {
6601
+ export interface LicenseResultAllOf {
6602
6602
  /**
6603
6603
  * Base64 encoded data
6604
6604
  * @type {string}
@@ -7069,7 +7069,7 @@ export interface TextFieldValue {
7069
7069
  * @export
7070
7070
  * @interface TextField
7071
7071
  */
7072
- interface _TextField1 {
7072
+ export interface TextField {
7073
7073
  /**
7074
7074
  *
7075
7075
  * @type {TextFieldType}
@@ -7136,7 +7136,7 @@ interface _TextField1 {
7136
7136
  * @export
7137
7137
  * @interface Text
7138
7138
  */
7139
- interface _Text1 {
7139
+ export interface Text {
7140
7140
  /**
7141
7141
  *
7142
7142
  * @type {CheckResult}
@@ -7160,7 +7160,7 @@ interface _Text1 {
7160
7160
  * @type {Array<TextField>}
7161
7161
  * @memberof Text
7162
7162
  */
7163
- fieldList: Array<_TextField1>;
7163
+ fieldList: Array<TextField>;
7164
7164
  /**
7165
7165
  *
7166
7166
  * @type {Array<TextAvailableSource>}
@@ -7179,7 +7179,7 @@ export interface TextResultAllOf {
7179
7179
  * @type {Text}
7180
7180
  * @memberof TextResultAllOf
7181
7181
  */
7182
- _Text1: _Text1;
7182
+ Text: Text;
7183
7183
  }
7184
7184
  /**
7185
7185
  * @type TextResult
@@ -7238,7 +7238,7 @@ export interface ResultItem {
7238
7238
  * @type LicenseResult
7239
7239
  * @export
7240
7240
  */
7241
- type LicenseResult = LicenseResultAllOf & ResultItem;
7241
+ export type LicenseResult = LicenseResultAllOf & ResultItem;
7242
7242
  /**
7243
7243
  * @type LexicalAnalysisResult
7244
7244
  * Lexical data analysis allows you to compare the results of reading the text data of the MRZ, the document filling area, barcodes and data from the memory of the RFID chip for an additional assessment of the authenticity of the document. Single result for all pages. Consider using Result.TEXT type for more simplicity.
@@ -7254,7 +7254,7 @@ export type ImagesResult = ImagesResultAllOf & ResultItem;
7254
7254
  * @type ImageQualityResult
7255
7255
  * @export
7256
7256
  */
7257
- type ImageQualityResult = ImageQualityResultAllOf & ResultItem;
7257
+ export type ImageQualityResult = ImageQualityResultAllOf & ResultItem;
7258
7258
  /**
7259
7259
  * @type GraphicsResult
7260
7260
  * Graphic fields extracted from one of the document sources. Returns separate results for each provided page.
@@ -7265,7 +7265,7 @@ export type GraphicsResult = GraphicsResultAllOf & ResultItem;
7265
7265
  * @type EncryptedRCLResult
7266
7266
  * @export
7267
7267
  */
7268
- type EncryptedRCLResult = EncryptedRCLResultAllOf & ResultItem;
7268
+ export type EncryptedRCLResult = EncryptedRCLResultAllOf & ResultItem;
7269
7269
  /**
7270
7270
  * @type DocumentTypesCandidatesResult
7271
7271
  * @export
@@ -7276,7 +7276,7 @@ export type DocumentTypesCandidatesResult = DocumentTypesCandidatesResultAllOf &
7276
7276
  * Contains information about document position on the input image, its center, angle, etc
7277
7277
  * @export
7278
7278
  */
7279
- type DocumentPositionResult = DocumentPositionResultAllOf & ResultItem;
7279
+ export type DocumentPositionResult = DocumentPositionResultAllOf & ResultItem;
7280
7280
  /**
7281
7281
  * @type DocumentImageResult
7282
7282
  * @export
@@ -7287,7 +7287,7 @@ export type DocumentImageResult = DocumentImageResultAllOf & ResultItem;
7287
7287
  * Raw data from BarCodes
7288
7288
  * @export
7289
7289
  */
7290
- type DocBarCodeInfo = DocBarCodeInfoAllOf & ResultItem;
7290
+ export type DocBarCodeInfo = DocBarCodeInfoAllOf & ResultItem;
7291
7291
  /**
7292
7292
  * @type ChosenDocumentTypeResult
7293
7293
  * Contains information about the type of document that was determined based on the analysis of the provided image
@@ -7492,7 +7492,7 @@ export interface DocumentTypesCandidates {
7492
7492
  * @export
7493
7493
  * @interface FaceApiSearch
7494
7494
  */
7495
- interface FaceApiSearch {
7495
+ export interface FaceApiSearch {
7496
7496
  /**
7497
7497
  * The maximum number of results to be returned.
7498
7498
  * @type {number}
@@ -7517,7 +7517,7 @@ interface FaceApiSearch {
7517
7517
  * @export
7518
7518
  * @interface FaceApi
7519
7519
  */
7520
- interface FaceApi {
7520
+ export interface FaceApi {
7521
7521
  /**
7522
7522
  * The URL of the Regula Face Web service to be used.
7523
7523
  * @type {string}
@@ -8639,7 +8639,7 @@ export enum ParsingNotificationCodes {
8639
8639
  * @export
8640
8640
  * @interface PerDocumentConfig
8641
8641
  */
8642
- interface PerDocumentConfig {
8642
+ export interface PerDocumentConfig {
8643
8643
  /**
8644
8644
  * Specific template IDs, for which apply current custom configuration
8645
8645
  * @type {Array<number>}
@@ -8658,7 +8658,7 @@ interface PerDocumentConfig {
8658
8658
  * @export
8659
8659
  * @interface ProcessParamsRfid
8660
8660
  */
8661
- interface ProcessParamsRfid {
8661
+ export interface ProcessParamsRfid {
8662
8662
  /**
8663
8663
  * A list of notification codes that should be ignored during passive authentication (PA)
8664
8664
  * @type {Array<ParsingNotificationCodes>}
@@ -9216,7 +9216,7 @@ export interface ProcessParams {
9216
9216
  * @export
9217
9217
  * @interface ProcessRequestImage
9218
9218
  */
9219
- interface _ProcessRequestImage1 {
9219
+ export interface ProcessRequestImage {
9220
9220
  /**
9221
9221
  *
9222
9222
  * @type {ImageData}
@@ -9271,7 +9271,7 @@ export interface ProcessSystemInfo {
9271
9271
  * @export
9272
9272
  * @interface ProcessRequest
9273
9273
  */
9274
- interface _ProcessRequest1 {
9274
+ export interface ProcessRequest {
9275
9275
  /**
9276
9276
  * session id
9277
9277
  * @type {string}
@@ -9289,7 +9289,7 @@ interface _ProcessRequest1 {
9289
9289
  * @type {Array<ProcessRequestImage>}
9290
9290
  * @memberof ProcessRequest
9291
9291
  */
9292
- List?: Array<_ProcessRequestImage1>;
9292
+ List?: Array<ProcessRequestImage>;
9293
9293
  /**
9294
9294
  * Live portrait photo
9295
9295
  * @type {string}
@@ -9452,7 +9452,7 @@ export interface ProcessResponse {
9452
9452
  */
9453
9453
  elapsedTime?: number;
9454
9454
  }
9455
- export class TextField implements _TextField1 {
9455
+ export class TextFieldExt implements TextField {
9456
9456
  fieldType: TextFieldType;
9457
9457
  fieldName: string;
9458
9458
  lcid?: number;
@@ -9463,7 +9463,7 @@ export class TextField implements _TextField1 {
9463
9463
  valueList: Array<TextFieldValue>;
9464
9464
  validityList: Array<SourceValidity>;
9465
9465
  comparisonList: Array<CrossSourceValueComparison>;
9466
- constructor(origin: _TextField1);
9466
+ constructor(origin: TextField);
9467
9467
  /**
9468
9468
  * This method returns value of the text field. Value encoded in UTF8.
9469
9469
  * Fields value obtained in the following order:
@@ -9490,30 +9490,30 @@ export class TextField implements _TextField1 {
9490
9490
  crossSourceComparison(one: Source, other: Source): CheckResult;
9491
9491
  getLCIDName(): string | undefined;
9492
9492
  }
9493
- export class Text implements _Text1 {
9493
+ export class TextExt implements Text {
9494
9494
  status: CheckResult;
9495
9495
  validityStatus: CheckResult;
9496
9496
  comparisonStatus: CheckResult;
9497
9497
  availableSourceList: Array<TextAvailableSource>;
9498
- fieldList: Array<TextField>;
9499
- constructor(origin: _Text1);
9500
- getField(type: TextFieldType, lcid?: number): TextField | undefined;
9501
- getFieldByName(name: string, lcid?: number): TextField | undefined;
9498
+ fieldList: Array<TextFieldExt>;
9499
+ constructor(origin: Text);
9500
+ getField(type: TextFieldType, lcid?: number): TextFieldExt | undefined;
9501
+ getFieldByName(name: string, lcid?: number): TextFieldExt | undefined;
9502
9502
  getFieldValue(type: TextFieldType, lcid?: number): string | undefined;
9503
9503
  getFieldValueByName(name: string, lcid?: number): string | undefined;
9504
9504
  }
9505
- export class Images implements _Images1 {
9505
+ export class ImagesExt implements Images {
9506
9506
  availableSourceList: Array<ImagesAvailableSource>;
9507
- fieldList: Array<ImagesField>;
9508
- constructor(origin: _Images1);
9509
- getField(type: GraphicFieldType): ImagesField | undefined;
9510
- getFields(type: GraphicFieldType): Array<ImagesField> | undefined;
9507
+ fieldList: Array<ImagesFieldWrapper>;
9508
+ constructor(origin: Images);
9509
+ getField(type: GraphicFieldType): ImagesFieldWrapper | undefined;
9510
+ getFields(type: GraphicFieldType): Array<ImagesFieldWrapper> | undefined;
9511
9511
  }
9512
- export class ImagesField implements _ImagesField1 {
9512
+ export class ImagesFieldWrapper implements ImagesField {
9513
9513
  fieldName: string;
9514
9514
  fieldType: GraphicFieldType;
9515
9515
  valueList: Array<ImagesFieldValue>;
9516
- constructor(origin: _ImagesField1);
9516
+ constructor(origin: ImagesField);
9517
9517
  getValue(source?: Source, original?: boolean): ArrayBuffer | undefined;
9518
9518
  }
9519
9519
  declare class FiberChecks implements AuthenticityCheckResult {
@@ -9573,8 +9573,8 @@ declare class Authenticity implements AuthenticityCheckList {
9573
9573
  }
9574
9574
  export class Response {
9575
9575
  status?: Status;
9576
- text?: Text;
9577
- images?: Images;
9576
+ text?: TextExt;
9577
+ images?: ImagesExt;
9578
9578
  lowLvlResponse: LowLvlResponse;
9579
9579
  rawResponse: ProcessResponse;
9580
9580
  constructor(original: ProcessResponse);
@@ -9606,64 +9606,56 @@ export class LowLvlResponse implements ProcessResponse {
9606
9606
  resultByTypeAndPage(type: Result, page_idx?: number): ResultItem | undefined;
9607
9607
  resultsByType(type: Result): Array<ResultItem | AuthenticityResult | ImageQualityCheckList>;
9608
9608
  }
9609
- export interface ProcessRequestImage extends Omit<_ProcessRequestImage1, 'ImageData'> {
9609
+ export interface ProcessRequestImageWrapper extends Omit<ProcessRequestImage, 'ImageData'> {
9610
9610
  ImageData: ArrayBuffer | Base64String;
9611
9611
  }
9612
9612
  export type Base64String = string;
9613
- export interface ProcessRequest {
9613
+ export interface ProcessRequestExt {
9614
9614
  /**
9615
9615
  *
9616
9616
  * @type {ProcessParams}
9617
- * @memberof ProcessRequest
9617
+ * @memberof ProcessRequestExt
9618
9618
  */
9619
9619
  processParam: ProcessParams;
9620
9620
  /**
9621
9621
  *
9622
9622
  * @type {Array<ProcessRequestImage>}
9623
- * @memberof ProcessRequest
9623
+ * @memberof ProcessRequestExt
9624
9624
  */
9625
- images: Array<ProcessRequestImage | ArrayBuffer | Base64String>;
9625
+ images: Array<ProcessRequestImageWrapper | ArrayBuffer | Base64String>;
9626
9626
  /**
9627
9627
  * @type {ContainerList}
9628
- * @memberOf ProcessRequest
9628
+ * @memberOf ProcessRequestExt
9629
9629
  */
9630
9630
  ContainerList: ContainerList;
9631
9631
  /**
9632
9632
  *
9633
9633
  * @type {ProcessParams}
9634
- * @memberof ProcessRequest
9634
+ * @memberof ProcessRequestExt
9635
9635
  */
9636
9636
  systemInfo?: ProcessSystemInfo;
9637
9637
  /**
9638
9638
  * Free-form object to be included in response. Must be object, not list or simple value.
9639
9639
  * Do not affect document processing. Use it freely to pass your app params. Stored in process logs.
9640
9640
  * @type {{ [key: string]: object; }}
9641
- * @memberof ProcessRequest
9641
+ * @memberof ProcessRequestExt
9642
9642
  */
9643
9643
  passBackObject?: {
9644
9644
  [key: string]: any;
9645
9645
  };
9646
9646
  }
9647
- export const instanceOfProcessRequest: (data: any) => data is ProcessRequest;
9647
+ export const instanceOfProcessRequest: (data: any) => data is ProcessRequestExt;
9648
9648
  export class DocumentReaderApi {
9649
9649
  constructor(configuration?: ConfigurationParameters, basePath?: string, axios?: AxiosInstance);
9650
9650
  ping(xRequestID?: string): Promise<DeviceInfo>;
9651
9651
  /**
9652
9652
  *
9653
9653
  * @summary Process list of documents images and return extracted data
9654
- * @param {ProcessRequest} [request] Request options such as image, results types and etc.
9654
+ * @param {ProcessRequestExt} [request] Request options such as image, results types and etc.
9655
9655
  * @param {*} [options] Override http request option.
9656
9656
  * @throws {RequiredError} If some request params are missed
9657
9657
  * */
9658
- process(request: ProcessRequest | _ProcessRequest1, xRequestID?: string, options?: any): Promise<Response>;
9658
+ process(request: ProcessRequestExt | ProcessRequest, xRequestID?: string, options?: any): Promise<Response>;
9659
9659
  setLicense(license: ArrayBuffer | Base64String): void;
9660
9660
  }
9661
- export function requestToBaseRequest(request: ProcessRequest): _ProcessRequest1;
9662
- export class BaseResultItem implements ResultItem {
9663
- buf_length?: number;
9664
- light?: number;
9665
- list_idx?: number;
9666
- page_idx?: number;
9667
- result_type: number;
9668
- constructor(item: ResultItem);
9669
- }
9661
+ 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": "6.9.3",
8
+ "version": "6.9.5",
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": [
@@ -34,21 +34,16 @@
34
34
  ],
35
35
  "targets": {
36
36
  "main": {
37
- "optimize": true,
38
- "sourceMap": false
37
+ "optimize": true
39
38
  },
40
39
  "module": {
41
- "optimize": true,
42
- "sourceMap": false
43
- },
44
- "types": {
45
- "sourceMap": false
40
+ "optimize": true
46
41
  }
47
42
  },
48
43
  "scripts": {
49
44
  "check-types": "tsc --noEmit",
50
45
  "format": "eslint --fix",
51
- "build": "parcel build",
46
+ "build": "parcel build --no-source-maps --no-cache",
52
47
  "prepare": "husky install"
53
48
  },
54
49
  "lint-staged": {
@@ -56,13 +51,13 @@
56
51
  },
57
52
  "dependencies": {
58
53
  "@swc/helpers": "^0.5.3",
59
- "axios": "^1.5.1",
54
+ "axios": "^1.6.1",
60
55
  "base64-arraybuffer": "^1.0.2",
61
56
  "pako": "^2.1.0"
62
57
  },
63
58
  "devDependencies": {
64
- "@parcel/packager-ts": "^2.10.0",
65
- "@parcel/transformer-typescript-types": "^2.10.0",
59
+ "@parcel/packager-ts": "^2.10.3",
60
+ "@parcel/transformer-typescript-types": "^2.10.3",
66
61
  "@types/pako": "^2.0.1",
67
62
  "@typescript-eslint/eslint-plugin": "^6.8.0",
68
63
  "@typescript-eslint/parser": "^6.8.0",
@@ -71,8 +66,8 @@
71
66
  "eslint-plugin-prettier": "^5.0.1",
72
67
  "husky": "^8.0.3",
73
68
  "lint-staged": "^15.0.1",
74
- "parcel": "^2.10.0",
69
+ "parcel": "^2.10.3",
75
70
  "prettier": "^3.0.3",
76
- "typescript": "^5.2.2"
71
+ "typescript": "^5.3.2"
77
72
  }
78
73
  }