@regulaforensics/idv-document 4.0.685-nightly → 4.0.687-rc

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 CHANGED
@@ -1,14 +1,13 @@
1
+ import { BaseModule } from '../../../../interfaces-idv/src';
2
+ import { FailedAssets } from '../../interfaces-idv/src';
3
+ import { IdvAsset } from '../../interfaces-idv/src';
4
+ import { IdvModuleProps } from '../../../../interfaces-idv/src';
1
5
  import { InternalScenarios } from '@regulaforensics/vp-frontend-document-components';
2
6
  import { LitElement } from 'lit';
3
7
  import { MirrorType } from '@regulaforensics/vp-frontend-document-components';
4
- import { ModuleType } from '@regulaforensics/vp-frontend-document-components';
8
+ import { ModuleType as ModuleType_2 } from '@regulaforensics/vp-frontend-document-components';
5
9
  import { TemplateResult } from 'lit-html';
6
10
 
7
- declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
8
- abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
9
- abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
10
- }
11
-
12
11
  declare type DocumentGalleryProps = {
13
12
  processParam?: {
14
13
  multipageProcessing?: boolean;
@@ -60,7 +59,7 @@ declare type DocumentModuleProps = DocumentGalleryProps | DocumentReaderProps;
60
59
  declare type DocumentModulesConfig = {
61
60
  docreader: {
62
61
  devLicense?: string;
63
- module?: ModuleType;
62
+ module?: ModuleType_2;
64
63
  };
65
64
  };
66
65
 
@@ -165,47 +164,9 @@ declare type DocumentReaderProps = {
165
164
  };
166
165
  };
167
166
 
168
- declare type FailedAssets = {
169
- imageURL: Set<string>;
170
- base64: Set<string>;
171
- blockingAssets: Set<string>;
172
- };
173
-
174
- declare type IdvAsset = {
175
- idvAsset: ImageLike;
176
- };
177
-
178
- declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
179
- isProcessing?: (isProcessing: boolean) => void;
180
- moduleProps: TModuleProps;
181
- modulesConfig?: TModulesConfig;
182
- perform: (data: any, type?: PerformType) => void;
183
- idvEventListener: (module: string, data: any, logLevel?: 'INFO' | 'DEBUG') => void;
184
- nonce?: string;
185
- };
186
-
187
- declare type ImageBase = {
188
- imageURL?: string;
189
- imageId?: string;
190
- base64?: string;
191
- prepareRequired?: boolean;
192
- failurePolicy?: ImageFailurePolicy;
193
- timeout?: number;
194
- };
195
-
196
- declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
197
-
198
- declare type ImageLike = ImageBase & {
199
- placeholderImage?: ImageLike;
200
- };
201
-
202
- export { ModuleType }
203
-
204
- declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
205
-
206
- declare const PerformTypes: {
207
- readonly FORM: "form";
208
- readonly DATA: "data";
209
- };
167
+ export declare enum ModuleType {
168
+ BarcodeMRZ = "BarcodeMRZ",
169
+ BoundsLite = "BoundsLite"
170
+ }
210
171
 
211
172
  export { }