@regulaforensics/document-reader-webclient 8.4.583-rc → 8.4.584-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.
- package/dist/index.cjs +6 -6
- package/dist/index.d.ts +132 -9
- package/dist/index.js +986 -929
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { AxiosResponse } from 'axios';
|
|
3
|
+
import { RawAxiosRequestConfig } from 'axios';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
@@ -1612,6 +1613,118 @@ export declare interface CrossSourceValueComparison {
|
|
|
1612
1613
|
'status': CheckResult;
|
|
1613
1614
|
}
|
|
1614
1615
|
|
|
1616
|
+
/**
|
|
1617
|
+
*
|
|
1618
|
+
* @export
|
|
1619
|
+
* @interface DatabaseDocument
|
|
1620
|
+
*/
|
|
1621
|
+
export declare interface DatabaseDocument {
|
|
1622
|
+
/**
|
|
1623
|
+
* Whether the document has a barcode.
|
|
1624
|
+
* @type {boolean}
|
|
1625
|
+
* @memberof DatabaseDocument
|
|
1626
|
+
*/
|
|
1627
|
+
'barcode_fields': boolean;
|
|
1628
|
+
/**
|
|
1629
|
+
* Country name.
|
|
1630
|
+
* @type {string}
|
|
1631
|
+
* @memberof DatabaseDocument
|
|
1632
|
+
*/
|
|
1633
|
+
'country': string;
|
|
1634
|
+
/**
|
|
1635
|
+
* Date when the document description was created in the database.
|
|
1636
|
+
* @type {string}
|
|
1637
|
+
* @memberof DatabaseDocument
|
|
1638
|
+
*/
|
|
1639
|
+
'createad': string;
|
|
1640
|
+
/**
|
|
1641
|
+
*
|
|
1642
|
+
* @type {DocumentType}
|
|
1643
|
+
* @memberof DatabaseDocument
|
|
1644
|
+
*/
|
|
1645
|
+
'doc_type': DocumentType_2;
|
|
1646
|
+
/**
|
|
1647
|
+
* Document name.
|
|
1648
|
+
* @type {string}
|
|
1649
|
+
* @memberof DatabaseDocument
|
|
1650
|
+
*/
|
|
1651
|
+
'document': string;
|
|
1652
|
+
/**
|
|
1653
|
+
* The presence of graphic fields in the document.
|
|
1654
|
+
* @type {boolean}
|
|
1655
|
+
* @memberof DatabaseDocument
|
|
1656
|
+
*/
|
|
1657
|
+
'graphic_fields': boolean;
|
|
1658
|
+
/**
|
|
1659
|
+
* Document code.
|
|
1660
|
+
* @type {number}
|
|
1661
|
+
* @memberof DatabaseDocument
|
|
1662
|
+
*/
|
|
1663
|
+
'id': number;
|
|
1664
|
+
/**
|
|
1665
|
+
* The document has an MRZ.
|
|
1666
|
+
* @type {boolean}
|
|
1667
|
+
* @memberof DatabaseDocument
|
|
1668
|
+
*/
|
|
1669
|
+
'mrz': boolean;
|
|
1670
|
+
/**
|
|
1671
|
+
* Country region.
|
|
1672
|
+
* @type {string}
|
|
1673
|
+
* @memberof DatabaseDocument
|
|
1674
|
+
*/
|
|
1675
|
+
'region'?: string;
|
|
1676
|
+
/**
|
|
1677
|
+
* The document has an RFID chip.
|
|
1678
|
+
* @type {boolean}
|
|
1679
|
+
* @memberof DatabaseDocument
|
|
1680
|
+
*/
|
|
1681
|
+
'rfid_chip': boolean;
|
|
1682
|
+
/**
|
|
1683
|
+
* The presence of text fields in the document.
|
|
1684
|
+
* @type {boolean}
|
|
1685
|
+
* @memberof DatabaseDocument
|
|
1686
|
+
*/
|
|
1687
|
+
'text_fields': boolean;
|
|
1688
|
+
/**
|
|
1689
|
+
* Date when the document description was updated in the database.
|
|
1690
|
+
* @type {string}
|
|
1691
|
+
* @memberof DatabaseDocument
|
|
1692
|
+
*/
|
|
1693
|
+
'updated': string;
|
|
1694
|
+
/**
|
|
1695
|
+
* The year when the document was issued.
|
|
1696
|
+
* @type {string}
|
|
1697
|
+
* @memberof DatabaseDocument
|
|
1698
|
+
*/
|
|
1699
|
+
'year'?: string;
|
|
1700
|
+
/**
|
|
1701
|
+
* Guardian country.
|
|
1702
|
+
* @type {string}
|
|
1703
|
+
* @memberof DatabaseDocument
|
|
1704
|
+
*/
|
|
1705
|
+
'sovereignty'?: string;
|
|
1706
|
+
/**
|
|
1707
|
+
* Whether the document is no longer in circulation.
|
|
1708
|
+
* @type {boolean}
|
|
1709
|
+
* @memberof DatabaseDocument
|
|
1710
|
+
*/
|
|
1711
|
+
'deprecated'?: boolean;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
*
|
|
1716
|
+
* @export
|
|
1717
|
+
* @interface DatabaseDocumentList
|
|
1718
|
+
*/
|
|
1719
|
+
export declare interface DatabaseDocumentList {
|
|
1720
|
+
/**
|
|
1721
|
+
* The list of documents stored in the database.
|
|
1722
|
+
* @type {Array<DatabaseDocument>}
|
|
1723
|
+
* @memberof DatabaseDocumentList
|
|
1724
|
+
*/
|
|
1725
|
+
'items': Array<DatabaseDocument>;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1615
1728
|
/**
|
|
1616
1729
|
*
|
|
1617
1730
|
* @export
|
|
@@ -2152,28 +2265,32 @@ export declare class DocumentReaderApi {
|
|
|
2152
2265
|
private readonly healthcheckApi;
|
|
2153
2266
|
private readonly processApi;
|
|
2154
2267
|
private readonly transactionApi;
|
|
2268
|
+
private readonly resourcesApi;
|
|
2155
2269
|
private license;
|
|
2156
2270
|
constructor(configuration?: ConfigurationParameters, basePath?: string, axios?: AxiosInstance);
|
|
2157
|
-
|
|
2158
|
-
|
|
2271
|
+
doclist(options?: RawAxiosRequestConfig): Promise<DatabaseDocumentList>;
|
|
2272
|
+
ping(xRequestID?: string, options?: RawAxiosRequestConfig): Promise<DeviceInfo>;
|
|
2273
|
+
health(xRequestID?: string, options?: RawAxiosRequestConfig): Promise<Healthcheck>;
|
|
2159
2274
|
/**
|
|
2160
2275
|
*
|
|
2161
2276
|
* @summary Process list of documents images and return extracted data
|
|
2162
2277
|
* @param {ProcessRequestExt} [request] Request options such as image, results types and etc.
|
|
2278
|
+
* @param {string} xRequestID It allows the client and server to correlate each HTTP request.
|
|
2163
2279
|
* @param {*} [options] Override http request option.
|
|
2164
2280
|
* @throws {RequiredError} If some request params are missed
|
|
2165
2281
|
* */
|
|
2166
|
-
process(request: ProcessRequestExt | ProcessRequest, xRequestID?: string, options?:
|
|
2282
|
+
process(request: ProcessRequestExt | ProcessRequest, xRequestID?: string, options?: RawAxiosRequestConfig): Promise<ProcessResult>;
|
|
2167
2283
|
setLicense(license: ArrayBuffer | Base64String): void;
|
|
2168
2284
|
/**
|
|
2169
2285
|
*
|
|
2170
2286
|
* @summary Reprocess
|
|
2171
2287
|
* @param {string} transactionId Transaction id
|
|
2172
2288
|
* @param {TransactionProcessRequest} transactionProcessRequest
|
|
2289
|
+
* @param {boolean} useCache Get processed values from storage in case transaction has already processed.
|
|
2173
2290
|
* @param {*} [options] Override http request option.
|
|
2174
2291
|
* @throws {RequiredError}
|
|
2175
2292
|
*/
|
|
2176
|
-
reprocessTransaction(transactionId: string, transactionProcessRequest: TransactionProcessRequest, options?:
|
|
2293
|
+
reprocessTransaction(transactionId: string, transactionProcessRequest: TransactionProcessRequest, useCache?: boolean, options?: RawAxiosRequestConfig): Promise<AxiosResponse<TransactionProcessResult, any>>;
|
|
2177
2294
|
/**
|
|
2178
2295
|
*
|
|
2179
2296
|
* @summary Get Reprocess transaction result
|
|
@@ -2182,7 +2299,7 @@ export declare class DocumentReaderApi {
|
|
|
2182
2299
|
* @param {*} [options] Override http request option.
|
|
2183
2300
|
* @throws {RequiredError}
|
|
2184
2301
|
*/
|
|
2185
|
-
getReprocessTransactionResult(transactionId: string, withImages?: boolean, options?:
|
|
2302
|
+
getReprocessTransactionResult(transactionId: string, withImages?: boolean, options?: RawAxiosRequestConfig): Promise<ProcessResult>;
|
|
2186
2303
|
/**
|
|
2187
2304
|
*
|
|
2188
2305
|
* @summary Get transactions by tag
|
|
@@ -2190,7 +2307,7 @@ export declare class DocumentReaderApi {
|
|
|
2190
2307
|
* @param {*} [options] Override http request option.
|
|
2191
2308
|
* @throws {RequiredError}
|
|
2192
2309
|
*/
|
|
2193
|
-
getTransactionsByTag(tagId: string, options?:
|
|
2310
|
+
getTransactionsByTag(tagId: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<ListTransactionsByTagResponse>>;
|
|
2194
2311
|
/**
|
|
2195
2312
|
*
|
|
2196
2313
|
* @summary Delete Reprocess transactions by tag
|
|
@@ -2198,7 +2315,7 @@ export declare class DocumentReaderApi {
|
|
|
2198
2315
|
* @param {*} [options] Override http request option.
|
|
2199
2316
|
* @throws {RequiredError}
|
|
2200
2317
|
*/
|
|
2201
|
-
deleteReprocessTransactionsByTag(tagId: string, options?:
|
|
2318
|
+
deleteReprocessTransactionsByTag(tagId: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<object, any>>;
|
|
2202
2319
|
/**
|
|
2203
2320
|
*
|
|
2204
2321
|
* @summary Get Reprocess transaction file
|
|
@@ -2207,7 +2324,7 @@ export declare class DocumentReaderApi {
|
|
|
2207
2324
|
* @param {*} [options] Override http request option.
|
|
2208
2325
|
* @throws {RequiredError}
|
|
2209
2326
|
*/
|
|
2210
|
-
getReprocessTransactionFile(transactionId: string, name: string, options?:
|
|
2327
|
+
getReprocessTransactionFile(transactionId: string, name: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<any, any>>;
|
|
2211
2328
|
/**
|
|
2212
2329
|
*
|
|
2213
2330
|
* @summary Get Reprocess transaction data
|
|
@@ -2215,7 +2332,7 @@ export declare class DocumentReaderApi {
|
|
|
2215
2332
|
* @param {*} [options] Override http request option.
|
|
2216
2333
|
* @throws {RequiredError}
|
|
2217
2334
|
*/
|
|
2218
|
-
getReprocessTransactionData(transactionId: string, options?:
|
|
2335
|
+
getReprocessTransactionData(transactionId: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<TransactionProcessGetResponse, any>>;
|
|
2219
2336
|
}
|
|
2220
2337
|
|
|
2221
2338
|
/**
|
|
@@ -8839,6 +8956,12 @@ export declare interface ProcessParams {
|
|
|
8839
8956
|
* @memberof ProcessParams
|
|
8840
8957
|
*/
|
|
8841
8958
|
'strictSecurityChecks'?: boolean;
|
|
8959
|
+
/**
|
|
8960
|
+
* Allows transliteration to be turned on or off; by default, it is enabled.
|
|
8961
|
+
* @type {boolean}
|
|
8962
|
+
* @memberof ProcessParams
|
|
8963
|
+
*/
|
|
8964
|
+
'returnTransliteratedFields'?: boolean;
|
|
8842
8965
|
}
|
|
8843
8966
|
|
|
8844
8967
|
/**
|