@regulaforensics/idv-capture-web 3.2.253-nightly → 3.2.255-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 +29 -7
- package/dist/main.iife.js +19 -19
- package/dist/main.js +2573 -2474
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -215,6 +215,11 @@ declare type FetchState = {
|
|
|
215
215
|
what?: string;
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
+
declare type GeoCoords = {
|
|
219
|
+
lat: number;
|
|
220
|
+
lon: number;
|
|
221
|
+
};
|
|
222
|
+
|
|
218
223
|
declare type GetSessionStateNextStepConditionResult = {
|
|
219
224
|
data?: SessionData;
|
|
220
225
|
error?: BaseWorkflowError;
|
|
@@ -242,7 +247,7 @@ declare type IdvBusinessLogicControllerProps = {
|
|
|
242
247
|
setProcessingTemplate: (workflowSteps: any[]) => void;
|
|
243
248
|
isProcessing: boolean;
|
|
244
249
|
setIsProcessing: (isProcessing: boolean) => void;
|
|
245
|
-
_pushStep: (stepId: string, data: Record<string, any
|
|
250
|
+
_pushStep: (stepId: string, data: Record<string, any>, type?: PerformType) => Promise<{
|
|
246
251
|
error?: BaseWorkflowError;
|
|
247
252
|
}>;
|
|
248
253
|
_waitingForNextStep: () => Promise<{
|
|
@@ -255,7 +260,7 @@ declare type IdvBusinessLogicControllerProps = {
|
|
|
255
260
|
_stepSocketListenerWhenStepIsRunning: (isStepRunning: boolean) => void;
|
|
256
261
|
_getSessionStateNextStepConditionResult: () => Promise<GetSessionStateNextStepConditionResult>;
|
|
257
262
|
_findStepById: (stepId: string) => WorkflowStep | null;
|
|
258
|
-
pushStepWaitNextStepAndSet: (data: Record<string, any
|
|
263
|
+
pushStepWaitNextStepAndSet: (data: Record<string, any>, type?: PerformType) => void;
|
|
259
264
|
setNextStep: (workflow: Workflow, properties: SessionPropertiesItem[], nextStepId: string) => void;
|
|
260
265
|
onChangeScreen: (stepId: string | null) => void;
|
|
261
266
|
deinitializationIdv: () => Promise<{
|
|
@@ -341,7 +346,12 @@ declare class IdvFetchService {
|
|
|
341
346
|
};
|
|
342
347
|
} | FetchErrorResult>;
|
|
343
348
|
getConnectionToken(isFromSession: boolean): Promise<string>;
|
|
344
|
-
startSession(
|
|
349
|
+
startSession({ workflowId, locale, metadata, location, }: {
|
|
350
|
+
workflowId: string;
|
|
351
|
+
locale: string;
|
|
352
|
+
metadata?: Record<string, unknown>;
|
|
353
|
+
location?: GeoCoords | null;
|
|
354
|
+
}): Promise<{
|
|
345
355
|
code: FetchResultCode.SUCCESS;
|
|
346
356
|
data: SessionData;
|
|
347
357
|
} | FetchErrorResult>;
|
|
@@ -363,7 +373,7 @@ declare class IdvFetchService {
|
|
|
363
373
|
code: FetchResultCode.SUCCESS;
|
|
364
374
|
data: Workflow;
|
|
365
375
|
} | FetchErrorResult>;
|
|
366
|
-
pushData(stepId: string, data: any): Promise<{
|
|
376
|
+
pushData(stepId: string, data: any, type?: PerformType): Promise<{
|
|
367
377
|
code: FetchResultCode.SUCCESS;
|
|
368
378
|
data: Record<string, unknown>;
|
|
369
379
|
} | FetchErrorResult>;
|
|
@@ -407,7 +417,12 @@ declare type IdvIntegrationControllerProps = {
|
|
|
407
417
|
}>;
|
|
408
418
|
getWorkflows: (params?: WorkflowListRequest) => Promise<WorkflowListCompletion>;
|
|
409
419
|
prepareWorkflowAndPrepareUi: (workflowId: string) => Promise<PrepareWorkflowCompletion>;
|
|
410
|
-
startNewSession: (
|
|
420
|
+
startNewSession: (params: {
|
|
421
|
+
completion: (data: WorkflowCompletion) => void;
|
|
422
|
+
locale: string;
|
|
423
|
+
metadata?: Record<string, unknown>;
|
|
424
|
+
location?: GeoCoords | null;
|
|
425
|
+
}) => Promise<WorkflowCompletion>;
|
|
411
426
|
playWorkflow: () => void;
|
|
412
427
|
deinitialize: () => Promise<DeinitializeCompletion>;
|
|
413
428
|
};
|
|
@@ -441,7 +456,7 @@ export declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
|
441
456
|
isProcessing?: (isProcessing: boolean) => void;
|
|
442
457
|
moduleProps: TModuleProps;
|
|
443
458
|
modulesConfig?: TModulesConfig;
|
|
444
|
-
perform: (data: any) => void;
|
|
459
|
+
perform: (data: any, type?: PerformType) => void;
|
|
445
460
|
idvEventListener: (module: string, data: any) => void;
|
|
446
461
|
};
|
|
447
462
|
|
|
@@ -523,7 +538,7 @@ export declare class IdvWebComponent extends LitElement {
|
|
|
523
538
|
constructor();
|
|
524
539
|
_listenerFromModule: (module: string, data: any) => void;
|
|
525
540
|
_isProcessingCallback: (isProcessing: boolean) => void;
|
|
526
|
-
_performFromModule: (data: any) => void;
|
|
541
|
+
_performFromModule: (data: any, type?: PerformType) => void;
|
|
527
542
|
_processingScreen(): HTMLElement | TemplateResult<1>;
|
|
528
543
|
private _isTheSameModuleAndScreen;
|
|
529
544
|
_currentScreen(): HTMLElement | typeof nothing;
|
|
@@ -560,6 +575,13 @@ declare type LoadedModule = {
|
|
|
560
575
|
|
|
561
576
|
export declare type ModuleClass<TModuleProps = unknown, TModulesConfig = unknown> = IdvModuleStaticMethods & (new (...args: any[]) => BaseModule<TModuleProps, TModulesConfig>);
|
|
562
577
|
|
|
578
|
+
declare type PerformType = (typeof performType)[keyof typeof performType] | undefined;
|
|
579
|
+
|
|
580
|
+
declare const performType: {
|
|
581
|
+
readonly FORM: "form";
|
|
582
|
+
readonly DATA: "data";
|
|
583
|
+
};
|
|
584
|
+
|
|
563
585
|
export declare type PrepareWorkflowCompletion = {
|
|
564
586
|
workflow?: Workflow;
|
|
565
587
|
error?: BasePrepareWorkflowError;
|