Reference·JavaScript · @bimworks/jssdkJavaScript

Node

Class in @bimworks/jssdk.

API catalogue · @bimworks/jssdk · Class

TypeScript#
class Node

The BIM.works virtual filesystem is built up with Node objects. A Node can either be a folder or not a folder. Folder Nodes can have child Nodes. Non-folder Nodes can have Versions and Errors.

Members#

Member Kind Description
constructor Method
created_by Property Username (email address) of the users by whom this Node was created
created_on Property When this Node was created
deleted_status Property Whether this Node is active or deleted
demo_locked Property True on a Demo folder and on the demo models and folders in it, which take no upload, new Node, delete, move or rename; absent elsewhere, also on a folder or…
errors Property An array of all the Error linked to this Node
folder Property Whether this is a folder or not
has_loadable_children Property Whether this Node has children that can be loaded
last_version Property A reference to the latest version, this is duplicate information, but useful
last_version_uuid Property A reference to the latest known Version of this Node
level Property The level of this Node. The root is at level 0
name Property Name of this node, this does not include the path
nonce Property
parent_node_uuid Property A reference to the parent of this Node
path Property The full path of this Node within the current authorization context
processing Property
progress Property Last known progress on this Node
read_access Property Whether the current account has access to read this Node
root_node_uuid Property A reference to the root of the current tree
status Property The status of this Node
type Property The type of the Node
uuid Property The universally unique identifier of this Node
versions Property An array of all the Version linked to this Node
write_access Property Whether the current account has access to write to this Node

constructor#

TypeScript#
constructor()

created_by#

TypeScript#
public created_by: string

Username (email address) of the users by whom this Node was created

created_on#

TypeScript#
public created_on: Date

When this Node was created

deleted_status#

TypeScript#
public deleted_status: TreeNodeDeletedStatus

Whether this Node is active or deleted

demo_locked#

TypeScript#
public demo_locked: boolean | undefined

True on a Demo folder and on the demo models and folders in it, which take no upload, new Node, delete, move or rename; absent elsewhere, also on a folder or model the account made in its Demo folder (Uploads, say)

errors#

TypeScript#
public errors: (Error)[]

An array of all the Error linked to this Node

folder#

TypeScript#
public folder: boolean

Whether this is a folder or not

has_loadable_children#

TypeScript#
public has_loadable_children: boolean

Whether this Node has children that can be loaded

last_version#

TypeScript#
public last_version: Version

A reference to the latest version, this is duplicate information, but useful

last_version_uuid#

TypeScript#
public last_version_uuid: string

A reference to the latest known Version of this Node

level#

TypeScript#
public level: number

The level of this Node. The root is at level 0

name#

TypeScript#
public name: string

Name of this node, this does not include the path

nonce#

TypeScript#
public nonce: number

parent_node_uuid#

TypeScript#
public parent_node_uuid: string

A reference to the parent of this Node

path#

TypeScript#
public path: string

The full path of this Node within the current authorization context

processing#

TypeScript#
public processing: number

progress#

TypeScript#
public progress: number

Last known progress on this Node

read_access#

TypeScript#
public read_access: boolean

Whether the current account has access to read this Node

root_node_uuid#

TypeScript#
public root_node_uuid: string

A reference to the root of the current tree

status#

TypeScript#
public status: TreeNodeStatus

The status of this Node

type#

TypeScript#
public type: TreeNodeType

The type of the Node

uuid#

TypeScript#
public uuid: string

The universally unique identifier of this Node

versions#

TypeScript#
public versions: (Version)[]

An array of all the Version linked to this Node

write_access#

TypeScript#
public write_access: boolean

Whether the current account has access to write to this Node