Skip to content

ReadWorkspaceItem

Defined in: runtime/item.ts:152

readonly createdAt: Date

Defined in: runtime/item.ts:28

BaseReadItem.createdAt


readonly definition: TemplateDefinition

Defined in: runtime/item.ts:29

BaseReadItem.definition


readonly id: string

Defined in: runtime/item.ts:27

BaseReadItem.id


readonly properties: PropertyMap

Defined in: runtime/item.ts:30

BaseReadItem.properties


readonly propertyValues: PropertyValueMap

Defined in: runtime/item.ts:31

BaseReadItem.propertyValues


readonly relations: Record<string, ReadRelationInstance>

Defined in: runtime/item.ts:33

BaseReadItem.relations


readonly state: ReadStateInstance<string | null> | null

Defined in: runtime/item.ts:34

BaseReadItem.state


readonly templatePrn: string

Defined in: runtime/item.ts:32

BaseReadItem.templatePrn


readonly workspaceId: string

Defined in: runtime/item.ts:35

BaseReadItem.workspaceId

assertRole(role): Promise<true>

Defined in: runtime/item.ts:41

Asserts that the current, active item instance has the current role. If successful, this will return true. Otherwise it will throw an Error.

TemplateRoleInstance

Promise<true>

BaseReadItem.assertRole


checkRole(role): Promise<boolean>

Defined in: runtime/item.ts:47

Checks that the current, active item instance has the current role; returning true/false if that role is present.

TemplateRoleInstance

Promise<boolean>

BaseReadItem.checkRole


currentRoles(): Promise<BaseRoleInstance[]>

Defined in: runtime/item.ts:57

Returns the roles that the current user has available on this item. Note that for sudo/system users this will be all available roles.

MATT: This is currently async. Maybe we can revisit that later.

Promise<BaseRoleInstance[]>

BaseReadItem.currentRoles


getChildByKey(key): Promise<ReadItem | undefined>

Defined in: runtime/item.ts:59

string

Promise<ReadItem | undefined>

BaseReadItem.getChildByKey


getParent(): Promise<ReadItem | undefined>

Defined in: runtime/item.ts:60

Promise<ReadItem | undefined>

BaseReadItem.getParent


selectChildren(): ItemCursorSelector<ReadItem>

Defined in: runtime/item.ts:153

ItemCursorSelector<ReadItem>