@twilio/flex-sdk
    Preparing search index...

    Class WrapUpTask

    Wraps up a task that is either pending or assigned.

    The unique identifier (SID) of the task to be completed.

    A promise that resolves to a Reservation and a Task object representing the completed task.

    import { createClient } from "@twilio/flex-sdk";
    import { WrapUpTask } from "@twilio/flex-sdk/actions/Task";

    async function wrapUpTask() {
    const client = await createClient("SDK_TOKEN");
    const wrapUpTask = new WrapUpTask("TSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    const { task, reservation } = await client.execute(wrapUpTask);
    return { task, reservation };
    }

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods