Hierarchy (view full)

Constructors

Properties

_RELOADABLE: boolean = false
back: {
    delete: (<T>(routeName, options?) => Promise<T>);
    get: (<T>(routeName, options?) => Promise<T>);
    post: (<T, P>(routeName, payload?, options?) => Promise<T>);
    put: (<T, P>(routeName, payload, options?) => Promise<T>);
    uploadFile: ((routeName, file, onProgress, options?) => Promise<UploadResponse>);
} = ...

Type declaration

  • delete: (<T>(routeName, options?) => Promise<T>)
      • <T>(routeName, options?): Promise<T>
      • Type Parameters

        • T

        Parameters

        • routeName: string
        • Optional options: IAPIOptions

        Returns Promise<T>

  • get: (<T>(routeName, options?) => Promise<T>)
      • <T>(routeName, options?): Promise<T>
      • Type Parameters

        • T

        Parameters

        • routeName: string
        • Optional options: IAPIOptions

        Returns Promise<T>

  • post: (<T, P>(routeName, payload?, options?) => Promise<T>)
      • <T, P>(routeName, payload?, options?): Promise<T>
      • Type Parameters

        • T

        • P

        Parameters

        • routeName: string
        • Optional payload: P
        • Optional options: IAPIOptions

        Returns Promise<T>

  • put: (<T, P>(routeName, payload, options?) => Promise<T>)
      • <T, P>(routeName, payload, options?): Promise<T>
      • Type Parameters

        • T

        • P

        Parameters

        • routeName: string
        • payload: P
        • Optional options: IAPIOptions

        Returns Promise<T>

  • uploadFile: ((routeName, file, onProgress, options?) => Promise<UploadResponse>)
      • (routeName, file, onProgress, options?): Promise<UploadResponse>
      • Parameters

        • routeName: string
        • file: File
        • onProgress: ((progress) => void)
            • (progress): void
            • Parameters

              • progress: number

              Returns void

        • options: IAPIOptions = {}

        Returns Promise<UploadResponse>

token?: string
_instances: {
    [key: string]: RWSService;
} = {}

Type declaration

Methods

  • Parameters

    • headers: [string, string][] | Headers | {
          [key: string]: string;
      }
    • key: string
    • val: string

    Returns void

  • Type Parameters

    • T

    Parameters

    • url: string
    • options: IAPIOptions = {}

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • url: string
    • options: IAPIOptions = {}

    Returns Promise<T>

  • Parameters

    • routeName: string
    • params: {
          [key: string]: string;
      } = {}
      • [key: string]: string

    Returns string

  • Parameters

    • optHeaders: HeadersInit = {}

    Returns HeadersInit

  • Type Parameters

    • T

    • P

    Parameters

    • url: string
    • Optional payload: P
    • options: IAPIOptions = {}

    Returns Promise<T>

  • Parameters

    • url: string
    • options: IAPIOptions = {}

    Returns Promise<string>

  • Type Parameters

    • T

    • P

    Parameters

    • url: string
    • Optional payload: P
    • options: IAPIOptions = {}

    Returns Promise<T>

  • Parameters

    • url: string
    • file: File
    • onProgress: ((progress) => void)
        • (progress): void
        • Parameters

          • progress: number

          Returns void

    • options: IAPIOptions = {}

    Returns Promise<UploadResponse>

Generated using TypeDoc