id/name of the tree to resolve
tree export
Default tree export resolver used to resolve a tree id/name to a full export w/o dependencies of that tree from a platform instance.
id/name of the tree to resolve
tree export
Factory that creates a tree export resolver used to resolve a tree id to a full export of that tree from a multi-tree export file.
multi-tree export file
tree export resolver
Create journey without dependencies.
journey id/name
a promise that resolves to a journey object
Create an empty multi tree export template
an empty multi tree export template
Create an empty single tree export template
an empty single tree export template
Delete a journey
journey id/name
deep=true also delete all the nodes and inner nodes, verbose=true print verbose info
Optional
progress?: booleanDelete all journeys
deep=true also delete all the nodes and inner nodes, verbose=true print verbose info
Disable a journey
journey id/name
the updated tree/journey object
Enable a journey
journey id/name
the updated tree/journey object
Create export data for a tree/journey with all its nodes and dependencies. The export data can be written to a file as is.
tree id/name
Optional
options: TreeExportOptionsexport options
a promise that resolves to an object containing the tree and all its nodes and dependencies
Create export data for all trees/journeys with all their nodes and dependencies. The export data can be written to a file as is.
Optional
options: TreeExportOptionsexport options
a promise that resolves to an object containing the trees and all their nodes and dependencies
Find all node configuration objects that are no longer referenced by any tree
a promise that resolves to an array of orphaned nodes
since v2.0.0 use Node.findOrphanedNodes | findOrphanedNodes in the Node module instead
Get a journey/tree without all its nodes and dependencies.
journey id/name
a promise that resolves to a journey object
since v2.0.0 use readJourney instead
readJourney(journeyId: string): Promise<TreeSkeleton>
Get a journey's classifications, which can be one or multiple of:
journey export data
an array of one or multiple classifications
Get all the journeys/trees without all their nodes and dependencies.
a promise that resolves to an array of journey objects
Get the node reference obbject for a node object. Node reference objects are used in a tree flow definition and within page nodes to reference nodes. Among other things, node references contain all the non-configuration meta data that exists for readaility, like the x/y coordinates of the node and the display name chosen by the tree designer. The dislay name is the only intuitive link between the graphical representation of the tree and the node configurations that make up the tree.
node object to retrieve the node reference object for
tree export with or without dependencies
node reference object
Get tree dependencies (all descendent inner trees)
single tree export
tree export resolver callback function
Optional
resolvedTreeIds: string[]list of tree ids wich have already been resolved
a promise that resolves to a tree dependency map
Import journeys
map of trees object
import options
since v2.0.0 use importJourneys instead
importJourneys(importData: MultiTreeExportInterface, options: TreeImportOptions): Promise<TreeSkeleton[]>
Import journey
tree object containing tree and all its dependencies
import options
a promise that resolves to a journey object
Import journeys
map of trees object
import options
Analyze if a journey contains any cloud-only nodes considering the detected or the overridden version.
Journey/tree configuration object
True if the journey/tree contains any cloud-only nodes, false otherwise.
Analyze if a journey contains any custom nodes considering the detected or the overridden version.
Journey/tree configuration object
True if the journey/tree contains any custom nodes, false otherwise.
Analyze if a journey contains any premium nodes considering the detected or the overridden version.
Journey/tree configuration object
True if the journey/tree contains any custom nodes, false otherwise.
Read journey without dependencies.
journey id/name
a promise that resolves to a journey object
Read all journeys without dependencies.
a promise that resolves to an array of journey objects
Remove orphaned nodes
Pass in an array of orphaned node configuration objects to remove
a promise that resolves to an array nodes that encountered errors deleting
since v2.0.0 use Node.removeOrphanedNodes | removeOrphanedNodes in the Node module instead
Resolve journey dependencies
Map of installed journeys
Map of journeys to resolve dependencies for
Map to hold the names of unresolved journeys and their dependencies
Array to hold the names of resolved journeys
Optional
index: numberDepth of recursion
Update journey without dependencies.
journey id/name
a promise that resolves to a journey object
Tree export resolver used to resolve a tree id/name to a full export of that tree from individual
treename.journey.json
export files.