Skip to main content

ThreadStepsApi

@codebolt/client-sdk


Class: ThreadStepsApi

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:18

Constructors​

Constructor​

new ThreadStepsApi(http: HttpClient): ThreadStepsApi;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:19

Parameters​

ParameterType
httpHttpClient

Returns​

ThreadStepsApi

Methods​

bulkDelete()​

bulkDelete(data: BulkDeleteStepsRequest): Promise<void>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:67

Bulk delete steps

Parameters​

ParameterType
dataBulkDeleteStepsRequest

Returns​

Promise<void>


bulkUpdate()​

bulkUpdate(data: BulkUpdateStepsRequest): Promise<void>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:62

Bulk update steps

Parameters​

ParameterType
dataBulkUpdateStepsRequest

Returns​

Promise<void>


complete()​

complete(stepId: string, data?: CompleteStepRequest): Promise<ThreadStep>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:82

Complete a step

Parameters​

ParameterType
stepIdstring
data?CompleteStepRequest

Returns​

Promise<ThreadStep>


create()​

create(data: CreateStepRequest): Promise<ThreadStep>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:27

Create a new step

Parameters​

ParameterType
dataCreateStepRequest

Returns​

Promise<ThreadStep>


delete()​

delete(stepId: string): Promise<void>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:57

Delete a step

Parameters​

ParameterType
stepIdstring

Returns​

Promise<void>


execute()​

execute(stepId: string, data?: ExecuteStepRequest): Promise<ThreadStep>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:77

Execute a step

Parameters​

ParameterType
stepIdstring
data?ExecuteStepRequest

Returns​

Promise<ThreadStep>


fail()​

fail(stepId: string, data?: FailStepRequest): Promise<ThreadStep>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:87

Mark a step as failed

Parameters​

ParameterType
stepIdstring
data?FailStepRequest

Returns​

Promise<ThreadStep>


getActiveSteps()​

getActiveSteps(threadId: string): Promise<ThreadStep[]>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:102

Get active steps for a thread

Parameters​

ParameterType
threadIdstring

Returns​

Promise<ThreadStep[]>


getById()​

getById(id: string): Promise<ThreadStep>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:37

Get a step by internal ID

Parameters​

ParameterType
idstring

Returns​

Promise<ThreadStep>


getByThreadId()​

getByThreadId(threadId: string): Promise<ThreadStep[]>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:47

Get steps by thread ID

Parameters​

ParameterType
threadIdstring

Returns​

Promise<ThreadStep[]>


getNextExecutable()​

getNextExecutable(threadId: string): Promise<ThreadStep | null>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:97

Get next executable step for a thread

Parameters​

ParameterType
threadIdstring

Returns​

Promise<ThreadStep | null>


getStatistics()​

getStatistics(threadId: string): Promise<StepStatistics>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:107

Get step statistics for a thread

Parameters​

ParameterType
threadIdstring

Returns​

Promise<StepStatistics>


healthCheck()​

healthCheck(): Promise<HealthCheckResponse>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:22

Health check for thread step service

Returns​

Promise<HealthCheckResponse>


list()​

list(params?: StepListParams): Promise<ThreadStep[]>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:42

List all steps

Parameters​

ParameterType
params?StepListParams

Returns​

Promise<ThreadStep[]>


search(stepId: string): Promise<ThreadStep>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:32

Search for a step by stepId

Parameters​

ParameterType
stepIdstring

Returns​

Promise<ThreadStep>


skip()​

skip(stepId: string, data?: SkipStepRequest): Promise<ThreadStep>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:92

Skip a step

Parameters​

ParameterType
stepIdstring
data?SkipStepRequest

Returns​

Promise<ThreadStep>


update()​

update(stepId: string, data: UpdateStepRequest): Promise<ThreadStep>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:52

Update a step

Parameters​

ParameterType
stepIdstring
dataUpdateStepRequest

Returns​

Promise<ThreadStep>


updateStatus()​

updateStatus(stepId: string, data: UpdateStepStatusRequest): Promise<ThreadStep>;

Defined in: CodeBolt/packages/clientsdk/src/api/thread-steps.api.ts:72

Update step status

Parameters​

ParameterType
stepIdstring
dataUpdateStepStatusRequest

Returns​

Promise<ThreadStep>