JS API Reference

Class: ActivityRepository

shared/yagna/repository/activity-repository.ActivityRepository

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new ActivityRepository(state, agreementRepo): ActivityRepository

Parameters

NameType
stateRequestorStateService
agreementRepoIAgreementRepository

Returns

ActivityRepository

Defined in

src/shared/yagna/repository/activity-repository.ts:11

Methods

getById

getById(id): Promise<Activity>

Parameters

NameType
idstring

Returns

Promise<Activity>

Implementation of

IActivityRepository.getById

Defined in

src/shared/yagna/repository/activity-repository.ts:16


getStateOfActivity

getStateOfActivity(id): Promise<ActivityStateEnum>

Parameters

NameType
idstring

Returns

Promise<ActivityStateEnum>

Implementation of

IActivityRepository.getStateOfActivity

Defined in

src/shared/yagna/repository/activity-repository.ts:38