@scandit/web-datacapture-id 7.5.1 → 7.6.0

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.
Files changed (50) hide show
  1. package/build/js/DataConsistencyVerifier.d.ts +3 -0
  2. package/build/js/IdCapture.d.ts +8 -0
  3. package/build/js/IdCaptureSettings.d.ts +3 -0
  4. package/build/js/SerializedTypes.d.ts +14 -0
  5. package/build/js/captured-id/CapturedId.d.ts +6 -0
  6. package/build/js/captured-id/MRZResult.d.ts +8 -0
  7. package/build/js/document/RegionSpecificSubtype.d.ts +2 -1
  8. package/build/js/index.js +5 -5
  9. package/build/js/worker/IdCaptureMode.d.ts +4 -1
  10. package/build/js/worker/dataCaptureEngine.d.ts +3 -0
  11. package/build/js/worker/dataCaptureWorkerRelated.d.ts +23 -4
  12. package/package.json +2 -2
  13. package/sdc-lib/idcapture/7.6.0/resources/centaurus-worker.js +6 -0
  14. package/sdc-lib/idcapture/{7.5.1/resources/lightweight/advanced-threads → 7.6.0/resources/lightweight/advanced}/Centaurus.data +0 -0
  15. package/sdc-lib/idcapture/7.6.0/resources/lightweight/advanced/Centaurus.js +1 -0
  16. package/sdc-lib/idcapture/7.6.0/resources/lightweight/advanced/Centaurus.wasm +0 -0
  17. package/sdc-lib/idcapture/{7.5.1/resources/lightweight/advanced → 7.6.0/resources/lightweight/advanced-threads}/Centaurus.data +0 -0
  18. package/sdc-lib/idcapture/7.6.0/resources/lightweight/advanced-threads/Centaurus.js +1 -0
  19. package/sdc-lib/idcapture/7.6.0/resources/lightweight/advanced-threads/Centaurus.wasm +0 -0
  20. package/sdc-lib/idcapture/{7.5.1 → 7.6.0}/resources/lightweight/basic/Centaurus.data +0 -0
  21. package/sdc-lib/idcapture/7.6.0/resources/lightweight/basic/Centaurus.js +1 -0
  22. package/sdc-lib/idcapture/7.6.0/resources/lightweight/basic/Centaurus.wasm +0 -0
  23. package/sdc-lib/resources/models/barcode_ocr_fallback_ocr_default.8c2870b758fd.model +0 -0
  24. package/sdc-lib/resources/models/barcode_ocr_fallback_ocr_detector_default.9e7b3e9f0b6c.model +0 -0
  25. package/sdc-lib/resources/models/id_ocr.1740d002ffbf.model +0 -0
  26. package/sdc-lib/resources/models/ocr_barcode_semantics_default.8c2870b758fd.model +0 -0
  27. package/sdc-lib/resources/models/ocr_mrz_default.8b80192212c2.model +0 -0
  28. package/sdc-lib/resources/models/ocr_price_label_default.1d18eb896da3.model +0 -0
  29. package/sdc-lib/scandit-datacapture-sdk-id-pthreads.js +1 -1
  30. package/sdc-lib/scandit-datacapture-sdk-id-pthreads.wasm +0 -0
  31. package/sdc-lib/scandit-datacapture-sdk-id-simd-pthreads.js +1 -1
  32. package/sdc-lib/scandit-datacapture-sdk-id-simd-pthreads.wasm +0 -0
  33. package/sdc-lib/scandit-datacapture-sdk-id-simd.js +1 -1
  34. package/sdc-lib/scandit-datacapture-sdk-id-simd.wasm +0 -0
  35. package/sdc-lib/scandit-datacapture-sdk-id.js +1 -1
  36. package/sdc-lib/scandit-datacapture-sdk-id.wasm +0 -0
  37. package/sdc-lib/idcapture/7.5.1/resources/centaurus-worker.js +0 -6
  38. package/sdc-lib/idcapture/7.5.1/resources/lightweight/advanced/Centaurus.js +0 -1
  39. package/sdc-lib/idcapture/7.5.1/resources/lightweight/advanced/Centaurus.wasm +0 -0
  40. package/sdc-lib/idcapture/7.5.1/resources/lightweight/advanced-threads/Centaurus.js +0 -1
  41. package/sdc-lib/idcapture/7.5.1/resources/lightweight/advanced-threads/Centaurus.wasm +0 -0
  42. package/sdc-lib/idcapture/7.5.1/resources/lightweight/advanced-threads/Centaurus.worker.js +0 -1
  43. package/sdc-lib/idcapture/7.5.1/resources/lightweight/basic/Centaurus.js +0 -1
  44. package/sdc-lib/idcapture/7.5.1/resources/lightweight/basic/Centaurus.wasm +0 -0
  45. package/sdc-lib/resources/models/barcode_ocr_fallback_ocr_default.4df1cd250f2d.model +0 -0
  46. package/sdc-lib/resources/models/barcode_ocr_fallback_ocr_detector_default.d02cb8506d3f.model +0 -0
  47. package/sdc-lib/resources/models/id_ocr.f42a207632c0.model +0 -0
  48. package/sdc-lib/resources/models/ocr_barcode_semantics_default.f48356d94444.model +0 -0
  49. package/sdc-lib/resources/models/ocr_mrz_default.050ddaa9b833.model +0 -0
  50. package/sdc-lib/resources/models/ocr_price_label_default.ff089db78a2c.model +0 -0
@@ -1,6 +1,9 @@
1
1
  import type { DataCaptureContext } from "@scandit/web-datacapture-core";
