Skip to content

Commit e64e7b2

Browse files
SP-18211 - update models
1 parent fc1c151 commit e64e7b2

10 files changed

+24
-36
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/ocrsecurity-text-item.ts

Lines changed: 8 additions & 5 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}

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/process-params.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
import type { AuthParams } from './auth-params';
1919
// May contain unused imports in some cases
2020
// @ts-ignore
21-
import type { AuthenticityResultType } from './authenticity-result-type';
22-
// May contain unused imports in some cases
23-
// @ts-ignore
2421
import type { DocumentFormat } from './document-format';
2522
// May contain unused imports in some cases
2623
// @ts-ignore
@@ -355,10 +352,10 @@ export interface ProcessParams {
355352
'documentGroupFilter'?: Array<DocumentType>;
356353
/**
357354
*
358-
* @type {AuthenticityResultType}
355+
* @type {number}
359356
* @memberof ProcessParams
360357
*/
361-
'processAuth'?: AuthenticityResultType;
358+
'processAuth'?: number;
362359
/**
363360
* This parameter is used to specify the document reader device type from which input images were captured. Default 0.
364361
* @type {number}

src/models/process-request.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
import type { ContainerList } from './container-list';
1919
// May contain unused imports in some cases
2020
// @ts-ignore
21-
import type { LCID } from './lcid';
22-
// May contain unused imports in some cases
23-
// @ts-ignore
2421
import type { ProcessParams } from './process-params';
2522
// May contain unused imports in some cases
2623
// @ts-ignore
@@ -107,11 +104,5 @@ export interface ProcessRequest {
107104
* @memberof ProcessRequest
108105
*/
109106
'ImageUrls'?: Array<string>;
110-
/**
111-
* The list of LCID types to recognize. If empty, values with all LCID types will be extracted. Empty by default.
112-
* @type {Array<LCID>}
113-
* @memberof ProcessRequest
114-
*/
115-
'lcidFilter'?: Array<LCID>;
116107
}
117108

src/models/result.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ export enum Result {
122122
*/
123123
LICENSE = 50,
124124
/**
125-
* Contains result of DocumentPosition
125+
* Contains result of MRZ position
126126
*/
127127
MRZ_POSITION = 61,
128128
/**
129-
* Contains result of DocumentPosition
129+
* Contains result of barcode position
130130
*/
131131
BARCODE_POSITION = 62,
132132
/**

src/models/rfiderror-codes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ export enum RFIDErrorCodes {
468468
/**
469469
* RFID: Failed
470470
*/
471-
RFID_ERROR_FAILED = 4294967295,
471+
RFID_ERROR_FAILED = -1,
472472
/**
473473
* RFID: No error
474474
*/

src/models/security-feature-item.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ export interface SecurityFeatureItem {
6565
* @memberof SecurityFeatureItem
6666
*/
6767
'AreaList'?: AreaContainer;
68-
/**
69-
*
70-
* @type {number}
71-
* @memberof SecurityFeatureItem
72-
*/
73-
'Result'?: number;
7468
/**
7569
*
7670
* @type {number}

src/models/verified-field-map.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ export interface VerifiedFieldMap {
7171
* @memberof VerifiedFieldMap
7272
*/
7373
'Matrix': Array<VerificationResult>;
74-
/**
75-
*
76-
* @type {number}
77-
* @memberof VerifiedFieldMap
78-
*/
79-
'FieldType'?: number;
8074
}
8175

8276

0 commit comments

Comments
 (0)