@regulaforensics/idv-capture-web 3.6.329-nightly → 3.6.331-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 CHANGED
@@ -234,6 +234,8 @@ declare type GeoCoords = {
234
234
  lon: number;
235
235
  };
236
236
 
237
+ declare const IDV_MODULE_NAME = "IDV";
238
+
237
239
  declare type IdvBusinessLogicControllerProps = {
238
240
  connectByUserPass: (config: ConnectionConfigCore) => Promise<{
239
241
  error?: BaseConnectionError;
@@ -329,6 +331,7 @@ declare class IdvFetchService {
329
331
  } | FetchErrorResult>;
330
332
  private _getAuthorizationSearchParam;
331
333
  private _getResponseTextFromBadResponse;
334
+ private _httpFetch;
332
335
  private _fetchPing;
333
336
  private _fetchMe;
334
337
  private _fetchConnection;
@@ -394,7 +397,7 @@ declare class IdvFetchService {
394
397
  code: FetchResultCode.SUCCESS;
395
398
  data: SessionData;
396
399
  } | FetchErrorResult>;
397
- pushSessionLogs(pushSessionLogsParams: PushSessionLogsParams): Promise<Record<string, unknown>>;
400
+ pushLogs(pushLogsParams: PushLogsParams): Promise<Record<string, unknown>>;
398
401
  }
399
402
 
400
403
  declare type IdvIntegrationControllerProps = {
@@ -450,10 +453,24 @@ export declare class IdvIntegrationService {
450
453
  set sessionRestoreMode(isEnabled: boolean);
451
454
  }
452
455
 
456
+ declare enum IdvLogLevelConfigEnum {
457
+ INFO = "INFO"
458
+ }
459
+
460
+ declare enum IdvLogLevelEnum {
461
+ DEBUG = "DEBUG",
462
+ ERROR = "ERROR",
463
+ INFO = "INFO",
464
+ WARNING = "WARNING",
465
+ CRITICAL = "CRITICAL"
466
+ }
467
+
453
468
  export declare type IdvMessageEvent = {
469
+ /** @deprecated Prefer `logLevel` and `message`; scheduled for removal. */
454
470
  eventType: IdvEventTypes;
455
- module?: string | 'IDV';
456
- message?: IdvServiceMessages;
471
+ logLevel: IdvLogLevelEnum;
472
+ module?: string | typeof IDV_MODULE_NAME;
473
+ message?: IdvServiceMessages | string;
457
474
  };
458
475
 
459
476
  export declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
@@ -616,11 +633,12 @@ declare class PropertyModel implements SessionPropertiesItem {
616
633
  object?: unknown;
617
634
  }
618
635
 
619
- declare type PushSessionLogsParams = {
636
+ declare type PushLogsParams = {
620
637
  body: {
621
638
  log: string;
622
639
  errorCode?: string;
623
640
  deviceInfo?: Record<string, string>;
641
+ step?: string;
624
642
  };
625
643
  };
626
644
 
@@ -716,6 +734,7 @@ declare enum TokenInitializeError {
716
734
 
717
735
  declare type Workflow = {
718
736
  id: string;
737
+ logging: WorkflowLogging;
719
738
  steps: Array<WorkflowStep>;
720
739
  client: WorkflowClient;
721
740
  trackLocation?: boolean;
@@ -758,11 +777,20 @@ export declare type WorkflowListRequest = {
758
777
  skip: number;
759
778
  };
760
779
 
780
+ declare type WorkflowLogging = {
781
+ level?: IdvLogLevelConfigEnum;
782
+ };
783
+
784
+ declare class WorkflowLoggingModel implements WorkflowLogging {
785
+ level?: IdvLogLevelConfigEnum;
786
+ }
787
+
761
788
  declare class WorkflowModel implements Workflow {
762
789
  id: string;
763
790
  name: string;
764
791
  steps: WorkflowStepModel[];
765
792
  client: WorkflowClientModel;
793
+ logging: WorkflowLoggingModel;
766
794
  error: string | null;
767
795
  defaultLocale?: string;
768
796
  config?: Record<any, any>;