yajsapi - JavaScript high-level API
Yagna Contributor Guide

Class: Activity

yajsapi / Exports / rest/activity / Activity

Class: Activity

rest/activity.Activity

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Activity(id, _api, _state)

Parameters

Name

Type

id

string

_api

RequestorControlApi

_state

RequestorStateApi

Defined in

yajsapi/rest/activity.ts:161

Properties

_api

Protected _api: RequestorControlApi

Defined in

yajsapi/rest/activity.ts:158

_credentials

Protected Optional _credentials: object

Defined in

yajsapi/rest/activity.ts:161

_id

Protected _id: string

Defined in

yajsapi/rest/activity.ts:160

_state

Protected _state: RequestorStateApi

Defined in

yajsapi/rest/activity.ts:159

Accessors

credentials

get credentials(): undefined | object

Returns

undefined | object

Defined in

yajsapi/rest/activity.ts:181

exeunitHashes

get exeunitHashes(): undefined | string[]

Returns

undefined | string[]

Defined in

yajsapi/rest/activity.ts:185

id

get id(): string

Returns

string

Defined in

yajsapi/rest/activity.ts:177

set id(x): void

Parameters

Name

Type

x

string

Returns

void

Defined in

yajsapi/rest/activity.ts:173

Methods

done

done(): Promise

Returns

Promise

Defined in

yajsapi/rest/activity.ts:239

ready

ready(): Promise<Activity>

Returns

Promise<Activity>

Defined in

yajsapi/rest/activity.ts:235

send

send(script, stream, deadline?, cancellationToken?): Promise

Parameters

Name

Type

script

object[]

stream

boolean

deadline?

number

cancellationToken?

default

Returns

Promise

Defined in

yajsapi/rest/activity.ts:195

state

state(): Promise

Returns

Promise

Defined in

yajsapi/rest/activity.ts:189