Skip to content

Commit 898d6f9

Browse files
Merge pull request #231 from regulaforensics/develop
Develop -> Stable
2 parents fc1c151 + c8dfd8c commit 898d6f9

25 files changed

+845
-385
lines changed

src/models/authenticity-check-result-list-inner.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ import type { SecurityFeatureResult } from './security-feature-result';
6060
import type { SecurityFeatureType } from './security-feature-type';
6161
// May contain unused imports in some cases
6262
// @ts-ignore
63+
import type { TextFieldType } from './text-field-type';
64+
// May contain unused imports in some cases
65+
// @ts-ignore
6366
import type { Visibility } from './visibility';
6467

6568
/**

src/models/certificate-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export interface CertificateData {
2828
'Data': string;
2929
/**
3030
*
31-
* @type {string}
31+
* @type {number}
3232
* @memberof CertificateData
3333
*/
34-
'Length': string;
34+
'Length': number;
3535
}
3636

src/models/fiber-item.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ export interface FiberItem {
8080
* @memberof FiberItem
8181
*/
8282
'ColorValues': Array<number>;
83-
/**
84-
*
85-
* @type {number}
86-
* @memberof FiberItem
87-
*/
88-
'ErrorCode'?: number;
8983
}
9084

9185

src/models/ident-item.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ export interface IdentItem {
7777
* @memberof IdentItem
7878
*/
7979
'ElementID'?: number;
80-
/**
81-
*
82-
* @type {number}
83-
* @memberof IdentItem
84-
*/
85-
'Result'?: number;
8680
}
8781

8882

src/models/light.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ export enum Light {
2626
*/
2727
OFF = 0,
2828
/**
29+
* Upper/lower lighters of white light scheme
30+
*/
31+
WHITE_TOP = 2,
32+
/**
33+
* Side lighters of white light scheme
34+
*/
35+
WHITE_SIDE = 4,
36+
/**
2937
* White
3038
*/
3139
WHITE = 6,
@@ -38,9 +46,9 @@ export enum Light {
3846
*/
3947
UV = 128,
4048
/**
41-
* Right and left lighters of white coaxial light scheme
49+
* White coaxial
4250
*/
43-
AXIAL_WHITE_FULL = 3072
51+
AXIAL_WHITE = 3072
4452
}
4553

4654

src/models/ocrsecurity-text-item.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ import type { Light } from './light';
2222
// May contain unused imports in some cases
2323
// @ts-ignore
2424
import type { RectangleCoordinates } from './rectangle-coordinates';
25+
// May contain unused imports in some cases
26+
// @ts-ignore
27+
import type { TextFieldType } from './text-field-type';
2528

2629
/**
2730
*
@@ -48,23 +51,23 @@ export interface OCRSecurityTextItem {
4851
*/
4952
'FieldRect': RectangleCoordinates;
5053
/**
51-
*
54+
* Same as Result type, but used for safe parsing of not-described values. See Result type.
5255
* @type {number}
5356
* @memberof OCRSecurityTextItem
5457
*/
5558
'EtalonResultType': number;
5659
/**
5760
*
58-
* @type {number}
61+
* @type {TextFieldType}
5962
* @memberof OCRSecurityTextItem
6063
*/
61-
'EtalonFieldType': number;
64+
'EtalonFieldType': TextFieldType;
6265
/**
6366
*
64-
* @type {number}
67+
* @type {Light}
6568
* @memberof OCRSecurityTextItem
6669
*/
67-
'EtalonLightType': number;
70+
'EtalonLightType': Light;
6871
/**
6972
*
7073
* @type {RectangleCoordinates}
@@ -83,12 +86,6 @@ export interface OCRSecurityTextItem {
8386
* @memberof OCRSecurityTextItem
8487
*/
8588
'EtalonResultOCR': string;
86-
/**
87-
*
88-
* @type {number}
89-
* @memberof OCRSecurityTextItem
90-
*/
91-
'ResultCode'?: number;
9289
/**
9390
*
9491
* @type {number}

src/models/ocrsecurity-text-result.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ import type { OCRSecurityTextItem } from './ocrsecurity-text-item';
3737
// May contain unused imports in some cases
3838
// @ts-ignore
3939
import type { RectangleCoordinates } from './rectangle-coordinates';
40+
// May contain unused imports in some cases
41+
// @ts-ignore
42+
import type { TextFieldType } from './text-field-type';
4043

4144
/**
4245
* @type OCRSecurityTextResult

src/models/parray-field.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ import type { BcROIDETECT } from './bc-roidetect';
2525
// May contain unused imports in some cases
2626
// @ts-ignore
2727
import type { DataModule } from './data-module';
28+
// May contain unused imports in some cases
29+
// @ts-ignore
30+
import type { TextFieldType } from './text-field-type';
2831

2932
/**
3033
*
@@ -76,10 +79,10 @@ export interface PArrayField {
7679
'bcTextDecoderTypes'?: number;
7780
/**
7881
*
79-
* @type {number}
82+
* @type {TextFieldType}
8083
* @memberof PArrayField
8184
*/
82-
'bcTextFieldType'?: number;
85+
'bcTextFieldType'?: TextFieldType;
8386
/**
8487
*
8588
* @type {BarcodeType}

src/models/parsing-error-codes.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,38 @@ export enum ParsingErrorCodes {
142142
*/
143143
errLDS_ASN_SignerInfo_UnsignedAttrs_IncorrectData = 2147483687,
144144
/**
145+
* ASN DTC Signer info: Incorrect data
146+
*/
147+
errLDS_ASN_DTC_SignerInfo_IncorrectData = 2147483712,
148+
/**
149+
* ASN DTC Signer info: Certificate incorrect data
150+
*/
151+
errLDS_ASN_DTC_SignerInfo_Certificate_IncorrectData = 2147483713,
152+
/**
153+
* ASN DTC Signer info: Digest algorithms incorrect data
154+
*/
155+
errLDS_ASN_DTC_SignerInfo_DigestAlg_IncorrectData = 2147483714,
156+
/**
157+
* ASN DTC Signer info: Signed attributes incorrect data
158+
*/
159+
errLDS_ASN_DTC_SignerInfo_SignedAttrs_IncorrectData = 2147483715,
160+
/**
161+
* ASN DTC Signer info: Sign algorithms incorrect data
162+
*/
163+
errLDS_ASN_DTC_SignerInfo_SignAlg_IncorrectData = 2147483716,
164+
/**
165+
* ASN DTC Signer info: Signature incorrect data
166+
*/
167+
errLDS_ASN_DTC_SignerInfo_Signature_IncorrectData = 2147483717,
168+
/**
169+
* ASN DTC Security info: Incorrect data
170+
*/
171+
errLDS_ASN_DTC_SecurityInfo_IncorrectData = 2147483718,
172+
/**
173+
* ASN DTC Content info: Incorrect data
174+
*/
175+
errLDS_ASN_DTC_ContentInfo_IncorrectData = 2147483719,
176+
/**
145177
* ICAO LDS object: Unsupported digest algorithm
146178
*/
147179
errLDS_ICAO_LDSObject_UnsupportedDigestAlgorithm = 2147483696,

0 commit comments

Comments
 (0)