Node: {
    createNode(nodeType: string, nodeData: NodeSkeleton): Promise<NodeSkeleton>;
    deleteNode(nodeId: string, nodeType: string): Promise<NodeSkeleton>;
    findOrphanedNodes(): Promise<NodeSkeleton[]>;
    getNodeClassification(nodeType: string): NodeClassificationType[];
    isCloudExcludedNode(nodeType: string): boolean;
    isCloudOnlyNode(nodeType: string): boolean;
    isCustomNode(nodeType: string): boolean;
    isDeprecatedNode(nodeType: string): boolean;
    isPremiumNode(nodeType: string): boolean;
    readNode(nodeId: string, nodeType: string): Promise<NodeSkeleton>;
    readNodeTypes(): Promise<any>;
    readNodes(): Promise<NodeSkeleton[]>;
    readNodesByType(nodeType: string): Promise<NodeSkeleton[]>;
    removeOrphanedNodes(orphanedNodes: NodeSkeleton[]): Promise<NodeSkeleton[]>;
    updateNode(nodeId: string, nodeType: string, nodeData: NodeSkeleton): Promise<NodeSkeleton>;
}

Type declaration

  • createNode:function
  • deleteNode:function
    • Delete node by uuid and type

      Parameters

      • nodeId: string

        node uuid

      • nodeType: string

        node type

      Returns Promise<NodeSkeleton>

      a promise that resolves to an object containing a node object

  • findOrphanedNodes:function
    • Find all node configuration objects that are no longer referenced by any tree

      Returns Promise<NodeSkeleton[]>

      a promise that resolves to an array of orphaned nodes

  • getNodeClassification:function
    • Get a node's classifications, which can be one or multiple of:

      • standard: can run on any instance of a ForgeRock platform
      • cloud: utilize nodes, which are exclusively available in the ForgeRock Identity Cloud
      • premium: utilizes nodes, which come at a premium

      Parameters

      • nodeType: string

        Node type

      Returns NodeClassificationType[]

      an array of one or multiple classifications

  • isCloudExcludedNode:function
    • Analyze if a node type is a cloud-excluded node. Cloud excluded nodes are OOTB nodes in self-hosted AM deployments but have been excluded in cloud.

      Parameters

      • nodeType: string

        node type.

      Returns boolean

      True if node type is cloud-excluded, false otherwise.

  • isCloudOnlyNode:function
    • Analyze if a node type is a cloud-only node.

      Parameters

      • nodeType: string

        Node type

      Returns boolean

      True if the node type is cloud-only, false otherwise.

  • isCustomNode:function
    • Analyze if a node is custom.

      Parameters

      • nodeType: string

        Node type

      Returns boolean

      True if the node type is custom, false otherwise.

  • isDeprecatedNode:function
    • Analyze if a node type has been deprecated

      Parameters

      • nodeType: string

        node type.

      Returns boolean

      True if node type is deprecated, false otherwise.

  • isPremiumNode:function
    • Analyze if a node type is premium.

      Parameters

      • nodeType: string

        Node type

      Returns boolean

      True if the node type is premium, false otherwise.

  • readNode:function
    • Read node by uuid and type

      Parameters

      • nodeId: string

        node uuid

      • nodeType: string

        node type

      Returns Promise<NodeSkeleton>

      a promise that resolves to a node object

  • readNodeTypes:function
    • Read all node types

      Returns Promise<any>

      a promise that resolves to an array of node type objects

  • readNodes:function
  • readNodesByType:function
    • Read all nodes by type

      Parameters

      • nodeType: string

        node type

      Returns Promise<NodeSkeleton[]>

      a promise that resolves to an object containing an array of node objects of the requested type

  • removeOrphanedNodes:function
    • Remove orphaned nodes

      Parameters

      • orphanedNodes: NodeSkeleton[]

        Pass in an array of orphaned node configuration objects to remove

      Returns Promise<NodeSkeleton[]>

      a promise that resolves to an array nodes that encountered errors deleting

  • updateNode:function
    • Update or create node by uuid and type

      Parameters

      • nodeId: string

        node uuid

      • nodeType: string

        node type

      • nodeData: NodeSkeleton

        node object

      Returns Promise<NodeSkeleton>

      a promise that resolves to an object containing a node object