@regulaforensics/ionic-native-document-reader 7.6.460-nightly → 8.1.42-nightly

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.
@@ -0,0 +1,75 @@
1
+ spec:
2
+ inputs:
3
+ stage:
4
+ default: reports
5
+ image:
6
+ default: ubuntu:22.04
7
+ ignore_vulnerabilities:
8
+ default: "false"
9
+ sast_report_file:
10
+ default: gl-sast-report.json
11
+ secret_detection_report_file:
12
+ default: gl-secret-detection-report.json
13
+ dependency_scanning_report_file:
14
+ default: gl-dependency-scanning-report.json
15
+ ---
16
+
17
+ view reports:
18
+ image: $[[ inputs.image ]]
19
+ stage: $[[ inputs.stage ]]
20
+ variables:
21
+ IGNORE_VULNERABILITIES: $[[ inputs.ignore_vulnerabilities ]]
22
+ SAST_REPORT_FILE: $[[ inputs.sast_report_file ]]
23
+ SECRET_DETECTION_REPORT_FILE: $[[ inputs.secret_detection_report_file ]]
24
+ DEPENDENCY_SCANNING_REPORT_FILE: $[[ inputs.dependency_scanning_report_file ]]
25
+ RED: \033[0;31m
26
+ YELLOW: \033[1;33m
27
+ GREEN: \033[0;32m
28
+ NC: \033[0m
29
+ needs:
30
+ - job: semgrep-sast
31
+ artifacts: true
32
+ - job: secret_detection
33
+ artifacts: true
34
+ - job: gemnasium-dependency_scanning
35
+ artifacts: true
36
+ rules:
37
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
38
+ script:
39
+ - ls -la
40
+ - apt update && apt install -y jq
41
+ - |
42
+ for f in SAST_REPORT_FILE SECRET_DETECTION_REPORT_FILE DEPENDENCY_SCANNING_REPORT_FILE
43
+ do
44
+ if [[ -f "${!f}" ]]
45
+ then
46
+ echo -e "${GREEN}File ${!f} exists, adding report${NC}"
47
+ r=${f/%_FILE}
48
+ declare $r="$(cat ${!f} | jq 'select(.vulnerabilities != []).vulnerabilities')"
49
+ if [[ ! -z "${!r}" ]]
50
+ then
51
+ VULNERABILITIES_FOUND=true
52
+ echo -e "${RED}Found $r vulnerabilities${NC}"
53
+ echo "${!r}"
54
+ echo
55
+ fi
56
+ else
57
+ echo -e "${YELLOW}File ${!f} doesn't exist, skipping${NC}"
58
+ fi
59
+ done
60
+
61
+ if [[ "$VULNERABILITIES_FOUND" == true ]]
62
+ then
63
+ if [[ "$IGNORE_VULNERABILITIES" == true ]]
64
+ then
65
+ echo -e "${GREEN}All found vulnerabilities were ignored due to IGNORE_VULNERABILITIES=true${NC}"
66
+ exit 0
67
+ else
68
+ echo -e "${RED}Vulnerabilities found, please see reports above${NC}"
69
+ exit 1
70
+ fi
71
+ fi
72
+
73
+ echo -e "${GREEN}No vulnerabilities found${NC}"
74
+
75
+ exit 0
package/.gitlab-ci.yml ADDED
@@ -0,0 +1,49 @@
1
+ stages:
2
+ - test
3
+ - reports
4
+
5
+ include:
6
+ - template: Jobs/SAST.gitlab-ci.yml
7
+ - template: Jobs/Secret-Detection.gitlab-ci.yml
8
+ - template: Jobs/Dependency-Scanning.gitlab-ci.yml
9
+ - local: .gitlab/report.yaml
10
+ rules:
11
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
12
+ inputs:
13
+ stage: reports
14
+ image: ubuntu:22.04
15
+ ignore_vulnerabilities: "false"
16
+ sast_report_file: gl-sast-report.json
17
+ secret_detection_report_file: gl-secret-detection-report.json
18
+ dependency_scanning_report_file: gl-dependency-scanning-report.json
19
+
20
+ trivy scan:
21
+ stage: test
22
+ image: aquasec/trivy
23
+ rules:
24
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
25
+ script:
26
+ - trivy fs --severity CRITICAL,HIGH,MEDIUM,LOW --ignore-unfixed --db-repository container-registry.regula.local:80/aquasecurity/trivy-db:2 --exit-code 1 .
27
+
28
+ semgrep-sast:
29
+ rules:
30
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
31
+ artifacts:
32
+ paths:
33
+ - gl-sast-report.json
34
+
35
+ secret_detection:
36
+ rules:
37
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
38
+ artifacts:
39
+ paths:
40
+ - gl-secret-detection-report.json
41
+
42
+ gemnasium-dependency_scanning:
43
+ variables:
44
+ DS_MAX_DEPTH: -1
45
+ rules:
46
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
47
+ artifacts:
48
+ paths:
49
+ - gl-dependency-scanning-report.json
@@ -13,9 +13,9 @@
13
13
  },
14
14
  "private": true,
15
15
  "dependencies": {
16
- "@regulaforensics/cordova-plugin-document-reader-api": "7.6.674-nightly",
17
- "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "7.6.892-nightly",
18
- "@regulaforensics/ionic-native-document-reader": "7.6.460-nightly",
16
+ "@regulaforensics/ionic-native-document-reader": "8.1.42-nightly",
17
+ "@regulaforensics/cordova-plugin-document-reader-api": "8.1.61-nightly",
18
+ "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.1.78-nightly",
19
19
  "cordova-plugin-camera": "7.0.0",
20
20
  "@awesome-cordova-plugins/camera": "6.6.0",
21
21
  "@awesome-cordova-plugins/core": "6.6.0",
package/index.d.ts CHANGED
@@ -487,6 +487,7 @@ export declare class OnlineProcessingConfig {
487
487
  processParams?: ProcessParams;
488
488
  imageFormat?: number;
489
489
  imageCompressionQuality?: number;
490
+ requestHeaders?: Record<string, string>;
490
491
  static fromJson(jsonObject?: any): OnlineProcessingConfig | undefined;
491
492
  }
492
493
  export declare class DocReaderConfig {
@@ -535,6 +536,7 @@ export declare class DocReaderVersion {
535
536
  export declare class TransactionInfo {
536
537
  transactionId?: string;
537
538
  tag?: string;
539
+ sessionLogFolder?: string;
538
540
  static fromJson(jsonObject?: any): TransactionInfo | undefined;
539
541
  }
540
542
  export declare class DocumentReaderResults {
@@ -582,6 +584,7 @@ export declare class Functionality {
582
584
  recordScanningProcess?: boolean;
583
585
  manualMultipageMode?: boolean;
584
586
  singleResult?: boolean;
587
+ torchTurnedOn?: boolean;
585
588
  showCaptureButtonDelayFromDetect?: number;
586
589
  showCaptureButtonDelayFromStart?: number;
587
590
  rfidTimeout?: number;
@@ -615,6 +618,7 @@ export declare class ImageQA {
615
618
  expectedPass?: number[];
616
619
  documentPositionIndent?: number;
617
620
  brightnessThreshold?: number;
621
+ occlusionCheck?: boolean;
618
622
  static fromJson(jsonObject?: any): ImageQA | undefined;
619
623
  }
620
624
  export declare class RFIDParams {
@@ -650,6 +654,8 @@ export declare class LivenessParams {
650
654
  checkMLI?: boolean;
651
655
  checkHolo?: boolean;
652
656
  checkED?: boolean;
657
+ checkBlackAndWhiteCopy?: boolean;
658
+ checkDynaprint?: boolean;
653
659
  static fromJson(jsonObject?: any): LivenessParams | undefined;
654
660
  }
655
661
  export declare class AuthenticityParams {
@@ -668,6 +674,7 @@ export declare class AuthenticityParams {
668
674
  checkPhotoEmbedding?: boolean;
669
675
  checkPhotoComparison?: boolean;
670
676
  checkLetterScreen?: boolean;
677
+ checkSecurityText?: boolean;
671
678
  static fromJson(jsonObject?: any): AuthenticityParams | undefined;
672
679
  }
673
680
  export declare class ProcessParams {
@@ -706,6 +713,7 @@ export declare class ProcessParams {
706
713
  strictBarcodeDigitalSignatureCheck?: boolean;
707
714
  selectLongestNames?: boolean;
708
715
  generateDTCVC?: boolean;
716
+ strictDLCategoryExpiry?: boolean;
709
717
  barcodeParserType?: number;
710
718
  perspectiveAngle?: number;
711
719
  minDPI?: number;
@@ -724,7 +732,6 @@ export declare class ProcessParams {
724
732
  dateFormat?: string;
725
733
  scenario?: string;
726
734
  captureButtonScenario?: string;
727
- sessionLogFolder?: string;
728
735
  timeout?: number;
729
736
  timeoutFromFirstDetect?: number;
730
737
  timeoutFromFirstDocType?: number;
@@ -900,29 +907,13 @@ export declare class EIDDataGroups {
900
907
  DG21?: boolean;
901
908
  static fromJson(jsonObject?: any): EIDDataGroups | undefined;
902
909
  }
903
- export declare class DTCDataGroups {
904
- DG1?: boolean;
905
- DG2?: boolean;
906
- DG3?: boolean;
907
- DG4?: boolean;
908
- DG5?: boolean;
909
- DG6?: boolean;
910
- DG7?: boolean;
911
- DG8?: boolean;
912
- DG9?: boolean;
913
- DG10?: boolean;
914
- DG11?: boolean;
915
- DG12?: boolean;
916
- DG13?: boolean;
917
- DG14?: boolean;
918
- DG15?: boolean;
919
- DG16?: boolean;
910
+ export declare class DTCDataGroup {
920
911
  DG17?: boolean;
921
912
  DG18?: boolean;
922
913
  DG22?: boolean;
923
914
  DG23?: boolean;
924
915
  DG24?: boolean;
925
- static fromJson(jsonObject?: any): DTCDataGroups | undefined;
916
+ static fromJson(jsonObject?: any): DTCDataGroup | undefined;
926
917
  }
927
918
  export declare class RFIDScenario {
928
919
  paceStaticBinding?: boolean;
@@ -961,6 +952,8 @@ export declare class RFIDScenario {
961
952
  proceedReadingAlways?: boolean;
962
953
  readDTC?: boolean;
963
954
  mrzStrictCheck?: boolean;
955
+ loadCRLFromRemote?: boolean;
956
+ independentSODStatus?: boolean;
964
957
  readingBuffer?: number;
965
958
  onlineTAToSignDataType?: number;
966
959
  defaultReadingBufferSize?: number;
@@ -980,7 +973,7 @@ export declare class RFIDScenario {
980
973
  eDLDataGroups?: EDLDataGroups;
981
974
  ePassportDataGroups?: EPassportDataGroups;
982
975
  eIDDataGroups?: EIDDataGroups;
983
- dtcDataGroups?: DTCDataGroups;
976
+ dtcDataGroups?: DTCDataGroup;
984
977
  static fromJson(jsonObject?: any): RFIDScenario | undefined;
985
978
  }
986
979
  export declare class PrepareProgress {
@@ -1546,6 +1539,7 @@ export declare const ViewContentMode: {
1546
1539
  };
1547
1540
  export declare const BarcodeResult: {
1548
1541
  NO_ERR: number;
1542
+ INVALID_RESULT: number;
1549
1543
  NULL_PTR_ERR: number;
1550
1544
  BAD_ARG_ERR: number;
1551
1545
  SIZE_ERR: number;
@@ -1711,6 +1705,7 @@ export declare const eCheckDiagnose: {
1711
1705
  OCR_QUALITY_INVALID_FONT: number;
1712
1706
  OCR_QUALITY_INVALID_BACKGROUND: number;
1713
1707
  LAS_INK_INVALID_LINES_FREQUENCY: number;
1708
+ DOC_LIVENESS_DOCUMENT_NOT_LIVE: number;
1714
1709
  CHD_DOC_LIVENESS_BLACK_AND_WHITE_COPY_DETECTED: number;
1715
1710
  DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED: number;
1716
1711
  DOC_LIVENESS_INVALID_BARCODE_BACKGROUND: number;
@@ -2011,6 +2006,7 @@ export declare const eImageQualityCheckType: {
2011
2006
  IQC_PORTRAIT: number;
2012
2007
  IQC_HANDWRITTEN: number;
2013
2008
  IQC_BRIGHTNESS: number;
2009
+ IQC_OCCLUSION: number;
2014
2010
  };
2015
2011
  export declare const MRZFormat: {
2016
2012
  FORMAT_1X30: string;
@@ -3174,6 +3170,8 @@ export declare const eVisualFieldType: {
3174
3170
  FT_DIGITAL_TRAVEL_AUTHORIZATION_NUMBER: number;
3175
3171
  FT_DATE_OF_FIRST_POSITIVE_TEST_RESULT: number;
3176
3172
  FT_EF_CARD_ACCESS: number;
3173
+ FT_SHORT_FLIGHT_NUMBER: number;
3174
+ FT_AIRLINE_CODE: number;
3177
3175
  };
3178
3176
  export declare const DocReaderOrientation: {
3179
3177
  ALL: number;
@@ -3933,6 +3931,7 @@ export declare const Enum: {
3933
3931
  };
3934
3932
  BarcodeResult: {
3935
3933
  NO_ERR: number;
3934
+ INVALID_RESULT: number;
3936
3935
  NULL_PTR_ERR: number;
3937
3936
  BAD_ARG_ERR: number;
3938
3937
  SIZE_ERR: number;
@@ -4098,6 +4097,7 @@ export declare const Enum: {
4098
4097
  OCR_QUALITY_INVALID_FONT: number;
4099
4098
  OCR_QUALITY_INVALID_BACKGROUND: number;
4100
4099
  LAS_INK_INVALID_LINES_FREQUENCY: number;
4100
+ DOC_LIVENESS_DOCUMENT_NOT_LIVE: number;
4101
4101
  CHD_DOC_LIVENESS_BLACK_AND_WHITE_COPY_DETECTED: number;
4102
4102
  DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED: number;
4103
4103
  DOC_LIVENESS_INVALID_BARCODE_BACKGROUND: number;
@@ -4398,6 +4398,7 @@ export declare const Enum: {
4398
4398
  IQC_PORTRAIT: number;
4399
4399
  IQC_HANDWRITTEN: number;
4400
4400
  IQC_BRIGHTNESS: number;
4401
+ IQC_OCCLUSION: number;
4401
4402
  };
4402
4403
  MRZFormat: {
4403
4404
  FORMAT_1X30: string;
@@ -5561,6 +5562,8 @@ export declare const Enum: {
5561
5562
  FT_DIGITAL_TRAVEL_AUTHORIZATION_NUMBER: number;
5562
5563
  FT_DATE_OF_FIRST_POSITIVE_TEST_RESULT: number;
5563
5564
  FT_EF_CARD_ACCESS: number;
5565
+ FT_SHORT_FLIGHT_NUMBER: number;
5566
+ FT_AIRLINE_CODE: number;
5564
5567
  };
5565
5568
  DocReaderOrientation: {
5566
5569
  ALL: number;
@@ -6062,9 +6065,10 @@ export declare class DocumentReaderOriginal extends AwesomeCordovaNativePlugin {
6062
6065
  /**
6063
6066
  * Connects to ble device
6064
6067
  *
6068
+ * @param {string} btDeviceName
6065
6069
  * @return {Promise<any>} Returns a promise
6066
6070
  */
6067
- connectBluetoothDevice(): Promise<any>;
6071
+ connectBluetoothDevice(btDeviceName: string): Promise<any>;
6068
6072
  /**
6069
6073
  *
6070
6074
  *