@regulaforensics/vp-frontend-document-components 7.5.1960-nightly → 7.5.1962-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.d.ts +8 -14
- package/dist/main.iife.js +23 -23
- package/dist/main.js +3440 -3455
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ProcessResponse } from '@regulaforensics/document-reader-webclient';
|
|
|
7
7
|
import { Response as Response_2 } from '@regulaforensics/document-reader-webclient';
|
|
8
8
|
import { Result } from '@regulaforensics/document-reader-webclient';
|
|
9
9
|
import { TextFieldType } from '@regulaforensics/document-reader-webclient';
|
|
10
|
+
import { TransactionInfo } from '@regulaforensics/document-reader-webclient';
|
|
10
11
|
|
|
11
12
|
export declare interface BaseRequest {
|
|
12
13
|
tag?: string;
|
|
@@ -223,9 +224,7 @@ export declare interface DocumentReaderProcessParam {
|
|
|
223
224
|
};
|
|
224
225
|
}
|
|
225
226
|
|
|
226
|
-
export declare type DocumentReaderResponseType = Response_2
|
|
227
|
-
TransactionInfo?: TransactionInfo;
|
|
228
|
-
};
|
|
227
|
+
export declare type DocumentReaderResponseType = Response_2;
|
|
229
228
|
|
|
230
229
|
export declare class DocumentReaderService {
|
|
231
230
|
private _worker;
|
|
@@ -233,12 +232,12 @@ export declare class DocumentReaderService {
|
|
|
233
232
|
private _initializeListener;
|
|
234
233
|
private _processingListener;
|
|
235
234
|
private _queueService;
|
|
235
|
+
private _initProcess;
|
|
236
236
|
onFinalize: TOnFinalize | null;
|
|
237
237
|
isAutoPrepare: boolean;
|
|
238
238
|
isPrepared: boolean;
|
|
239
239
|
isInitialized: boolean;
|
|
240
240
|
isProcessing: boolean;
|
|
241
|
-
_initProcess: Promise<License> | null;
|
|
242
241
|
initData: License | null;
|
|
243
242
|
recognizerProcessParam: ProcessingRequest;
|
|
244
243
|
imageProcessParam: ImageProcessingRequest;
|
|
@@ -269,7 +268,7 @@ export declare class DocumentReaderService {
|
|
|
269
268
|
startNewPage(): Promise<void>;
|
|
270
269
|
startNewDocument(metadata?: Record<string, any>): Promise<NewTransaction>;
|
|
271
270
|
createBackendTransaction(metadata?: Record<string, any>): Promise<NewTransaction>;
|
|
272
|
-
finalizePackage(): Promise<
|
|
271
|
+
finalizePackage(): Promise<TransactionIdentifier>;
|
|
273
272
|
addDataToPackage(data: Uint8ClampedArray, params: PackageParams): Promise<void>;
|
|
274
273
|
shutdown(): void;
|
|
275
274
|
}
|
|
@@ -507,13 +506,7 @@ export declare enum MirrorType {
|
|
|
507
506
|
|
|
508
507
|
export declare interface NewTransaction {
|
|
509
508
|
ContainerList: ContainerList;
|
|
510
|
-
TransactionInfo:
|
|
511
|
-
ComputerName: string;
|
|
512
|
-
DateTime: string;
|
|
513
|
-
SystemInfo: string;
|
|
514
|
-
Tag: string;
|
|
515
|
-
TransactionID: string;
|
|
516
|
-
};
|
|
509
|
+
TransactionInfo: TransactionInfo;
|
|
517
510
|
sessionLogFolder: string;
|
|
518
511
|
}
|
|
519
512
|
|
|
@@ -564,7 +557,7 @@ declare type TInitializeListener = ({ isInitialized }: {
|
|
|
564
557
|
isInitialized: boolean;
|
|
565
558
|
}) => void;
|
|
566
559
|
|
|
567
|
-
declare type TOnFinalize = (transaction:
|
|
560
|
+
declare type TOnFinalize = (transaction: TransactionIdentifier) => void;
|
|
568
561
|
|
|
569
562
|
declare type TPrepareListener = ({ isPrepared }: {
|
|
570
563
|
isPrepared: boolean;
|
|
@@ -579,7 +572,8 @@ export declare interface TransactionEvent {
|
|
|
579
572
|
data: GetTransactionsByTagResponse;
|
|
580
573
|
}
|
|
581
574
|
|
|
582
|
-
export declare interface
|
|
575
|
+
export declare interface TransactionIdentifier {
|
|
576
|
+
metadata?: unknown;
|
|
583
577
|
tag: string;
|
|
584
578
|
transactionId: string;
|
|
585
579
|
}
|