Base class for all RAAIN nodes in the system. Implements versioning and link management functionality.

Remarks

This is the foundation class for all API entities in the RAAIN system. It provides common functionality for:

  • Version management
  • HATEOAS link handling
  • JSON serialization

Example

const node = new RaainNode({
id: 'node1',
version: '1.0.0',
links: [
new Link('self', '/api/nodes/node1')
]
});

Hierarchy (view full)

Constructors

Properties

date: Date
validity: number
id: string

Unique identifier for the node

version: string

Version string of the node

Accessors

Methods

  • Returns {
        min: number;
        max: number;
    }

    • min: number
    • max: number