Skip to content

Commit 60b7880

Browse files
authored
5.3.0.beta1 (#10)
1 parent 8c38935 commit 60b7880

File tree

13 files changed

+223
-12
lines changed

13 files changed

+223
-12
lines changed

src/.openapi-generator/FILES

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ models/container-list.ts
77
models/cross-source-value-comparison.ts
88
models/details-optical.ts
99
models/details-rfid.ts
10+
models/device-info.ts
1011
models/doc-visual-extended-field.ts
1112
models/doc-visual-extended-info.ts
1213
models/document-format.ts
@@ -17,6 +18,7 @@ models/document-type.ts
1718
models/document-types-candidates-list.ts
1819
models/document-types-candidates-result-all-of.ts
1920
models/document-types-candidates-result.ts
21+
models/fdsidlist.ts
2022
models/graphic-field-type.ts
2123
models/graphic-field.ts
2224
models/graphic-fields-list.ts
@@ -66,7 +68,6 @@ models/text-field.ts
6668
models/text-result-all-of.ts
6769
models/text-result.ts
6870
models/text.ts
69-
models/tfdsidlist.ts
7071
models/transaction-info.ts
7172
models/verification-result.ts
7273
models/verified-field-map.ts

src/.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.0-SNAPSHOT
1+
5.0.0-beta2

src/configuration.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface ConfigurationParameters {
1717
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
1818
username?: string;
1919
password?: string;
20-
accessToken?: string | ((name?: string, scopes?: string[]) => string);
20+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
2121
basePath?: string;
2222
baseOptions?: any;
2323
}
@@ -31,14 +31,14 @@ export class Configuration {
3131
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
3232
/**
3333
* parameter for basic security
34-
*
34+
*
3535
* @type {string}
3636
* @memberof Configuration
3737
*/
3838
username?: string;
3939
/**
4040
* parameter for basic security
41-
*
41+
*
4242
* @type {string}
4343
* @memberof Configuration
4444
*/
@@ -49,10 +49,10 @@ export class Configuration {
4949
* @param scopes oauth2 scope
5050
* @memberof Configuration
5151
*/
52-
accessToken?: string | ((name?: string, scopes?: string[]) => string);
52+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
5353
/**
5454
* override base path
55-
*
55+
*
5656
* @type {string}
5757
* @memberof Configuration
5858
*/

src/ext/text-field.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export class TextField implements BaseTextField {
1111

1212
// see BaseTextField for docs
1313
fieldType: TextFieldType;
14+
fieldName: string;
1415
lcid?: number;
1516

1617
status: CheckResult;
@@ -24,6 +25,7 @@ export class TextField implements BaseTextField {
2425

2526
constructor(origin: BaseTextField) {
2627
this.fieldType = origin.fieldType
28+
this.fieldName = origin.fieldName
2729
this.lcid = origin.lcid
2830
this.status = origin.status
2931
this.validityStatus = origin.validityStatus

src/models/device-info.ts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Regula Document Reader Web API
5+
* Regula Document Reader Web API
6+
*
7+
* The version of the OpenAPI document: 5.2.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
17+
/**
18+
*
19+
* @export
20+
* @interface DeviceInfo
21+
*/
22+
export interface DeviceInfo {
23+
/**
24+
*
25+
* @type {string}
26+
* @memberof DeviceInfo
27+
*/
28+
app_name?: string;
29+
/**
30+
*
31+
* @type {string}
32+
* @memberof DeviceInfo
33+
*/
34+
version?: string;
35+
/**
36+
*
37+
* @type {string}
38+
* @memberof DeviceInfo
39+
*/
40+
license_id?: string;
41+
/**
42+
*
43+
* @type {string}
44+
* @memberof DeviceInfo
45+
*/
46+
license_serial?: string;
47+
/**
48+
*
49+
* @type {string}
50+
* @memberof DeviceInfo
51+
*/
52+
valid_until?: string;
53+
/**
54+
*
55+
* @type {string}
56+
* @memberof DeviceInfo
57+
*/
58+
server_time?: string;
59+
}
60+
61+

src/models/doc-visual-extended-field.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export interface DocVisualExtendedField {
3030
* @memberof DocVisualExtendedField
3131
*/
3232
wFieldType: TextFieldType;
33+
/**
34+
* Field name. Only use to search values for fields with fieldType=50(other). In general, use wFieldType for lookup.
35+
* @type {string}
36+
* @memberof DocVisualExtendedField
37+
*/
38+
FieldName: string;
3339
/**
3440
*
3541
* @type {LCID}

src/models/fdsidlist.ts

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Regula Document Reader Web API
5+
* Regula Document Reader Web API
6+
*
7+
* The version of the OpenAPI document: 5.2.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
import { DocumentFormat } from './document-format';
17+
import { DocumentType } from './document-type';
18+
19+
/**
20+
* Extended document type info and Regula\'s \'Information Reference Systems\' links
21+
* @export
22+
* @interface FDSIDList
23+
*/
24+
export interface FDSIDList {
25+
/**
26+
* ICAO code of the issuing country
27+
* @type {string}
28+
* @memberof FDSIDList
29+
*/
30+
ICAO?: string;
31+
/**
32+
* Document identifiers in \'Information Reference Systems\'
33+
* @type {Array<number>}
34+
* @memberof FDSIDList
35+
*/
36+
List?: Array<number>;
37+
/**
38+
*
39+
* @type {DocumentType}
40+
* @memberof FDSIDList
41+
*/
42+
dType?: DocumentType;
43+
/**
44+
*
45+
* @type {DocumentFormat}
46+
* @memberof FDSIDList
47+
*/
48+
dFormat?: DocumentFormat;
49+
/**
50+
* Flag indicating the presence of MRZ on the document
51+
* @type {boolean}
52+
* @memberof FDSIDList
53+
*/
54+
dMRZ?: boolean;
55+
/**
56+
* Document description
57+
* @type {string}
58+
* @memberof FDSIDList
59+
*/
60+
dDescription?: string;
61+
/**
62+
* Year of publication of the document
63+
* @type {string}
64+
* @memberof FDSIDList
65+
*/
66+
dYear?: string;
67+
/**
68+
* Issuing country name
69+
* @type {string}
70+
* @memberof FDSIDList
71+
*/
72+
dCountryName?: string;
73+
/**
74+
* Issuing state code
75+
* @type {string}
76+
* @memberof FDSIDList
77+
*/
78+
dStateCode?: string;
79+
/**
80+
* Issuing state name
81+
* @type {string}
82+
* @memberof FDSIDList
83+
*/
84+
dStateName?: string;
85+
}
86+
87+

src/models/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export * from './container-list.js';
55
export * from './cross-source-value-comparison.js';
66
export * from './details-optical.js';
77
export * from './details-rfid.js';
8+
export * from './device-info.js';
89
export * from './doc-visual-extended-field.js';
910
export * from './doc-visual-extended-info.js';
1011
export * from './document-format.js';
@@ -15,6 +16,7 @@ export * from './document-type-recognition-result.js';
1516
export * from './document-types-candidates-list.js';
1617
export * from './document-types-candidates-result.js';
1718
export * from './document-types-candidates-result-all-of.js';
19+
export * from './fdsidlist.js';
1820
export * from './graphic-field.js';
1921
export * from './graphic-field-type.js';
2022
export * from './graphic-fields-list.js';
@@ -54,7 +56,6 @@ export * from './status-result-all-of.js';
5456
export * from './string-recognition-result.js';
5557
export * from './symbol-candidate.js';
5658
export * from './symbol-recognition-result.js';
57-
export * from './tfdsidlist.js';
5859
export * from './text.js';
5960
export * from './text-available-source.js';
6061
export * from './text-data-result.js';

src/models/one-candidate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
*/
1414

1515

16+
import { FDSIDList } from './fdsidlist';
1617
import { RfidLocation } from './rfid-location';
17-
import { TFDSIDList } from './tfdsidlist';
1818

1919
/**
2020
* Contains information about one document type candidate
@@ -48,10 +48,10 @@ export interface OneCandidate {
4848
RFID_Presence?: RfidLocation;
4949
/**
5050
*
51-
* @type {TFDSIDList}
51+
* @type {FDSIDList}
5252
* @memberof OneCandidate
5353
*/
54-
FDSIDList?: TFDSIDList;
54+
FDSIDList?: FDSIDList;
5555
/**
5656
* Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document
5757
* @type {number}

src/models/process-params.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ export interface ProcessParams {
7171
* @memberof ProcessParams
7272
*/
7373
customParams?: { [key: string]: object; };
74+
/**
75+
* This option can be set to true if you need to get base64 string of transaction processing log.
76+
* @type {boolean}
77+
* @memberof ProcessParams
78+
*/
79+
log?: boolean;
80+
/**
81+
* Force use of specific template ID and skip document type identification step.
82+
* @type {number}
83+
* @memberof ProcessParams
84+
*/
85+
forceDocID?: number;
7486
}
7587

7688

0 commit comments

Comments
 (0)