2
2
  import type { CapturedId } from "./captured-id/CapturedId";
3
3
  import { DataConsistencyResult } from "./captured-id/DataConsistencyResult";
4
+ /**
5
+ * @deprecated Replaced by IdCaptureSettings.RejectInconsistentData
6
+ */
4
7
  export declare class DataConsistencyVerifier {
5
8
  private _context;
6
9
  private constructor();
@@ -10,6 +10,7 @@ type IdCaptureJSON = DataCaptureModeJSON<IdCaptureSettingsJSON & {
10
10
  licenseKey: string;
11
11
  }>;
12
12
  export declare const STATE: {
13
+ readonly Initializing: "Initializing";
13
14
  readonly Available: "Available";
14
15
  readonly ProcessingFrame: "ProcessingFrame";
15
16
  readonly ProcessingQueue: "ProcessingQueue";
@@ -45,7 +46,14 @@ export declare class IdCapture implements DataCaptureMode, Serializable<IdCaptur
45
46
  reset(): Promise<void>;
46
47
  applySettings(settings: IdCaptureSettings): Promise<void>;
47
48
  parse(code: string): Promise<CapturedId | null>;
49
+ setExternalTransactionId(transactionId: string | null): Promise<void>;
50
+ getExternalTransactionId(): Promise<string | null>;
48
51
  toJSONObject(): IdCaptureJSON;
52
+ /**
53
+ * Reflects if enableVIZDocuments was enabled in the IdCaptureLoaderOptions.
54
+ */
55
+ private shouldEnableCentaurus;
56
+ private initCentaurusConnector;
49
57
  private onSDCResetDone;
50
58
  /**
51
59
  * Called when the context has changed source.
@@ -36,6 +36,9 @@ export declare class IdCaptureSettings implements Serializable<IdCaptureSettings
36
36
  rejectInconsistentData: boolean;
37
37
  rejectHolderBelowAge: number | null;
38
38
  rejectIdsExpiringIn: Duration | null;
39
+ /**
40
+ * @deprecated 7.6.0 This setting is deprecated and will be removed in SDK version 8.0. A replacement API will be introduced in version 8.0.
41
+ */
39
42
  decodeMobileDriverLicenseViz: boolean;
40
43
  notifyOnSideCapture: boolean;
41
44
  private properties;
@@ -209,6 +209,8 @@ export interface MRZResultJSON extends CommonFieldsJSON {
209
209
  namesAreTruncated: boolean;
210
210
  optional: string | null;
211
211
  optional1: string | null;
212
+ optionalDataInLine1: string | null;
213
+ optionalDataInLine2: string | null;
212
214
  capturedMrz: string;
213
215
  personalIdNumber: string | null;
214
216
  renewalTimes: number | null;
@@ -292,4 +294,16 @@ export interface DurationJSON {
292
294
  months: number;
293
295
  years: number;
294
296
  }
297
+ export interface CentaurusSettingsJSON {
298
+ filter: {
299
+ enableBarcodeId: boolean;
300
+ enableFullDocumentRecognition: boolean;
301
+ enableMrzId: boolean;
302
+ enableMrzPassport: boolean;
303
+ enableMrzVisa: boolean;
304
+ enablePhotoId: boolean;
305
+ };
306
+ scanUnsupportedBack: boolean;
307
+ skipImagesOccludedByHand: boolean;
308
+ }
295
309
  export {};
@@ -20,7 +20,13 @@ export declare class CapturedId implements Serializable<CapturedIdJSON> {
20
20
  get lastName(): string | null;
21
21
  get secondaryLastName(): string | null;
22
22
  get fullName(): string;
23
+ /**
24
+ * @deprecated This property will be replaced in SDK version 8.0 with a single sex property that returns an optional Sex.
25
+ */
23
26
  get sexType(): Sex;
27
+ /**
28
+ * @deprecated This property will be replaced in SDK version 8.0 with a single sex property that returns an optional Sex.
29
+ */
24
30
  get sex(): string | null;
25
31
  get dateOfBirth(): DateResult | null;
26
32
  get age(): number | null;
@@ -5,8 +5,16 @@ export declare class MRZResult implements Serializable<MRZResultJSON> {
5
5
  protected json: MRZResultJSON;
6
6
  get documentCode(): string;
7
7
  get namesAreTruncated(): boolean;
8
+ /**
9
+ * @deprecated Use optionalDataInLine1 and optionalDataInLine2 instead. This property will be removed in SDK version 8.0.
10
+ */
8
11
  get optional(): string | null;
12
+ /**
13
+ * @deprecated Use optionalDataInLine1 and optionalDataInLine2 instead. This property will be removed in SDK version 8.0.
14
+ */
9
15
  get optional1(): string | null;
16
+ get optionalDataInLine1(): string | null;
17
+ get optionalDataInLine2(): string | null;
10
18
  get capturedMrz(): string;
11
19
  get personalIdNumber(): string | null;
12
20
  get renewalTimes(): number | null;
@@ -63,5 +63,6 @@ export declare enum RegionSpecificSubtype {
63
63
  UsMunicipalId = "usMunicipalId",
64
64
  AustraliaAsicCard = "australiaAsicCard",
65
65
  UaeVehicleRegistrationCard = "uaeVehicleRegistrationCard",
66
- UaeEsaadCard = "uaeEsaadCard"
66
+ UaeEsaadCard = "uaeEsaadCard",
67
+ UkMilitaryId = "ukMilitaryId"
67
68
  }