Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElevationHelper

The elevation helper is provided any 403 responses from core.fetch that contain headers indicating an elevated permission check could allow the call to proceed.

export

Hierarchy

  • ElevationHelper

Index

Properties

elevationEvent$

elevationEvent$: Subject<IElevationEvent> = new Subject()

This observable stream will emit when a service response is received that contains elevation headers and needs manager approval

Methods

checkForElevationResponse

  • checkForElevationResponse(__namedParameters: { response: Response; serviceContext: string; serviceName: string }): Promise<void>
  • If he core fetch implementation encounters a 403 will pass it to this method. This method will check for the elevation headers and then generate the elevation barcode and connect to the elevation signalr hub if needed

    Parameters

    • __namedParameters: { response: Response; serviceContext: string; serviceName: string }
      • response: Response
      • serviceContext: string
      • serviceName: string

    Returns Promise<void>

getCurrentElevationEvent