@regulaforensics/idv-capture-web 3.2.254-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 +17 -2
- package/dist/main.iife.js +10 -10
- package/dist/main.js +527 -493
- 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;
|
|
@@ -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>;
|
|
@@ -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
|
};
|