Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

TemplateItem

TemplateItem: Object | Object[] | string[] | string

Functions

createOrUpdateContentElement

  • createOrUpdateContentElement(botId: string, contentTypeId: string, formData: object, contentElementId?: undefined | string, language?: undefined | string): Promise<string>
  • Parameters

    • botId: string
    • contentTypeId: string
    • formData: object
    • Optional contentElementId: undefined | string
    • Optional language: undefined | string

    Returns Promise<string>

deleteContentElements

  • deleteContentElements(botId: string, contentElementIds: string[]): Promise<void>
  • Parameters

    • botId: string
    • contentElementIds: string[]

    Returns Promise<void>

getAllContentTypes

  • getAllContentTypes(botId?: undefined | string): Promise<ContentType[]>

getContentElement

  • getContentElement(botId: string, id: string, language?: undefined | string): Promise<ContentElement>

getContentElements

  • getContentElements(botId: string, ids: string[], language?: undefined | string): Promise<ContentElement[]>

getFilePath

  • getFilePath(botId: string, fileName: string): string

listContentElements

  • listContentElements(botId: string, contentTypeId?: undefined | string, searchParams?: SearchParams, language?: undefined | string): Promise<ContentElement[]>

readFile

  • readFile(botId: any, fileName: any): Promise<Buffer>
  • Parameters

    • botId: any
    • fileName: any

    Returns Promise<Buffer>

renderElement

  • renderElement(contentId: string, args: any, eventDestination: EventDestination): Promise<any[]>

renderTemplate

saveFile

  • saveFile(botId: string, fileName: string, content: Buffer): Promise<string>
  • Parameters

    • botId: string
    • fileName: string
    • content: Buffer

    Returns Promise<string>

Generated using TypeDoc