Options
All
  • Public
  • Public/Protected
  • All
Menu

Export Cloud Logic APIs

Hierarchy

  • RestAPIClass

Index

Constructors

constructor

Properties

Credentials

Credentials: CredentialsClass = Credentials

Methods

cancel

  • cancel(request: Promise<any>, message?: string): boolean
  • Cancels an inflight request

    Parameters

    • request: Promise<any>

      request to cancel

    • Optional message: string

    Returns boolean

    • A boolean indicating if the request was cancelled

configure

  • configure(options: any): any

createInstance

  • createInstance(): boolean

del

  • del(apiName: any, path: any, init: any): Promise<any>
  • Make a DEL request

    Parameters

    • apiName: any

      The api name of the request

    • path: any

      The path of the request

    • init: any

    Returns Promise<any>

    • A promise that resolves to an object with response status and JSON data, if successful.

endpoint

  • endpoint(apiName: any): Promise<string>

get

  • get(apiName: any, path: any, init: any): Promise<any>
  • Make a GET request

    Parameters

    • apiName: any

      The api name of the request

    • path: any

      The path of the request

    • init: any

    Returns Promise<any>

    • A promise that resolves to an object with response status and JSON data, if successful.

getModuleName

  • getModuleName(): string

hasCancelToken

  • hasCancelToken(request: Promise<any>): boolean
  • Check if the request has a corresponding cancel token in the WeakMap.

    params

    request - The request promise

    Parameters

    Returns boolean

    if the request has a corresponding cancel token.

head

  • head(apiName: any, path: any, init: any): Promise<any>
  • Make a HEAD request

    Parameters

    • apiName: any

      The api name of the request

    • path: any

      The path of the request

    • init: any

    Returns Promise<any>

    • A promise that resolves to an object with response status and JSON data, if successful.

isCancel

  • isCancel(error: any): boolean
  • Checks to see if an error thrown is from an api request cancellation

    Parameters

    • error: any

      Any error

    Returns boolean

    • A boolean indicating if the error was from an api request cancellation

patch

  • patch(apiName: any, path: any, init: any): Promise<any>
  • Make a PATCH request

    Parameters

    • apiName: any

      The api name of the request

    • path: any

      The path of the request

    • init: any

    Returns Promise<any>

    • A promise that resolves to an object with response status and JSON data, if successful.

post

  • post(apiName: any, path: any, init: any): Promise<any>
  • Make a POST request

    Parameters

    • apiName: any

      The api name of the request

    • path: any

      The path of the request

    • init: any

    Returns Promise<any>

    • A promise that resolves to an object with response status and JSON data, if successful.

put

  • put(apiName: any, path: any, init: any): Promise<any>
  • Make a PUT request

    Parameters

    • apiName: any

      The api name of the request

    • path: any

      The path of the request

    • init: any

    Returns Promise<any>

    • A promise that resolves to an object with response status and JSON data, if successful.