Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

RouterExtension

RouterExtension: object & Router

Functions

createRouterForBot

createShortLink

  • createShortLink(name: string, destination: string, params?: any): void
  • Parameters

    • name: string
    • destination: string
    • Optional params: any

    Returns void

decodeExternalToken

  • decodeExternalToken(token: string): Promise<any>
  • Parameters

    • token: string

    Returns Promise<any>

    The decoded payload

deleteRouterForBot

  • deleteRouterForBot(routerName: string): any

deleteShortLink

  • deleteShortLink(name: any): void

extractExternalToken

  • extractExternalToken(req: Request, res: Response, next: NextFunction): Promise<void>
  • Parameters

    • req: Request
    • res: Response
    • next: NextFunction

    Returns Promise<void>

getAxiosConfigForBot

hasPermission

  • hasPermission(req: any, operation: string, resource: string, noAudit?: undefined | false | true): Promise<boolean>
  • Parameters

    • req: any
    • operation: string
    • resource: string
    • Optional noAudit: undefined | false | true

    Returns Promise<boolean>

needPermission

  • needPermission(operation: string, resource: string): function
  • Parameters

    • operation: string
    • resource: string

    Returns function

      • (req: Request, res: Response, next: NextFunction): Promise<void>
      • Parameters

        • req: Request
        • res: Response
        • next: NextFunction

        Returns Promise<void>

Generated using TypeDoc