yajsapi / Exports / rest/activity / ActivityService
rest/activity.ActivityService
A convenience helper to facilitate the creation of an Activity.
• new ActivityService(cfg
)
Parameters
Name | Type |
---|---|
cfg |
Configuration |
Defined in
• Private
_api: RequestorControlApi
Defined in
• Private
_state: RequestorStateApi
Defined in
▸ _attest(activity_id
, agreement
, credentials
): Promise
Parameters
Name | Type |
---|---|
activity_id |
string |
agreement |
Agreement |
credentials |
Credentials |
Returns
Promise
Defined in
▸ _create_activity(agreement_id
): Promise
<Activity>
Parameters
Name | Type |
---|---|
agreement_id |
string |
Returns
Promise
<Activity>
Defined in
▸ _create_secure_activity(agreement
): Promise
Parameters
Name | Type |
---|---|
agreement |
Agreement |
Returns
Promise
Defined in
▸ new_activity(agreement
, secure?
): Promise
<Activity>
Create an activity within bounds of the specified agreement.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
agreement |
Agreement | undefined |
- |
secure |
boolean |
false | - |
Returns
Promise
<Activity>
Activity
Defined in