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:204


createProjectOnChain

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

Parameters

NameType
connConnToken
issuerIssuer
projectProject

Returns

Promise<void>

Defined in

src/service/ProjectEvents.ts:55


getProject

getProject(conn, id): Promise<Project>

Parameters

NameType
connConnToken
idstring

Returns

Promise<Project>

Defined in

src/service/ProjectEvents.ts:149


getProjectList

getProjectList(conn): Promise<Project[]>

Parameters

NameType
connConnToken

Returns

Promise<Project[]>

Defined in

src/service/ProjectEvents.ts:161


getProjectPermissionList

getProjectPermissionList(conn, projectId): Promise<Permissions>

Parameters

NameType
connConnToken
projectIdstring

Returns

Promise<Permissions>

Defined in

src/service/ProjectEvents.ts:167


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:175


updateProject

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

Parameters

NameType
connConnToken
issuerIssuer
projectIdstring
updateProjectUpdate

Returns

Promise<void>

Defined in

src/service/ProjectEvents.ts:121


writeProjectAssignedToChain

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

Parameters

NameType
connConnToken
issuerIssuer
projectIdstring
assigneestring

Returns

Promise<void>

Defined in

src/service/ProjectEvents.ts:94