Package version:

Task of the Job.

interface ASRTask {
    allowedActions?: string[];
    customDetails?: TaskTypeDetailsUnion;
    endTime?: any;
    errors?: JobErrorDetails[];
    friendlyName?: string;
    groupTaskCustomDetails?: GroupTaskDetailsUnion;
    name?: string;
    startTime?: any;
    state?: string;
    stateDescription?: string;
    taskId?: string;
    taskType?: string;
}

Properties

allowedActions?: string[]

The state/actions applicable on this task.

customDetails?: TaskTypeDetailsUnion

The custom task details based on the task type.

endTime?: any

The end time.

errors?: JobErrorDetails[]

The task error details.

friendlyName?: string

The name.

groupTaskCustomDetails?: GroupTaskDetailsUnion

The custom task details based on the task type, if the task type is GroupTaskDetails or one of the types derived from it.

name?: string

The unique Task name.

startTime?: any

The start time.

state?: string

The State. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or Other.

stateDescription?: string

The description of the task state. For example - For Succeeded state, description can be Completed, PartiallySucceeded, CompletedWithInformation or Skipped.

taskId?: string

The Id.

taskType?: string

The type of task. Details in CustomDetails property depend on this type.