Description of icon
Flex UI
API Reference

TaskChannelDefinition

Interface to define a task channel for Flex


Properties:

  • name: string

    name of the task channel definition

  • isApplicable: (task) => boolean

    Callback to determine whether this task channel is applicable for a given task.

    • task: ITask - task to evaluate applicability for
    • boolean - true if task channel is applicable for given task
  • capabilities: Set<TaskChannelCapability>

    capabilities of task channel

  • charLimit: number

    message character limit for task channel with chat capabilities

  • colors?: object

    colors to be used

  • sounds?: TaskChannelDefinition.TaskSounds

    sounds to be used for specific tasks

  • icons?: object

    icons to render for the task channel

  • templates?: object

    template strings for components

  • addedComponents?: Array<TaskChannelComponentRegistration>

    components to be added for task channel

    • target: string - of a Flex component. Component must have static "Content" property.
    • component: React.ReactChild - component to register
    • options: ContentFragmentProps - properties for component registration
  • replacedComponents?: Array<TaskChannelComponentRegistration>

    components to be replaced for task channel

    • target: string - of a Flex component. Component must have static "Content" property.
    • component: React.ReactChild - component to register
    • options: ContentFragmentProps - properties for component registration
  • removedComponents?: Array<TaskChannelComponentRemoveRequest>

    component removal request for task channel

    • target: string - of a Flex component. Component must have static "Content" property.
    • key: string - key of a component to remove
    • options: ContentFragmentProps - properties for component removal.
  • componentProps: object

    Object of task-channel specific components props

  • notifications?: TaskChannelNotificationOptions

    Notification properties

    • override: NotificationOverride - Map of notification overrides

exports.TaskChannelCapability: "Info" | "Call" | "Chat" | "Video" | "Wrapup"#

Task channel capabilities

Properties:

  • "Info": "Info"

    whether channel has info panel

  • "Call": "Call"

    whether channel has call canvas capabilities

  • "Chat": "Chat"

    whether channel has chat canvas capabilities

  • "Video": "Video"

    whether channel has video calling capabilities

  • "Wrapup": "Wrapup"

    whether channel needs to go to Wrapup state before can be completed

exports.ReservationStatuses: "Accepted" | "Wrapping" | "Completed" | "Canceled" | "Pending" | "Rescinded"#

ReservationStatuses

Properties:

  • Wrapping: "Wrapping"

    wrapping state

  • Completed: "Completed"

    completed state

  • Canceled: "Canceled"

    canceled state

  • Pending: "Pending"

    pending state

  • Accepted: "Accepted"

    accepted state

  • Rescinded: "Rescinded"

    rescinded state

Rate this page

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.