service/ProjectEvents
Api Code Documentation / Exports / service/ProjectEvents
Table of contents
Interfaces
Functions
- applyStreamItems
- createProjectOnChain
- getProject
- getProjectList
- getProjectPermissionList
- grantProjectPermission
- updateProject
- writeProjectAssignedToChain
Functions
applyStreamItems
▸ applyStreamItems(streamItems
, projectsByName?
): Map
<string
, Project
>
Parameters
Name | Type |
---|---|
streamItems | Item [] |
projectsByName | Map <string , Project > |
Returns
Map
<string
, Project
>
Defined in
src/service/ProjectEvents.ts:204
createProjectOnChain
▸ createProjectOnChain(conn
, issuer
, project
): Promise
<void
>
Parameters
Name | Type |
---|---|
conn | ConnToken |
issuer | Issuer |
project | Project |
Returns
Promise
<void
>
Defined in
src/service/ProjectEvents.ts:55
getProject
▸ getProject(conn
, id
): Promise
<Project
>
Parameters
Name | Type |
---|---|
conn | ConnToken |
id | string |
Returns
Promise
<Project
>
Defined in
src/service/ProjectEvents.ts:149
getProjectList
▸ getProjectList(conn
): Promise
<Project
[]>
Parameters
Name | Type |
---|---|
conn | ConnToken |
Returns
Promise
<Project
[]>
Defined in
src/service/ProjectEvents.ts:161
getProjectPermissionList
▸ getProjectPermissionList(conn
, projectId
): Promise
<Permissions
>
Parameters
Name | Type |
---|---|
conn | ConnToken |
projectId | string |
Returns
Promise
<Permissions
>
Defined in
src/service/ProjectEvents.ts:167
grantProjectPermission
▸ grantProjectPermission(conn
, issuer
, projectId
, grantee
, intent
): Promise
<void
>
Parameters
Name | Type |
---|---|
conn | ConnToken |
issuer | Issuer |
projectId | string |
grantee | string |
intent | default |
Returns
Promise
<void
>
Defined in
src/service/ProjectEvents.ts:175
updateProject
▸ updateProject(conn
, issuer
, projectId
, update
): Promise
<void
>
Parameters
Name | Type |
---|---|
conn | ConnToken |
issuer | Issuer |
projectId | string |
update | ProjectUpdate |
Returns
Promise
<void
>
Defined in
src/service/ProjectEvents.ts:121
writeProjectAssignedToChain
▸ writeProjectAssignedToChain(conn
, issuer
, projectId
, assignee
): Promise
<void
>
Parameters
Name | Type |
---|---|
conn | ConnToken |
issuer | Issuer |
projectId | string |
assignee | string |
Returns
Promise
<void
>