@regulaforensics/idv-capture-web 3.6.403-nightly → 3.6.405-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
@@ -182,6 +182,21 @@ declare type CurrentScreenConfig = {
182
182
  templateId: string;
183
183
  templateLayout?: Record<string, unknown>;
184
184
  dataSource: Record<string, unknown> | null;
185
+ uploadFileToTemp?: (file: File, onProgress: (sentBytes: number, total: number) => void, signal?: AbortSignal) => Promise<{
186
+ code: 0;
187
+ data: {
188
+ tempFileId: string;
189
+ };
190
+ } | {
191
+ code: number;
192
+ data: {
193
+ httpCode: number;
194
+ method: string;
195
+ url: string;
196
+ what?: string;
197
+ };
198
+ }>;
199
+ abortRequest?: () => void;
185
200
  properties?: SessionPropertiesItem[];
186
201
  sessionId?: string;
187
202
  serviceToken?: string;
@@ -306,6 +321,8 @@ declare class IdvFetchService {
306
321
  private _apiKeyAuthToken;
307
322
  private _connectionToken;
308
323
  private _connect;
324
+ private abortController;
325
+ constructor();
309
326
  private _getErrorTextFromError;
310
327
  private _setApiKeyAuthToken;
311
328
  private _setConnectionToken;
@@ -399,6 +416,16 @@ declare class IdvFetchService {
399
416
  data: SessionData;
400
417
  } | FetchErrorResult>;
401
418
  pushLogs(pushLogsParams: PushLogsParams): Promise<Record<string, unknown>>;
419
+ private _postStartUpload;
420
+ private _postFileChunk;
421
+ private _uploadFileInChunks;
422
+ uploadFileToTemp(file: File, onProgress: (sentBytes: number, total: number) => void): Promise<{
423
+ code: FetchResultCode.SUCCESS;
424
+ data: {
425
+ tempFileId: string;
426
+ };
427
+ } | FetchErrorResult>;
428
+ abortRequest(): void;
402
429
  }
403
430
 
404
431
  declare type IdvIntegrationControllerProps = {