@regulaforensics/idv-face 4.0.679-nightly → 4.0.682-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 +46 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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';
|
|
5
1
|
import { LitElement } from 'lit';
|
|
6
2
|
import { RecordingProcess } from '@regulaforensics/vp-frontend-face-components';
|
|
7
3
|
import { TemplateResult } from 'lit-html';
|
|
8
4
|
|
|
5
|
+
declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
|
|
6
|
+
abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
|
|
7
|
+
abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
|
|
8
|
+
}
|
|
9
|
+
|
|
9
10
|
export declare class FaceIdv extends LitElement implements BaseModule<FaceModuleProps, object> {
|
|
10
11
|
props: IdvModuleProps<FaceModuleProps, object> | null;
|
|
11
12
|
private renderVersion;
|
|
@@ -125,6 +126,47 @@ declare type FaceModuleProps = {
|
|
|
125
126
|
preloadAssetsRequired?: boolean;
|
|
126
127
|
};
|
|
127
128
|
|
|
129
|
+
declare type FailedAssets = {
|
|
130
|
+
imageURL: Set<string>;
|
|
131
|
+
base64: Set<string>;
|
|
132
|
+
blockingAssets: Set<string>;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
declare type IdvAsset = {
|
|
136
|
+
idvAsset: ImageLike;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
140
|
+
isProcessing?: (isProcessing: boolean) => void;
|
|
141
|
+
moduleProps: TModuleProps;
|
|
142
|
+
modulesConfig?: TModulesConfig;
|
|
143
|
+
perform: (data: any, type?: PerformType) => void;
|
|
144
|
+
idvEventListener: (module: string, data: any, logLevel?: 'INFO' | 'DEBUG') => void;
|
|
145
|
+
nonce?: string;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
declare type ImageBase = {
|
|
149
|
+
imageURL?: string;
|
|
150
|
+
imageId?: string;
|
|
151
|
+
base64?: string;
|
|
152
|
+
prepareRequired?: boolean;
|
|
153
|
+
failurePolicy?: ImageFailurePolicy;
|
|
154
|
+
timeout?: number;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
|
|
158
|
+
|
|
159
|
+
declare type ImageLike = ImageBase & {
|
|
160
|
+
placeholderImage?: ImageLike;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
|
|
164
|
+
|
|
165
|
+
declare const PerformTypes: {
|
|
166
|
+
readonly FORM: "form";
|
|
167
|
+
readonly DATA: "data";
|
|
168
|
+
};
|
|
169
|
+
|
|
128
170
|
declare type RecordingProcessKeys = keyof typeof RecordingProcess;
|
|
129
171
|
|
|
130
172
|
export { }
|
package/package.json
CHANGED