Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BulkDataClientEvents

The BulkDataClient instances emit the following events:

Hierarchy

  • BulkDataClientEvents

Index

Events

  • Emitted when the flow is aborted by the user

    Parameters

    Returns void

  • Emitted every time new access token is received

    Parameters

    Returns void

  • downloadComplete(this: BulkDataClient, detail: { fileSize: number; fileUrl: string; resourceCount: null | number }): void
  • Emitted when any file has been downloaded

    Parameters

    • this: BulkDataClient
    • detail: { fileSize: number; fileUrl: string; resourceCount: null | number }
      • fileSize: number
      • fileUrl: string
      • resourceCount: null | number

    Returns void

  • downloadError(this: BulkDataClient, details: { body: null | string | OperationOutcome; code: null | number; fileUrl: string; message?: string }): void
  • Emitted for every file which fails to download

    Parameters

    • this: BulkDataClient
    • details: { body: null | string | OperationOutcome; code: null | number; fileUrl: string; message?: string }
      • body: null | string | OperationOutcome
      • code: null | number
      • fileUrl: string
      • Optional message?: string

    Returns void

  • downloadStart(this: BulkDataClient, detail: { fileUrl: string; itemType: string; resourceType: null | string }): void
  • Emitted when the download starts

    Parameters

    • this: BulkDataClient
    • detail: { fileUrl: string; itemType: string; resourceType: null | string }
      • fileUrl: string
      • itemType: string
      • resourceType: null | string

    Returns void

  • Emitted on error

    Parameters

    Returns void

  • Emitted when the export is completed

    Parameters

    Returns void

  • Emitted for every status change while waiting for the export

    Parameters

    Returns void

  • Emitted when the export has began

    Parameters

    Returns void

  • kickOffEnd(this: BulkDataClient, data: { capabilityStatement: CapabilityStatement; requestParameters: Record<string, any>; response: Response<unknown> }): void
  • Emitted when a kick-off response is received

    Parameters

    • this: BulkDataClient
    • data: { capabilityStatement: CapabilityStatement; requestParameters: Record<string, any>; response: Response<unknown> }
      • capabilityStatement: CapabilityStatement
      • requestParameters: Record<string, any>
      • response: Response<unknown>

    Returns void

  • kickOffStart(this: BulkDataClient, requestOptions: OptionsOfUnknownResponseBody): void
  • Emitted when new export is started

    Parameters

    Returns void

Methods

  • exportError(this: BulkDataClient, details: { body: null | string | OperationOutcome; code: null | number; message?: string }): void
  • Parameters

    • this: BulkDataClient
    • details: { body: null | string | OperationOutcome; code: null | number; message?: string }
      • body: null | string | OperationOutcome
      • code: null | number
      • Optional message?: string

    Returns void

Generated using TypeDoc