Represents a team in the RAAIN system. This class manages team members and their contracts.

Remarks

Used in the API endpoint: api/teams?name=customerTeam

Example

const teamNode = new TeamNode({
id: 'team1',
name: 'Customer Team',
description: 'Main customer support team',
contracts: ['basic', 'premium'],
contacts: [peopleNode1, peopleNode2]
});

Hierarchy (view full)

Constructors

Properties

id: string

Unique identifier for the node

version: string

Version string of the node

TYPE: "team" = 'team'
name: string
description: string
contracts: string[]
contacts: PeopleNode[]

Accessors

Methods

  • Gets the count of links, optionally filtered by type.

    Parameters

    • Optional linkType: string

      Optional type of links to count

    Returns number

    The number of links

  • Converts the node to a JSON object.

    Returns {
        id: string;
        links: Link[];
        version?: string;
        name: string;
        description: string;
        contracts: string[];
        contacts: PeopleNode[];
    }

    A JSON object containing the node's data

    • id: string
    • links: Link[]
    • Optional version?: string
    • name: string
    • description: string
    • contracts: string[]
    • contacts: PeopleNode[]