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