@regulaforensics/idv-interfaces 3.2.236-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/README.md +3 -0
- package/dist/index.d.ts +59 -0
- package/dist/main.js +3573 -0
- package/package.json +24 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare class BaseError {
|
|
2
|
+
errorCode: number | string;
|
|
3
|
+
errorCodeKey: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
underlyingError?: string;
|
|
6
|
+
underlyingBaseError?: BaseError;
|
|
7
|
+
domain?: string;
|
|
8
|
+
module: string;
|
|
9
|
+
errorEnumName: string;
|
|
10
|
+
shortDomainCode: string;
|
|
11
|
+
constructor({ errorCode, errorCodeKey, message, underlyingError, underlyingBaseError, domain, module, errorEnumName, shortDomainCode, }: {
|
|
12
|
+
errorCode: number | string;
|
|
13
|
+
errorCodeKey: string;
|
|
14
|
+
module: string;
|
|
15
|
+
message?: string;
|
|
16
|
+
underlyingError?: string;
|
|
17
|
+
underlyingBaseError?: BaseError;
|
|
18
|
+
domain?: string;
|
|
19
|
+
errorEnumName: string;
|
|
20
|
+
shortDomainCode: string;
|
|
21
|
+
});
|
|
22
|
+
static getErrorKey<T extends Record<string, any>>(errorCode: number | string, errorEnum: T): string;
|
|
23
|
+
get lastUnderlyingError(): string | undefined;
|
|
24
|
+
toObject(): Record<string, any>;
|
|
25
|
+
get shortChain(): string;
|
|
26
|
+
get fullChain(): string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
|
|
30
|
+
abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
|
|
31
|
+
abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export declare function cleanObjectFromUndefined(obj: Record<string, unknown>): Record<string, unknown>;
|
|
35
|
+
|
|
36
|
+
export declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
37
|
+
isProcessing?: (isProcessing: boolean) => void;
|
|
38
|
+
moduleProps: TModuleProps;
|
|
39
|
+
modulesConfig?: TModulesConfig;
|
|
40
|
+
perform: (data: any) => void;
|
|
41
|
+
idvEventListener: (module: string, data: any) => void;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export declare interface IdvModuleStaticMethods {
|
|
45
|
+
displayName: string;
|
|
46
|
+
isReady(): boolean;
|
|
47
|
+
getSupportedTemplates(): string[];
|
|
48
|
+
initialize(modulesConfig: Record<string, unknown>): void;
|
|
49
|
+
deinitialize(): void;
|
|
50
|
+
getIdentifier(): string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare type ModuleClass<TModuleProps = unknown, TModulesConfig = unknown> = IdvModuleStaticMethods & (new (...args: any[]) => BaseModule<TModuleProps, TModulesConfig>);
|
|
54
|
+
|
|
55
|
+
export declare function parseClientJSON<T>(json: T): T;
|
|
56
|
+
|
|
57
|
+
export declare function registerModule<TModuleProps = unknown, TModulesConfig = unknown>(name: string, ModuleClass: ModuleClass<TModuleProps, TModulesConfig>): void;
|
|
58
|
+
|
|
59
|
+
export { }
|