Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BackendUtilities

Hierarchy

Index

Properties

performanceNow

performanceNow: now = PerformanceNow

Accessors

namespace

  • get namespace(): string

Methods

buildFullUrl

  • buildFullUrl(action: string, params: string, baseUrl: string): string

callBetterTouchTool

  • callBetterTouchTool(action: string, data: Types.BttPayload, config: AppConfig, translate?: boolean): Promise<CallResult>

deleteTrigger

  • deleteTrigger(uuid: string): void

fetch

  • fetch(url: string, options?: any): Promise<any>

generateUuidForString

  • generateUuidForString(text: string, namespace?: string): string

getBaseUrl

  • getBaseUrl(config: Partial<AppConfig>): string

getMdlsName

  • getMdlsName(applicationPath: string): string

getNodeBinaryPath

  • getNodeBinaryPath(): string

getUrl

keyToBttNotation

  • keyToBttNotation(key: string): string

mapClassNameToMethodName

params

  • params(data: Record<string, string>, sharedKey?: string, sharedSecret?: string): string
  • Parses given list of params (key-value object) and converts it to query parameters

    Parameters

    • data: Record<string, string>
    • Optional sharedKey: string
    • Optional sharedSecret: string

    Returns string

simpleCase

  • simpleCase(value: string): string

translateObjectKeysToBttNotation

  • translateObjectKeysToBttNotation(object: Partial<Types.AppPayload> | Partial<Types.BttPayload>): object