Skip to main content

service/ProjectEvents

Api Code Documentation / Exports / service/ProjectEvents

Table of contents#

Interfaces#

Functions#

Functions#

applyStreamItems#

applyStreamItems(streamItems, projectsByName?): Map<string, Project>

Parameters#

NameType
streamItemsItem[]
projectsByNameMap<string, Project>

Returns#

Map<string, Project>

Defined in#

src/service/ProjectEvents.ts:202


createProjectOnChain#

createProjectOnChain(conn, issuer, project): Promise<void>

Parameters#

NameType
connConnToken
issuerIssuer
projectProject

Returns#

Promise<void>

Defined in#

src/service/ProjectEvents.ts:54


getProject#

getProject(conn, id): Promise<Project>

Parameters#

NameType
connConnToken
idstring

Returns#

Promise<Project>

Defined in#

src/service/ProjectEvents.ts:147


getProjectList#

getProjectList(conn): Promise<Project[]>

Parameters#

NameType
connConnToken

Returns#

Promise<Project[]>

Defined in#

src/service/ProjectEvents.ts:159


getProjectPermissionList#

getProjectPermissionList(conn, projectId): Promise<Permissions>

Parameters#

NameType
connConnToken
projectIdstring

Returns#

Promise<Permissions>

Defined in#

src/service/ProjectEvents.ts:165


grantProjectPermission#

grantProjectPermission(conn, issuer, projectId, grantee, intent): Promise<void>

Parameters#

NameType
connConnToken
issuerIssuer
projectIdstring
granteestring
intentdefault

Returns#

Promise<void>

Defined in#

src/service/ProjectEvents.ts:173


updateProject#

updateProject(conn, issuer, projectId, update): Promise<void>

Parameters#

NameType
connConnToken
issuerIssuer
projectIdstring
updateProjectUpdate

Returns#

Promise<void>

Defined in#

src/service/ProjectEvents.ts:119


writeProjectAssignedToChain#

writeProjectAssignedToChain(conn, issuer, projectId, assignee): Promise<void>

Parameters#

NameType
connConnToken
issuerIssuer
projectIdstring
assigneestring

Returns#

Promise<void>

Defined in#

src/service/ProjectEvents.ts:92