Node
Class in @bimworks/jssdk.
API catalogue · @bimworks/jssdk · Class
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#
constructor()created_by#
public created_by: stringUsername (email address) of the users by whom this Node was created
created_on#
public created_on: DateWhen this Node was created
deleted_status#
public deleted_status: TreeNodeDeletedStatusWhether this Node is active or deleted
demo_locked#
public demo_locked: boolean | undefinedTrue 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#
public errors: (Error)[]An array of all the Error linked to this Node
folder#
public folder: booleanWhether this is a folder or not
has_loadable_children#
public has_loadable_children: booleanWhether this Node has children that can be loaded
last_version#
A reference to the latest version, this is duplicate information, but useful
last_version_uuid#
public last_version_uuid: stringA reference to the latest known Version of this Node
level#
public level: numberThe level of this Node. The root is at level 0
name#
public name: stringName of this node, this does not include the path
nonce#
public nonce: numberparent_node_uuid#
public parent_node_uuid: stringA reference to the parent of this Node
path#
public path: stringThe full path of this Node within the current authorization context
processing#
public processing: numberprogress#
public progress: numberLast known progress on this Node
read_access#
public read_access: booleanWhether the current account has access to read this Node
root_node_uuid#
public root_node_uuid: stringA reference to the root of the current tree
status#
public status: TreeNodeStatusThe status of this Node
type#
public type: TreeNodeTypeThe type of the Node
uuid#
public uuid: stringThe universally unique identifier of this Node
versions#
An array of all the Version linked to this Node
write_access#
public write_access: booleanWhether the current account has access to write to this Node