Options
All
  • Public
  • Public/Protected
  • All
Menu

External module common/lib/helper

Functions

addAdditionalHeaders

  • addAdditionalHeaders(headers: Headers): void

convertStringToType

  • convertStringToType(str: string | null, expectedType: string): any

formatDateToRFC3339

  • formatDateToRFC3339(date: Date): string

getSignerAndReqBody

  • getSignerAndReqBody(body?: any, forceExcludeBody?: undefined | false | true): object
  • Parameters

    • Optional body: any
    • Optional forceExcludeBody: undefined | false | true

    Returns object

    • requestBody: any
    • signerBody: any

handleErrorBody

  • handleErrorBody(response: Response): Promise<string | object>

handleErrorResponse

  • handleErrorResponse(response: Response, body: any): OciError

mapContainer

  • mapContainer(obj: object, getJsonObj: Function): object

readStringFromBlob

  • readStringFromBlob(blob: Blob): Promise<string>

readStringFromFetchReadableStream

  • readStringFromFetchReadableStream(readable: ReadableStream): Promise<string>

readStringFromReadable

  • readStringFromReadable(readable: Readable): Promise<string>